• 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.
Dec 3, 2007
111
0
This is intendent to destroy all armies of all countries from the begining. whats wrong?


P.S. I didnt code this. I added the dates.
Code:
################################################## #######################
# Deleting Divisions adding Manpower
################################################## #######################
event = {
id = 20999
random = no
persistent = yes


name = "Disarmament"
desc = "We can't support and don't need a large army, we should demobilize part of it and build a small, modern, professional army instead."
style = 0
picture = "minor"


date = { day = 1 month = hanuary year = 1936 }
date = { day = 2 month = hanuary year = 1936 }
date = { day = 3 month = hanuary year = 1936 }
date = { day = 4 month = hanuary year = 1936 }
date = { day = 5 month = hanuary year = 1936 }
date = { day = 6 month = hanuary year = 1936 }
date = { day = 7 month = hanuary year = 1936 }

action_a = {
name = "Disarmament; send the people home"
ai_chance = 100

# Delete Army
command = { type = delete_unit which = -1 }
command = { type = delete_unit which = -1 }
command = { type = delete_unit which = -1 }
command = { type = delete_unit which = -1 }
command = { type = delete_unit which = -1 }
command = { type = delete_unit which = -1 }
command = { type = delete_unit which = -1 }
command = { type = delete_unit which = -1 }
command = { type = delete_unit which = -1 }
command = { type = delete_unit which = -1 }
command = { type = delete_unit which = -1 }
command = { type = delete_unit which = -1 }
command = { type = delete_unit which = -1 }
command = { type = delete_unit which = -1 }
command = { type = delete_unit which = -1 }
command = { type = delete_unit which = -1 }
command = { type = delete_unit which = -1 }
command = { type = delete_unit which = -1 }
command = { type = delete_unit which = -1 }
command = { type = delete_unit which = -1 }
command = { type = delete_unit which = -1 }
command = { type = delete_unit which = -1 }
command = { type = delete_unit which = -1 }
command = { type = manpowerpool value = 250 } # manpower

}
}
 

unmerged(42723)

Field Marshal
Apr 6, 2005
3.564
0
That it happens so often is IMO due to the persistent line. Afaik if you want to fire it only once (per country???) leave that line out. I'm not completely sure though.....
 

unmerged(66346)

Major
64 Badges
Jan 31, 2007
549
0
  • Crusader Kings II: Horse Lords
  • Supreme Ruler: Cold War
  • Teleglitch: Die More Edition
  • The Showdown Effect
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Warlock: Master of the Arcane
  • Cities: Skylines
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Pre-order
  • Mount & Blade: Warband
  • Europa Universalis IV: Common Sense
  • Sword of the Stars II
  • Cities: Skylines - After Dark
  • Europa Universalis IV: Cossacks
  • Cities: Skylines - Snowfall
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Europa Universalis IV: Rights of Man
  • Cities: Skylines - Natural Disasters
  • Cities: Skylines - Mass Transit
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: Third Rome
  • Age of Wonders III
  • Europa Universalis 4: Emperor
  • Europa Universalis III: Chronicles
  • Cities in Motion
  • Crusader Kings II
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Darkest Hour
  • Europa Universalis III
  • Ancient Space
  • Divine Wind
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • Heir to the Throne
  • Magicka
  • March of the Eagles
  • Europa Universalis IV: Res Publica
The only way I'm sure you can trigger it for every country is to make the same event for each different idelogies.

What you need to put in the triggers is :
ideology = nazi/fascist/leninist/etc...

IMO if you whant to have nothing at the start just make a backup of the scenario files and delete everything in the OB for each nation, that's easier.