#############################
### Bonus events by Korall ###
#############################


event = {
	id = 5125
	trigger = {
		owned = { province = 357 data = -1 }
		NOT = { flag = e5125 }
		NOT = {
			core = { province = 357 data = HUN }
		}
	}
	random = no
	country = HUN
	name = "Захват Константиноля"
	desc = "Будучи постоянно на задворках Европы, Венгрия играла роль второстепенной державы. Но в первой половине 15 века под мудрым управлением серого кардинала Венгрия не только избегнула австрийской угрозы, но и выдвинулась на роль ведущей державы на Балканах, захватив важнейшую и богатейшую провинцию - Фракию. Это привело к полному упадку Оттоманской Империи."
	style = 1

	date = { day = 1 month = january year = 1419 }
	offset = 15
	deathdate = { day = 1 month = january year = 1550 }
	
	action_a ={			
		name = "Убить всех еретиков!"
		command = { type = addcore which = 357 } # Фракия
		command = { type = provincereligion which = 357 value = catholic }
		command = { type = population which = 357 value = -50000 } 
                command = { type = revolt which = 357 } # недовольство населения провинции
		command = { type = revolt which = 357 }
                command = { type = treasury value = 300 } # награбленные сокровища   
                command = { type = stability value = 1 } # лучшая торговля купцов
                command = { type = cot which = 357 }
		command = { type = setflag which = e5125 }
	}
	action_b ={			
		name = "Обложить их тяжелым налогом"
		command = { type = addcore which = 357 } # Фракия
		command = { type = provincetax which = 357 value = 3 }
		command = { type = domestic which = CENTRALIZATION value = 1 }
		command = { type = revolt which = 357 } # недовольство населения провинции
		command = { type = treasury value = 150 }
                command = { type = gainbuilding which = 357 value = bailiff }
                command = { type = cot which = 357 }  
                command = { type = provincetax which = 357 value = 4 }
		command = { type = setflag which = e5125 }
	}
        action_c ={			
		name = "Перенести столицу в Константинополь и расселиться в греческих колониях" #может, кто хочет
		command = { type = addcore which = 357 } # Фракия
		command = { type = capital which = 357 }
                command = { type = conversion which = 357 }
		command = { type = provincetax which = 357 value = 1 } 
                command = { type = population which = 357 value = 5000 } 
                command = { type = provinceculture which = 357 value = -1 } 
                command = { type = infra value = 1000 }
		command = { type = stability  value = -2 }
                command = { type = revoltrisk which = 48 value = 4 } 
                command = { type = cot which = 357 }
		command = { type = remove_countryculture which = greek }
                command = { type = add_countryculture which = greek }
		command = { type = setflag which = e5125 }
	}
}

event = {

	id = 5126
	trigger = {
		not = { exists = HAB }	
                owned = { province = 351 data = -1}
		NOT = { flag = e5126 }
		NOT = {
			core = { province = 351 data = HUN }
			core = { province = 369 data = HUN }
		}
	}
	random = no
	country = HUN
	name = "Захват Вены"
	desc = "Агрессивные войны мадьяров привели к образованию Венгро-Австрии, которая стала развиваться на север и на запад."
	style = 1

	date = { day = 1 month = january year = 1419 }
	offset = 15
	deathdate = { day = 1 month = january year = 1821 }

	action_a ={				
		name = "Экспансия в германские земли"
		command = { type = stability value = 1 }
		command = { type = badboy value = -5 }
                command = { type = addcore which = 351 } # Австрия
		command = { type = addcore which = 369 } # Штирия
		command = { type = removecore which = 356 } # Болгария
		command = { type = remove_countryculture which = german }
                command = { type = add_countryculture which = german }
                command = { type = remove_countryculture which = slavonic }
                command = { type = remove_countryculture which = greek }
                command = { type = domestic which = aristocracy value = 1 }
                command = { type = provincemanpower which = -2 value = 1 }
		command = { type = provincetax which = -2 value = 1 }
		command = { type = trigger which = 5029 }
		command = { type = setflag which = e5126 }
	}
        action_b ={				
		name = "Зачем нам эти земли?"
		command = { type = stability value = -1 }
		command = { type = setflag which = e5126 }
        }
}

event = {

	id = 5127
	trigger = {
		owned = { province = 355 data = -1} 
                owned = { province = 356 data = -1}
                owned = { province = 363 data = -1} 
		NOT = { flag = e5127 }
		NOT = {
			core = { province = 356 data = HUN }
		}
	}
	random = no
	country = HUN
	name = "Славянские земли"
	desc = "Первенство на Балканах существенно укрепило международный авторитет Венгрии, а все славянские народы признали её своим национальным образованием."
	style = 1

	date = { day = 1 month = january year = 1419 }
	offset = 15
	deathdate = { day = 1 month = january year = 1821 }

	action_a ={				
		name = "Экспансия в славянские земли"
		command = { type = addcore which = 356 } # Болгария
		command = { type = stability value = 1 }
		command = { type = remove_countryculture which = slavonic }
                command = { type = add_countryculture which = slavonic }
                command = { type = remove_countryculture which = german }
		command = { type = setflag which = e5127 }
	}
        action_b ={				
		name = "Зачем нам эти земли?"
		command = { type = stability value = -1 }
		command = { type = setflag which = e5127 }
        }
}

event = {

	id = 5128
	trigger = {
		owned = { province = 318 data = -1} 
                owned = { province = 322 data = -1}
		NOT = { flag = 5128 }
		NOT = {
			core = { province = 318 data = HUN }
			core = { province = 319 data = HUN }
			core = { province = 320 data = HUN }
			core = { province = 322 data = HUN }
		}
	}
	random = no
	country = HUN
	name = "Румынские земли"
	desc = "Молодое венгерское государство легко подичинило себе близлежащие румынские земли"
	style = 1

	date = { day = 1 month = january year = 1419 }
	offset = 15
	deathdate = { day = 1 month = january year = 1821 }

	action_a ={				
		name = "Экспансия в румынские земли"
		command = { type = stability value = 1 }
		command = { type = remove_countryculture which = romanian }
                command = { type = add_countryculture which = romanian }
                command = { type = addcore which = 318 }
		command = { type = addcore which = 322 }
		command = { type = addcore which = 319 }
		command = { type = addcore which = 320 }
		command = { type = trigger which = 76407 }
		command = { type = setflag which = e5128 }
	}
}


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

event = {
	id = 5129
	random = no
	country = HUN
	name = "Император претендует на наши земли"
	desc = "думайте сами, решайте сами :р"
	style = 1

	action_a ={
		name = "Подчиниться"
		command = { type = secedeprovince which = HAB value = 326 }#Пресбург#
		command = { type = secedeprovince which = HAB value = 352 }#Бургенланд#
		command = { type = secedeprovince which = HAB value = 353 }#Пешт#
		command = { type = independence which = CRO }
		command = { type = independence which = SIE }
		command = { type = DIP which = -2 value = 84 }
		command = { type = MIL which = -1 value = 84 }
		command = { type = ADM which = -3 value = 84 }
		command = { type = stability value = -3 }
		command = { type = sleepevent which = 5130 }
		command = { type = trigger which = 5112 }
		command = { type = trigger which = 5079 }#технический ивент - иначе нет нужного эффекта#
	}
	action_b ={
		name = "Только через мой труп!"
		command = { type = war which = HAB }
		command = { type = MIL which = 3 value = 84 }
		command = { type = CAV which = -2 value = 10000 }
		command = { type = treasury value = 100 }
		command = { type = stability value = -1 }
		command = { type = domestic which = offensive value = 1 }
	}
	action_c ={
		name = "Принять вассальное подчинение"
		command = { type = dynastic which = HAB }
		command = { type = revolt which = -2 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = desertion which = -2 value = 12000 }
		command = { type = desertion which = -1 value = 5000 }
		command = { type = desertion which = -1 value = 5000 }
		command = { type = stability value = -2 }
		command = { type = treasury value = -150 }
		command = { type = trigger which = 5245 }
		command = { type = domestic which = centralization value = -1 }
		command = { type = domestic which = serfdom value = 2 }
	}
}

event = {
	id = 5079
	random = no
	country = HUN
	name = "Потеря земель"
	desc = "Сказано же - пересадка :р"
	
	action_a ={
		name = "OK"
		command = { type = secedeprovince which = CRO value = 366 }#Хорватия#
		command = { type = secedeprovince which = CRO value = 367 }#Каринтия#
		command = { type = secedeprovince which = SIE value = 324 }#Трансильвания#
		command = { type = secedeprovince which = SIE value = 323 }#Альфёльд#
		command = { type = secedeprovince which = SIE value = 354 }#Банат#
		command = { type = secedeprovince which = SIE value = 317 }#Русины#
		command = { type = secedeprovince which = BOH value = 315 }#Моравия#
	}
}

event = {
	id = 5130
	trigger = {
		OR = {
			event = 5129
			event = 5245#Если будет в нём экшен би#
		}
		control = { province = 325 data = HAB }#Венгрия#
		NOT = {
			control = { province = 316 data = -1 }#Карпаты#
		}
		NOT = { flag = e5130 }
	}
	random = no
	country = HUN
	name = "Мы разбиты"
	desc = "пересадка :р"
	style = 1

	date = { day = 11 month = december year = 1437 }
	offset = 15
	deathdate = { day = 10 month = november year = 1444}

	action_a ={
		name = "Сир, корона потеряна!"
		command = { type = secedeprovince which = HAB value = 326 }#Пресбург#
		command = { type = secedeprovince which = HAB value = 352 }#Бургенланд#
		command = { type = secedeprovince which = HAB value = 353 }#Пешт#
		command = { type = independence which = CRO }
		command = { type = secedeprovince which = CRO value = 366 }#Хорватия#
		command = { type = secedeprovince which = CRO value = 367 }#Каринтия#
		command = { type = independence which = SIE }
		command = { type = secedeprovince which = SIE value = 324 }#Трансильвания#
		command = { type = secedeprovince which = SIE value = 323 }#Альфёльд#
		command = { type = secedeprovince which = SIE value = 354 }#Банат#
		command = { type = secedeprovince which = SIE value = 317 }#Русины#
		command = { type = secedeprovince which = BOH value = 315 }#Моравия#
		command = { type = trigger which = 5246 }
		command = { type = setflag which = e5130 }
	}
}

event = {
	id = 5131
	random = no
	country = HUN
	name = "Гусcиты повержены"
	desc = "раздача слонов :р"
	style = 1

	action_a ={
		name = "Берём!"
		command = { type = addcore which = 315 }
		command = { type = treasury value = 50 }
		command = { type = stability value = 1 }
	}
}

event = {
	id = 5132
	random = no
	country = HUN
	name = "Полная победа!"
	desc = "Ну ты крут... :р"
	style = 1

	action_a ={
		name = "Всё моё!!!"
		command = { type = inherit which = BOH }
		command = { type = add_countryculture which = czech }
		command = { type = addcore which = 328 }
		command = { type = addcore which = 329 }
		command = { type = stability value = 1 }
		command = { type = treasury value = 100 }
		command = { type = relation which = PAP value = 150 }
		command = { type = relation which = HAB value = -100 }
		command = { type = relation which = POL value = -100 }
		command = { type = vp value = 50 }
	}
}

