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?
Single Use Potion Problem
Moderator: Nizari
Re: Single Use Potion Problem
pspell=9
stat=choice one in state.txt
len=3000
stat1=hpregen
calc1=stat('maxhp'.accr)/3000
stat=choice one in state.txt
len=3000
stat1=hpregen
calc1=stat('maxhp'.accr)/3000
Re: Single Use Potion Problem
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
type=elix
pspell=4
stat1=hpregen
calc1=stat('maxhp'.accr)/3000
pspell=4
stat1=hpregen
calc1=stat('maxhp'.accr)/3000
Re: Single Use Potion Problem
you also need change hpregen in ItemStatCost.txt,like strength,set saved and CSVbits.