AI Diplomacy Text Question(s)

Cybah

Emperor
Joined
Jun 22, 2007
Messages
1,481
Is it possible that AI_DIPLO_FIRST_CONTACT for Leaderheads is the only individual text key that works?

I've never seen any of the others ingame:

AI_DIPLO_REFUSE_TO_TALK

AI_DIPLO_NO_PEACE

AI_DIPLO_GREETINGS_ATT_FR

AI_DIPLO_GREETINGS_ATT_FUR

AI_DIPLO_DEMAND_TRIBUTE_POWER_WEAKER

AI_DIPLO_DEMAND_TRIBUTE_POWER_EQUAL

AI_DIPLO_DEMAND_TRIBUTE_POWER_STRONGER


And some modders provide only the "first contact" one with their leaderhead. I guess they know more about it than me.

What about you?
 
Yes and No. It works in a somewhat weird manner.

For each occasion there can be multiple texts, enabled by additional 'conditions' - most noteworthy condition in this context is who's the LH saying it (but there are others, like mood, power rating,...).
When a LH is going to say something in diplo, all the quotes that are anabled for the occasion / situaion in question are collected, and one of them is randomly chosen.

For most occasions there are multiple generic texts - these are eligible for any LH. So if a LH pops up to greet you, it has - just for example - 5 Generic + 1 Own quote to choose from, meaning that you will see the personal quote only in about 16.5% of the cases.

The first contact is an (the only) special case, where no generic quotes are defined, so the LH is guaranteed to actually use his own.

Note, that if you completely remove all generic quotes for a specific occasion, you need to provide each and every LH with a personal quote.
Because of this the "First Contact" quote is actually mandatory - so most modders will provide at least this one.

A possible way to remedy the situation, is to improve the ratio of Personal vs. Generic quotes.
Say for greeting - remove half of the generic quotes - keep maybe 2 or 3, to maintain some variety, abd acoomodate the low-personality LHs with no personal quotes. This will already increse the chance to see the personal one to > 25%.
If in addition you 'clone' a personal qute - or add multiple different personal ones - you will be further increase the chances to see one of them.

PS.: If you didn't yet, take a look at Civ4DiplomacyInfos.xml - it should become a lot clearer, what i am talking about.
(It is also long and because o it's structure not really Modular-Mod friendly.)
 
Back
Top Bottom