Event Going off in Wrong Order

Okay, so I'm trying to do an NPC event where the person you're talking to causes another character to move to their location (this character that moves to them is an event so that it can move it), changes their sprite, you battle, and then you talk some more. But for some reason, the event starts on the last page of the event list (aka it starts on tab 3 as shown in the pictures). Could someone help me out? I have the appropriate screenshots below. Expedient help would be appreciated, as I need to get this game turned in for the game dev fort contest tommorrow.

Ninja Elder Event Pt 1.PNG

Ninja Elder Event Pt 2.PNG

Ninja Elder Event Pt 3.PNG

Ninja Elder Event Pt 4.PNGNinja Elder Event Pt 5.PNG

Ninja Elder Event Pt 6.PNG

Ninja Elder Event Pt 7.PNG

Laye Event.PNG

The first 7 are for the elder event that I'm having problems with, the last one is for the Laye event which is just moving the character that dissapears after the battle with the elder.
You are using the same switch for pages one two and three, the game will read from the highest applicable tab meaning it will always read three in this case since you used the same switch on every tab.

-Also it seems a lot of this could be managed on one event page rather than multiple pages-
Yeah, that's what I thought about the event. But the problem is I want to change the graphic to the one on pg 2. How would I change the graphic mid-event?
All 3 pages have the same switch, so it will read from the end to the beginning.

You should change the switches on the first two pages.  Perhaps to Self Switches that trigger the next page.   🤘

Edit:  Leave page 1 alone.  Add Self Switch A to page 2 and trigger from page 1.  Add Self Switch B to page 3.  Trigger from page 2.
So like, as one finishes, I turn on a self switch so that it will go to the next page?
All of your three tabs have the same condition (switch 6 ON). Since the engine reads pages from the right to the left until it finds a matching condition with the current switches states, it'll never read the first two pages.

You have to set different conditions for each page, be it a switch, a variable value, anything as long as it's the only unique condition for this page to start.

And multi ninja'd :ninja: , but you got the point 😉
Ahhhh okay. Is there a reason why it reads from the last page to the first rather than the other way around?
Yes.  At the end of page one, trigger self switch A and add Self switch A as a requirement for page 2.  Repeat with Switch B.  It should go off without a hitch.   🙂
Awesome. Thanks for your help, everyone 😀
It's part of how logic commands function within programming code.  I'm not sure exactly why, but I think it has something to do with not having to re-read every evented page every time, rather opting to focus on "the most relevent data" first.
Ahhhh okay. Is there a reason why it reads from the last page to the first rather than the other way around?
It had to be one or the other 🙂

It's like sorting as First in First out (FIFO) or Last in First out (LIFO). Both empty the stack, just a question of what logic you prefer to use.
Um ... you can do a Set Move Route > Change Graphic command to change an event's graphic temporarily (until the switch is turned on that will permanently change it).
Ahhhh, okay. Also nice to know if I don't want to use multiple pages for events.
Um ... you can do a Set Move Route > Change Graphic command to change an event's graphic temporarily (until the switch is turned on that will permanently change it).
But not if it's a specific graphic within a spriteset. Using Change Graphic within Set Move Route will select the entire 12 image spriteset that controls directions and stepping. Directions you can manage by setting the direction prior to changing the graphic, but it can be tricky. However to my knowledge, you can't preset your stepping animation.

If you're trying to select a specific graphic that falls to the left or the right of a 12 image spriteset (the stepping animation sprites), I would recommend using a Self Switch to connect you to the next page. On that next page, you can set the primary graphic to your desired graphic in the direction you wanted. If you're wanting that next page to flow continuously without having to reclick it to activate the event, set it to Autorun. It'll change the graphic and continue with what you're trying to do. Don't forget the self switch to end it.

Original thread: https://forums.rpgmakerweb.com/threads/event-going-off-in-wrong-order.43320/