smeagolheart
Monarch
So you've downloaded Elvis McPatton and want to add him to your mod. You add him in, but when you play the game and encounter him, he seems a bit - mute. I couldn't find another guide for this so I made one here, this guide assumes passing familiarity with XML..
Here's how to give old Elvis a bit more conversation. This guide assumes you've got the leader installed already, viewable selectable etc. If not see this guide: http://forums.civfanatics.com/showthread.php?t=278907
Required Files:
So the first thing you'll probably want to know is there there are some generic responses already in the game so your Elvis probably isn't entirely mute. But you can specify additional personalized first contact, refusal to speak to you etc dialogues as well. You could edit Washington for example to give a tidbit of wisdom about his wooden teeth.
First thing you'll want to do is create responses for these text items and place them in the text folder of your XML folder for your mod. Never modify your original gamefiles.
I made a template for the types of responses that are used in game. See the spoiler below. You can copy these responses, and replace the "CALIGULA" tag with the leaderhead of your choice. Leave the _1 extension though capeche? It should be sorta clear what each item between <TEXT> means. [CT NAME] is a variable for you (the player). There's a few more, feel free to reply to this thread if you have that list handy. You'll want to paste your edited, replaced, customized version of this in a file in the \Assets\XML\Text\ folder of your BTS install. You can make a new text file (you'll need head and end tags) or you can plop this in another one, it "belongs" in CIV4GameText_DiplomacyText_BTS.xml Foreign language tags are in for French, Spanish, German in official Firaxis XML. My example doesn't have them I've heard it still works for them but people with those languages get only the English text.
<TEXT>
<Tag>AI_DIPLO_FIRST_CONTACT_LEADER_CALIGULA_1</Tag>
<English>Welcome to the party, [CT_NAME].</English>
</TEXT>
<TEXT>
<Tag>AI_DIPLO_REFUSE_TO_TALK_LEADER_CALIGULA_1</Tag>
<English>Go away [CT_NAME]. My horse has more sense than you!</English>
</TEXT>
<TEXT>
<Tag>AI_DIPLO_NO_PEACE_LEADER_CALIGULA_1</Tag>
<English>There will not be peace between us while my armies gather at your gates.</English>
</TEXT>
<TEXT>
<Tag>AI_DIPLO_GREETINGS_ATT_FR_LEADER_CALIGULA_1</Tag>
<English>Greetings, [CT_NAME]. Relax, sit down and let's chat.</English>
</TEXT>
<TEXT>
<Tag>AI_DIPLO_GREETINGS_ATT_FUR_LEADER_CALIGULA_1</Tag>
<English>And why have *you* disturbed me?</English>
</TEXT>
<TEXT>
<Tag>AI_DIPLO_DEMAND_TRIBUTE_POWER_WEAKER_CALIGULA_1</Tag>
<English>Can you spare this friend [CT_NAME]?</English>
</TEXT>
<TEXT>
<Tag>AI_DIPLO_DEMAND_TRIBUTE_POWER_EQUAL_CALIGULA_1</Tag>
<English>[CT_NAME] this will bring our people closer together.</English>
</TEXT>
<TEXT>
<Tag>AI_DIPLO_DEMAND_TRIBUTE_POWER_STRONGER_CALIGULA_1</Tag>
<English>Hand this over or suffer the consequences.</English>
</TEXT>
Ok so thats done. That was the creative part where you get to think of witty sayings and stuff, now comes the more tedious part.
Open up CIV4DiplomacyInfos.xml.
It's a nasty looking thing for sure. It is grouped by First contacts, then the refusal to meets, then the other tags. So you can't just cut and paste to the bottom of the thing, you have to place a tag in each correct area or the thing will cause your computer to melt. Here's an easy way to do that. Search for Gilgamesh. After his <response>, paste the corresponding response for your leaderhead (ie first contact after his first contact). After you've pasted your first contact text (NOTE: it will be in the same format as his is, not the earlier text, see below spoiler for example) then search again for gilgamesh and follow his next <response> tag with your leaderhead. And so on down the file until you run out of Gilgameshes.
I've created templates below grouped out that you can again copy and replace CALIGULA with your leaderhead.
Here's how to give old Elvis a bit more conversation. This guide assumes you've got the leader installed already, viewable selectable etc. If not see this guide: http://forums.civfanatics.com/showthread.php?t=278907
Required Files:
- CIV4DiplomacyInfos.xml
- CIV4GameText_DiplomacyText_BTS.xml
- maybe CIV4LeaderHeadInfos.xml if you need to check the exact tag for your mute leaderhead
So the first thing you'll probably want to know is there there are some generic responses already in the game so your Elvis probably isn't entirely mute. But you can specify additional personalized first contact, refusal to speak to you etc dialogues as well. You could edit Washington for example to give a tidbit of wisdom about his wooden teeth.
First thing you'll want to do is create responses for these text items and place them in the text folder of your XML folder for your mod. Never modify your original gamefiles.
I made a template for the types of responses that are used in game. See the spoiler below. You can copy these responses, and replace the "CALIGULA" tag with the leaderhead of your choice. Leave the _1 extension though capeche? It should be sorta clear what each item between <TEXT> means. [CT NAME] is a variable for you (the player). There's a few more, feel free to reply to this thread if you have that list handy. You'll want to paste your edited, replaced, customized version of this in a file in the \Assets\XML\Text\ folder of your BTS install. You can make a new text file (you'll need head and end tags) or you can plop this in another one, it "belongs" in CIV4GameText_DiplomacyText_BTS.xml Foreign language tags are in for French, Spanish, German in official Firaxis XML. My example doesn't have them I've heard it still works for them but people with those languages get only the English text.
Spoiler :
<TEXT>
<Tag>AI_DIPLO_FIRST_CONTACT_LEADER_CALIGULA_1</Tag>
<English>Welcome to the party, [CT_NAME].</English>
</TEXT>
<TEXT>
<Tag>AI_DIPLO_REFUSE_TO_TALK_LEADER_CALIGULA_1</Tag>
<English>Go away [CT_NAME]. My horse has more sense than you!</English>
</TEXT>
<TEXT>
<Tag>AI_DIPLO_NO_PEACE_LEADER_CALIGULA_1</Tag>
<English>There will not be peace between us while my armies gather at your gates.</English>
</TEXT>
<TEXT>
<Tag>AI_DIPLO_GREETINGS_ATT_FR_LEADER_CALIGULA_1</Tag>
<English>Greetings, [CT_NAME]. Relax, sit down and let's chat.</English>
</TEXT>
<TEXT>
<Tag>AI_DIPLO_GREETINGS_ATT_FUR_LEADER_CALIGULA_1</Tag>
<English>And why have *you* disturbed me?</English>
</TEXT>
<TEXT>
<Tag>AI_DIPLO_DEMAND_TRIBUTE_POWER_WEAKER_CALIGULA_1</Tag>
<English>Can you spare this friend [CT_NAME]?</English>
</TEXT>
<TEXT>
<Tag>AI_DIPLO_DEMAND_TRIBUTE_POWER_EQUAL_CALIGULA_1</Tag>
<English>[CT_NAME] this will bring our people closer together.</English>
</TEXT>
<TEXT>
<Tag>AI_DIPLO_DEMAND_TRIBUTE_POWER_STRONGER_CALIGULA_1</Tag>
<English>Hand this over or suffer the consequences.</English>
</TEXT>
Ok so thats done. That was the creative part where you get to think of witty sayings and stuff, now comes the more tedious part.
Open up CIV4DiplomacyInfos.xml.
It's a nasty looking thing for sure. It is grouped by First contacts, then the refusal to meets, then the other tags. So you can't just cut and paste to the bottom of the thing, you have to place a tag in each correct area or the thing will cause your computer to melt. Here's an easy way to do that. Search for Gilgamesh. After his <response>, paste the corresponding response for your leaderhead (ie first contact after his first contact). After you've pasted your first contact text (NOTE: it will be in the same format as his is, not the earlier text, see below spoiler for example) then search again for gilgamesh and follow his next <response> tag with your leaderhead. And so on down the file until you run out of Gilgameshes.
I've created templates below grouped out that you can again copy and replace CALIGULA with your leaderhead.
Spoiler :
<Response>
<Civilizations/>
<Leaders>
<Leader>
<LeaderType>LEADER_CALIGULA</LeaderType>
<bLeaderType>1</bLeaderType>
</Leader>
</Leaders>
<Attitudes/>
<DiplomacyPowers/>
<DiplomacyText>
<Text>AI_DIPLO_FIRST_CONTACT_LEADER_CALIGULA_1</Text>
</DiplomacyText>
</Response>
<Response>
<Civilizations/>
<Leaders>
<Leader>
<LeaderType>LEADER_CALIGULA</LeaderType>
<bLeaderType>1</bLeaderType>
</Leader>
</Leaders>
<Attitudes/>
<DiplomacyPowers/>
<DiplomacyText>
<Text>AI_DIPLO_REFUSE_TO_TALK_LEADER_CALIGULA_1</Text>
</DiplomacyText>
</Response>
<Response>
<Civilizations/>
<Leaders>
<Leader>
<LeaderType>LEADER_CALIGULA</LeaderType>
<bLeaderType>1</bLeaderType>
</Leader>
</Leaders>
<Attitudes/>
<DiplomacyPowers/>
<DiplomacyText>
<Text>AI_DIPLO_NO_PEACE_LEADER_CALIGULA_1</Text>
</DiplomacyText>
</Response>
<Response>
<Civilizations/>
<Leaders>
<Leader>
<LeaderType>LEADER_CALIGULA</LeaderType>
<bLeaderType>1</bLeaderType>
</Leader>
</Leaders>
<Attitudes>
<Attitude>
<AttitudeType>ATTITUDE_FRIENDLY</AttitudeType>
<bAttitudeType>1</bAttitudeType>
</Attitude>
<Attitude>
<AttitudeType>ATTITUDE_PLEASED</AttitudeType>
<bAttitudeType>1</bAttitudeType>
</Attitude>
<Attitude>
<AttitudeType>ATTITUDE_CAUTIOUS</AttitudeType>
<bAttitudeType>1</bAttitudeType>
</Attitude>
</Attitudes>
<DiplomacyPowers/>
<DiplomacyText>
<Text>AI_DIPLO_GREETINGS_ATT_FR_LEADER_CALIGULA_1</Text>
</DiplomacyText>
</Response>
<Response>
<Civilizations/>
<Leaders>
<Leader>
<LeaderType>LEADER_CALIGULA</LeaderType>
<bLeaderType>1</bLeaderType>
</Leader>
</Leaders>
<Attitudes>
<Attitude>
<AttitudeType>ATTITUDE_ANNOYED</AttitudeType>
<bAttitudeType>1</bAttitudeType>
</Attitude>
<Attitude>
<AttitudeType>ATTITUDE_FURIOUS</AttitudeType>
<bAttitudeType>1</bAttitudeType>
</Attitude>
</Attitudes>
<DiplomacyPowers/>
<DiplomacyText>
<Text>AI_DIPLO_GREETINGS_ATT_FUR_LEADER_CALIGULA_1</Text>
</DiplomacyText>
</Response>
<Response>
<Civilizations/>
<Leaders>
<Leader>
<LeaderType>LEADER_CALIGULA</LeaderType>
<bLeaderType>1</bLeaderType>
</Leader>
</Leaders>
<Attitudes/>
<DiplomacyPowers>
<DiplomacyPower>
<DiplomacyPowerType>DIPLOMACYPOWER_WEAKER</DiplomacyPowerType>
<bDiplomacyPowerType>1</bDiplomacyPowerType>
</DiplomacyPower>
</DiplomacyPowers>
<DiplomacyText>
<Text>AI_DIPLO_DEMAND_TRIBUTE_POWER_WEAKER_CALIGULA_1</Text>
</DiplomacyText>
</Response>
<Response>
<Civilizations/>
<Leaders>
<Leader>
<LeaderType>LEADER_CALIGULA</LeaderType>
<bLeaderType>1</bLeaderType>
</Leader>
</Leaders>
<Attitudes/>
<DiplomacyPowers>
<DiplomacyPower>
<DiplomacyPowerType>DIPLOMACYPOWER_EQUAL</DiplomacyPowerType>
<bDiplomacyPowerType>1</bDiplomacyPowerType>
</DiplomacyPower>
</DiplomacyPowers>
<DiplomacyText>
<Text>AI_DIPLO_DEMAND_TRIBUTE_POWER_EQUAL_CALIGULA_1</Text>
</DiplomacyText>
</Response>
<Response>
<Civilizations/>
<Leaders>
<Leader>
<LeaderType>LEADER_CALIGULA</LeaderType>
<bLeaderType>1</bLeaderType>
</Leader>
</Leaders>
<Attitudes/>
<DiplomacyPowers>
<DiplomacyPower>
<DiplomacyPowerType>DIPLOMACYPOWER_STRONGER</DiplomacyPowerType>
<bDiplomacyPowerType>1</bDiplomacyPowerType>
</DiplomacyPower>
</DiplomacyPowers>
<DiplomacyText>
<Text>AI_DIPLO_DEMAND_TRIBUTE_POWER_STRONGER_CALIGULA_1</Text>
</DiplomacyText>
</Response>
<Civilizations/>
<Leaders>
<Leader>
<LeaderType>LEADER_CALIGULA</LeaderType>
<bLeaderType>1</bLeaderType>
</Leader>
</Leaders>
<Attitudes/>
<DiplomacyPowers/>
<DiplomacyText>
<Text>AI_DIPLO_FIRST_CONTACT_LEADER_CALIGULA_1</Text>
</DiplomacyText>
</Response>
<Response>
<Civilizations/>
<Leaders>
<Leader>
<LeaderType>LEADER_CALIGULA</LeaderType>
<bLeaderType>1</bLeaderType>
</Leader>
</Leaders>
<Attitudes/>
<DiplomacyPowers/>
<DiplomacyText>
<Text>AI_DIPLO_REFUSE_TO_TALK_LEADER_CALIGULA_1</Text>
</DiplomacyText>
</Response>
<Response>
<Civilizations/>
<Leaders>
<Leader>
<LeaderType>LEADER_CALIGULA</LeaderType>
<bLeaderType>1</bLeaderType>
</Leader>
</Leaders>
<Attitudes/>
<DiplomacyPowers/>
<DiplomacyText>
<Text>AI_DIPLO_NO_PEACE_LEADER_CALIGULA_1</Text>
</DiplomacyText>
</Response>
<Response>
<Civilizations/>
<Leaders>
<Leader>
<LeaderType>LEADER_CALIGULA</LeaderType>
<bLeaderType>1</bLeaderType>
</Leader>
</Leaders>
<Attitudes>
<Attitude>
<AttitudeType>ATTITUDE_FRIENDLY</AttitudeType>
<bAttitudeType>1</bAttitudeType>
</Attitude>
<Attitude>
<AttitudeType>ATTITUDE_PLEASED</AttitudeType>
<bAttitudeType>1</bAttitudeType>
</Attitude>
<Attitude>
<AttitudeType>ATTITUDE_CAUTIOUS</AttitudeType>
<bAttitudeType>1</bAttitudeType>
</Attitude>
</Attitudes>
<DiplomacyPowers/>
<DiplomacyText>
<Text>AI_DIPLO_GREETINGS_ATT_FR_LEADER_CALIGULA_1</Text>
</DiplomacyText>
</Response>
<Response>
<Civilizations/>
<Leaders>
<Leader>
<LeaderType>LEADER_CALIGULA</LeaderType>
<bLeaderType>1</bLeaderType>
</Leader>
</Leaders>
<Attitudes>
<Attitude>
<AttitudeType>ATTITUDE_ANNOYED</AttitudeType>
<bAttitudeType>1</bAttitudeType>
</Attitude>
<Attitude>
<AttitudeType>ATTITUDE_FURIOUS</AttitudeType>
<bAttitudeType>1</bAttitudeType>
</Attitude>
</Attitudes>
<DiplomacyPowers/>
<DiplomacyText>
<Text>AI_DIPLO_GREETINGS_ATT_FUR_LEADER_CALIGULA_1</Text>
</DiplomacyText>
</Response>
<Response>
<Civilizations/>
<Leaders>
<Leader>
<LeaderType>LEADER_CALIGULA</LeaderType>
<bLeaderType>1</bLeaderType>
</Leader>
</Leaders>
<Attitudes/>
<DiplomacyPowers>
<DiplomacyPower>
<DiplomacyPowerType>DIPLOMACYPOWER_WEAKER</DiplomacyPowerType>
<bDiplomacyPowerType>1</bDiplomacyPowerType>
</DiplomacyPower>
</DiplomacyPowers>
<DiplomacyText>
<Text>AI_DIPLO_DEMAND_TRIBUTE_POWER_WEAKER_CALIGULA_1</Text>
</DiplomacyText>
</Response>
<Response>
<Civilizations/>
<Leaders>
<Leader>
<LeaderType>LEADER_CALIGULA</LeaderType>
<bLeaderType>1</bLeaderType>
</Leader>
</Leaders>
<Attitudes/>
<DiplomacyPowers>
<DiplomacyPower>
<DiplomacyPowerType>DIPLOMACYPOWER_EQUAL</DiplomacyPowerType>
<bDiplomacyPowerType>1</bDiplomacyPowerType>
</DiplomacyPower>
</DiplomacyPowers>
<DiplomacyText>
<Text>AI_DIPLO_DEMAND_TRIBUTE_POWER_EQUAL_CALIGULA_1</Text>
</DiplomacyText>
</Response>
<Response>
<Civilizations/>
<Leaders>
<Leader>
<LeaderType>LEADER_CALIGULA</LeaderType>
<bLeaderType>1</bLeaderType>
</Leader>
</Leaders>
<Attitudes/>
<DiplomacyPowers>
<DiplomacyPower>
<DiplomacyPowerType>DIPLOMACYPOWER_STRONGER</DiplomacyPowerType>
<bDiplomacyPowerType>1</bDiplomacyPowerType>
</DiplomacyPower>
</DiplomacyPowers>
<DiplomacyText>
<Text>AI_DIPLO_DEMAND_TRIBUTE_POWER_STRONGER_CALIGULA_1</Text>
</DiplomacyText>
</Response>