Water-walk state

● ARCHIVED · READ-ONLY
Started by Tsukihime 4 posts View original ↗
  1. Water-walk State

    -Tsukihime

    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.

    Usage

    Database:

    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

    Two options

    -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.

    Download

    Script: http://db.tt/RYrBHh48

    Notes

    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.

    I assume a global terrain tag. I guess I could spend a few more minutes to actually parse the note tag.
  2. Hmm, the passability doesn't seem to be working, though. I implement the state but the transition from land to the water tile with the specific tag doesn't seem to work.
  3. Is this in an empty project? I don't know about script conflicts.

    The basic setup is to just give your actor(s) the designated state, and terrain tag is the database terrain value not some note tag that other scripts might be using.
  4. Hm, it might be conflicting with the NPC restriction script... though that one doesn't use terrain tags, it uses regions... darn :/