Game Over on Event Touch

I'm sorry if this isn't the right place to put this, but I'm a newbie to plugins. I'm wanting to use the chase scripts to have an NPC chase my Player down a long hallway. But I can't figure out how to make it so that if the NPC touches the player, it's game over. Is there a script I can add in the movement route on top of the chase scripts that would allow this?

Again if this needs moved to another thread I apologize, I came from Yanfly's website.
I have moved this out of the thread for Yanfly's Actions Sequences, as that is for battle actions, and you are using the Chase Script, and turned it into a thread for you.

I have moved it to general MV Support, as I think this does not require an additional plugin.
Presumably your enemy event is moving with a pre-arranged Move Route. Change the 'Trigger' setting (bottom left of the event page) to 'Event Touch'. In the main section, put in the command 'Game Over' which you can find on the third tab of the Event Command Menu. Then when the event touches the player, that command will activate, and the Game Over screen will come up.
I've attached two images here. One shows what works for the game over (with a messy chase movement), and the other is for the plugin chase sequence, which looks nice. (Though I can't currently figure out how to make it work without the player touching him, which sort of defeats the purpose.) What I'm trying to figure out is if there is any way to make all of that work smoothly on ONE event sheet. I'd like him to automatically chase her without needing to touch him + getting a Game Over if he catches her. (Which is also a snag, because he never seems to actually run up to her far enough to touch her.) Chase.PNG GameOver.PNG
try custom autonomous movement and enter your script commands there instead of the simple approach.
if that doesn't work (I don't know how the script works), then you'll probably need to work with two event pages.
....I tried that right after I made my last post, and it does work...Because I'm a doofus and forgot about the custom movement routes. Now I just need to figure out how to get it to continue chasing if my character stops moving, instead of just standing three tiles behind me staring.
Instead of Approach, you could try using a Custom Route -> Move Towards Player and put it on repeat. It's not a very intelligent move route but they'll come straight for you without letting up.
The approach event touch game over route should work just fine. Just note that events cannot go through other events, even if the event is off. So if that chasing monster hits another event on the map, it will try to go around, or if that is not possible, it will get stuck. That cannot be fixed easily so best to plan all your chase routes with this in mind.
Instead of Approach, you could try using a Custom Route -> Move Towards Player and put it on repeat. It's not a very intelligent move route but they'll come straight for you without letting up.


I've just tried this, and the monster still stops and lingers three squares behind me if I stop moving.

EDIT: I should clarify that if I just don't move at all in the beginning of the chase scene, it WILL run up on me and I get the game over screen. However, if I begin running and then stop, so does the monster.
There must be something else interfering with the NPC movement. I used the method I described in my game Eremiel for Skeletons as it was most fitting for a mindless undead. It makes them always move directly towards the player without abandon. Even if obstacles are blocking their path, they'll get stuck and won't try to go around. They normally won't stop or change direction like the Approach movement type sometimes does.
I've just tried this, and the monster still stops and lingers three squares behind me if I stop moving.

EDIT: I should clarify that if I just don't move at all in the beginning of the chase scene, it WILL run up on me and I get the game over screen. However, if I begin running and then stop, so does the monster.
One guess: you want only one actor in your party, and you deleted the other three actors in the database without removing them from the party?
Congratulation, you now have three invisible party members that still trail you as followers and block the event from reaching you.

please remove the three unused actors from your starting party in the system tab of the database. If you don't see their slots, add three actors to the actor tab again (with names) and you'll see it, remove them before removing the actors again.
That's probably it. I wonder how many problems arise from deleting actors and leaving the deleted actors in the starting party.
I know this is an old page but I have a similar question. I want to make a particular event. There is an object on the field and if the enemy touches it, then it triggers a game over. Does anyone know how that would work?

@K-apple, please refrain from necro-posting in a thread. Necro-posting is posting in a thread that has not had posting activity in over 30 days. You can review our forum rules here. Thank you.

Please make your own thread with details on exactly what you need help with.

Original thread: https://forums.rpgmakerweb.com/threads/game-over-on-event-touch.91111/