Help

SPAWN-EXAMPLE

For immortals

This spawn will send a custom event numbered 1002 to everything in the room that the self happens to be in in 2d4 pulses.

<spawn> event 1002 time 2d4 destination inselfroom

This spawn sends the turn event to the self in 4 pulses.

<spawn> event turn destination self time 4

This spawn is like the last one except that it also sends the event to everything inside the self ("inside" for rooms means the characters and objects in the room, for objects it means the contents of the container if the object is a container, and for characters, "inside" means the character and its inventory).

<spawn> event turn destination inself time 4

Options can also be abbreviated. The following is equivalent to the previous:

<spawn> e turn d inself t 4

This spawn sends an event 24000 to the room 1000 and its contents after a single pulse:

<spawn> e 24000 t 1 d inroom 1000

A note about Destinations:

The default destination is "self". This default is okay for most behaviors. You only need to explicitly specify a destination when you want to send an event from one room/object/mobile's behaviors to a different room/object/mobile's behaviors. Using a destination of "actor" is not usually useful because player characters normally don't have any behaviors (although if your actor is a mobile, object, or room, a destination of "actor" might be useful). However, a destination of something like "actorroom" can be useful because it will cause the room behaviors of the room that the character is in at the time the event comes due to be triggered.