Declaration of War/Peace Questions

Joined
Dec 11, 2005
Messages
700
Does the power rating in the graph effect AI declarations of war and/or peace settlements? If so, then how? What other things are effected by the power rating? How is it basically determined?

Also- Does having a defensive pact(s) with other countries deter AI declarations of war on your country? Thanks in advance
 
Does the power rating in the graph effect AI declarations of war and/or peace settlements? If so, then how? What other things are effected by the power rating? How is it basically determined?

Also- Does having a defensive pact(s) with other countries deter AI declarations of war on your country? Thanks in advance
For the complete Code search for DoWar in CvTeamAI.cpp
In short: The AI's own power is calculated and multiplied by 4/3 if aggressive AI option is turned on, this is OurPower. This power includes all allies, i.e. Vasalls and PA partners and team members. Then the other player's power is calculated, i.e. TheirPower (this again includes all Vasalls, PA partners, team members AND defensive pact partners). If TheirPower/OurPower*100 is above either the NearbyWarThreshold or the DistantWarThreshold for the respective leader then DoWar is allowed (there are then checks for other things, like diplomatic situation etc.).
The Power is calculated as explained here.
Power also influences Diplomacy. E.g. It influences whether the AI will join a PA (neither you nor the AI may be first in power...).
 
Does the "their power" to "our power" ratio effect diplomacy for ending a war(peace settlement) as well? It would seem that if one side got a big power ratio advantage during a war, then the weaker power side would be more willing to sue for peace -even at a high price.

Do I understand correctly, that entering into a defensive alliance can actually prevent a declaration of war because it raises your "our power" rating? I often avoid defensive alliances because I fear that they will drag my nation into an unwanted war. If they also prevent wars, I'd certainly want to know. Thanks in advance
 
Both TheirPower and OurPower are factors in determining the EndWarVal which has impact on what the AI will give or demand for Peace.
Yes, a defensive pact increases your defensive power and thus will discourage attacks - however once war is declared you and your DP partner are no longer on one team so that now the probability of a Peace declaration is calculated different for each of you (and AI and Human players are treated differently there, I just don't as of yet understand how different :crazyeye:
 
Back
Top Bottom