Terrain
Posted: Tue Apr 28, 2015 6:40 am
When moving the pointer over tiles the tooltip offers different info, the first one is about terrain type: "open ground", "buidding", "forest", etc.
The Helpers file does not show how it get/shows that concept.
I see that in FUNCTION HELPER_TILE_TOOLTIP(terrain, tilex, tiley, side) the terrain parameter is an integer with the order of the type defined in the file TERRAIN.TXT, but I can't trust on a value that can be different in each scenario if this file has more types.
Is there a function to get this concept terrain type of a tile? I want to know on which terrain type a unit is. Probably is an obvious function that I missed.
Something to be able to: If me.terrain_Type = "building" then closeDoor
IsTileWater works for water,
isTile ("type") would be perfect
The Helpers file does not show how it get/shows that concept.
I see that in FUNCTION HELPER_TILE_TOOLTIP(terrain, tilex, tiley, side) the terrain parameter is an integer with the order of the type defined in the file TERRAIN.TXT, but I can't trust on a value that can be different in each scenario if this file has more types.
Is there a function to get this concept terrain type of a tile? I want to know on which terrain type a unit is. Probably is an obvious function that I missed.
Something to be able to: If me.terrain_Type = "building" then closeDoor
IsTileWater works for water,
isTile ("type") would be perfect