Getting the AI to buy units
-
- Private
- Posts: 14
- Joined: 2021-07-01 23:21, Thursday
Getting the AI to buy units
Normally no matter how many ppts the AI has it won't buy any units until I get within spotting distance of a V/S hex. However, I'm playing a 50 scenario campaign in which in a couple of the early scenarios, the AI used all of its 65000 ppts to buy units on its first turn. Is there a setting in the game or the suite that tells the AI to do that?
- LuisGuzman
- General, Special Forces
- Posts: 657
- Joined: 2019-03-10 08:35, Sunday
- Location: Spain
- Contact:
Re: Getting the AI to buy units
juddsilverjuddsilver wrote: ↑2023-05-27 00:00, Saturday Normally no matter how many ppts the AI has it won't buy any units until I get within spotting distance of a V/S hex. However, I'm playing a 50 scenario campaign in which in a couple of the early scenarios, the AI used all of its 65000 ppts to buy units on its first turn. Is there a setting in the game or the suite that tells the AI to do that?
Suite allows some tunning of general behavior of AI purchasing by using ".AI or .AI4" files, which allows to define a custom purchase list of units and also a few AI vars.
Here you are the info about AI purchasing policy from my website
http://www.luis-guzman.com/OpenGen_AI.html
Purchasing
AI doesn't use its total prestige to purchase new units, as it reserves some prestige to reinforce units. AI figures all the prestige needed to reinforce all units with SP below the SP base at the time this phase is checked. AI reserves the percentage defined by $buy_refit (default is 70%).
If the remaining prestige is less than the cost of the cheaper unit or if less than $buy_minpres or the AI cannot deploy units, then the AI doesn't purchase anything.
If AI has prestige to spend, it first check if any VH is in danger and if it can purchase a unit to defend it moving from the closer SH.
If AI still has prestige it assigns the percentage defined by $buy_newair (default 50%) to buy air units in sequence Bomber,Fighter,Bomber, etc .. .
If still AI has prestige it scans owned SH and buy new units in the sequence defined by:
$buy_aggresive (default to 2, 1, 9, 5 ,1, 4, 2, 3) if AI global stance is defined as aggressive
$buy_defensive (default to 1 ,1 ,9 ,10,1, 4, 9, 2) if AI global stance is defined as defensive
Note: the numbers are the class id to buy, meaning 1 ,1 ,9 ,10, 1, 4, 9, 2 that AI will try to buy INF, INF, ATY, AD, INF, AT, ATY, TANK, looping through the sequence and buying one unit of the type defined until running out of prestige.
Visit my website to get my latest tools.
* Click Open General banner to get more info about the game
* Click Open General banner to get more info about the game