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.
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.
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.
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?