Um, I would like to know how to regenerate say....stamina
without using a verb. I mean like uh... If you are standing still and not using the training verb you gain 1 stamina point per half a second.
/mob/proc/Regen()
while(!src.train)
if(src.stamina<src.maxstamina)
src.stamina+=1
sleep(5)
This is what i have so far...but how do i know the person is not moving? Is there a proc for that?! If there is i have not found it yet in the reference..
Please help.
ID:161045
Jun 25 2008, 11:04 am
|
|
Jun 25 2008, 11:24 am
|
|
There's a.. inactivity variable, but it might not work how you want it to. Just use another infinite loop to check for inactivity, then call Regen(). You don't have to make Regen() a loop then.
|