mob/var
wavel = 0 //Soul Wavelength
resonating = 0 //They aren't resonating
soul = 100 // Amount of Soul (like Magic, Mana, CHakra, Different strokes for different folks
mob
verb
Soul_Resonance()
if(!usr.resonating)
return
if(usr.wavel == 100)
usr<< "Your Resonance Rate can't go any higher"
return
usr.resonating = 1
usr.soul -= 100
Problem description:
Alright, I want this to take away 100 soul (obviously) and then make their soul decrease by 1, and wavel to increase by 1. I want it to do this until they reach 100 or until they hit the button again. How can I do this?
Ex: one method for recovery would be: WHILE person HP < max, increase HP. (maybe use min() to make sure the max value HP is MAXHP if: min(HP+X,MAXHP))