"Wearing" if check

For builders to discuss and ask building questions.
Post Reply
Tandria
Sword Grand Master
Sword Grand Master
Posts: 384
Joined: Mon Nov 10, 2003 9:03 pm
Location: Outskirts of Waterdeep
Contact:

"Wearing" if check

Post by Tandria » Fri May 20, 2005 4:59 pm

I read on the builder's lessons that the if check for wearing an object is the following:

if objinroom($o) == $1~

But I get an error on FKCheck every time I have it in. For example, here is what the prog currently is (with some stuff changed):
>time_prog number
if objininv($n) == $1~
or objiinroom($o) == $1~
..stuff happens
endif
~
Or am I going about this the wrong way? :)
"May your travels be Wonderful and Mysterious."
Dalvyn
Sword Grand Master
Sword Grand Master
Posts: 4708
Joined: Tue Jul 15, 2003 9:26 pm
Location: House of Wonder, Waterdeep

Post by Dalvyn » Fri May 20, 2005 9:10 pm

You only need 1 tilda per program, at the very end of it.
Image
Post Reply