ID:266639
 
mob/var
random
meditate
mob
proc
meditate()
if(usr.meditate == 0)
usr.HPM += 0
if(usr.meditate == 1)
usr.random = rand(1,2)
if(usr.random == 2)
usr.HPM += rand(1,10)
usr.meditate()
mob/verb/Meditate()

What should I put in the verb space to make this work?
You would call the proc just like you did to loop it.
In response to Nadrew
runtime error: Maximum recursion level reached (perhaps there is an infinite loop)
To avoid this safety check, set world.loop_checks=0.
proc name: meditate (/mob/proc/meditate)
usr: Strange Kidd (/mob/Man)
src: Strange Kidd (/mob/Man)
call stack:
Strange Kidd (/mob/Man): meditate(Strange Kidd (/mob/Man))
Strange Kidd (/mob/Man): meditate(Strange Kidd (/mob/Man))
Strange Kidd (/mob/Man): meditate(Strange Kidd (/mob/Man))
Strange Kidd (/mob/Man): meditate(Strange Kidd (/mob/Man))
Strange Kidd (/mob/Man): meditate(Strange Kidd (/mob/Man))
Strange Kidd (/mob/Man): meditate(Strange Kidd (/mob/Man))
Strange Kidd (/mob/Man): meditate(Strange Kidd (/mob/Man))
Strange Kidd (/mob/Man): meditate(Strange Kidd (/mob/Man))
Strange Kidd (/mob/Man): meditate(Strange Kidd (/mob/Man))
Strange Kidd (/mob/Man): meditate(Strange Kidd (/mob/Man))
...
Strange Kidd (/mob/Man): meditate(Strange Kidd (/mob/Man))
Strange Kidd (/mob/Man): meditate(Strange Kidd (/mob/Man))
Strange Kidd (/mob/Man): meditate(Strange Kidd (/mob/Man))
Strange Kidd (/mob/Man): meditate(Strange Kidd (/mob/Man))
Strange Kidd (/mob/Man): meditate(Strange Kidd (/mob/Man))
Strange Kidd (/mob/Man): meditate(Strange Kidd (/mob/Man))
Strange Kidd (/mob/Man): meditate(DBZFreak (/mob/Man))
DBZFreak (/mob/Man): meditate(DBZFreak (/mob/Man))
DBZFreak (/mob/Man): Meditate()


That's what happened when I used the Code...
mob/var
random
meditate=0
meditating=0
mob
proc
meditate()
if(usr.meditate == 0)
usr.HP += 0
if(usr.meditate==1)
usr.random = rand(1,2)
if(usr.random==2)
usr.HPM+=rand(1,10)
meditate(usr)


mob/verb/Meditate()
if(usr.meditating == 0)
usr.meditate=1
usr.meditating=1
meditate(usr)
else
usr.meditate=0
In response to Strange Kidd
Where you loop the proc add

spawn() procname()

to loop it.
In response to Nadrew
Ahhhh duh. :p