YANFLY ENGINE ACE - MOVE RESTRICT REGION

RPG Maker VX Ace

Prevent NPCs and Players from moving onto certain regions.

  • YF
  • 12/15/2011 10:22 PM
  • 1888 views


Download Link

Not everybody wants NPC’s to travel all over the place. With this script, you can set NPC’s to be unable to move pass tiles marked by a specified Region. Simply draw out the area you want to enclose NPC’s in on and they’ll be unable to move past it unless they have Through on. Likewise, there areregions that you can prevent the player from moving onto, too!

---



Likewise, players can also be restricted by regions. To set up which regions will restrict movement, use the tags below in the desired map’s properties page notebox.

<npc restrict: x>
<npc restrict: x, x>

NPC’s on that map will be unable to move past regions x unless they have a “Through” flag on. Draw out the area you want to close NPC’s in with the regions and the NPC’s will be unable to move onto any of those tiles marked by region x. If you want to have more regions restrict NPC’s, insert multiples of this tag.

<player restrict: x>
<player restrict: x, x>

Players will not be able to move on tiles marked by region x unless the player has a “Through” flag on. Draw out the area you want to close the player in with the regions and the player will be unable to move past any of those tiles marked by region x. If you want to have more regions restrict the player, insert multiples of this tag.

---

Original Blog Page