Help

JS-AURA

For immortals Also: JAVASCRIPT-ROOM

The Aura object represents auras.

Class Methods:

byName( name )   Returns the aura object that goes by the given name.  For
                 example: Aura.byName( "detect-invisibility" );

Class Properties:

listReturns an array of the mud's auras.
list.lengthContains the total number of auras on the mud.
list[ num ]Returns the aura at position "num".

Properties:

dbThe database object for this aura (see JS-DB). Note that all auras of the same type share the same db object. For example, two "stat" auras will share the same db object.
keyNameThe key name of this aura.
shortDescThe short description of this aura.
longDescThe long description of this aura.
argsReturns an object which contains the arguments passed to this aura.
args.lengthContains the number of arguments passed to this aura.
args[ num ]Returns the given argument where "num" is a number between 0 and 9. (The first argument is argument #0.)
onThis returns the character or object that this aura is currently placed on. If an aura is placed directly on a character, it will return the character. If the aura is part of an item, on will return that (though you can still use "on.bearer()" to get the character even for auras from objects).
controllerWho is this aura's controller? (see JS-CONTROLLER)
typeReturns the type of this aura. See AURA-TYPES.

Methods:

isActive()Returns true if the aura is active.
isAura()Returns true
isMobile()Returns false
isObj()Returns false
isRoom()Returns false
isControlledByPC()Returns true if this aura is under the control of a PC.
like()See JS-LIKE.
toString()Returns the name of the room.
damage()Does damage. See JS-ELEMENT-DAMAGE.
valueOf()Returns the name of the room.
isAvailableTo( t )Returns true if this aura is available to the character t.
hasAura( n )Returns true if this aura has this aura. (Yes, auras can contain other auras.) This method supports cardinalities -- see JS-CARDINALITY.
addAura()See JS-ELEMENT.
removeAura()See JS-ELEMENT.
addAuraCat()See JS-ELEMENT.
removeAuraCat()See JS-ELEMENT.