Enforcer Script - The Event Command

 The !event command is used to create an event from within Enforcer Script.  The most common reason for wanting to create a separate event is to run that even for a different user, so that instructions using the ^ action-character will be sent to a different Mesmerizer than the one that the current program is associated with.


Syntax:

!event <event-name>::<user-name>::<variable-initializers>

Example:

!event TeleportNue::Nue Broome::target=Sleepy Hill (128,128,23);when=immediately

Description:

Creates a new <event-name> event, running on behalf of <user-name>.  In addition to the standard variables, the event's namespace will be initialized with the specified variable assignment(s).  Variable assignments are separated from one another by semicolons.  If a variable value contains a semicolon, the value should be enclosed in either single or double quotes.

Currently, <user-name> must be specified as the legacy name of the intended user.


Version 1.1 of The Enforcer adds a variant of the event command:  eventin.  This is very similar to event, except that the event will fire after a specified delay.


Syntax:

!eventin <delay>::<event-name>::<user-name>::<variable-initializers>

Example:

!eventin 10s::TeleportNue::Nue Broome::target=Sleepy Hill (128,128,23)

Description:

Schedules a new <event-name> event, to be run on behalf of <user-name> after <delay>, which is a string specifying an interval, which consists of one or more number & latter pairs, specifying seconds (s), minutes (m), hours (h), days (d) or weeks (w).  For instance, 10s means 10 seconds; 1m30s means 1 minute and 30 seconds, or 90 seconds. 

In addition to the standard variables, the event's namespace will be initialized with the specified variable assignment(s).  Variable assignments are separated from one another by semicolons.  If a variable value contains a semicolon, the value should be enclosed in either single or double quotes.

Currently, <user-name> must be specified as the legacy name of the intended user.


No comments:

Post a Comment