Skip to content

loadGlobal

MicroBlaster edited this page Sep 16, 2019 · 1 revision

Purpose: Loads a variable from a global array without all that mucking around in INI files.

Syntax: loadGlobal var

var: The name of the varable to loaded from Globals.

Notes: Variables can be stored in one script and loaded in another, but data will be lost when TWX closes or clearGlobals is called.

Example:

#Sending script
clearGlobals
saveGlobal $CommandOptions
load "script2.ts"

#Receiving script
loadGlobal $CommandOptions

Clone this wiki locally