Tiles that cannot be passed by monsters (events)

Hi all. My game consists of areas inhabited by free-roaming creatures. Each one is an event which moves randomly or towards the player depending on their level. Often, the player is being chased by one of the monsters.


One of the playable characters can swim and I have been able to set it up so the game recognises which type of tile the player is on and change between a 'walking' and 'swimming' version of the player sprite.


I want to set it up so that a spider, for example, cannot chase the player into the water. At the moment, if the water is passable to the player it is also passable to the spider event. Is there a way to disallow the monster events to go into the water, even when it is passable ot the player? I have certain monsters who CAN swim/fly so they would need to remain passable to these.


I'm hoping there is something using terrain tags that I might be able to do, but I obviously don't want to set up a parallel process to check passability for EVERY monster in the area.


Any help would be greatly appreciated!
there are plugins that use region IDs to restrict event movement, but as far as I know they work for all events in the same way.


You might check if one of them has options that you can use for your idea, just search the master script list for region and restriction.


Other than that, you probably have to request a specific script for such a function.
I believe you might also require Galv's Move route extras, you can make events move only within regions you command it so with. This has helped me make my pedestrians stay on the sidewalks in my project.


You mentioned that the event monsters chase you- you might have to set up a different page for the monsters that determine there new ID restrictions as well. This plugin was difficult for me to set up and I did some bug testing for Galv at the time when I needed this to work most.


https://galvs-scripts.com/2015/10/24/mv-move-route-extras/
Thanks for the help. I've since discovered a swimming script that I've adapted to allow a character class to pass tiles based on terrain tags, which fulfils my criteria.


Can close this thread.
uh - this is posted in VX Ace Support, guys.  An MV plugin will not be helpful, unless the OP posted in the wrong place.
Crap, sorry I didn't realize.
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/tiles-that-cannot-be-passed-by-monsters-events.68939/