Signals

 

Signals are a simple way of triggering signal events in multiple scripts at the same time.

 

/signal [-n] <name> [parameters]

The signal command allows you to trigger signal events in all scripts that listen for signals.

 

By default the signal is triggered after all current scripts have finished executing. You can however use -n to make the script trigger immediately.

 

on *:SIGNAL:name:command

The on signal event triggers if a script has used the /signal command to send a signal to all scripts.

 

The signal name can contain wildcards.

 

The $signal identifier returns the signal name that caused the signal event to trigger.

 

The $1- identifier returns the parameters that were specified in the /signal command.

 

Note: The script that called /signal is triggered first, and then all other scripts are triggered.