Remote Self-Switches

I'm looking for a way to have one event trigger a self switch of another event on the same map.

I know in ace there's a script for this, but as this is MV and it's still new I suspect that there isn't such a plugin yet.

Though I am curious if there's anyway to do this with a normal script call? Anyone knows if that's possible or if there's a plugin for this yet?
There is a plugin that ships with the engine (so has been available for as long as MV has been available) that will do this for you. It's a kadokawa plugin, and is called Outer Self Switch.
Can it be cross map though? That one only works on events on the same map I believe.
So it does.  I wonder why they added that limitation.


Put this in a script call:

Code:
$gameSelfSwitches.setValue([map, event, selfswitch], value)

where map is the id of the map the event is on,


event is the id of the event you want to change,


selfswitch is the self switch you want to change (has to have ' or " around it), and


value is true to turn the self switch on, or false to turn it off.


Don't use leading zeros for the map or event id.


So, to turn off self switch A of EV003 on Map015, the command would be:

Code:
$gameSelfSwitches.setValue([15, 3, 'A'], false)
Thanks! That did the trick 🙂

Original thread: https://forums.rpgmakerweb.com/threads/remote-self-switches.52280/