Skip to content
MicroBlaster edited this page Nov 11, 2019 · 2 revisions

Purpose: Pauses the script's execution, allowing it to wait for its triggers to activate.

Syntax: pause

Notes: There exist 3 ways to pause a script, these are:

"pause"
"waitFor"
"waitOn"

Pause is the most commonly used method. A script's triggers will not activate unless the script is paused and waiting. If a script becomes paused while no triggers are active, it will hang uselessly.

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

Clone this wiki locally