Eoncounter for moving events

Howdy dear makers,

Could you help me to solve a problem?

I use specific moving system in my game world map. Basically the player is a pointer and moves around the map to choose where to go for a plane event. When the player hits enter, the plane event starts to go to the target tile by auto pathing.

The problem is encounters. Since encounters works only when real player moves, no encounters are triggered when the plane event moves to the target tile. How can I change that encounters would be triggered only when the plane event moves?

Another problem is that it should look at the region Id of the plane event tile, not player pointer tile. Any ideas how to make it? Thank you in advance!

Just in case since my Engrish is not very clear, please find attached picture with a visual explanation.

P.S. One way to solve it is to fade down, teleport player to the plane place, then change player graphics to the plane and enable encounters before player auto pathing starts. But I can't change player graphics to the plane and make it happen to auto move player plane instead of event plane, because I need a possibility to move a pointer around the map even when the plane is on the route.
you can't use the default encounter, so you need to make your own encounter mechanic.
For each step that the plane is commanded to move (you do that somewhere after all), call a common event to check if an encounter happens and if yes use battleprocessing to start it.
Good idea, but how can I call a common event after each step? The auto movement works by Smart Pathfinding plugin command. I uploaded the picture with the event. Can you help me to specify, where should I put common event command? Thanks!
when using a pathfinding plugin, it is a bit more complex - but you could call the common event directly after the plugin command, and just need a check to see if a move happened or not before checking for an encounter - two variables (current step and past step number) with a conditional branch should be enough for that check.
Could you explain me how to set these variables? I am a little confused about what it should do.

Edit: OK i think Ive found the method how to control two variables and then set conditional branch to check is there is a difference between steps. But the problem is that Steps function only checks player steps, not the event steps.

Edit 2: There is a script call for that.

$gameMap.regionId($gameMap.event(m).x, $gameMap.event(m).y) === n


N = Region ID

M = Event ID (if you are looking for the x, y of another event) or this._eventId (for the current event)

So, now my problem is how to set that when the event is let's say in region 1, it would be 10% probability after each second to start battle processing. And how to disable it when event is stopped.

Original thread: https://forums.rpgmakerweb.com/threads/eoncounter-for-moving-events.82106/