Loading...
 

Purpose: Creates a trigger that will automatically activate after a specified time period.

Syntax: setDelayTrigger {name} {label} {tics}

{name}: The name of the trigger to create. This name is used for later references to the trigger.
{label}: A label within the script to jump to when the trigger is activated.
{tics}: The number of milliseconds to wait before the delay trigger automatically activates itself.

Notes: Triggers mark the way in which TWX Scripts interact with their environment (Trade Wars).

The delay trigger will automatically jump to a label within the script and begin executing as soon as a certain time period has elapsed.

Note that no triggers will activate unless the script has been paused with a "pause", "waitFor" or "waitOn" command.

Example:

:wait
send "#"
setDelayTrigger delay :wait 60000
pause