Monster Traps

First of all, I've got a system where instead of random encounters, monsters walk around the map as events. When they touch the player they start a combat encounter with a troop of enemies and then erase themselves afterwards.

What I want is for the player to be able to create a trap, an event that, when a monster collides with it, damages them, making them less dangerous in combat.

How I would like to implement this is that the 'trap' event, when triggered, changes a self switch on the monster that tripped it, causing that monster to use a second event page which references a different combat troop (one that is already damaged).

The problem I'm encountering is that events generally don't interact with one another. The usual triggers are the player. I found a script on this page that has the start of the solution, but not the end of it:

http://www.rpgmakervx.net/index.php?showtopic=22734

The script in that topic allows events to trigger one another, but as far as I can see there's no way to pass the ID of the "target" event to the "base" event (in this case the 'target' is the monster, the 'base' is the trap). I need some way of identifying which event triggered the trap, in order to affect it appropriately.

I'm aware that this might result in slowdown for the game, so I'd aim to only ever have one trap event going at once.

Thanks in advance. I hope I've clearly explained what I'm after but if I need to elaborate further just say so.

Original thread: https://forums.rpgmakerweb.com/threads/monster-traps.16589/