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
ID:179057
Feb 22 2002, 4:54 pm
|
|
Feb 22 2002, 5:04 pm
|
|
if is a proc, and you're not setting it to anything because desk isn't a var:
|
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.
|