Tweak your own AI

Post ALL Public Beta feedback here!

Moderators: Gil R., ericbabe

Post Reply
User avatar
Erik Rutins
Posts: 39761
Joined: Tue Mar 28, 2000 4:00 pm
Location: Vermont, USA
Contact:

Tweak your own AI

Post by Erik Rutins »

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.
Erik Rutins
CEO, Matrix Games LLC


Image

For official support, please use our Help Desk: http://www.matrixgames.com/helpdesk/

Freedom is not Free.
User avatar
christof139
Posts: 980
Joined: Thu Dec 07, 2006 1:43 am

RE: Tweak your own AI

Post by christof139 »

Thanx. I think the Strategic AI is good as is, but it is nice to tinker a bit. [:)] Chris
'What is more amazing, is that amongst all those approaching enemies there is not one named Gisgo.' Hannibal Barcid (or Barca) to Gisgo, a Greek staff officer, Cannae.
That's the CSS North Carolina BB-55
Boris Badanov, looking for Natasha Goodenov
Post Reply

Return to “Public Beta Feedback”