LuaAPI.wiki
changeset 818 a80f855475b5
parent 790 1c4b787e841d
child 819 80d8736efefa
equal deleted inserted replaced
817:5d23638ba8b8 818:a80f855475b5
    74 Here are some unsorted variables or constants which are available in Lua. You shouldn’t write to most of them.
    74 Here are some unsorted variables or constants which are available in Lua. You shouldn’t write to most of them.
    75 
    75 
    76 || *Identifier* || *Description* ||
    76 || *Identifier* || *Description* ||
    77 || `LAND_WIDTH` || The width of the landscape in pixels ||
    77 || `LAND_WIDTH` || The width of the landscape in pixels ||
    78 || `LAND_HEIGHT` || The height of the landscape in pixels ||
    78 || `LAND_HEIGHT` || The height of the landscape in pixels ||
       
    79 || `LeftX` || X coordinate of the leftmost point of the landsacpe ||
       
    80 || `RightX` || X coordinate of the rightmost point of the landsacpe ||
       
    81 || `TopY` || Y coordinate of the topmost point of the landsacpe ||
       
    82 || `CursorX` || The X position of the cursor (only used when the player is currently about to choose a target) ||
       
    83 || `CursorY` || The Y position of the cursor (only used when the player is currently about to choose a target) ||
    79 || `WaterLine` || The y position of the water, used to determine at which position stuff drowns. Use `SetWaterLine` to change. ||
    84 || `WaterLine` || The y position of the water, used to determine at which position stuff drowns. Use `SetWaterLine` to change. ||
    80 || `ClansCount` || Number of clans in the game (teams with the same color belong to one clan) ||
    85 || `ClansCount` || Number of clans in the game (teams with the same color belong to one clan) ||
    81 || `TeamsCount` || Number of teams in the game ||
    86 || `TeamsCount` || Number of teams in the game ||
    82 || `TurnTimeLeft` || Number of game ticks (milliseconds) left until the current turn ends. You can change this variable directly. ||
    87 || `TurnTimeLeft` || Number of game ticks (milliseconds) left until the current turn ends. You can change this variable directly. ||
    83 || `GameTime` || Number of total game ticks ||
    88 || `GameTime` || Number of total game ticks ||