Script call to change self switches

Hello all.

Here is the script call if anyone needs to change self switches. Including self switches on other maps:

Spoiler
$gameSelfSwitches.setValue([mapId, eventID, 'A'], true)

You put the numbers in for MapID and Event ID. 'A' is just whatever self switch you are turning on. If you want to turn it off then change true to false.

(This code is the same as in MV).
Nice and quick tutorial! Any ideas on how could I check if a certain event self switch value?
@PauloHPBender You can use the following in a conditional script to check if a self switch is on:
Code:
$gameSelfSwitches.value([MapId, EventID, 'A']) == true
Lovely! Thanks a lot, this is a very useful piece of code!

Original thread: https://forums.rpgmakerweb.com/threads/script-call-to-change-self-switches.126474/