Project

General

Profile

On SIGNAL » History » Version 3

Per Amundsen, 02/24/2017 09:37 PM

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 2 Per Amundsen
_See also [[/signal]], [[$signal]]._
8 1 Per Amundsen
9
*Parameters*
10
11 3 Per Amundsen
<level> - The [[User Access Level]] for the event to trigger.
12 1 Per Amundsen
<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>