looking for a way to interact with events and then turn self-switches on other events.

What the title says. I want to be able to activate self-switches of events when not directly interacting with them. Is it possible? Thanks for reading!!!
the easiest way is to use a scriptcall like those:
JavaScript:
// Turn off/on Selfswitches
let ss = [MapID, EventID, SelfSwitchID];
$gameSelfSwitches.setValue(ss, 1)

// 0 = OFF/false, 1 = ON/true

change MapID to the MapID number,
change EventID to the ID of the event on that Map(id)
change SelfSwitchID ("A", "B", "C", "D")

use quotes on the letter or it throws an error.
Just as a quick addition, even though the editor shows IDs with leading zeros (001, 036, etc.) you can't type them that way or it'll be interpreted as octal values and glitch what you're trying to do. (1, 36, etc.)
the easiest way is to use a scriptcall like those:
JavaScript:
// Turn off/on Selfswitches
let ss = [MapID, EventID, SelfSwitchID];
$gameSelfSwitches.setValue(ss, 1)

// 0 = OFF/false, 1 = ON/true

change MapID to the MapID number,
change EventID to the ID of the event on that Map(id)
change SelfSwitchID ("A", "B", "C", "D")

use quotes on the letter or it throws an error.
Worked perfectly fine! Thanks a lot. It really helped me.

Just as a quick addition, even though the editor shows IDs with leading zeros (001, 036, etc.) you can't type them that way or it'll be interpreted as octal values and glitch what you're trying to do. (1, 36, etc.)
Thanks for the heads up! I'll remember this so I don't get an error.
One last warning: It will let you set that new self switch EVEN if that map or event doesn't exist at all. So be accurate and double check it before running it.
One last warning: It will let you set that new self switch EVEN if that map or event doesn't exist at all. So be accurate and double check it before running it.
Thanks for the warning. I'll be sure to double check when doing this.

Original thread: https://forums.rpgmakerweb.com/threads/looking-for-a-way-to-interact-with-events-and-then-turn-self-switches-on-other-events.154199/