Code:
#(1540) The Death of János Zápolya
event = {
id = 19019
trigger = {
exists = HAB
exists = HUN
event = 19016
event = 3186
vassal = { country = TUR country = HUN }
OR = {
control = { province = 323 data = HUN }
control = { province = 323 data = -1 }
}
}
random = no
country = TUR
name = "EVENTNAME19019" #The Death of János Zápolya
desc = "EVENTHIST19019"
date = { day = 21 month = july year = 1540 }
action_a = {
name = "ACTIONNAME19019A" #Split the Kingdom
command = { type = secedeprovince which = HUN value = 317 } #Ruthenia
command = { type = secedeprovince which = HUN value = 323 } #Transylvania
command = { type = secedeprovince which = HUN value = 324 } #Maros
command = { type = trigger which = 19020 } #HUN: The Death of János Zápolya
}
action_b = {
name = "ACTIONNAME19019B" #Support János Sigusmund
command = { type = vassal which = HUN }
[COLOR=YellowGreen]command = { type = alliance which = HUN }[/COLOR] [COLOR=Lime]#does this will work ?[/COLOR]
[COLOR=Red]command = { }[/COLOR]
}
action_c = {
name = "ACTIONNAME19019C" #Let Ferdinand have it!
command = { type = trigger which = 3185 } #HAB: The Habsburg Inheritance of Hungary
command = { type = trigger which = 19018 } #HUN: The Habsburg rule Hungary
}
}
#-#Zápolya's reign was contested from the very beginning. In 1538, Zápolya had secretly promised Ferdinand of Austria the Hungarian crown in order to buy peace. In 1540, while putting down a revolt in Transylvania, János died from illness, just three weeks after his Polish princess-bride had given him a son, János Sigusmund. With Zapolya's death, Ferdinand again invaded Hungary to try to claim his inheritence. Finally the Ottoman Sultan, having had enough with the chaos in his vassal, Hungary, split the country into three parts. He kept Southern and Central Hungary for himself, giving Eastern Hungary to János Sigusmund, while Ferdinand held the Western portion. Hungary would remain divided between the three countries for the next 170 years.