#-----------------------------------------------------------------------------------------------

event = {
	id = 129041
	trigger = {
		event = 394002 #LGD: United Silesia
	}
	random = no
	country = BOH
	name = "United Silesia" 
	desc = "With the Emperor defeated by the Hussites, Princes of Oppeln who controlled large part of Silesia, managed to unite Silesia under their rule. Hussite nationalists accepted the fact and renounced all claims"
	
	date = { day = 1 month = january year = 1466 }
	offset = 360
	deathdate = { day = 29 month = december year= 1481 }

	action_a = {
		name = "Renounce our claims" 
		command = { type = stability value = -2 }
		command = { type = removecore which = 314 } 
		command = { type = removecore which = 1998 } 
		command = { type = removecore which = 1940 } 
		command = { type = removecore which = 1943 } 
		command = { type = secedeprovince which = LGD value = 1940 }
		command = { type = domestic which = centralization value = 1 }
		command = { type = domestic which = innovative value = 1 }
	}
}

event = {
	id = 129042 
	trigger = { 
		OR = {	event = 380003
			event = 380004 }
	}
	random = no
	country = BOH 
	name = "Oels remains faithful to your cause"
	desc = "Prince of Oels remains firmly on your side m'lord."

	date = { day = 1 month = january year = 1467 }
	offset = 30
	deathdate = { day = 1 month = january year = 1469 }

	action_a = {
		name = "Good !"
		command = { type = vassal which = AUV }
		command = { type = alliance which = AUV }
	}
}

event = {
	id = 129043 
	trigger = { 
		OR = {	event = 382003
			event = 382004 }
	}
	random = no
	country = BOH 
	name = "Liegnitz remains faithful to your cause"
	desc = "Prince of Liegnitz remains firmly on your side m'lord."

	date = { day = 1 month = january year = 1467 }
	offset = 30
	deathdate = { day = 1 month = january year = 1469 }

	action_a = {
		name = "Good !"
		command = { type = vassal which = LOU }
		command = { type = alliance which = LOU }
	}
}

event = {
	id = 129044 
	trigger = { 
		OR = {	event = 394007
			event = 394008 }
	}
	random = no
	country = BOH
	name = "Oppeln remains faithful to your cause"
	desc = "Prince of Oppeln remains firmly on your side m'lord."

	date = { day = 1 month = january year = 1467 }
	offset = 30
	deathdate = { day = 1 month = january year = 1469 }

	action_a = {
		name = "Good !"
		command = { type = vassal which = LGD }
		command = { type = alliance which = LGD }
	}
}

event = {
	id = 129045 
	trigger = {  	NOT = {
			OR = {	event = 129042 
				exists = AUV 
				event = 129043 
				exists = LOU 
				event = 129044 
				exists = LGD }
		}
	}
	random = no
	country = BOH
	name = "Silesian principalities"
	desc = "Silesian minor principalities has refused to pledge allegiance to our majesty milord."

	date = { day = 1 month = january year = 1470 }
	offset = 30
	deathdate = { day = 1 month = january year = 1480 }

	action_a = {
		name = "Silesia is rightfully ours!"
		command = { type = addcore which = 314 } 
		command = { type = addcore which = 1998 } 
		command = { type = addcore which = 1943 } 
	}
}

#-----------------------------------------------------------------------------------------------

event = {
	id = 132102 #triggered by 380001 AUV:Silesian principalities
	random = no
	country = BRA 
	name = "Oels becomes our vassal"
	desc = "Prince of Oels has chosen you as liege m'lord."

	action_a = {
		name = "Great news!"
		command = { type = vassal which = AUV }
		command = { type = alliance which = AUV }
	}
}

event = {
	id = 132103 #triggered by 382001 LOU:Silesian principalities
	random = no
	country = BRA 
	name = "Liegnitz becomes our vassal"
	desc = "Prince of Liegnitz has chosen you as liege m'lord."

	action_a = {
		name = "Superb!"
		command = { type = vassal which = LOU }
		command = { type = alliance which = LOU }
	}
}

event = {
	id = 132104 #triggered by 394005 LGD:Silesian principalities
	random = no
	country = BRA 
	name = "Oppeln becomes our vassal"
	desc = "Prince of Oppeln has chosen you as liege m'lord."

	action_a = {
		name = "Excellent!"
		command = { type = vassal which = LGD }
		command = { type = alliance which = LGD }
	}
}

event = {
	id = 132105 
	trigger = { event = 380003 }
	random = no
	country = BRA 
	name = "Oels accpets your rule"
	desc = "Prince of Oels have chosen your side m'lord."

	date = { day = 1 month = january year = 1467 }
	offset = 30
	deathdate = { day = 1 month = january year = 1469 }

	action_a = {
		name = "Good !"
		command = { type = vassal which = AUV }
		command = { type = alliance which = AUV }
	}
}

event = {
	id = 132106 
	trigger = { event = 382003 }
	random = no
	country = BRA 
	name = "Liegnitz accpets your rule"
	desc = "Prince of Liegnitz have chosen your side m'lord."

	date = { day = 1 month = january year = 1467 }
	offset = 30
	deathdate = { day = 1 month = january year = 1469 }

	action_a = {
		name = "Good !"
		command = { type = vassal which = LOU }
		command = { type = alliance which = LOU }
	}
}

event = {
	id = 132107 
	trigger = { event = 394007 }
	random = no
	country = BRA
	name = "Oppeln accpets your rule"
	desc = "Prince of Oppeln have chosen your side m'lord."

	date = { day = 1 month = january year = 1467 }
	offset = 30
	deathdate = { day = 1 month = january year = 1469 }

	action_a = {
		name = "Good !"
		command = { type = vassal which = LGD }
		command = { type = alliance which = LGD }
	}
}

#Brandenburg loses claims to Bohemian throne 
#by szmik
event = {
	id = 200234
	trigger = {
		exists = BOH
		OR = { 
			NOT = { owned = { province = 314 data = -1 } } 
			NOT = { owned = { province = 1998 data = -1 } } 
			NOT = { owned = { province = 1940 data = -1 } } 
		}
		OR = {
			NOT = { vassal = { country = BRA country = LOU } }
			NOT = { owned = { province = 314 data = -1 } } 
		}
		OR = {
			NOT = { vassal = { country = BRA country = AUV } }
			NOT = { owned = { province = 1998 data = -1 } } 
		}
		OR = {
			NOT = { vassal = { country = BRA country = LGD } }
			NOT = { owned = { province = 1943 data = -1 } } 
		}
		event = 132013 #BRA: The Bohemian throne
		NOT = { event = 129015 } #BOH: Friedrich of Brandenburg proclaimed King by the Catholics
	}
	random = no
	country = BRA
	name = "Brandenburg loses claims to Bohemian throne" 
	desc = "Even though Friedrich of Brandenburg had strong support from papacy, he haven't succeeded in getting Bohemian throne. He didn't get enough support in lands of Bohemia and he wasn't able to achieve military domination over Jiriz LGDiebrad."
	
	date = { day = 22 month = march	year = 1471 }
	offset = 45
	deathdate = { day = 29 month = december year = 1473 }

	action_a = {
		name = "ACTIONNAME3108A" #No one seem to acknowledge our claims
		command = { type = stability value = 1 }
		command = { type = relation which = PAP value = -50 }
		command = { type = relation which = HAB value = 100 }
		command = { type = relation which = HUN value = 100 }
		command = { type = relation which = BOH value = 100 }
		command = { type = removecore which = 328 } 
		command = { type = removecore which = 329 } 
		command = { type = removecore which = 330 } 
		command = { type = removecore which = 1987 } 
		command = { type = removecore which = 315 } 
		command = { type = removecore which = 314 } 
		command = { type = removecore which = 1998 } 
		command = { type = removecore which = 1940 } 
		command = { type = removecore which = 1943 } 
		command = { type = independence which = BOH }
		command = { type = secedeprovince which = BOH value = 329 } 
		command = { type = secedeprovince which = BOH value = 330 } 
		command = { type = secedeprovince which = BOH value = 315 }
		command = { type = secedeprovince which = BOH value = 314 }
		command = { type = secedeprovince which = BOH value = 1987 }
		command = { type = secedeprovince which = BOH value = 1998 }
		command = { type = secedeprovince which = BOH value = 1940 }
		command = { type = secedeprovince which = BOH value = 1943 }
	}
	action_b = {
		name = "ACTIONNAME3108B" #We will never drop our claims on what is ours
		command = { type = stability value = -2 }
		command = { type = treasury value = -100 } #for continuing wars
		command = { type = casusbelli which = BOH value = 24 }
		command = { type = relation which = PAP value = 50 }
		command = { type = relation which = HAB value = -100 }
		command = { type = relation which = HUN value = -100 }
		command = { type = relation which = BOH value = -100 }
		command = { type = relation which = POL value = -100 }
		command = { type = badboy value = 5 } #for continuing wars
	}
}

#Silesian events 

event = {	
id = 258046 #triggered by 380001 AUV:Silesian principalities	
random = no	
country = POL 
name = "Oels becomes our vassal"	
desc = "Prince of Oels has chosen you as liege m'lord."
action_a = {		
name = "Good !"		
command = { type = vassal which = AUV }		
command = { type = alliance which = AUV } 
} 

}

event = {	
id = 258047 #triggered by 382001 LOU:Silesian principalities
random = no	
country = POL 
name = "Liegnitz becomes our vassal"
desc = "Prince of Liegnitz has chosen you as liege m'lord."	
action_a = {		
name = "Good !"		
command = { type = vassal which = LOU }		
command = { type = alliance which = LOU }	
}
}

event = {	
id = 258048 #triggered by 394005 LGD:Silesian principalities	
random = no	
country = POL 
name = "Oppeln becomes our vassal"	
desc = "Prince of Oppeln has chosen you as liege m'lord."	
action_a = {		
name = "Good !"	
command = { type = vassal which = LGD }
command = { type = alliance which = LGD }	
}
}

event = {
	id = 401024
	random = no
	country = SIL
	name = "Oppeln supports Hussites" 
	desc = "In 1428 the Hussites started attacking Silesia, Bolko who during his studies in Prague had met Hus, decided to welcome Hussites with open arms. He refused catholic faith and became their loyal ally in Silesia. Bolko also decided to secularize the land areas under his control, which had greatly influenced his decision about unholy alliance."

	action_a = {
		name = "Great news!" 
		command = { type = alliance which = LGD }
		command = { type = relation which = LGD value = 100 }
	}
}

event = {
	id = 401025
	trigger = {
		OR = { 
			event = 380001
			event = 382001
			event = 394005 
		} 
	}
	random = no
	country = SIL
	name = "Silesian principalities oppose Hussites" 
	desc = "With the defeat of Bohemian Romanists Sigismund's rule over Silesian princes becomes mostly virtual, now princes have their future in their hands. Hussites however don't want to look at it patiently."
	date = { day = 1 month = january year = 1428 }
	offset = 30
	deathdate = { day = 29 month = december year= 1438 }

	action_a = {
		name = "How dare they!" 
		command = { type = addcore which = 314 } 
		command = { type = addcore which = 1998 } 
		command = { type = addcore which = 1943 } 
	}
}


event = {
	id = 398015
	trigger = {
		event = 380000
		event = 382000
		event = 394000
	}
	random = no
	country = ROM
	name = "Silesian Princes" 
	desc = "When the Hussite Wars brake out, Silesian princes sweared allegiance to Zikmund Lucemburskэ and have fought along with emperor forces"
	
	date = { day = 17 month = august year = 1419 }
	offset = 10
	deathdate = { day = 29 month = december year = 1421 }

	action_a = {
		name = "Great" 
		command = { type = vassal which = LOU }
		command = { type = vassal which = AUV }
		command = { type = vassal which = LGD }
		command = { type = stability value = 1 }
	}
}

#-----------------------------------------------------------------------------------------------

event = {
	id = 188126 #triggered by 380001 AUV:Silesian principalities
	random = no
	country = HUN 
	name = "Oels remains faithful to your cause"
	desc = "Prince of Oels remains firmly on your side m'lord."

	action_a = {
		name = "Good !"
		command = { type = vassal which = AUV }
		command = { type = alliance which = AUV }
	}
}

event = {
	id = 188127 #triggered by 382001 LOU:Silesian principalities
	random = no
	country = HUN 
	name = "Liegnitz remains faithful to your cause"
	desc = "Prince of Liegnitz remains firmly on your side m'lord."

	action_a = {
		name = "Good !"
		command = { type = vassal which = LOU }
		command = { type = alliance which = LOU }
	}
}

event = {
	id = 188128 #triggered by 394005 LGD:Silesian principalities
	random = no
	country = HUN 
	name = "Oppeln remains faithful to your cause"
	desc = "Prince of Oppeln remains firmly on your side m'lord."

	action_a = {
		name = "Good !"
		command = { type = vassal which = LGD }
		command = { type = alliance which = LGD }
	}
}

event = {
	id = 188129 
	trigger = { event = 380004 }
	random = no
	country = HUN 
	name = "Oels accpets your rule"
	desc = "Prince of Oels have chosen your side m'lord."

	date = { day = 1 month = january year = 1467 }
	offset = 30
	deathdate = { day = 1 month = january year = 1469 }

	action_a = {
		name = "Good !"
		command = { type = vassal which = AUV }
		command = { type = alliance which = AUV }
	}
}

event = {
	id = 188130 
	trigger = { event = 382004 }
	random = no
	country = HUN 
	name = "Liegnitz accpets your rule"
	desc = "Prince of Liegnitz have chosen your side m'lord."

	date = { day = 1 month = january year = 1467 }
	offset = 30
	deathdate = { day = 1 month = january year = 1469 }

	action_a = {
		name = "Good !"
		command = { type = vassal which = LOU }
		command = { type = alliance which = LOU }
	}
}

event = {
	id = 188131 
	trigger = { event = 394008 }
	random = no
	country = HUN 
	name = "Oppeln accpets your rule"
	desc = "Prince of Oppeln have chosen your side m'lord."

	date = { day = 1 month = january year = 1467 }
	offset = 30
	deathdate = { day = 1 month = january year = 1469 }

	action_a = {
		name = "Good !"
		command = { type = vassal which = LGD }
		command = { type = alliance which = LGD }
	}
}


##################################################################################################

#ids Oels (AUV): 380000+
#ids Liegnitz (LOU): 382000+
#ids Oppeln (LGD): 394000+

#The Hussite Wars
event = { #triggered by 129001 B
	id = 380000
	random = no
	country = AUV
	name = "Гуситские Войны"
	desc = "EVENTHIST398000"
	#-#No desc needed.

	action_a = {
		name = "Ok"
		command = { type = breakvassal which = SIL }
		command = { type = relation which = SIL value = -400 }
		command = { type = relation which = ROM value = 100 }
		command = { type = relation which = HUN value = 200 }
		command = { type = relation which = PAP value = 100 }
		command = { type = relation which = HAB value = 150 }
		command = { type = relation which = LAT value = 100 }
		command = { type = relation which = BRA value = 100 }
		command = { type = relation which = U16 value = 100 }
		command = { type = relation which = LUX value = 100 }
		command = { type = relation which = BAY value = 100 }
		command = { type = stability value = 2 }
	}
}

event = {
	id = 380001
	random = no
	country = AUV
	trigger = {
		NOT = { exists = ROM }
		OR = {
			NOT = { exists = BOH }
			event = 129053
			event = 129052
			event = 129051		
		}
	}
	date = { day = 1 month = january year = 1428 }
	offset = 10
	deathdate = { day = 29 month = december year = 1480 }
	name = "Княжества Силезии"
	desc = "С поражением Богемских Романистов правление Сигизмунда над Силезскими принцами становится главным образом виртуальным, теперь у принцев есть свое будущее в их руках."

	action_a = {
		name = "Залог уважения венгерскому Королю"
		command = { type = treasury value = 50 }
		command = { type = relation which = HUN value = 50 }
		command = { type = relation which = POL value = -50 }
		command = { type = relation which = BRA value = -50 }
		command = { type = trigger which = 188126 } 
	}
	action_b = {
		name = "Признайте польского Короля как правителя Силезии"
		command = { type = stability value = -2 }
		command = { type = relation which = POL value = 100 }
		command = { type = relation which = HUN value = -100 }
		command = { type = relation which = HAB value = -100 }
		command = { type = relation which = BRA value = -50 }
		command = { type = trigger which = 258046 } 
	}
	action_c = {
		name = "Поклянитесь в преданности Бранденбургскому избирателю"
		command = { type = stability value = -2 }
		command = { type = relation which = POL value = -50 }
		command = { type = relation which = HUN value = -100 }
		command = { type = relation which = HAB value = -100 }
		command = { type = relation which = BRA value = 100 }
		command = { type = trigger which = 132102 } 
	}
	action_d = {
		name = "Останьтесь независимыми"
		command = { type = stability value = -2 }
		command = { type = relation which = POL value = -50 }
		command = { type = relation which = HUN value = -50 }
		command = { type = relation which = HAB value = -50 }
		command = { type = relation which = BRA value = -50 }
	}
}

event = {
	id = 380002
	trigger = {
		event = 129002 #The fate of the Bohemian Hussites
		countrysize = 2

		OR = {
			owned = { province = 314 data = -1 }
			owned = { province = 1998 data = -1 }
			owned = { province = 1940 data = -1 }
			owned = { province = 1943 data = -1 }
		}
	}
	random = no
	country = AUV
	name = "Объединенная Силезия?" 
	desc = "Принцы Олесницы, которые управляют существенными частями Силезии теперь, получают шанс объединить Силезию под их правлением. Это становится возможным благодаря политической суматохе после гуситский войн."

	date = { day = 1 month = january year = 1439 } #Death of Albrecht
	offset = 360
	deathdate = { day = 29 month = december year= 1453 } #Ladislav Pohrobek comes to power

	action_a = {
		name = "Силезия должна быть нашей!" 
		command = { type = addcore which = 314 } 
		command = { type = addcore which = 1998 } 
		command = { type = addcore which = 1940 } 
		command = { type = addcore which = 1943 } 
		command = { type = breakvassal which = BOH }
		command = { type = breakvassal which = HUN }
		command = { type = breakvassal which = HAB } #just in case
		command = { type = relation which = HUN value = -100 }

		command = { type = relation which = HAB value = -100 }
		command = { type = relation which = BOH value = -100 }
		command = { type = relation which = POL value = 100 } #chance to take over Silesia
		command = { type = relation which = BRA value = 50 } 
	}
	action_b = {
		name = "Останьтесь преданным вассалом"
		command = { type = stability value = 1 }
		command = { type = relation which = HUN value = 50 }
		command = { type = relation which = HAB value = 50 }
		command = { type = relation which = BOH value = 100 }
	}
}

event = {
	id = 380003
	random = no
	country = AUV
	name = "Богемский трон"
	desc = "Йиржи Подебрад, Король Богемии, был чашником, членом умеренного крыла еретического движение гуситов. Несмотря на то, что обещал возвратиться к католической церкви и подавить ересь в Богемии Папе римскому перед его выборами, он открыто одобрил гуситов и не думал отказываться от своих еретических заблуждений. Папа римский Пий II, настроенный бороться с гуситом, осудил отношение еретика Подебрада все более устно и поощрил восстание католического дворянства в 1465. Чтобы поддержать мятежников и свергнуть Подебрада, преемник Пия Пол II отлучил от церкви Богемского Короля 23-ьего декабря 1466, освободил все его субъекты от их присяг преданности и искал надежного католического принца, который отгонит его и возьмет Богемский трон. Первым, которому предложат Богемскую корону, был Фридрих II из Бранденбурга. Несмотря на то, что был вовлеченным в конфликт за преемственность в Померании-Штеттине в то время, избиратель согласился. Мы должны теперь выбрать свой новый Льеж."

	action_a = {
		name = "Фридрих II Бранденбургский"
		command = { type = breakvassal which = BOH }
		command = { type = breakvassal which = HUN }
		command = { type = breakvassal which = POL }
		command = { type = relation which = BRA value = 100 }
		command = { type = relation which = HUN value = -50 }
		command = { type = relation which = POL value = -50 }

		command = { type = relation which = BOH value = -50 }
		command = { type = sleepevent which = 129042 }
	}
	action_b = {
		name = "Йиржи Подебрад"
		command = { type = breakvassal which = BRA }
		command = { type = breakvassal which = HUN }
		command = { type = breakvassal which = POL }
		command = { type = relation which = POL value = -50 }
		command = { type = relation which = HUN value = -50 }
		command = { type = relation which = BOH value = 100 }
		command = { type = relation which = BRA value = -50 }
		command = { type = sleepevent which = 132105 }
	}
	action_c = {
		name = "Оставаться нейтральным"
		command = { type = stability value = -1 }
		command = { type = relation which = BRA value = -50 }
		command = { type = relation which = HUN value = 50 }
		command = { type = relation which = POL value = 50 }
		command = { type = relation which = BOH value = -50 }
		command = { type = sleepevent which = 132105 }
		command = { type = sleepevent which = 129042 }
	}
}

event = {
	id = 380004
	random = no
	country = AUV
	name = "Богемский трон"
	desc = "Йиржи Подебрад, Король Богемии, был чашником, членом умеренного крыла еретического движение гуситов. Несмотря на то, что обещал возвратиться к католической церкви и подавить ересь в Богемии Папе римскому перед его выборами, он открыто одобрил гуситов и не думал отказываться от своих еретических заблуждений. Папа римский Пий II, настроенный бороться с гуситом, осудил отношение еретика Подебрада все более устно и поощрил восстание католического дворянства в 1465. Чтобы поддержать мятежников и свергнуть Подебрада, преемник Пия Пол II отлучил от церкви Богемского Короля 23-ьего декабря 1466, освободил все его субъекты от их присяг преданности и искал надежного католического принца, который отгонит его и возьмет Богемский трон. Первым, которому предложат Богемскую корону, был Фридрих II из Бранденбурга. Несмотря на то, что был вовлеченным в конфликт за преемственность в Померании-Штеттине в то время, избиратель согласился. Мы должны теперь выбрать свой новый Льеж."

	action_a = {
		name = "Матвей Корвин"
		command = { type = breakvassal which = BOH }
		command = { type = breakvassal which = BRA }
		command = { type = breakvassal which = POL }
		command = { type = relation which = HUN value = 100 }
		command = { type = relation which = BRA value = -50 }
		command = { type = relation which = POL value = -50 }
		command = { type = relation which = BOH value = -50 }
		command = { type = sleepevent which = 129042 }
	}
	action_b = {
		name = "Йиржи Подебрад"
		command = { type = breakvassal which = BRA }
		command = { type = breakvassal which = HUN }
		command = { type = breakvassal which = POL }
		command = { type = relation which = POL value = -50 }
		command = { type = relation which = HUN value = -50 }
		command = { type = relation which = BOH value = 100 }
		command = { type = relation which = BRA value = -50 }
		command = { type = sleepevent which = 188129 }
	}
	action_c = {
		name = "Оставаться нейтральным"
		command = { type = stability value = -1 }
		command = { type = relation which = BRA value = -50 }
		command = { type = relation which = HUN value = 50 }
		command = { type = relation which = POL value = 50 }
		command = { type = relation which = BOH value = -50 }
		command = { type = sleepevent which = 188129 }
		command = { type = sleepevent which = 129042 }
	}
}

#The Hussite Wars
event = { #triggered by 129001 B
	id = 382000
	random = no
	country = LOU
	name = "Гуситские Войны"
	desc = "EVENTHIST398000"
	#-#No desc needed.

	action_a = {
		name = "Ok"
		command = { type = breakvassal which = SIL }
		command = { type = relation which = SIL value = -400 }
		command = { type = relation which = ROM value = 100 }
		command = { type = relation which = HUN value = 200 }
		command = { type = relation which = PAP value = 100 }
		command = { type = relation which = HAB value = 150 }
		command = { type = relation which = LAT value = 100 }
		command = { type = relation which = BRA value = 100 }
		command = { type = relation which = U16 value = 100 }
		command = { type = relation which = LUX value = 100 }
		command = { type = relation which = BAY value = 100 }
		command = { type = stability value = 2 }
	}
}

event = {
	id = 382001
	random = no
	country = LOU
	trigger = {
		NOT = { exists = ROM }
		OR = {
			NOT = { exists = BOH }
			event = 129053
			event = 129052
			event = 129051		
		}
	}
	date = { day = 1 month = january year = 1428 }
	offset = 10
	deathdate = { day = 29 month = december year = 1480 }

	name = "Княжества Силезии"
	desc = "С поражением Богемских Романистов правление Сигизмунда над Силезскими принцами становится главным образом виртуальным, теперь у принцев есть свое будущее в их руках."

	action_a = {
	name = "Залог уважения венгерскому Королю"
	command = { type = treasury value = 50 }
	command = { type = relation which = HUN value = 50 }
	command = { type = relation which = POL value = -50 }
	command = { type = relation which = BRA value = -50 }

	command = { type = trigger which = 188127 } 
	}
	action_b = {
	name = "Признайте польского Короля как правителя Силезии"
	command = { type = stability value = -2 }
	command = { type = relation which = POL value = 100 }
	command = { type = relation which = HUN value = -100 }
	command = { type = relation which = HAB value = -100 }
	command = { type = relation which = BRA value = -50 }
	command = { type = trigger which = 258047 } 
	}
	action_c = {
	name = "Поклянитесь в преданности Бранденбургскому избирателю"
	command = { type = stability value = -2 }
	command = { type = relation which = POL value = -50 }
	command = { type = relation which = HUN value = -100 }
	command = { type = relation which = HAB value = -100 }
	command = { type = relation which = BRA value = 100 }
	command = { type = trigger which = 132103 } 
	}
	action_d = {
	name = "Останьтесь независимыми"
	command = { type = stability value = -2 }
	command = { type = relation which = POL value = -50 }
	command = { type = relation which = HUN value = -50 }
	command = { type = relation which = HAB value = -50 }
	command = { type = relation which = BRA value = -50 }
	}
}

event = {
	id = 382002
	trigger = {
		event = 129002 #The fate of the Bohemian Hussites
		countrysize = 2
		OR = {
			owned = { province = 314 data = -1 }
			owned = { province = 1998 data = -1 }
			owned = { province = 1940 data = -1 }
			owned = { province = 1943 data = -1 }
		}
	}
	random = no
	country = LOU
	name = "Объединенная Силезия?"
desc = "Принцы Лигница, которые управляют существенными частями Силезии теперь, получают шанс объединить Силезию под их правлением. Это становится возможным благодаря политической суматохе после гуситский войн."


	date = { day = 1 month = january year = 1439 } #Death of Albrecht
	offset = 360
	deathdate = { day = 29 month = december year= 1453 } #Ladislav Pohrobek comes to power

	action_a = {
		name = "Силезия должна быть нашей!" 
		command = { type = addcore which = 314 } 
		command = { type = addcore which = 1998 } 
		command = { type = addcore which = 1940 } 
		command = { type = addcore which = 1943 } 
		command = { type = breakvassal which = BOH }
		command = { type = breakvassal which = HUN }
		command = { type = breakvassal which = HAB } #just in case
		command = { type = relation which = HUN value = -100 }
		command = { type = relation which = HAB value = -100 }
		command = { type = relation which = BOH value = -100 }
		command = { type = relation which = POL value = 100 } #chance to take over Silesia
		command = { type = relation which = BRA value = 50 } 
	}
	action_b = {
		name = "Останьтесь преданным вассалом"
		command = { type = stability value = 1 }
		command = { type = relation which = HUN value = 50 }
		command = { type = relation which = HAB value = 50 }
		command = { type = relation which = BOH value = 100 }

	}
}

event = {
	id = 382003
	random = no
	country = LOU
	name = "Богемский трон"
	desc = "Йиржи Подебрад, Король Богемии, был чашником, членом умеренного крыла еретического движение гуситов. Несмотря на то, что обещал возвратиться к католической церкви и подавить ересь в Богемии Папе римскому перед его выборами, он открыто одобрил гуситов и не думал отказываться от своих еретических заблуждений. Папа римский Пий II, настроенный бороться с гуситом, осудил отношение еретика Подебрада все более устно и поощрил восстание католического дворянства в 1465. Чтобы поддержать мятежников и свергнуть Подебрада, преемник Пия Пол II отлучил от церкви Богемского Короля 23-ьего декабря 1466, освободил все его субъекты от их присяг преданности и искал надежного католического принца, который отгонит его и возьмет Богемский трон. Первым, которому предложат Богемскую корону, был Фридрих II из Бранденбурга. Несмотря на то, что был вовлеченным в конфликт за преемственность в Померании-Штеттине в то время, избиратель согласился. Мы должны теперь выбрать свой новый Льеж."

	action_a = {
		name = "Фридрих II Бранденбургский"
		command = { type = breakvassal which = BOH }
		command = { type = breakvassal which = HUN }
		command = { type = breakvassal which = POL }
		command = { type = relation which = BRA value = 100 }
		command = { type = relation which = HUN value = -50 }
		command = { type = relation which = POL value = -50 }

		command = { type = relation which = BOH value = -50 }
		command = { type = sleepevent which = 129043 }
	}
	action_b = {
		name = "Йиржи Подебрад"
		command = { type = breakvassal which = BRA }
		command = { type = breakvassal which = HUN }
		command = { type = breakvassal which = POL }
		command = { type = relation which = POL value = -50 }
		command = { type = relation which = HUN value = -50 }
		command = { type = relation which = BOH value = 100 }
		command = { type = relation which = BRA value = -50 }
		command = { type = sleepevent which = 132106 }
	}
	action_c = {
		name = "Оставаться нейтральным"
		command = { type = stability value = -1 }
		command = { type = relation which = BRA value = -50 }
		command = { type = relation which = HUN value = 50 }
		command = { type = relation which = POL value = 50 }
		command = { type = relation which = BOH value = -50 }
		command = { type = sleepevent which = 132106 }
		command = { type = sleepevent which = 129043 }
	}
}

event = {
	id = 382004
	random = no
	country = LOU
	name = "Богемский трон"
	desc = "Йиржи Подебрад, Король Богемии, был чашником, членом умеренного крыла еретического движение гуситов. Несмотря на то, что обещал возвратиться к католической церкви и подавить ересь в Богемии Папе римскому перед его выборами, он открыто одобрил гуситов и не думал отказываться от своих еретических заблуждений. Папа римский Пий II, настроенный бороться с гуситом, осудил отношение еретика Подебрада все более устно и поощрил восстание католического дворянства в 1465. Чтобы поддержать мятежников и свергнуть Подебрада, преемник Пия Пол II отлучил от церкви Богемского Короля 23-ьего декабря 1466, освободил все его субъекты от их присяг преданности и искал надежного католического принца, который отгонит его и возьмет Богемский трон. После отказа Фридриха II Бранденбургского защитить кампанию, Пий поворачивается к, Матвею Корвину из Венгрии. Предав его прежнего союзника Подебрада, Матвей согласился и вторгся в Моравию. Мы должны теперь выбрать свой новый Льеж."

	action_a = {
		name = "Матвей Корвин"
		command = { type = breakvassal which = BOH }
		command = { type = breakvassal which = BRA }
		command = { type = breakvassal which = POL }
		command = { type = relation which = HUN value = 100 }
		command = { type = relation which = BRA value = -50 }
		command = { type = relation which = POL value = -50 }
		command = { type = relation which = BOH value = -50 }
		command = { type = sleepevent which = 129043 }
	}
	action_b = {
		name = "Йиржи Подебрад"
		command = { type = breakvassal which = BRA }
		command = { type = breakvassal which = HUN }
		command = { type = breakvassal which = POL }
		command = { type = relation which = POL value = -50 }
		command = { type = relation which = HUN value = -50 }
		command = { type = relation which = BOH value = 100 }
		command = { type = relation which = BRA value = -50 }
		command = { type = sleepevent which = 188130 }
	}
	action_c = {
		name = "Оставаться нейтральным"
		command = { type = stability value = -1 }

		command = { type = relation which = BRA value = 50 }
		command = { type = relation which = HUN value = -50 }
		command = { type = relation which = POL value = 50 }
		command = { type = relation which = BOH value = -50 }
		command = { type = sleepevent which = 188130 }
		command = { type = sleepevent which = 129043 }
	}
}

#The Hussite Wars
event = { #triggered by 129001 B
	id = 394000
	random = no
	country = LGD
	name = "Гуситские Войны"
	desc = "EVENTHIST398000"
	#-#No desc needed.

	action_a = {
		name = "Ok"
		command = { type = breakvassal which = SIL }
		command = { type = relation which = SIL value = -400 }
		command = { type = relation which = ROM value = 100 }
		command = { type = relation which = HUN value = 200 }
		command = { type = relation which = PAP value = 100 }
		command = { type = relation which = HAB value = 150 }
		command = { type = relation which = LAT value = 100 }
		command = { type = relation which = BRA value = 100 }
		command = { type = relation which = U16 value = 100 }
		command = { type = relation which = LUX value = 100 }
		command = { type = relation which = BAY value = 100 }
		command = { type = stability value = 2 }
	}
}

#Oppeln allies to Hussites
event = { #triggered by SIL: 401008 Prokop's offensive
	id = 394001
	random = no
	country = LGD
	name = "Силезские союзники гуситов" 

	desc = "В 1428 гуситы начали нападать на Силезию, Болко, который во время его занятий в Праге встречал Гуса, решил приветствовать гуситов с открытым руками. Он отказался от католической веры и стал их лояльным союзником в Силезии. Болко также решил секуляризовать земли d его управлении, что очень повлияло на его решение безбожного союза."

	action_a = {
		name = "Рискнуть" 
		command = { type = breakvassal which = ROM }
		command = { type = casusbelli which = ROM value = 24 }
		command = { type = casusbelli which = AUV value = 24 }
		command = { type = casusbelli which = LOU value = 24 }
		command = { type = provincemanpower which = 1943 value = 1 } 
  command = { type = provincetax  which = 1943 value = 1 }  
		command = { type = domestic which = aristocracy value = -1 }
		command = { type = domestic which = centralization value = 1 }
		command = { type = domestic which = quality value = 1 }
		command = { type = domestic which = serfdom value = -1 }
		command = { type = relation which = SIL value = 200 }
		command = { type = relation which = HAB value = -100 }
		command = { type = relation which = ROM value = -100 }
		command = { type = relation which = HUN value = -100 }
		command = { type = relation which = PAP value = -100 }
		command = { type = relation which = AUV value = -100 }
		command = { type = relation which = LOU value = -100 }
		command = { type = CAV which = -2 value = 5000 } 
		command = { type = wakeleader which = 0108301 } #Bolko V Husyta
		command = { type = trigger which = 401024 } 
		command = { type = sleepevent which = 394005 } 
	}

	action_b = {
		name = "Остаться лояльным к Императору" 

		command = { type = domestic which = aristocracy value = 1 }
		command = { type = domestic which = centralization value = -1 }
		command = { type = domestic which = innovative value = -1 }
		command = { type = relation which = HAB value = 100 }
		command = { type = relation which = ROM value = 100 }
		command = { type = relation which = HUN value = 100 }
		command = { type = sleepevent which = 394002 }
	}
}

event = {
	id = 394002
	trigger = {

		OR = {
			event = 129052 #Utraquist republic
			event = 129051 #Taborite republic
		}
		OR = {
			owned = { province = 314 data = -1 } 
			owned = { province = 1998 data = -1 } 
		}
	}
	random = no
	country = LGD
	name = "Объединенная Силезия" 
	desc = "С Императором, побежденным гуситами, принцы Ополе, которые управляют большой частью Силезии, теперь имеют шанс объединить Силезию под их правлением. Гуситские националисты принимают факт и откажутся от всех требований"

	date = { day = 1 month = january year = 1460 }
	offset = 360
	deathdate = { day = 29 month = december year= 1480 }

	action_a = {
		name = "Силезия должна быть нашей!" 
		command = { type = addcore which = 314 } 
		command = { type = addcore which = 1943 } 
		command = { type = addcore which = 1998 } 
		command = { type = addcore which = 1940 } 
		command = { type = domestic which = centralization value = -2 }
		command = { type = vp value = 50 }
	}
}

event = {
	id = 394003
	trigger = {
		atwar = no
		OR = {

			owned = { province = 314 data = POL }
			owned = { province = 314 data = LGD }
		}
	}
	random = no
	province = 314
	name = "Польское Господство в Силезии" 
	desc = "Средневековая Силезия была составлена из многих маленьких княжеств. Большинство из них стало вассалами при Яне Люксембургском в 1329, но некоторые части оставались под контролем Польши. Ягеллоны не интересовались этой областью как Пясты, таким образом Польша медленно теряла свои права. Немцы осваивали западную Силезию начиная с первой части 13-ого столетия, и в конечном счете западная и центральная Силезия стала немецкой, включая остатки династии Пястов. Верхняя Силезия оставалась главным образом польской, обеспечивая хороший пример того, что, возможно, случилось, имел целую область, выздоровившей."

	date = { day = 1 month = january year = 1460 }
	offset = 1080
	deathdate = { day = 1 month = january year = 1560 }

	action_a = {
		name = "Польское население является доминирующим"
		command = { type = provinceculture which = 314 value = polish } 

	}
	action_b = {
		name = "Попытайтесь поддержать баланс" 
		command = { type = relation which = BOH value = 50 }
		command = { type = relation which = BRA value = 50 }
		command = { type = treasury value = 50 }
	}
}

### 394004 - free
	
event = {
	id = 394005
	random = no
	country = LGD
	trigger = {
		NOT = { exists = ROM }
		OR = {
			NOT = { exists = BOH }
			event = 129053
			event = 129052
			event = 129051		
		}
	}
	date = { day = 1 month = january year = 1428 }
	offset = 10
	deathdate = { day = 29 month = december year = 1480 }

	name = "Княжества Силезии"
	desc = "С поражением Богемских Романистов правление Сигизмунда над Силезскими принцами становится главным образом виртуальным, теперь у принцев есть свое будущее в их руках."

	action_a = {
	name = "Признайте польского Короля как правителя Силезии"
	command = { type = stability value = -2 }
	command = { type = relation which = POL value = 100 }
	command = { type = relation which = HUN value = -100 }
	command = { type = relation which = HAB value = -100 }
	command = { type = relation which = BRA value = -50 }
	command = { type = trigger which = 258048 } 
	}
	action_b = {
	name = "Залог уважения венгерскому Королю"
	command = { type = treasury value = 50 }
	command = { type = relation which = HUN value = 50 }
	command = { type = relation which = POL value = -50 }
	command = { type = relation which = BRA value = -50 }
	command = { type = trigger which = 188128 } 
	}
	action_c = {
	name = "Останьтесь независимыми"
	command = { type = stability value = -2 }
	command = { type = relation which = POL value = -50 }
	command = { type = relation which = HUN value = -50 }
	command = { type = relation which = HAB value = -50 }
	command = { type = relation which = BRA value = -50 }
	}
	action_d = {
	name = "Поклянитесь в преданности Бранденбургскому избирателю"
	command = { type = stability value = -2 }
	command = { type = relation which = POL value = -50 }
	command = { type = relation which = HUN value = -100 }
	command = { type = relation which = HAB value = -100 }
	command = { type = relation which = BRA value = 100 }

	command = { type = trigger which = 132104 } 
	}
}

event = {
	id = 394007
	random = no
	country = LGD
	name = "Богемский трон"
	desc = "Йиржи Подебрад, Король Богемии, был чашником, членом умеренного крыла еретического движение гуситов. Несмотря на то, что обещал возвратиться к католической церкви и подавить ересь в Богемии Папе римскому перед его выборами, он открыто одобрил гуситов и не думал отказываться от своих еретических заблуждений. Папа римский Пий II, настроенный бороться с гуситом, осудил отношение еретика Подебрада все более устно и поощрил восстание католического дворянства в 1465. Чтобы поддержать мятежников и свергнуть Подебрада, преемник Пия Пол II отлучил от церкви Богемского Короля 23-ьего декабря 1466, освободил все его субъекты от их присяг преданности и искал надежного католического принца, который отгонит его и возьмет Богемский трон. Первым, которому предложат Богемскую корону, был Фридрих II из Бранденбурга. Несмотря на то, что был вовлеченным в конфликт за преемственность в Померании-Штеттине в то время, избиратель согласился. Мы должны теперь выбрать свой новый Льеж."

	action_a = {
		name = "Фридрих II Бранденбургский"
		command = { type = breakvassal which = BOH }
		command = { type = breakvassal which = HUN }
		command = { type = breakvassal which = POL }
		command = { type = relation which = BRA value = 100 }
		command = { type = relation which = HUN value = -50 }
		command = { type = relation which = POL value = -50 }
		command = { type = relation which = BOH value = -50 }
		command = { type = sleepevent which = 129044 }
	}
	action_b = {
		name = "Йиржи Подебрад"
		command = { type = breakvassal which = BRA }
		command = { type = breakvassal which = HUN }
		command = { type = breakvassal which = POL }
		command = { type = relation which = POL value = -50 }
		command = { type = relation which = HUN value = -50 }
		command = { type = relation which = BOH value = 100 }
		command = { type = relation which = BRA value = -50 }
		command = { type = sleepevent which = 132107 }
	}
	action_c = {
		name = "Оставаться нейтральным"
		command = { type = stability value = -1 }
		command = { type = relation which = BRA value = -50 }
		command = { type = relation which = HUN value = 50 }
		command = { type = relation which = POL value = 50 }
		command = { type = relation which = BOH value = -50 }
		command = { type = sleepevent which = 132107 }
		command = { type = sleepevent which = 129044 }
	}
}

event = {
	id = 394008
	random = no
	country = LGD
	name = "Богемский трон"
	desc = "Йиржи Подебрад, Король Богемии, был чашником, членом умеренного крыла еретического движение гуситов. Несмотря на то, что обещал возвратиться к католической церкви и подавить ересь в Богемии Папе римскому перед его выборами, он открыто одобрил гуситов и не думал отказываться от своих еретических заблуждений. Папа римский Пий II, настроенный бороться с гуситом, осудил отношение еретика Подебрада все более устно и поощрил восстание католического дворянства в 1465. Чтобы поддержать мятежников и свергнуть Подебрада, преемник Пия Пол II отлучил от церкви Богемского Короля 23-ьего декабря 1466, освободил все его субъекты от их присяг преданности и искал надежного католического принца, который отгонит его и возьмет Богемский трон. После отказа Фридриха II Бранденбургского защитить кампанию, Пий поворачивается к, Матвею Корвину из Венгрии. Предав его прежнего союзника Подебрада, Матвей согласился и вторгся в Моравию. Мы должны теперь выбрать свой новый Льеж."


	action_a = {
		name = "Матвей Корвин"
		command = { type = breakvassal which = BOH }
		command = { type = breakvassal which = BRA }
		command = { type = breakvassal which = POL }
		command = { type = relation which = HUN value = 100 }
		command = { type = relation which = BRA value = -50 }
		command = { type = relation which = POL value = -50 }
		command = { type = relation which = BOH value = -50 }
		command = { type = sleepevent which = 129044 }
	}
	action_b = {
		name = "Йиржи Подебрад"
		command = { type = breakvassal which = BRA }
		command = { type = breakvassal which = HUN }
		command = { type = breakvassal which = POL }
		command = { type = relation which = POL value = -50 }
		command = { type = relation which = HUN value = -50 }
		command = { type = relation which = BOH value = 100 }
		command = { type = relation which = BRA value = -50 }
		command = { type = sleepevent which = 188131 }
	}
	action_c = {
		name = "Оставаться нейтральным"
		command = { type = stability value = -1 }
		command = { type = relation which = BRA value = 50 }
		command = { type = relation which = HUN value = -50 }
		command = { type = relation which = POL value = 50 }
		command = { type = relation which = BOH value = -50 }
		command = { type = sleepevent which = 188131 }
		command = { type = sleepevent which = 129044 }
	}
}

################################################################################################
#
# События по которым Австрия присоединяет Силезию после наследования Богемии
#
################################################################################################


event = {
	id = 200225
	random = no
	country = AUV
	name = "Богемия присоединяется к Австрии"
	desc = "Сейм Богемии принял решение об избрании Габсбурга на трон королевства. Должны ли мы поддержать его решение и перейти под руку Австрии, что будет означать конец нашей автономии? Или же мы решимся неподчинится о объявим о своей независимости"

	action_a = {
		name = "Габсбург - наш король (конец игры)" 
		command = { type = trigger which = 200228 }
	}
	action_b = {
		name = "Да здравствует свобода!"
		command = { type = breakvassal which = BOH }
		command = { type = breakvassal which = HAB }
		command = { type = relation which = HAB value = -200 }
		command = { type = relation which = BOH value = -200 }
	}
}


event = {
	id = 200226
	random = no
	country = LGD
	name = "Богемия присоединяется к Австрии"
	desc = "Сейм Богемии принял решение об избрании Габсбурга на трон королевства. Должны ли мы поддержать его решение и перейти под руку Австрии, что будет означать конец нашей автономии? Или же мы решимся неподчинится о объявим о своей независимости"

	action_a = {
		name = "Габсбург - наш король (конец игры)" 
		command = { type = trigger which = 200229 }
	}
	action_b = {
		name = "Да здравствует свобода!"
		command = { type = breakvassal which = BOH }
		command = { type = breakvassal which = HAB }
		command = { type = relation which = HAB value = -200 }
		command = { type = relation which = BOH value = -200 }
	}
}


event = {
	id = 200227
	random = no
	country = LOU
	name = "Богемия присоединяется к Австрии"
	desc = "Сейм Богемии принял решение об избрании Габсбурга на трон королевства. Должны ли мы поддержать его решение и перейти под руку Австрии, что будет означать конец нашей автономии? Или же мы решимся неподчинится о объявим о своей независимости"

	action_a = {
		name = "Габсбург - наш король (конец игры)" 
		command = { type = trigger which = 200230 }
	}
	action_b = {
		name = "Да здравствует свобода!"
		command = { type = breakvassal which = BOH }
		command = { type = breakvassal which = HAB }
		command = { type = relation which = HAB value = -200 }
		command = { type = relation which = BOH value = -200 }
	}
}

event = {
	id = 200228
	random = no
	country = HAB
	name = "Олесница присоединяется к Австрии"
	desc = "Княжество Олесница - часть силезии приняло решение войти в состав нашего гос-ва, после того, как сейм Богемии выбрал нашего короля правителем Богемии."

	action_a = {
		name = "Силезия наша!" 
		command = { type = inherit which = AUV }
                command = { type = treasury value = -50 }
	}
}

event = {
	id = 200229
	random = no
	country = HAB
	name = "Ополе присоединяется к Австрии"
	desc = "Княжество Ополе - часть силезии приняло решение войти в состав нашего гос-ва, после того, как сейм Богемии выбрал нашего короля правителем Богемии."

	action_a = {
		name = "Силезия наша!" 
		command = { type = inherit which = LGD }
                command = { type = treasury value = -50 }
	}
}

event = {
	id = 200230
	random = no
	country = HAB
	name = "Силезия наша!" 
	desc = "Княжество Лигниц - часть силезии приняло решение войти в состав нашего гос-ва, после того, как сейм Богемии выбрал нашего короля правителем Богемии."

	action_a = {
		name = "Габсбург - наш король (конец игры)" 
		command = { type = inherit which = LOU }
                command = { type = treasury value = -50 }
	}
}