How to get Enemy Movement to change based on Common Event?

I'm trying to get an enemy's movement pattern to change based on if the player is sneaking or not. I made a sneaking system be a common event that turns a Switch on and after 10 seconds that Switch gets turned off. The Common Event will play every time the player presses the S key via a plug in that I have installed, the Common Event is working just fine.
Here's the Common Event:

Sneak.png


What I can't get working is the enemy moving differently depending on if the Sneak Switch is currently on.
I want the enemy to move about and then pause for a few seconds as if it's not aware the player is there. I want Sneak to overwrite the enemy's movement.
This is what the current setup for the enemy:

Enemy Movement.png
You may want to take a step back and revisit some tutorials on events - you have several errors.

1 - only one event page is active at a time. Nothing you have on a different page will have any effect on what's currently happening.

2 - You don't have any of the Conditions checked, so there's no way for the game to distinguish which page is being used. It will always use the highest-number event page that meets its conditions.

You need to use the Autonomous Movement section with a custom move route to direct the event.

One page has the regular movement, the second page has the Condition of the Sneak switch and has the responding-to-sneak movement. Both pages are Player Touch trigger and have the same event commands to start the battle.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-get-enemy-movement-to-change-based-on-common-event.168721/