Reset all self switches

I can't seem to find a command that resets all the self switches in the game.


I tried  $gameSelfSwitches.() -> ''undefined method 'call' for nil:nilclass''


I tried $gameSelfSwitches.clear() -> ''undefined method 'clear' for nil:nilclass''


I tried $game_self_switches=Game_Selfswitches.new but no dice, with or without spaces, this one didn't do a thing.


Help?


NVM 


$game_self_switches=Game_SelfSwitches.new worked. I just needed to reload the map.
Additionally, you don't need to reload the map. Just refresh it by call this script

Code:
$game_map.need_refresh = true

Original thread: https://forums.rpgmakerweb.com/threads/reset-all-self-switches.56485/