-
Notifications
You must be signed in to change notification settings - Fork 8
killTrigger
MicroBlaster edited this page Nov 10, 2019
·
2 revisions
Purpose: Terminates a trigger.
Syntax: killTrigger {name}
{name}: The name of a trigger to terminate.
Notes: This command can be used to terminate any sort of script trigger (TextTrigger, TextLineTrigger, DelayTrigger, EventTrigger, TextOutTrigger, etc).
If the specified trigger doesn't exist, the script ignores the command and continues as normal.
Example:
# see if we have a planet scanner
setVar $scanner 0
send "i"
setTextLineTrigger 1 :HasScanner "Planet Scanner"
setTextTrigger 2 :DoneTest "Command [TL="
pause
:HasScanner
setVar $scanner 1
killTrigger 2
:DoneTest
killTrigger 1
.