mob
verb
Rest()
if(usr.stamina <= usr.maxstamina)
usr << "You sit down and rest"
usr.frozen = 1
sleep(30)
usr.frozen = 0
usr.stamina = usr.maxstamina
usr << "Your fully rested"
if(usr.stamina == usr.maxstamina)
usr << "You don't need to rest"
Problem description:
Ugh......this sux.....but, can you see any errors in this??
even though stamina = max stamina, it rests anyway..... then says "You don't need to rest" right after it..
Not all that surprising, since you told it to do exactly that. You use the <= operator, which means the first if() will still work as long as the two values are equal. You also used if() for the next block instead of else which would be much more appopriate.
Lummox JR