kts.AddTile

Name

kts.AddTile – add a Tile to the dungeon

Synopsis

result = kts.AddTile(pos, tile)

Description

Adds a copy of tile tile to the dungeon at position pos. The tile should have previously been created using a call to kts.Tile.

Return Value

No value is returned.

Errors

Errors will be generated if the map position or Tile given are invalid.

Notes

Remember that map squares can contain multiple Tiles (for example, a floor tile with a dead knight body tile on top of it); so if you want to replace an existing Tile (instead of just overlaying a new Tile on top) then you would need to call kts.RemoveTile first. You can also use kts.GetTiles to inspect the existing tile(s) on a square if you need to.

See Also

kts.GetTiles

kts.RemoveTile

kts.Tile