ww2commander
Emperor
First up, I still have my learner plates on so be gentle.....
I need to know the proper way to loop through a custom global table containing coordinates for tiles that are PLAINS terrain on my custom map.
The reason for this is that I have code that converts grass and plains tiles to snow during winter, but then needs to know which tiles to convert back to plains and grass when converting back to summer.
Here is an example of the global table:
Can I match up the current plot X,Y values against such a table in any logical way or does the structure need to be modified?
Assuming the x and y values are met in the table then I can write code to change that particular tile back to plains instead of grassland.
Many thanks in advance for any assistance
I need to know the proper way to loop through a custom global table containing coordinates for tiles that are PLAINS terrain on my custom map.
The reason for this is that I have code that converts grass and plains tiles to snow during winter, but then needs to know which tiles to convert back to plains and grass when converting back to summer.
Here is an example of the global table:
Code:
g_SeasonalTerrain{
{X = 71, Y = 0, Type = "Plains"},
{X = 72, Y = 0, Type = "Plains"},
{X = 73, Y = 0, Type = "Plains"},
{X = 74, Y = 0, Type = "Plains"},
{X = 75, Y = 0, Type = "Plains"},
{X = 76, Y = 0, Type = "Plains"},
{X = 77, Y = 0, Type = "Plains"},
}
Can I match up the current plot X,Y values against such a table in any logical way or does the structure need to be modified?
Assuming the x and y values are met in the table then I can write code to change that particular tile back to plains instead of grassland.
Many thanks in advance for any assistance