Class: Game_Variables

Game_Variables

new Game_Variables()

The game object class for variables.

Methods

clear()

Clears all variables

initialize()

Initializes the variables

onChange()

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