I took a crack at it and failed, and just dont have the time or skillz. Blizz doesn't have the time.
Im writing a new script called Super Event Sensor, similar enough to Simple Event Sensor by Little Drago that you can use that until I release mine.
What I need is a way to allow Blizz Pathfinder to be called in a Custom Move Route in Autonomous Movement where Multiple Pathfinds are requested for a Patrol Path. The idea here is simple, but the implementation is a nightmare. You have an Event where No Page Conditions are met (Page 1), which is an Enemy Events Patrol Route. Enemy moves to Destination, then moves to Another Location, or what ever happens to be set up in the Autonomous Movement Custom Move Route. Move Route Repeats for a Patrol. With Sensor Scripts, the Event will Change Pages (Page 2) so it has a different Move Route, either Approach or Custom -> Move Toward Player or basically anything that is NOT a Pathfind Patrol Route.
Problem that I am running into is that when you enter TWO OR MORE SCRIPTS into the Move Route, the Engine executes ALL of them immediately and does not wait for each Pathfind Script to finish before trying to execute the next one. I've run into this problem before with some of my other scripts and was able to solve it by altering def move_type_custom in the way that it handles specific Script Codes. What causes the problem is simple. Change an Event Page to something that moves an Event OFF of a Defined Move Route and if it returns to the Patrol Page, since it isnt on the intended path, the Event will run into a wall most likely without Pathfinding. I've tried messing with Blizz's script and was unable to prevent the Next Pathfind Script from executing immediately. What I need is to prevent the next Pathfind Script in the Move Routes to not execute until the current Pathfind is completed.
I intend to use it for "Smarter" Enemies that run a Patrol Route and CHASE THE PLAYER instead of just being dumb that do NOT get stuck. My script will already handle the MOVE ROUTE INDEX so dont worry about resetting that. Its already handled, Just get them to WAIT for PATHFIND COMPLETION before executing Next Pathfind or ANY other commands.
Very Simple concept, Absolute Nightmare to implement. So um, good luck, and I'd love to see what you guys are able to come up with!
---
Edit: Blizzard is adding this.