ID:168057
 
Rest()
if(src.rest)return
src.rest = 1
while(src.rest)
src.hp += rand(1,10)
if(src.hp >= src.maxhp)
src.hp = src.maxhp
src.rest = 0
sleep(30)
src << "You finish resting!"

thats what i got so far, but what ive been trying to do is make the rest verb have different levels and each level of rest will gain more hp at a faster rate anyone care to help me?
Should make a proc..
mob/var
restlvl
restexp
restmax=100
resting


mob/Move()
if(!src.resting)//If the src is NOT resting
..()//Continue

mob/verb/Rest()
if(usr.resting) return 0
usr.resting=1
usr.rest()//calls the rest proc on usr (savecheck)

mob/proc/rest()
src.hp+=rand(1,src.restlvl)
src.restexp++//++ = plus 1
if(src.restexp>=src.restmax)
src.restlvl++
src.restexp=0
src.restmax+=10
if(src.hp>=src.maxhp)
src<<"You stand up!"
src.resting=0
else
sleep(10)
src.rest() //re-calls the rest proc


Should work...
In response to Mysame
Also, next time put a code in
tags... eg:

mob/verb


will show it as:
mob/verb


- GhostAnime