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

ForzaA

Former paradox QA
Paradox Staff
QA
136 Badges
Apr 1, 2001
10.288
1.549
  • Majesty 2
  • For The Glory
  • For the Motherland
  • Hearts of Iron III
  • Heir to the Throne
  • Impire
  • Europa Universalis III Complete
  • King Arthur II
  • Knights of Pen and Paper +1 Edition
  • Leviathan: Warships
  • The Kings Crusade
  • Lost Empire - Immortals
  • Magicka
  • Europa Universalis IV: Call to arms event
  • Majesty 2 Collection
  • March of the Eagles
  • Europa Universalis III Complete
  • Naval War: Arctic Circle
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Europa Universalis: Rome
  • Rome Gold
  • Semper Fi
  • Ship Simulator Extremes
  • Sword of the Stars
  • Hearts of Iron IV: No Step Back
  • Crusader Kings II: Sword of Islam
  • Arsenal of Democracy
  • Hearts of Iron II: Armageddon
  • Cities in Motion
  • Cities in Motion 2
  • 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
  • A Game of Dwarves
  • Darkest Hour
  • Deus Vult
  • Diplomacy
  • Dungeonland
  • East India Company Collection
  • Europa Universalis III
  • Divine Wind
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
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 = "<snip>."
      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 }
                 }
}

now.. i understand that a good victory is needed to secure Ladislaus' crown... but conquering the whole of Hungary, leaving them with their capital will NOT lead to Ladislaus' coronation.. the only province that MUST be Habsburg or Rebel controled is their capital (Pest) thus a war will either lead to a government collapse before the event occurs.
Also.. the capital moving in this event might NOT be possible because of Austria owning the province...

EDIT: also, is some event supposed to trigger this??
 
Last edited:
in the same series of events:

Code:
event = {
      id = 179104
      trigger = { flag = Wladyslaw 
                  NOT = { event = 179103 } #Coronation of Wladislaw II 
                }
HAB event, but i fail to see a HAB event setting that flag, and IIRC flags are country-specific.
In fact.. i don't see ANY event setting the flag at all
 
*Hits his head on a desk* This kind of fantasy (or rather alternate history) event that is only likely to occur with a player involved, is somewhat hard to test... it obviously needs a date entry :(, the trigger needs to be revised and you're of course right about the flag - when I wrote the events I did not know that flags are country-specific. The "Wladyslaw" flag is set by the A choice of the Hungarian "Vacant throne" event; an easy fix for the flag issue would be to have the Austrian reaction event (the one that has them claim Hungary) set a flag as well.
Sorry for the errors, but this one can virtually only be seen in action with a player Austria....
Btw, since this is a bug report, shouldn't it have been posted to the Bugs and Fixes thread? :D
Anyway, thank you very much for pointing out the errors, that otherwise would have taken long to find :)
 
Originally posted by Twoflower

Btw, since this is a bug report, shouldn't it have been posted to the Bugs and Fixes thread?

it might have been better.. but when i first discovered it, I felt more like the Pest issue should be discussed rather than reported as error

and i believe that more of these events lack their dates....