Well the good news is, your months long search is at an end. I cracked the code on how to differentiate events awhile back.... Pretty much a necessity when you allow the player to place events like I'm doing. Unfortunately the explanation is complicated and you will likely have to adapt it to what you're doing. So you're about to fall down a rabbit hole.
Anyway essentially the plan is to give the events a specific characteristic.... So for me I've been using Self Switch A-D. Since I'm using Yanfly's Self Switches and Variables I don't actually use A-D. So I rule a parallel process on the first page of an event and turn on the appropriate switch. But I don't give that switch a page, I instead advance it to different page (Self Switch 1) where it's behavioral events run.
Then using
https://galvs-scripts.com/2016/08/14/mv-puzzle-functions/ (mostly because I didn't want to run requests of events for their switches) I execute a conditional for Galv.PUZ.selfSwitchesOn('Letter',$gameVariables.value(#)); where letter is A-D and the variable is the event ID in question. This checks to see if the switch 'Letter' is on for '#'. Just put whatever code you want it to do in that conditional and you're good.
If you have no clue how I got the event ID in the example
https://forums.rpgmakerweb.com/index.php?threads/rpgmv-having-events-interact.113558/#post-1006170 shows a very simplified example. And in
https://forums.rpgmakerweb.com/inde...ent-touching-other-event.114005/#post-1009648 I posted another example where I actually used Galv's Puzzle functions for a projectile.
There is another option, which I ended up scrapping due to unpredictable behavior with Yanfly's Self Variables/Switches. But if you wish to go that route, when an event is spawned have it push it's event ID to an array. Then have an event check the event ID against that array and if it finds it, run your code. You can even splice the event ID from the array if you wish to recycle numbers. I can probably dig out the code if you want to go this way. I think the upside is it makes differentiating events unnecessary since it replaces that part of the equation, but really didn't save the processing power due it still requiring me to track coordinates anyway. So really it's just a Galv Puzzle Functions replacement in this example.
Anyway fair warning both of these are CPU intensive, so you will need to spend a lot of time reworking events so you don't bog down the game. Then again I've managed to place over 150 events on the screen with no lag so it's not the worst. But if you're developing for mobile it might be.