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

event = {
	id = 5244
	trigger = {
		exists = HUN
		NOT = {
			war = { country = HAB country = HUN }
			vassal = { country = HAB country = HUN }
		}
	}
	random = no
	country = HAB
	name = "Император претендует на венгерские земли"
	desc = "описание не доступно :р"
	style = 1

	date = { day = 9 month = december year = 1437 }
	offset = 0
	deathdate = { day = 10 month = december year = 1437 }

	action_a ={
		name = "Это наши законные земли!"
		command = { type = relation which = HUN value = -150 }
		command = { type = trigger which = 5129 }
	}
	action_b ={
		name = "Это слишком опасно"
		command = { type = relation which = HUN value = 100 }
		command = { type = DIP which = -2 value = 84 }
		command = { type = MIL which = -1 value = 84 }
	}
}

event = {
	id = 5112
	random = no
	country = HAB
	name = "Мы добились своего!"
	desc = "и так ясно :р"
	style = 1

	action_a ={
		name = "Ура!"
		command = { type = addcore which = 326 }#Пресбург#
		command = { type = addcore which = 352 }#Бургенланд#
		command = { type = addcore which = 353 }#Пешт#
		command = { type = addcore which = 325 }#Венгрия#
		command = { type = addcore which = 316 }#Карпаты#
		command = { type = stability value = 2 }
		command = { type = DIP which = 3 value = 84 }
	}
}

event = {
	id = 5245
	random = no
	country = HAB
	name = "Венгрия стала нашим вассалом"
	desc = "бывает :р"
	style = 1

	action_a ={
		name = "Это тоже неплохо"
		command = { type = alliance which = HUN }
		command = { type = vassal which = HUN }
		command = { type = DIP which = 1 value = 84 }
		command = { type = stability value = 1 }
		command = { type = treasury value = 150 }
		command = { type = sleepevent which = 5130 }
	}
	action_b ={
		name = "За кого они меня принимают?!"#Может, это уже слишком?#
		command = { type = war which = HUN }
		command = { type = stability value = -3 }
		command = { type = MIL which = 2 value = 84 }
		command = { type = DIP which = -1 value = 84 }
		command = { type = domestic which = offensive value = 1 }
		command = { type = revolt which = -1 }
	}
}

event = {
	id = 5246
	random = no
	country = HAB
	name = "Полная победа!"
	desc = "хеппи енд :р"
	style = 1

	action_a ={
		name = "УРА!"
		command = { type = addcore which = 326 }#Пресбург#
		command = { type = addcore which = 352 }#Бургенланд#
		command = { type = addcore which = 353 }#Пешт#
		command = { type = addcore which = 325 }#Венгрия#
		command = { type = addcore which = 316 }#Карпаты#
		command = { type = stability value = 3 }
		command = { type = inherit which = HUN }
	}
}

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

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

event = {
	id = 5249
	random = no
	country = HAB
	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 = POL value = -100 }
		command = { type = relation which = HUN value = -100 }
		command = { type = vp value = 50 }
	}
}

event = {
	id = 5101
	trigger = {
		exists = BOH
	}
	random = no
	country = HAB
	name = "Габсбурги претендуют на трон Богемии"
	desc = "вот такая плюшка :р"
	style = 1

	date = { day = 23 month = november year = 1457 }
	offset = 0
	
	action_a ={
		name = "Предъявить претензии"
		command = { type = stability value = -2 }
		command = { type = relation which = HUN value = -150 }#Как ни как, венгры долго сидели и на богемском троне#
		command = { type = relation which = BOH value = -200 }
		command = { type = treasury value = -100 }
		command = { type = trigger which = 5021 }
	}
	action_b= {
		name = "Не будем связываться"
		command = { type = stability value = 1 }
		command = { type = relation which = BOH value = 100 }
		command = { type = infra value = 500 }
		command = { type = sleepevent which = 5021 }
		command = { type = sleepevent which = 5022 }
	}
}

event = {
	id = 5102
	trigger = {
		event = 5022
	}
	random = no
	country = HAB
	name = "Гусситы отказали нам"
	desc = "обломчик вышел :р"
	style = 1

	action_a ={
		name = "Они ещё за это ответят"
		command = { type = relation which = BOH value = -100 }
		command = { type = stability value = -1 }
		command = { type = DIP which = -2 value = 60 }
		command = { type = casusbelli which = BOH value = 60 }
	}
}

event = {
	id = 5103
	random = no
	country = HAB
	name = "Богемия приняла наши претензии"
	desc = "Жизнь хороша... :р"
	style = 1

	action_a ={
		name = "Занять трон"
		command = { type = inherit which = BOH }
		command = { type = addcore which = 328 }
		command = { type = remove_countryculture which = czech }
		command = { type = add_countryculture which = czech }
		command = { type = revolt which = 328 }
		command = { type = revolt which = -1 }
	}
}

event = {
	id = 5104
	random = no
	country = HAB
	name = "Богемия сделала Вас выборным королём"
	desc = "Не всё так просто :р"
	style = 1

	action_a ={
		name = "ОК"
		command = { type = alliance which = BOH }
		command = { type = vassal which = BOH }
		command = { type = stability value = 1 }
		command = { type = domestic which = centralization value = -1 }
		command = { type = remove_countryculture which = czech }
		command = { type = add_countryculture which = czech }
		command = { type = casusbelli which = BOH value = 1260 }
	}
}

#################################
### Lorrain events by Dmitriy ###
#################################

event = {
	id = 28008#Ивент происходит в 1463, если в 1447 был отказ. Действия А и Б поменены местами.#
	random = no
	country = HAB #should be HEI#
	name = "EVENTNAME20086"
	desc = "EVENTHIST20086"
	style = 1

	action_a ={				#Yep#
		name = "ACTIONNAME20086B"
		command = { type = stability  value = -1 } 
		command = { type = secedeprovince which = BUR value = 334 } 
		command = { type = secedeprovince which = BUR value = 335 }
		command = { type = secedeprovince which = BUR value = 337 } 
		command = { type = secedeprovince which = BUR value = 338 } 
		command = { type = secedeprovince which = BUR value = 343 }
		command = { type = secedeprovince which = BUR value = 344 } 
		command = { type = secedeprovince which = BUR value = 345 } 
		command = { type = secedeprovince which = BUR value = 375 }  
		command = { type = secedeprovince which = BUR value = 388 }
		command = { type = secedeprovince which = BUR value = 405 } 
		command = { type = secedeprovince which = BUR value = 406 } 
		command = { type = secedeprovince which = BUR value = 407 }  
		command = { type = secedeprovince which = BUR value = 408 }
		command = { type = relation which = BUR value = 200 }
		command = { type = relation which = FRA value = -50 }
		command = { type = relation which = KOL value = -50 }
		command = { type = relation which = PFA value = -50 } 
		command = { type = relation which = HEL value = -50 }
		command = { type = relation which = LOR value = -50 }
		command = { type = relation which = OLD value = -50 } 
		command = { type = relation which = MUN value = -50 }
		command = { type = relation which = KLE value = -50 }
		command = { type = trigger   which = 28006 }
		}
	action_b ={				#No#
		name = "ACTIONNAME20086A"
		command = { type = relation which = BUR value = -150 } 
		command = { type = relation which = FRA value = 50 }
		command = { type = trigger which = 5161 } 
		}
}



event = {
	id = 5105
	random = no
	country = HAB
	name = "Не ждали?!"
	desc = "а они уже идут к Вам :р"
	style = 1

	action_a ={
		name = "Все на защиту!"
		command = { type = land value = 200 }
		command = { type = MIL which = 1 value = 180 }
		command = { type = domestic which = offensive value = -1 }
		command = { type = fortress which = 351 value = 1 }
		command = { type = treasury value = -150 }
		command = { type = INF which = -2 value = 10000 }
	}
	action_b ={
		name = "Это не больше, чем спектакль"
		command = { type = CAV which = -2 value = 3000 }
	}
}

event = {
	id = 5106
	random = no
	country = HAB
	name = "Угроза миновала"
	desc = "Вы не смогли нанести полное поражение наглецам, однако Вам удалось защитить сердце своей империи. Бургундия уже не сможет получить желанную корону, а Вы можете спать спокойно... до следующего тура :р"
	style = 1

	action_a ={
		name = "OK"
		command = { type = stability value = 1 }
		command = { type = vp value = 25 }
	}
}

event = {
	id = 5107
	trigger = {
		event = 5161
		control = { province = 351 data = BUR }
		NOT = { event = 5107 }
		NOT = {
			core = { province = 334 data = BUR } #Munster#
			core = { province = 335 data = BUR } #Oldenburg#
			core = { province = 343 data = BUR } #Kleves#
			core = { province = 344 data = BUR } #Cologne#
			core = { province = 345 data = BUR } #Pfalz#  
			core = { province = 388 data = BUR } #Bern#
			core = { province = 405 data = BUR } #Savoy#
			core = { province = 406 data = BUR } #Provence#
		}
	}
	random = no
	country = HAB
	name = "Вы захвачены в плен!"
	desc = "Сразу надо было соглашаться :р"
	style = 1

	date = { day = 1 month = january year = 1464 }
	offset = 0
	deathdate = { day = 4 month = january year = 1477 }

	action_a ={
		name = "Отпустите меня!"
		command = { type = stability value = -3 }
		command = { type = MIL which = -4 value = 60 }
		command = { type = secedeprovince which = BUR value = 334 } 
		command = { type = secedeprovince which = BUR value = 335 }
		command = { type = secedeprovince which = BUR value = 337 } 
		command = { type = secedeprovince which = BUR value = 338 } 
		command = { type = secedeprovince which = BUR value = 343 }
		command = { type = secedeprovince which = BUR value = 344 } 
		command = { type = secedeprovince which = BUR value = 345 } 
		command = { type = secedeprovince which = BUR value = 375 }  
		command = { type = secedeprovince which = BUR value = 388 }
		command = { type = secedeprovince which = BUR value = 405 } 
		command = { type = secedeprovince which = BUR value = 406 } 
		command = { type = secedeprovince which = BUR value = 407 }  
		command = { type = secedeprovince which = BUR value = 408 }
		command = { type = relation which = FRA value = -25 }
		command = { type = relation which = KOL value = -25 }
		command = { type = relation which = PFA value = -25 } 
		command = { type = relation which = HEL value = -25 }
		command = { type = relation which = LOR value = -25 }
		command = { type = relation which = OLD value = -25 } 
		command = { type = relation which = MUN value = -25 }
		command = { type = relation which = KLE value = -25 }
		command = { type = trigger which = 5162 }
		command = { type = sleepevent which = 5163 }
		command = { type = sleepevent which = 5164 }
		command = { type = sleepevent which = 5165 }
		command = { type = sleepevent which = 5107 }
	}
}

event = {
	id = 5108
	random = no
	country = HAB
	name = "Респект!"
	desc = "Чтож, получай свои плюшки :р"
	style = 1

	action_a ={
		name = "Ура!"
		command = { type = stability value = 3 }
		command = { type = ADM which = 2 value = 60 }
		command = { type = addcore which = 387 }#Франш-Конте#
		command = { type = addcore which = 374 }#Эльзас#
		command = { type = addcore which = 377 }#Люксембург#
		command = { type = dynastic which = LOR }
		command = { type = relation which = LOR value = 100 }
	}
	action_b ={
		name = "Разве я не заслужил Лотарингию?!"
		command = { type = stability value = 1 }
		command = { type = addcore which = 387 }#Франш-Конте#
		command = { type = addcore which = 374 }#Эльзас#
		command = { type = addcore which = 377 }#Люксембург#
		command = { type = addcore which = 375 }#Лотарингия#
		command = { type = inherit which = LOR }
		command = { type = relation which = KOL value = -50 }
		command = { type = relation which = PFA value = -50 } 
		command = { type = relation which = PRO value = -50 }
		command = { type = relation which = SAV value = -50 }
		command = { type = relation which = OLD value = -50 } 
		command = { type = relation which = MUN value = -50 }
		command = { type = relation which = KLE value = -50 } 
		command = { type = relation which = BUR value = -100 }
	}
} 

###############################
### Swiss events by Dmitriy ###
###############################

event = {
	id = 5109
	trigger = {
		NOT = {
			exists = HEL
		}
		owned = { province = 388 data = -1 }
		owned = { province = 1612 data = -1 }
		NOT = {
			core = { province = 388 data = HAB }
		}
	} 
	random = no
	country = HAB
	name = "Подчинение Швейцарии"
	desc = "Это прям праздник какой-то :р"
	style = 1

	date = { day = 1 month = april year = 1419 }
	offset = 29
	deathdate = { day = 30 month = april year = 1497 }

	action_a ={
		name = "Я-я, зер гут!"
		command = { type = addcore which = 388 }
		command = { type = addcore which = 1612 }
		command = { type = remove_countryculture which = swiss }
		command = { type = add_countryculture which = swiss }
		command = { type = treasury value = 200 }
		command = { type = stability value = 1 }
		command = { type = sleepevent which = 20303 }
	}
}

event = { 
	id = 20304 #triggered by 20303# 
	random = no 
	country = HAB 
	name = "EVENTNAME20304" 
	desc = "EVENTHIST20304" 
	style = 1 
	action_a = { 
		name = "ACTIONNAME20304A" 
		command = { type = vassal which = HEL }
		command = { type = remove_countryculture which = swiss }
		command = { type = add_countryculture which = swiss } 
		command = { type = DIP which = 2 value = 36 } 
		command = { type = vp value = 5 }
	} 
}

event = { 
	id = 20305 #triggered by 20303# 
	random = no 
	country = HAB 
	name = "EVENTNAME20305" 
	desc = "EVENTHIST20305" 
	style = 1 
	action_a = { #War# 
		name = "Они узнают нашу силу!" 
		command = { type = casusbelli which = HEL value = 510 }
		command = { type = war which = HEL }
		command = { type = stability value = -1 }
	} 
	action_b = { #Peace# 
		name = "Расправимся по-позже" 
 		command = { type = casusbelli which = HEL value = 510 }
	} 
	action_c ={ #Independent HEL# 
		name = "Пусть будут независимыми" 
		command = { type = relation which = HEL value = 100 } 
		command = { type = revoltrisk which = 24 value = 1 } 
		command = { type = domestic which = centralization value = -1 }
		command = { type = sleepevent which = 5110 } 
	} 
}

event = {
	id = 5110
	trigger = {
		event = 20305
		control = { province = 388 data = HAB }
		control = { province = 1612 data = HAB }
		NOT = { event = 5110 }
		NOT = {
			core = { province = 388 data = HAB }
			core = { province = 1612 data = HAB }
		}
	}
	random = no
	country = HEL
	name = "Полное поражение"
	desc = "Остаётся надеяться на милость победителей..."
	style = 1

 	date = { day = 1 month = may year = 1497 } 
	offset = 0 
	deathdate = { day = 1 month = december year = 1514 }

	action_a ={
		name = "Сдаюсь, сдаюсь!"
		command = { type = stability value = -2 }
		command = { type = treasury value = -100 }
		command = { type = vp value = -50 }
		command = { type = trigger which = 5111 }
		command = { type = sleepevent which = 5110 }
	}
}

event = {
	id = 5111
	random = no
	country = HAB
	name = "Подчинение Швейцарии"
	desc = "Что, отобрал леденец у ребёнка и радуешься? :р"
	style = 1

	action_a ={
		name = "Всё моё, моё!!!"
		command = { type = inherit which = HEL }#Интересно, из-за войны вылетать не будет?#
		command = { type = addcore which = 388 }
		command = { type = addcore which = 1612 }
		command = { type = remove_countryculture which = swiss }
		command = { type = add_countryculture which = swiss }
		command = { type = revolt which = 388 }
		command = { type = revolt which = 1612 }
		command = { type = treasury value = 100 }
	}
}



# ids free from 5116 to 5119 #
