Make Monster only walk on specific tiles?

I'm really really sorry if this is somehow posted in the wrong place... this is the first time I'm using this site >g<


So, in my game, there's now a water-flower-monster thing and I want it to have a random walking route. But I only want it to be able to walk in the water.


I don't want it to walk on the green tiles. The Player should only be able to walk on the green tiles though.


Here's a little example:


example.png


and now I wonder how I could do that?
I'd be really happy if someone could help me!


I hope people understand what I'm trying to say! >-<
Search for Yanfly's Restrict Region Script or something similiar


It can't be done by default engine. (unless you're using a really tricky and lag-prone way of randomizing movement=


I've moved this thread to Script Request. Please be sure to post your threads in the correct forum next time. Thank you.
Another option is Galv's script


https://galvs-scripts.com/category/rmvxa-scripts/event-utility/#post-772

Original thread: https://forums.rpgmakerweb.com/threads/make-monster-only-walk-on-specific-tiles.74303/