LOCK CHARACTER MOVEMENT

RPG Maker VX Ace

This script allows you to restrict the movement of characters by Region or Terrain.

  • TDS
  • 01/28/2013 04:37 AM
  • 3958 views
Version:1.0

Introduction
This script allows you to lock the movement of an event or character to a specific region or terrain ID.

Features
- Restricting the movement of the Player or Events to Terrains or Regions.

Instructions
Instructions are on the script.

Author's Notes
You can use the Region Display Script to view the Regions for visible testing.

Setting a Region or Terrain movement lock of 0 would prevent the character from walking into any other Region or Terrain. This is useful if you would like to block NPC movements without having to fill a lot of tiles.

Restrictions
Only for use in non-commercial games.

Posts

Pages: 1
Hello!

Thank you for making this. It's exactly what I need. However I've ran into an error with the script.

This line:
def movement_locked? ; (!@move_lock_terrains.empty? or !@move_lock_regions.empty?) end

Throws an "Undefined method 'empty?' for nil:NilClass" error.

Would appreciate any help ^-^
Does the error happen when you load a file or in a new game?
Pages: 1