Events crossing other events

Good to be back on the forums, I've just bought MZ. And so a question I hope can be answered without posting pictures -

I want to make an event where an enemy chases after you and then you run away from it, hit a switch and drop a rock on its head.

It looks like that an event cannot cross another event even if the player can.

Q1: Is that correct? At the moment, I am creating invisible events on the floor that trigger enemy behaviour, after being activated, go Through and then slide themselves in to the walls.

Is this really what you have to do if you want enemies to chase you?

Q2: So let's say I make a generic spike trap on the floor from the default "Other" RTP. Is there no way to have an enemy chase me onto the same square as the spikes when they are in the floor, then have the character throw a switch and stab it with the spikes?
ATT_Turan has a script that will let two events pass through each other if they have the same notetag.
There's also CT_Bolt's Event Trigger Event
You can just make the enemy that's chasing you have Through on. I don't see from the description in your post why that's not an option.
I must be wrong but it seemed to me that even with Through, the events could not cross each other? Would make everything a lot a easier, but that little script you wrote looks great in any case.

Let me ask another question. Have you ever played AoOni? A famous rpg maker game. how the hell did they make the game remember an enemy was chasing you from room to room? Does it just have to be set up in every room? Mine is going well but I'm drowning in switches here.
how the hell did they make the game remember an enemy was chasing you from room to room? Does it just have to be set up in every room? Mine is going well but I'm drowning in switches here.
Never played that game but if the enemy is an event then yes, it has to be created in every room either in the editor or spawned in with an event spawner.
I must be wrong but it seemed to me that even with Through, the events could not cross each other?
It was a long time ago, but as I recall that was in response to someone's request that their events with move routes specifically be able to pass other events but not impassable terrain. So they couldn't use Through in their case.

Turning on Through should allow an event to move onto another.

how the hell did they make the game remember an enemy was chasing you from room to room?
A single switch would make the game remember that you're being chased. As for having an enemy to do the chasing, yes, you'd just copy and paste it on each map.
Top stuff as always guys, thanks!
Hi, in continuing this event chasing question, only trouble with using Through is then the enemy cannot interact with the player? Basically I have a zombie chasing you through a haunted house for a few rooms. When he bumps into you it starts a battle, from which. you need to Escape as he cannot be damaged.

My problems are 1) he will stop at invisible events on the floor used to trigget him and other things - currently solved by having them move into the walls with a parallel event, then self switch themselves off. works but seems laborious, not that I mind

2) - I wanted another party member to follow you at this point but it seems Event Touch events bizarrely bounce off the follower and do not rigger unless they touch the principal character! I understand I can Gather Followers to prevent this but I had a neat idea where the following character would jump in front and get killed to save you if they were touched.

Any way to solve these 2 issues?

Final dumb question, ATT Turan, how do I use your event crossing script? Where would I put it in? It's not a plugin it's a script, I see the Script option on an event, do I add it in there for all events that use it, or something else?
Well it would be tricky without a plugin. You can use through check the tile before it and decide if it should move. You can also check if there is a player or follower there in theory.
I don't recall if there's a plugin that allows custom collision detection of followers.
how do I use your event crossing script?
It says to put it in a plugin file. I believe there's a Himeworks plugin for event touching the follower
It's not a plugin it's a script
RPG Maker MV and MZ don't use external scripts, only plugins.

There are instructions at the top of my post.

Original thread: https://forums.rpgmakerweb.com/threads/events-crossing-other-events.171328/