Difference between revisions of "TileType"

From Wiki
Jump to: navigation, search
(Example)
Line 6: Line 6:
 
<pre>
 
<pre>
  
tile init
+
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>
 
{{footer}}
 
{{footer}}

Revision as of 21:48, 6 November 2005

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

Main Page Documentation