MV Help with NPC Boat Movement and Yanfly Region Restrictions

EDIT: fixed the issue, removed Through on all my mobile events - Set Event allow Region 1. Set Terrain Tag Region 1 Ocean tiles.

So Having event allow and restriction allowed me to fix this issue.

--------------------------------------------------------------------------------------------------

Hi everyone,


I’m working on a boat game, and I want my NPC boats to move around the world map ocean tiles. Initially, I set “Through = ON” on their events, which worked for moving across open water.


However, the NPC boats ignore islands and wander onto land. To fix this, I tried using Yanfly’s Region Restrictions.


Here’s what I’ve done:

  • Placed the note tag in the Map Note Tags as the plugin documentation instructs.
  • For the NPC event: Event Restrict Region: 2
  • Painted region 2 over the islands.
  • Also set terrain tagged the land as region 2.

Despite this, the NPC boats still move over land — the restrictions don’t seem to work. “Through = OFF or ON"


Does anyone have any ideas on why this isn’t working or how to properly restrict NPC boats to water tiles?


Thanks in advance!

See below for Plugins to rule out.

1773542875685.png
A workaround, if you don't have too many open coastlines or you don't mind a million events, is to place empty blocker events (under player and don't tick Through) all along your coastlines, and then the npc event boats won't be able to pass through those blocker events.
A workaround, if you don't have too many open coastlines or you don't mind a million events, is to place empty blocker events (under player and don't tick Through) all along your coastlines, and then the npc event boats won't be able to pass through those blocker events.
Bit of an open sandbox type of game - and it would lag/cause other issues if i did that.
through is ON bypasses restriction in any way.
how is the boat used?

same as a ship ability?

if you want more control over them, I have a plugin to create boats/ships, airships.
even lands, so you can make it how you want too.

so a boat could behave like a ship if you like, so it follows the same rules
as default, but extra abilities.

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/help-with-npc-boat-movement-and-yanfly-region-restrictions.182872/