##################################
### Imperial events by Dmitriy ###
##################################

event = {
	id = 3801
	random = no
	country = BOH
	name = "EVENTNAME3801"
	desc = "EVENTHIST3801"
	style = 1
	
	date = { day = 16 month = august year = 1419 }
	offset = 0

	action_a ={ # The traitor will not rule Bohemia!
		name = "ACTIONNAME3801A"
		command = { type = stability value = 2 }
		command = { type = domestic which = INNOVATIVE value = 2 }
		command = { type = relation which = HUN value = -200 }
		command = { type = relation which = BRA value = -200 }
		command = { type = relation which = POL value = 50 }
		command = { type = relation which = LIT value = 50 }
		command = { type = relation which = HAB value = 50 }
		command = { type = breakdynastic which = HUN }
		command = { type = religion which = protestant }
                command = { type = provincemanpower which = -2 value = 5 } 
		command = { type = trigger which = 3851 }
		command = { type = treasury value = 250 }
	}
	action_b ={ # Zigmunt is the legal heir
		name = "ACTIONNAME3801B"
		command = { type = sleepleader which = 09680 } # Jan Ziska
		command = { type = sleepleader which = 09681 } # Prokop Holy
		command = { type = sleepmonarch which = 06231 }
		command = { type = wakemonarch which = 06259 }
		command = { type = stability value = -6 }
		command = { type = domestic which = INNOVATIVE value = -2 }
		command = { type = relation which = HUN value = 200 }
                command = { type = provincemanpower which = -2 value = 5 } 
		command = { type = treasury value = 50 }#Отобрали состояние гусситов :)#
		command = { type = sleepevent which = 5023 }#добавлено по плану :)#
	}
}

event = {
	id = 5023
	trigger = {
		religion = protestant
		NOT = {
			control = { province = 328 data = -1 }#Богемия#
			control = { province = 329 data = -1 }#Рудные Горы#
			control = { province = 330 data = -1 }#Эгер#
			control = { province = 315 data = -1 }#Моравия#
			control = { province = 314 data = -1 }#Силезия#
		}
		NOT = { flag = e5023 }
	}
	random = no
	country = BOH
	name = "Мы побеждены"
	desc = "Это всё из-за агрессивной политики :р"
	style = 1

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

	action_a ={
		name = "Уже ничего не поделаешь"
		command = { type = secedeprovince which = POL value = 314 }
		command = { type = secedeprovince which = HUN value = 315 }
		command = { type = secedeprovince which = HAB value = 330 }
		command = { type = trigger which = 5073 }
		command = { type = trigger which = 5131 }
		command = { type = trigger which = 5248 }
		command = { type = stability value = -2 }
		command = { type = vp value = -200 }
		command = { type = setflag which = e5023 }
	}
}

event = {
	id = 5024
	trigger = {
		flag = e5023
		control = { province = 328 data = POL }
		control = { province = 329 data = POL }
	}
	random = no
	country = BOH
	name = "Трон захвачен!"
	desc = "кранты :р"
	style = 1

	date = { day = 16 month = august year = 1419 }
	offset = 0
	deathdate = { day = 23 month = august year = 1437 }

	action_a ={
		name = "Сдаться на милость победителям"
		command = { type = trigger which = 5074 }
		command = { type = sleepevent which = 5025 }
		command = { type = sleepevent which = 5026 }
	}
}

event = {
	id = 5025
	trigger = {
		flag = e5023
		control = { province = 328 data = HUN }
		control = { province = 329 data = HUN }
	}
	random = no
	country = BOH
	name = "Трон захвачен!"
	desc = "кранты :р"
	style = 1

	date = { day = 16 month = august year = 1419 }
	offset = 0
	deathdate = { day = 23 month = august year = 1437 }

	action_a ={
		name = "Сдаться на милость победителям"
		command = { type = trigger which = 5132 }
		command = { type = sleepevent which = 5024 }
		command = { type = sleepevent which = 5026 }
	}
}

event = {
	id = 5026
	trigger = {
		flag = e5023
		control = { province = 328 data = HAB }
		control = { province = 329 data = HAB }
	}
	random = no
	country = BOH
	name = "Трон захвачен!"
	desc = "кранты :р"
	style = 1

	date = { day = 16 month = august year = 1419 }
	offset = 0
	deathdate = { day = 23 month = august year = 1437 }

	action_a ={
		name = "Сдаться на милость победителям"
		command = { type = trigger which = 5249 }
		command = { type = sleepevent which = 5024 }
		command = { type = sleepevent which = 5025 }
	}
}

event = {
	id = 5021
	trigger = {
		event = 5101
		religion = catholic
	}
	random = no
	country = BOH
	name = "Габсбурги претендуют на наш трон"
	desc = "какого... :р"
	style = 1

	action_a ={
		name = "Принять претензии"#GameOver#
		command = { type = trigger which = 5103 }
	}
	action_b ={
		name = "Принять их как выборных королей"
		command = { type = stability value = -2 }
		command = { type = relation which = HUN value = -150 }
		command = { type = dynastic which = HAB }
		command = { type = desertion which = -1 value = 7000 }
		command = { type = trigger which = 5104 }
	}
}


event = {
	id = 5022
	trigger = {
		event = 5101
		religion = protestant
	}
	random = no
	country = BOH
	name = "Габсбурги претендуют на наш трон"
	desc = "а нам всё равно... :р"
	style = 1

	action_a ={
		name = "Они не имеют права"
		command = { type = relation which = HAB value = -100 }
		command = { type = stability value = 1 }
	}
	action_b ={
		name = "Мы останемся независимыми"
		command = { type = relation which = HAB value = -100 }
		command = { type = land value = 750 }
		command = { type = domestic which = land value = 1 }
		command = { type = INF which = -2 value = 7000 }
		command = { type = treasury value = -200 }
	}
	action_c ={
		name = "Готовимся к войне"
		command = { type = relation which = HAB value = -100 }
		command = { type = land value = 500 }
		command = { type = domestic which = land value = 1 }
		command = { type = domestic which = offensive value = -1 }
		command = { type = fortress which = 330 value = 1 }
		command = { type = fortress which = 328 value = 1 }
		command = { type = treasury value = -500 }
	}
}


event = {

	id = 5027
	trigger = {
		owned = { province = 351 data = -1 } 
		NOT = {
			exists = HAB
		}
		NOT = { flag = e5027 }
		NOT = {
			core = { province = 351 data = BOH }
			core = { province = 350 data = BOH }
			core = { province = 327 data = BOH }
			core = { province = 348 data = BOH }
			core = { province = 331 data = BOH }
			core = { province = 332 data = BOH }
			core = { province = 347 data = BOH }
		}
	}
	random = no
	country = BOH
	name = "Захват Вены"
	desc = "Захватив столицу Австрии, Богемия стала главной немецкой державой и признана императором Священной Римской Империи."
	style = 1

	date = { day = 1 month = january year = 1419 }
	offset = 0
	deathdate = { day = 1 month = january year = 1801 }

	action_a ={				
		name = "Германия - это мы !"
		command = { type = badboy value = -10 }
                command = { type = addcore which = 351 } # Австрия
		command = { type = addcore which = 350 } # Зальцбург
		command = { type = addcore which = 327 } # Остмарк
		command = { type = addcore which = 348 } # Ансбах
		command = { type = addcore which = 331 } # Саксония
		command = { type = addcore which = 332 } # Ангальт
		command = { type = addcore which = 347 } # Тюрингия
		command = { type = vassal which = BAY }
                command = { type = provincemanpower which = -2 value = -5 } 
		command = { type = stability value = 2 }
		command = { type = relation which = BAY value = 400 }
		command = { type = relation which = MUN value = 400 }
		command = { type = relation which = WUR value = 400 }
		command = { type = relation which = BAD value = 400 }
		command = { type = relation which = PFA value = 400 }
		command = { type = relation which = MAI value = 400 }
		command = { type = relation which = HES value = 400 }
		command = { type = relation which = MEC value = 400 }
		command = { type = relation which = SHL value = 400 }
		command = { type = relation which = KLE value = 400 }
		command = { type = relation which = KOL value = 400 }
		command = { type = relation which = MAG value = 400 }
		command = { type = relation which = LUX value = 400 }
		command = { type = relation which = BRE value = 400 }
		command = { type = relation which = POM value = 400 }
		command = { type = relation which = THU value = 400 }
		command = { type = relation which = HAN value = 400 }
		command = { type = trigger which = 5028 }
		command = { type = setflag which = e5027 }
	}
}


event = {

	id = 5028
	random = no
	trigger = {
		core = { province = 351 data = HUN }
		core = { province = 369 data = HUN }
	}
	country = HUN
	name = "Потеря немецкого наследия"
	desc = "Уступив Вену Богемии держава Венгрия полностью потеряла своё влияние, оказывываемое на немецкие государства. Отныне единственный путь развития Венгрии лежит на Балканы."
	style = 1

	action_a ={				
		name = "Всё потеряно из-за этих чехов"
                command = { type = remove_countryculture which = german }
                command = { type = removecore which = 351 } # Австрия
		command = { type = removecore which = 369 } # Штирия
		command = { type = stability value = -2 }
		command = { type = relation which = BOH value = -400 }
	}
}


event = {

	id = 5029
	trigger = {
		core = { province = 351 data = BOH }
		core = { province = 350 data = BOH }
		core = { province = 327 data = BOH }
		core = { province = 348 data = BOH }
		core = { province = 331 data = BOH }
		core = { province = 332 data = BOH }
		core = { province = 347 data = BOH }
	}
	random = no
	country = BOH
	name = "Потеря немецкого наследия"
	desc = "Уступив Вену Венгрии Богемия перестала оказывать существенное влияние на германские государства."
	style = 1

	action_a ={				
		name = "Всё потеряно из-за этих мадьяров"
                command = { type = removecore which = 351 } # Австрия
		command = { type = removecore which = 350 } # Зальцбург
		command = { type = removecore which = 327 } # Остмарк
		command = { type = removecore which = 348 } # Ансбах
		command = { type = removecore which = 331 } # Саксония
		command = { type = removecore which = 332 } # Ангальт
		command = { type = removecore which = 347 } # Тюрингия
		command = { type = stability value = -2 }
		command = { type = relation which = BAY value = -400 }
		command = { type = relation which = MUN value = -400 }
		command = { type = relation which = WUR value = -400 }
		command = { type = relation which = BAD value = -400 }
		command = { type = relation which = PFA value = -400 }
		command = { type = relation which = MAI value = -400 }
		command = { type = relation which = HES value = -400 }
		command = { type = relation which = MEC value = -400 }
		command = { type = relation which = SHL value = -400 }
		command = { type = relation which = KLE value = -400 }
		command = { type = relation which = KOL value = -400 }
		command = { type = relation which = MAG value = -400 }
		command = { type = relation which = LUX value = -400 }
		command = { type = relation which = BRE value = -400 }
		command = { type = relation which = POM value = -400 }
		command = { type = relation which = THU value = -400 }
		command = { type = relation which = HAN value = -400 }
		command = { type = relation which = HUN value = -400 }
	}
}



# ids are busy #
