Say an actor's TP gauge reaches 100 or 0. Is there a way to turn a switch on or off when that happens?
TP turns on/off a switch?
RPG Maker VXAce SupportConditional branch. It would work something like this.
Control Variables: [Variable Name] = Script: $game_actors[x].tp
Conditional Branch: Variable[Variable Name] = Constant 0
Control Switches: [Switch Name] = ON
Branch End
Do the same for 100 if you wish. You can make that a regular event or a common event depending on what you want to use it for.
Control Variables: [Variable Name] = Script: $game_actors[x].tp
Conditional Branch: Variable[Variable Name] = Constant 0
Control Switches: [Switch Name] = ON
Branch End
Do the same for 100 if you wish. You can make that a regular event or a common event depending on what you want to use it for.
Original thread: https://forums.rpgmakerweb.com/threads/tp-turns-on-off-a-switch.61953/