Eventing Help: My Patrolling Encounters Seem to Have a Problem...

So a little background. I'm making a game that uses both on map encounters and random encounters. The on map encounters are much tougher enemies that patrol a certain route and sometimes chase you if you get too close. Once they touch you, they initiate combat. So it's much like F.O.Es in Etrian Odyssey.

So I can easily enough make an event patrol a certain route by giving it a custom route that repeats in the event editor. Then on event touch I initiate the battle with the run option. So since these enemies are much tougher, its advised that players run from them until they are up to par and can defeat them. Run option would be used a lot. Here is the issue.

So at first, I had just the run option bare. But the event would just trigger the battle again instantly. So I made the run option have a self move event that made the event semi transparent and waited for three seconds. Perfect. Enough time for the player to run. But this screws the custom move route somehow. It's like because the player is in the way it loses a step and turns to early getting stuck on a wall. And this happens even if "ignore if can't move" is off. I'm not sure why this is happening. And this is only the case if the event triggers combat, it works fine otherwise.

I would post a screenshot, but I deleted the event out of frustration. I can build it again, just it will take some time right now.

EDIT: Here is the event. The custom route is nothing but a series of rights, downs, lefts, and ups, to get it to patrol a certain area in a circle.
Yes, because you're replacing a move route with a move route.

You could just do a Wait X seconds so the enemy stands still and the player gets a chance to run. If you really want the enemy to disappear, add a Script command that does this:

this.character(0).setOpacity(0);

followed by the Wait X seconds (or frames), followed by another Script command:

this.character(0).setOpacity(255);

That way you're making the event invisible (it will keep moving along its move route) but not overwriting the existing move route with another.

If that doesn't work, it may be that triggering a battle and going to a different scene is what's resetting the move route.
Yes, because you're replacing a move route with a move route.

You could just do a Wait X seconds so the enemy stands still and the player gets a chance to run. If you really want the enemy to disappear, add a Script command that does this:

this.character(0).setOpacity(0);

followed by the Wait X seconds (or frames), followed by another Script command:

this.character(0).setOpacity(255);

That way you're making the event invisible (it will keep moving along its move route) but not overwriting the existing move route with another.

If that doesn't work, it may be that triggering a battle and going to a different scene is what's resetting the move route.

If I did a wait command, wouldn't the player not be able to move?
Alright, so using Yanfly's YEP_MoveRouteCore.js and the Crash Move To command, I was able to use my original event as I had it and maintain the patrol route with no problems.
Thread closed IgnoreMe

Original thread: https://forums.rpgmakerweb.com/threads/eventing-help-my-patrolling-encounters-seem-to-have-a-problem.82906/