Ahoy, Theo!
I had a little fun with this script while I tried something out and I noticed something rather odd...
I had my event set up this way:
Page 1:
- Only set up some commands in the autonomous movement.
- The event moved left and right between 2 points in a straight line. I used your script calls to do this, one find_path(x,y) for each points.
Page 2:
- Requires self-switch 'A' to be turned ON.
- Contains only the <chase player> comment.
- Fixed auto-move route here.
The event's self switch 'A' is turned ON automatically when the player has been spotted (I use a proximity script for this with line of sight feature).
So, what should happen is, when the player did not alerted the guard, it moves left and right, patrolling the area. But when the player has been spotted, the guard will start to chase the player. This works perfectly fine.
When the player successfully managed to hide for a short time, the event's self-switch will be turned off. This initiates the find_path(x,y) auto-movement again for the guard, so no matter where the player lured the guard, it will return to it's original position. And this works well too.
But after the guard has arrived it's original position and moves to the 2nd point, the find_path(x,y) auto-move route fails. It will run another additional path before returning to the 1st spot again. This additional path seems to have a pattern, but maybe I was just watching the blasted guard too long.
I wonder what could cause this? I tried to figure it out, but nothing seemed off in the script for me.
It seems to me that somehow the last move route executed from the <chase player> page goes to the end of the first page's auto-move route.
Just wanted to report this odd behavior, hoping that you can fix it. *-*