Map Passage Modding v1.0
Shaz
IntroductionShaz
This script allows you to override the default passage settings on a map for individual tiles, without affecting other areas that use the same tiles.
Features
- Modify passages while testing your game - override from default, save, and test without having to restart your game
- Works with scrolling maps
- Override passages on individual maps while allowing others to use default settings
- Set 4-dir passability on star tiles (tiles that show above the player)
Screenshots
This map shows default passability (though I've changed the tree skirts to star in the tileset to avoid the chopping head issue).
Note how you can walk right through the tree trunk from side to side, and you cannot walk on or off the bridges from the sides or below, because of the hill passabilities. The water is also impassable.
How to Use
This script comes in two parts - a setup script, which is used only for game development and removed prior to release, and a runtime script, which will ship with the game.
Copy both scripts into the Materials section, below other custom scripts.
Play your game, preferably with the console turned on (the script will give you messages when it does important stuff).
Use P to go into Passage Modding mode.
Use the arrow keys to move the player around (they'll be able to walk anywhere, and standard map keyboard functions and event processing will be paused).
Use the X and O keys to change passability on a whole tile (the tile under the mouse cursor).
Click on a passability icon with the mouse to toggle it.
Use S to save your work, then P to exit Passage Mode and test the new settings.
While in Passage Modding mode, the following keys can be used:
- P - toggle Passage Modding mode
- X - make the tile under the mouse cursor impassable
- O - make the tile under the mouse cursor passable
- click on icon - toggle the 4-dir passability of that tile
- C - toggle icon color for dark/light maps
- R - reset passages to last-saved (current map only)
- M - reset passages to map defaults (current map only)
- S - save passage settings (all maps)
- H - print help instructions to the console
Script
Here's the setup script
and here's the runtime script
Compatibility
This script may have issues with other scripts that:
- modify the Game_Map.check_passage method
- modify player movement and collision
- modify the map during runtime (such as tile swapping scripts)
FAQ
Credit and Thanks
- Shaz
Author's Notes
Free for use in commercial games. Give credit.
Remember to remove the setup script prior to release.
Last edited by a moderator:




