Class: Game_Variables

Game_Variables

new Game_Variables()

The game object class for variables.

Methods

Clears all variables
Initializes the variables
Processing when a variable value is changed

setValue(variableId, value)

Sets the variable value for the given variable id
NameTypeDescription
variableIdnumberThe variable id to set
valuenumberThe value to store in the variable

value(variableId)number

Get the variable value for the given variable id
NameTypeDescription
variableIdnumberThe variable id
Returns:
TypeDescription
numberThe value stored in the variable