Difference between revisions of "TileType"

From Wiki
Jump to: navigation, search
 
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
__NOTOC__
+
{{header|tile|ro|The #tileType system variable shows the numeric value of the last tile read using the [[tile]] command.
== #tileType ==
+
'''Tile System Variables'''
+
=== Description ===
+
{{ro}}
+
  
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.}}
 
+
Each tile graphic in the map files has a unique identifier, which is represented in Easy UO with the #tileType value.
+
  
 
==== Example ====
 
==== Example ====
 
<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>
==== See Also ====
+
=See Also=
{|
+
{{Tile}}
| Width=200px | [[tile]] || Width=200px | [[Var_tileZ|&#0035;tileZ]] || Width=200px | [[Var_tileCnt|&#0035;tileCnt]]
+
|}
+
----
+
{|
+
| Width=200px | [[Main_Page]] || Width=200px | [[Documentation]] || Width=200px | [[Documentation#Tile|Tile System Variables]]
+
|}
+

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