Alright so we all know how Erase Event works. The event is erased, then when you re-enter the map the Event comes back until you erase it again.
I want to do something similar but with self switches.
On entering the map, all the events run an autorun that sets up the technical details and it's graphic. It then turns on a self switch, which makes it interactive by touching it.
Now, if the player leaves the map, or saves in the map, when he returns all the events don't have graphics because they didn't run the autorun.
My solution was to run a self-switch reseter on autorun in the top left like this:
for i in 1..30
$game_self_switches[[$game_map.map_id, i, "B"]]=false
$game_map.need_refresh = true
But I would rather just leave it up to the event instead of do it in a batch which may reset other event's self-switches accidentally.
Is there an easy, simple way to make a self switch reset on map enter/leave, preferably without making a new event?