Hi
I'm fooling around with making a random event that places a resource (wheat) on certain conditions. One condition is that the plot should have either grass or plains terrain or flood plains.
If I run the "condition line" in parts (e.g. one condition line for plains, one for grass and one for flood plains) it works like a charm for all three.
I do have some trouble trying to combine the conditions on one line. More specifically it works with grass and plains but not with flood plains.
If anyone can have a quick look at the following and give me a solution I would be grateful.
\Skodkim
I'm fooling around with making a random event that places a resource (wheat) on certain conditions. One condition is that the plot should have either grass or plains terrain or flood plains.
If I run the "condition line" in parts (e.g. one condition line for plains, one for grass and one for flood plains) it works like a charm for all three.
I do have some trouble trying to combine the conditions on one line. More specifically it works with grass and plains but not with flood plains.
If anyone can have a quick look at the following and give me a solution I would be grateful.
Spoiler :
return city and (plot:GetTerrainType() == GameInfo.Terrains[ "TERRAIN_GRASS" ].ID or plot:GetTerrainType() == GameInfo.Terrains[ "TERRAIN_PLAINS" ].ID or plot:GetFeatureType() == GameInfo.Features[ "FEATURE_FLOOD_PLAINS" ].ID) and not plot:IsCity() and plot:GetFeatureType() == -1 and plot:GetResourceType() == -1 and plot:IsFlatlands();
\Skodkim