How to modify a improvement for only 1 leader

Joined
Feb 20, 2017
Messages
820
Location
Kepler-22b
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:
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>
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:
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>
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?
 
There are many civs with unique improvements, why don't you check on them?
But no leaders with unique improvements. And even then I don't think there is a known way to create an improvement yet as I've not seen a single mod on the Steam Workshop with a unique improvement for a Civ, let alone the leader.
 
But no leaders with unique improvements. And even then I don't think there is a known way to create an improvement yet as I've not seen a single mod on the Steam Workshop with a unique improvement for a Civ, let alone the leader.

What are these?
Code:
        <!--Unique Improvements -->
        <Row Type="IMPROVEMENT_CHATEAU" Kind="KIND_IMPROVEMENT"/>
        <Row Type="IMPROVEMENT_COLOSSAL_HEAD" Kind="KIND_IMPROVEMENT"/>
        <Row Type="IMPROVEMENT_GREAT_WALL" Kind="KIND_IMPROVEMENT"/>
        <Row Type="IMPROVEMENT_KURGAN" Kind="KIND_IMPROVEMENT"/>
        <Row Type="IMPROVEMENT_MISSION" Kind="KIND_IMPROVEMENT"/>
        <Row Type="IMPROVEMENT_ROMAN_FORT" Kind="KIND_IMPROVEMENT"/>
        <Row Type="IMPROVEMENT_SPHINX" Kind="KIND_IMPROVEMENT"/>
        <Row Type="IMPROVEMENT_STEPWELL" Kind="KIND_IMPROVEMENT"/>
        <Row Type="IMPROVEMENT_ZIGGURAT" Kind="KIND_IMPROVEMENT"/>
 
T
What are these?
Code:
        <!--Unique Improvements -->
        <Row Type="IMPROVEMENT_CHATEAU" Kind="KIND_IMPROVEMENT"/>
        <Row Type="IMPROVEMENT_COLOSSAL_HEAD" Kind="KIND_IMPROVEMENT"/>
        <Row Type="IMPROVEMENT_GREAT_WALL" Kind="KIND_IMPROVEMENT"/>
        <Row Type="IMPROVEMENT_KURGAN" Kind="KIND_IMPROVEMENT"/>
        <Row Type="IMPROVEMENT_MISSION" Kind="KIND_IMPROVEMENT"/>
        <Row Type="IMPROVEMENT_ROMAN_FORT" Kind="KIND_IMPROVEMENT"/>
        <Row Type="IMPROVEMENT_SPHINX" Kind="KIND_IMPROVEMENT"/>
        <Row Type="IMPROVEMENT_STEPWELL" Kind="KIND_IMPROVEMENT"/>
        <Row Type="IMPROVEMENT_ZIGGURAT" Kind="KIND_IMPROVEMENT"/>
Those are assigned to a Civilization, not a Leader. I can't even get any new tile improvements to work and there are no examples in the steam-workshop.
 
Leader vs civilization should not be a problem, iirc you "assign" them to a civilization by putting
TraitType= whatever your civs trait is
You should be able to do the same by just using a trait that belongs to a leader, i dont see why it would make any difference

And there are definitly mod in the workshop that do unique improvements, i know that, because my mod has one
(Its for a civ, not a leader, but again, that makes no difference)
If you want to check, look for 'civ of the rings" in the steam workshop
 
T

Those are assigned to a Civilization, not a Leader. I can't even get any new tile improvements to work and there are no examples in the steam-workshop.

Oh! I think I might have misread your question. Apologies mate!
But as @Aldollin was saying, it shouldn't matter as long as it is linked to the Leader's trait instead of the Civilization.
 
Back
Top Bottom