This script allows you to "walk on water".
You designate a "water tile" using terrain tags, and then you can pass through it if your "water walk" state is on.
1. create a waterwalk state, and set the ID in the config.
2. choose a terrain tag, and set your water tiles in your tileset editor, then set the ID in the config
-Leader only. This means only the leader needs to have water-walk state in order for you to walk on water. Otherwise, everyone needs to have the state.
-Drown damage. This means you don't actually need water-walk state to walk on water, but anyone that doesn't have the state will take drown-damage. I mean there's nothing really stopping a non-swimmer from jumping in the water.
This is a simple implementation.
For tile passability, it assumes if it's a water-tile, and you have water walk on, you can cross it.
Might need a more complex check though, but I can't think of any use cases.
Edited by Tsukihime, 02 August 2012 - 12:47 PM.