Two events touching to trigger a common event

Hello,
I'm trying to create an Ogre Battle-type situation on a world map where if a player reaches a village, a common event is triggered. However, if enemies touch the same village, another common event is triggered. I cannot figure out how to make the enemies (events with a move route) trigger an event after touching the village (a static event).

Is maybe there a plugin that could help me accomplish this? I'm using MZ.
Thanks!
Make the event parallel. Log the map x and map y of the event in variables. Do a conditional branch to check if the X and Y variables = a certain location. You can also use the command: get location info, region Id. Paint the map with the region id that you want to trigger the event.
Make the event parallel. Log the map x and map y of the event in variables. Do a conditional branch to check if the X and Y variables = a certain location. You can also use the command: get location info, region Id. Paint the map with the region id that you want to trigger the event.
Thank you for reply!
After digging around a bit, I found a possible solution that is similar to your first one. I made the town a parallel event, made a conditional branch and added the script:

$gameMap.event(2).x == $gameMap.event(7).x && $gameMap.event(2).y == $gameMap.event(7).y;

(town is event 2 and enemy is event 7)

It seems to be working. However, I'd need to create a branch for each enemy event that could touch that town and do the same for each town.

Do you think that's a good solution or is there a more efficient way of doing this?
I can’t think of a better way at the moment. Btw, you’re in the mv forums, not mz.
Moderator note: Closing this, as you have opened another thread for the same thing elsewhere. Next time, you can just report your post and ask the mods to move it to the correct place.

Original thread: https://forums.rpgmakerweb.com/threads/two-events-touching-to-trigger-a-common-event.134977/