ToggleController
┗> Event > Object > Class
A controller that toggles the existence of events in maps in the Overworld.
Unlike load control properties such as flagcheck
and cond
, toggle immediately updates the loaded state of objects based on its flag, rather than requiring a room reload.
ToggleController
is a controller
- naming an object toggle
on a controllers
layer in a map creates this object.
See this object's Fields for the configurable properties on this object.
Fields
ToggleController.flag: string
[Property flag
] The name of the flag to check for whether targets should be active - if !
is at the start of the flag, the check will be inverted
ToggleController.flag_value: boolean
[Property value
] The value that flag
should be for the controller targets to be active
ToggleController.inverted: boolean
[Property inverted
] Whether the flagcheck is inverted such that if flag
is flag_value
, the controller targets are inactive, and active otherwise
ToggleController.target_objs: (Character|Event)[]
[Property list target
] A list of objects that this controller is attached to