Advertisement
Civilization Fanatics' Center  

Welcome to Civilization Fanatics' Center.

You are currently viewing our site as a guest which gives you limited access to our site features. By joining our free community, you will be able to participate in the discussions, search the forum, send private messages, vote in polls, upload your own screenshots to the gallery, and access many other special features. Registration is fast, simple and absolutely free, so sign up today! If you have any problems with the registration process or your account login, please contact support.

Go Back   Civilization Fanatics' Forums > CIVILIZATION IV > Civ4 - Creation & Customization

Notices

Reply
 
Thread Tools
Old May 23, 2010, 03:11 PM   #1
Ricemon
Chieftain
 
Ricemon's Avatar
 
Join Date: Feb 2008
Posts: 71
Leader-specific Text Possible?

Questions here related to custom leader text.

So, I understand that in order to generate leader specific diplomacy text (for the example, lets call the leaderhead "Matthew"), the lines would look like this:

Spoiler:
<Response>
<Civilizations/>
<Leaders>
<Leader>
<LeaderType>LEADER_MATTHEW</LeaderType>
<bLeaderType>1</bLeaderType>
</Leader>
</Leaders>
<Attitudes/>
<DiplomacyPowers/>
<DiplomacyText>
<Text>AI_DIPLO_REFUSE_TO_TALK_ALL_NATIONS_1</Text>
</DiplomacyText>
</Response>


Now, WHAT IF I want to do the opposite? Instead of having just ONE LINE specific only to "Matthew", I want to have ONE LINE that every leader would use except for "Matthew". I've tried the following, which didn't work (note how I changed a variable from 1 to 0):

Spoiler:
<Response>
<Civilizations/>
<Leaders>
<Leader>
<LeaderType>LEADER_TRYING_TO_BE_UNIQUE</LeaderType>
<bLeaderType>0</bLeaderType>
</Leader>
</Leaders>
<Attitudes/>
<DiplomacyPowers/>
<DiplomacyText>
<Text>AI_DIPLO_REFUSE_TO_TALK_ALL_NATIONS_1</Text>
</DiplomacyText>
</Response>


But adding a different leader to specifically use that text solved the problem:

Spoiler:
<Response>
<Civilizations/>
<Leaders>
<Leader>
<LeaderType>LEADER_MATTHEW</LeaderType>
<bLeaderType>0</bLeaderType>
</Leader>
<Leader>
<LeaderType>LEADER_ALFRED</LeaderType>
<bLeaderType>1</bLeaderType>
</Leader>
</Leaders>
<Attitudes/>
<DiplomacyPowers/>
<DiplomacyText>
<Text>AI_DIPLO_REFUSE_TO_TALK_ALL_NATIONS_1</Text>
</DiplomacyText>
</Response>


Result was, leader "Matthew" will avoid using that "Refuse to Talk" line, while only leader "Alfred" will use that line.

Problem is, I don't want that line to be specific only to one leader, I want it to function as a generic line, but specific a leader(s) to avoid using it. I hope this is clear.


Second question,

Is there an existing script which enables AI controlled leaders to have unique dialogue based on player's chosen leader?

This might be a bit difficult to explain so I'll try my best here with an example.

I have chosen "Matthew" as my leaderhead and proceed to play a normal game of Civ. As I play, I eventually come into contact with an AI controlled leaderhead, who happens to be Matthew's older brother, Alfred. As I currently see in the unmodded game's XML scripts, Alfred will have the same text for the player regardless of the player's leaderhead. I love to have Alfred say several unique lines acknowledging the fact that the player's leaderhead is his brother. Vice-versa, if the player's leader is NOT Matthew, those unique lines will not be given.

Has it been done before and is this even possible?
Ricemon is offline   Reply With Quote
Old May 23, 2010, 07:47 PM   #2
The_J
Say No 2 Net Validations

 
The_J's Avatar
 
Join Date: Oct 2008
Location: Germany / Netherlands
Posts: 25,002
Images: 51
Quote:
Originally Posted by Ricemon View Post
Problem is, I don't want that line to be specific only to one leader, I want it to function as a generic line, but specific a leader(s) to avoid using it. I hope this is clear.
The only option here i see is just adding every other leaderhead to this text.
Not very intelligent, but can't see another possibility.


About the second question, i have no real idea .
__________________
Civ4-BtS-Mod "Mars, Now!"


Steam eats the souls of little gamers!!!
The_J is offline   Reply With Quote
Old May 23, 2010, 09:16 PM   #3
Ricemon
Chieftain
 
Ricemon's Avatar
 
Join Date: Feb 2008
Posts: 71
That's the option I resorted to, makes CIV4DiplomacyInfos a bigger mess then it already is.

Thanks for the response though, the 2nd question is highly unusual and tricky.

Most mods usually deal with game play and not the diplomacy interaction flavor text between AI and players. My mod happens to be heavy on custom diplomacy text and emphasis on the leaders' relations with each other story-wise.

Something like out of an RPG Simulation. Bleh
Ricemon is offline   Reply With Quote
Reply

Bookmarks

Go Back Civilization Fanatics' Forums > CIVILIZATION IV > Civ4 - Creation & Customization > [BTS] Leader-specific Text Possible?

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Leader-Specific Heroes redazncommieDXP Fall Further 2 Feb 25, 2010 07:32 AM
Leader specific UU's? pencilgod Civ4 - Creation & Customization 5 Sep 22, 2009 02:52 PM
2.0 Leader Diplomacy Text deanej Civ4 - Star Trek Mod 4 Feb 20, 2009 10:42 AM
leader-specific music? dim_iz_dimnjaka Civ3 - Creation & Customization 0 Jul 30, 2005 07:56 AM
Which Leader is to be Era-Specific Piernik Civ3 - Creation & Customization 11 Dec 30, 2002 03:30 PM


Advertisement

All times are GMT -6. The time now is 04:04 PM.


Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
This site is copyright © Civilization Fanatics' Center.
Support CFC: Amazon.com | Amazon UK | Amazon DE | Amazon CA | Amazon FR