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

unmerged(61487)

Sergeant
Oct 5, 2006
94
0
i've tried to add an event to the modern day scenario but that event simply won't fire. so i would like to ask what i did wrong,here is the event:

event = {
id = 2105
random = no
country = AUS


name = "Presidential Elections"
desc = "On the 25th of April 2004 Austrias new president is elected. The candidates are the former foreign Minister Benita-Ferrero Waldner of the ÖVP and Heinz Fischer of the SPÖ."
style = 0
picture = "demonstrations"
trigger = { exists = AUS
atwar = no
}
date = { day = 25 month = april year = 2004 }
offset = 5
deathdate = { day = 30 month = april year = 2004 }


action_a = {
name = "Choose Heinz Fischer"
ai_chance = 60
command = { type = headofstate which = 90010 }
command = { type = foreignminister which = 90012 }
command = { type = domestic which = political left value = -1 }
}
action_b = {
name = "Choose Benita-Ferrero Waldner"
ai_chance = 40
command = { type = headofstate which = 90015 }
command = { type = foreignminister which = 90012 }
}
}
 
Last edited:

Gen. Skobelev

Werewolf therapist
81 Badges
May 9, 2005
3.387
251
  • Victoria: Revolutions
Make the offset smaller. Now it looks for event triggers on the same day the event has deathdate. Also, use code tags when posting events to preserve intendation and make it more readable.
 

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
Is it in an existing event file or did you make a new event file. If its new remember to add the event file name to the events.txt file.

Ayeshteni