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

Stahl-Opa

Marshall & Grossadmiral of Helvetia
72 Badges
Jun 16, 2011
728
150
www.vmods.org
  • Victoria 2: A House Divided
  • Europa Universalis IV: Call to arms event
  • Gettysburg
  • Heir to the Throne
  • King Arthur II
  • Leviathan: Warships
  • Magicka
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Crusader Kings II: Charlemagne
  • Victoria 2: Heart of Darkness
  • Warlock 2: Wrath of the Nagas
  • Pillars of Eternity
  • Europa Universalis IV: Mare Nostrum
  • Stellaris: Galaxy Edition
  • Crusader Kings II: Reapers Due
  • Stellaris: Synthetic Dawn
  • Europa Universalis IV: Conquest of Paradise
  • Crusader Kings II
  • 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 IV: Wealth of Nations
  • Europa Universalis III: Chronicles
  • Europa Universalis III Complete
  • Europa Universalis IV: Art of War
  • Divine Wind
  • Europa Universalis III
  • Crusader Kings II: Horse Lords
  • Stellaris: Digital Anniversary Edition
  • Europa Universalis IV: Rights of Man
  • Stellaris Sign-up
  • Europa Universalis IV
  • Stellaris: Nemesis
  • Stellaris
  • Europa Universalis III Complete
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Mount & Blade: Warband
  • Europa Universalis IV: El Dorado
  • 500k Club
  • Warlock 2: The Exiled
  • Europa Universalis III Complete
Hi guys

I wanna make a event which triggers when a nation has 600 divisions and a 2nd after the first event triggered and the nation have just <600 Divisions.

I used for that the "army = X" trigger and a localflag, but it doesn't work.

1st event trigger:

random = no
persistent = yes
trigger = {
AND = {
army = {size = 600 type = 0 when = 1 where = 1 which = 1 }
NOT = { local_flag = X }
}
}

2nd event trigger:

random = no
persistent = yes
trigger = {
AND = { local_flag = X
NOT = { army = {size = 600 type = 0 when = 1 where = 1 which = 1 } }
}
}


why it don't work? where I failed?

greez
StahlOpa
 
Not bad for a first effort.

Have a look in the event_commands.txt file in your Mods Documentation folder for how to do event commands properly.

Off the top of my head: it's
army = 600

set a flag with setflag =, or local_setflag =

trigger the 2nd event in the first.

Probably best to have a look at some of the commands in DH and just copy and change from there.
 
hmm, it works with "army = 600", thanks a lot :)

But that's already e bit strange, 'cause in the event commands.txt is has also the trigger "army = {size = X type = 0/1 when = 0/1 where =0/ 1 which = 0/1 country = TAG"
(type = all units or exclude HQ/garrison; when = ready divisions onlny or inculde divisions under construction; where = expeditonary force inculde orown units only; which = real-time ckeck or fast check)

For now it's okay with just army = 600, but it will be fine for my work if I can include Divs under construction.

Someone knows if the Army = {......} trigger is broken or how it works?

Thanks for your help :)