Nightinggale
Deity
- Joined
- Feb 2, 2009
- Messages
- 5,281
After debugging the diplo screen with a non-informative text, I came to this conclusion:
The text set to the diplo event is of type AI_DIPLOCOMMENT_OFFER_DEAL (defined in Diplomacy info XML)
The AI attitude is ATTITUDE_CAUTIOUS.
Mixing those two pieces of information, the XML provides this setup:
The text for this is in GameTextInfos_original.xml in vanilla.
(non-English removed for readability)
I repeat the diplo event over and over and each time I get one of those strings. Nothing else.
This mean the "bug" is that nobody ever added a proper text to this event. If somebody can think of something useful for the AI to say, then we can add that and the problem will be gone.
Remember that there are 5 attitudes and it would be nice to get different response based on attitude.
They are ATTITUDE_FRIENDLY, ATTITUDE_PLEASED, ATTITUDE_CAUTIOUS, ATTITUDE_ANNOYED, ATTITUDE_FURIOUS. We can use the same string for more than one of those if we like.
The text set to the diplo event is of type AI_DIPLOCOMMENT_OFFER_DEAL (defined in Diplomacy info XML)
The AI attitude is ATTITUDE_CAUTIOUS.
Mixing those two pieces of information, the XML provides this setup:
PHP:
<DiplomacyText>
<Text>AI_DIPLO_FR_OFFER_DEAL_1</Text>
<Text>AI_DIPLO_FR_OFFER_DEAL_2</Text>
<Text>AI_DIPLO_FR_OFFER_DEAL_3</Text>
<Text>AI_DIPLO_FR_OFFER_DEAL_4</Text>
<Text>AI_DIPLO_FR_OFFER_DEAL_5</Text>
<Text>AI_DIPLO_FR_OFFER_DEAL_6</Text>
</DiplomacyText>
PHP:
<TEXT>
<Tag>AI_DIPLO_FR_OFFER_DEAL_1</Tag>
<English>Greetings, [CT_NAME]! What do you think of this deal?</English>
</TEXT>
<TEXT>
<Tag>AI_DIPLO_FR_OFFER_DEAL_2</Tag>
<English>The peace-loving people of [OUR_CIV_SHORT] seek a fair trade with [CT_CIV_SHORT]. How about it?</English>
</TEXT>
<TEXT>
<Tag>AI_DIPLO_FR_OFFER_DEAL_3</Tag>
<English>How does this sound to you, [CT_NAME]?</English>
</TEXT>
<TEXT>
<Tag>AI_DIPLO_FR_OFFER_DEAL_4</Tag>
<English>What do you think of this deal, [CT_NAME]?</English>
</TEXT>
<TEXT>
<Tag>AI_DIPLO_FR_OFFER_DEAL_5</Tag>
<English>My friend, can [OUR_CIV_SHORT] tempt you with this offer?</English>
</TEXT>
<TEXT>
<Tag>AI_DIPLO_FR_OFFER_DEAL_6</Tag>
<English>Let's make a deal!</English>
</TEXT>
I repeat the diplo event over and over and each time I get one of those strings. Nothing else.
This mean the "bug" is that nobody ever added a proper text to this event. If somebody can think of something useful for the AI to say, then we can add that and the problem will be gone.
Remember that there are 5 attitudes and it would be nice to get different response based on attitude.
They are ATTITUDE_FRIENDLY, ATTITUDE_PLEASED, ATTITUDE_CAUTIOUS, ATTITUDE_ANNOYED, ATTITUDE_FURIOUS. We can use the same string for more than one of those if we like.