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


Contact Me
Xide
Online Scripting Reference

pause

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



Return to item listing