Local variable

Description
Local variables exist only while the script is executing, and they can only be referred to within the script. A script can use the same variable names as another script, because they cannot affect each other.

Local variables are removed from memory either manually through unvar (or like commands) or automatically when the script is terminated.

Syntax
%

Parameters

 * name
 * the name of a variable storing a value

Examples
var weapon $righthand echo You are wielding: %weapon timer start swing hog pause echo It took %t seconds according to Genie to swing your weapon!