Login

russian armor

[Guide] Creating AI Only Upgrades

12 Jan 2026, 10:03 AM
#1
avatar of Sie_Sayoka
Modmaker Badge

Posts: 105 | Subs: 1

Since this has come up a lot I figured it'd be helpful to some people. An AI only upgrade will allow you to enable or disable features for the AI. This can be for disabling certain units and abilities, or for better management of AI behavior. I am unsure if all of the steps are necessary but it's what has worked for me and will always work assuming the map the mod is played on is functioning properly.

Before we go over the steps it's important that we learn a bit about how AI functions. The AI will have a list of tasks that it needs to do sorted by an enigmatic priority. It can assign multiple tasks at once, assuming it has the ability to do so. For example, a building can only train or upgrade one at a time. To prevent issues it's best to add the AI only upgrade to something that can't build/upgrade/train anything at the start of the match.

  • 1. Create your AI only upgrade.
    • Owner_type: player.
    • All costs: 0.
    • Ui_position: -1.

  • 2. Add the upgrade to ai_economy\default, or a custom ai_economy if your mod uses one.
    • Player_upgrades
      • utility: 1000
      • utility_random_range_offset: -1.
    • Upgrades
      • per_unit_scale: 1
      • per_unit_scale_historical: 1
      • utility: 1000
      • utility_random_range_offset: -1.

  • 3. Assign the entity which will do the upgrading. As mentioned before you wouldn't want it on something that could conflict with it upgrading. Here are the entities I've used:
    • AEF: armor_command_mp
    • Brit: brit_weapon_rack_bren_lmg_mp
    • OST: german_hq_mp
    • OKW: west_german_hq_mp
    • SOV: hq_mp (untested, might not work)

  • 4. Add the upgrade to the each army category.
    • Ai_production_info
      • create new unlocking_upgrade_info
        • Upgrade_pbg: your AI only upgrade
        • All other fields here must be filled, it doesn't matter what is there.

  • 5. Set your requirement_actions with the AI only upgrade for squads, upgrades, and abilities that you wish to disable/enable for the AI.
1 user is browsing this thread: 1 guest

Livestreams

unknown 0
unknown 2
Russian Federation 1

Ladders Top 10

  • #
    Steam Alias
    W
    L
    %
    Streak
Data provided by Relic Relic Entertainment

Replay highlight

VS
  • U.S. Forces flag cblanco ★
  • The British Forces flag 보드카 중대
  • Oberkommando West flag VonManteuffel
  • Ostheer flag Heartless Jäger
uploaded by XXxxHeartlessxxXX

Board Info

1446 users are online: 1446 guests
0 post in the last 24h
3 posts in the last week
10 posts in the last month
Registered members: 65842
Welcome our newest member, lodotyte
Most online: 4501 users on 26 Oct 2025, 01:00 AM