And it stores a saved storage box for usage in console,
or other purposes..
This thread posted by Tsukihime gave me the idea to build this plugin:
i hated to not be able to access selfSwitches with "$gameMap.event(eventId)"
Storing self-switches in a global variable
ESS.Box
example img from console f8
THIS EXAMPLE DEMO USES 3 MAPS ,BUT ANY AMOUNT OF MAPS SHOULD WORK

$gameMap.event(12)._SelfSwitch
img example event_selfSwitch
------------
The selfSwitches storage is connected directly to Game_Event, it will also recognize spawned events without problems..
The plugin also adds a few selfswitch related scriptcalls,..
Terms: MIT LICENSE
free to use in any project
(edits are allowed aswell)
GitHub link
If anybody finds a bug ,pls let me know..