moving events on unpassable tiles

Hello!
I've created a lake map, and added a bit of fauna, to make it more "lively";
I've added rabbits, birds...and ducks...
I have a bit of a problem with the last ones, as I wanted to make them move around in the lake, BUT the water is supposedly "unpassable" tiles, so they iether sit in plase forever, or I make them "move through" but then they'll just walk out of the water eventually (T.T)
I also thought of making a custom route, that should work, but I wanted them to move around at random (and only inside the lake obviously), is there a way to do so?
not by default.

one way would be to add a plugin that gives event movement restrictions by region ID or something similar.
could just make them have "through" but then move custom routes so they won't come out the water
Hello!
You can also cover the inner border of the lake area with a region Id, make the event 'through' and use this custom move route:
Code:
if (!this.regionId(X)) {this.moveRandom()} else {this.moveStraight(this.reverseDir(this.direction()))}
The event will move at random when inside the lake, but when it reach the border, it will make a move backward.

Regards.
Alternatively, you could make the water tiles themselves passable, but the edge between water and land impassable.
Hello!
I've created a lake map, and added a bit of fauna, to make it more "lively";
I've added rabbits, birds...and ducks...
I have a bit of a problem with the last ones, as I wanted to make them move around in the lake, BUT the water is supposedly "unpassable" tiles, so they iether sit in plase forever, or I make them "move through" but then they'll just walk out of the water eventually (T.T)
I also thought of making a custom route, that should work, but I wanted them to move around at random (and only inside the lake obviously), is there a way to do so?
I had the same problem with a lake for a fishing demo in my project but i did the most simple way, i just added a fixed route to the fish and made them slower, i would not worry much about it, no one will hang long around and watch them, to realise they got a fixed movement route.
But if you really want them to be random, you can use something like this:
1640886873073.png


and put the region around the water tiles in your lake or wherever you want to block it.
Another way (but not really what i would recommend) is just make the water walkable but put everywhere empty events, this will block the animals from leaving and the character from entering but if you got boat / ships then this brings other problems. 😀

As said, i would just do fixed routes, make them long ect. as long as you bring it at the end to its start position (kinda like a reset), you can add 50, 100, 10000 routes.
I'll try with the region lock;
thank you all! ;D

Original thread: https://forums.rpgmakerweb.com/threads/moving-events-on-unpassable-tiles.143443/