Page 1 of 1

Single Use Potion Problem

Posted: Wed May 15, 2019 11:34 pm
by pepa999
Hi i followed this tutorial to create single use potion.

kb/viewarticle?a=439

It works, but problem is, that i want to add passive hp regeneration "stat('maxhp'.accr)/(25*120)", so full hp in 120 seconds just like original mana regeneration.

But the game here weirdly doesnt work with 1/256ths piece of hit poitns however it is still per one frame. So minimum regeneration is 25 hitpoints per seconds. Less will be truncated to zero.

Please help, how can i solve this?

Re: Single Use Potion Problem

Posted: Thu May 16, 2019 1:52 am
by huohuowu2
pspell=9
stat=choice one in state.txt
len=3000
stat1=hpregen
calc1=stat('maxhp'.accr)/3000

Re: Single Use Potion Problem

Posted: Thu May 16, 2019 11:15 pm
by pepa999
Thank you, but i would like permanent hp regeneration just like mana regeneration is permanent and is saved through games.

Re: Single Use Potion Problem

Posted: Fri May 17, 2019 3:13 am
by huohuowu2
type=elix
pspell=4
stat1=hpregen
calc1=stat('maxhp'.accr)/3000

Re: Single Use Potion Problem

Posted: Fri May 17, 2019 3:17 am
by huohuowu2
you also need change hpregen in ItemStatCost.txt,like strength,set saved and CSVbits.