• 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.

PB-DK

Former Paradox Fan
61 Badges
Aug 26, 2003
1.820
86
Visit site
  • Mount & Blade: Warband
  • Semper Fi
  • Sword of the Stars
  • Sword of the Stars II
  • Supreme Ruler: Cold War
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Warlock: Master of the Arcane
  • War of the Roses
  • 500k Club
  • Hearts of Iron II: Beta
  • Pride of Nations
  • Rome Gold
  • Mount & Blade: With Fire and Sword
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Hearts of Iron IV Sign-up
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Field Marshal
  • Stellaris: Leviathans Story Pack
  • Stellaris - Path to Destruction bundle
  • Hearts of Iron IV: No Step Back
  • For the Motherland
  • Hearts of Iron II: Armageddon
  • Crusader Kings II
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Darkest Hour
  • Deus Vult
  • Dungeonland
  • Europa Universalis III
  • Europa Universalis III Complete
  • Europa Universalis IV
  • For The Glory
  • Arsenal of Democracy
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III Collection
  • Heir to the Throne
  • Europa Universalis III Complete
  • Knights of Pen and Paper +1 Edition
  • Magicka
  • Majesty 2
  • Europa Universalis III Complete
  • Naval War: Arctic Circle
was trying to get remove_division and delete_unit to work to clean up militia from Spain but i seem to be using them wrong, anyone with experience with it?

type = remove_division which = [div id type/-1] value = [div id id] # Remove a division from the scenario. -1 is a random division (the value field will be ignored).
type = remove_division which = "Exact Name" value = [country tag] # Remove a named division from the scenario (for a certain country.)

or this
type = delete_unit which = [unit id type/-1/-2/-3] when = [percent] # -1 is a random land unit -2 random naval unit -3 random air unit, "when" clause optional, if given integer value between 0 - 100 it will delete that percent of nation's existing corps/fleets/wings
Code:
#########################################
#    Civil War Cleanup by Evil Overlord
#########################################
event = {
    id = 32490
    random = no
    country = SPA
    persistent = yes
   
    trigger = {
        ai = yes
        atwar = no
        army = 30
        militia = 1
    }

    name = "AI_EVENT"
    style = 0
   
    date = { day = 0 month = january year = 1937}
    offset = 10
    deathdate = { day = 29 month = december year = 1999 }

    action_a = {
        command = { type = delete_unit  which = militia when = 100 }
    }
}
 
The command type = delete_unit which = militia does not imply differentiation by unit type. This is not provided for in the AOD.
Or random land units or random naval units or random air units.
100 percent.
 
Last edited:
  • 1Like
Reactions: