I want the player to go to a particular spot after a short dialogue. My problem is that I cannot be sure where the player will be when this happens, so I cannot use a set route move command. In my previous (Ace) games I had a pathfinder script but the only one I can find for MZ is just for events to move to the player, so no good for this.
Is there a JS script call I can use, or something in the VS plugins that I've missed?
Thank you
Perhaps this won't work for whatever reason, but why not simply spread them out at the end of your event by command?
Alternative, non-plugin option - assign a repeating move route, with a single Script command:
const x = 5, y = 6; const d = this.findDirectionTo(x, y); if (!d || !this.canPass(this.x, this.y, d)) { this.forceMoveRoute({ list: [{ code: 0 }] }); this.setMovementSuccess(false); } else this.moveStraight(d);
Replace 5 and 6 with the destination X and Y coordinates, respectively. The route will automatically stop repeating when the character reaches their destination or cannot find an unobstructed path. This uses the built-in touch-movement pathfinding.