So this is my first modded civ. Everything has gone ok up until making the civ trait. It's the last thing to do before the civ i complete. I've solved everything up until this point but i just can't figure out how to make it work.
I want to make it so all lake tiles give culture and all forest tiles give extra food and productions. As far as i understand Lakes are the same as coasts as far as code is concerned. So it will make it so that lake and coast tiles give cultre and im okay with that.
<Trait_Terrains>
<Row>
<TraitType>TRAIT_SKOG_OCH_SJÖ</TraitType>
<TerrainType>TERRAIN_FORREST</TerrainType>
<YieldType>YIELD_PRODUCTION</YieldType>
<Yield>1</Yield>
</Row>
<Row>
<TraitType>TRAIT_SKOG_OCH_SJÖ</TraitType>
<TerrainType>TERRAIN_FORREST</TerrainType>
<YieldType>YIELD_FOOD</YieldType>
<Yield>2</Yield>
</Row>
<Row>
<TraitType>TRAIT_SKOG_OCH_SJÖ</TraitType>
<TerrainType>TERRAIN_COAST</TerrainType>
<YieldType>YIELD_CULTURE</YieldType>
<Yield>1</Yield>
</Row>
</Trait_Terrains>
This is how i wrote it but it doesn't work. and by doesn't work i mean it make all the ui dissapear after you've slected the civ.
Any idea how to make it work?
I want to make it so all lake tiles give culture and all forest tiles give extra food and productions. As far as i understand Lakes are the same as coasts as far as code is concerned. So it will make it so that lake and coast tiles give cultre and im okay with that.
<Trait_Terrains>
<Row>
<TraitType>TRAIT_SKOG_OCH_SJÖ</TraitType>
<TerrainType>TERRAIN_FORREST</TerrainType>
<YieldType>YIELD_PRODUCTION</YieldType>
<Yield>1</Yield>
</Row>
<Row>
<TraitType>TRAIT_SKOG_OCH_SJÖ</TraitType>
<TerrainType>TERRAIN_FORREST</TerrainType>
<YieldType>YIELD_FOOD</YieldType>
<Yield>2</Yield>
</Row>
<Row>
<TraitType>TRAIT_SKOG_OCH_SJÖ</TraitType>
<TerrainType>TERRAIN_COAST</TerrainType>
<YieldType>YIELD_CULTURE</YieldType>
<Yield>1</Yield>
</Row>
</Trait_Terrains>
This is how i wrote it but it doesn't work. and by doesn't work i mean it make all the ui dissapear after you've slected the civ.
Any idea how to make it work?