Familiar territory. Game_Switches keeps the RPG Maker MZ API, so existing MZ knowledge, tutorials and plugin code apply. Reactor's additions are marked with descriptions below.
Quick Reference
Setup & Creation 1
| initialize() | Sets up a new instance. |
Getting Information 1
| value() | Value. |
Actions 2
| clear() | Clear. |
| setValue() | Sets the value. |
Events, Commands & Input 1
| onChange() | Called when change happens. |
Setup & Creation
initialize
method sourceGame_Switches.prototype.initialize()
Sets up a new instance. (Same as the RPG Maker MZ method of this name.)
Getting Information
value
method sourceGame_Switches.prototype.value(switchId)
Value. (Same as the RPG Maker MZ method of this name.)
Actions
clear
method sourceGame_Switches.prototype.clear()
Clear. (Same as the RPG Maker MZ method of this name.)
setValue
method sourceGame_Switches.prototype.setValue(switchId, value)
Sets the value. (Same as the RPG Maker MZ method of this name.)
Events, Commands & Input
onChange
method sourceGame_Switches.prototype.onChange()
Called when change happens. (Same as the RPG Maker MZ method of this name.)