These are the modified Hungarian events. The original sequence is a bit convoluted, and this more so:
#The Death of King Lajos of Hungary#
event = {
id = 3639 #Previous 1526 Hungarian (Siebenburgen exists) event#
trigger = {
exists = HAB
control = { province = 353 data = TUR }#Pest
control = { province = 325 data = TUR }#Magyar
control = { province = 324 data = TUR }#Maros
owned = { province = 353 data = -1 }
owned = { province = 325 data = -1 }
owned = { province = 324 data = -1 }
}
random = no
country = HUN
name = "EVENTNAME3639"
desc = "EVENTHIST3184" #changed the description, more suitable imo
#
style = 2
date = { day = 13 month = march year = 1516 } #earlier startdate-they year Lajos took the throne#
offset = 0
deathdate = { day = 21 month = july year = 1540 } #The death of Janos I Zapolya#
action_a ={ #Elect Ferdinand Habsburg of Austria#
name = "ACTIONNAME3639B"
command = { type = trigger which = 3185 } #HAB#
}
action_b ={ #Elect Johan Zapolya of Siebenbürgen#
name = "ACTIONNAME3639A" #This is Die-Hard independence option.#
command = { type = stability value = -3 }
command = { type = relation which = HAB value = -200 }
command = { type = desertion which = -1 value = 15000 }
command = { type = desertion which = -1 value = 10000 }
command = { type = desertion which = -1 value = 10000 }
command = { type = desertion which = -1 value = 5000 }
command = { type = desertion which = -1 value = 5000 }
command = { type = trigger which = 27001 }
}
}
#The Habsburg Inheritance of Hungary# #Habsburg#
event = {
id = 3185 #Triggered by HUN3639#
random = no
country = HAB
name = "EVENTNAME3185"
desc = "EVENTHIST3185"
style = 2
action_a ={ #I will be crowned King of Hungary#
name = "ACTIONNAME3185A"
command = { type = stability value = 1 }
command = { type = vassal which = HUN }
command = { type = add_countryculture which = magyar }
command = { type = add_countryculture which = slovak }
command = { type = relation which = HUN value = 150 }
command = { type = relation which = TUR value = -200 }
command = { type = domestic which = CENTRALIZATION value = -3 }
command = { type = domestic which = ARISTOCRACY value = 2 }
command = { type = addcore which = 326 }
command = { type = addcore which = 352 }
command = { type = addcore which = 367 }
command = { type = addcore which = 316 }
command = { type = addcore which = 353 }
command = { type = addcore which = 317 }
command = { type = addcore which = 325 }
command = { type = addcore which = 354 }
command = { type = addcore which = 323 }
command = { type = addcore which = 324 }
command = { type = addcore which = 366 }
command = { type = addcore which = 355 } #Perhaps add war command with Ottomans?#
command = { type = trigger which = 27000 }
}
action_b ={ #I will be King of Germany, not Hungary#
name = "I will be King of Germany, not Hungary"
command = { type = stability value = 1 }
command = { type = addcore which = 314 }
command = { type = addcore which = 329 }
command = { type = addcore which = 352 }
command = { type = removecore which = 368 }
command = { type = trigger which = 27001 }
}
}
#The Death of King Lajos of Hungary#
event = {
id = 27000 #Previous 1526 Hungarian (Siebenburgen exists) event#
random = no
country = HUN
style = 2
name = "Ferdinand Accepts the Crown"
desc = "Ferdinand Hapsburg of Austria has consented to become King of Hungary."
action_a ={ #Elect Ferdinand Habsburg of Austria#
name = "ACTIONNAME3639B"
command = { type = sleepmonarch which = 06267 }#no effect, but i will leave it here.
command = { type = sleepmonarch which = 06284 }
command = { type = sleepmonarch which = 06285 }
command = { type = sleepmonarch which = 06286 }
command = { type = sleepmonarch which = 06287 }
command = { type = sleepmonarch which = 06288 }
command = { type = sleepmonarch which = 06289 }
command = { type = sleepmonarch which = 06290 }
command = { type = sleepmonarch which = 06291 }
command = { type = sleepmonarch which = 06292 }
command = { type = sleepmonarch which = 06293 }
command = { type = sleepmonarch which = 06294 }
command = { type = sleepmonarch which = 06295 }
command = { type = sleepmonarch which = 06296 }
command = { type = sleepmonarch which = 06297 }
command = { type = sleepmonarch which = 06298 }
command = { type = wakemonarch which = 06268 }
command = { type = wakemonarch which = 06269 }
command = { type = wakemonarch which = 06270 }
command = { type = wakemonarch which = 06271 }
command = { type = wakemonarch which = 06272 }
command = { type = wakemonarch which = 06273 }
command = { type = wakemonarch which = 06274 }
command = { type = wakemonarch which = 06275 }
command = { type = wakemonarch which = 06276 }
command = { type = wakemonarch which = 06277 }
command = { type = wakemonarch which = 06278 }
command = { type = wakemonarch which = 06279 }
command = { type = wakemonarch which = 06280 }
command = { type = trigger which = 3645 } #TUR#
command = { type = trigger which = 3185 } #HAB#
command = { type = secedeprovince which = HAB value = 316 } #Hungarian provinces. Now, where should Magyar go i am not sure#
command = { type = secedeprovince which = HAB value = 326 }
command = { type = secedeprovince which = HAB value = 352 }
command = { type = secedeprovince which = HAB value = 367 } #plus few provinces possibly conquered by Hungary , outside Ottoman reach#
command = { type = secedeprovince which = HAB value = 368 } #Istria#
command = { type = secedeprovince which = HAB value = 315 } #Bohemia#
command = { type = secedeprovince which = HAB value = 314 }
command = { type = secedeprovince which = HAB value = 329 }
command = { type = secedeprovince which = HAB value = 330 }
command = { type = secedeprovince which = HAB value = 328 }
command = { type = secedeprovince which = HAB value = 330 }
command = { type = secedeprovince which = HAB value = 369 } #Steimark#
command = { type = secedeprovince which = HAB value = 327 } #Ostmarch#
command = { type = secedeprovince which = HAB value = 350 } #Salzburg#
command = { type = secedeprovince which = TUR value = 323 } #Transylvania#
command = { type = secedeprovince which = TUR value = 317 } #Ruthenia#
}
}
#The Death of King Lajos of Hungary#
event = {
id = 27001
random = no
country = HUN
style = 2
name = "Ferdinand Refuses the Crown"
desc = "Ferdinand Hapsburg of Austria has refused to become King of Hungary, leaving the crown to Johan Zapolya of Siebenbürgen. Our German and Czech possessions will still become the property of Austria."
action_a ={ #Elect Johan Zapolya of Siebenbürgen#
name = "ACTIONNAME3639A"
command = { type = stability value = -1 }
command = { type = secedeprovince which = HAB value = 314 }
command = { type = secedeprovince which = HAB value = 315 }
command = { type = secedeprovince which = HAB value = 328 }
command = { type = secedeprovince which = HAB value = 329 }
command = { type = secedeprovince which = HAB value = 330 }
command = { type = secedeprovince which = HAB value = 352 }
command = { type = secedeprovince which = HAB value = 327 } #In case Hungary took some of
command = { type = secedeprovince which = HAB value = 350 } #Austria's provinces
command = { type = secedeprovince which = HAB value = 369 } #
command = { type = secedeprovince which = HAB value = 371 } #
command = { type = trigger which = 28000 }
}
}
#The Habsburg Inheritance of Hungary# #Only Heir#
event = {
id = 3184
trigger = {
exists = HUN
NOT = {
event = 3639
}
}
random = no
country = HAB
name = "EVENTNAME3098"
desc = "EVENTHIST3098"
style = 2
date = { day = 22 month = july year = 1540 }
offset = 0
deathdate = { day = 23 month = july year = 1540 }
action_a ={ #I will be crowned King of Hungary#
name = "ACTIONNAME3185A"
command = { type = inherit which = HUN }
command = { type = add_countryculture which = magyar }
command = { type = add_countryculture which = slovak }
command = { type = stability value = 3 }
command = { type = domestic which = CENTRALIZATION value = -3 }
command = { type = domestic which = ARISTOCRACY value = 2 }
command = { type = addcore which = 326 }
command = { type = addcore which = 352 }
command = { type = addcore which = 367 }
command = { type = addcore which = 316 }
command = { type = addcore which = 353 }
command = { type = addcore which = 317 }
command = { type = addcore which = 325 }
command = { type = addcore which = 354 }
command = { type = addcore which = 323 }
command = { type = addcore which = 324 }
command = { type = addcore which = 366 }
command = { type = addcore which = 355 }
}
action_b ={ #I will be King of Germany, not Hungary#
name = "I will be King of Germany, not Hungary"
command = { type = stability value = 1 }
command = { type = addcore which = 314 }
command = { type = addcore which = 329 }
command = { type = addcore which = 352 }
command = { type = removecore which = 368 }
command = { type = trigger which = 27001 }
}
}