ID:179057
 
ok so I wanted to have a verb active only when you are standing over an obj I thought this would be as simple as when you stand over a sword and you pick it up. I know this looks horrible but this is what I tried

obj
verb
sit_down()
set desk in oview()
if
usr.cp += 1
usr << "you sit down. [usr.cp]" else
usr << "you need to get to class"

I tried indenting more but that just gave me more errors. I know I should have something after if but everything I try adds more errors.

thank you
if is a proc, and you're not setting it to anything because desk isn't a var:

obj
desk
icon = 'desk.dmi'
verb/Sit()
set src in oview(0)//when right on top of it
if(usr.varname == something)
//do something
else
//do somethingelse
obj
verb
sit_down()
set desk in oview(1)
if (usr.X > 25)// you forgot the if!
usr.cp += 1
usr << "blah"
usr << "blah to class"
In response to Nadrew
wow thanks nadrew it works just like I want it to.