Autorun repeating itself, even with switch on event page.

Just as the topic title says, I don't understand, maybe I'm doing something wrong. Sometimes ill make an autorun event, and at the very end of the event,  ill have a switch set up to turn on to activate another autorun event on my map, and during the test play it will completely ignore the switch and keep repeating the 1st autorun. So I ended up having to have to make a 2nd page for my 2nd autorun event and have a self switch turn on to stop the event, as well as turn on the switch on that new 2nd page. My question is...why does it seem like sometimes, I don't have to make a 2nd page, to activate a switch, and other times I do? Is there a autorun element, that I'm over looking?
The autorun event with the lowest event ID is the one that plays.  Your best bet is to try to put all autorun pages in the same event or have the switch both activate a blank page on the first event and enable the second event.
Activating ANOTHER event with a switch does not DEACTIVATE the current one.


You need to put a new page on each event, conditioned by that switch, to actually STOP the autorun event.


It sounds like you're doing some sort of cutscene where you want to have events do different things one after the other. Setting them up as autorun with lots of pages and swapping between them using switches is not a great way to do it (as you've already discovered). Just have ONE event that controls everything, and use other events just for other NPCs (your controlling event will tell them where and when to move).


There's a blog article that explains this nicely:


Events Aren't NPCs: The Biggest Mistake in Cutscene Events
I ususally contain all autorun events to one event. When I need to end the autorun, I either use Self Switch for autorun events without a whole lot of detail, or variables if it's fairly complex with many branching choices. If, for some reason, you want to change one autorun for another, then simply put up a variable so that one ends and the other begins. I hope this was helpful.

Original thread: https://forums.rpgmakerweb.com/threads/autorun-repeating-itself-even-with-switch-on-event-page.18659/