$followed by an identifier (name). The global variable name is any combination of letters, digits and
$variable1 $100 $____
VCSmodes. Its name is prefixed with
$_var. The value of this variable persists across saved games. Global variables denoted by
$var) are not saved and they get blank values when the LCS or VCS game loads.
TIMERB. The value of a timer variable is increased automatically when the game clock advances, so they are commonly used to measure time elapsed since the timer reset:
0058for integer values and
0059for floating-point values.
VAR..ENDconstruct allows to declare variables and their types for the advanced use.
var <variable>: <type> end
Int- integer values
Float- floating-points values
ShortString- a variable containing a string literal with the fixed length (only for the arrays, use
LongString- a variable containing a string literal with the variable length (only for the arrays, use
LongString) using only the type name.
<type> <variable name>
=and then the value:
$fVaris now declared as
Floatand the compiler adds the opcode
0005in the script: