Gets a tile's spare number. Takes tileset (The tileset's handle), id (The tile id. 0 is empty, and ids from 1 are the tiles in the tileset). Returns: The number, 0 if none was set.
tileset
Int
id
Int
damage = tmGetTileValue(tiles, id)