Reset switchs and variables

Hello !
Is it possible to set all switchs to off and reset variables to zero easily (like a script call...) ?
Well, usually all switches and variables are already off.
Yes but I need this during the gameplay (when hundred of switchs are already set to ON, same for variables).
Any idea ? 🙂
Code:
$gameSwitches.clear();
$gameVariables.clear();
$gameSelfSwitches.clear();
Wow thanks a lot ! You save me. :ywink:
For the record.
You can set ranges of switches or variables to a specific value using eventing.
So you can set a range of Variable/ Switch IDs to 0/OFF respsectively.

Original thread: https://forums.rpgmakerweb.com/threads/reset-switchs-and-variables.93534/