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

#The Death of King Lajos of Hungary#
event = {

	id = 3639
	trigger = {
			exists = SIE
			exists = HAB
		}
	random = no
	country = HUN
	name = "EVENTNAME3639"
	desc = "EVENTHIST3639"
	style = 2

	date = { day = 28 month = august year = 1526 }
	offset = 0
	deathdate = { day = 29 month = august year = 1526 }

	action_a ={				#Elect Johan Zapolya of Siebenbürgen#
		name = "ACTIONNAME3639A"
		command = { type = trigger which = 3644 }
		command = { type = trigger which = 3186 }
		command = { type = breakvassal which = SIE }
		command = { type = dynastic which = SIE }
		command = { type = alliance which = SIE }
		command = { type = stability value = -4 }
		command = { type = secedeprovince which = HAB value = 326 }
		command = { type = secedeprovince which = HAB value = 352 }
		command = { type = secedeprovince which = HAB value = 367 }
		command = { type = removecore which = 326 }
		command = { type = removecore which = 352 }
		command = { type = removecore which = 367 }
	}

	action_b ={				#Elect Ferdinand Habsburg of Austria#
		name = "ACTIONNAME3639B"
		command = { type = wakemonarch which = 06268 }
		command = { type = wakemonarch which = 06269 }
		command = { type = wakemonarch which = 06270 }
		command = { type = wakemonarch which = 06271 }
		command = { type = wakemonarch which = 06272 }
		command = { type = wakemonarch which = 06273 }
		command = { type = wakemonarch which = 06274 }
		command = { type = wakemonarch which = 06275 }
		command = { type = wakemonarch which = 06276 }
		command = { type = wakemonarch which = 06277 }
		command = { type = wakemonarch which = 06278 }
		command = { type = wakemonarch which = 06279 }
		command = { type = wakemonarch which = 06280 }
		command = { type = trigger which = 3645 }
		command = { type = trigger which = 3185 }
		command = { type = breakvassal which = HAB }
		command = { type = dynastic which = HAB }
		command = { type = alliance which = HAB }
		command = { type = stability value = -4 }
		command = { type = secedeprovince which = SIE value = 317 }
		command = { type = removecore which = 317 }
	}
}

#The Death of Johan Zapolya#
event = {

	id = 3640
	trigger = {
			exists = HAB
			exists = SIE
			event = 3644
		}
	random = no
	country = HUN
	name = "EVENTNAME3640"
	desc = "EVENTHIST3640"
	style = 2

	date = { day = 21 month = july year = 1540 }
	offset = 0
	deathdate = { day = 22 month = july year = 1540 }

	action_a ={				#Let the crown become hereditary within the Habsburg Dynasty#
		name = "ACTIONNAME3640A"
		command = { type = trigger which = 3098 }
		
	}

	action_b ={				#Let the crown become hereditary within the Siebenbürgen Dynasty#
		name = "ACTIONNAME3640B"
		command = { type = trigger which = 3646 }
		command = { type = stability value = 3 }
		command = { type = relation which = HAB value = -150 }
		command = { type = relation which = SIE value = 150 }
		command = { type = dynastic which = SIE }
		command = { type = alliance which = SIE }
	}
}

#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 }
	}
}