FANDOM


An AI file is a resource file of functions used to govern the AI behavior. Generally AI files are broken up by country and year with the file name in the format (tag)_(year).ai where the tag is the country tag.

Parameters Edit

Parameter Contents Details
befriend = { } country tag = value List of countries which the AI seeks to improve relations with and enter alliance with. Higher values indicate greater desire.
claim_acceptance = value Modifies the percentage chance that the AI will accept a territorial demand action
combat = { } country tag = value List of countries the AI seeks to destroy with greater value indicating greater desire
construction = { AA_batteries = } yes/no/atwar/not_atwar When the AI will build static AA (yes = all the time; no = none of the time)
construction = { AA_provs = { } } province tags Prioritized list of provinces to build AA in
construction = { air_base = } yes/no/atwar/not_atwar When the AI will build air bases (yes = all the time; no = none of the time)
construction = { air_base_provs = { } } province tags Prioritized list of provinces to build air bases in
construction = { coastal_fort = } yes/no/atwar/not_atwar When the AI will build coastal forts (yes = all the time; no = none of the time)
construction = { coastal_fort_provs = { } } province tags Prioritized list of provinces to build coastal forts in
construction = { force_ic_until = } value Year to which AI will build IC even without a resource surplus
construction = { fort_borders = { } } country tags List of countries the AI will build land forts along the border with
construction = { fort_provs = { } } province tags Prioritized list of provinces to build land forts in
construction = { ic_at_war = } yes/no Whether or not the AI will continue to build IC during war
construction = { ic_end_year = } value Final year during which AI will build IC
construction = { ic_provs = { } } province tags Prioritized list of provinces for AI to build IC in
construction = { land_fort = } yes/no/atwar/not_atwar When the AI will build land forts (yes = all the time; no = none of the time)
construction = { max_AA_level = } value Number of AA batteries in a province which will trigger an end to building of AA
construction = { max_air_base = } value Number of air bases in a province which will trigger an end to building of air bases
construction = { max_coastal_level = } value Number of coastal forts in a province which will trigger an end to building of coastal forts
construction = { max_factor = } value Percentage of AI's industrial capacity to allocate to production of province buildings
construction = { max_land_level = } value Number of land forts in a province which will trigger an end to building of land forts
construction = { max_naval_base = } value Number of naval bases in a province which will trigger an end to building of air bases
construction = { max_nuclear = } value Maximum level AI will build its nuclear reactor to
construction = { max_radar = } value Number of radar stations in a province which will trigger an end to building of radars
construction = { max_rocket = } value Maximum level AI will build its rocket test facility to
construction = { naval_base = } yes/no/atwar/not_atwar When the AI will build naval bases (yes = all the time; no = none of the time)
construction = { naval_base_provs = { } } province tags Prioritized list of provinces to build naval bases in
construction = { nuclear_reactor = } yes/no/atwar/not_atwar When the AI will build nuclear reactors (yes = all the time; no = none of the time)
construction = { nuclear_reactor_prov = } province tag Province in which AI will build its nuclear reactor
construction = { radar_provs = { } } province tags Prioritized list of provinces to build radar station in
construction = { radar_station = } yes/no/atwar/not_atwar When the AI will build radar stations (yes = all the time; no = none of the time)
construction = { rocket_test = } yes/no/atwar/not_atwar When the AI will build its rocket test facility (yes = all the time; no = none of the time)
construction = { rocket_test_prov = } province tag Province in which the AI will build its rocket test facility
demand_claims = { } country tags List of countries the AI will pursue territorial claims against if they exist
desperation = value Percentage of AI's IC under enemy occupation that will trigger desperation mode, in which the AI will build hordes of militia
evac_islands = yes/no Whether or not the AI will seek to evacuate low value islands
exp_force_ratio = value Percentage of land divisions the AI is willing to offer as expeditionary corps (default value 0.75)
flags = { } flags List of inter-agent variables and their condition
garrison = { defend_overseas_beaches = } yes/no Whether or not the AI will defend overseas beaches (default value is no)
garrison = { home_multiplier = } value Number of divisions per non-attrition province in home areas
liberate = { } country tags List of countries the AI will liberate if in control of their territory
max_front_ratio = value Number of AI divisions desired to oppose each enemy division on a front (default value 4.0). Higher numbers will promote more heavily defended fronts, but if a nation is incapable of fulfilling demand, excessive troop movements can occur, destabilizing the front somewhat. Ideally, the highest supportable number will promote the most stable front.
max_front_ratios = country tag = value Override of the max_front_ratio for listed countries (ignored against human players)
max_fuel_offensive = value Maximum fuel to use for offensive supply per unit strength (default value 100)
max_garrison_prop = value Maximum percentage of land divisions the AI will place under control of the Garrison AI in war time
max_redeploying = value Maximum percentage of units which AI will be in strategic redeployment at once (default value 0.25)
min_garrison_prop = value Minimum percentage of units which the AI will place under control of the Garrison AI in war time
neutrality = value How much the AI tends to decline alliances and military access
no_exp_forces_to = { } country tags List of countries the AI will not send expeditionary corps to overseas (though may be overridden for neighboring allies)
protect = { } country tag = value List of countries the AI wishes to protect. Higher values indicate the AI will work harder to guarantee their independence.
reinforcement = value Maximum percentage of the AI's industrial capacity to apply to unit reinforcements (value range 0.0 to 1.0)
resistance = { } country tag = value List of resistances against diplomatic influence by countries (value range 0-10)
strat_redeploy_threshold = value Maximum number of days for a unit to reach its destination before the AI switches to using strategic redeployment to move the unit (see also max_redeploying parameter)
target = { } province tag = value List of provinces the AI seeks to control. Higher values indicate higher priority (value range 1-100).
upgrading = value Maximum amount of the AI's industrial capacity to apply to upgrading units (value range 0.0-1.0).
use_offensive_supply = yes/no Whether or not the AI will use offensive supply at all
war = value How likely the AI is to declare wars

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.