Jump to content

AIAlternateProductionCreditCutoff: Difference between revisions

From ModEnc²
m 4 revisions imported
Updated
Line 13: Line 13:
|rp=yes
|rp=yes
}}
}}
This flag denotes the credit amount at which the AI will stop recklessly spending money.
Specifies the credits threshold for the AI to start spending money more conservatively. When the AI has less money than this, it will alternate between constructing buildings and producing units instead of producing both at the same time like normal.
If you are editing the AI, a higher value here will result in your AI spending more conservatively.
 
In this alternate production mode, the AI prioritises building construction. Once it determines that it needs no more buildings (it has both infantry and vehicle [[Factory|factories]] as well as enough [[power]]), it will switch to producing units. After producing a unit (that isn't a [[Harvester]]), there's a 50% chance it will then switch back to constructing buildings, restarting the loop.
 
At any point, if the AI gains more money than this threshold, it will return to normal, unrestrained production.

Revision as of 16:13, 16 June 2025

Tiberian Dawn Red Alert Tiberian Sun Firestorm Red Alert 2 Yuri's Revenge
Flag: AIAlternateProductionCreditCutoff
File(s): rules(md).ini
Values: Unsigned integers: All non-negative whole numbers from 0 to either 32767, 2147483647 or 4294967295.
Default: 0
Applicable to: General


Specifies the credits threshold for the AI to start spending money more conservatively. When the AI has less money than this, it will alternate between constructing buildings and producing units instead of producing both at the same time like normal.

In this alternate production mode, the AI prioritises building construction. Once it determines that it needs no more buildings (it has both infantry and vehicle factories as well as enough power), it will switch to producing units. After producing a unit (that isn't a Harvester), there's a 50% chance it will then switch back to constructing buildings, restarting the loop.

At any point, if the AI gains more money than this threshold, it will return to normal, unrestrained production.