MZ Having an Event Move to Specific Place

Hi everyone!

I am trying to create a movement pattern for an event. Basically, I want the duck to move around at random within region 2, then after a while, to go to region 1 and move around at random within region 1, then to return to region 2 - and the process repeats itself. Swim around, leave water and walk around on land, then return to the water and swim around etc.

Screenshot (2512).png


I got it right to change the spritesheet from swimming (on region 2) to walking (on region 1), as well as the random movement in the water and on land - but I am struggling with the transition from the water (region 2) to the land (region 1) and vice versa.

How can I set the movement of the event to go to the edge of the water (which is still within region 2), then change spritesheets to the walking set once it goes onto land (region 1) and when it is done on land, to let it go to the edge of the land (in region 1), then change spritesheets to the swimming set once again. Then, of course, to have the process between water-land-water-land repeat itself?

Here is what I have so far. If it matters, I am using GALV's MoveRouteExtras for this.

Screenshot (2513).png
Screenshot (2514).png
Screenshot (2515).png


I tried to set the duck to go to the water's edge via X Y, but where exactly it gets to the land or transition does not really matter.

EDIT: To add to this, Shaz' Smart Pathfinding would probably be perfect for this, but its for MV...not MZ.
To add to this, Shaz' Smart Pathfinding would probably be perfect for this, but its for MV...not MZ.
Try and see if you could use the FOSSIL Plugin, as it allows you to use some MV plugins for MZ.
Fossil: https://forums.rpgmakerweb.com/inde...-plugins-in-mz-300-plugins-fossilized.135523/
Have you tried the pathfinding plugin in MZ? Not all plugins made for MV work in MZ, but some do. If it only controls movement, then I think there is a good chance this one will also run in MZ. (Untested.) If that plugin is exactly what you're looking for, it's worth the shot. If it doesn't work after all, you can just delete it again.

When you do a test-run and it crashes, don't give up hope just yet. It is possible the plugin does work, but it might break the loaded game, which is saved before you installed the plugin. Try deleting the /save/ folder in your project folder. Or move it somewhere else if you don't want to delete it. Then start the test run again.

(Deleting this folder will not break your project. It will only reset the game, as if it is running for the first time.)
Try and see if you could use the FOSSIL Plugin, as it allows you to use some MV plugins for MZ.
Have you tried the pathfinding plugin in MZ? Not all plugins made for MV work in MZ, but some do. If it only controls movement, then I think there is a good chance this one will also run in MZ. (Untested.) If that plugin is exactly what you're looking for, it's worth the shot. If it doesn't work after all, you can just delete it again.

Thank you to you both for responding! So, after a bit of messing around with GALV's MoveRouteExtras and VisuStella's Move Core...I finally got a semblance of what I was looking for.

I tried Shaz' Smart Pathfinding along with AquaEcho's addon script (for the extremely useful this.moveToRegionClosest(regionId) command) however, it causes some weird effects. The duck would sometimes seem to be stuck on a movement loop, and the spritesheet change will happen before it should - but in all fairness, I did not use the Fossil plugin as of yet.

​

You might want to use a plugin like this one by Futokoro that allows for conditional move routes
You might want to use a plugin like this one by Futokoro that allows for conditional move routes
Thank you very much for this!
This thread is being closed due to being solved. If you need it reopened, report it to let us know why. Thank you!

Original thread: https://forums.rpgmakerweb.com/threads/having-an-event-move-to-specific-place.167218/