if wear_loc($o)

For builders to discuss and ask building questions.
Post Reply
User avatar
Larethiel
Sword Grand Master
Sword Grand Master
Posts: 910
Joined: Sat Jul 22, 2006 4:10 pm
Location: Mt. Whateverest

if wear_loc($o)

Post by Larethiel » Fri May 22, 2015 7:58 am

wear_loc checks where object is currently worn with rhs
if wear_loc($o) != -1
Example checks for if it is not worn.
Is there a list of wear locations other than that to be found at http://www.forgottenkingdoms.org/builders/olesson4.php?

How would I check if an object is worn floating?

if wear_loc($o) = ?
Weit in der Champagne im Mittsommergrün,
dort, wo zwischen Grabkreuzen Mohnblumen blühn,
da flüstern die Gräser und wiegen sich leicht
im Wind, der sanft über das Gräberfeld streicht.
User avatar
Algon
Sword Grand Master
Sword Grand Master
Posts: 1070
Joined: Thu Aug 14, 2003 12:44 am
Location: Waterdeep

Re: if wear_loc($o)

Post by Algon » Fri May 22, 2015 6:43 pm

I would imagine it would be:

if wear_loc($o) = FLOAT

Since that is the actual command for when wearing something to float.
Counting bodies like sheep...to the rhythm of the war drums. ~~~ Maynard
Xryon
Sword Master
Sword Master
Posts: 233
Joined: Thu Aug 25, 2005 5:24 am
Location: Waterdeep

Re: if wear_loc($o)

Post by Xryon » Fri May 22, 2015 9:23 pm

Failing that, it might actually be easier to simply have a wear prog to change objval5 to 1, then check for that value in what you're doing. Likewise, removal would set the value back to 0.
User avatar
Larethiel
Sword Grand Master
Sword Grand Master
Posts: 910
Joined: Sat Jul 22, 2006 4:10 pm
Location: Mt. Whateverest

Re: if wear_loc($o)

Post by Larethiel » Sat May 23, 2015 6:52 am

The solution is:
if wear_loc($o) = 20
Weit in der Champagne im Mittsommergrün,
dort, wo zwischen Grabkreuzen Mohnblumen blühn,
da flüstern die Gräser und wiegen sich leicht
im Wind, der sanft über das Gräberfeld streicht.
Post Reply