I'm going to try to make a modcomp that makes civic linked leaders. Here's the idea.
Each civ has multiple leaders, one of whom (the earliest era one) is the default. The others are not available until you get a certain civic. Whenever you change to the civic associated with one of these leaders, your civ automatically changes to that leader and remains led by that leader until a civic change switches you to another leader.
So, for example, you have Britain which starts with Boudica as default leader. Upon switching to Monarchy you get Elizabeth. On switching to Free Market you get Victoria and Nationalism gets you Churchill.
I'm thinking of using this as the changed XML in CivilizationInfos
I will have to write a function into the dll that returns CivicAvailability but I think the rest can be done with Python. There is code in RevDCM for changing a leader, which I can probably adapt to do this.
I'm thinking of making Anarchy be the trigger. Any time a civ is in anarchy, a check is made to see if the CivicAvailability of any of the civs leaders matches a current civic and then if so just add the leader and switch the civ to it.
If I can get this to work, the next step is to change the civ name to match the leader, so that Boudica leads the British Tribes, Elizabeth leads the Kingdom of England, Victoria leads the British Empire, and Churchill leads Great Britain.
Each civ has multiple leaders, one of whom (the earliest era one) is the default. The others are not available until you get a certain civic. Whenever you change to the civic associated with one of these leaders, your civ automatically changes to that leader and remains led by that leader until a civic change switches you to another leader.
So, for example, you have Britain which starts with Boudica as default leader. Upon switching to Monarchy you get Elizabeth. On switching to Free Market you get Victoria and Nationalism gets you Churchill.
I'm thinking of using this as the changed XML in CivilizationInfos
Code:
<Leaders>
<Leader>
<LeaderName>LEADER_BOUDICA</LeaderName>
<bLeaderAvailability>1</bLeaderAvailability>
<CivicAvailability>CIVIC_TRIBALISM</CivicAvailability>
</Leader>
<Leader>
<LeaderName>LEADER_ELIZABETH</LeaderName>
<bLeaderAvailability>0</bLeaderAvailability>
<CivicAvailability>CIVIC_HEREDITARY_RULE</CivicAvailability>
</Leader>
<Leader>
<LeaderName>LEADER_VICTORIA</LeaderName>
<bLeaderAvailability>0</bLeaderAvailability>
<CivicAvailability>CIVIC_FREE_MARKET</CivicAvailability>
</Leader>
<Leader>
<LeaderName>LEADER_CHURCHILL</LeaderName>
<bLeaderAvailability>0</bLeaderAvailability>
<CivicAvailability>CIVIC_NATIONALISM</CivicAvailability>
</Leader>
</Leaders>
I'm thinking of making Anarchy be the trigger. Any time a civ is in anarchy, a check is made to see if the CivicAvailability of any of the civs leaders matches a current civic and then if so just add the leader and switch the civ to it.
If I can get this to work, the next step is to change the civ name to match the leader, so that Boudica leads the British Tribes, Elizabeth leads the Kingdom of England, Victoria leads the British Empire, and Churchill leads Great Britain.