How to start a battle AFTER a certain action is completed?

I have this script in my event:
eGHghO5.png


So every time a player takes a step, so does the event.
Now my problem is: I want the event to start a battle after touching the player, but I have no idea how to do it. The script above has to be set to parallel trigger, so if I add "battle processing" to the page, it will start a battle before reaching a player. Any ideas?
You can use an event detector plugin to do so.
For example, you could use MOG'S: https://atelierrgss.wordpress.com/rmv-event-sensor/
Set a new page with switch D activated and a sensor range of 1.
I don't know if you'll need to put an movement of one step forward in the event, but you'll probably will.
A very good event detector for thst would be Vlue's one since it checks proximity by a condition, but it's for VXA and I didn't found one similar for MV...
You can also check the X and Y coordinates of the event and the player and see if both are of a difference of 1 and also check if they are facing each other...
Thank you both! Ill try to do both and see if it works

Original thread: https://forums.rpgmakerweb.com/threads/how-to-start-a-battle-after-a-certain-action-is-completed.107556/