A switch keeps turning itself off all by itself! Please Help!

I noticed that my common event that changes a character's graphic when he has the shrunken state was no longer working and the one thing I did to troubleshoot was create a debug event that turns the switch on and it fixed the issue.

I then spent three hours trying to figure out how that switch got turned off and found nothing.

The thing is, the switch turned itself back off again after another run of test play. Literally the only things that happened since the switch was turned back on was, I was in a town, I talked to an NPC that heals me, went to the world map, and then fought a random encounter. That was literally it and the switch is off again!

I checked the town and the NPC, I checked the world map, I checked both the troop events and all the skills the troops had, and I checked literally all common events and there is literally nothing that is telling it to turn Switch #1 off but it keeps turning off on its own! There is no parallel processes or common events in the areas I was that tells it to turn Switch #1 off.

The only parallel processes on the world map are ones to apply a Hot status effect when in a desert region and a Cold debuff when in a snowy region and neither of those turn switch #1 off

The NPC that heals you does not turn it off and there is no parallel processes in the town. None of my common events or skilled used since it last worked tell it to turn the switch off. It is literally turning off on its own.

Does anybody know what the problem could be?
Do any of the scripts you're using use switch 1 for something?
This one is the only one:

1698766622039.png
This one is the only one:

View attachment 282093
Have a think through this logically and see if you can figure out why using the same switch for playing a sound on level up as you do for changing an actor graphic might end up with it being on/off when you want it off/on.
Well, I do not know how the script works so I do not know where to start.
Well, I do not know how the script works so I do not know where to start.
You don't need to know how the script works; all you need to know is that it's reserved switch #1 for a specific function that you requested from a scripter, so you either need to change that 1 to a different ID so that it uses a different switch, or pick a switch for your shrink that isn't being used by something else.
Well, I do not know how the script works so I do not know where to start.
You need to know zero things about how it works.

You know that you have the same switch number in two places serving two different functions. That should be logically obvious that they can't both be working.

If someone tells you "Say yes if you want me to hit you," then "Say yes if you want a sandwich," what will happen if they ask "Do you like puppies?"
You need to know zero things about how it works.

You know that you have the same switch number in two places serving two different functions. That should be logically obvious that they can't both be working.

If someone tells you "Say yes if you want me to hit you," then "Say yes if you want a sandwich," what will happen if they ask "Do you like puppies?"
In this analogy it's more like they went "Say yes if you want a sandwich" and then "Do you like puppies?" and you said "Yes" and they gave you a sandwich. And then they said "Say yes if you want me to hit you" and then "Do you like puppies?" and you said "Yes" and they hit you, and you were confused because you were expecting a sandwich. 😛
@Trihan No, it's more like they asked, "Do you live in your house?" and you said "Yes," and they punched a puppy with a sandwich.

No, wait, now I'm confused.

...which is what happens when you use the same switch to do more than one thing.
@MoltresRider
Please follow the link "how to use a script" in my signature to learn how to configure scripts - that is more complex and less standartized than the later plugins.

and you always have to make sure that every script is configured correctly to prevent problems like the ones above.
Just make a decision on which script will use switch #1 and which one will get a different switch to perform its predefined tasks. Normally, this just means that 1 script with constant set to 1 needs to be changed to, I don't know, 100 perhaps?

Original thread: https://forums.rpgmakerweb.com/threads/a-switch-keeps-turning-itself-off-all-by-itself-please-help.162552/