disarm traps

Hi guys,
my skill to disarm traps uses a common event in which the coordinates of he player are matched with the coordinates of the different trap-events (trap_1 to trap_x)

.To get these coordinates its easy, also to get the map-ID of the player. But how to get map-ID of the event? I need it because I have to distinguish between traps on different maps which could have same x-, and y-coordinates.

Thanks for your help!
hard to achieve, as maps are not stored anywhere except when they're loaded.
you can't read a remote map from a local map, but you can store the value that a remote trap is supposed to take, and update said trap when that map becomes local.
No need for complex checks
Because only the events on the current exist, you can simply check for current map ID.
event.png
And that's how you get the map ID.
Suppose you put the traps event in map ID 3, 4, and 5. Just make conditions for each of them.
event2.png
Thanks for the answers. I implemented it like @Kuro DCupu proposed and it works well.

Original thread: https://forums.rpgmakerweb.com/threads/disarm-traps.87876/