mob/verb/rest()
while(1)
energy += 5
sleep(200)
if(usr.energy = usr.energy)
usr << "Your all rested up!"
Problem description: Alrighty this is my "rest" verb. I want it to recover energy at a certain rate but not let the character move while this verb is activated. I also want it to stop regaining energy after it has hit the character's max energy. Could I get some help with tidying up this code and help answering these specific questions?
I suggest you take a visit before trying to code: http://www.byond.com/developer/articles/start