AvianBritish
King
My mod mechanically is almost done but they feature is the only bit left (until we find out how to aid animations and sound).
I am looking to see how I could add a "trait" to allow Farm improvements to be build on coast (and ocean and lake tiles) but only for 1 specific leader and not other leaders of the same Civilization.
The method to make farms build-able on coast is stupidly easy:
But this comes with two issues: this makes the "trait" available to everyone meaning all players and AI can build farms on the sea but there is also no 3D graphic of the farm on the sea (it shows in 2D Strategic mod however).
I tried changing it to:
With no success, hoping that it would check the "LeaderType" and if it matched "LEADER_AVI_AVOGADRO" (I'm using AVI as my modder identifier and Avogadro as my leader) then it would work.
My next attempt was to create a "brand new" improvement called "IMPROVEMENT_ARK_FARM" which would have all of the features of normal farm apart from the ability to be built on Coast, Lake and Ocean and would also get the adjacency bonuses from Feudalism and Replaceable Parts. This was unsuccessful as it did not allow me to use the improvement at all. In then looked though the Steam Workshop to see if anyone got a modded unique tile improvement to work and I can't see a single mod that has one; only buildings or districts.
Anyone got any ideas to help?
I am looking to see how I could add a "trait" to allow Farm improvements to be build on coast (and ocean and lake tiles) but only for 1 specific leader and not other leaders of the same Civilization.
The method to make farms build-able on coast is stupidly easy:
Code:
<GameInfo>
<Improvement_ValidTerrains>
<Row ImprovementType="IMPROVEMENT_FARM" TerrainType="TERRAIN_COAST" />
<Row ImprovementType="IMPROVEMENT_FARM" TerrainType="TERRAIN_LAKE" />
<Row ImprovementType="IMPROVEMENT_FARM" TerrainType="TERRAIN_OCEAN" PrereqCivic="CIVIC_CIVIL_ENGINEERING"/>
</Improvement_ValidTerrains>
<GameInfo>
I tried changing it to:
Code:
<GameInfo>
<Improvement_ValidTerrains>
<Row ImprovementType="IMPROVEMENT_FARM" TerrainType="TERRAIN_COAST" LeaderType="LEADER_AVI_AVOGADRO"/>
<Row ImprovementType="IMPROVEMENT_FARM" TerrainType="TERRAIN_LAKE" LeaderType="LEADER_AVI_AVOGADRO"/>
<Row ImprovementType="IMPROVEMENT_FARM" TerrainType="TERRAIN_OCEAN" PrereqCivic="CIVIC_CIVIL_ENGINEERING" LeaderType="LEADER_AVI_AVOGADRO"/>
</Improvement_ValidTerrains>
<GameInfo>
My next attempt was to create a "brand new" improvement called "IMPROVEMENT_ARK_FARM" which would have all of the features of normal farm apart from the ability to be built on Coast, Lake and Ocean and would also get the adjacency bonuses from Feudalism and Replaceable Parts. This was unsuccessful as it did not allow me to use the improvement at all. In then looked though the Steam Workshop to see if anyone got a modded unique tile improvement to work and I can't see a single mod that has one; only buildings or districts.
Anyone got any ideas to help?