Need Help With Making 3 Events Work Well Together [SOLVED]

Goal: The player steps on an event that creates a control variable and activates a parallel process to transport them to 1 of 10 possible rooms. The player then walks and steps on a 2nd event that initiates a battle with an NPC. Immediately after the battle, the player is transported to the original room (not on the 1st event).

Problem: After battling the NPC, the player is sent back to the 2nd room, not the first room.

I can't seem to figure out what I did wrong.
Spoiler: Screenshots of Events
Ace Screen1.JPG
Ace Screen2.JPG
Ace Screen3.JPG
Ace Screen4.JPG
There's no point to putting Exit Event Processing at the bottom of every event. That's like putting a line that says "Stop reading" at the bottom of every page in a book - it's just what happens. An event gets to the end and it stops.

I also don't see a point to including the event page condition of a variable being 0 or above - that's going to always be true unless you manually set it to a negative value someplace.

As an organizational thing, I would not choose to make 11 event pages with parallel triggers. I would simply have that one, first event page and go down it using Conditional Branches to check the value of the Random Boss variable and transfer the player to the appropriate room.

The way you have it means if the player should ever go back to that map for any reason, they'll immediately get shunted away to map 105 because the variable is still 0 or greater and the Self Switch is still on (which I suspect is what you're saying your problem is).

I'd make your first event be one page, use conditionals to see where to send the player, then at the bottom turn on self switch A to a second, blank page so it never gets processed again.
There's no point to putting Exit Event Processing at the bottom of every event. That's like putting a line that says "Stop reading" at the bottom of every page in a book - it's just what happens. An event gets to the end and it stops.

I also don't see a point to including the event page condition of a variable being 0 or above - that's going to always be true unless you manually set it to a negative value someplace.

As an organizational thing, I would not choose to make 11 event pages with parallel triggers. I would simply have that one, first event page and go down it using Conditional Branches to check the value of the Random Boss variable and transfer the player to the appropriate room.

The way you have it means if the player should ever go back to that map for any reason, they'll immediately get shunted away to map 105 because the variable is still 0 or greater and the Self Switch is still on (which I suspect is what you're saying your problem is).

I'd make your first event be one page, use conditionals to see where to send the player, then at the bottom turn on self switch A to a second, blank page so it never gets processed again.
Thank you, your advice worked great. I'm a super novice. I was putting exit event processing as an unnecessary precaution because I heard of games that were bloated with events that had never stopped running. I understand now that the problems those games had must have been from a lack of utilizing switches or a wrong way of using autorun trigger events.
I was putting exit event processing as an unnecessary precaution because I heard of games that were bloated with events that had never stopped running.
That won't stop that.

If you have an event that's autorun or parallel, it will attempt to run every frame - 60 times per second.

The only thing Exit Event Processing does is tell the event to skip to the bottom of the page. If it's autorun or parallel, it will immediately restart the next frame again.

Erase Event will make it stop running until the next time the map is loading, and another event page with a condition will make it stop running for as long as the condition is met.

You might want to go through some proper event tutorials to get a better understanding of how those event types work and what some of those event commands do.

Glad you got it working.
This thread is closed due to being marked as solved. If you need it reopened, report it to let us know. Thank you!

Original thread: https://forums.rpgmakerweb.com/threads/need-help-with-making-3-events-work-well-together-solved.171487/