Is it possible to stop part of a movement route from replaying?

I am creating an event, that chases a player through multiple rooms. To give the player some breathing room, when the player enters a new room, I set the event by the door the player entered. It starts as transparent, waits 90 frames, then turns off transparency and move towards player as usual, while skipping if the event cannot move. The problem is, if the event gets stuck on an object while chasing the player, it will repeat the movement route, causing it to become transparent for a second and then blink back and chase the player again (if its completely stuck it will just continuously blink).

Untitled-1.jpg


Is there a script (or a plugin I can download) that would work like a conditional branch preventing part of the movement route from occurring? (I.E. the transparent part of the movement route.) Any other solution to this would be appreciated too.
Moved to: MV Support

Use two events.

The first will be your chasing event. Do not give it a move route. Do not give it a sprite. Just add whatever trigger you want (event touch I guess) and the commands to run if it catches the player.

The second will be the controlling event. It will be a parallel process event. Make it wait 90 frames then a move route to change the graphic on the chasing event. Then another move route on the chasing event that has the script calls and the move towards player. Make it repeat and skip if can't move.

I'm not sure why you have Move toward Player so many times in that list - if it's a repeating move route, you only need that command once. Unless at the bottom of it all, you have something different. Finally, after applying the move route to the chasing event, make your parallel process Erase Event.
Can't you just make an event with 2 pages?
Page 1 has no image and:

Wait 90
Set self switch A on

Page 2 requires self switch A on, has the image you want and your move commands
Yes, if you don't want it to repeat when you come into the room next.
I actually discovered another solution on my own. For anyone looking to do the same, I would check out Yanfly's Move Route Core plugin. It's part of their free plugins. It allows you to input specific scripts into a movement route. All I needed to do was type in "CRASH MOVE TO: PLAYER" (without quotations) and it did the job for me. Surprisingly easy!

Untitled-1.jpg


Regardless, thank you for the help.

Original thread: https://forums.rpgmakerweb.com/threads/is-it-possible-to-stop-part-of-a-movement-route-from-replaying.139602/