Sephi
Deity
- Joined
- Jan 25, 2009
- Messages
- 3,315
Gah... almost 30 leaders still to go. I don't suppose you could give me some indication if you're planning on using any of this stuff I'm writing up, Sephi? I would hate to go through all of this and have none of it get included.
Saathei is in charge of the txtkeys, so it is her decision. If you want to write them in a way that you can directly use them, you would have to make two files.
the first file lists all the text. Something like Civ4GameTextDiploNewLeaders.xml which looks like this
Code:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- Created with the FfH editor by Kael -->
<!-- Sid Meier's Civilization 4 -->
<!-- Copyright Firaxis Games 2005 -->
<!-- -->
<!-- Game Text - Units -->
<Civ4GameText xmlns="http://www.firaxis.com">
<TEXT>
<Tag>AI_DIPLO_ACCEPT_LEADER_BALSERAPHS</Tag>
<English>Thank you, I won't vote for you in the tribal council.</English>
<French>Thank you, I won't vote for you in the tribal council.</French>
<German>Danke, ich werde im Stammesrat nicht für Euch stimmen.</German>
<Italian>Thank you, I won't vote for you in the tribal council.</Italian>
<Spanish>Thank you, I won't vote for you in the tribal council.</Spanish>
</TEXT>
</Civ4GameText>
This one defines AI_DIPLO_ACCEPT_LEADER_BALSERAPHS. Then you need a second file that points to AI_DIPLO_ACCEPT_LEADER_BALSERAPHS.
you can look at Assets/normalmodules/FFHPLUS/newleaders/FFHPLUS_Civ4DiplomacyInfos.xml which defines the AI_DIPLO_ for the new leaders.
For example, if you want to replace the standart AI_DIPLO_DECLARE_WAR_LEADER_LANUN for Casin, you need to modify
Code:
<Response>
<Civilizations/>
<Leaders>
<Leader>
<LeaderType>LEADER_LAGGS</LeaderType>
<bLeaderType>1</bLeaderType>
</Leader>
<Leader>
<LeaderType>LEADER_CASIN</LeaderType>
<bLeaderType>1</bLeaderType>
</Leader>
<Leader>
<LeaderType>LEADER_MORDMORGAN</LeaderType>
<bLeaderType>1</bLeaderType>
</Leader>
<Leader>
<LeaderType>LEADER_PALGADEE</LeaderType>
<bLeaderType>1</bLeaderType>
</Leader>
</Leaders>
<Attitudes>
</Attitudes>
<DiplomacyPowers>
</DiplomacyPowers>
<DiplomacyText>
<Text>AI_DIPLO_DECLARE_WAR_LEADER_LANUN</Text>
</DiplomacyText>
</Response>
Code:
<Response>
<Civilizations/>
<Leaders>
<Leader>
<LeaderType>LEADER_LAGGS</LeaderType>
<bLeaderType>1</bLeaderType>
</Leader>
<Leader>
<LeaderType>LEADER_MORDMORGAN</LeaderType>
<bLeaderType>1</bLeaderType>
</Leader>
<Leader>
<LeaderType>LEADER_PALGADEE</LeaderType>
<bLeaderType>1</bLeaderType>
</Leader>
</Leaders>
<Attitudes>
</Attitudes>
<DiplomacyPowers>
</DiplomacyPowers>
<DiplomacyText>
<Text>AI_DIPLO_DECLARE_WAR_LEADER_LANUN</Text>
</DiplomacyText>
</Response>
<Response>
<Civilizations/>
<Leaders>
<Leader>
<LeaderType>LEADER_CASIN</LeaderType>
<bLeaderType>1</bLeaderType>
</Leader>
</Leaders>
<Attitudes>
</Attitudes>
<DiplomacyPowers>
</DiplomacyPowers>
<DiplomacyText>
<Text>AI_DIPLO_DECLARE_WAR_LEADER_CASIN</Text>
</DiplomacyText>
</Response>