Difference between revisions of "TileType"
From Wiki
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | + | {{header|tile|ro|The #tileType system variable shows the numeric value of the last tile read using the [[tile]] command. | |
− | + | ||
− | + | ||
− | + | ||
− | {{ro | + | |
− | + | Each tile graphic in the map files has a unique identifier, which is represented in EasyUO with the #tileType value.}} | |
− | + | ||
− | Each tile graphic in the map files has a unique identifier, which is represented in | + | |
==== Example ==== | ==== Example ==== | ||
<pre> | <pre> | ||
− | + | Tile init | |
Tile cnt #charPosX #charPosY #cursKind | Tile cnt #charPosX #charPosY #cursKind | ||
− | display ok The tileType value of the tile at X: , #charPosX , #spc , / Y: , #charPosY , #spc , is: , #tileType | + | tile Get #charPosX #charPosY #tileCnt #cursKind |
+ | display ok The tileType value of the tile at X: , #charPosX , #spc , / Y: , #charPosY , #spc , is: , #spc , #tileType $ | ||
+ | +Remember: There are #tileCnt layers and the informations given are for the topmost layer | ||
halt | halt | ||
</pre> | </pre> | ||
− | + | =See Also= | |
− | { | + | {{Tile}} |
− | + | ||
− | + | ||
− | + | ||
− | { | + | |
− | + | ||
− | + |
Latest revision as of 09:15, 13 September 2007
⇒ | The #tileType system variable shows the numeric value of the last tile read using the tile command.
Each tile graphic in the map files has a unique identifier, which is represented in EasyUO with the #tileType value. |
Example
Tile init Tile cnt #charPosX #charPosY #cursKind tile Get #charPosX #charPosY #tileCnt #cursKind display ok The tileType value of the tile at X: , #charPosX , #spc , / Y: , #charPosY , #spc , is: , #spc , #tileType $ +Remember: There are #tileCnt layers and the informations given are for the topmost layer halt
See Also
Tile
- These system variables contain data gathered using the tile command.
#tileType | ⇒ | Returns the type of the last read tile |
#tileZ | ⇒ | Returns the z-coordinate of the last read tile |
#tileCnt | ⇒ | Returns the number of tile layers of the last read position |
#tileName | ⇒ | Returns the name of the last read tile |
#tileFlags | ⇒ | Returns the flags of the last read tile |