ID:261413
 
I need to know how you could set up a code for sit. I want it so when you use the verb sit you can't move untill you use the verb get up. I have tryed a few things but I cant get it to work.
mob
var
issitting = 0

client/Move()
if(issitting)
return..()
else
return //NO MOVE!


Change the issitting var when you sit them down.
In response to Nadrew
Ok I got that working now I need a little help with the get up verb, I think I can make the verb but it won't show up in the menu

    Chairs
icon = 'Chair.dmi'
name = "Chair"
verb
Sit()
set src in oview(0)
usr.overlays += 'Chairo.dmi'
usr.Sit = 1
Get_up()
usr.Sit = 0
In response to Little Sally
I'm in a giving mood (bored you know)

obj
chair
verb
sit()
set src in oview(1)
usr.issitting = 1
src.verbs+=/obj/chair/proc/get_up
src.verbs-=/obj/chair/verb/sit
proc
get_up()
set src in oview(1)
usr.issitting = 0
src.verbs+=/obj/chair/verb/sit
src.verbs-=/obj/chair/proc/get_up
In response to Nadrew
Thank you so much!