#####Hungary Major Events######
#By Joakim 'Greven' Bergqwist #
#   Hеvard Moe                #
#   Tom 'Demetrios' Rinschler #
###############################


#Religious Rebellion#
event = {

	id = 3641
	random = no
	country = HUN
	name = "EVENTNAME3641"
	desc = "EVENTHIST3641"
	style = 3

	date = { day = 1 month = january year = 1604 }
	offset = 30
	deathdate = { day = 1 month = january year = 1605 }

	action_a ={				#Fight for the cause of the Reformed Faith#
		name = "ACTIONNAME3641A"
		command = { type = revoltrisk which = 36 value = 6 }
		command = { type = religion which = reformed }
		command = { type = desertion which = -1 value = 5000 }
		command = { type = desertion which = -1 value = 5000 }
		command = { type = relation which = HAB value = -100 }
		command = { type = relation which = PAP value = -100 }
		command = { type = relation which = SPA value = -100 }
		command = { type = relation which = SWE value = 100 }
		command = { type = relation which = LIT value = 100 }
		command = { type = relation which = PRU value = 100 }
		command = { type = relation which = DAN value = 100 }
		command = { type = relation which = HOL value = 100 }
		command = { type = domestic which = INNOVATIVE value = 2 }
		command = { type = stability value = -2 }
	}

	action_b ={				#Fight for the cause of the Catholic Faith#
		name = "ACTIONNAME3641B"
		command = { type = revoltrisk which = 36 value = 6 }
		command = { type = religion which = counterreform }
		command = { type = desertion which = -1 value = 5000 }
		command = { type = desertion which = -1 value = 5000 }
		command = { type = relation which = HAB value = 100 }
		command = { type = relation which = PAP value = 100 }
		command = { type = relation which = SPA value = 100 }
		command = { type = relation which = SWE value = -100 }
		command = { type = relation which = ENG value = -100 }
		command = { type = relation which = PRU value = -100 }
		command = { type = relation which = DAN value = -100 }
		command = { type = relation which = HOL value = -100 }
		command = { type = domestic which = INNOVATIVE value = -2 }
		command = { type = stability value = -2 }
	}
}

# The Council of Florence and the Union of the Churches
event = { 
	id = 3835
	
	# Triggered by BYZ 3833
	
	random = no
	country = HUN
	name = "EVENTNAME3835"
	desc = "EVENTHIST3835"
	style = 1 
	
	action_a ={ #Gain CB on Ottomans#
		name = "ACTIONNAME3835A"
		command = { type = casusbelli which = TUR value = 60 }
	}
}

# The Death of King Vaclav IV
event = {
	id = 3851		# Triggered from BOH3801
	random = no
	country = HUN
	name = "EVENTNAME3851"
	desc = "EVENTHIST3851"
	style = 1

	action_a ={ # They reject!
		name = "ACTIONNAME3851A"
		command = { type = casusbelli which = BOH value = 215 }
	}
}

########################
#New events for Hungary#
#        AlanC9        #
#    chegitz guevara   #
#       Praetor        #
########################

# Suleyman demands the Submission of Hungary #
event = { 
	id = 19009
	random = no
	country = HUN
	name = "EVENTNAME19009"
	desc = "EVENTHIST19009"
	style = 2

	action_a ={ 
		name = "ACTIONNAME19009A"
		command = { type = trigger which = 120003 } 
		command = { type = relation which = TUR value = -100 } 
} 

	action_b ={ 
		name = "ACTIONNAME19009B" 
		command = { type = relation  which = HAB  value = -50 } 
		command = { type = relation  which = PAP  value = -50 } 
		command = { type = relation  which = TUR  value = 100 }
		command = { type = stability  value = -4 } 
		command = { type = trigger  which = 19011 } 
		command = { type = sleepevent  which = 19010 } 
	} 
}

# The Invasion of Hungary
event = { 
	id = 19013 
	trigger = {
		event = 19010
	     }
	random = no 
	country = HUN 
	name = "EVENTNAME19013" 
	desc = "EVENTHIST19013"
	style = 2 
	date = { day = 22 month = august year = 1526 } 
	offset = 0 
	deathdate = { day = 22 month = August year = 1526 }

	action_a ={ 
		name = "ACTIONNAME19013A" 
		command = { type = trigger  which = 19014 } #Battle of Mohacs
		command = { type = secedeprovince  which = TUR  value = 355 } #Serbia
                command = { type = secedeprovince  which = TUR  value = 1417 }
                command = { type = secedeprovince  which = TUR  value = 363 }
	command = { type = secedeprovince  which = TUR  value = 1000 } #Serbia
                command = { type = secedeprovince  which = TUR  value = 1957 }
                command = { type = secedeprovince  which = TUR  value = 364 }
    command = { type = secedeprovince  which = TUR  value = 1017 }
	command = { type = secedeprovince  which = TUR  value = 319 } #Serbia
                command = { type = secedeprovince  which = TUR  value = 1951 }
                command = { type = secedeprovince  which = TUR  value = 322 }
    command = { type = secedeprovince  which = TUR  value = 318 }
        }

	action_b ={ 
		name = "ACTIONNAME19013B" 
		command = { type = relation  which = HAB  value = -100 } 
		command = { type = relation  which = PAP  value = -50 } 
		command = { type = relation  which = SPA  value = -50 }
		command = { type = relation  which = CAS  value = -50 } #In case Spain never formed
		command = { type = relation  which = TUR  value = 100 }
		command = { type = stability value = -4 } 
		command = { type = secedeprovince  which = TUR  value = 355 }#Serbia
                command = { type = secedeprovince  which = TUR  value = 1417 }
                 command = { type = secedeprovince  which = TUR  value = 363 }
	command = { type = secedeprovince  which = TUR  value = 1000 } #Serbia
                command = { type = secedeprovince  which = TUR  value = 1957 }
                command = { type = secedeprovince  which = TUR  value = 364 }
    command = { type = secedeprovince  which = TUR  value = 1017 }
	command = { type = secedeprovince  which = TUR  value = 319 } #Serbia
                command = { type = secedeprovince  which = TUR  value = 1951 }
                command = { type = secedeprovince  which = TUR  value = 322 }
    command = { type = secedeprovince  which = TUR  value = 318 }
		command = { type = trigger  which = 19011 } #Lajos submits to Suleyman
        }
}

# The Battle of Mohacs
event = { 
	id = 19014
	random = no 
	country = HUN 
	name = "EVENTNAME19014"
	desc = "EVENTHIST19014"
	style = 2

	action_a ={ 
		name = "ACTIONNAME19014A"
		command = { type = stability  value = -4 }
		command = { type = desertion  which = -1  value = 5000 }
		command = { type = desertion  which = -1  value = 5000 }
		command = { type = desertion  which = -1  value = 5000 }
		command = { type = desertion  which = -1  value = 5000 }
		command = { type = desertion  which = -1  value = 5000 }
		command = { type = desertion  which = -1  value = 5000 }
		command = { type = trigger  which = 19016 } # Electing a new King
		command = {type = trigger  which = 3642} # Election of the King of Bohemia
        }
}

# The Assassination of Lajos II
event = {
	id = 19015
	trigger = {
		event = 19011
	}
	random = no
	country = HUN
	name = "EVENTNAME19015"
	desc = "EVENTHIST19015"
	style = 2
	date =  { day = 22 month = August year = 1526 }
	offset = 0 
	deathdate = { day = 23 month = August year = 1526 }

	action_a ={				#Down with the King!#
		name = "ACTIONNAME19015A"
		command = { type = stability  value = -2 }
		command = { type = trigger  which = 19017 } # Electing a new King
		command = {type = trigger  which = 3642} # Election of the King of Bohemia
	}
}


#The Battle of Mohacs, pt II
event = {
	id = 19016				#triggered by 120007
	random = no
	country = HUN
	name = "EVENTNAME19016"
	desc = "EVENTHIST19016"
	style = 2

	action_a ={ #Elect Jбnos Zбpolya of Transylvania#
		name = "ACTIONNAME19016A"
		command = { type = stability  value = -4 }
		command = { type = secedeprovince  which = HAB  value = 326 } #Oldenburg
		command = { type = secedeprovince  which = HAB  value = 352 } #Pressburg
command = { type = secedeprovince  which = HAB  value = 1402 }
		command = { type = secedeprovince  which = HAB  value = 367 } 
                command = { type = secedeprovince  which = HAB  value = 366 }
command = { type = secedeprovince  which = HAB  value = 1007 }
		command = { type = relation  which = TUR  value = 150 }  
		command = { type = alliance  which = TUR }
		command = { type = trigger  which = 3186 }
        }

	action_b ={ #Elect Ferdinand Habsburg of Austria#
		name = "ACTIONNAME3639B"
		command = { type = dynastic  which = HAB }
		command = { type = alliance  which = HAB }
		command = { type = relation  which = HAB  value = 200 } 
		command = { type = stability  value = -4 }
		command = { type = secedeprovince  which = TUR  value = 317 } 
		command = { type = secedeprovince  which = TUR  value = 323 } #Transylvania
		command = { type = secedeprovince  which = TUR  value = 354 } #Banat
		command = { type = secedeprovince  which = TUR  value = 362 } #Ragusa

	command = { type = secedeprovince  which = TUR  value = 1952 } #Serbia
	command = { type = secedeprovince  which = TUR  value = 1000 } #Serbia
                command = { type = secedeprovince  which = TUR  value = 1957 }
                command = { type = secedeprovince  which = TUR  value = 364 }
    command = { type = secedeprovince  which = TUR  value = 1017 }
	command = { type = secedeprovince  which = TUR  value = 319 } #Serbia
                command = { type = secedeprovince  which = TUR  value = 1951 }
                command = { type = secedeprovince  which = TUR  value = 322 }
    command = { type = secedeprovince  which = TUR  value = 318 }
		command = { type = trigger  which = 3185 }
		command = { type = trigger  which = 19018 }
		command = { type = trigger  which = 19023 }
      }
}

#Electing a New King#
event = {
	id = 19017 #triggered by 19015
	random = no
	country = HUN
	name = "EVENTNAME19016"
	desc = "EVENTHIST19017"
	style = 2

	action_a ={ #Elect Jбnos Zбpolya of Transylvania#
		name = "ACTIONNAME19016A"
		command = { type = stability  value = -4 }
		command = { type = relation  which = TUR  value = 150 }  
command = { type = secedeprovince  which = HAB  value = 1402 }
		command = { type = secedeprovince  which = HAB  value = 326 } #Pressburg
		command = { type = secedeprovince  which = HAB  value = 352 } #Oldenburg
		command = { type = secedeprovince  which = HAB  value = 367 } #Krain
                command = { type = secedeprovince  which = HAB  value = 366 } #Krain
command = { type = secedeprovince  which = HAB  value = 1007 }
		command = { type = trigger  which = 3186 }
    }

	action_b ={ #Elect Ferdinand Hapsburg of Austria#
		name = "ACTIONNAME19016B"
		command = { type = breakvassal  which = TUR }
		command = { type = dynastic  which = HAB }
		command = { type = alliance  which = HAB }
		command = { type = stability  value = -4 }
		command = { type = trigger  which = 3185 }
		command = { type = trigger  which = 19018 }
		command = { type = trigger  which = 19023 }
      }
}



#The Death of King Lajos of Hungary# 
event = { 
	id = 19025 
	trigger = { 
		exists = HAB 
		NOT = { event = 19009 } 
	} 
	random = no 
	country = HUN 
	name = "EVENTNAME19025" 
	desc = "EVENTHIST19025"
	style = 2 
	date =  { day = 22 month = August year = 1526 }
	offset = 0 
	deathdate = { day = 22 month = August year = 1526 }


	action_a ={ 
		name = "ACTIONNAME19016A" 
		command = { type = trigger  which = 3732 } 
		command = { type = revolt  which = -1} 
		command = { type = revolt  which = -1} 
		command = { type = revolt  which = -1} 
		command = { type = stability  value = -4 } 
		command = { type = revoltrisk  which = 72 value = 1 } 
		command = { type = revoltrisk  which = 60 value = 1 } 
		command = { type = revoltrisk  which = 48 value = 1 } 
		command = { type = revoltrisk  which = 36 value = 1 } 
		command = { type = revoltrisk  which = 24 value = 1 } 
		command = { type = revoltrisk  which = 12 value = 1 }
		command = { type = domestic  which = CENTRALIZATION  value = -2 } 
		command = { type = domestic  which = ARISTOCRACY  value = 1 } 
		command = { type = relation  which = SPA  value = -150 } 
		command = { type = relation  which = HAB  value = -150 } 
		command = { type = relation  which = ENG  value = -150 } 
		command = { type = relation  which = PAP  value = -150 } 
		command = { type = relation  which = FRA  value = 150 } 
		command = { type = relation  which = POL  value = 150 } 
		command = { type = relation  which = TUR  value = 150 } 
		command = { type = trigger  which = 19026 }
	} 

	action_b ={ 
		name = "ACTIONNAME19016B" 
		command = { type = dynastic  which = HAB } 
		command = { type = alliance  which = HAB } 
		command = { type = relation  which = HAB  value = 200 } 
		command = { type = stability  value = -2 } 
		command = { type = revoltrisk  which = 36 value = 1 } 
		command = { type = revoltrisk  which = 24 value = 1 } 
		command = { type = revoltrisk  which = 12 value = 1 }
		command = { type = revolt   which = -1 }
		command = { type = revolt   which = -1 } 
		command = { type = trigger  which = 3185 } 
		command = { type = trigger  which = 19018 }
	} 
}

#The Death of Jбnos Zбpolya# 
event = { 
	id = 19020 #triggered from 19019 
	random = no 
	country = HUN
	name = "EVENTNAME19019" 
	desc = "EVENTHIST19020"
	style = 2 

	action_a ={ #We have lost much#
		name = "ACTIONNAME19020A" 
		command = { type = capital  which = 1950 }
		command = { type = secedeprovince  which = HAB  value = 316 } #Carpathia
		command = { type = secedeprovince  which = TUR  value = 324 } 
		command = { type = secedeprovince  which = TUR  value = 353 } #Pest
		command = { type = secedeprovince  which = TUR  value = 354 } #Banat
		command = { type = secedeprovince  which = TUR  value = 362 } #Ragusa
		command = { type = secedeprovince  which = TUR  value = 364 } #Bosnia
                command = { type = secedeprovince  which = TUR  value = 1957 } #Bosnia
		command = { type = secedeprovince  which = TUR  value = 1952 } #Dalmatia
			command = { type = secedeprovince  which = TUR  value = 1017 } #Serbia
		command = { type = add_countryculture which = romanian }
		command = { type = country  which = SIE }
	} 
}

#The Death of Jбnos Zбpolya#
event = {
	id = 19024
	trigger = {
		NOT = {
			vassal = { country = TUR  country = HUN }
			vassal = { country = HAB  country = HUN }
		}
	}
	random = no
	country = HUN
	name = "EVENTNAME19019"
	desc = "EVENTHIST19024"
	style = 2 
	date = { day = 23 month = july year = 1540 } 
	offset = 0 
	deathdate = { day = 24  month = july  year = 1540 } 

	action_a ={ #Elect Jбnos Sigusmund Zбpolya#
		name = "ACTIONNAME19016A"
		command = { type = stability  value = -4 }
		command = { type = revolt  which = -1 }
		command = { type = revolt  which = -1 }
		command = { type = revolt  which = -1 } 
		command = { type = revoltrisk  which = 72 value = 1 } 
		command = { type = revoltrisk  which = 60 value = 1 } 
		command = { type = revoltrisk  which = 48 value = 1 } 
		command = { type = revoltrisk  which = 36 value = 1 } 
		command = { type = revoltrisk  which = 24 value = 1 } 
		command = { type = revoltrisk  which = 12 value = 1 }
		command = { type = trigger  which = 19026 }
    }

	action_b ={ #Elect Ferdinand Hapsburg of Austria#
		name = "ACTIONNAME19016B"
		command = { type = dynastic  which = HAB }
		command = { type = alliance  which = HAB }
		command = { type = relation  which = HAB  value = 200 } 
		command = { type = stability  value = -2 }
		command = { type = revolt  which = -1 }
		command = { type = revolt  which = -1 }
		command = { type = revoltrisk  which = 36 value = 1 } 
		command = { type = revoltrisk  which = 24 value = 1 } 
		command = { type = revoltrisk  which = 12 value = 1 }
		command = { type = trigger  which = 3185 }
		command = { type = trigger  which = 19018 }
		command = { type = trigger  which = 19023 }
      }
}

event = { 
	id = 19018
	random = no 
	country = HUN 
	name = "EVENTNAME19018"
	desc = "EVENTHIST19018"
	style = 2 
	action_a ={ #Putting all the monarch changes in one file instead of three. # 
		name = "ACTIONNAME19018A" 
		command = { type = trigger which = 3185 } 
		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 = sleepmonarch which = 06267 } 
		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 } 
		} 
}



#Succession of Bayern-Straubing (1425)
event = {
      id = 188001
      trigger = { exists = BAY
                  exists = HAB 
                  
OR = {
owned = { province = 348 data = -1 } 
owned = { province = 1931 data = -1 } 
			
}

                }
      random = no
      country = HUN
      name = "Смерть герцога Йохана Баварии – Стробинг"
      desc = "В 1425 году умер герцог Баварии – Стробинг (нижняя Бавария) Йохан 2 Безжалостный и род Виттельсбахов пресекся. На удивление, император Сигизмунд в начале не дал согласие на территорию Стробинга одному из другого рода Вительсбаха, но дал согласие Габсбургам. Виттельсбахи выступили против этого решения и изменили в 1429 году, когда Сигизмунд решил разделить между родом баварских Виттельсбахов, вместе с Баварией (Мюнхен) получит  большинство."
      style = 1
     
      date = { day = 7 month = january year = 1425 }
      offset = 0
      
      action_a = {
               name = "Отдать Стробинг Габсбургам"
               command = { type = relation which = HAB value = 100 }
               command = { type = relation which = TYR value = 50 }
               command = { type = relation Which = BAY value = -50 }       
               command = { type = secedeprovince which = HAB value = 348 }
               command = { type = secedeprovince which = HAB value = 1931 }
 command = { type = secedeprovince which = HAB value = 1929 }
               command = { type = trigger which = 179019 }
                 }
      action_b = {
               name = "Отдать Стробинг баварским Виттельсбахам"
               command = { type = relation Which = BAY value = 50 } 
               command = { type = secedeprovince which = BAY value = 348 }
 command = { type = secedeprovince which = HAB value = 1929 }
               command = { type = secedeprovince which = BAY value = 1931 }
               command = { type = trigger which = 125000 }
               command = { type = sleepevent which = 188002 }
               command = { type = sleepevent which = 3207 } #The Bavarian Succession of 1777; the Habsburgs based their claim on bavarian territories on the emperor's decision of 1425 
                 }
}
event = {
      id = 188002
      trigger = { event = 179019 #HAB: Straubing granted to Hapsburg
                  NOT = { control = { province = 348 data = HAB }
                          control = { province = 1931 data = HAB }
control = { province = 1929 data = HAB }
                          vassal = { country = HAB country = BAY }
                         }
                }
      random = no
      country = HUN 
      name = "Сигизмунд кардинально меняет своё решение по поводу Баварии-Стробинг"
      desc = "Столкнувшись с сильной оппозицией против спорного решения позволить получить во владение земли Байерн-Стробинг  Габсбургами, император Сигизмунд вернулся к своему решению в 1429 году и разделил Стробинг среди остальными баварскими Виттельсбахами."
      style = 1
      
      date = { day = 1 month = january year = 1429 } 
      offset = 300 

      action_a = {
               name = "Сигизмунд передумал"
               command = { type = trigger which = 125000 } #BAY: Inheritance of Straubing
               command = { type = trigger which = 179020 } #HAB: Sigismund reverses his decision
               command = { type = relation which = BAY value = 50 }
               command = { type = relation which = HAB value = -50 }
                } 
      action_b = { 
               name = "Сигизмунд не меняет своего решения"
               command = { type = relation which = BAY value = -100 }
               command = { type = relation which = HAB value = 50 }
                 }
}

#Succession of Bayern-Straubing (1425)
event = {
      id = 188003
      trigger = { NOT = { exists = BAY }
                 
  OR = {
owned = { province = 348 data = -1 } 
owned = { province = 1931 data = -1 } 
owned = { province = 349 data = -1 } 	
owned = { province = 1929 data = -1 } 		
}
                }
      random = no
      country = HUN
      name = "Смерть герцога Йохана Баварии – Стробинг"
      desc = "В 1425 году умер герцог Баварии – Стробинг (нижняя Бавария) Йохан 2 Безжалостный и род Виттельсбахов пресекся. На удивление, император Сигизмунд в начале не дал согласие на территорию Стробинга одному из другого рода Вительсбаха, но дал согласие Габсбургам. Виттельсбахи выступили против этого решения и изменили в 1429 году, когда Сигизмунд решил разделить между родом баварских Виттельсбахов, вместе с Баварией (Мюнхен) получит  большинство."
      style = 1
     
      date = { day = 7 month = january year = 1425 }
      offset = 0
      
      action_a = {
               name = "Передать Стробинг баварским Виттельсбахам"
               command = { type = independence which = BAY }
               command = { type = secedeprovince which = BAY value = 348 }
command = { type = secedeprovince which = BAY value = 1929 }
               command = { type = secedeprovince which = BAY value = 1931 }
               command = { type = trigger which = 125000 }
               command = { type = sleepevent which = 188002 }
               command = { type = sleepevent which = 3207 } #The Bavarian Succession of 1777; the Habsburgs based their claim on bavarian territories on the emperor's decision of 1425 
                 }
}

#Succession of Bayern-Straubing (1425)
event = {
      id = 188004
      trigger = { exists = BAY
                  NOT = { exists = HAB }
                  owned = { province = 348 data = -1 }
                }
      random = no
      country = HUN
      name = "Смерть герцога Йохана Баварии – Стробинг"
      desc = "В 1425 году умер герцог Баварии – Стробинг (нижняя Бавария) Йохан 2 Безжалостный и род Виттельсбахов пресекся. На удивление, император Сигизмунд в начале не дал согласие на территорию Стробинга одному из другого рода Вительсбаха, но дал согласие Габсбургам. Виттельсбахи выступили против этого решения и изменили в 1429 году, когда Сигизмунд решил разделить между родом баварских Виттельсбахов, вместе с Баварией (Мюнхен) получит  большинство."
      style = 1
     
      date = { day = 7 month = january year = 1425 }
      offset = 0
      
      action_a = {
               name = "Передать Стробинг баварским Виттельсбахам"
               command = { type = relation Which = BAY value = 50 } 
               command = { type = secedeprovince which = BAY value = 348 }
               command = { type = secedeprovince which = BAY value = 1931 }
command = { type = secedeprovince which = BAY value = 1929 }
               command = { type = trigger which = 125000 }
               command = { type = sleepevent which = 188002 }
               command = { type = sleepevent which = 3207 } #The Bavarian Succession of 1777; the Habsburgs based their claim on bavarian territories on the emperor's decision of 1425 
                 }
}

###Janus Pannonius
###The description is half paraphrase half copy of the gloss
#found in The Quest of the Miracle Stag: The Poetry
#of Hungary, edited by Adam Makkai, Atlantis-
#Centaur, Chicago, 1996, p. 41.  "One for Pope Paul" was 
#translated by George Burrough and Adam Makkai and is found on 
#p. 42.

event = {
   id = 188050
   random = no
   country = HUN
   name = "Янус Паннони"
   desc = "EVENTHIST331042" 
   date = { day = 1 month = january year = 1473 }

   action_a = {
      name = "Замечательно!" #Ok#
      command = { type = infra value = 75 }
	}
}


#Serbian refugees
event = {
      id = 188116 
       trigger = { 
                  NOT = { exists = SER }

                 owned = { province = 354 data = -1 }

OR = { owned = { province = 355 data = TUR } 
       owned = { province = 363 data = TUR } 
     }

        
               }
      random = no
      country = HUN
      name = "Сербские беженцы"
      desc = "В 1459 году Сербия была включена в состав Империи Оттоман. В последствии чего многие сербы бежали на север в королевство Венгрии. Maтьяш Корвин с радостью принял беженцев и позволил им расселиться на южной границе. С тех пор как они находились вне закона Венгрии в вопросе образования войск они способствовали новой армии короля. Новый набор военнослужащих, основанный на сербских беженцах стал впечатляющим шагом в развитии кавалерии, которые главным образом занимались рейдами и ответными набегами  на Оттоман и Австрию, но так же принимали участие в битвах, и позднее стали называться гусарским полком. В последующие века гусарские полки заполучили мировую славу и уважение. Сербские беженцы имели большую значимость для защиты венгерской границы."
      style = 1
      
      date = { day = 1 month = january year = 1460 }
      offset = 3000 
      deathdate = { day = 31 month = december year = 1650 }
      
      action_a = {
               name = "Принять беженцев и поселить на границе"
               command = { type = population which = 354 value = 4000 }
               command = { type = population which = 1952 value = 2000 }
               command = { type = provinceculture which = 354 value = slavonic }
               command = { type = provincemanpower which = 1952 value = 1 }
               command = { type = provincemanpower which = 354 value = 3 }
               command = { type = fortress which = 354 value = 1 }
               command = { type = fortress which = 1952 value = 1 }
               command = { type = CAV which = 354 value = 10000 }
               command = { type = add_countryculture which = slavonic }   
               command = { type = trigger which = 301028 } #TUR: Serbs flee to Hungary
               command = { type = sleepevent  which = 200532 } 
               }
      action_b = {
               name = "Нам не нужны эти бродяги"
               command = { type = relation which = TUR value = 100 }
               }
}

#Serbians flee to Hungary
event = {
      id = 301028 #triggered by HUN 188116, Serbian refugees.
      random = no 
      country = TUR
      name = "Сербы бегут в венгрию"      
      desc = "В 1459 году Сербия была включена в состав Империи Оттоман. В последствии чего многие сербы бежали на север в королевство Венгрии. Maтьяш Корвин с радостью принял беженцев и позволил им расселиться на южной границе. С тех пор как они находились вне закона Венгрии в вопросе образования войск они способствовали новой армии короля. Новый набор военнослужащих, основанный на сербских беженцах стал впечатляющим шагом в развитии кавалерии, которые главным образом занимались рейдами и ответными набегами  на Оттоман и Австрию, но так же принимали участие в битвах, и позднее стали называться гусарским полком. В последующие века гусарские полки заполучили мировую славу и уважение. Сербские беженцы имели большую значимость для защиты венгерской границы."
      style = 1
      
      action_a = {
               name = "Шайтан с ними!"
               command = { type = population which = 363 value = -3000 } #Kosovo
               command = { type = population which = 355 value = -3000 } #Serbia
               command = { type = provincemanpower which = 363 value = -1 }
               command = { type = provincemanpower which = 355 value = -1 }
               command = { type = provincetax which = 363 value = -1 }
               command = { type = provincetax which = 355 value = -1 }
               command = { type = relation which = HUN value = -50 }
                }
}

# The Crusade of Pius II (Hungarian version) #
# By the Council of Ten (Democratic Venetian AAR) #

event = { 
        id = 188005
        random = no 
        country = HUN 

        name = "Крестовый поход, который так и не состоялся" 
        desc = "EVENTHIST188005" 

        style = 1 

        action_a = { name = "Приветствовать любую помощь против турок" 
                command = { type = treasury value = 40 } # The crusade funds for the Hungarians
                command = { type = casusbelli  which = TUR  value = 6 } # A crusade is a good reason to fight
                command = { type = relation  which = PAP  value = 50 } 
        }
}

#
# AGCEEP_(Hussites)_HUN
#
#

#The Hussite Wars
event = {
         id = 188600
         trigger = { event = 129001 } #BOH: Death of Vaclav IV
         random = no
         country = HUN
         name = "Гуситские войны" 
         desc = "Уничтожить еретиков!"
         style = 1
         
         date = { day = 17 month = august year = 1419 }        
         offset = 1
         
         action_a = {
                      name = "Ok"
                      command = { type = alliance which = ROM }
                      command = { type = dynastic which = ROM }
                      command = { type = casusbelli which = SIL value = 120 }
                        }
}

#Settlement with the Hussites
event = {
      id = 188201
      random = no
      country = HUN
      name = "Сигизмунд-король Богемии"
      desc = "EVENTHIST3802"
      style = 1
      
      action_a = {
               name = "Богемская корона наша"
               command = { type = vassal which = BOH }
               command = { type = alliance which = BOH }
               command = { type = relation which = BOH value = 250 }
               command = { type = dynastic which = BOH }
               command = { type = secedeprovince which = BOH value = 314 }
               command = { type = secedeprovince which = BOH value = 315 }
               command = { type = secedeprovince which = BOH value = 329 }
               command = { type = secedeprovince which = BOH value = 330 }
               command = { type = secedeprovince which = BOH value = 1943 }
               command = { type = secedeprovince which = BOH value = 1940 }
               command = { type = secedeprovince which = BOH value = 1987 }
               command = { type = removecore which = 1987 } 
                command = { type = removecore which = 328 } 
               command = { type = removecore which = 329 }
               command = { type = removecore which = 330 }
               command = { type = removecore which = 315 }
               command = { type = ai which = peaceful.ai }
                 }
}

#Hussite rebellion suppressed
event = {
      id = 188202
      random = no 
      country = HUN
      name = "Сигизмунд-король Богемии"
      desc = "Гуситы потерпели поражение от сторонников короля Сигизмунда и римской церкви, Богемия была разрушена. С того времени как восстание Гуситов потерпело неудачу, Сигизмунд будет коронован короной Венчеслава и добавит ее к Империи и Святому титулу Стефана."
      style = 1
       
      action_a = {
               name = "Управлять Богемией в союзе с Венгрией"
               command = { type = vp value = 100 }
               command = { type = removecore which = 328 } 
               command = { type = removecore which = 329 }
               command = { type = removecore which = 330 }
               
               command = { type = removecore which = 1987 } 
               command = { type = addcore which = 315 }  
               command = { type = addcore which = 314 } 
               command = { type = addcore which = 315 }
               command = { type = addcore which = 1943 }
               command = { type = vassal which = BOH }
               command = { type = dynastic which = BOH }
               command = { type = alliance which = BOH }
               command = { type = relation which = BOH value = 300 }
               command = { type = secedeprovince which = BOH value = 1987 }
               command = { type = secedeprovince which = BOH value = 329 }
               command = { type = secedeprovince which = BOH value = 330 }
               command = { type = secedeprovince which = BOH value = 328 }
               command = { type = badboy value = -3 }
               command = { type = relation which = PAP value = 100 }
               command = { type = ai which = peaceful.ai }
                }
      action_b = { 
               name = "Попытаться объединить Венгрию и Богемию"
               command = { type = inherit which = BOH }
               command = { type = badboy value = 2 }
               command = { type = revolt which = 328 }
               command = { type = revolt which = 329 }
               command = { type = revolt which = 330 }
               command = { type = revolt which = 315 }
               command = { type = stability value = -2 } 
               command = { type = addcore which = 314 }
               command = { type = addcore which = 315 }
               command = { type = addcore which = 1943 }
               command = { type = addcore which = 1940 }
               command = { type = ai which = peaceful.ai }
                 }
}
#Election of Albrecht of Austria (1437)
event = { 
      id = 188100
      random = no
      country = HUN
      name = "Выбор Альбрехта Австрийского"
      desc = "Альбрехт Габсбург, эрц-герцог Австрии, 1 января 1438 года вступил на венгерский престол. Таким образом Австрия и Венгрия вступают в личную унию."
      style = 1

      date = { day = 9 month = december year = 1437 }
      
      action_a = {
               name = "Согласиться с желанием Сигизмунда и выбрать Альбрехта"
               command = { type = trigger which = 179100 } #HAB: Albrecht of Austria elected King of Hungary
               command = { type = domestic which = centralization value = -2 }
               command = { type = domestic which = aristocracy value = 1 }
               command = { type = ai which = HUN_Crusade.ai }
           command = { type = trigger which = 296982 }
	}
}

event = {
	id = 296982
	random = no
	country = HUN
	name = "Да здравствует наш новый Король!"
	desc = "Восстановление стабильности, упавшей из-за разорванных династических браков"
	style = 3
	action_a ={	
		name = "Ура"
                command = { type = stability value = 3 }
                 }
}
####################################################################################
#Starting event of the sequence of Succession of Albrecht (1440)
event = {
      	id = 188090
      	trigger = { 
             	countrysize = 6 
		}
      	random = no
      	country = HUN
      	name = "Свободный трон" 
      	desc = "EVENTHIST188101"
       	style = 1
      
       	date =  { day = 8 month = march year = 1440 }
       	offset = 0 

       	action_a = {
                name = "Проигнорировать Элизабет и провозгласить королём Владислава Польского" #Nationalist side
                command = { type = wakemonarch which = 06262 } #Ulбszlу I
                command = { type = wakemonarch which = 06282 } #Interregnum
                command = { type = wakemonarch which = 06283 } #General-Captains of Hungary
		command = { type = wakeleader which = 08540 } #Jбnos Hunyadi
                command = { type = breakvassal which = HAB }
                command = { type = breakdynastic which = HAB }
                command = { type = relation which = POL value = 100 }
                command = { type = revolt which = 326 } 
                command = { type = revolt which = 352 } 
                command = { type = revolt which = 353 } 
                command = { type = revolt which = 324 } 
                command = { type = revolt which = 325 } 
                command = { type = revolt which = 316 } 
                 command = { type = revolt which = 1402 } 
                
                
                command = { type = province_revoltrisk which = 1402 value = 10 }
                
                command = { type = province_revoltrisk which = 326 value = 10 }
                command = { type = province_revoltrisk which = 352 value = 10 }
                command = { type = province_revoltrisk which = 353 value = 10 }
                command = { type = province_revoltrisk which = 324 value = 10 }
                command = { type = province_revoltrisk which = 325 value = 10 }
                command = { type = province_revoltrisk which = 316 value = 10 }
          
                command = { type = setflag which = Wladislaw } 
                command = { type = ai which = peaceful.ai }
                command = { type = trigger which = 179101 } #HAB: Coronation of Wladislaw 
                command = { type = trigger which = 258100 } #POL: Coronation of Wladislaw 
                }
       action_b = {
                name = "Ладислав Постум-законный король Венгрии" #Loyalist side
                command = { type = wakemonarch which = 03620 } #Elizabeth of Luxemburg (Regent)
                command = { type = wakemonarch which = 03621 } #Ulrich of Cilli (Regent)
		command = { type = wakeleader which = 08552 } #Jan Jiskra
                command = { type = stability value = -2 }
                command = { type = relation which = POL value = -50 }
                command = { type = relation which = HAB value = 100 }
                command = { type = relation which = PRM value = 100 } #Styria
                command = { type = revolt which = 317 } 
                command = { type = revolt which = 323 } #Transylvania
                command = { type = revolt which = 323 } #Transylvania (Hunyadi's power base)
                command = { type = revolt which = 1950 } 
                command = { type = revolt which = 354 } 
                command = { type = revolt which = 1419 }  
               
                command = { type = revolt which = -1 } 
                command = { type = province_revoltrisk which = 317 value = 12 }
                command = { type = province_revoltrisk which = 323 value = 12 }
                command = { type = province_revoltrisk which = 1950 value = 12 }
                command = { type = province_revoltrisk which = 354 value = 12 }
                command = { type = province_revoltrisk which = 1419 value = 12 }
                command = { type = province_revoltrisk which = 1999 value = 12 } 
 command = { type = revolt which = 1999 }  
                command = { type = setflag which = Ladislaus }
                command = { type = ai which = peaceful.ai }  
                command = { type = capital which = 326 } #Presburg  
                command = { type = trigger which = 179102 } #HAB: Coronation of Ladislaus Postumus (vassalage renewed)                         
		}
} 
#Loyalist victory (if Hungary took Loyalists side)
event = {
      id = 188091
      trigger = { 

              flag = Ladislaus
              control = { province = 326 data = HUN } #Presburg		
              control = { province = 353 data = HUN } #Pest
                     
              OR = { control = { province = 324 data = HUN } #Maros
                     control = { province = 325 data = HUN } #Magyar
                   }
              OR = { control = { province = 323 data = HUN } #Transylvania
                     control = { province = 317 data = HUN } 
                   }
                                  
                
		}
      random = no
      country = HUN
      name = "Победа сторонников Ладислава Постума"
      desc = "Так как большая часть Венгрии оказалась захвачена Габсбургами, у которых к тому же появились венгерские сторонники, Уласло и Яношу Хуньяди ни что не осталось, как признать Ладислава Постума новым королём."
      style = 1
      date =  { day = 1 month = december year = 1442 }
      offset = 30	
      deathdate ={ day = 9 month = march year = 1460 }

      action_a = {
               	name = "Победа наша!"
		command = { type = wakeleader which = 08540 } #Jбnos Hunyadi
               	command = { type = breakvassal which = POL } #if there should be one
               	command = { type = province_revoltrisk which = 317 value = -12 }
                command = { type = province_revoltrisk which = 323 value = -12 }
                command = { type = province_revoltrisk which = 1950 value = -12 }
                command = { type = province_revoltrisk which = 354 value = -12 }
                command = { type = province_revoltrisk which = 1419 value = -12 }  
   command = { type = province_revoltrisk which = 1999 value = -12 }   
               	command = { type = stability value = 2 }
               	command = { type = capital which = 325 } #Pest
               	command = { type = clrflag which = Ladislaus }
               	command = { type = trigger which = 179103} #HAB: Coronation of Ladislaus Postumus II 
                }
}

#Loyalist victory (if Hungary took Nationalist side)
event = {
      id = 188092
      trigger = { 
              flag = Wladislaw
              OR = { owned = { province = 353 data = HAB } #Pest
                     control = { province = 353 data = REB } 
                   }
              OR = { owned = { province = 326 data = HAB } #Presburg
		     owned = { province = 353 data = HAB } #Maros
                     control = { province = 326 data = REB } 
                     control = { province = 353 data = REB } 
                   }
              OR = { owned = { province = 316 data = HAB } #Carpathia
                     owned = { province = 325 data = HAB } #Magyar
                     control = { province = 316 data = REB } 
                     control = { province = 325 data = REB } 
                   }
              OR = { owned = { province = 352 data = HAB } 
                     owned = { province = 317 data = HAB } 
                     owned = { province = 354 data = HAB } 
     owned = { province = 1402 data = HAB } 
                     control = { province = 1402 data = REB }
                     control = { province = 352 data = REB } 
                     control = { province = 317 data = REB } 
                     control = { province = 354 data = REB } 
                   }
              NOT = { war = { country = HUN country = HAB }} #War needs to be over, otherwise there could be weird consequences
                }
      random = no
      country = HUN
      name = "Победа сторонников Ладислава Постума"
      desc = "Так как большая часть Венгрии оказалась захвачена Габсбургами, у которых к тому же появились венгерские сторонники, Уласло и Яношу Хуньяди ни что не осталось, как признать Ладислава Постума новым королём."
      style = 1
      date =  { day = 1 month = december year = 1441 }
      offset = 30	
      deathdate ={ day = 9 month = march year = 1460 }

      action_a = {
               	name = "Принять Ладислава"
               	command = { type = vp value = -150 }
                command = { type = relation which = HAB value = 100 }
               	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 = trigger which = 258108 } #POL: Wladislaw lose Hungarian throne
               	command = { type = province_revoltrisk which = 326 value = -10 }
                command = { type = province_revoltrisk which = 352 value = -10 }
                command = { type = province_revoltrisk which = 353 value = -10 }
                command = { type = province_revoltrisk which = 324 value = -10 }
                command = { type = province_revoltrisk which = 325 value = -10 }
                command = { type = province_revoltrisk which = 316 value = -10 }
command = { type = province_revoltrisk which = 1402 value = -10 }
               	command = { type = stability value = 2 }
               	command = { type = clrflag which = Wladislaw }    
                }
}

#Nationalist victory (if Hungary took Loyalists side)
event = {
      	id = 188093
      	trigger = { 
        	flag = Ladislaus
              	control = { province = 325 data = REB } #Pest                      

              	OR = { control = { province = 324 data = REB } #Maros
                       control = { province = 325 data = REB } #Magyar
                   	}
              	OR = { control = { province = 323 data = REB } #Transylvania
                       control = { province = 317 data = REB } #Ruthenia
                       control = { province = 326 data = REB } #Presburg 
                   	}
              	 
                }           
      random = no
      country = HUN
      name = "Победа сторонников Владислава"
      desc = "С тех пор большая часть Венгрии была завоевана сторонниками Владислава, поддержка за короля Юльжли и Яноша Хуньяди ослабевала и Владислава Постума признавали как правильного короля."
      style = 1
      date =  { day = 1 month = december year = 1441 }
      offset = 30	
      deathdate ={ day = 9 month = march year = 1460 }

      	action_a = {
               	name = "Принять Владислава"
		command = { type = wakeleader which = 08540 } #Jбnos Hunyadi
               	command = { type = breakvassal which = HAB }
               	command = { type = relation which = POL value = 100 }
               command = { type = sleepmonarch which = 03620 } #Elizabeth of Luxemburg (Regent)
               	command = { type = sleepmonarch which = 03621 } #Frederick of Styria (Regent) 
               	command = { type = wakemonarch which = 06262 } #Ulбszlу I
               	command = { type = wakemonarch which = 06282 } #Interregnum
               	command = { type = wakemonarch which = 06283 } #General-Captains of Hungary
               	               	command = { type = province_revoltrisk which = 317 value = -12 }
                command = { type = province_revoltrisk which = 323 value = -12 }
                command = { type = province_revoltrisk which = 1950 value = -12 }
                command = { type = province_revoltrisk which = 354 value = -12 }
                command = { type = province_revoltrisk which = 1419 value = -12 } 
  command = { type = province_revoltrisk which = 1999 value = -12 }   
               	command = { type = stability value = 2 }
               	command = { type = capital which = 325 } #Pest
               	command = { type = clrflag which = Ladislaus }    
                }
}

#Nationalist victory (if Hungary took Nationalist side)
event = {
      id = 188094
      trigger = { 
              flag = Wladislaw
              control = { province = 325 data = HUN } #Pest

              OR = { control = { province = 317 data = HUN } #Carpathia
                     control = { province = 325 data = HUN } #Magyar
                   }
              OR = { control = { province = 352 data = HUN } #Odenburg
                     control = { province = 326 data = HUN } 
                      control = { province = 1402 data = HUN }
                   }
                }
      random = no
      country = HUN
      name = "Победа сторонников Владислава"
      desc = "С тех пор большая часть Венгрии была завоевана сторонниками Владислава, поддержка за короля Юльжли и Яноша Хуньяди ослабевала и Владислава Постума признавали как правильного короля."
      style = 1
      date =  { day = 1 month = december year = 1442 }
      offset = 30	
      deathdate ={ day = 9 month = march year = 1460 }

      action_a = {
               name = "Победа наша"
               command = { type = province_revoltrisk which = 326 value = -10 }
                command = { type = province_revoltrisk which = 352 value = -10 }
                command = { type = province_revoltrisk which = 353 value = -10 }
                command = { type = province_revoltrisk which = 324 value = -10 }
                command = { type = province_revoltrisk which = 325 value = -10 }
                command = { type = province_revoltrisk which = 316 value = -10 }    
 command = { type = province_revoltrisk which = 1402 value = -10 }   
               command = { type = stability value = 2 }
               command = { type = clrflag which = Wladislaw }  
                }
}

#Death of Elizabeth
#Nationalist victory in the civil war if Hungary went with Wladislaw (Nationalists)
event = {
      id = 188095
      trigger = { 
                flag = Wladislaw
		}
      random = no
      country = HUN
      name = "Конец гражданской войны"
      desc = "EVENTHIST188103" #change number
      style = 1

      date = { day = 13 month = december year = 1443 }
      offset = 0
      
      action_a = {
               	name = "Теперь наша главная забота-это турки"
              command = { type = province_revoltrisk which = 326 value = -10 }
                command = { type = province_revoltrisk which = 352 value = -10 }
                command = { type = province_revoltrisk which = 353 value = -10 }
                command = { type = province_revoltrisk which = 324 value = -10 }
                command = { type = province_revoltrisk which = 325 value = -10 }
                command = { type = province_revoltrisk which = 316 value = -10 }  
command = { type = province_revoltrisk which = 1402 value = -10 } 
		command = { type = clrflag which = Wladislaw } 		
               	command = { type = stability value = 2 }
                 }
}
#Ulбszlo's death
event = {
      	id = 188096
	trigger = {
		OR = { 	
			event = 188093  #Nationalist victory
		 	event = 188094  #Nationalist victory
		 	event = 188095  #Nationalist victory, by Elisabeth's death
			} 		
		}
      	random = no
      	country = HUN
      	name = "Смерть короля Уласло"
      	desc = "EVENTHIST188104" #change number in text.csv
      	style = 1
      
      	date = { day = 10 month = november year = 1444 }

      	action_a = {
               	name = "Наш король мёртв!"
               	command = { type = stability value = -1 } #lowered from -5, since kings die all the time with no stab hits
               	command = { type = breakvassal which = POL } #should it be removed?	
               	command = { type = revolt which = 326 } #Presburg 
               	command = { type = revolt which = 316 } #Carpathia 
               	command = { type = ai which = peaceful.ai }
                  }
}
#The National Diet of 1445
event = {
      id = 188097
	trigger = {
		OR = { 	
			event = 188093  #Nationalist victory
		 	event = 188094  #Nationalist victory
		 	event = 188095  #Nationalist victory, by Elisabeth's death
			} 		
		}
      random = no 
      country = HUN
      name = "Национальная диета 1445 года"
      desc = "EVENTHIST188105" #change number in text.csv
      style = 1
      
      date = { day = 1 month = april year = 1445 }

      action_a = {
               name = "Спасти страну!"
               command = { type = stability value = 2 }
               command = { type = domestic which = aristocracy value = -1 } #towns represented at the Diet
               command = { type = relation which = HAB value = 50 } #Ladislaus is accepted
                 }
}
#Hunyadi appointed Gubernator
event = {
      id = 188098
	trigger = {
		OR = { 	
			event = 188093  #Nationalist victory
		 	event = 188094  #Nationalist victory
		 	event = 188095  #Nationalist victory, by Elisabeth's death
			} 		
		}
      random = no
      country = HUN
      name = "Назначение Яноша Хуньяди"
      desc = "EVENTHIST188106" #change number in text.csv
       style = 1
       
       date = { day = 1 month = june year = 1446 }

       action_a = {
                name = "Назначить Хуньяди регентом и провести реформы"
                command = { type = wakemonarch which = 06299 } #Jбnos Hunyadi
                command = { type = revoltrisk which = 70 value = 3 }
                command = { type = domestic which = serfdom value = -1 }
                command = { type = domestic which = centralization value = 2 } #should it be here?
                command = { type = domestic which = aristocracy value = -1 }
                  }
       action_b = { 
                name = "Оставить Ласло и избежать реформ"
                command = { type = wakemonarch which = 03622 } #Lбszlу Garai
                command = { type = stability value = -2 } 
                  }
}

#Crusade against the Turks
event = {
      	id = 188099 
	trigger = {
		neighbour = TUR
		leader = 08540 #Jбnos Hunyadi	
		OR = {
			event = 188091  #Loyalist victory
		 	event = 188092  #Loyalist victory
			event = 188093  #Nationalist victory
		 	event = 188094  #Nationalist victory
		 	event = 188095  #Nationalist victory, by Elisabeth's death
			}
		atwar = no              
		}

      	random = no
      	country = HUN
      	name = "Крестовый поход против турок"
	     desc = "Янош Хуньяди противостоял крепко много лет нападениям турков, и отступил после избрания короля Венгрии, венгры восстали против врагов, угрожая вторгнуться на христианские земли Балкан."	
      	style = 1
       	date = { day = 1 month = june year = 1442 }
	offset = 0     
       	deathdate = { day = 1 month = june year = 1456 }
 
      	action_a = {
               	name = "Теперь давайте позаботимся о турках"
               	command = { type = stability value = 1 }
		command = { type = treasury value = 150 }
		command = { type = cavalry which = -2 value = 10000 }
		command = { type = relation which = HAB value = 30 }
		command = { type = relation which = VEN value = 30 }
		command = { type = relation which = SER value = 30 }
		command = { type = relation which = PAP value = 30 }
		command = { type = relation which = POL value = 30 }
               	command = { type = casusbelli which = TUR value = 12 }
		command = { type = war which = TUR }
               	command = { type = ai which = HUN_Crusade.ai }
                 }
      	action_b = {
               	name = "We dare not"
               	command = { type = stability value = -2 }
               	command = { type = vp value = -50 }
                 }
}


#Election of Mathias Corvinus
event = {
      id = 188108
      random = no
      country = HUN
      name = "Коронация Матьяша Корвина"
      desc = "После смерти Ладислава Постума, время пришло для национального короля. Несмотря на враждебность баронов против его семьи и нескольких иностранных кандидатов, была огромная поддержка единственно уцелевшего сына Янош Хуньяди, Матьяша, чьи подвиги помнили. В возрасте 17-ти лет он унаследовал в полной мере отцовские способности. Кроме того, его дядя Михаль Жильгий быстро взял на себя контроль над страной, руководя 15000 ветеранами, которые служили под командованием Яноша Хуньяди. 24 января в 1458 году собрались 40000 венгерских дворян на покрытой льдом реке Дунай и единогласно выбрали Матиаса, который вскоре получил прозвище Корвин, по изображению ворона на его щите, короля Венгрии."
      style = 1
      
      date = { day = 24 month = january year = 1458 }
      offset = 0
      
      action_a = { 
               name = "Позволить ему стать королём"
               command = { type = stability value = 2 }
               command = { type = ai which = HUN_Corvinus1.ai }
               command = { type = relation which = BOH value = 100 }
               command = { type = relation which = HAB value = -100 }
               command = { type = relation which = POL value = -100 }
               command = { type = dynastic which = BOH } #Mathias was married to the daughter of Jiri Podiebrad
               command = { type = breakvassal which = HAB }
               command = { type = breakvassal which = POL }
               command = { type = technology which = latin }
               command = { type = setflag which = Corvinus }
               command = { type = domestic which = centralization value = 1 }
               command = { type = domestic which = aristocracy value = -1 }
                 }
}

#Formation of the Black Brigade
event = {
      id = 188109
      trigger = { flag = Corvinus }
      random = no
      country = HUN
      name = "Чёрная бригада"
      desc = "После восхождения на престол, Матьяш Корвин понял, что он нуждается в сильной, хорошо обученной армии, которая была бы предана только ему, с помощью которой он мог бы укрепить свои силы и у него бы появился шанс выступить против Гуситов Богемии и Oттоманских янычар. Таким образом, он выделил армию Гуситских наемников Яна Витовича и Яна Йискра, которые захватили Венгерские земли во время правления Владислава Постума. Сделав их членами венгерской знати и военачальниками они достигли соглашения, при котором он вернул земли и получил их воинов на службу. Эти войска, которые изучали современные Гуситские тактики, он назвал 'Fekete Sereg' (Чёрная Бригада), названная в честь цвета их доспехов, элитная армия состояла из 6000 солдат и считалась основой всей армии."
      style = 1
      
      date = { day = 1 month = january year = 1462 }
      offset = 300
      
      action_a = {
               name = "Создать бригаду"
               command = { type = land value = 500 }
               command = { type = domestic which = quality value = 2 } 
               command = { type = domestic which = land value = 1 } 
               command = { type = INF which = -2 value = 10000 }
               command = { type = treasury value = -100 }
                 }
      action_b = {
               name = "Мы в них не нуждаемся"
               command = { type = vp value = -25 }
                 }
}
#Friedrich of Austria crowned King
event = {
      id = 188110
      trigger = { flag = Corvinus }
      random = no
      country = HUN
      name = "коронация Фридриха Австрийского" 
      desc = "После того как Матьяш быстро принял меры для того, чтобы получить больше полномочий, несколько недовольных дворян, под руководством Лазли Жэрая, предложили венгерский трон императору Фридриху III. Фридрих принял и был наделен полномочиями короля Венгрии, увенчан короной святого Стефана в Вене-Неуштадт, привезенная в Австрию после смерти Альбрехта Австрийского, Венгерского и Богемского. Однако, в результате борьбы с землями Австрии и его братом Альбрехтом и его очень опасным характером, не решался захватывать Венгрию для того, чтобы сохранить свое право. Не захотев ждать, сторонники Фридриха подняли мятеж самостоятельно в северной Венгрии."
      style = 1
      
      date = { day = 4 month = march year = 1459 }
      offset = 0
      
      action_a = {
               name = "Сокрушить предателей"
               command = { type = revolt which = 352 } 
               command = { type = revolt which = 326 } 
command = { type = revolt which = 1402 }
 command = { type = revolt which = 352 } 
               command = { type = revolt which = 326 } 
command = { type = revolt which = 1402 }
               command = { type = stability value = -1 }
               command = { type = relation which = HAB value = -100 }
               command = { type = revoltrisk which = 60 value = 3 }
                }
}

#Peace with Austria
event = {
      id = 188111
      trigger = { event = 188110 #Friedrich of Austria crowned King
                  control = { province = 352 data = -1 }
                  control = { province = 326 data = -1 }
                  control = { province = 1402 data = -1 }
                  NOT = { war = { country = HAB country = HUN } } 
                }
      random = no
      country = HUN
      name = "Мир с Австрией"
      desc = "Восстание знати на севере Венгрии, с помощью которого они намеревались посадить на престол Императора Фридриха111 было быстро подавлено, тем самым уменьшив поддержку со стороны простого народа. Когда Maтьяш обеспечил мирное существование с Иржи Подебратом из Богемии, он собирался запугать Австрию. Тем временем Фридрих III охотно принял предложение Maтьяша заплатить выкуп в размере 60000 дукат за корону Святого Стефана, при этом позволив Австрии оставить у себя граничащие территории, которые они контролировали с 1444 года, передав город Сопрон и позволив Фридриху носить титул Венгерского Короля в обмен на то, что он отменит свои требования к Королевству Венгрии."
      style = 1
      
      date = { day = 1 month = january year = 1462 }
      offset = 30
      deathdate = { day = 31 month = december year = 1469 }
      
      action_a = {
               name = "Предложить мир Австрии"
               command = { type = trigger which = 179109 } #HAB: Corvinus' offer
                 }
      action_b = {
               name = "Оскорбить"
               command = { type = casusbelli which = HAB value = 12 }
               command = { type = war which = HAB }
                 }
}
event = {
      id = 188112
      random = no 
      country = HUN
      name = "Ответ Фридриха"
      desc = "Фридрих III принял предложение. Теперь корона Святого Стефана полностью принадлежит нам и законность царствования Mатьяша укрепиться коронованием."
      style = 1
      
      action_a = {
               name = "Отлично"
               command = { type = stability value = 3 }
               command = { type = revoltrisk value = -3 }
               command = { type = treasury value = -100 }
                 }
}

#Army reforms of Mathias Corvinus
event = {
      id = 188113
      trigger = { flag = Corvinus }
      random = no
      country = HUN
      name = "Военная реформа Матьяша Корвина"
      desc = "В 1459 году Матьяш Корвин начал смелые реформы в венгерской армии: он намеревался создать войска, не уступающие турецким и гуситским, путем применения современных тактик и организации. Он создал постоянные войска, не прибегая к помощи со стороны феодалов. Кроме своих элитных войск, Черного отряда и гусаров, с 1465 года он создавал огромную постоянную армию посредством зачисления на военную службу в Венгрии и Хорватии. Эта армия была  разумно организована, пользовалась уставными законами, была экипирована баллистическими машинами, и ей управлял постоянный комиссариат. Она не представлялась Корвину военной силой в его многочисленных походах, но служила политической силой и цивилизованным средством подавления яростного беззакония венгерского дворянства, а также сбора налогов с непокорных дворян."
      style = 1
      
      date = { day = 1 month = january year = 1464 }
      offset = 900

      action_a = {
               name = "Реформировать армию"
               command = { type = domestic which = land value = 2 } 
               command = { type = domestic which = centralization value = 1 } 
               command = { type = land value = 1500 }
               command = { type = provincemanpower which = 326 value = 1 }
               command = { type = provincemanpower which = 352 value = 1 }
               command = { type = provincemanpower which = 353 value = 1 } 
               command = { type = provincemanpower which = 324 value = 1 }
               command = { type = provincemanpower which = 325 value = 1 }
               command = { type = provincemanpower which = 316 value = 1 }
               command = { type = provincemanpower which = 317 value = 1 }
               command = { type = provincemanpower which = 1950 value = 1 }
               command = { type = provincemanpower which = 366 value = 1 }
               command = { type = provincemanpower which = 1952 value = 1 }
               command = { type = provincemanpower which = 354 value = 1 }
               command = { type = provincemanpower which = 323 value = 1 }
command = { type = provincemanpower which = 1402 value = 1 }
                 }
}
#Administrative and social reforms of Mathias Corvinus
event = {
      id = 188114
      trigger = { flag = Corvinus }
      random = no 
      country = HUN
      name = "Административные и социальные реформы Матьяша Корвина"
      desc = "EVENTHIST188114"
      style = 1
      
      date = { day = 1 month = january year = 1466 } 
      offset = 1500 
      
      action_a = {
               name = "Реформировать реформы и законодательство"
                command = { type = stability value = -1 }
               command = { type = domestic which = centralization value = 2 }
               command = { type = domestic which = innovative value = 2 }
               command = { type = domestic which = aristocracy value = -2 }
               command = { type = provincetax which = 326 value = 1 }
               command = { type = provincetax which = 352 value = 1 }
               command = { type = provincetax which = 353 value = 1 } 
               command = { type = provincetax which = 324 value = 1 }
               command = { type = provincetax which = 325 value = 1 }
               command = { type = provincetax which = 316 value = 1 }
               command = { type = provincetax which = 317 value = 1 }
               command = { type = provincetax which = 1950 value = 1 }
               command = { type = provincetax which = 366 value = 1 }
               command = { type = provincetax which = 1952 value = 1 }
               command = { type = provincetax which = 354 value = 1 }
               command = { type = provincetax which = 323 value = 1 }
 command = { type = provincetax which = 1402 value = 1 }
               command = { type = infra value = 1000 }
                 }
      action_b = {
               name = "Отказаться от реформ"
               command = { type = stability value = 3 }
                 }
}
#Academia Istropolitana
event = {
      id = 188115
      trigger = { flag = Corvinus 
                  owned = { province = 326 data = -1 } #Presburg
                }
      random = no 
      country = HUN
      name = "Истрополийская академия"
      desc = "Приняв во внимание совет гуманиста кардинала Яна Витца, который был большим приверженцем гуманитарных наук, естественных наук и образования вообще, Матьяш Корвин решил основать второй университет. До этого университет уже существовал в Пиксе, в словацком городе Прельпорок (венгры называли его Посзони).  Он добился одобрения от папы римского Пия II в 1465 году, и 20 июля 1467 года была открыта истрополитанская академия (Истрополий – это латинское название города Прельпорок). Университет включал в себя 4 факультета: факультет гуманитарных наук, теологии, права и медицины, а вскоре он стал культурным центром Словакии и фокальной точкой венгерского гуманизма."
      style = 1
      
      date = { day = 20 month = july year = 1467 }
      offset = 0
      
      action_a = {
               name = "Основать университет"
               command = { type = domestic which = innovative value = 1 }
               command = { type = infra value = 150 }
               command = { type = population which = 326 value = 500 }
               command = { type = treasury value = -50 }
                 }
      action_b = {
               name = "Он нам ни к чему"
               command = { type = vp value = -5 }
                }
}


#Rebellion against Mathias Corvinus (random event)
event = {
      id = 188117
      trigger = { monarch = 06264 }
      random = yes
      country = HUN
      name = "Восстания против Матьяша Корвина"
      desc = "Во время правления Матьяша Корвина, поднимались многочисленные восстания дворянства, разгневанного потерей своих привелегий, растущими налогами и нарастающим королевским влиянием. Изредка некоторые пэры и прелаты могли собираться и планировать свержение его с престола, в то время как он находился где-то в другом месте. Подобные попытки быстро пресекались, когда Матьяш приезжал как буря с королевскими войсками и разгонял мятежников. Тем не менее, постоянная оккупация с расколом в Венгрии помешали ему достичь больше военных успехов в его походах на Богемию и Австрию." 
      style = 1
      
      action_a = {
               name = "Сокрушить этих дураков"
command = { type = revolt which = -1 }
command = { type = revolt which = -1 }

               command = { type = revolt which = -1 }
               command = { type = stability value = -1 }
                 }
}

#Rebellion against Mathias Corvinus (random event)
event = {
      id = 188118
      trigger = { monarch = 06264 
                  atwar = yes }
      random = yes
      country = HUN
      name = "Восстания против Матьяша Корвина"
      desc = "Во время правления Матиаша Корвина, поднимались многочисленные восстания дворянства, разгневанного потерей своих привилегий,  растущими налогами и нарастающим королевским влиянием. Изредка некоторые пэры и прелаты могли планировать его свержение с престола, в то время как он находился в другом месте. Подобные  попытки быстро пресекались, когда Матиаш приезжал с королевскими войсками, словно буря и разгонял мятежников. Тем не менее, постоянная оккупация  Венгрии и внутренний раскол помешали ему достичь военных успехов в его походах на Богемию и Австрию." 
      style = 1
      
      action_a = {
               name = "Сокрушить этих глупцов"
               command = { type = revolt which = -1 }
command = { type = revolt which = -1 }
command = { type = revolt which = -1 }
               command = { type = stability value = -1 }
                 }
}

#The Bohemian throne
event = {
      id = 188119
      random = no
      country = HUN
      name = "Богемский трон"
      desc = "Иржи Подебрат, король Богемии, входил в умеренное крыло еретического гуситского движения чашников. Несмотря на обещания Папе Римскому вернуться к католической церкви и подавить ересь в Богемии перед своим избранием, он открыто поддерживал гуситов и не проявлял пылкого стремления отказаться от своей веры. Настроенный на борьбу с гуситами, Папа Римский Пий II, осуждал еретическую позицию Подэбрата все громче и громче и поддерживал восстание дворян-католиков в 1465 году. Для того чтобы поддержать мятежников и свергнуть Подебрада, 23 декабря 1466 года преемник Пия Пол II отлучил короля Богемии от церкви, освободил всех его подданных от клятвы верности и занялся поиском католического принца, который сменил бы его на троне Богемии. После отказа Фридриха II Бранденбургского поддержать кампанию, Пий обратился к Матьяшу Корвину Венгерскому.  Предав своего бывшего сторонника Подебрада, Матиаш примирился и оккупировал Моравию."
       style = 1
       
       action_a = {
                name = "Потребовать богемский трон"
                command = { type = addcore which = 328 }
                command = { type = addcore which = 329 }
                command = { type = addcore which = 330 } 
                command = { type = addcore which = 314 }
                command = { type = addcore which = 315 }
                command = { type = addcore which = 1940 }
                command = { type = addcore which = 1943 }
                command = { type = addcore which = 1987 }
                command = { type = war which = BOH }
                command = { type = treasury value = 100 }
                command = { type = setflag which = Corvinus_Bohemia }
                command = { type = ai which = HUN_Corvinus2.ai }
                  }
       action_b = {
                name = "Отклонить папские предложения"
                command = { type = stability value = 2 }
                command = { type = relation which = BOH value = 50 }
                command = { type = sleepevent which = 129016 } #BOH: Matthias Corvinus proclaimed King
                  }
}
#Peace of Olmьtz
event = {
      id = 188120
      random = no 
      country = HUN
      name = "Ольмтцестский мир"
      desc = "EVENTHIST188120"
      style = 1
      
      action_a = {
               name = "Мы должны подписать мир с Богемией"
               command = { type = removecore which = 328 }
               command = { type = removecore which = 330 }
               command = { type = removecore which = 329 }
               command = { type = removecore which = 1987 }
               command = { type = secedeprovince which = BOH value = 1987 }
               command = { type = secedeprovince which = BOH value = 329 }
               command = { type = secedeprovince which = BOH value = 330 }
               command = { type = secedeprovince which = BOH value = 328 }
               command = { type = stability value = 1 }
               command = { type = relation which = POL value = 50 }
               command = { type = clrflag which = Corvinus_Bohemia }
               command = { type = trigger which = 129027 } #BOH: Peace concluded
                 }
      action_b = {
               name = "Требовать всю Богемию"
               command = { type = stability value = -2 }
               command = { type = relation which = BOH value = -100 }
                 }
}
#Conflict with Friedrich III
event = {
      id = 188121 
      trigger = {  NOT = { flag = Corvinus_Bohemia } #Either no conflict with Bohemia or the conflict is over 
                   flag = Corvinus
                }
      random = no
      country = HUN
      name = "Конфликт с Фридрихом III"
      desc = "EVENTHIST188121"
      style = 1
      
      date = { day = 1 month = january year = 1479 }
      offset = 100
 
      action_a = {
               name = "Вторгнуться в Австрию"
               command = { type = addcore which = 351 } #Austria
               command = { type = addcore which = 369 } #Styria 
               command = { type = addcore which = 327 }
               command = { type = casusbelli which = HAB value = 60 }
               command = { type = relation which = HAB value = -200 }
               command = { type = ai which = HUN_Corvinus3.ai }
                 }
      action_b = {
               name = "Избежать конфликта с Фридрихом"  
               command = { type = relation which = HAB value = 50 }
                 }
}

#Death of Mathias Corvinus with Austria existing
event = {
      id = 188122
      trigger = { flag = Corvinus 
                  exists = HAB }
      random = no
      country = HUN
      name = "Смерть Матьяша Корвина"
      desc = "EVENTHIST188122"
      style = 1
      
      date = { day = 6 month = april year = 1490 }
       
      action_a = {
               name = "Выбрать Владислава Ягелло"
               command = { type = technology which = torthodox } 
               command = { type = domestic which = aristocracy value = 3 }
               command = { type = domestic which = centralization value = -4 }
               command = { type = domestic which = innovative value = -1 }
               command = { type = domestic which = serfdom value = 3 }
               command = { type = provincetax which = 326 value = -1 }
               command = { type = provincetax which = 352 value = -1 }
               command = { type = provincetax which = 353 value = -1 } 
               command = { type = provincetax which = 324 value = -1 }
               command = { type = provincetax which = 325 value = -1 }
               command = { type = provincetax which = 316 value = -1 }
               command = { type = provincetax which = 317 value = -1 }
               command = { type = provincetax which = 1950 value = -1 }
               command = { type = provincetax which = 366 value = -1 }
               command = { type = provincetax which = 1952 value = -1 }
               command = { type = provincetax which = 354 value = -1 }
               command = { type = provincetax which = 323 value = -1 }
command = { type = provincetax which = 1402 value = -1 }
                 command = { type = provincemanpower which = 1402 value = -1 }
               command = { type = provincemanpower which = 326 value = -1 }
               command = { type = provincemanpower which = 352 value = -1 }
               command = { type = provincemanpower which = 353 value = -1 } 
               command = { type = provincemanpower which = 324 value = -1 }
               command = { type = provincemanpower which = 325 value = -1 }
               command = { type = provincemanpower which = 316 value = -1 }
               command = { type = provincemanpower which = 317 value = -1 }
               command = { type = provincemanpower which = 1950 value = -1 }
               command = { type = provincemanpower which = 366 value = -1 }
               command = { type = provincemanpower which = 1952 value = -1 }
               command = { type = provincemanpower which = 354 value = -1 }
               command = { type = provincemanpower which = 323 value = -1 }
               command = { type = stability value = 2 } 
               command = { type = ai which = peaceful.ai }
               command = { type = setflag which = Jagiello }
               command = { type = clrflag which = Corvinus }
#               command = { type = wakemonarch which = 06265 }#Ulaszly II, commented out - alm.
#               command = { type = wakemonarch which = 18781 }#Kardinal Bakycz
#               command = { type = wakemonarch which = 06266 }#Lajos II
               command = { type = secedeprovince which = BOH value = 314 }
               command = { type = secedeprovince which = BOH value = 315 }
               command = { type = secedeprovince which = BOH value = 329 }
               command = { type = secedeprovince which = BOH value = 330 }
               command = { type = secedeprovince which = BOH value = 1974 }
               command = { type = secedeprovince which = BOH value = 1425 }
               command = { type = removecore which = 314 }
               command = { type = removecore which = 315 }
               command = { type = removecore which = 329 }
               command = { type = removecore which = 1940 }
               command = { type = removecore which = 1943 }
               command = { type = trigger which = 258104 } #POL: Vladislav Jagiello elected King of Hungary
                 }
      action_b = {
               name = "Выбрать Максимилиана Габсбурга (конец игры)"
               command = { type = secedeprovince which = BOH value = 314 }
               command = { type = secedeprovince which = BOH value = 315 }
               command = { type = secedeprovince which = BOH value = 329 }
               command = { type = secedeprovince which = BOH value = 330 }
               command = { type = secedeprovince which = BOH value = 1943 }
               command = { type = secedeprovince which = BOH value = 1940 }
               command = { type = provincetax which = 326 value = -1 }
               command = { type = provincetax which = 352 value = -1 }
               command = { type = provincetax which = 353 value = -1 } 
               command = { type = provincetax which = 324 value = -1 }
               command = { type = provincetax which = 325 value = -1 }
               command = { type = provincetax which = 316 value = -1 }
               command = { type = provincetax which = 317 value = -1 }
               command = { type = provincetax which = 1950 value = -1 }
               command = { type = provincetax which = 366 value = -1 }
               command = { type = provincetax which = 1952 value = -1 }
               command = { type = provincetax which = 354 value = -1 }
               command = { type = provincetax which = 323 value = -1 }
command = { type = provincetax which = 1402 value = -1 }
                 command = { type = provincemanpower which = 1402 value = -1 }
               command = { type = provincemanpower which = 326 value = -1 }
               command = { type = provincemanpower which = 352 value = -1 }
               command = { type = provincemanpower which = 353 value = -1 } 
               command = { type = provincemanpower which = 324 value = -1 }
               command = { type = provincemanpower which = 325 value = -1 }
               command = { type = provincemanpower which = 316 value = -1 }
               command = { type = provincemanpower which = 317 value = -1 }
               command = { type = provincemanpower which = 1950 value = -1 }
               command = { type = provincemanpower which = 366 value = -1 }
               command = { type = provincemanpower which = 1952 value = -1 }
               command = { type = provincemanpower which = 354 value = -1 }
               command = { type = provincemanpower which = 323 value = -1 }
               command = { type = revolt which = -1 }
               command = { type = revolt which = -1 }
               command = { type = revolt which = -1 }
               command = { type = revolt which = -1 }
               command = { type = revolt which = -1 }
               command = { type = trigger which = 179111 } #HAB: Inheritance of Hungary
               command = { type = trigger which = 301029 } #TUR: Claims on Hungary
                 }
      action_c = {
               name = "Яношь Корвин должен стать следующим королём!"
               command = { type = domestic which = centralization value = 1 }
               command = { type = independence which = SIE }
               command = { type = trigger which = 282000 } #SIE: War against Corvinus
               command = { type = trigger which = 179112 } #HAB: Civil War in Hungary (Grants cores)
               command = { type = trigger which = 301029 } #TUR: Claims on Hungary
               command = { type = stability value = -6 }
               command = { type = revolt which = -1 }
               command = { type = revolt which = -1 }
               command = { type = revolt which = -1 }
               command = { type = revolt which = -1 }
               command = { type = revolt which = -1 }
command = { type = revolt which = -1 }
               command = { type = revolt which = -1 }
               command = { type = revolt which = -1 }
               command = { type = revolt which = -1 }
               command = { type = revolt which = -1 }
               command = { type = secedeprovince which = BOH value = 314 }
               command = { type = secedeprovince which = BOH value = 315 }
               command = { type = secedeprovince which = BOH value = 329 }
               command = { type = secedeprovince which = BOH value = 330 }
               command = { type = secedeprovince which = BOH value = 1940 }
               command = { type = secedeprovince which = BOH value = 1943 }
               command = { type = removecore which = 314 }
               command = { type = removecore which = 315 }
               command = { type = removecore which = 329 }
               command = { type = removecore which = 1940 }
               command = { type = removecore which = 1943 }
               command = { type = revoltrisk which = 60 value = 6 }
               command = { type = sleepmonarch which = 06265 } # Ulaszly II, Jagiellon
               command = { type = wakemonarch which = 18782 } #Janos Corvinus
                }
}



#Death of Mathias Corvinus with Habsburgs dead
event = {
      id = 188123
      trigger = { flag = Corvinus 
                  NOT = { exists = HAB }
                }
      random = no
      country = HUN
      name = "Реакция королевства"
      desc = "EVENTHIST188123"
      style = 1
      
      date = { day = 6 month = april year = 1490 }
       
      action_a = {
               name = "Выбрать Владислава Ягелло"
              command = { type = technology which = torthodox } 
               command = { type = domestic which = aristocracy value = 3 }
               command = { type = domestic which = centralization value = -4 }
               command = { type = domestic which = innovative value = -1 }
               command = { type = domestic which = serfdom value = 3 }
                command = { type = provincetax which = 326 value = -1 }
               command = { type = provincetax which = 352 value = -1 }
               command = { type = provincetax which = 353 value = -1 } 
               command = { type = provincetax which = 324 value = -1 }
               command = { type = provincetax which = 325 value = -1 }
               command = { type = provincetax which = 316 value = -1 }
               command = { type = provincetax which = 317 value = -1 }
               command = { type = provincetax which = 1950 value = -1 }
               command = { type = provincetax which = 366 value = -1 }
               command = { type = provincetax which = 1952 value = -1 }
               command = { type = provincetax which = 354 value = -1 }
               command = { type = provincetax which = 323 value = -1 }
command = { type = provincetax which = 1402 value = -1 }
               command = { type = provincemanpower which = 1402 value = -1 }
               command = { type = provincemanpower which = 326 value = -1 }
               command = { type = provincemanpower which = 352 value = -1 }
               command = { type = provincemanpower which = 353 value = -1 } 
               command = { type = provincemanpower which = 324 value = -1 }
               command = { type = provincemanpower which = 325 value = -1 }
               command = { type = provincemanpower which = 316 value = -1 }
               command = { type = provincemanpower which = 317 value = -1 }
               command = { type = provincemanpower which = 1950 value = -1 }
               command = { type = provincemanpower which = 366 value = -1 }
               command = { type = provincemanpower which = 1952 value = -1 }
               command = { type = provincemanpower which = 354 value = -1 }
               command = { type = provincemanpower which = 323 value = -1 }
               command = { type = stability value = 2 } 
               command = { type = ai which = peaceful.ai }
               command = { type = setflag which = Jagiello }
               command = { type = clrflag which = Corvinus }
#               command = { type = wakemonarch which = 06265 }#Jagiellos already awake
#               command = { type = wakemonarch which = 18781 }
#               command = { type = wakemonarch which = 06266 }
               command = { type = secedeprovince which = BOH value = 314 }
               command = { type = secedeprovince which = BOH value = 315 }
               command = { type = secedeprovince which = BOH value = 329 }
               command = { type = secedeprovince which = BOH value = 1940 }
               command = { type = secedeprovince which = BOH value = 1943 }
               command = { type = removecore which = 314 }
               command = { type = removecore which = 315 }
               command = { type = removecore which = 329 }
               command = { type = removecore which = 1940 }
               command = { type = removecore which = 1943 }
               command = { type = trigger which = 258104 } #POL: Vladislav Jagiello elected King of Hungary
                 }
      action_b = {
               name = "Янош Корвин, наш будущий король!"
                 command = { type = domestic which = centralization value = 1 }
               command = { type = independence which = SIE }
               command = { type = trigger which = 282000 } #SIE: War against Corvinus
               command = { type = trigger which = 179112 } #HAB: Civil War in Hungary (Grants cores)
               command = { type = trigger which = 301029 } #TUR: Claims on Hungary
               command = { type = stability value = -6 }
               command = { type = revolt which = -1 }
               command = { type = revolt which = -1 }
               command = { type = revolt which = -1 }
               command = { type = revolt which = -1 }
               command = { type = revolt which = -1 }
               command = { type = secedeprovince which = BOH value = 314 }
               command = { type = secedeprovince which = BOH value = 315 }
               command = { type = secedeprovince which = BOH value = 329 }
               command = { type = secedeprovince which = BOH value = 1940 }
               command = { type = secedeprovince which = BOH value = 1943 }
               command = { type = removecore which = 314 }
               command = { type = removecore which = 315 }
               command = { type = removecore which = 329 }
               command = { type = removecore which = 1440 }
               command = { type = removecore which = 1943 }
               command = { type = sleepmonarch which = 06265 } # Ulaszly II, Jagiellon
               command = { type = wakemonarch which = 18782 } #Janos Corvinus
               command = { type = revoltrisk which = 60 value = 6 }
                }
}
#Death of Janos Corvinus #Corvinus prevails
event = {
      id = 188124 
      trigger = { flag = Corvinus
                  NOT = { exists = SIE }
                  countrysize = 10
                }
      random = no
      country = HUN
      name = "Смерть Яноша Корвина"
      desc = "12 октября 1504 года скоропостижно скончался Янош Корвин, его единственный сын Кристофер был слабым, предполагалось, что больной ребенок вскоре умрет. Поэтому до своей смерти он приблизил к себе Иоанна Запольского, самого влиятельного венгерского помещика, который был противником иностранных королей, и предложил ему трон в пользу примирения королевской власти и помещиков. Амбициозный Запольский принял трон и стал королем как и Янош II. Отдавая корону, оппозиция центральной власти, в рядах которой было дворянство, заметно ослабнет, учитывая то, что все друзья и сторонники короля продолжали поддерживать его."
      style = 1
      
      date = { day = 12 month = october year = 1504 }
      offset = 0 

      action_a = {
               name = "Запольский стал королём"
               command = { type = wakemonarch which = 18783 } #Janos II Zapolya
               command = { type = wakemonarch which = 18784 } #Janos III Zapolya
               command = { type = sleepmonarch which = 06267 }
               command = { type = sleepmonarch which = 06284 }
               command = { type = stability value = 1 }
               command = { type = revoltrisk value = -3 }
               command = { type = technology which = torthodox }
                 }
}
#Death of Janos Corvinus #Corvinus fails
event = {
      id = 188125
      trigger = { flag = Corvinus
                  OR = { exists = SIE 
                         NOT = { countrysize = 10 }
                       }
                }
      random = no
      country = HUN
      name = "Смерть Яноша Корвина"
      desc = "12 октября 1504 года скоропостижно скончался Янош Корвин. Его единственный сын Кристофер был слабым, и, как и предполагалось, больной ребенок вскоре умер. Во время его правления, Венгрия разделилась на несколько частей вследствие массивного сопротивления дворянства сильному королю и иностранным правителям, которые воспользовались преимуществом нестабильности в стране. Пэрам, которые очень желали видеть на месте короля слабую марионетку, уже в 1490 году удалось привести к власти Владислава Ягелло Богемского, некомпетентного, нерешительного человека, который привел Венгрию к бедствиям."
      style = 1
     
      date = { day = 12 month = october year = 1504 }
      offset = 0 
      
      action_a = {
               name = "Короновать Владислава Ягелло" #same effects as in the 1490 event
               command = { type = technology which = torthodox } #or even worse?
               command = { type = domestic which = aristocracy value = 3 }
               command = { type = domestic which = centralization value = -4 }
               command = { type = domestic which = innovative value = -1 }
               command = { type = domestic which = serfdom value = 3 }
               command = { type = provincetax which = 326 value = -1 }
               command = { type = provincetax which = 352 value = -1 }
               command = { type = provincetax which = 353 value = -1 } 
               command = { type = provincetax which = 324 value = -1 }
               command = { type = provincetax which = 325 value = -1 }
               command = { type = provincetax which = 316 value = -1 }
               command = { type = provincetax which = 317 value = -1 }
               command = { type = provincetax which = 1950 value = -1 }
               command = { type = provincetax which = 366 value = -1 }
               command = { type = provincetax which = 1952 value = -1 }
               command = { type = provincetax which = 354 value = -1 }
               command = { type = provincetax which = 323 value = -1 }
command = { type = provincetax which = 1402 value = -1 }
               command = { type = provincemanpower which = 1402 value = -1 }
               command = { type = provincemanpower which = 326 value = -1 }
               command = { type = provincemanpower which = 352 value = -1 }
               command = { type = provincemanpower which = 353 value = -1 } 
               command = { type = provincemanpower which = 324 value = -1 }
               command = { type = provincemanpower which = 325 value = -1 }
               command = { type = provincemanpower which = 316 value = -1 }
               command = { type = provincemanpower which = 317 value = -1 }
               command = { type = provincemanpower which = 1950 value = -1 }
               command = { type = provincemanpower which = 366 value = -1 }
               command = { type = provincemanpower which = 1952 value = -1 }
               command = { type = provincemanpower which = 354 value = -1 }
               command = { type = provincemanpower which = 323 value = -1 }
               command = { type = stability value = 2 } 
               command = { type = ai which = peaceful.ai }
               command = { type = setflag which = Jagiello }
               command = { type = clrflag which = Corvinus }
               command = { type = revoltrisk value = -8 } 
               command = { type = wakemonarch which = 18785 }#The new Ulaszly II
#               command = { type = wakemonarch which = 18781 } #are awake already -alm.
#               command = { type = wakemonarch which = 06266 }
               command = { type = inherit which = SIE }
               command = { type = trigger which = 258104 } #POL: Vladislav Jagiello elected King of Hungary
                 }
}

#
# EUE2 -Flavor Events
#
#		written by Johan Andersson
#



#########################################################################
#  The Hungarian Vampire
#########################################################################

event = { 
	id = 1503
	random = no
	country = HUN
	date = { year = 1614 }
	offset = 300
	name = "ENAME_F_1503"
	desc = "EDESC_F_1503"
	style = 1
	action_a = {
			name = "OK"
			command = { type = stability value = -1 }
			command = { type = domestic which = innovative value = -1 }
		}
	}






 


