MV Monsters that can swim

Has anyone ever made a plugin that makes an event consider tile passability as if it were, for example, the boat?

I think you could fake it by using something like a region restriction plugin and turning on "through", but that still requires the extra step of syncing the region up to the water area, which is error-prone.
Not sure if such a plugin exists already, but...

For boat passability, I'm guessing you could just redirect Game_Event#isMapPassable to check isBoatPassable instead (or as well) for tagged events. E.g. (untested):
JavaScript:
;void (function() {
"use strict";
  const TAG = "swimmer";  // <swimmer>
  const alias = Game_Event.prototype.isMapPassable;
  Game_Event.prototype.isMapPassable = function(x, y, d) {
    if (this.event().meta[TAG]) {  // tagged events
      const x2 = $gameMap.roundXWithDirection(x, d);
      const y2 = $gameMap.roundYWithDirection(y, d);
      return $gameMap.isBoatPassable(x2, y2);  // use boat passability
    }
    return alias.apply(this, arguments);
  };
})();
I do have some part of region passability (only working for player + states).
I'm unsure for events way though, as it cant have states, or a way to allow
passabilities.

I can try to extend my DynamicRegions to check events on a tag to walk
over special regions that is specified.

Actors require tag + state to allow over regions as they are blocked.
so I can try to make it work for events as well when I got the time.

maybe the above code can do what you need if not changing the image?

YEP_RegionRestriction can allow passabilities for events, so unsure if this
one can work for you as it has a bunch of ways 🙂
Galv Move Route Extras has a move randomly on region script you can use for events
Galv Move Route Extras has a move randomly on region script you can use for events
That was probably the one I was thinking of when I mentioned that you could "fake it", but I think I like caethyril's solution better. I'll test it out soon.
I use NRP_VehiclePassage.js this is to limit the boat to dock only on certain tiles, same goes for ship, boat, airship
Back in Rm2K ages, we set the passability for deep water to "passable" and let the swans swim there.
I use NRP_VehiclePassage.js this is to limit the boat to dock only on certain tiles, same goes for ship, boat, airship
Oh, that looks good! It doesn't do anything related to making swimming monsters, but it seems like it'd be useful when I use the airship.

Back in Rm2K ages, we set the passability for deep water to "passable" and let the swans swim there.
Yeah, that sounds like a pretty good workaround! The only problem with that is, I need the boat and the monsters to be able to go over the same tiles, so that workaround won't work for me.
swimming monsters? there's region only events. ill search cause of i know theres that plugin
I tried Caethyril's script and it looks like it works perfectly!

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/monsters-that-can-swim.179627/