Class in reactor_objects.js

Game_Switches

5 public functions in 4 groups · show internal (_) functions

Everything here is tracked by Game Objects: the party, the map, its events.

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 source
Game_Switches.prototype.initialize()

Sets up a new instance. (Same as the RPG Maker MZ method of this name.)

Getting Information

value

method source
Game_Switches.prototype.value(switchId)

Value. (Same as the RPG Maker MZ method of this name.)

Actions

clear

method source
Game_Switches.prototype.clear()

Clear. (Same as the RPG Maker MZ method of this name.)

setValue

method source
Game_Switches.prototype.setValue(switchId, value)

Sets the value. (Same as the RPG Maker MZ method of this name.)

Events, Commands & Input

onChange

method source
Game_Switches.prototype.onChange()

Called when change happens. (Same as the RPG Maker MZ method of this name.)