Skip to content

Tile API

Xeltica edited this page Jun 25, 2018 · 2 revisions

Tile API provides a interactive access between tilemaps to novel script.

References

You must specify positions in tile units.

+tileset <id>, <x>, <y>

Set a tile of a specified id to the position.

+tiledel <x>, <y>

Delete a tile at the specified position.

+tilesetrect <id>, <x1>, <y1>, <x2>, <y2>

Fill with a tile of a specified id from (x1, y1) to (x2, y2).

+tiledelrect <x1>, <y1>, <x2>, <y2>

Delete all tiles from (x1, y1) to (x2, y2)

+ontile <id>, <x>, <y>, <goto/gosub>, <#yes>[, <#no>]

Make sure the tile exists. If it exists, jump to #yes or execute a sub-routine; otherwise, jump to #no or execute a sub-routine.

Clone this wiki locally