• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

DesertSnow

Colonel
50 Badges
Oct 10, 2007
1.108
16
  • Hearts of Iron II: Armageddon
  • Stellaris - Path to Destruction bundle
  • Pillars of Eternity
  • Warlock: Master of the Arcane
  • Rome: Vae Victis
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Europa Universalis: Rome
  • Europa Universalis IV: Res Publica
  • Europa Universalis III Complete
  • March of the Eagles
  • Magicka
  • For The Glory
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV
  • Arsenal of Democracy
  • Crusader Kings II
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Darkest Hour
  • Europa Universalis III
  • Europa Universalis III Complete
  • Divine Wind
  • Europa Universalis IV: Art of War
  • Shadowrun: Hong Kong
  • Shadowrun: Dragonfall
  • Shadowrun Returns
  • Stellaris: Distant Stars
  • Stellaris: Apocalypse
  • Stellaris: Humanoids Species Pack
  • Tyranny - Bastards Wound
  • Stellaris: Synthetic Dawn
  • Imperator: Rome
  • Stellaris: Leviathans Story Pack
  • Tyranny: Archon Edition
  • Crusader Kings II: Reapers Due
  • Hearts of Iron IV: Cadet
  • Stellaris Sign-up
  • Hearts of Iron IV Sign-up
  • Stellaris
  • Crusader Kings II: Way of Life
  • Mount & Blade: Warband
  • 500k Club
  • Warlock 2: The Exiled
  • Victoria 2
  • Europa Universalis III Complete
  • Tyranny - Tales from the Tiers
  • Crusader Kings II: Charlemagne
Good morning Paradox-forumites, happy new year to all of you, and may the blood of virtual soldiers soak our keyboard for years to come...

I know that the AI can be programmed to build specific units and specific brigades. What i don't know is whether or not i can program it to use specific unit-brigade combinations.

Lets say i have this script in a AI file

military = {
relative_build_scheme = yes
max_batch_peace = 540
max_batch_war = 540
max_batch_home_front = 540

#### Divisions etc...
infantry = 50
cavalry = 0
motorized = 50
mechanized = 0
light_armor = 0
armor = 0
paratrooper = 0
marine = 0
bergsjaeger = 0
garrison = 0
hq = 0
militia = 0
# 100 %
interceptor = 0
multi_role = 0
cas = 0
strategic_bomber = 0
tactical_bomber = 0
naval_bomber = 0
transport_plane = 0
flying_bomb = 0
flying_rocket = 0
# 0 %
battleship = 0
carrier = 0
escort_carrier = 0
destroyer = 0
light_cruiser = 0
heavy_cruiser = 0
battlecruiser = 0
submarine = 0
transports = 0
# 0 %

#### Brigades
artillery = 50
sp_artillery = 50
rocket_artillery = 0
sp_rct_artillery = 0
anti_tank = 0
tank_destroyer = 0
light_armor_brigade = 0
heavy_armor = 0
super_heavy_armor = 0
armored_car = 0
anti_air = 0
police = 0
engineer = 0

What must i do so that it only puts regular artillery on regular infantry, and SP artillery on motorized infantry?

Any help would be welcome,
a "goes to bed early, even on new year's eve" modder
 

xtfoster

Field Marshal
57 Badges
Feb 8, 2006
5.874
2.209
  • Shadowrun Returns
  • Surviving Mars
  • Hearts of Iron IV: Death or Dishonor
  • Stellaris: Synthetic Dawn
  • Tyranny - Tales from the Tiers
  • Tyranny - Bastards Wound
  • Age of Wonders III
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • BATTLETECH - Digital Deluxe Edition
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Distant Stars
  • BATTLETECH
  • Shadowrun: Dragonfall
  • Shadowrun: Hong Kong
  • BATTLETECH: Flashpoint
  • Stellaris: Megacorp
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Ancient Relics
  • BATTLETECH: Season pass
  • Age of Wonders: Planetfall Sign Up
  • Stellaris: Lithoids
  • BATTLETECH: Heavy Metal
  • Hearts of Iron IV: La Resistance
  • Hearts of Iron IV: No Step Back
  • Stellaris: Galaxy Edition
  • Deus Vult
  • Europa Universalis III
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Majesty 2
  • Europa Universalis III Complete
  • Semper Fi
  • Supreme Ruler 2020
  • 500k Club
  • Hearts of Iron II: Beta
  • Stellaris
  • Hearts of Iron II: Armageddon
  • Stellaris: Galaxy Edition
  • Hearts of Iron IV Sign-up
  • Stellaris Sign-up
  • Hearts of Iron IV: Cadet
  • Tyranny: Archon Edition
  • Tyranny: Archon Edition
  • Tyranny: Gold Edition
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Hearts of Iron IV: Expansion Pass
DesertSnow said:
What must i do so that it only puts regular artillery on regular infantry, and SP artillery on motorized infantry?

Any help would be welcome,
a "goes to bed early, even on new year's eve" modder
Short of editing the division stats and making it impossible to attach SPArt to Leg Infantry and Towed Art to Motorized Infantry, there is nothing you can do.
 

DesertSnow

Colonel
50 Badges
Oct 10, 2007
1.108
16
  • Hearts of Iron II: Armageddon
  • Stellaris - Path to Destruction bundle
  • Pillars of Eternity
  • Warlock: Master of the Arcane
  • Rome: Vae Victis
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Europa Universalis: Rome
  • Europa Universalis IV: Res Publica
  • Europa Universalis III Complete
  • March of the Eagles
  • Magicka
  • For The Glory
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV
  • Arsenal of Democracy
  • Crusader Kings II
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Darkest Hour
  • Europa Universalis III
  • Europa Universalis III Complete
  • Divine Wind
  • Europa Universalis IV: Art of War
  • Shadowrun: Hong Kong
  • Shadowrun: Dragonfall
  • Shadowrun Returns
  • Stellaris: Distant Stars
  • Stellaris: Apocalypse
  • Stellaris: Humanoids Species Pack
  • Tyranny - Bastards Wound
  • Stellaris: Synthetic Dawn
  • Imperator: Rome
  • Stellaris: Leviathans Story Pack
  • Tyranny: Archon Edition
  • Crusader Kings II: Reapers Due
  • Hearts of Iron IV: Cadet
  • Stellaris Sign-up
  • Hearts of Iron IV Sign-up
  • Stellaris
  • Crusader Kings II: Way of Life
  • Mount & Blade: Warband
  • 500k Club
  • Warlock 2: The Exiled
  • Victoria 2
  • Europa Universalis III Complete
  • Tyranny - Tales from the Tiers
  • Crusader Kings II: Charlemagne
xtfoster said:
Short of editing the division stats and making it impossible to attach SPArt to Leg Infantry and Towed Art to Motorized Infantry, there is nothing you can do.

I was afraid of that... Thanks for the answer, mate :)