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

	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 = -4 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 = -4 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"
	
	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"

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

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

	id = 3639	
	trigger = {
		exists = HAB
		exists = TUR
		owned = { province = 324 data = HUN }
		owned = { province = 325 data = HUN }
		NOT = {
			control = { province = 324 data = HUN }
			control = { province = 325 data = HUN }
		}
	}
	random = no
	country = HUN
	name = "EVENTNAME3639"
	desc = "EVENTHIST3639"

	style = "3639"

	date = { day = 13 month = march year = 1516 }
	offset = 5
	deathdate = { day = 21 month = july year = 1540 }

	action_a ={
		name = "ACTIONNAME3639B" # Ferdinand Habsburg
		trigger = { 
			ai = yes
		}
		command = { type = free which = TRA }
		command = { type = cedeprovince which = HAB value = 314 } # Greater Austria, Bohemia, Slovakia and Royal Hungary
		command = { type = cedeprovince which = HAB value = 315 }
		command = { type = cedeprovince which = HAB value = 316 }
		command = { type = cedeprovince which = HAB value = 326 }
		command = { type = cedeprovince which = HAB value = 327 }
		command = { type = cedeprovince which = HAB value = 328 }
		command = { type = cedeprovince which = HAB value = 329 }
		command = { type = cedeprovince which = HAB value = 330 }
		command = { type = cedeprovince which = HAB value = 350 }
		command = { type = cedeprovince which = HAB value = 352 }
		command = { type = cedeprovince which = HAB value = 367 }
		command = { type = cedeprovince which = HAB value = 368 }
		command = { type = cedeprovince which = HAB value = 369 }
		command = { type = cedeprovince which = HAB value = 371 }
		command = { type = cedeprovince which = TUR value = 317 } # Bosnia, Serbia, Croatia, Romania and Hungary
		command = { type = cedeprovince which = TUR value = 318 }
		command = { type = cedeprovince which = TUR value = 319 }
		command = { type = cedeprovince which = TUR value = 322 }
		command = { type = cedeprovince which = TUR value = 323 }
		command = { type = cedeprovince which = TUR value = 324 }
		command = { type = cedeprovince which = TUR value = 353 }
		command = { type = cedeprovince which = TUR value = 354 }
		command = { type = cedeprovince which = TUR value = 355 }
		command = { type = cedeprovince which = TUR value = 362 }
		command = { type = cedeprovince which = TUR value = 363 }
		command = { type = cedeprovince which = TUR value = 364 }
		command = { type = cedeprovince which = TUR value = 365 }
		command = { type = cedeprovince which = TUR value = 366 }
		command = { type = sleepevent which = 4190 }
		command = { type = trigger which = 3644 } # TUR
		command = { type = trigger which = 3185 } # HAB
	}

	action_b ={
		name = "ACTIONNAME3639A" # John Zapolya
		command = { type = inherit which = TRA }
		command = { type = diplomats value = 2 }
		command = { type = desertion which = -1 value = 15000 }
		command = { type = desertion which = -4 value = 10000 }
		command = { type = desertion which = -4 value = 10000 }
		command = { type = desertion which = -4 value = 5000 }
		command = { type = desertion which = -4 value = 5000 }
		command = { type = trigger which = 3645 } # TUR
		command = { type = trigger which = 3646 } # HAB
		command = { type = stability value = -3 }
	}
}

# The Death of John Zapolya #
event = {

	id = 4190
	trigger = {
		exists = HAB
		HAB = {
			isvassal = no
			countrysize = 5
		}
	}
	random = no
	country = HUN
	name = "EVENTNAME3098"
	desc = "EVENTHIST3098"

	date = { day = 21 month = july year = 1540 }

	action_a ={
		name = "ACTIONNAME3640B" # Zapolyas
		command = { type = stability value = -2 }
		command = { type = trigger which = 4192 } # HAB
		command = { type = trigger which = 4193 } # TUR
		command = { type = domestic which = CENTRALIZATION  value = 1 }
		command = { type = domestic which = OFFENSIVE value = -1 }
		command = { type = domestic which = SERFDOM value = 1 }
		command = { type = desertion which = -1 value = 10000 }
		command = { type = desertion which = -4 value = 5000 }
		command = { type = desertion which = -4 value = 5000 }
	}

	action_b ={
		name = "ACTIONNAME3640A" # Habsburgs
		command = { type = stability value = 1 }
		command = { type = trigger which = 4191 } # HAB
		command = { type = trigger which = 4194 } # TUR
		command = { type = wakemonarch which = 06268 } # Habsburgs
		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 = 06284 } # Zapolyas
		command = { type = sleepmonarch which = 06285 }
		command = { type = sleepmonarch which = 06286 }
		command = { type = sleepmonarch which = 06287 }
		command = { type = sleepmonarch which = 06288 }
		command = { type = sleepmonarch which = 06289 }
		command = { type = sleepmonarch which = 06290 }
		command = { type = sleepmonarch which = 06291 }
		command = { type = sleepmonarch which = 06292 }
		command = { type = sleepmonarch which = 06293 }
		command = { type = sleepmonarch which = 06294 }
		command = { type = sleepmonarch which = 06295 }
		command = { type = sleepmonarch which = 06296 }
		command = { type = sleepmonarch which = 06297 }
		command = { type = sleepmonarch which = 06298 }
		command = { type = sleepmonarch which = 06299 }
		command = { type = sleepleader which = 08557 } # János II Zápolya
		command = { type = sleepleader which = 08558 } # István Báthory
		command = { type = sleepleader which = 08546 } # Gábor Bethlen
		command = { type = sleepleader which = 08549 } # Ferenc Rákóczi II
	}
}
