How to get birds to go over water, but not through walls

Simple question that the title sums up well enough.
How do I make it so birds, bats and other miscellaneous events can move over tiles such as water and other gaps, without phasing through walls as well?

I've tried using Yanfly's Region Restrictions but setting an event's "Through" to On prevents the plugin from doing anything; I can technically set an "Event Allow" region to have my birds able to fly over things while Through is Off, but that then allows all the other events to do so as well.

I had this problem with my bow's arrows, though this was solved by getting the location info of the space directly in front of the arrow and having it delete itself on a certain terrain tag - Just wondering if anyone has a simpler way of having this stuff work so I don't have to set special event processes in every bird to have it never move in the direction of a wall.
How are you incorporating the event movement? Are you using the normal system 'Set Event Movement Route' or how are you manipulating the event?
Both at different times - Currently, it's a Bat enemy that has a regular random-ish native move route where it just meanders around the map until you get close, at which point it makes it way towards you until it reaches either your X or Y value, and then it tries to ram into you at full speed.

The random movement is in the event's "Autonomous Movement" Custom Move Route, whereas the ramming takes place on the event page on a "Set Movement Route" command.
This is going to be difficult to achieve using only events.

First of all, you can't use the Move Routes or Set Move Routes automatically.

You will need to indicate somehow which tiles are actually impassable by the Bat (e.g. using a Region or a Terrain Tag). Then you need a Parallel Event that before every step checks if the Bat is not moving. If it's not moving, then it will check the Bat's position, calculates the target X and Y for its next step (e.g. one step right), checks if the target X and Y are passable for the Bat (i.e. the tile is not the terrain tag/region you selected before), and then make the Bat move only by one step. Rinse and repeat.

The difficult part is that you can't easily set the movement route to be random, because you have to calculate the route yourself in the Parallel Event. You will have to come up with a way to randomly select the next target X and Y. And you also cannot use the "move towards player" command directly, for the same reason.

Doing this through script/plugins should be easier, as you probably only need to play a bit with the Game_Map "isPassable" function and maybe still using terrain tags/regions, but you will need to code.
Doing it through eventing only seems out of the question, as these are enemies that I'll need to paste around a lot, and I can't go making personalised move routes for every enemy in the game - Especially as I'm using move route plugins to have them better track the player.

I did eventually get it to work through the use of JFrame's Terrain Traversal Requisites Plugin, but it appears that the plugin screeches to a halt when checking the note section of events that don't exist on the map, regardless of what's written in them (Such as projectiles called in from another map through Chrono Engine.)

As such, I've augmented the usual check for events with a little identifier at the beginning so that it only checks for events of a certain name:

JavaScript:
if (this.event().name == "Bat"){codethings here}

And I have to input a new line like that for every enemy name (Though I may just rename them all to "Enemy" to make this easier)
Either way, seems to be working now!
Doing it through eventing only seems out of the question, as these are enemies that I'll need to paste around a lot, and I can't go making personalised move routes for every enemy in the game - Especially as I'm using move route plugins to have them better track the player.

I did eventually get it to work through the use of JFrame's Terrain Traversal Requisites Plugin, but it appears that the plugin screeches to a halt when checking the note section of events that don't exist on the map, regardless of what's written in them (Such as projectiles called in from another map through Chrono Engine.)

As such, I've augmented the usual check for events with a little identifier at the beginning so that it only checks for events of a certain name:

JavaScript:
if (this.event().name == "Bat"){codethings here}

And I have to input a new line like that for every enemy name (Though I may just rename them all to "Enemy" to make this easier)
Either way, seems to be working now!
You can probably use a variable and set it to random, and based upon which random number is set, the bat will move right, left, up, or down. This way you are not relying on the default auto move section. It can at least appear random.

Then using Yanfly's Region restriction should work fine since through is not set to ON. I know you've already solved the issue but it's worth a try.
That would be doable if it were just one bat, but when I have 30 bats in a single large room, that's a lot of new variables to keep track of - In addition, the bat has to start tracking the player once they get close enough, so I'd then have to check spaces between the bat and the player for collisions also, which would be a pain as the player character is capable of moving faster than the bat.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-get-birds-to-go-over-water-but-not-through-walls.133013/