In one of the projects I'm working on, enemy events wander the maps, and when they come in contact with the player, it starts a battle. When the hero wins, self-switch A is turned on, to make the event go away. But what I was wondering, is there a way to make a script, or something, that when the player leaves the map, the self-switches of any event with a given name, like 'Monster' is reset, so that the monsters respawn when the player leaves, and comes back.