Sleep()
set category="Commands"
src<<"<font color=olive><b>You drift to sleep."
src.icon_state="sleeping"
src.Health=100
src.Hunger-=50
src.Thirst-=50
step_size=0
sleep(2000)
src.icon_state="base"
step_size=2
Problem description:
I figured using the step_size code here would work, but it doesn't. Basically, I'm looking for a way to code nullified movement when a player sleeps.
Sleeping restores them to full health but lowers their hunger, and thirst attributes. I just can't figure out how to nullify their movements while sleeping.
It's not ideal, but it comes from how pixel movement was added on top of tile movement.
If you want to block movement, you need to override one of client.Move() or mob.Move().