Skip to content

getScriptVersion

MicroBlaster edited this page Nov 10, 2019 · 2 revisions

Purpose: Reports the version of the compiler used for a compiled script. (*.cts)

Syntax: getScriptVersion {filename} var

Notes: TWX Proxy 2.02 scripts report version 1, 2.03Beta reports version 2, 2.03Final reports version 3, 2.04 reports version 4.

Example:

# Check compiled script's version before opening
getScriptVersion "scripts/buydown.cts" $ver
if ($ver <> 4)
	echo "*You need to update the buydown.cts file*"
else
	load "scripts/buydown.cts"
end

Clone this wiki locally