set_map_tiles
Stamp a 2D block of tile IDs onto a map layer at a given position, with 0 clearing cells and out-of-bounds tiles skipped.
Instructions
Stamp a 2D block of tile ids into a layer with its top-left at (x, y). grid is rows of ids (0 clears a cell). Cells outside the map are skipped. Preview with render_map.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | Left tile of the block | |
| y | Yes | Top tile of the block | |
| grid | Yes | 2D array of tile ids (rows) | |
| layer | Yes | 0=ground, 1=detail, 2=overhead | |
| mapId | Yes |