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

M@ni@c

Lt. General
53 Badges
Apr 27, 2002
1.410
600
Visit site
  • Age of Wonders II
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Crusader Kings II: Reapers Due
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • Stellaris: Synthetic Dawn
  • Age of Wonders
  • Pillars of Eternity
  • Crusader Kings II: Jade Dragon
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Stellaris: Distant Stars
  • Stellaris: Megacorp
  • Crusader Kings II: Holy Fury
  • Stellaris: Ancient Relics
  • Stellaris: Lithoids
  • Stellaris: Federations
  • Crusader Kings III
  • Stellaris: Necroids
  • Stellaris: Nemesis
  • Divine Wind
  • 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
  • Europa Universalis III: Chronicles
  • Europa Universalis III Complete
  • Crusader Kings II
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Heir to the Throne
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Sword of the Stars
  • Sword of the Stars II
  • Victoria 2
  • Victoria 2: A House Divided
I'm currently playing a Grand Campaign as Austria, EEP 1.4.2a, patch 1.07 last beta. The following event doesn't fire for Hungary:

Code:
#Loyalist Victory
event = {
      id = 188102
      trigger = { 
              flag = Wladislaw
              OR = { owned = { province = 353 data = HAB } #Pest
                     control = { province = 353 data = REB }
                   }
              OR = { owned = { province = 324 data = HAB } #Maros
                     owned = { province = 325 data = HAB } #Magyar
                     control = { province = 324 data = REB } 
                     control = { province = 325 data = REB }
                   }
              OR = { owned = { province = 316 data = HAB } #Carpathia
                     owned = { province = 317 data = HAB } #Ruthenia
                     owned = { province = 326 data = HAB } #Presburg
                     control = { province = 316 data = REB } 
                     control = { province = 317 data = REB } 
                     control = { province = 326 data = REB }
                   }
              OR = { owned = { province = 323 data = HAB } #Transylvania
                     owned = { province = 354 data = HAB } #Banat
                     owned = { province = 355 data = HAB } #Serbia
                     control = { province = 323 data = REB } #Transylvania
                     control = { province = 354 data = REB } #Banat
                     control = { province = 355 data = REB } #Serbia
                   }
              OR = { owned = { province = 366 data = HAB } #Croatia
                     owned = { province = 367 data = HAB } #Krain
                     control = { province = 366 data = REB } #Croatia
                     control = { province = 367 data = REB } #Krain
                   }
              NOT = { war = { country = HUN country = HAB }} #War needs to be over, otherwise there could be weird consequences
                }
      random = no
      country = HUN
      name = "Victory of the supporters of Ladislaus Postumus"
      desc = "Since most of Hungary has been captured by the Hapsburgs and their Hungarian supporters, support for King Ulászló and Janos Hunyadi is fading and Ladislaus Postumus is commonly acknowledged as rightful King."
      style = 1
     
      action_a = {
               name = "Accept Ladislaus"
               command = { type = vp value = -150 }
               command = { type = breakvassal which = POL }
               command = { type = wakemonarch which = 03620 } #Elizabeth of Luxemburg (Regent)
               command = { type = wakemonarch which = 03621 } #Frederick of Styria (Regent) 
               command = { type = sleepmonarch which = 06262 } #Ulászló I
               command = { type = sleepmonarch which = 06282 } #Interregnum
               command = { type = sleepmonarch which = 06283 } #General-Captains of Hungary
               # command = { type = sleepleader which = XXXXX } #Ulászlo I
               command = { type = trigger which = 179103} #HAB: Coronation of Ladislaus Postumus II 
               command = { type = independence which = SIE } #Hunyadi fights on
               command = { type = province_revoltrisk which = 316 value = -2 }
               command = { type = province_revoltrisk which = 325 value = -2 }
               command = { type = province_revoltrisk which = 326 value = -2 }
               command = { type = province_revoltrisk which = 352 value = -2 }
               command = { type = province_revoltrisk which = 353 value = -2 }   
               command = { type = province_revoltrisk which = 367 value = -4 }      
               command = { type = stability value = 2 }
               command = { type = capital which = 326 } 
               command = { type = clrflag which = Wladislaw }
               command = { type = setflag which = Ladislaus }     
                }
      action_b = {
               name = "Never, Ulászló is rightful King!"
               command = { type = stability value = -3 } 
               command = { type = war which = HAB }
                 }
}

If I understand the trigger system well, one condition out of each OR-group has to be fulfilled for the event to be fired.
I went to war with Hungary, and with the help of the free HRE manpower and the assistance of Loyalist rebels, I quickly captured most Hungarian provinces. When I saw a rebel force of 14k was moving towards the (Austrian controlled) city of Pest, I quickly signed peace with Hungary for the provinces of Maros, Magyar and Croatia. Banat and Carpathia were at that moment rebel controlled. Several months later Pest fell as well to Loyalist rebel forces. AFAIK this means all the triggers were fulfilled. I owned provinces from the 2nd and 5th OR-group, and rebels controlled provinces from the other OR-groups. I waited a year, but still, the event didn't fire. Does anyone know what could be the problem??

Btw, is it intentional that the event triggers are so hard to fulfill? Since Pest is the capital of Hungary, you can't control that province unless you annex the whole of Hungary. So unless I'm mistaken this event can only fire if you have the major luck that a rebel force happens to move to Pest and capture it.
 
That event doesn't have a "date" line.

As such it can never trigger unless it is trigger externally, by another event. All events must be either random, have a date or be triggered externally to get what Daywalker calls a "spark". Not reason you should know this, but I thought I'd mention it to anyone else whe may be writing events.

Obviously this is a bug. I'd recommend loading the save as Hundary, going to the console (F10) and typing "event 188102". Then save an resume play as Austria.

edit: read ForzaA's thread and realized that he has posted the same thing.