How to prevent a Random Moving Event Accidentally stand on Set Route of a Autorun Event?

If I let the NPCs randomly move on the map, isn't that possible that, for example, NPC A moves to (11, 26), which at the same time Autorun Event B is triggered and it's going to move to the (11, 26), and this cause the game to stuck?

If that situation is possible, how should I prevent that?
Except for simply use the "skip if cannot move" feature, because I want to let the Autorun Events have higher priority, which means NPCs should "move away" for the Autoruns, not Autoruns skip something for NPCs.
Some alternative solution :
  1. Turn the autorun event "Through ON" only when it's moving. This way no obstacle will hinder its way since it will just walk through them.
  2. Make events with random movement stop moving while this autoran event is executed by using switch and event page.
Alternatively, if this doesn't block something else, put a totally blank event where you don't want the NPCs to go, set to below player priority. No event will walk over another event. When I do this I put a comment on the commands page of the event reminding me that this is a movement blocker, otherwise I might come back to it months later, think "what's this doing here?" and delete it.

If this suggestion is too complicated because of the number of events you would need, then yet another option would be a plugin which restricts NPCs to certain regions. Such plugins do exist, but personally I always recommend that people try a non-plugin solution first to minimise plugin bloat/conflict.
Some alternative solution :
  1. Turn the autorun event "Through ON" only when it's moving. This way no obstacle will hinder its way since it will just walk through them.
  2. Make events with random movement stop moving while this autoran event is executed by using switch and event page.
Thorugh on is a good one, but it might also cause some problems like the autorun event running through the building? Especially since I'm using Yanfly's Extra Move Plugin's "Move To: x, y" feature
I think the randomly moving events are automatically stopped if an Autorun event is triggered?
Alternatively, if this doesn't block something else, put a totally blank event where you don't want the NPCs to go, set to below player priority. No event will walk over another event. When I do this I put a comment on the commands page of the event reminding me that this is a movement blocker, otherwise I might come back to it months later, think "what's this doing here?" and delete it.

If this suggestion is too complicated because of the number of events you would need, then yet another option would be a plugin which restricts NPCs to certain regions. Such plugins do exist, but personally I always recommend that people try a non-plugin solution first to minimise plugin bloat/conflict.
One big reason I'm having this concern is that I'm using a lot of Yanfly's "Move To: X, Y" feature to set the move route, so I want to keep that X, Y spot event-free when needed.
The blank event method is actually quite good? Maybe I can just use 4 empty event to protect the X, Y spot I'm going to use, but I might need really a ton of events to do this....

Original thread: https://forums.rpgmakerweb.com/threads/how-to-prevent-a-random-moving-event-accidentally-stand-on-set-route-of-a-autorun-event.117695/