If...Then Event Confusion

So let me give a background on this.

Player goes to Fairy Shrine

Event AutoRuns. Doesn't allow player to continue until defeating Bandits In the next area

Player goes to Bandit Hideout (new map)

Runs into an abandoned house with an encounter of Bandit * 3

Player wins (hopefully)

Player goes to Bandit Leader house

Player defeats bandit leader (hopefully)

Player gets transferred back to fairy shrine for more dialog and is supposed to go to the castle

Here is my problem. I have an event at the exit to the castle that turns the player around if they haven't finished the bandit quest yet. Once they finish it how do I turn off that event? I have a feeling it relates to switches and that's fine and all I understand how to do them but can't figure out how to basically make the event turn off after the quest lol.
When the bandit quest is done, turn on a switch.


On the event at the castle, add another event page conditioned by that switch. Make sure the priority is set to Below Player.


That's it.
When the bandit quest is done, turn on a switch.

On the event at the castle, add another event page conditioned by that switch. Make sure the priority is set to Below Player.

That's it.
I knew it was something I was just over thinking. Thank you very much
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/if-then-event-confusion.16932/