Description

Enables or disables a switch. Changing a value, you refresh the game events These are influenced by the change in value. They can activate or deactivate a new page and run commands event

Usage

Parameters

  • switch_id {Integer}

    Switch identifier

  • true {Boolean}

    to enable, false to disable

Example

RPGJS.Switches.set(4, true);

Discussion