Enemy Pathing

So... I have a setup in my game where to avoid random encounters, the enemies move around the map, and start the battle when they make contact with the player.

The problem is... the enemies seem to be interuptted by the party members following the player.

It turns out that the enemies can get through the party members when "through" is turned on... but then the program that activates the battle when the enemies are touched dosen't activate.

Any reccomendations on a fix?
Hello!!
There are two things to consider:
1 - The battle call is made by events, so it does not follow the standard of the Rpg Maker system.
2 - We don't have a Bug here, because the followers are like an allegory on the map.

You can disable the "follower" system or simulate collision events using coordinate variables combined with Javascript:

Map Coordenate X Follower:
$gamePlayer.followers().follower(index).x
Map Coordenate Y Follower:
$gamePlayer.followers().follower(index).y

Sample:
Code:
◆Control Variables:#0011 Party1-X = Map X of Player
◆Control Variables:#0012 Party1-Y = Map Y of Player
◆Control Variables:#0013 Party1-X = $gamePlayer.followers().follower(0).x
◆Control Variables:#0014 Party1-Y = $gamePlayer.followers().follower(0).y
◆Control Variables:#0015 Party2-X = $gamePlayer.followers().follower(0).x
◆Control Variables:#0016 Party2-Y = $gamePlayer.followers().follower(0).y
◆Control Variables:#0017 Party3-X = $gamePlayer.followers().follower(1).x
◆Control Variables:#0018 Party3-Y = $gamePlayer.followers().follower(1).y
◆Control Variables:#0019 Party4-X = $gamePlayer.followers().follower(2).x
◆Control Variables:#0020 Party4-Y = $gamePlayer.followers().follower(2).y

Good luck.

Edit:
A quick "Googled" and I found the this:
That... sounds a bit overcomplicated, and not what I'm going for. (The game is designed with only the player being able to touch the enemies in mind, and the enemies being able to walk through the followers)

Is there a simple plugin or the like I could use that allows event NPCs to walk through follower characters, and activate events when they come into contact with the player?
Did you click on the link I posted? In it you will find a plugin that is the easiest way.
The plugin causes events to activate once they touch the player's followers.

What I want is for the events to ignore the followers, yet still be able to touch the player.
You could try having the event set to through and then check its coordinates against the player to start the event, rather than use player touch. I haven’t done this before but it should work.
To keep the event from passing through everything, like walls or whatever, I’d use regions. Yanfly’s region restrictions would make that super easy.
Probably not the simplest solution but its what I’d try.
Sorry, I got it wrong, try this:
RMMV-MapEVT-Par-Passage.png


If it doesn't work, I suggest disabling the followers system and recreating for events as was done at the time of Rm2k / 2k3 (2005?)
Honestly, at this point I've just given up on using the followers all together.
Seems like it's a lot more trouble then it's worth at this point.
Shaz gave instructions to create a very simple plugin in this thread some time ago, to make events able to pass through followers, if you are still interested.

Original thread: https://forums.rpgmakerweb.com/threads/enemy-pathing.135801/