What is base peace weight

Tecibbar

unliving
Joined
Sep 6, 2007
Messages
340
Location
Ur Sorry Ass
As I looked into xml. I noticed
iBasePeaceWeight
iPeaceWeightRand
iMaxWarRand

How do they affect AI's aggressiveness and behavior?
 
Start retyping things and see what is does. It may be like brain surgery and the AI will be like HAL in 2001 space odessey.
 
PeaceWeight determines the attitude of the AI-Leaders towards each other (not towards the human).
It is set for each leader at the beginning of each new game as it is slightly variable: PeaceWeight = iBasePeaceWeight + random(iPeaceWeightRand)

iPeaceWeightRand = 3 for all leaders and iBasePeaceWeight is 0 for Monty ... 10 for Gandhi.
so Monty gets a PeaceWeight between 0 and 2 whereas Gandhi's will be between 10 and 12.

Then change in attitude = +4 - absolute value of difference in PeaceWeights, so
Monty-Gandhi: -8 .. -4 (they hate each other)
Monty-Genghis: +2 .. +4 (they like each other)

Warmongers will like each other even more due to iWarmongerRespect.

Those are "hidden" changes which you will not see directly in the diplomacy glance screen. But you will notice that Monty might be furious towards Gandhi although the screen displays an attitude value of -4.

I'm not really sure about iMaxWarRand, there are so many factors that influence AIs' war plans...
 
PeaceWeight determines the attitude of the AI-Leaders towards each other (not towards the human).
It is set for each leader at the beginning of each new game as it is slightly variable: PeaceWeight = iBasePeaceWeight + random(iPeaceWeightRand)

iPeaceWeightRand = 3 for all leaders and iBasePeaceWeight is 0 for Monty ... 10 for Gandhi.
so Monty gets a PeaceWeight between 0 and 2 whereas Gandhi's will be between 10 and 12.

Then change in attitude = +4 - absolute value of difference in PeaceWeights, so
Monty-Gandhi: -8 .. -4 (they hate each other)
Monty-Genghis: +2 .. +4 (they like each other)

Warmongers will like each other even more due to iWarmongerRespect.

Those are "hidden" changes which you will not see directly in the diplomacy glance screen. But you will notice that Monty might be furious towards Gandhi although the screen displays an attitude value of -4.

I'm not really sure about iMaxWarRand, there are so many factors that influence AIs' war plans...


I knew about the random-3 factor which sometimes changes base peaceweights just prior to a game, but gandhi can have more than 10? Wouldn't it make sense for there to just be a max of 10 so gandhi's peace weight can range from 7 to 10 (7 being if the dice rolls a -3 for him, 8 if a -2 for him, 9 if a -1 for him, and a 10 if he rolls a 0). If gandhi got a base peaceweight of 13 and shaka got a peaceweight roll of -3, it would be chaotic.
 
^^ I think getSorenRandNum(3) will only yield either 0, 1 or 2, no negatives. So the maximum will be Gandhi (base 10) + 2 = 12.
 
Back
Top Bottom