check_passability
Check if a map cell is walkable by reproducing the engine's layered tile passage rule. Returns per-direction passability, terrain tag, and stacked tile IDs.
Instructions
Check whether a map cell can be walked onto, reproducing the engine's layered passage rule: the stacked tiles at (x, y) are examined upper-layer first, and the first non-[*] tile decides each direction. Reads the map's tileset flags. Returns per-direction passability (down/left/right/up — true = a character can walk off the cell that way), the cell's terrain tag, the stacked tile ids, and — when direction is given — a single passable boolean for that direction. Read-only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | Tile x coordinate | |
| y | Yes | Tile y coordinate | |
| mapId | Yes | The map id to inspect | |
| direction | No | Optional: also report a single passable boolean for this direction |