My question is exactly what the title says: does there exist a script call that allows me to turn off Every switch all at once or am I stuck making a common event that has a TON of control switches?
How to turn off all switches at once via. Script
RPG Maker MZ SupportJup, here it is:
$gameSwitches.clear();$gameSwitches.onChange();Thank you, works like a charm 🙂
Um, just for the record… you don't need either a script or a ton of Control Switches for this. You can clear every switch with a single Control Switch by clicking on "Range" and typing in 1 to 9999.
....oh....lmao well thanks! That makes things less complicated.
I have one more question, is there a way to turn off Every self switch in every map all at once?
Of course:
$gameSelfSwitches.clear();$gameSelfSwitches.onChange();Nice! I'm planning on making a rouge like Game, so I need to reset all my switches when the player dies and such, so thats VERY helpful 😀
Original thread: https://forums.rpgmakerweb.com/threads/how-to-turn-off-all-switches-at-once-via-script.181259/