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

tripp_trap

Colonel
43 Badges
Mar 6, 2005
851
0
  • Hearts of Iron IV Sign-up
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Warlock: Master of the Arcane
  • 200k Club
  • 500k Club
  • Pride of Nations
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Teleglitch: Die More Edition
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Together for Victory
  • Hearts of Iron IV: Death or Dishonor
  • Hearts of Iron IV: Expansion Pass
  • Shadowrun Returns
  • Shadowrun: Dragonfall
  • Shadowrun: Hong Kong
  • Hearts of Iron IV: Expansion Pass
  • Prison Architect
  • Battle for Bosporus
  • Divine Wind
  • 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
  • Europa Universalis III Complete
  • Cities in Motion 2
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Heir to the Throne
  • Europa Universalis III Complete
  • Magicka
  • Europa Universalis III Complete
  • Victoria: Revolutions
  • Semper Fi
hi all! been fooling around a bit with events, and made this one:

tripp_trap said:
#########################################################################
# A Lend-Lease Shipment Arrives from the USA
#########################################################################
event = {
id = 135790
random = 75
country = GER
persistent = no

trigger = {
war = { country = GER country = SOV }
control = { province = 485 data = SOV }
OR = {
war = { country = GER country = USA }
control = { province = 56 data = USA }
}

name = "The creation of the Volksturm"
desc = "Great Führer, our forces is thin on every front, and get's thinner every day. We must find a way to access more fresh troops. Perhaps we could use criminals? Or maybe even younger and older men?"
style = 0
picture = "lend_lease"

date = { day = 1 month = 1 year = 1942}
offset = 7 # Check for trigger conditions every seven days
deathdate = { day = 30 month = december year = 1947 }

action_a = {
name = "Form the Volksturm and draft criminals"
command = { type = add_division which = "1. Volksturm Division" value = infantry when = 1 }
command = { type = add_division which = "2. Volksturm Division" value = infantry when = 1 }
command = { type = add_division which = "3. Volksturm Division" value = infantry when = 1 }
command = { type = add_division which = "4. Volksturm Division" value = infantry when = 1 }
command = { type = add_division which = "5. Volksturm Division" value = infantry when = 1 }
command = { type = add_division which = "6. Volksturm Division" value = infantry when = 1 }
command = { type = add_division which = "7. Volksturm Division" value = infantry when = 1 }
command = { type = add_division which = "8. Volksturm Division" value = infantry when = 1 }
command = { type = add_division which = "9. Volksturm Division" value = infantry when = 1 }
command = { type = add_division which = "10. Volksturm Division" value = infantry when = 1 }
command = { type = add_division which = "11. Volksturm Division" value = infantry when = 1 }
command = { type = add_division which = "12. Volksturm Division" value = infantry when = 1 }
command = { type = add_division which = "Ehrsats Division A 999" value = mechanized when = 2 }
command = { type = manpowerpool value = 25 }
command = { type = dissent value = 5 }
}
action_b = {
name = "Only form the Volksturm"
command = { type = add_division which = "1. Volksturm Division" value = infantry when = 1 }
command = { type = add_division which = "2. Volksturm Division" value = infantry when = 1 }
command = { type = add_division which = "3. Volksturm Division" value = infantry when = 1 }
command = { type = add_division which = "4. Volksturm Division" value = infantry when = 1 }
command = { type = add_division which = "5. Volksturm Division" value = infantry when = 1 }
command = { type = add_division which = "6. Volksturm Division" value = infantry when = 1 }
command = { type = add_division which = "7. Volksturm Division" value = infantry when = 1 }
command = { type = add_division which = "8. Volksturm Division" value = infantry when = 1 }
command = { type = add_division which = "9. Volksturm Division" value = infantry when = 1 }
command = { type = add_division which = "10. Volksturm Division" value = infantry when = 1 }
command = { type = add_division which = "11. Volksturm Division" value = infantry when = 1 }
command = { type = add_division which = "12. Volksturm Division" value = infantry when = 1 }
command = { type = manpowerpool value = 15 }
command = { type = dissent value = 2 }
}
action_c = {
name = "Just squeeze some more"
command = { type = manpowerpool value = 5 }
}
}

What's wrong with it?
 

Ayeshteni

Jehanne's Slave
111 Badges
Jul 31, 2002
6.280
108
  • 500k Club
  • Europa Universalis III Complete
  • March of the Eagles
  • Europa Universalis III Complete
  • Penumbra - Black Plague
  • Europa Universalis IV: Res Publica
  • Europa Universalis: Rome
  • Semper Fi
  • Sengoku
  • Victoria 2
  • Victoria 2: A House Divided
  • Rome: Vae Victis
  • 200k Club
  • Heir to the Throne
  • Cities: Skylines
  • Crusader Kings II: Holy Knight (pre-order)
  • Europa Universalis III: Collection
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Pre-order
  • Pride of Nations
  • Rise of Prussia
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Cities: Skylines - After Dark
  • Hearts of Iron IV: No Step Back
  • Europa Universalis III
  • Hearts of Iron II: Armageddon
  • 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
  • Deus Vult
  • A Game of Dwarves
  • 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
  • For The Glory
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
tripp_trap said:
hi all! been fooling around a bit with events, and made this one:



What's wrong with it?

you need another closing bracket in the trigger to close the OR statement..

trigger = {
war = { country = GER country = SOV }
control = { province = 485 data = SOV }
OR = {
war = { country = GER country = USA }
control = { province = 56 data = USA }
}
}

Ayeshteni
 

tripp_trap

Colonel
43 Badges
Mar 6, 2005
851
0
  • Hearts of Iron IV Sign-up
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Warlock: Master of the Arcane
  • 200k Club
  • 500k Club
  • Pride of Nations
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Teleglitch: Die More Edition
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Together for Victory
  • Hearts of Iron IV: Death or Dishonor
  • Hearts of Iron IV: Expansion Pass
  • Shadowrun Returns
  • Shadowrun: Dragonfall
  • Shadowrun: Hong Kong
  • Hearts of Iron IV: Expansion Pass
  • Prison Architect
  • Battle for Bosporus
  • Divine Wind
  • 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
  • Europa Universalis III Complete
  • Cities in Motion 2
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Heir to the Throne
  • Europa Universalis III Complete
  • Magicka
  • Europa Universalis III Complete
  • Victoria: Revolutions
  • Semper Fi
Ayeshteni said:
you need another closing bracket in the trigger to close the OR statement..

trigger = {
war = { country = GER country = SOV }
control = { province = 485 data = SOV }
OR = {
war = { country = GER country = USA }
control = { province = 56 data = USA }
}
}

Ayeshteni

Yeah, it works now! thanks! :)
 

Ayeshteni

Jehanne's Slave
111 Badges
Jul 31, 2002
6.280
108
  • 500k Club
  • Europa Universalis III Complete
  • March of the Eagles
  • Europa Universalis III Complete
  • Penumbra - Black Plague
  • Europa Universalis IV: Res Publica
  • Europa Universalis: Rome
  • Semper Fi
  • Sengoku
  • Victoria 2
  • Victoria 2: A House Divided
  • Rome: Vae Victis
  • 200k Club
  • Heir to the Throne
  • Cities: Skylines
  • Crusader Kings II: Holy Knight (pre-order)
  • Europa Universalis III: Collection
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Pre-order
  • Pride of Nations
  • Rise of Prussia
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Cities: Skylines - After Dark
  • Hearts of Iron IV: No Step Back
  • Europa Universalis III
  • Hearts of Iron II: Armageddon
  • 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
  • Deus Vult
  • A Game of Dwarves
  • 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
  • For The Glory
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour