I'm using the EventChasPlayer pluggin by YanFly and I set up the event (guard) to chase the player when it sees them. Once it sees the player it runs over to the player and calls up a common event that sends the character back to square 1 on the same map. the issue I'm having is, once the player gets tranfered back and travels back to where the guard was that caught them, the guard is off its predetermined path. basically, the event begins its route somewhere around where it caught the player.
What i want to happen is, reset the event to the exact location that it starts, ready to chase the player again if needed. I tried looking up how to reload a map, reset events, etc. I even tried to transport the player to another map then back to the original map to hopefully reset it as if they left and came back to the map, but that had the exact same issue as before.
YanFly EventChasePlayer help needed...
● ARCHIVED · READ-ONLY
-
-
give the guard a second page that is on autorun and that contains the commands to set the event location to the original and turn off the reset switch that you set in the second page condition.
then in your common event, before transfering the player you turn on that switch -
I've done something similar to that, to no avail. I set up a debug event on the end of the bed for testing purposes. the event manually resets the events to their set locations... at least in theory. if i press it too many times the event will get off course or even disappear from the map completely. regardless how many times i click it, the event wont always return to the predetermined location.give the guard a second page that is on autorun and that contains the commands to set the event location to the original and turn off the reset switch that you set in the second page condition.
then in your common event, before transfering the player you turn on that switch
I'm assuming, what you suggested uses this script or one like it to do the same thing. But I worry that i will run into the same issue of the game not relocating the event to the exact position
[edit]
the temporary debug event will reset them to their preset location, but the event will continue their autonomous movement where they left off, instead of starting it from the top. for example; if i have them move right 10 times then up 1 and i reset the location after 7 moves, it will continue its last 3 moves right then move up 1. essentially throwing everything out of order -
That is exactly because you did it with another event instead of another event page.
It will work if done correctly with a second event page, because that will reset autonomous movement as well (something that can not happen if another event is resetting the position only) -
Ok, I'll give it a shot. Thanks for the advice!That is exactly because you did it with another event instead of another event page.
It will work if done correctly with a second event page, because that will reset autonomous movement as well (something that can not happen if another event is resetting the position only)