Self Switch Access in Different Map

So I'm currently using game_guy's 'more self-switches' script. It can be found here: (you can read how the script works through the link)
I was wondering if there was a way to toggle/turn on/turn off a self switch even when the player is on a different map and through a different event.
RGSS3 Scripts is where people post their scripts.

I've moved this thread to RGSS Script Support. Thank you.

You can use:
Code:
$game_self_switches[[map_id, event_id, switch]]
Map ID should be the ID of the map you want to access. Event ID is the ID of the event. Switch is the name of the switch, e.g. "bird".

EDIT: should add how you use that.

In a conditional branch:
Code:
$game_self_switches[[map_id, event_id, switch]] == true
$game_self_switches[[map_id, event_id, switch]] == false

To set the switch on or off:
Code:
$game_self_switches[[map_id, event_id, switch]] = true
$game_self_switches[[map_id, event_id, switch]] = false
@A-Moonless-Night I'm wondering why you suggest using that script call in a conditional. I use it a lot, but I only put it in a conditional if that is specifically what is needed, otherwise it's just a straightforward script call as an event command. Also, I'm wondering about the 'name' you have given for the switch. I thought it had to be just A or B or whichever self switch you wanted to set. I don't want to hi-jack the thread if in fact there is a way of using that script call for something other than a self switch, but I did want to query it in case it causes any confusion (to someone other than me).
You can use:
Code:
$game_self_switches[[map_id, event_id, switch]]
Map ID should be the ID of the map you want to access. Event ID is the ID of the event. Switch is the name of the switch, e.g. "bird".

EDIT: should add how you use that.

In a conditional branch:
Code:
$game_self_switches[[map_id, event_id, switch]] == true
$game_self_switches[[map_id, event_id, switch]] == false

To set the switch on or off:
Code:
$game_self_switches[[map_id, event_id, switch]] = true
$game_self_switches[[map_id, event_id, switch]] = false
Thanks! That's exactly what I needed!
Also, I'm wondering about the 'name' you have given for the switch. I thought it had to be just A or B or whichever self switch you wanted to set
Technically, switch name could be anything more than A,B,C,D. But the engine limits it only with those letters. So you can't have more or rename it. In this context, OP uses more self switch script (linked above) that has an access to name their self switches as they want.
@TheoAllen Thanks for the explanation.

Original thread: https://forums.rpgmakerweb.com/threads/self-switch-access-in-different-map.96108/