What it does atm is it does heal me, it fills the hp/sp bar at a speed when I aproach. However both values seem to hit a max somehow. As soon as I get below that hp/sp it heals be back to it again.
I tested with a character with 3936 HP and 253 SP. I get healed to 3837 HP and 154 SP max. When I increase vit or sp the ammount healed increases together with the max HP/SP.
Eventually Id like the script to heal a bit more slowly then it does now, but Id like to get it working first. Also seeing its in a constant loop would it create much load? Oh and I tried with just hpheal and spheal without the if, it didnt help.
Quote
OnTouch:
while(1)
if v[VAR_HP] < v[VAR_MAXHP]
hpheal 1
endif
if v[VAR_SP] < v[VAR_MAXSP]
spheal 1
endif
endwhile
return
This post has been edited by .chronoz.: 10 November 2006 - 02:44 PM

Help












