Tweak your own AI
Posted: Wed Mar 21, 2007 7:04 pm
I thought some of you might enjoy testing different values for these constants to see if you find a combination that improves the AI further.
Moved many AI constants to the AcwConstants file. The constants and descriptions:
AI_IdealOddsx100 160
The AI likes to move units into a province with enemies when it has more strength than the defenders. However, there's a cutoff ratio, so that higher than this ratio the AI doesn't care anymore about having more units -- and at twice this ratio the AI considers the move "overkill" and values it only half as much. This constant sets this ratio; the default value is 1.6.
AI_RefuseOddsx100 70
Below this power ratio the AI won't consider the move at all.
AI_ReluctanceScalex100 100
Modifies the reluctance of the AI to fight battles in a province where it recently lost.
AI_OutOfTheaterMultiplierOnValuex100 50
If the target is out of theater relative to the current unit, the AI lowers its value. Default is 50%.
AI_ValueDistance0 1000
AI_ValueDistance1 700
AI_ValueDistance2 400
AI_ValueDistance3 200
AI_ValueDistance4 100
AI_ValueDistance5 50
AI_ValueDistance6 25
AI_ValueDistance7 12
AI_ValueDistance8 6
AI_ValueDistance9 3
AI_ValueDistanceGr9 1
These are multipliers to the value of a target based on distance from the currently moving unit.
AI_EnemySiegex100 210
The presence of an ongoing enemy siege multiplies the value. The default is 2.1.
Moved many AI constants to the AcwConstants file. The constants and descriptions:
AI_IdealOddsx100 160
The AI likes to move units into a province with enemies when it has more strength than the defenders. However, there's a cutoff ratio, so that higher than this ratio the AI doesn't care anymore about having more units -- and at twice this ratio the AI considers the move "overkill" and values it only half as much. This constant sets this ratio; the default value is 1.6.
AI_RefuseOddsx100 70
Below this power ratio the AI won't consider the move at all.
AI_ReluctanceScalex100 100
Modifies the reluctance of the AI to fight battles in a province where it recently lost.
AI_OutOfTheaterMultiplierOnValuex100 50
If the target is out of theater relative to the current unit, the AI lowers its value. Default is 50%.
AI_ValueDistance0 1000
AI_ValueDistance1 700
AI_ValueDistance2 400
AI_ValueDistance3 200
AI_ValueDistance4 100
AI_ValueDistance5 50
AI_ValueDistance6 25
AI_ValueDistance7 12
AI_ValueDistance8 6
AI_ValueDistance9 3
AI_ValueDistanceGr9 1
These are multipliers to the value of a target based on distance from the currently moving unit.
AI_EnemySiegex100 210
The presence of an ongoing enemy siege multiplies the value. The default is 2.1.