Issue with switches

This seems to be happening with multiple events for me.

What I'm doing for story cutscenes (and I have a lot of them, Catty Lands is SUPER story heavy) is put all the cutscene processing into one event, with separate pages that do different things (or nothing at all) according to the switches.

I've been using self switches a lot so I don't have tons and tons of normal switches. In one example, after an event is done with switch "story:MeetAretia" on, it puts self switch "B" on and the autorun stops and won't repeat. Two cutscenes in different locations follow, after which it goes back to the first one and the event is triggered again, but this time "story:MeetAretia" is off and "story😛reEiraKidnapped" is on. I've tried to have self switch "B" on (or even another normal switch on) and turn that switch off after all the other stuff happens, or turn on a different self switch, after which it switches to a page with nothing.

But RMVXA seems to be jumping the gun and turning off/on the switches BEFORE doing anything else, making it impossible to advance in the game. This has happened once before with a different cutscene handler. I've thought of a way around this one, but I just wanna know if switches do that a lot without waiting for other stuff to happen.

If you want screenshots please say so.
You'd need to provide us, I dunno, with screenshots and the like to see what might actually be happening there.
I would recommend you to organize the flow of your story first if it's that complicated.
Perhaps make a flow chart.
Use variables for anything that has a progression to make things easier and also relieve the use of switches.
Try to avoid using labels.
This will help reduce complications a lot.
When everything is well documented and planned beforehand it's bound to not fail.

I don't actually get what's your problem.
Sounds like you're saying the switches turned on/off by themself.
But you did say you put everything in a single event with multiple pages.
I can only guess it's something to do with page priorities.
When you are working with multiple pages, just remember that normal event (action, touch, autorun) ALWAYS finishes its entire page first before checking its page condition again disregarding any conditional changes midway.
Thanks for the responses. What exactly are labels? I don't think I've been using them.

I was about to do a screenshot when I decided to try something else, and I was able to fix the specific problem. =)

Kuro, why and how do you recommend using variables instead of switches?
Like when you get 3+ choices a player can make for instance...
how do you recommend using variables instead of switches
Generally the quick answer is fewer objects used. You would theoretically only need one variable for whatever number of switches for each event
Use numbers for the variable and you only use one variable (plus you can use all 99 pages supported by the engine for the same event) instead of multiple variables/switches for every instance.
The engine starts on the last page of the event and works backwards until it finds the page it meets all the conditions for.
Page 1 is set to variable 1 = 1 and page 2 is set to variable 1 = 2. When the variable 1 = 1 then it uses page 1, when it is 2 it uses page 2. It doesn't go to page 1 because it already reached a page it met the conditions for. So going up and down is easy, just change the variable.
Generally the quick answer is fewer objects used. You would theoretically only need one variable for whatever number of switches for each event
Use numbers for the variable and you only use one variable (plus you can use all 99 pages supported by the engine for the same event) instead of multiple variables/switches for every instance.
The engine starts on the last page of the event and works backwards until it finds the page it meets all the conditions for.
Page 1 is set to variable 1 = 1 and page 2 is set to variable 1 = 2. When the variable 1 = 1 then it uses page 1, when it is 2 it uses page 2. It doesn't go to page 1 because it already reached a page it met the conditions for. So going up and down is easy, just change the variable.
Thanks. I made a variable for if cutscenes are running (0 for no, 1 for yes) and I think it will ultimately make development a lot easier.

Original thread: https://forums.rpgmakerweb.com/threads/issue-with-switches.126407/