Help

JAVASCRIPT-AND-AURAS

Auras have a special usage of "self". For auras, "self" is not the aura but rather the mobile that the aura is affecting. For example, if a player "barry" looks at "orc" who is wielding a "sword" with a "detect-invisibility" aura on it, then the JavaScript objects would have the following values:

selfthe orc
actorbarry
auradetect-invisibility aura
aura.onthe sword

If the "detect-invisibility" aura was on the "orc" directly (rather than the "sword", then the values would be:

selfthe orc
actorbarry
auradetect-invisibility aura
aura.onthe orc

Because of this, if "aura.on == self" then the aura is innate, otherwise it is from an item.

This special use of "self" allows you to place mobile behaviors on an aura and still have them work properly.