On SIGNAL » History » Version 1
Per Amundsen, 11/15/2015 03:16 AM
1 | 1 | Per Amundsen | _Added in 1.9.0_ |
---|---|---|---|
2 | |||
3 | *<notextile>on <level>:SIGNAL:<name/matchtext>:<commands></notextile>* |
||
4 | |||
5 | Triggers if a script has used the [[/signal]] command to send a signal to all scripts. |
||
6 | |||
7 | See also [[/signal]], [[$signal]]. |
||
8 | |||
9 | *Parameters* |
||
10 | |||
11 | <level> - The level for the event to trigger. |
||
12 | <name/matchtext> - The signal name/[[matchtext]] to listen to. |
||
13 | <commands> - The commands to be performed when the event listener's criteria is met. |
||
14 | |||
15 | *Example* |
||
16 | |||
17 | <pre> |
||
18 | ; Listen to the signal name 'test'. |
||
19 | on *:SGNAL:test:echo -ag Signal $signal was called with parameters $1- |
||
20 | |||
21 | ; Call the signal 'test' with the text 'Hello world' |
||
22 | /signal test Hello world |
||
23 | </pre> |