Switches that stay on perminatly

Is it possible for there to be a plugin that allows switches to remain ON forever.

In other words, say a switch is turned ON, that switch remains on even should the game close.

How I picture it being set up is I can but a string of Switch IDs in a plugin parameter, and when one of those listed switches is turned ON at anytime, it will remain ON when the game closes and re opens.

An alternate easier method to this with similar result, is checking a save file and turning ON any of the switches in the suggested parameter that are ON in the save file when the game is booted.

I'm asking this cause I want to make an Undertale-style game.

If anyone could make me a plugin like this or direct me to a plugin that can do this, I'd greatly appreciate it.
Wait, you mean you want a switch to stay on even when the player starts a new game?
Once you turn a switch on, it is always on until you turn it off. If this is not happening for you, then you have added/done something to change the behaviour. Or you are not saving the file before closing the game.

If your switch is being turned off, check what plugins you have, and see if any of them use your switch. This is a common error people make - add a plugin and think it's plug-n-play. You SHOULD look at ALL the parameters of the plugin and set them up as you need them to be used. Sometimes this includes specifying a switch or variable id. If that's the case, you need to make sure you don't use that switch or variable for something else. A good way to avoid this is to give it a name even though you're not using it in events. It will stop you thinking it's unused.


If you want to turn on a switch and have even NEW games start with that switch on, then you are asking for "global" or "persistent" switches, which are shared between save files and not just within a single game. There are already plugins out there for that.
@Shaz , yeah persistent switches is kinda what I'm looking for. I'll look into it.
I added a note to my post but didn't realise you'd already replied. The other issue could be that you're just closing the game without saving, if your switch is only meant to affect the current save file. But a lot of other things would also be reverted to a previous state - lots of switches, events, player position, etc.

Original thread: https://forums.rpgmakerweb.com/threads/switches-that-stay-on-perminatly.89407/