Need Help with Diplomacy XML

cfkane

Emperor
Joined
Feb 7, 2006
Messages
1,196
I'm adding new leaders for this mod that I'm doing and I've gotten a bit stuck with making new Diplomacy dialog. I know how to access the XML file for Diplomacy text, but I can't seem to assign the right text to the right leader. I'm assuming it's a little more complicated than just naming the text "AI_DIPLO_TXT_KEY_LEADER_WHATEVERTHEGUYSNAMEIS".

Help?
 
You'll need to edit 2 files; the Text file and the Civ4DiplomacyInfos file. Or you can create a new text file, which is easier.

Basically for every type of diplo you want you need like this:

Code:
<DiplomacyInfo>
		<Type>AI_DIPLOCOMMENT_FIRST_CONTACT</Type>
			<Responses>

you need to copy an existing

Code:
<Response>
	<Civilizations/>
		<Leaders>
		<Leader>
		<LeaderType>LEADER_HATSHEPSUT</LeaderType>
		<bLeaderType>1</bLeaderType>
		</Leader>
		</Leaders>
		<Attitudes/>
		<DiplomacyPowers/>
		<DiplomacyText>
		<Text>AI_DIPLO_FIRST_CONTACT_LEADER_HATSHEPSUT_</Text>
		</DiplomacyText>
</Response>

snippet and paste it below what you copied. Now change the name in 2 spots. In your text file you have tags like this:

Code:
<TEXT>
	<Tag>AI_DIPLO_FIRST_CONTACT_LEADER_HATSHEPSUT_1</Tag>
<English>type your diplo</English>
</TEXT>

I hope this helps or maybe you knew this and are confused about something else. It's not the easiest thing to type and explain.
 
Back
Top Bottom