Help

JS-EVENT

For immortals Also: JAVASCRIPT-EVENT

The Event object represents a event (see EVENT).

Class Methods:

spawn( [ 'in', ] destination, [ 'room', ] event, time, actor, restrictions )

The spawn method allows you to spawn an event from JavaScript (see SPAWN). destination must be an element reference. event must be a custom event number or the string "turn". time must be a number. actor must be a reference to an element. restrictions must be the string "actorwithself" if it is present. actor and restrictions are both optional. If the 'room' option is specified, the event will be sent to the room behaviors that the destination element is in. If the 'in' option is specified, the event will be broadcast to the destination element and everything "inside" it. A room's "inside" is the objects and chars inside it, a char's "inside" is its inventory and equipment, while an object's "inside" is its contents if it is a container.

unspawn( event )

This method unspawns the specified event.

Properties:

text            The text that is associated with this event, examples:
                say:  what was said
                command:  the arguments passed to command
                customcommand:  the arguments passed to customcommand
amount          How much damage was inflicted for "damaged" and
                "hit" events.