User Login
Name
Password
Site Contents
News
About
Download
Scripts
Tutorials
Register
Support
FAQ
Script Reference
New User


Contact Me
Xide
Online Scripting Reference

killTrigger

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



Return to item listing