Project

General

Profile

On SIGNAL » History » Revision 2

Revision 1 (Per Amundsen, 11/15/2015 03:16 AM) → Revision 2/5 (Per Amundsen, 11/16/2015 04:24 AM)

_Added in 1.9.0_ 

 *<notextile>on <level>:SIGNAL:<name/matchtext>:<commands></notextile>* 

 Triggers if a script has used the [[/signal]] command to send a signal to all scripts. 

 _See See also [[/signal]], [[$signal]]._ [[$signal]]. 

 *Parameters* 

 <level> - The level for the event to trigger. 
 <name/matchtext> - The signal name/[[matchtext]] to listen to. 
 <commands> - The commands to be performed when the event listener's criteria is met. 

 *Example* 

 <pre> 
 ; Listen to the signal name 'test'. 
 on *:SGNAL:test:echo -ag Signal $signal was called with parameters $1- 

 ; Call the signal 'test' with the text 'Hello world' 
 /signal test Hello world 
 </pre>