ID:270395
 
mob/verb/Rest()
src<<"You begin to rest."
src.Stamina=usr.MaxC
sleep(30)
src<<"You are done resting."

how would i make it so the user cant move while this verb is taking place?
Modify Move() like this:

mob
var/stop
Move()
if(!stop)
..()

mob/verb/Rest()
src<<"You begin to rest."
src.stop=1
src.Stamina=src.MaxC
sleep(30)
src<<"You are done resting."
src.stop=0
In response to Branks
mob/var/stop
mob/Move()
if(!stop)
return ..()


You need to return it.
In response to Justin B
Oh yeah thats right. My bad.