#Austria (HAB)

#See AGCEEP_Alt_Germany.txt for KoG Alternative events
#See AGCEEP_Alt_Italy.txt for KoI Alternative events

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

#(1419-1422) Reimprecht von Walsee
event = {
	id = 179042
	random = no
	country = HAB
	name = "EVENTNAME179042" #Reimprecht von Walsee
	desc = "EVENTHIST179042"
	#-#Reimprecht von Walsee was the first counsel and Hofmeister of Albrecht V. In 1411, he managed to get the 14-year-old Duke Albrecht declared off-age, thereby removing him and Austria from the clutches of his Habsburg cousins, who were keen on obtaining tutelage over him and regency of Austria. After that, he was of immense help to Albrecht in ending the anarchy and lawlessness in Austria – which hadn't had much of a central authority between 1404 (the premature death of Albrecht IV) and 1411 (when Albrecht and the Austrian estates took over) and was therefore plagued by feuds and robbery - during the first years of his reign.

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

	action_a = {
		name = "ACTIONNAME179042A" #An excellent minister
		command = { type = DIP which = 2 value = 36 }
		command = { type = ADM which = 2 value = 36 }
	}
}

#(1419-1511) Recuperation of old claims
event = {
	id = 179029
	trigger = {
		OR = {
			owned = { province = 388 data = HAB } #Bern
			owned = { province = 1612 data = HAB } #Schwyz
		}
	}
	random = no
	country = HAB
	name = "EVENTNAME179029" #Recovery of Habsburg possessions
	desc = "EVENTHIST179029"
	#-#The Habsburg possessions located in today's Switzerland were historically lost to the Swiss in 1415 (Aargau with the castle that gave them their name), 1452 the County of Kyburg had to be finally sold to Zürich, Thurgau was lost in 1460 during Sigismund of Tyrols excommunication, the city of Winterthur 1467, and were too small and poor to precipitate serious problems or to face the always increasing power of the Swiss confederation. The Habsburgs were much more concerned about their chances to expand their rule in Austria, become emperor or King of Bohemia and Hungary. But if there had been a chance to assert their claim, it is very probable that it would have been used.

	date = { day = 1 month = january year = 1419 }
	offset = 10
	deathdate = { day = 7 month = february year = 1511 }

	action_a = {
		name = "ACTIONNAME179029A" #We concentrate on Austria
		command = { type = independence which = HEL }
		command = { type = cedeprovince which = HEL value = 1612 } #Schwyz
		command = { type = cedeprovince which = HEL value = 388} #Bern
		command = { type = relation which = HEL value = 50 }
		command = { type = relation which = FRA value = 10 }
		command = { type = relation which = BUR value = 10 }
		command = { type = relation which = PAP value = 10 }
		command = { type = badboy value = -4 }
	}
	action_b = {
		name = "ACTIONNAME179029B" #Reclaim our ancestral lands
		command = { type = addcore which = 1612 } #Schwyz
		command = { type = addcore which = 388 } #Bern
		command = { type = relation which = HEL value = -100 }
		command = { type = relation which = FRA value = -50 }
		command = { type = relation which = PAP value = -50 }
		command = { type = relation which = BUR value = -10 }
		command = { type = sleepevent which = 179072 } #HAB: Swiss asking for independence
	}
}

#(1419-1513) Extermination of the Old Swiss Confederation - Ahistorical
event = {
	id = 179063
	trigger = {
		core = { province = 388 data = -1 } #should be only Burgundy-Lotharingia and Austria
		emperor = yes #only a powerful Austria should be able
		countrysize = 6 #to get away with this
		owned = { province = 388 data = HAB } #Bern
		owned = { province = 1612 data = HAB } #Schwyz
		control = { province = 388 data = HAB } #Bern
		control = { province = 1612 data = HAB } #Schwyz
		NOT = { exists = HEL }
		NOT = { exists = TYR } #Tyrol has the claims on Switzerland - only when Tyrol is gone can HAB/Austria mess around there
		NOT = { event = 20307 } #must be before Swiss get more non-german cantons
	}
	random = no
	country = HAB
	name = "EVENTNAME179063" #The fate of the Old Swiss Confederation
	desc = "EVENTHIST179063"
	#-#For years the house of Habsburg and the rebellious peasants that dared to form the Swiss Confederation in defiance of our overlordship over their lands, have been struggling against each other. Now we are in a position to dictate what should happen in the lands that are again and forever ours.

	date = { day = 1 month = january year = 1419 }
	offset = 10
	deathdate = { day = 1 month = january year = 1513 } #must be before Switzerland gains more non-german cantons

	action_a = {
		name = "ACTIONNAME179063A" #Gracefully allow them to keep their identity
		command = { type = independence which = HEL }
		command = { type = cedeprovince which = HEL value = 1612 } #Schwyz
		command = { type = cedeprovince which = HEL value = 388} #Bern
		command = { type = relation which = HEL value = 100 }
		command = { type = relation which = FRA value = 10 }
		command = { type = relation which = BUR value = 10 }
		command = { type = relation which = PAP value = 10 }
		command = { type = badboy value = -4 }
		command = { type = stability value = 1 }
	}
	action_b = {
		name = "ACTIONNAME179063B" #Replace the administration with germans
		command = { type = provinceculture which = 388 value = german } #Bern
		command = { type = provinceculture which = 1612 value = german } #Schwyz
		command = { type = relation which = FRA value = -50 }
		command = { type = relation which = PAP value = -50 }
		command = { type = relation which = BUR value = -50 }
		command = { type = revolt which = 388 } #Bern
		command = { type = revolt which = 1612 } #Schwyz
	}
}

#(1419-1820) Ostmarch and Habsburgs Hereditary Lands
event = {
	id = 179141
	trigger = {
		owned = { province = 327 data = -1 } #Ostmarch
	}
	random = no
	country = HAB
	name = "EVENTNAME129048" #Ostmarch and Habsburgs Hereditary Lands
	desc = "EVENTHIST129048"
	#-#In 976, the march ruled by the Babenberg family was described as regione vulgari vocabulo Ostarrîchi, that is, the region called 'Ostarrîchi' (the Eastern Realm) in the vernacular. The term Ostarrîchi is linguistic ancestor of the German name for Austria, Österreich. Under Ernest the Brave (1055–1075), the colonisation of the Waldviertel was begun and the Bohemian and Hungarian marches were united to Austria.

	date = { day = 1 month = january year = 1419 }
	offset = 10
	deathdate = { year = 1820 }

	action_a = {
		name = "ACTIONNAME129048A" #Ostmarch belongs to Austria
		command = { type = provincemanpower which = 327 value = -1 } #Ostmarch
		command = { type = provinceculture which = 327 value = german } #Ostmarch
		command = { type = trigger which = 398020 } #ROM: Ostmarch and Habsburgs Hereditary Lands
		command = { type = trigger which = 129049 } #BOH: Ostmarch and Habsburgs Hereditary Lands
	}
}

#(1419) The Hussite Wars
event = {
	id = 179600 #triggered by HUS_401000 / ROM_398000
	random = no
	country = HAB
	name = "EVENTNAME188600" #The Hussite Wars
	desc = "EVENTHIST188600"
	#-#The Czech priest and professor Jan Hus developed radical reformatory demands on the base of the teachings of John Wyclif. Despite a guarantee of safe-conduct by Emperor Sigismund, he was executed at the stake for heresy at the Council of Constance in 1415. This could however not stop the Hussite movement in Bohemia. Hus' followers were rapidly growing, and when King Vaclav IV of Bohemia died and his brother Sigismund, already Emperor and King of Hungary was to succeed him, they, unwilling to forgive him the betrayal of Hus and afraid that he would suppress them, refused to acknowledge him and gained control of most of Bohemia proper - while the lands of the Bohemian crown and the catholic part of Bohemia accepted Sigismund. Due to its radical anti-clerical and anti-feudal tendencies Hussitism posed a big threat to the church and nobility in the countries adjacent to Bohemia. Several German and European princes therefore decided to oppose the Hussites and to support Sigismund in his struggle with them that lasted for almost two decades. Should we decide to fight these heretics, we should be aware that this would be internationally regarded as an intervention in favour of Sigismund as rightful King of Bohemia rather than a war of conquest, and that therefore, if Sigismund prevails and manages to restore royal authority, we would be expected to turn over any conquests in Bohemia to the Kingdom of Bohemia.

	action_a = {
		name = "ACTIONNAME258600B" #Express hostility
		command = { type = relation which = HUS value = -200 }
		command = { type = casusbelli which = HUS value = 120 }
	}
}
#(1419-1432) Implication in Hussite Wars
event = {
	id = 179077
	trigger = {
		war = { country = HAB country = HUS }
	}
	random = no
	country = HAB
	name = "EVENTNAME179077" #Implication in Hussite Wars
	desc = "EVENTHIST179077"
	#-#Having expressed hostility against Hussites, Austria is now directly implicated in Hussite Wars...

	date = { day = 17 month = august year = 1419 }
	offset = 10
	deathdate = { day = 29 month = june year = 1432 }

	action_a = {
		name = "OH_WELL"
		command = { type = setflag which = [HussiteWars] }
		command = { }
	}
}
#(1419-1499) Catholicism restored in Bohemia
event = {
	id = 179601
	trigger = {
		OR = {
			religion = reformed
			religion = protestant
			religion = hussite
		}
		NOT = { exists = HUS }
		NOT = {
			AND = {
				exists = BOH
				OR = {
					event = 129051 #BOH: Taborite republic
					event = 129052 #BOH: Utraquist republic
					event = 129053 #BOH: Podiebrad dynasty
				}
			}
		}
	}
	random = no
	country = HAB
	name = "EVENTNAME179601" #The Hussite heresy is suppressed
	desc = "EVENTHIST179601"
	#-#The Kingdom of Bohemia has finally been won back for catholicism. As a consequence, the German princes who have been forced by the Hussites to adapt their misguided faith can now safely return to the Roman church. By a general indulgence the Pope will make sure they will be forgiven having turned to the heresy under compulsion.

	date = { day = 17 month = august year = 1419 }
	offset = 10
	deathdate = { day = 29 month = december year = 1499 }

	action_a = {
		name = "ACTIONNAME179601A" #Restore Catholicism
		command = { type = religion which = catholic }
		command = { type = stability value = 3 }
	}
}

#(1420-1431) Gesera of Vienna
event = {
	id = 179043
	random = no
	country = HAB
	name = "EVENTNAME179043" #The Gesera of Vienna
	desc = "EVENTHIST179043"
	#-#Under the pretext that they were secretly cooperating with the heretic Hussites and Vaudois and using old religious prejudices against Jews, Duke Albrecht V of Austria ordered a large wave of persecution of Jews in Austria. Besides religious fanaticism, an important reason for Albrecht to do this was that he hoped to gain money for his campaign against the Bohemian Hussites. On May 23rd 1420, all Jews living in the Ducal cities of Austria were captured and their estate confiscated. The children were forcefully baptized. Among the adult Jews, the poor were banished from the country, while the rich were kept hostage and tortured in order find out were they hid the massive treasures that they were accused of having. In order to avoid torture, loss of their property, forced conversion and the continuous humiliation, most of the Jews from Vienna committed suicide in their synagogue. Only about 300 Jews remained in Vienna, and even these were not tolerated. Using the standard fake reproach against Jews, the desecration of housels, Albrecht condemned 210 Jews to be burned at the stake on March 21st 1421. Within only a year, a large, prosperous Jewish community that had been the backbone of Austria's economy and a major creditor of the Habsburgs throughout the 14th century had been almost completely exterminated.

	date = { day = 23 month = may year = 1420 }
	offset = 360
	deathdate = { day = 0 month = january year = 1431 }

	action_a = {
		name = "ACTIONNAME179043A" #Persecute them harshly
		command = { type = stability value = 1 }
		command = { type = domestic which = innovative value = -1 }
		command = { type = provincetax which = 350 value = -1 } #Salzburg
		command = { type = provincetax which = 351 value = -1 } #Austria
		command = { type = population which = 350 value = -500 } #Salzburg
		command = { type = population which = 351 value = -800 } #Austria
		command = { type = loansize which = 100 }
		command = { type = inflation value = -2 }
		command = { type = treasury value = 50 }
		command = { type = relation which = PAP value = 20 } #Forced baptism of Jews pleases the church
		command = { type = relation which = KOL value = 20 }
		command = { type = relation which = MAI value = 20 }
		command = { type = relation which = BRE value = 20 }
		command = { type = relation which = STR value = 20 }
	}
	action_b = {
		name = "ACTIONNAME179043B" #Leave them alone
		command = { type = stability value = -1 }
	}
	action_c = {
		name = "ACTIONNAME179043C" #Grant them extended privileges instead
		command = { type = stability value = -2 }
		command = { type = domestic which = innovative value = 1 }
		command = { type = loansize which = 300 }
		command = { type = relation which = PAP value = -20 }
		command = { type = relation which = KOL value = -20 }
		command = { type = relation which = MAI value = -20 }
		command = { type = relation which = BRE value = -20 }
		command = { type = relation which = STR value = -20 }
	}
}

#(1422) Marriage with Elizabeth of Luxemburg
event = {
	id = 179044
	random = no
	country = HAB
	name = "EVENTNAME179044" #Marriage with Elisabeth of Luxemburg
	desc = "EVENTHIST179044"
	#-#Elisabeth of Luxemburg, born in 1409, was the only child of Sigmund, Holy Roman Emperor and King of Germany, Bohemia and Hungary. Her father chose as her husband, who would be the person to inherit his realms, Duke Albrecht V of Austria already in 1411, and betrothed her to him. Their marriage was celebrated when Elisabeth was 13, on April 19th 1422 in Vienna. Thereby, Albrecht became Sigismund's heir in Bohemia and Hungary.

	date = { day = 19 month = april year = 1422 }
	offset = 360
	deathdate = { day = 0 month = january year = 1437 }

	action_a = {
		name = "ACTIONNAME179044A" #Until death do us part
		command = { type = dynastic which = HUN }
		command = { type = dynastic which = ROM }
		command = { type = relation which = HUN value = 100 }
		command = { type = relation which = ROM value = 100 }
	}
}

#-----------------------------------------------------------------------------------------------
#Bavaria-Straubing, Conflict with Bavaria
#(1425) Bavaria-Straubing is granted to Habsburg
event = {
	id = 179019 #triggered by HUN_188001 A
	random = no
	country = HAB
	name = "EVENTNAME179019" #Bavaria-Straubing is granted to Habsburg
	desc = "EVENTHIST188001"
	#-#In 1425 Duke Johann II the Merciless of Bavaria-Straubing (in Lower Bavaria) died and the Wittelsbach subbranch was extinct. Surprisingly, emperor Sigismund initially did not grant Straubing's possessions to one of the other Wittelsbach branches, but to Habsburg. This decision was opposed by the Wittelsbachs and revised in 1429 when Sigismund decided to divide it among the bavarian Wittelsbach branches, with Bavaria-Munich getting the majority.

	action_a = {
		name = "ACTIONNAME179019A" #Accept Straubing and fight for it
		command = { type = relation which = BAY value = -100 }
		command = { type = addcore which = 348 } #Ansbach
		command = { type = trigger which = 125001 } #BAY: Bavaria-Straubing is granted to Habsburg
	}
	action_b = {
		name = "ACTIONNAME179019B" #Reject Straubing and let the Wittelsbachs have it
		command = { type = relation which = BAY value = 100 }
		command = { type = relation which = HUN value = -50 }
		command = { type = cedeprovince which = BAY value = 348 } #Ansbach
		command = { type = trigger which = 125000 } #BAY: Inheritance of Bavaria-Straubing
		command = { type = sleepevent which = 188002 } #HUN: Sigismund reverses his decision regarding Bayern-Straubing
		command = { type = sleepevent which = 3207 } #HAB: Austrian claims on Straubing
	} #the Habsburgs based their claim on bavarian territories on the emperor's decision of 1425
}
#(1429) Sigismund reverses his decision regarding Bayern-Straubing
event = {
	id = 179020 #triggered by HUN_188002 A
	random = no
	country = HAB
	name = "EVENTNAME179020" #Sigismund reverses his decision regarding Bayern-Straubing
	desc = "EVENTHIST179020"
	#-#Facing strong opposition against his controversial decision to let the possessions of Bayern-Straubing pass to Habsburg, Emperor Sigismund reverted his judgement in 1429 and divided Straubing among the remaining bavarian Wittelsbachs.

	action_a = {
		name = "ACTIONNAME179020A" #Accept the emperor's wise decision
		command = { type = cedeprovince which = BAY value = 348 } #Ansbach
		command = { type = removecore which = 348 } #Ansbach
		command = { type = relation which = BAY value = 50 }
		command = { type = relation which = HUN value = -50 }
	}
	action_b = {
		name = "ACTIONNAME179020B" #Fight for Straubing
		command = { type = cedeprovince which = BAY value = 348 } #Ansbach
		command = { type = relation which = BAY value = -50 }
		command = { type = relation which = HUN value = -50 }
	}
}
#-----------------------------------------------------------------------------------------------

#(1432) Consequence of Hussite Wars
event = {
	id = 179013
	trigger = {
		OR = {
			flag = [HussiteWars]
			AND = {
				event = 179077 #HAB: Implication in Hussite Wars
				OR = {
					event = 261002 #SEI: Styria becomes Austria
					event = 322013 #TYR: Tyrol becomes Austria
				}
				OR = { #Original Austrian provinces if Styria or Tyrol became Austria
					owned = { province = 350 data = -1 } #Salzburg
					owned = { province = 351 data = -1 } #Austria
				}
			}
		}
	}
	random = no
	country = HAB
	name = "EVENTNAME179013" #Consequence of Hussite Wars
	desc = "EVENTHIST179013"
	#-#After the execution of Jan Hus on July 6, 1415 in Constance a revolutionary movement formed in Bohemia, partly inspired by social concerns and nationalist ideas and directed against King Sigismund. As his son-in-law, Duke Albrecht V of Austria, had participated in military campaigns in Bohemia and Moravia starting in 1420. Hussite troops invaded Austria between 1425-1431 and devastated the provinces north of the River Danube. As a consequence of the Hussite wars the Austrian national defence system was reorganised on the basis of districts.

	date = { day = 1 month = january year = 1432 }
	offset = 360
	deathdate = { day = 1 month = january year = 1433 }

	action_a = {
		name = "ACTIONNAME179013A" #Reorganize the national defence system
		command = { type = domestic which = OFFENSIVE value = -1 }
		command = { type = fortress which = -1 value = 1 } #anywhere but certainly not in Ostmarch
		command = { type = treasury value = -50 }
	}
	action_b = {
		name = "ACTIONNAME179013B" #There is no need for change
		command = { type = stability value = 1 }
	}
}

#-----------------------------------------------------------------------------------------------
#Inheritance of Bohemia Sequence

#(1437) Death of Emperor Sigmund
event = {
	id = 179045
	random = no
	country = HAB
	name = "EVENTNAME179045" #Death of Emperor Sigmund
	desc = "EVENTHIST179045"
	#-#Emperor Sigmund, father in law of Duke Albrecht V of Austria, died on December 9th 1437. Sigmund had always wanted Albrecht to succeed him in the Empire and the Kingdoms of Bohemia and Hungary. Although in neither of the three realms this choice was universally recognized as legally binding and there were demands for a free election of the successor, he managed to succeed to all three crowns. This was the first union of Austria, Bohemia and Hungary and the beginning of Habsburg ambitions to dominate Southeast Europe. Albrecht's rule in the Empire however remained merely nominal – in fact he was never even crowned – and in Bohemia was opposed by a faction of Hussites supporting Casimir of Poland, which resulted in a prolonged civil war and his authority in Bohemia becoming completely ineffective.

	date = { day = 8 month = december year = 1437 }

	action_a = {
		ai_chance = 50
		name = "OK"
		trigger = { isvassal = no }
		command = { type = relation which = BAY value = 50 }
		command = { type = relation which = BRA value = 50 }
		command = { type = relation which = BRE value = 50 }
		command = { type = relation which = HAN value = 50 }
		command = { type = relation which = HES value = 50 }
		command = { type = relation which = KLE value = 50 }
		command = { type = relation which = KOL value = 50 }
		command = { type = relation which = LOR value = 50 }
		command = { type = relation which = MAI value = 50 }
		command = { type = relation which = MEC value = 50 }
		command = { type = relation which = BRG value = 50 }
		command = { type = relation which = OLD value = 50 }
		command = { type = relation which = PFA value = 50 }
		command = { type = relation which = POM value = 50 }
		command = { type = relation which = SAC value = 50 }
		command = { type = relation which = STR value = 50 }
		command = { type = relation which = STT value = 50 }
		command = { type = relation which = MEI value = 50 }
		command = { type = relation which = SEI value = 50 }
		command = { type = relation which = PRU value = 50 }
		command = { type = relation which = SHL value = 50 }
		command = { type = relation which = TYR value = 50 }
		command = { type = relation which = WUR value = 50 }
		command = { type = relation which = BOH value = 50 }
		command = { type = relation which = HUN value = 50 }
		command = { type = relation which = ROM value = 50 }
		command = { type = addcore_national which = 327 } #Ostmarch
	}
	action_b = {
		ai_chance = 50
		name = "OK"
		trigger = { isvassal = yes }
		command = { type = breakvassal which = -1 }
		command = { type = stability value = 2 }
		command = { type = relation which = BAY value = 100 }
		command = { type = relation which = BRA value = 100 }
		command = { type = relation which = BRE value = 100 }
		command = { type = relation which = HAN value = 100 }
		command = { type = relation which = HES value = 100 }
		command = { type = relation which = KLE value = 100 }
		command = { type = relation which = KOL value = 100 }
		command = { type = relation which = LOR value = 100 }
		command = { type = relation which = MAI value = 100 }
		command = { type = relation which = MEC value = 100 }
		command = { type = relation which = BRG value = 100 }
		command = { type = relation which = OLD value = 100 }
		command = { type = relation which = PFA value = 100 }
		command = { type = relation which = POM value = 100 }
		command = { type = relation which = SAC value = 100 }
		command = { type = relation which = STR value = 100 }
		command = { type = relation which = STT value = 100 }
		command = { type = relation which = MEI value = 100 }
		command = { type = relation which = SEI value = 100 }
		command = { type = relation which = PRU value = 100 }
		command = { type = relation which = SHL value = 100 }
		command = { type = relation which = TYR value = 100 }
		command = { type = relation which = WUR value = 100 }
		command = { type = relation which = BOH value = 150 } #just in case BOH was liege
		command = { type = relation which = HUN value = 150 } #just in case HUN was liege
		command = { type = relation which = ROM value = 150 } #just in case ROM was liege
		command = { type = addcore_national which = 327 } #Ostmarch
	}
}

#(1437-1439) Albrecht becomes King of Bohemia
event = {
	id = 179201
	trigger = {
		OR = {
			event = 129003 #BOH: Coronation of Albrecht of Habsburg -I-
			event = 129043 #BOH: Coronation of Albrecht of Habsburg -II-
		}
		NOT = {
			vassal = { country = BOH country = HAB }
		}
	}
	random = no
	country = HAB
	name = "EVENTNAME179201" #The crown of St. Wenceslas
	desc = "EVENTHIST179201"
	#-#After the childless Luxemburg emperor's death, Albrecht of Habsburg also succeeded him in Bohemia. The crowns of the Holy Roman Empire, St Stephen and St Wenceslas had all passed from the Luxemburgs to the Habsburgs. Although Bohemia and Hungary were only held for a short time, this was the beginning of the Habsburg dynasty's rapid rise that was to reach its peak when four generations later Charles V was master of an Empire where the sun never set.

	date = { day = 9 month = december year = 1437 }
	offset = 10
	deathdate = { day = 27 month = october year = 1439 }

	action_a = {
		name = "GREAT"
		command = { type = vassal which = BOH }
		command = { type = dynastic which = BOH }
		command = { type = relation which = BOH value = 300 }
	}
}
#(1438-1439) Albrecht receives the crown of St. Stephen
event = {
	id = 179046
	trigger = {
		exists = HUN
		NOT = {
			vassal = { country = HUN country = HAB }
		}
	}
	random = no
	country = HAB
	name = "EVENTNAME179046" #Albrecht receives the crown of St. Stephen
	desc = "EVENTHIST179046"
	#-#Albrecht of Habsburg was crowned King of Hungary in Székesfehérvar on January 1st 1438.

	date = { day = 1 month = january year = 1438 }
	offset = 30
	deathdate = { day = 26 month = october year = 1439 }

	action_a = {
		name = "GOOD"
		command = { type = vassal which = HUN }
		command = { type = trigger which = 179079 } #HAB: The Hungarian inheritance of the House of Luxemburg
	}
}
#(1438-1439) Albrecht receives the crown of St. Stephen
event = {
	id = 179079 #triggered by HAB_179046
	random = no
	country = HAB
	name = "EVENTNAME179079" #The Hungarian inheritance of the House of Luxemburg
	desc = "EVENTHIST179079"
	#-#Austria and Hungary thus entered into personal union.

	action_a = {
		name = "GOOD"
		command = { type = alliance which = HUN }
		command = { type = trigger which = 188100 } #HUN: Coronation of Albrecht of Habsburg
	}
}
#(1440) Succession conflict in Hungary
event = {
	id = 179101 #triggered by HUN_188090 A - Wladyslaw III of Poland chosen
	random = no
	country = HAB
	name = "EVENTNAME179101" #Succession conflict in Hungary
	desc = "EVENTHIST188101"
	#-#In 1439 Albrecht of Habsburg, King of Hungary, fell ill, probably of cholera, while campaigning against the Ottomans. Within one month he died, leaving two minor daughters and his pregnant wife Elizabeth. For the case of the unborn child being male, Albrecht declared that his son would be his successor in all his fiefs just before his death. Based on this will, Elizabeth attempted to get the Parliament to appoint her Queen Regent for her unborn baby. Still feeling menaced by the Ottomans, a majority of the Diet consisting mostly of the middle and lower nobility however did not want to trust the country's fortune upon a woman and an unborn child and, led by the Transylvanian noble Janos Hunyadi, desired an adult King with a decent powerbase instead. It was Hunyadi who proposed the most obvious choice, Wladyslaw III, King of the other big Christian Kingdom in East Europe, Poland. Initially with the consent of Elizabeth, deputies of the Diet approached the nineteen-year-old Wladyslaw in Krakow and offered him the Hungarian crown. Meanwhile, Elizabeth gave birth to a son, the male heir Albrecht and she had hoped for, and called him Ladislaus. Since then, she was determined to secure the throne for her child and thus withdrew her approval of the offer to the Polish King. But instructed by Hunyadi and other magnates, negotiations continued. When Wladyslaw eventually accepted the proferred throne on March 8th 1440 and everything seemed ready for his coronation and the union of the two Kingdoms, Elizabeth fled Hungary to Austria with her son and the stolen Holy crown of Hungary. She had Ladislaus crowned King in Székesfehérvár on May 1st, more than two months before Wladyslaw's coronation on July 17th. The scene was set for a civil war between the supporters of Elizabeth and Ladislaus, called 'Loyalists' who were strongest in Western Hungary and Slovakia and championed by Ulrich of Cilli on the one side and the supporters of Wladyslaw, the 'Nationalists', based largely in the East and Transylvania and led by Janos Hunyadi, on the other.

	action_a = {
		name = "ACTIONNAME179101A" #Protect Ladislaus' claim on the Hungarian throne
		command = { type = casusbelli which = HUN value = 48 }
		command = { type = relation which = HUN value = -200 }
		command = { type = relation which = POL value = -150 }
		command = { type = addcore which = 316 } #Carpathia
		command = { type = addcore which = 317 } #Ruthenia
		command = { type = addcore which = 324 } #Maros
		command = { type = addcore which = 325 } #Magyar
		command = { type = addcore which = 326 } #Presburg
		command = { type = addcore which = 352 } #Odenburg
		command = { type = addcore which = 353 } #Pest
		command = { type = addcore which = 366 } #Croatia
		command = { type = setflag which = [support_Ladislaus] }
	}
	action_b = {
		name = "ACTIONNAME179101B" #Accept Wladyslaw of Poland as Hungarian King
		command = { type = relation which = POL value = 100 }
		command = { type = vp value = -25 }
	}
}
#(1440) Coronation of Ladislaus Postumus -I-
#Hungary choose Ladislaus from start, no civil war
event = {
	id = 179102 #triggered by HUN_188090 B
	trigger = {
		NOT = {
			vassal = { country = HUN country = HAB }
		}
	}
	random = no
	country = HAB
	name = "EVENTNAME179102" #Coronation of Ladislaus Postumus in Hungary
	desc = "EVENTHIST179102"
	#-#In 1439 Albrecht of Habsburg, King of Hungary, fell ill, probably of cholera, while campaigning against the Ottomans. Within one month he died, leaving two minor daughters and his pregnant wife Elizabeth. For the case of the unborn child being male, Albrecht declared that his son would be his successor in all his fiefs just before his death. Based on this will, Elizabeth attempted to get the Parliament to appoint her Queen Regent for her unborn baby. Still feeling menaced by the Ottomans, a majority of the Diet consisting mostly of the middle and lower nobility however did not want to trust the country's fortune upon a woman and an unborn child and, led by the Transylvanian noble Janos Hunyadi, desired an adult King with a decent powerbase instead. It was Hunyadi who proposed the most obvious choice, Wladyslaw III, King of the other big Christian Kingdom in East Europe, Poland. Initially with the consent of Elizabeth, deputies of the Diet approached the nineteen-year-old Wladyslaw in Krakow and offered him the Hungarian crown. Meanwhile, Elizabeth gave birth to a son, the male heir Albrecht and she had hoped for, and called him Ladislaus. Since then, she was determined to secure the throne for her child and thus withdrew her approval of the offer to the Polish King. Acknowledging Albrecht's will, the Hungarian Diet has followed her wish and terminated the negotiations with Wladyslaw. Ladislaus Postumus, as he is called since he was born after his father's death, will be crowned King of Hungary in Stuhlweißenburg. Now it's upon Habsburg to defend Europe against the Ottoman threat.

	action_a = {
		name = "ACTIONNAME179102A" #Hungary is ours
		command = { type = vassal which = HUN }
		command = { type = dynastic which = HUN }
		command = { type = alliance which = HUN }
		command = { type = relation which = HUN value = 300 }
	}
}
#(1440) Coronation of Ladislaus Postumus -II-
#Hungary choose Ladislaus from start, no civil war
event = {
	id = 179148 #triggered by HUN_188090 B
	trigger = {
		vassal = { country = HUN country = HAB }
	}
	random = no
	country = HAB
	name = "EVENTNAME179148" #Habsburg rule in Hungary
	desc = "EVENTHIST179148"
	#-#In 1439 Albrecht of Habsburg, King of Hungary, fell ill, probably of cholera, while campaigning against the Ottomans. Within one month he died, leaving two minor daughters and his pregnant wife Elizabeth. For the case of the unborn child being male, Albrecht declared that his son would be his successor in all his fiefs just before his death. Based on this will, Elizabeth attempted to get the Parliament to appoint her Queen Regent for her unborn baby. Still feeling menaced by the Ottomans, a majority of the Diet consisting mostly of the middle and lower nobility however did not want to trust the country's fortune upon a woman and an unborn child and, led by the Transylvanian noble Janos Hunyadi, desired an adult King with a decent powerbase instead. It was Hunyadi who proposed the most obvious choice, Wladyslaw III, King of the other big Christian Kingdom in East Europe, Poland. Initially with the consent of Elizabeth, deputies of the Diet approached the nineteen-year-old Wladyslaw in Krakow and offered him the Hungarian crown. Meanwhile, Elizabeth gave birth to a son, the male heir Albrecht and she had hoped for, and called him Ladislaus. Since then, she was determined to secure the throne for her child and thus withdrew her approval of the offer to the Polish King. Acknowledging Albrecht's will, the Hungarian Diet has followed her wish and terminated the negotiations with Wladyslaw. Ladislaus Postumus, as he is called since he was born after his father's death, will be crowned King of Hungary in Stuhlweißenburg...

	action_a = {
		name = "GREAT"
		command = { type = breakvassal which = HUN }
		command = { type = stability value = 3 }
		command = { type = trigger which = 179149 } #HAB: Coronation of Ladislaus Postumus in Hungary
	}
}
event = {
	id = 179149 #triggered by HAB_179148
	random = no
	country = HAB
	name = "EVENTNAME179102" #Coronation of Ladislaus Postumus in Hungary
	desc = "EVENTHIST179149"
	#-#Now it's upon Habsburg to defend Europe against the Ottoman threat.

	action_a = {
		name = "ACTIONNAME179102A" #Hungary is ours
		command = { type = vassal which = HUN }
		command = { type = dynastic which = HUN }
		command = { type = alliance which = HUN }
		command = { type = relation which = HUN value = 300 }
	}
}
#(1440-1460) Coronation of Ladislaus Postumus -III-
#Austria supported him during the war against Wladyslaw III of Poland, and the war is won.
event = {
	id = 179103
	trigger = {
		flag = [support_Ladislaus]
		OR = {
			event = 188091 #HUN: Loyalist victory (if Hungary took Loyalists side)
			event = 188092 #HUN: Loyalist victory (if Hungary took Nationalist side)
		}
		NOT = {
			vassal = { country = HUN country = HAB }
		}
	}
	random = no
	country = HAB
	name = "EVENTNAME179103" #Coronation of Ladislaus Postumus in Hungary
	desc = "EVENTHIST179103"
	#-#Most of Hungary has been captured by the Habsburgs and their Hungarian supporters. Support for King Ulászló and Janos Hunyadi is fading and Ladislaus Postumus is commonly acknowledged as rightful King. He has been crowned again in Stuhlweissenburg, this time with almost unanimous support. As soon as he will have come off age, he will rule Hungary.

	date = { day = 9 month = march year = 1440 }
	offset = 1
	deathdate = { day = 10 month = march year = 1460 }

	action_a = {
		name = "ACTIONNAME179103A" #Rule Hungary in personal union with Austria
		command = { type = vassal which = HUN }
		command = { type = dynastic which = HUN }
		command = { type = alliance which = HUN }
		command = { type = relation which = HUN value = 300 }
		command = { type = vp value = 100 }
		command = { type = cedeprovince which = HUN value = 316 } #Carpathia
		command = { type = cedeprovince which = HUN value = 317 } #Ruthenia
		command = { type = cedeprovince which = HUN value = 323 } #Transylvania
		command = { type = cedeprovince which = HUN value = 324 } #Maros
		command = { type = cedeprovince which = HUN value = 325 } #Magyar
		command = { type = cedeprovince which = HUN value = 326 } #Presburg
		command = { type = cedeprovince which = HUN value = 352 } #Odenburg
		command = { type = cedeprovince which = HUN value = 353 } #Pest
		command = { type = cedeprovince which = HUN value = 354 } #Banat
		command = { type = cedeprovince which = HUN value = 366 } #Croatia
		command = { type = removecore which = 316 } #Carpathia
		command = { type = removecore which = 317 } #Ruthenia
		command = { type = removecore which = 324 } #Maros
		command = { type = removecore which = 325 } #Magyar
		command = { type = removecore which = 326 } #Presburg
		command = { type = removecore which = 352 } #Odenburg
		command = { type = removecore which = 353 } #Pest
		command = { type = removecore which = 366 } #Croatia
		command = { type = badboy value = -5 }
		command = { type = add_countryculture which = magyar }
		command = { type = add_countryculture which = slovak }
		command = { type = sleepevent which = 179150 } #HAB: Habsburg rule in Hungary
	}
	action_b = {
		name = "ACTIONNAME179103B" #Try to unite Austria and Hungary permanently
		command = { type = inherit which = HUN }
		command = { type = stability value = -2 }
		command = { type = badboy value = 3 }
		command = { type = revolt which = 316 } #Carpathia
		command = { type = revolt which = 325 } #Magyar
		command = { type = revolt which = 326 } #Presburg
		command = { type = revolt which = 352 } #Odenburg
		command = { type = revolt which = 353 } #Pest
		command = { type = revolt which = 317 } #Ruthenia
		command = { type = revolt which = 323 } #Transylvania
		command = { type = revolt which = 324 } #Maros
		command = { type = revolt which = 354 } #Banat
		command = { type = revolt which = 355 } #Serbia
		command = { type = add_countryculture which = magyar }
		command = { type = add_countryculture which = slovak }
		command = { type = sleepevent which = 179150 } #HAB: Habsburg rule in Hungary
	}
}
#(1440-1460) Coronation of Ladislaus Postumus -IV-
#Austria supported him during the war against Wladyslaw III of Poland, and the war is won.
event = {
	id = 179150
	trigger = {
		flag = [support_Ladislaus]
		OR = {
			event = 188091 #HUN: Loyalist victory (if Hungary took Loyalists side)
			event = 188092 #HUN: Loyalist victory (if Hungary took Nationalist side)
		}
		vassal = { country = HUN country = HAB }
	}
	random = no
	country = HAB
	name = "EVENTNAME179148" #Habsburg rule in Hungary
	desc = "EVENTHIST179103"
	#-#Most of Hungary has been captured by the Habsburgs and their Hungarian supporters. Support for King Ulászló and Janos Hunyadi is fading and Ladislaus Postumus is commonly acknowledged as rightful King. He has been crowned again in Stuhlweissenburg, this time with almost unanimous support. As soon as he will have come off age, he will rule Hungary.

	date = { day = 9 month = march year = 1440 }
	offset = 1
	deathdate = { day = 10 month = march year = 1460 }

	action_a = {
		name = "ACTIONNAME179103A" #Rule Hungary in personal union with Austria
		command = { type = breakvassal which = HUN }
		command = { type = stability value = 3 }
		command = { type = vp value = 100 }
		command = { type = cedeprovince which = HUN value = 316 } #Carpathia
		command = { type = cedeprovince which = HUN value = 317 } #Ruthenia
		command = { type = cedeprovince which = HUN value = 323 } #Transylvania
		command = { type = cedeprovince which = HUN value = 324 } #Maros
		command = { type = cedeprovince which = HUN value = 325 } #Magyar
		command = { type = cedeprovince which = HUN value = 326 } #Presburg
		command = { type = cedeprovince which = HUN value = 352 } #Odenburg
		command = { type = cedeprovince which = HUN value = 353 } #Pest
		command = { type = cedeprovince which = HUN value = 354 } #Banat
		command = { type = cedeprovince which = HUN value = 366 } #Croatia
		command = { type = removecore which = 316 } #Carpathia
		command = { type = removecore which = 317 } #Ruthenia
		command = { type = removecore which = 324 } #Maros
		command = { type = removecore which = 325 } #Magyar
		command = { type = removecore which = 326 } #Presburg
		command = { type = removecore which = 352 } #Odenburg
		command = { type = removecore which = 353 } #Pest
		command = { type = removecore which = 366 } #Croatia
		command = { type = badboy value = -5 }
		command = { type = add_countryculture which = magyar }
		command = { type = add_countryculture which = slovak }
		command = { type = sleepevent which = 179103 } #HAB: Coronation of Ladislaus Postumus in Hungary -III-
		command = { type = trigger which = 179151 } #HAB: Coronation of Ladislaus Postumus in Hungary
	}
	action_b = {
		name = "ACTIONNAME179103B" #Try to unite Austria and Hungary permanently
		command = { type = inherit which = HUN }
		command = { type = stability value = -2 }
		command = { type = badboy value = 3 }
		command = { type = revolt which = 316 } #Carpathia
		command = { type = revolt which = 325 } #Magyar
		command = { type = revolt which = 326 } #Presburg
		command = { type = revolt which = 352 } #Odenburg
		command = { type = revolt which = 353 } #Pest
		command = { type = revolt which = 317 } #Ruthenia
		command = { type = revolt which = 323 } #Transylvania
		command = { type = revolt which = 324 } #Maros
		command = { type = revolt which = 354 } #Banat
		command = { type = revolt which = 355 } #Serbia
		command = { type = add_countryculture which = magyar }
		command = { type = add_countryculture which = slovak }
		command = { type = sleepevent which = 179103 } #HAB: Coronation of Ladislaus Postumus in Hungary -III-
	}
}
event = {
	id = 179151 #triggered by HAB_179150 A
	random = no
	country = HAB
	name = "EVENTNAME179102" #Coronation of Ladislaus Postumus in Hungary
	desc = "EVENTHIST179149"
	#-#Now it's upon Habsburg to defend Europe against the Ottoman threat.

	action_a = {
		name = "ACTIONNAME179102A" #Hungary is ours
		command = { type = vassal which = HUN }
		command = { type = dynastic which = HUN }
		command = { type = alliance which = HUN }
		command = { type = relation which = HUN value = 300 }
	}
}
#(1443) Death of Elizabeth
#A setback in the civil war for the supporters of Ladislaus Postumus
event = {
	id = 179104
	trigger = {
		flag = [support_Ladislaus]
		NOT = {
			event = 179103 #HAB: Coronation of Ladislaus Postumus -III-
			event = 179150 #HAB: Coronation of Ladislaus Postumus -IV-
		}
		OR = {
			event = 188093 #HUN: Nationalist victory
			event = 188094 #HUN: Nationalist victory
			event = 188095 #HUN: Nationalist victory, by death of Elizabeth
		}
		NOT = { war = { country = HUN country = HAB } } #War needs to be over, otherwise there could be weird consequences
	}
	random = no
	country = HAB
	name = "EVENTNAME179104" #Death of Elizabeth of Luxemburg
	desc = "EVENTHIST179104"
	#-#Elizabeth of Luxemburg, the mother of Ladislaus Postumus, who had tried to secure the Hungarian throne for her son against Wladyslaw III of Poland, died on December 13th 1443. With Emperor Friedrich V lacking the energy and ability to continue the efforts for the crown of St. Stephen, the Pope encouraging a settlement that would allow for a Hungarian crusade against the Ottomans and fortune in battle against the supporters of Ladislaus, the succession conflict in Hungarian was practically ended by this. For the moment, the Habsburgs gave up their claim on Hungary.

	date = { day = 13 month = december year = 1443 }

	action_a = {
		name = "ACTIONNAME179104A" #Our claim on Hungary is lost
		command = { type = cedeprovince which = HUN value = 316 } #Carpathia
		command = { type = cedeprovince which = HUN value = 317 } #Ruthenia
		command = { type = cedeprovince which = HUN value = 323 } #Transylvania
		command = { type = cedeprovince which = HUN value = 324 } #Maros
		command = { type = cedeprovince which = HUN value = 325 } #Magyar
		command = { type = cedeprovince which = HUN value = 326 } #Presburg
		command = { type = cedeprovince which = HUN value = 352 } #Odenburg
		command = { type = cedeprovince which = HUN value = 353 } #Pest
		command = { type = cedeprovince which = HUN value = 354 } #Banat
		command = { type = cedeprovince which = HUN value = 366 } #Croatia
		command = { type = removecore which = 316 } #Carpathia
		command = { type = removecore which = 317 } #Ruthenia
		command = { type = removecore which = 324 } #Maros
		command = { type = removecore which = 325 } #Magyar
		command = { type = removecore which = 326 } #Presburg
		command = { type = removecore which = 352 } #Odenburg
		command = { type = removecore which = 353 } #Pest
		command = { type = removecore which = 366 } #Croatia
		command = { type = relation which = PAP value = 50 } #Habsburgs give up their claim to allow for a crusade
		command = { type = relation which = HUN value = 50 }
		command = { type = clrflag which = [support_Ladislaus] }
	}
	action_b = {
		name = "ACTIONNAME179104B" #Maintain Ladislaus' claim on the Hungarian throne
		command = { type = stability value = -2 }
		command = { type = badboy value = 2 } #Habsburgs are preventing a crusade against the Ottomans
		command = { type = relation which = PAP value = -100 }
	}
}
#(1440-1460) Ladislaus Postumus inherits the Bohemian throne
event = {
	id = 179106
	trigger = {
		OR = {
			event = 129004 #BOH: The Letter of Peace
			event = 129025 #BOH: The Letter of Peace (no BAY)
		}
		NOT = {
			event = 179137 #HAB: Ladislaus Postumus (HAB vassal of BOH)
			vassal = { country = BOH country = HAB }
		}
	}
	random = no
	country = HAB
	name = "EVENTNAME179106" #Ladislaus Postumus
	desc = "EVENTHIST179106"
	#-#In 1439 Albrecht of Habsburg, King of Hungary, fell ill, probably of cholera, while campaigning against the Ottomans. Within one month he died, leaving two minor daughters and his pregnant wife Elizabeth. For the case of the unborn child being male, Albrecht declared that his son would be his successor in all his fiefs just before his death. On February 22nd 1440 Queen Elizabeth gave birth to a son who received the name of Ladislaus and has been accepted as successor of Albrecht to the Bohemian throne. This would be an opportunity to declare the throne hereditary within the Habsburg dynasty.

	date = { day = 1 month = january year = 1440 }
	offset = 50
	deathdate = { day = 29 month = february year = 1460 }

	action_a = {
		name = "ACTIONNAME179106A" #Rule Bohemia in personal union with Austria
		command = { type = vp value = 50 }
		command = { type = vassal which = BOH } #probably still vassal and allied
		command = { type = dynastic which = BOH }
		command = { type = alliance which = BOH }
		command = { type = relation which = BOH value = 300 }
		command = { type = sleepevent which = 179137 } #HAB: Ladislas Postumus (HAB vassal of BOH)
	}
	action_b = {
		name = "ACTIONNAME179106B" #Try to unite Austria and Bohemia permanently
		command = { type = inherit which = BOH }
		command = { type = badboy value = 4 }
		command = { type = revolt which = 328 } #Bohemia
		command = { type = revolt which = 329 } #Erz
		command = { type = revolt which = 330 } #Sudeten
		command = { type = stability value = -3 }
		command = { type = addcore which = 328 } #Bohemia
		command = { type = addcore which = 329 } #Erz
		command = { type = addcore which = 330 } #Sudeten
		command = { type = addcore which = 314 } #Silesia
		command = { type = addcore which = 315 } #Moravia
		command = { type = sleepevent which = 179137 } #HAB: Ladislas Postumus (HAB vassal of BOH)
	}
}
#(1440-1460) Ladislaus Postumus inherits the Bohemian throne (HAB vassal of BOH)
event = {
	id = 179137
	trigger = {
		OR = {
			event = 129004 #BOH: The Letter of Peace
			event = 129025 #BOH: The Letter of Peace (no BAY)
		}
		vassal = { country = BOH country = HAB }
		NOT = { event = 179106 } #HAB: Ladislaus Postumus
	}
	random = no
	country = HAB
	name = "EVENTNAME179106" #Ladislaus Postumus
	desc = "EVENTHIST179137"
	#-#In 1439 Albrecht of Habsburg, King of Hungary, fell ill, probably of cholera, while campaigning against the Ottomans. Within one month he died, leaving two minor daughters and his pregnant wife Elizabeth. For the case of the unborn child being male, Albrecht declared that his son would be his successor in all his fiefs just before his death.

	date = { day = 1 month = january year = 1440 }
	offset = 60
	deathdate = { day = 29 month = february year = 1460 }

	action_a = {
		name = "GOOD"
		command = { type = vp value = 50 }
		command = { type = breakvassal which = BOH }
		command = { type = sleepevent which = 179106 } #HAB: Ladislas Postumus
		command = { type = trigger which = 179078 } #HAB: The Habsburg personal union
	}
}
#(1440-1460) The Bohemian inheritance of the House of Luxemburg
event = {
	id = 179078 #triggered by HAB_179137
	random = no
	country = HAB
	name = "EVENTNAME179078" #The Bohemian inheritance of the House of Luxemburg
	desc = "EVENTHIST179078"
	#-#On February 22nd 1440 Queen Elizabeth gave birth to a son who received the name of Ladislaus and has been accepted as successor of Albrecht to the Bohemian throne. This would be an opportunity to declare the throne hereditary within the Habsburg dynasty.

	action_a = {
		name = "ACTIONNAME179106A" #Rule Bohemia in personal union with Austria
		command = { type = vassal which = BOH }
		command = { type = dynastic which = BOH }
		command = { type = alliance which = BOH }
		command = { type = relation which = BOH value = 300 }
	}
	action_b = {
		name = "ACTIONNAME179106B" #Try to unite Austria and Bohemia permanently
		command = { type = inherit which = BOH }
		command = { type = badboy value = 4 }
		command = { type = revolt which = 328 } #Bohemia
		command = { type = revolt which = 329 } #Erz
		command = { type = revolt which = 330 } #Sudeten
		command = { type = stability value = -3 }
		command = { type = addcore which = 328 } #Bohemia
		command = { type = addcore which = 329 } #Erz
		command = { type = addcore which = 330 } #Sudeten
		command = { type = addcore which = 314 } #Silesia
		command = { type = addcore which = 315 } #Moravia
	}
}
#(1457) Inheritance of Bohemia - Ahistorical
event = {
	id = 179603 #triggered by BOH_129040 B
	random = no
	country = HAB
	name = "EVENTNAME179603" #Inheritance of Bohemia
	desc = "EVENTHIST179603"
	#-#Bohemia has recognized Emperor Friedrich III as legitimate successor to the late Ladislaus Postumus and his father Albrecht of Habsburg to its throne. The Bohemian crown has hence been secured permanently for our dynasty.

	action_a = {
		name = "ACTIONNAME179603A" #Austriae est imperare orbi universo
		command = { type = addcore which = 314 } #Silesia
		command = { type = addcore which = 315 } #Moravia
		command = { type = addcore which = 327 } #Ostmarch
		command = { type = addcore which = 328 } #Bohemia
		command = { type = addcore which = 329 } #Erz
		command = { type = addcore which = 330 } #Sudeten
		command = { type = inherit which = BOH }
		command = { type = add_countryculture which = czech }
	}
}
#(1457) The Bohemian throne - Romanists - Ahistorical
event = {
	id = 179602 #triggered by ROM_398013 A
	random = no
	country = HAB
	name = "EVENTNAME179602" #The Bohemian throne
	desc = "EVENTHIST179602"
	#-#Realizing that they are too weak to survive against the heretic Hussites on their own and acknowledging our legitimate right to the Bohemian throne, the Bohemian Romanists have accepted Emperor Frederick as successor of the late Ladislaus Postumus to the Bohemian throne. The crown of Bohemia has thus become hereditary within the Habsburg dynasty. It will now be our primary task to finally subdue the Hussite rebels and establish our rule in all of Bohemia.

	action_a = {
		name = "GREAT"
		command = { type = addcore which = 314 } #Silesia
		command = { type = addcore which = 315 } #Moravia
		command = { type = addcore which = 327 } #Ostmarch
		command = { type = addcore which = 328 } #Bohemia
		command = { type = addcore which = 329 } #Erz
		command = { type = addcore which = 330 } #Sudeten
		command = { type = inherit which = ROM }
		command = { type = relation which = HUS value = -400 }
	}
}
#(1462) Inheritance of Bohemia (after the Death of Ulrich of Rosenberg) - Ahistorical
event = {
	id = 179108 #triggered by BOH_129022 C
	random = no
	country = HAB
	name = "EVENTNAME179108" #Inheritance of Bohemia
	desc = "EVENTHIST179108"
	#-#When Ladislaus Postumus died in 1457, Ulrich of Rozmberg, leader of the 'Austrian' or 'Romanist' faction of the Bohemian nobility which was in favour of catholicism and a permanent union with Austria and the most powerful man in Bohemia after victory in the civil war between 1446 and 1453, used the opportunity to realise his own ambitions and became King of Bohemia. After his death in 1462 however the remaining Romanists, unwilling to raise the Rozmbergs to a higher rank than the numerous other Bohemian dynasties and fearing a reemergence of their Hussite opponents, accepted a permanent personal union with Austria.

	action_a = {
		name = "ACTIONNAME179108A" #Accept the Union
		command = { type = addcore which = 314 } #Silesia
		command = { type = addcore which = 315 } #Moravia
		command = { type = addcore which = 327 } #Ostmarch
		command = { type = addcore which = 328 } #Bohemia
		command = { type = addcore which = 329 } #Erz
		command = { type = addcore which = 330 } #Sudeten
		command = { type = inherit which = BOH }
		command = { type = add_countryculture which = czech }
		command = { type = domestic which = centralization value = -1 }
		command = { type = domestic which = aristocracy value = 1 }
		command = { type = domestic which = innovative value = -1 }
	}
}
#(1647) Inheritance of Bohemia (after the extinction of the Podiebrad or Rozmberg dynasties) - Ahistorical
event = {
	id = 179107 #triggered by BOH_129018 A
	random = no
	country = HAB
	name = "EVENTNAME179107" #Inheritance of Bohemia
	desc = "EVENTHIST179107"
	#-#With the extinction of the national dynasty ruling Bohemia, the union between Austria and Bohemia that has so long been a goal of Habsburg can finally be achieved.

	action_a = {
		name = "GREAT"
		command = { type = addcore which = 314 } #Silesia
		command = { type = addcore which = 315 } #Moravia
		command = { type = addcore which = 327 } #Ostmarch
		command = { type = addcore which = 328 } #Bohemia
		command = { type = addcore which = 329 } #Erz
		command = { type = addcore which = 330 } #Sudeten
		command = { type = inherit which = BOH }
		command = { type = add_countryculture which = czech }
	}
}
#End of Inheritance of Bohemia Sequence
#-----------------------------------------------------------------------------------------------

#(1439) Regency in Tyrol
event = {
	id = 179050 #triggered by TYR_322001 A
	random = no
	country = HAB
	name = "EVENTNAME179050" #The regency of Friedrich in Tyrol
	desc = "EVENTHIST179050"
	#-#When Duke Friedrich IV. of Tyrol died, his son Sigmund was still a child.

	action_a = {
		name = "WONDERFUL"
		command = { type = vassal which = TYR }
		command = { type = trigger which = 179127 } #HAB: A temporary reunion of Habsburgs domains
	}
}
#(1439) Regency in Tyrol
event = {
	id = 179127 #triggered by HAB_179050
	random = no
	country = HAB
	name = "EVENTNAME179127" #A temporary reunion of Habsburgs domains
	desc = "EVENTHIST179127"
	#-#During Duke Sigmund's minority, his uncle, Emperor Friedrich III, ruled over the Habsburgs possessions of Tyrol and Austria.

	action_a = {
		name = "GOOD"
		command = { type = alliance which = TYR }
		command = { }
	}
}

#(1447) Philip the Good requests the Lotharingian crown
event = {
	id = 28005 #triggered by BUR_28004 A
	random = no
	country = HAB #should be HEI
	name = "EVENTNAME28005" #Philip the Good requests the Lotharingian crown
	desc = "EVENTHIST28005"
	#-#After the death of Louis the Pious in 840 the Carolingian Empire was divided between his three sons. Two of these Kingdoms would survive to become France and the Holy Roman Empire. The third Kingdom, Lotharingia, dwindled and was upon the death of King Zwentibold absorbed into Germany. Twice during his reign Philip the Good requested from Emperor Frederick III the vacant crown of Lotharingia.

	action_a = {
		name = "ACTIONNAME28005A" #Deny him the crown
		command = { type = relation which = BUR value = -50 }
		command = { type = relation which = FRA value = 50 }
	}
	action_b = {
		name = "ACTIONNAME28005B" #Grant him the crown
		command = { type = stability value = -1 }
		command = { type = cedeprovince which = BUR value = 334 } #Münster
		command = { type = cedeprovince which = BUR value = 335 } #Oldenburg
		command = { type = cedeprovince which = BUR value = 337 } #Friesen
		command = { type = cedeprovince which = BUR value = 338 } #Geldre
		command = { type = cedeprovince which = BUR value = 343 } #Kleves
		command = { type = cedeprovince which = BUR value = 344 } #Köln
		command = { type = cedeprovince which = BUR value = 345 } #Pfalz
		command = { type = cedeprovince which = BUR value = 375 } #Lorraine
		command = { type = cedeprovince which = BUR value = 377 } #Luxembourg
		command = { type = relation which = BUR value = 150 }
		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 = BRG value = -50 }
		command = { type = relation which = KLE value = -50 }
		command = { type = relation which = FRI value = -50 }
		command = { type = relation which = GEL value = -50 }
		command = { type = trigger which = 28006 } #BUR: King Philip
	}
}

#(1457) The Archduchy of Austria
#by Fate
event = {
	id = 179034
	trigger = {
		religion = catholic
		emperor = yes
	}
	random = no
	country = HAB
	name = "EVENTNAME179034" #Austria becomes an Archduchy
	desc = "EVENTHIST179034"
	#-#On November 23, 1457 Emperor Friedrich III raised the status of Austria from a Duchy to an Archduchy. From the reign of Friedrich V to Karl IV the rulers of Austria were referred to as Archdukes.

	date = { day = 24 month = november year = 1457 }

	action_a = {
		name = "EXCELLENT"
		command = { type = vp value = 50 }
		command = { type = dip which = 2 value = 400 } #Until the reign of his son
		command = { type = stability value = 1 }
	}
}

#(1460) The stubborn widow
event = {
	id = 179154 #triggered by SEI_261007
	random = no
	country = HAB
	name = "EVENTNAME261007" #The stubborn widow
	desc = "EVENTHIST261007"
	#-#After Ladislaus died in 1457, Frederick III managed to strike a deal with the widow of Ulrich II, Catherine, and the conflict between Austria and Styria was practically settled. The war of succession ended in 1460 with Frederick gaining all the former possessions of the Counts of Cilli.

	action_a = {
		name = "ACTIONNAME179154A" #Krain is ours!
		command = { }
	}
}

#-----------------------------------------------------------------------------------------------
#Mathias Corvinus Sequence

#(1462-1469) Treaty with Mathias Corvinus
event = {
	id = 179109 #triggered by HUN_188111 A
	random = no
	country = HAB
	name = "EVENTNAME179109" #Corvinus' offer
	desc = "EVENTHIST179109"
	#-#Having been offered the throne by some malcontent nobles, in 1459 Friedrich III was crowned King of Hungary with the crown of St. Stephen that had been in his possession since 1440. When Matthias Corvinus, King of Hungary, had managed to crush the rebellious nobles and secure his diplomatic positions by reaching agreements with Jiri Podiebrad of Bohemia and the mercenary Jan Vitovec who had seized the former Cilli estates and he was about to threaten Austria, Friedrich quickly accepted a treaty in which we abandonned his claim on Hungary, but kept the title of King of Hungary, retained several border districts including the towns of Guns and Eisenstadt, was ceded the city of Sopron, received a ransom of 60000 ducats for the crown of St. Stephen and was appointed heir of Matthias in case of a childless death.

	action_a = {
		name = "ACTIONNAME179109A" #Accept the offer
		command = { type = treasury value = 100 }
		command = { type = addcore which = 352 } #Odenburg
		command = { type = removecore which = 316 } #Carpathia
		command = { type = removecore which = 317 } #Ruthenia
		command = { type = removecore which = 324 } #Maros
		command = { type = removecore which = 325 } #Magyar
		command = { type = removecore which = 326 } #Presburg
		command = { type = removecore which = 353 } #Pest
		command = { type = removecore which = 366 } #Croatia
		command = { type = vp value = 30 }
		command = { type = trigger which = 188112 } #HUN: Friedrich accepts
	}
	action_b = {
		name = "ACTIONNAME179109B" #Press the claim on Hungary
		command = { type = addcore which = 316 } #Carpathia
		command = { type = addcore which = 317 } #Ruthenia
		command = { type = addcore which = 324 } #Maros
		command = { type = addcore which = 325 } #Magyar
		command = { type = addcore which = 326 } #Presburg
		command = { type = addcore which = 352 } #Odenburg
		command = { type = addcore which = 353 } #Pest
		command = { type = addcore which = 366 } #Croatia
		command = { type = stability value = -2 }
		command = { type = badboy value = 2 }
		command = { type = war which = HUN }
	}
}
#(1477-1490) Vienna captured by Matthias Corvinus
event = {
	id = 179110
	trigger = {
		owned = { province = 351 data = -1 } #Austria
		control = { province = 351 data = HUN } #Austria
		owned = { province = 327 data = -1 } #Ostmarch
		control = { province = 327 data = -1 } #Ostmarch
	}
	random = no
	country = HAB
	name = "EVENTNAME179110" #Vienna captured by Matthias Corvinus
	desc = "EVENTHIST179110"
	#-#Matthias Corvinus, King of Hungary, was the nemesis of Emperor Friedrich V. They both claimed the Hungarian and Bohemian throne, they mistrusted each other, they both were eager to dominate southeastern Europe - thus saw each other as their greatest obstacle - and they were contrary characters, Friedrich patient, contemplative, fatalistic and sometimes phlegmatic, Matthias determined, ambitious and aggressive. Thus the peace concluded between Poland, Bohemia and Hungary in 1477 did not include Friedrich. The rivalry between the two, before sparked by Friedrich suspecting Matthias of secretly allowing the Ottomans to invade Austria through Hungary and supporting Wladislas Jagiello as King of Bohemia against the claims of Matthias, deteriorated into a personal feud. On the battlefield, Matthias Corvinus got the upper hand, swiftly defeated Friedrich even after he had gathered an Imperial army and invaded his hereditary lands. Within 5 years Matthias army reduced Frederick's strongholds one by one. The Emperor was deeply humiliated and his defeat evident in 1485 when Hungarian armies captured Vienna and he had to flee to Linz. In the last years of his life he was deeply depressive due to this shame. Vienna was only recaptured by his son Maximilian.

	date = { day = 1 month = january year = 1477 }
	offset = 10
	deathdate = { day = 29 month = december year = 1490 }

	action_a = {
		name = "CURSES"
		command = { type = capital which = 327 } #Ostmarch
		command = { type = stability value = -3 }
		command = { type = vp value = -50 }
	}
}
#(1490) Civil war in Hungary
event = {
	id = 179112 #triggered by HUN_188122 B
	random = no
	country = HAB
	name = "EVENTNAME179112" #Civil War in Hungary
	desc = "EVENTHIST179112"
	#-#After Mathias Corvinus of Hungary's sudden death, a bitter conflict over his succession has arisen. Following his explicit wish, his illegitimate son Janos has been crowned King, however there is considerable resistance among the magnates who are fed up with strong royal authority and high taxes. They have decided to revolt against the new King in order to protect their interest. Meanwhile, Friedrich III still bears the title King of Hungary and he and his son Maximilian are regarded by some Hungarians as legitimate successor to the throne. Taking advantage of the conflict within it, it might be easy to press the claim and conquer Hungary now.

	action_a = {
		name = "ACTIONNAME179112A" #Claim the Hungarian throne
		command = { type = addcore which = 316 } #Carpathia
		command = { type = addcore which = 317 } #Ruthenia
		command = { type = addcore which = 324 } #Maros
		command = { type = addcore which = 325 } #Magyar
		command = { type = addcore which = 326 } #Presburg
		command = { type = addcore which = 352 } #Odenburg
		command = { type = addcore which = 353 } #Pest
		command = { type = addcore which = 366 } #Croatia
		command = { type = relation which = HUN value = -200 }
	}
}
#(1490) Inheritance of Hungary after the death of Mathias Corvinus - Ahistorical
event = {
	id = 179111 #triggered by HUN_188122 C
	random = no
	country = HAB
	name = "EVENTNAME179111" #Inheritance of Hungary
	desc = "EVENTHIST179111"
	#-#Matthias Corvinus of Hungary died in 1490, before having secured the succession to the throne of his illegitimate son Janos. The Hungarian nobles, fed up with the strong authority and high taxes of Corvinus, quickly deprived Janos of his claim and looked for a foreign candidate that would be an easily influenced, weak puppet monarch. Seeing how he had been forced to give concessions to the estates and cities of Burgundy, they think they found such a monarch in Maximilian of Austria and have elected him King of Hungary.

	action_a = {
		name = "ACTIONNAME179111A" #I will prove them wrong
		command = { type = addcore which = 316 } #Carpathia
		command = { type = addcore which = 317 } #Ruthenia
		command = { type = addcore which = 324 } #Maros
		command = { type = addcore which = 325 } #Magyar
		command = { type = addcore which = 326 } #Presburg
		command = { type = addcore which = 352 } #Odenburg
		command = { type = addcore which = 353 } #Pest
		command = { type = addcore which = 366 } #Croatia
		command = { type = inherit which = HUN }
		command = { type = add_countryculture which = magyar }
		command = { type = add_countryculture which = slovak }
	}
}
#End of Mathias Corvinus Sequence
#-----------------------------------------------------------------------------------------------

#(1463) Philip the Good requests the Lotharingian crown -I-
event = {
	id = 28008 #triggered by BUR_28007 A
	random = no
	country = HAB #should be HEI
	name = "EVENTNAME28005" #Philip the Good requests the Lotharingian crown
	desc = "EVENTHIST28005"
	#-#After the death of Louis the Pious in 840 the Carolingian Empire was divided between his three sons. Two of these Kingdoms would survive to become France and the Holy Roman Empire. The third Kingdom, Lotharingia, dwindled and was upon the death of King Zwentibold absorbed into Germany. Twice during his reign Philip the Good requested from Emperor Frederick III the vacant crown of Lotharingia.

	action_a = {
		name = "ACTIONNAME28005A" #Deny him the crown
		command = { type = relation which = BUR value = -50 }
		command = { type = relation which = FRA value = 50 }
	}
	action_b = {
		name = "ACTIONNAME28005B" #Grant him the crown
		command = { type = stability value = -1 }
		command = { type = cedeprovince which = BUR value = 334 } #Münster
		command = { type = cedeprovince which = BUR value = 335 } #Oldenburg
		command = { type = cedeprovince which = BUR value = 337 } #Friesen
		command = { type = cedeprovince which = BUR value = 338 } #Geldre
		command = { type = cedeprovince which = BUR value = 343 } #Kleves
		command = { type = cedeprovince which = BUR value = 344 } #Köln
		command = { type = cedeprovince which = BUR value = 345 } #Pfalz
		command = { type = cedeprovince which = BUR value = 375 } #Lorraine
		command = { type = relation which = BUR value = -30 }
		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 = BRG value = -50 }
		command = { type = relation which = KLE value = -50 }
		command = { type = relation which = FRI value = -50 }
		command = { type = relation which = GEL value = -50 }
		command = { type = trigger which = 28006 } #BUR: King Philip
	}
}
#(1463) Philip the Good requests the Lotharingian crown -II-
event = {
	id = 179123 #triggered by BUR_137049 A
	random = no
	country = HAB #should be HEI
	name = "EVENTNAME28005" #Philip the Good requests the Lotharingian crown
	desc = "EVENTHIST28005"
	#-#After the death of Louis the Pious in 840 the Carolingian Empire was divided between his three sons. Two of these Kingdoms would survive to become France and the Holy Roman Empire. The third Kingdom, Lotharingia, dwindled and was upon the death of King Zwentibold absorbed into Germany. Twice during his reign Philip the Good requested from Emperor Frederick III the vacant crown of Lotharingia.

	action_a = {
		name = "ACTIONNAME28005B" #Grant him the crown
		command = { type = stability value = -1 }
		command = { type = cedeprovince which = BUR value = 334 } #Münster
		command = { type = cedeprovince which = BUR value = 335 } #Oldenburg
		command = { type = cedeprovince which = BUR value = 337 } #Friesen
		command = { type = cedeprovince which = BUR value = 338 } #Geldre
		command = { type = cedeprovince which = BUR value = 343 } #Kleves
		command = { type = cedeprovince which = BUR value = 344 } #Köln
		command = { type = cedeprovince which = BUR value = 345 } #Pfalz
		command = { type = cedeprovince which = BUR value = 375 } #Lorraine
		command = { type = relation which = BUR value = 30 }
		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 = BRG value = -50 }
		command = { type = relation which = KLE value = -50 }
		command = { type = relation which = FRI value = -50 }
		command = { type = relation which = GEL value = -50 }
		command = { type = trigger which = 28006 } #BUR: King Philip
	}
	action_b = {
		name = "ACTIONNAME28005A" #Deny him the crown
		command = { type = relation which = BUR value = -50 }
		command = { type = relation which = FRA value = 50 }
	}
}

#(1463) Inheritance of Styria
event = {
	id = 179002 #triggered by SEI_261000 A / SEI_261001 A / TYR_322014 A
	random = no
	country = HAB
	name = "EVENTNAME179002" #Austria inherits Styria
	desc = "EVENTHIST261000"
	#-#In december 1463 Duke Albert of Styria died childlessly. Despite their former conflicts, he let his brother, Emperor Friedrich III. inherit all his possessions.

	action_a = {
		name = "GREAT"
		command = { type = inherit which = SEI }
		command = { type = addcore which = 367 } #Krain
		command = { type = addcore which = 369 } #Steiermark
		command = { type = wakeleader which = 055813 } #Baumkircher (HAB)
	}
}
#(1463) The Question of Styria
event = {
	id = 179094 #triggered by TYR_322014 B
	random = no
	country = HAB
	name = "EVENTNAME179094" #The Question of Styria
	desc = "EVENTHIST322014"
	#-#In december 1463 Duke Albert of Styria died childlessly. Despite his brother, emperor Friedrich V, that he had had a long struggle for power in Austria and Styria with having the strongest claim, he willed Styria to his cousin Sigmund of Tyrol. Tyrol can inherit Styria and Krain, however this would almost inevitably cause a conflict with Friedrich V and the whole empire.

	action_a = {
		name = "ACTIONNAME179094A" #We are the rightful heirs!
		command = { type = stability value = -1 }
		command = { type = relation which = TYR value = -200 }
	}
}

#(1464-1820) The claim to Styria
#in case Austria didn't get any historical cores on Steiermark (369) and Krain (367) and SEI doesn't exist any longer
#by Bordic
event = {
	id = 179090
	trigger = {
		countrysize = 2
		NOT = {
			exists = SEI
			event = 261002 #SEI: Styria becomes Austria
		}
		OR = {
			NOT = {
				event = 179002 #HAB: Austria inherits Styria
				event = 179094 #HAB: The Question of Styria (Tyrol inherits Styria)
			}
			AND = {
				event = 179094 #HAB: The Question of Styria
				NOT = {
					exists = TYR
					event = 322013 #TYR: Tyrol becomes Austria
				}
			}
		}
	}
	random = no
	country = HAB
	name = "EVENTNAME179090" #The claim to Styria
	desc = "EVENTHIST179090"
	#-#Although by the treaty of Neuberg of 1379 the Habsburg lands had been partitioned into separate entities, to be held by different members of the Habsburg family, the idea of the unity of the family survived. The most important consequence of this was that by a clause in the treaty in the case of a minor inheriting one of the states the oldest member of the family was to assume tutelage over the minor ruler and regency of his countries while in case of premature death of childless rulers those territories would be legitimately claimed by the members of the House of Habsburg having the closest family ties with the extinct dynasty. That was the case of the Austrian rulers and the ancestral territories of Styria and Krain not any longer directly administrated by dukes of Styria.

	date = { day = 2 month = January year = 1464 }
	offset = 90
	deathdate = { year = 1820 }

	action_a = {
		name = "ACTIONNAME179090A" #Those are Austrian lands
		command = { type = addcore which = 367 } #Krain
		command = { type = addcore which = 369 } #Steiermark
		command = { type = wakeleader which = 055813 } #Baumkircher (HAB)
	}
	action_b = {
		name = "ACTIONNAME179090B" #Don't press our claims
		command = { type = stability value = 1 }
		command = { type = vp value = -5 }
	}
}

#(1469) Baumkircher
event = {
	id = 179051
	trigger = {
		OR = {
			owned = { province = 369 data = -1 } #Steiermark
			owned = { province = 367 data = -1 } #Krain
		}
	}
	random = no
	country = HAB
	name = "EVENTNAME179051" #Baumkircher's revolt
	desc = "EVENTHIST179051"
	#-#Andreas Baumkircher was mercenary leader who did good service to emperor Frederic III. Unfortunately, the emperor failed to pay his wages and the debt accumulated. So in 1469, supported by Mathias Corvinus, Baumkircher led an uprising of Styrian nobility against Frederic III. He took and plundered several styrian towns and soundly beat the emperor's army on the battlefield. In the end, Frederic III was forced to make peace with him, pardoning the rebels and paying 14000 guldens.

	date = { day = 0 month = february year = 1469 }

	action_a = {
		name = "ACTIONNAME179051A" #Fight the rebels
		command = { type = revolt which = 369 } #Steiermark
		command = { type = revoltrisk which = 26 value = 3 }
	}
	action_b = {
		name = "ACTIONNAME179051B" #Buy peace
		command = { type = treasury value = -40 }
		command = { type = wakeleader which = 055846 } #Baumkircher (HAB)
		command = { type = domestic which = serfdom value = 1 }
		command = { type = domestic which = aristocracy value = 1 }
	}
}

#(1471) Death of Baumkircher
event = {
	id = 179052
	trigger = { event = 179051 }
	random = no
	country = HAB
	name = "EVENTNAME179052" #Death of Baumkircher
	desc = "EVENTHIST179052"
	#-#Suspecting him of ploting another rebellion, Frederic III tricked Baumkircher and Von Greisseneck to enter the city of Graz, where he had them arrested and publicly beheaded in front of the city gates.

	date = { day = 22 month = april year = 1471 }

	action_a = {
		name = "ACTIONNAME179052A" #Execute Baumkircher
		command = { type = DIP which = -2 value = 12 }
	}
}

#(1474-1477) Austria support Swiss
event = {
	id = 179030 #triggered by HEL_184057 A
	random = no
	country = HAB
	name = "EVENTNAME179030" #Austrian Response - Burgundy Wars
	desc = "EVENTHIST179030"
	#-#The Austrian Habsburgs were constantly aggitated by Charles the Bold's ambition for Burgundy amongst the border provinces of Alsace and Lorraine which Austria considered her own domain. The Swiss Confederation has declared an intent to war against Charles of Burgundy, should we support the Swiss efforts to rid the world of this insufferable oink?

	action_a = {
		name = "ACTIONNAME179030A" #Without Hesitation
		command = { type = treasury value = -200 }
		command = { type = trigger which = 184062 } #HEL: Austrians Send Aid
		command = { type = relation which = BUR value = -50 }
	}
	action_b = {
		name = "ACTIONNAME179030B" #No, what are they thinking?
		command = { type = relation which = BUR value = 20 }
		command = { type = relation which = FRA value = -25 }
		command = { type = relation which = HEL value = -25 }
	}
}

#(1477) The Marriage with Mary of Burgundy
event = {
	id = 3178
	trigger = {
		exists = BUR
		OR = {
			event = 3597 #BUR: The marriage of Mary of Burgundy
			event = 20047 #BUR: The marriage of Mary of Burgundy (no France, ENG won the HYW)
		}
	}
	random = no
	country = HAB
	name = "EVENTNAME3178" #The Habsburg inheritance of Burgundy
	desc = "EVENTHIST3178"
	#-#Mary of Valois was the only daughter of Charles le Téméraire (Charles the Bold) and so heiress of all the rich Burgundian domains from the Saone River up to the Low Countries. When her father died in 1477 at the age of 43, Mary was only nineteen and Louis XI of France seized the opportunity provided with his rival's death to take possession of the duchy of Burgundy and also of Franche-Comté, Picardie and Artois. He justified his military intervention with the fact that these lands had always been fiefs to the French crown and that with Charles' death, the last member of the French Valois dynasty they had 'de facto', according to the salic law, reverted to France. But the choice of which prince should marry the duchess would be of particular importance for the future political and economical stability of Western Europe, so he urged Mary to accept his son, the Dauphin Charles, as husband, in order to secure the inheritance of the Low Countries for his descendants too, even by force of arms if necessary. Mary, however, distrusted Louis and declined any French support and offer of marriage but, in order to be recognized as legitimate ruler over the Low Countries and to get financial and military help of Flemish cities against the French aggression, she made so great concessions as to reduce the Burgundian states effectively to a sort of federation of provinces. Satisfied that the country was sufficiently weakened and disorganized, Louis XI ordered his army into Artois and Hainault, but the imminence of danger seemed to revive in the Burgundian provinces a spirit of loyalty towards the Valois heiress and arrangements were made for the marriage of Mary with Maximilian of Habsburg, Archduke of Austria and son of the Holy Roman Emperor Frederick III.

	date = { day = 19 month = August year = 1477 }
	offset = 10
	deathdate = { day = 19 month = September year = 1477 }

	action_a = {
		name = "ACTIONNAME3178A" #The destiny of Low Countries is in our hands
		command = { 
			trigger = {
				NOT = { vassal = { country = BUR country = HAB } }
			}
			type = vassal which = BUR 
		}
		command = { type = DIP which = 3 value = 60 }
		command = { type = trigger which = 179093 } #HAB: The alliance with Burgundy
	}
}
#(1477) The alliance with Burgundy
event = {
	id = 179093 #triggered by HAB_3178
	random = no
	country = HAB
	name = "EVENTNAME179093" #The alliance with Burgundy
	desc = "EVENTHIST179093"
	#-#The alliance with the Empire was intended to save the inheritance of the Burgundian young princess from the French hands. However it would result in thereafter making Low Countries direct dominions of the House of Habsburg. The marriage between Mary and Maximilian was hastily celebrated at Ghent on 18 August 1477.

	action_a = {
		name = "OK"
		command = { type = alliance which = BUR }
		command = { type = MIL which = 2 value = 24 }
	}
}

#(1477) France inherits Burgundy
event = {
	id = 3180 #triggered by BUR_3597 B
	random = no
	country = HAB
	name = "EVENTNAME3180" #France inherits Burgundy
	desc = "EVENTHIST3319"
	#-#Mary of Valois was the only daughter of Charles le Téméraire (Charles the Bold) and so heiress of all the rich Burgundian domains from the Saone River up to the Low Countries. When her father died in 1477 at the age of 43, Mary was only nineteen and Louis XI of France seized the opportunity provided with his rival's death to take possession of the duchy of Burgundy and also of Franche-Comté, Picardie and Artois. He justified his military intervention with the fact that these lands had always been fiefs to the French crown and that with Charles' death, the last member of the French Valois dynasty they had 'de facto', according to the salic law, reverted to France. But the choice of which prince should marry the duchess would be of particular importance for the future political and economical stability of Western Europe, so he urged Mary to accept his son, the Dauphin Charles, as husband, in order to secure the inheritance of the Low Countries for his descendants too, even by force of arms if necessary. Mary had no other choice than to accept that offer of marriage, thus binding the destiny of the duchy of Burgundy to the senior branch of House of Valois.

	action_a = {
		name = "ACTIONNAME3180A" #I crave blood!
		command = { type = stability value = -2 }
		command = { type = addcore which = 377 } #Luxembourg
		command = { type = addcore which = 378 } #Brabant
		command = { type = addcore which = 379 } #Artois
		command = { type = addcore which = 387 } #Franche-Comté
		command = { type = relation which = FRA value = -50 }
		command = { type = casusbelli which = FRA value = 24 }
	}
}

#(1482-1492) Louis's Proposal
event = {
	id = 179062
	trigger = {
		event = 137012 #BUR: Settlement at Arras
		NOT = {
			war = { country = FRA country = BUR }
			war = { country = FRA country = HAB }
		}
	}
	random = no
	country = HAB
	name = "EVENTNAME179062" #Louis's Proposal
	desc = "EVENTHIST137012"
	#-#A peace treaty was stipulated in Arras between King Louis XI of France and the local governments of Burgundian Low Countries since Mary, Duchess of Burgundy had died a few months before. The Treaty arose primarily as a means with which to secure the Low Countries from Louis's claims, and thus preserve the stability and status of Duke Philippe's lowland inheritance. The Treaty formally rendered to Louis provinces in his realm that he had claimed at the outset of the war, and also recognized and reaffirmed Flandern as fief of France. In order to solidify a lasting peace, the Treaty pledged Mary's daughter, Margaret, to Louis's son and heir, Charles. Thus, Louis's acquisitions were, in light of the treaty, dowry for Margaret's marriage. Maximilian,of course, would have to agree to the marriage.

	date = { day = 23 month = December year = 1482 }
	offset = 30
	deathdate = { day = 23 month = December year = 1492 }

	action_a = {
		name = "ACTIONNAME179062A" #Agree and end the feud
		command = { type = stability value = 1 }
		command = { type = dynastic which = FRA }
		command = { type = relation which = FRA value = 100 }
		command = { type = trigger which = 170061 } #FRA: Margarete's dowry
		command = { type = trigger which = 137033 } #BUR: Maximilian Ratifies the Treaty of Arras
	}
	action_b = {
		name = "ACTIONNAME179062B" #Refuse to accept the Treaty
		command = { type = stability value = -1 }
		command = { type = relation which = BUR value = -100 }
		command = { type = relation which = FRA value = -100 }
		command = { type = sleepevent which = 170000 } #FRA: The Treaty of Senlis
		command = { type = trigger which = 137034 } #BUR: Maximilian Refuses the Settlement at Arras
	}
}

#(1486-1488) The election of the King of the Romans
#by Bordic
event = {
	id = 179086
	trigger = {
		exists = FRA
		emperor = yes
	}
	random = no
	country = HAB
	name = "EVENTNAME179086" #The election of the King of the Romans
	desc = "EVENTHIST179086"
	#-#In 1486 Emperor Frederick III, in an attempt to grant the imperial title to his line of the House of Habsburg, supported the candidature of his son Maximilian to the title of King of the Romans, motivating his decision as necessary to preserve the Holy Roman Empire from the external interferences of France and the Ottoman Empire which were pushing at the boundaries of the Empire. This title would also represent for Maximilian an important step towards the imperial crown.

	date = { day = 0 month = january year = 1486 }
	offset = 70
	deathdate = { day = 0 month = january year = 1488 }

	action_a = {
		name = "ACTIONNAME179086A" #Support the candidature of Maximilian
		command = { type = treasury value = -100 }
		command = { type = relation which = BAY value = 50 }
		command = { type = relation which = BOH value = 50 }
		command = { type = relation which = BRA value = 50 }
		command = { type = relation which = BRE value = 50 }
		command = { type = relation which = HAN value = 50 }
		command = { type = relation which = HES value = 50 }
		command = { type = relation which = KLE value = 50 }
		command = { type = relation which = KOL value = 50 }
		command = { type = relation which = LOR value = 50 }
		command = { type = relation which = MAI value = 50 }
		command = { type = relation which = MEC value = 50 }
		command = { type = relation which = BRG value = 50 }
		command = { type = relation which = OLD value = 50 }
		command = { type = relation which = PFA value = 50 }
		command = { type = relation which = POM value = 50 }
		command = { type = relation which = SEI value = 50 }
		command = { type = relation which = PRU value = 50 }
		command = { type = relation which = ROM value = 50 }
		command = { type = relation which = SAC value = 50 }
		command = { type = relation which = SHL value = 50 }
		command = { type = relation which = STR value = 50 }
		command = { type = relation which = STT value = 50 }
		command = { type = relation which = TYR value = 50 }
		command = { type = relation which = MEI value = 50 }
		command = { type = relation which = WUR value = 50 }
	}
	action_b = {
		name = "ACTIONNAME179086B" #Don't announce the candidature
		command = { type = DIP which = -2 value = 24 }
		command = { type = vp value = -5 }
	}
}

#(1487-1500) Maximilian takes control of the Vorlande
event = {
	id = 179009 #triggered by TYR_322009 A / TYR_322023 A / TYR_322011 A
	random = no
	country = HAB
	name = "EVENTNAME179009" #Sigmund grows old
	desc = "EVENTHIST179009"
	#-#In 1487 the aging Duke Sigmund was forced to turn over the rulership of Freiburg, and the other Rhine lands to Duke Maximilian.

	action_a = {
		name = "WONDERFUL"
		command = { type = stability value = 1 }
		command = { type = addcore which = 373 } #Baden (Breisgau)
		#command = { type = addcore which = 374 } #Alsace to be changed to new Sundgau province as soon as new map appears
	}
}
#(1487-1820) Reclaiming Vorlande - Ahistorical
event = {
	id = 179153
	trigger = {
		OR = {
			owned = { province = 373 data =	BUR } #Baden
			owned = { province = 374 data = BUR } #Alsace to be changed to new Sundgau province as soon as new map appears
		}
	}
	random = no
	country = HAB
	name = "EVENTNAME322028" #Reclaiming Vorlande
	desc = "EVENTHIST179153"
	#-#Mary of Burgundy is dead and another dinasty has established itself in Brussels. Late Sigismund of Tyrol failed to settle the issue of Vorlande, which he mortgaged to Charles the Bold, before abdicating. As his successors, we can buy these lands back from Burgundy, or allow them to incorporate them into their realm.

	date = { day = 1 month = january year = 1487 }
	offset = 60
	deathdate = { year = 1820 }

	action_a = {
		name = "ACTIONNAME179091A" #Those are Habsburg lands
		command = { type = treasury value = -200 }
		command = { type = addcore which = 373 } #Baden
		#command = { type = addcore which = 374 } #Alsace to be changed to new Sundgau province as soon as new map appears
		command = { type = sleepevent which = 179091 } #HAB: The claim to Tirol and Vorlande
		command = { type = trigger which = 137078 } #BUR: Habsburgs reclaim Vorlande
	}
	action_b = {
		name = "ACTIONNAME322028A" #We cannot afford this
		command = { type = removecore which = 373 } #Baden
		#command = { type = removecore which = 374 } #Alsace to be changed to new Sundgau province as soon as new map appears
		command = { type = relation which = BUR value = 50 }
		command = { type = sleepevent which = 179091 } #HAB: The claim to Tirol and Vorlande
		command = { type = trigger which = 137079 } #BUR: Habsburgs renounce claim on Vorlande
	}
}

#(1488-1493) The Swabian League
#by Bordic
event = {
	id = 179087
	trigger = {
		OR = {
			exists = BAY
			exists = HEL
		}
		OR = {
			exists = MAI
			exists = WUR
		}
		NOT = {
			war = { country = MAI country = HAB }
			war = { country = WUR country = HAB }
		}
	}
	random = no
	country = HAB
	name = "EVENTNAME179087" #The Swabian League
	desc = "EVENTHIST179087"
	#-#Due to the aggressive policies of the House of Wittelsbach aiming at the extension of the duchy of Bavaria at the expenses of neighbouring countries and the strong independence claims of the Swiss subjects opposing the imperial rule, the princes of South-West Germany and Austria formed a league with military defensive purposes, such as the preservation of the imperial status quo. Supporters of the Swabian league were Frederick V of Austria, Eberhard VI of Wirtemberg and Berthold I Archbishop of Mainz, the latter saw this a a first step towards the realization of his planned reform of the Reich's administration.

	date = { day = 18 month = january year = 1488 }
	offset = 25
	deathdate = { day = 18 month = august year = 1493 }

	action_a = {
		name = "ACTIONNAME179087A" #Support its formation
		command = { type = relation which = BAY value = -50 }
		command = { type = relation which = HEL value = -50 }
		command = { type = relation which = LOR value = 25 }
		command = { type = relation which = MAI value = 25 }
		command = { type = relation which = PFA value = 25 }
		command = { type = relation which = STR value = 25 }
		command = { type = relation which = SEI value = 25 }
		command = { type = relation which = TYR value = 25 }
		command = { type = relation which = WUR value = 25 }
		command = { type = trigger which = 217003 } #MAI: The Swabian League
		command = { type = trigger which = 331042 } #WUR: The Swabian League
	}
	action_b = {
		name = "ACTIONNAME179087B" #Reject the idea
		command = { type = stability value = 1 }
		command = { type = relation which = BAY value = 25 }
		command = { type = relation which = HEL value = 25 }
		command = { type = relation which = WUR value = -25 }
		command = { type = relation which = MAI value = -25 }
		command = { type = DIP which = -2 value = 6 }
		command = { type = vp value = -5 }
	}
}

#(1489) The Habsburgs rule in the Low Countries
#by Bordic
event = {
	id = 179031 #triggered by BUR_137020
	random = no
	country = HAB
	name = "EVENTNAME179031" #The Habsburgs rule in the Low Countries
	desc = "EVENTHIST137020"
	#-#Frederick V (III) of Austria sent an army under the command of the Duke of Saxony in the Low Countries to repress the population of Flanders who dared to take his son Maximilian captive at Bruges and forced him to sign a treaty that granted large autonomy to the Flemish administration. The struggle lasted a year but at the end the people of Flanders was subdued. A new treaty was stipulated between Maximilian and the representatives of Flanders in October 1489. Maximilian obtained uncontrolled guardianship of his son, absolute dominion over Flanders and the other provinces. The rebelling burghers were severely punished for remembering that they had been freemen. The magistrates of the three largest Flemish cities of Ghent, Bruges and Ypres were compelled to implore the despot's forgiveness, and to pay a large sum of money in gold as its price. After this, for a brief season, order reigned in Flanders.

	action_a = {
		name = "ACTIONNAME179031A" #The Low Countries are tamed
		command = { type = stability value = 1 }
		command = { type = dynastic which = BUR }
		command = { type = relation which = BUR value = 150 }
		command = { type = treasury value = 100 }
		command = { type = DIP which = 2 value = 12 }
	}
}

#(1490) Inheritance of Tyrol
event = {
	id = 179003 #triggered by TYR_322012 A
	random = no
	country = HAB
	name = "EVENTNAME179003" #Austria inherits Tyrol
	desc = "EVENTHIST322012"
	#-#In 1490, the old, childless Duke Sigmund of Tyrol was tired of ruling. He abdicated in favor of his nephew, soon-to-be emperor Maximilian I.

	action_a = {
		name = "ACTIONNAME179003A" #Tyrol is united with Austria
		command = { type = vassal which = TYR }
		command = { type = alliance which = TYR }
		command = { type = sleepevent which = 179091 } #HAB: The claim to Tirol and Vorlande
	}
}

#(1491-1820) The claim to Tirol and Vorlande
#in case Austria didn't get any historical cores on Tirol (371) Baden (373) and Alsace (374)
#by Bordic
event = {
	id = 179091
	trigger = {
		countrysize = 2
		NOT = {
			core = { province = 371 data = -1 } #Tirol
			core = { province = 373 data = -1 } #Baden
		}
	}
	random = no
	country = HAB
	name = "EVENTNAME179091" #The claim to Tirol and Vorlande
	desc = "EVENTHIST179091"
	#-#Although by the treaty of Neuberg of 1379 the Habsburg lands had been partitioned into separate entities, to be held by different members of the Habsburg family, the idea of the unity of the family survived. The most important consequence of this was that by a clause in the treaty in the case of a minor inheriting one of the states the oldest member of the family was to assume tutelage over the minor ruler and regency of his countries while in case of premature death of childless rulers those territories would be legitimately claimed by the members of the House of Habsburg having the closest family ties with the extinct dynasty. That was the case of the Austrian rulers and the ancestral territories of Vorlande and Tirol not any longer administrated by a member of the House of Habsburg.

	date = { day = 2 month = January year = 1491 }
	offset = 90
	deathdate = { year = 1820 }

	action_a = {
		name = "ACTIONNAME179091A" #Those are Habsburg lands
		command = { type = addcore which = 371 } #Tirol
		command = { type = addcore which = 373 } #Baden (Breisgau)
		#command = { type = addcore which = 374 } #Alsace to be changed to new Sundgau province as soon as new map appears
	}
	action_b = {
		name = "ACTIONNAME179091B" #Don't press our claims
		command = { type = stability value = 1 }
		command = { type = vp value = -5 }
	}
}

#(1492) The meteorite of Ensisheim
event = {
	id = 179010
	trigger = {
		OR = {
			owned = { province = 374 data = -1 } #Alsace
			owned = { province = 373 data = -1 } #Baden
		}
	}
	random = no
	country = HAB
	name = "EVENTNAME179010" #The thunderstone of Ensisheim
	desc = "EVENTHIST179010"
	#-#On November 7th 1492 a meteorite weighing 250 pounds - hence the greatest meteorite ever discovered - fell on a wheat field close to Ensisheim, the capital of Alsace. Emperor Maximilian who was staying in the city at that time in preparation of his campaign against Charles VIII used this event for his propaganda, interpreting it as a sign for divine approval. Later the object attracted great interest and scholars from all of Europe came to examine it, and the brotherhood of the Gardiens de la Meteorite d'Ensisheim was founded that guards it until today.

	date = { day = 6 month = november year = 1492 }

	action_a = {
		name = "ACTIONNAME179010A" #This is a divine sign
		command = { type = stability value = 1 }
		command = { type = casusbelli which = FRA value = 12 }
	}
}

#(1493) Inheritance of Tyrol
event = {
	id = 179155
	trigger = {
		monarch = 055502 #Maximilian I, just in case
		event = 179003 #HAB: Inheritance of Tyrol
	}
	random = no
	country = HAB
	name = "EVENTNAME179003" #The claim to Tirol and Vorlande
	desc = "EVENTHIST179155"
	#-#When Maximilian I ascended to the throne of Austria, lands of Duchy of Tyrol he inherited from Duke Sigismund were formally united with the Archduchy of Austria.

	date = { day = 21 month = August year = 1493 }

	action_a = {
		name = "GOOD"
		command = { type = inherit which = TYR }
		command = { type = addcore which = 371 } #Tirol
		command = { type = addcore which = 373 } #Baden (Breisgau)
		#command = { type = addcore which = 374 } #Alsace to be changed to new Sundgau province as soon as new map appears
	}
}

#(1493) Move to Innsbruck (all options)
event = {
	id = 179113
	trigger = {
		owned = { province = 351 data = -1 } #Austria
		control = { province = 351 data = -1 } #Austria
		owned = { province = 327 data = -1 } #Ostmarch
		control = { province = 327 data = -1 } #Ostmarch
		owned = { province = 371 data = -1 } #Tirol
		control = { province = 371 data = -1 } #Tirol
		owned = { province = 369 data = -1 } #Styria
		control = { province = 369 data = -1 } #Styria
	}
	random = no
	country = HAB
	name = "EVENTNAME179113" #Maximilian's residence
	desc = "EVENTHIST179113"
	#-#Having inherited Tyrol from the childless Sigismund, Maximilian instantly fell in love with the country and the city of Innsbruck. He called it 'a peasant's garb that keeps me warm'. The mountains, the abundance of game and the beautiful nature always attracted him to Tyrol where he used to hunt or go climbing in the Alps. Innsbruck became the center of his Empire and his new administrative institutions. It was also turned into a center of arts, with the painter Albrecht Dürer, the moulders Stefan Godl, Peter Fischer and Peter Löffler and the architect and sculptor Nikolaus Türing working there for the emperor. Trade between Italy and Germany was directed through Innsbruck, which became also the economic center of Austria and Southern Germany. Exploiting the vast iron resources of Tyrol, cannons and other weapons were produced in the new gun foundries in Mühlau and Büchsenhausen. The arsenal in Sill near Innsbruck became the one of the biggest in Europe.

	date = { day = 22 month = august year = 1493 }

	action_a = {
		name = "ACTIONNAME179113A" #Reside in Innsbruck
		command = { type = capital which = 371 } #Tirol
		command = { type = gainmanufactory which = 371 value = weapons } #Tirol
		command = { type = provincetax which = 371 value = 2 } #Tirol
		command = { type = treasury value = -200 }
	}
	action_b = {
		name = "ACTIONNAME179113B" #Reside in Vienna
		command = { type = capital which = 351 } #Austria
		command = { type = provincetax which = 351 value = 2 } #Austria
		command = { type = stability value = 1 }
	}
	action_c = {
		name = "ACTIONNAME179113C" #Reside in Linz
		command = { type = capital which = 327 } #Ostmarch
		command = { type = provincetax which = 327 value = 1 } #Ostmarch
		command = { type = stability value = 3 }
	}
	action_d = {
		name = "ACTIONNAME179113D" #Reside in Graz
		command = { type = capital which = 369 } #Steiermark
		command = { type = provincetax which = 369 value = 1 } #Steiermark
		command = { type = mine which = 369 value = 4 } #Steiermark
	}
}
#(1493) Move to Innsbruck (without Graz)
event = {
	id = 179114
	trigger = {
		owned = { province = 351 data = -1 } #Austria
		control = { province = 351 data = -1 } #Austria
		owned = { province = 327 data = -1 } #Ostmarch
		control = { province = 327 data = -1 } #Ostmarch
		owned = { province = 371 data = -1 } #Tirol
		control = { province = 371 data = -1 } #Tirol
		NOT = { owned = { province = 369 data = -1 } } #Styria
	}
	random = no
	country = HAB
	name = "EVENTNAME179113" #Maximilian's residence
	desc = "EVENTHIST179113"
	#-#Having inherited Tyrol from the childless Sigismund, Maximilian instantly fell in love with the country and the city of Innsbruck. He called it 'a peasant's garb that keeps me warm'. The mountains, the abundance of game and the beautiful nature always attracted him to Tyrol where he used to hunt or go climbing in the Alps. Innsbruck became the center of his Empire and his new administrative institutions. It was also turned into a center of arts, with the painter Albrecht Dürer, the moulders Stefan Godl, Peter Fischer and Peter Löffler and the architect and sculptor Nikolaus Türing working there for the emperor. Trade between Italy and Germany was directed through Innsbruck, which became also the economic center of Austria and Southern Germany. Exploiting the vast iron resources of Tyrol, cannons and other weapons were produced in the new gun foundries in Mühlau and Büchsenhausen. The arsenal in Sill near Innsbruck became the one of the biggest in Europe.

	date = { day = 22 month = august year = 1493 }

	action_a = {
		name = "ACTIONNAME179113A" #Reside in Innsbruck
		command = { type = capital which = 371 } #Tirol
		command = { type = gainmanufactory which = 371 value = weapons } #Tirol
		command = { type = provincetax which = 371 value = 2 } #Tirol
		command = { type = treasury value = -200 }
	}
	action_b = {
		name = "ACTIONNAME179113B" #Reside in Vienna
		command = { type = capital which = 351 } #Austria
		command = { type = provincetax which = 351 value = 2 } #Austria
		command = { type = stability value = 1 }
	}
	action_c = {
		name = "ACTIONNAME179113C" #Reside in Linz
		command = { type = capital which = 327 } #Ostmarch
		command = { type = provincetax which = 327 value = 1 } #Ostmarch
		command = { type = stability value = 3 }
	}
}
#(1493) Move to Innsbruck (without Linz)
event = {
	id = 179115
	trigger = {
		owned = { province = 351 data = -1 } #Austria
		control = { province = 351 data = -1 } #Austria
		NOT = { owned = { province = 327 data = -1 } } #Ostmarch
		owned = { province = 371 data = -1 } #Tirol
		control = { province = 371 data = -1 } #Tirol
		owned = { province = 369 data = -1 } #Styria
		control = { province = 369 data = -1 } #Styria
	}
	random = no
	country = HAB
	name = "EVENTNAME179113" #Maximilian's residence
	desc = "EVENTHIST179113"
	#-#Having inherited Tyrol from the childless Sigismund, Maximilian instantly fell in love with the country and the city of Innsbruck. He called it 'a peasant's garb that keeps me warm'. The mountains, the abundance of game and the beautiful nature always attracted him to Tyrol where he used to hunt or go climbing in the Alps. Innsbruck became the center of his Empire and his new administrative institutions. It was also turned into a center of arts, with the painter Albrecht Dürer, the moulders Stefan Godl, Peter Fischer and Peter Löffler and the architect and sculptor Nikolaus Türing working there for the emperor. Trade between Italy and Germany was directed through Innsbruck, which became also the economic center of Austria and Southern Germany. Exploiting the vast iron resources of Tyrol, cannons and other weapons were produced in the new gun foundries in Mühlau and Büchsenhausen. The arsenal in Sill near Innsbruck became the one of the biggest in Europe.

	date = { day = 22 month = august year = 1493 }

	action_a = {
		name = "ACTIONNAME179113A" #Reside in Innsbruck
		command = { type = capital which = 371 } #Tirol
		command = { type = gainmanufactory which = 371 value = weapons } #Tirol
		command = { type = provincetax which = 371 value = 2 } #Tirol
		command = { type = treasury value = -200 }
	}
	action_b = {
		name = "ACTIONNAME179113B" #Reside in Vienna
		command = { type = capital which = 351 } #Austria
		command = { type = provincetax which = 351 value = 2 } #Austria
		command = { type = stability value = 1 }
	}
	action_c = {
		name = "ACTIONNAME179113D" #Reside in Graz
		command = { type = capital which = 369 } #Steiermark
		command = { type = provincetax which = 369 value = 1 } #Steiermark
		command = { type = mine which = 369 value = 4 } #Steiermark
	}
}
#(1493) Move to Innsbruck (without Vienna)
event = {
	id = 179116
	trigger = {
		NOT = { owned = { province = 351 data = -1 } } #Austria
		owned = { province = 327 data = -1 } #Ostmarch
		control = { province = 327 data = -1 } #Ostmarch
		owned = { province = 371 data = -1 } #Tirol
		control = { province = 371 data = -1 } #Tirol
		owned = { province = 369 data = -1 } #Styria
		control = { province = 369 data = -1 } #Styria
	}
	random = no
	country = HAB
	name = "EVENTNAME179113" #Maximilian's residence
	desc = "EVENTHIST179113"
	#-#Having inherited Tyrol from the childless Sigismund, Maximilian instantly fell in love with the country and the city of Innsbruck. He called it 'a peasant's garb that keeps me warm'. The mountains, the abundance of game and the beautiful nature always attracted him to Tyrol where he used to hunt or go climbing in the Alps. Innsbruck became the center of his Empire and his new administrative institutions. It was also turned into a center of arts, with the painter Albrecht Dürer, the moulders Stefan Godl, Peter Fischer and Peter Löffler and the architect and sculptor Nikolaus Türing working there for the emperor. Trade between Italy and Germany was directed through Innsbruck, which became also the economic center of Austria and Southern Germany. Exploiting the vast iron resources of Tyrol, cannons and other weapons were produced in the new gun foundries in Mühlau and Büchsenhausen. The arsenal in Sill near Innsbruck became the one of the biggest in Europe.

	date = { day = 22 month = august year = 1493 }

	action_a = {
		name = "ACTIONNAME179113A" #Reside in Innsbruck
		command = { type = capital which = 371 } #Tirol
		command = { type = gainmanufactory which = 371 value = weapons } #Tirol
		command = { type = provincetax which = 371 value = 2 } #Tirol
		command = { type = treasury value = -200 }
	}
	action_b = {
		name = "ACTIONNAME179113C" #Reside in Linz
		command = { type = capital which = 327 } #Ostmarch
		command = { type = provincetax which = 327 value = 1 } #Ostmarch
		command = { type = stability value = 3 }
	}
	action_c = {
		name = "ACTIONNAME179113D" #Reside in Graz
		command = { type = capital which = 369 } #Steiermark
		command = { type = provincetax which = 369 value = 1 } #Steiermark
		command = { type = mine which = 369 value = 4 } #Steiermark
	}
}
#(1493) Maximilian's residence (without Innsbruck)
event = {
	id = 179117
	trigger = {
		owned = { province = 351 data = -1 } #Austria
		control = { province = 351 data = -1 } #Austria
		owned = { province = 327 data = -1 } #Ostmarch
		control = { province = 327 data = -1 } #Ostmarch
		NOT = { owned = { province = 371 data = -1 } } #Tirol
		owned = { province = 369 data = -1 } #Styria
		control = { province = 369 data = -1 } #Styria
	}
	random = no
	country = HAB
	name = "EVENTNAME179113" #Maximilian's residence
	desc = "EVENTHIST179113"
	#-#Having inherited Tyrol from the childless Sigismund, Maximilian instantly fell in love with the country and the city of Innsbruck. He called it 'a peasant's garb that keeps me warm'. The mountains, the abundance of game and the beautiful nature always attracted him to Tyrol where he used to hunt or go climbing in the Alps. Innsbruck became the center of his Empire and his new administrative institutions. It was also turned into a center of arts, with the painter Albrecht Dürer, the moulders Stefan Godl, Peter Fischer and Peter Löffler and the architect and sculptor Nikolaus Türing working there for the emperor. Trade between Italy and Germany was directed through Innsbruck, which became also the economic center of Austria and Southern Germany. Exploiting the vast iron resources of Tyrol, cannons and other weapons were produced in the new gun foundries in Mühlau and Büchsenhausen. The arsenal in Sill near Innsbruck became the one of the biggest in Europe.

	date = { day = 22 month = august year = 1493 }

	action_a = {
		name = "ACTIONNAME179113B" #Reside in Vienna
		command = { type = capital which = 351 } #Austria
		command = { type = provincetax which = 351 value = 2 } #Austria
		command = { type = stability value = 1 }
	}
	action_b = {
		name = "ACTIONNAME179113C" #Reside in Linz
		command = { type = capital which = 327 } #Ostmarch
		command = { type = provincetax which = 327 value = 1 } #Ostmarch
		command = { type = stability value = 3 }
	}
	action_c = {
		name = "ACTIONNAME179113D" #Reside in Graz
		command = { type = capital which = 369 } #Steiermark
		command = { type = provincetax which = 369 value = 1 } #Steiermark
		command = { type = mine which = 369 value = 4 } #Steiermark
	}
}

#(1494) Milan renews its allegiance to the Empire (HAB event replacing vanilla HAB_3181)
event = {
	id = 179024 #triggered by MLO_228018 A
	trigger = { emperor = yes }
	random = no
	country = HAB
	name = "EVENTNAME179024" #Milan renews its allegiance to the Empire
	desc = "EVENTHIST228018"
	#-#In order to strengthen his position against any claims to the throne which could have been pressed from Ferdinando I of Naples or from Charles VIII King of France, Ludovico il Moro begun intensive diplomatic handlings with Emperor Friedrich III's son Maximilian. On 16 March 1493 a wedding promise was agreed between the King of the Romans Maximilian and il Moro's daughter Bianca Maria to be celebrated at the end of the year and on 24 June 1493 a first agreement on the Sforza's imperial investiture was reached. The agreement and the investiture of the duchy will remain secret until Duke Gian Galeazzo's death, because based upon the formal reason that Galeazzo Maria, il Moro's brother and Gian Galeazzo's father, who died assassinated in 1476, was already born when Francesco Sforza still had to proclaim himself Duke of Milan.

	action_a = {
		name = "ACTIONNAME179024A" #Milan is our fief
		command = { type = relation which = MLO value = 50 }
		command = { type = treasury value = 200 }
		command = { type = dynastic which = MLO } #Maximilian of Habsburg and Bianca Maria Sforza
	}
}

#(1495-1498) The Anti-French League of Venice
event = {
	id = 179025
	trigger = {
		OR = {
			event = 12144 #ARG: The Anti-French League of Venice
			event = 12143 #SPA: The Anti-French League of Venice
		}
	}
	random = no
	country = HAB
	name = "EVENTNAME326035" #The Anti-French League of Venice
	desc = "EVENTHIST170040"
	#-#The presence of Charles VIII of France in the Kingdom of Naples scared the Italian princes, who had in a certain way permitted the French King to achieve his goal of settling there almost undisturbed. Venice and Florence were worried about a French hegemony in the peninsula. French military presence wasn't limited to Southern Italy but also to villages of Tuscany and the Papal States, which previously surrendered to Charles VIII in his march towards Naples, strategically located to grant the French military supply line. The Pope, who previously granted the French King military access through the Papal territories and consented his stay in Rome, felt in jeopardy as much as to refuse Charles VIII being proclaimed King of Naples. Also King Ferdinand of Aragon couldn't accept the French presence in a Kingdom where he instead, in spite of Alfons V's testament which assigned Naples to the other Trastamara branch, could be the one to have claims there. The position of Naples was also important for the Aragonese trading in the Mediterranean. The Duke of Milan, who decisively affected Charles VIII's decision to settle in Naples, was now alarmed by the presence of French reserve troops deployed in the county of Asti, very close to Milan and at the order of the Duke of Orléans, who had dynastical claims to the Milanese throne. So Venice, Milan, the Pope, Spain and even the Holy Roman Empire (so firmly opposed to the French expansionism in Italy as to join any Anti-French alliance available) consequently formed the Anti-French league in Venice on 31 March 1495. Florence preferred to stay out because of her internal problems caused by Charles VIII's passage and decided to support France instead. Having heard about those arrangements and fearing that the confederates would isolate his army in Italy, Charles VIII decided to return to France for reinforcements leaving his regent in Naples. He had to move his army quickly through the Apennines as to reach the Alps and then safety, but the presence of heavy artilleries and carriages transporting the big loot he accumulated across Italy, slowed his march down. Only at Fornovo on the Taro River, in the Po Valley, Charles VIII finally faced the army of the confederates. Despite having lost all the carriages, he managed to reach the Alps gaining from his expedition to Italy nothing but his army decimated by epidemies.

	date = { day = 0 month = January year = 1495 }
	offset = 20
	deathdate = { day = 0 month = April year = 1498 }

	action_a = {
		name = "ACTIONNAME17024A" #Express Support
		command = { type = casusbelli which = FRA value = 36 }
		command = { type = relation which = FRA value = -150 }
		command = { type = relation which = ARG value = 50 }
		command = { type = relation which = MLO value = 25 }
		command = { type = relation which = VEN value = 25 }
		command = { type = relation which = PAP value = 50 }
	}
	action_b = {
		name = "ACTIONNAME17024B" #Stay neutral
		command = { type = stability value = -1 }
		command = { type = relation which = FRA value = 10 }
		command = { type = relation which = ARG value = -25 }
		command = { type = relation which = MLO value = -25 }
		command = { type = relation which = VEN value = -25 }
		command = { type = relation which = PAP value = -25 }
	}
	action_c = {
		name = "ACTIONNAME17024C" #Express Hostility
		command = { type = stability value = -2}
		command = { type = relation which = FRA value = 50 }
		command = { type = relation which = ARG value = -50 }
		command = { type = relation which = MLO value = -50 }
		command = { type = relation which = VEN value = -50 }
		command = { type = relation which = PAP value = -50 }
	}
}

#(1496) Political marriages with the Spanish royals
#by Bordic
event = {
	id = 179032 #triggered by BUR_137022
	random = no
	country = HAB
	name = "EVENTNAME179032" #Political marriages with the Spanish royals
	desc = "EVENTHIST137022"
	#-#In 1494 Charles VIII invaded Italy. Maximilian of Habsburg, alarmed at the successful progress of Charles VIII in the Italian peninsula, signed the league of Venice with Spain, Venice and Milan to face the powerful French army in the Kingdom of Naples and in the imperial territories in Northern Italy and, in order to strengthen the ties with the new Spanish ally, at about the same time he arranged a marriage between his children, Marguerite and Philippe, and Juan and Juana, son and daughter of Ferdinand and Isabella, respectively King of Aragon and Queen of Castile.

	action_a = {
		name = "ACTIONNAME179032A" #Let's bind our destiny to the Catholic Kings
		command = { type = stability value = 1 }
		command = { type = dynastic which = SPA }
		command = { type = DIP which = 2 value = 12 }
		command = { type = relation which = FRA value = -50 }
		command = { type = relation which = BUR value = 20 }
	}
}

#(1497-1514) The Swabian war
event = {
	id = 20305 #triggered by HEL_20303 A
	random = no
	country = HAB
	name = "EVENTNAME20305" #The Swiss must have a master
	desc = "EVENTHIST20305"
	#-#We have tried to reestablish our ancestral domination over the Swiss, but this pathetic bunch refuses to pay our imperial taxes and to submit to our courthouses!

	action_a = {
		name = "ACTIONNAME20305A" #Prepare for war
		command = { type = casusbelli which = HEL value = 24 }
	}
	action_b = {
		name = "ACTIONNAME20305B" #Oh well... we will take care of them later
		command = { type = relation which = HEL value = 20 }
	}
	action_c = {
		name = "ACTIONNAME20305C" #Let them have full independence
		command = { type = relation which = HEL value = 100 }
		command = { type = revoltrisk which = 24 value = 1 }
		command = { type = domestic which = centralization value = -1 }
	}
}
#(1497-1514) Austria vassalizes Switzerland
event = {
	id = 20304 #triggered by HEL_20303 B
	random = no
	country = HAB
	name = "EVENTNAME20304" #The Swiss must have a master
	desc = "EVENTHIST20304"
	#-#At last, the Swiss acknowledge our authority. They must have a master! Let us promote our judges and tax collectors there.

	action_a = {
		name = "GOOD_NEWS"
		command = { type = vassal which = HEL }
		command = { type = DIP which = 2 value = 36 }
		command = { type = vp value = 5 }
	}
}

#(1505-1510) The rewards of mediation (edited and connected with Bavarian event)
event = {
	id = 179001
	trigger = {
		emperor = yes
		exists = BAY
		exists = PFA
		event = 255001 #PFA: Landshut succession
		NOT = { event = 125014 } #BAY: Inheritance of Bavaria-Landshut
	}
	random = no
	country = HAB
	name = "EVENTNAME179001" #The rewards of mediation
	desc = "EVENTHIST179001"
	#-#On December 1st 1503 Duke Georg the Rich of Bayern-Landshut died without a male successor. Despite several treaties made in the 15th century that should secure the inheritance for Bavaria-Munich he declared his daughter Elisabeth and her husband, the palatine elector Ruprecht, heirs of his duchy. This caused a war between the palatine and the bavarian Wittelsbach branches for the inheritance. Albrecht IV of Bavaria-Munich turned to Emperor Maximilian for support, and Maximilian granted this when he decided in favour of Bavaria in an arbitration in Cologne on June 30th 1505. The Habsburgs were rewarded with a few counties in southern Bavaria for their aid.

	date = { day = 29 month = june year = 1505 }
	offset = 1
	deathdate = { day = 29 month = december year = 1510 }

	action_a = {
		name = "ACTIONNAME179001A" #Decide in favour of Bavaria
		command = { type = relation which = BAY value = 100 }
		command = { type = relation which = PFA value = -100 }
		command = { type = population which = 371 value = 2000 } #Tirol
		command = { type = provincetax which = 371 value = 1 } #Tirol
		command = { type = trigger which = 125014 } #BAY: Inheritance of Bavaria-Landshut
	}
	action_b = {
		name = "ACTIONNAME179001B" #Decide in favour of the Palatinate
		command = { type = relation which = BAY value = -100 }
		command = { type = relation which = PFA value = 100 }
		command = { type = trigger which = 255007 } #PFA: Inheritance of Bavaria-Landshut
	}
}

#(1508) League of Cambrai (FRA accepts)
#reworked by Isaac Brock
event = {
	id = 17021 #triggered by FRA_3107 A
	random = no
	country = HAB
	name = "EVENTNAME3107" #The League of Cambrai
	desc = "EVENTHIST3107"
	#-#Since 1495, Venice had been holding the main ports of Apulia despite Aragonese claims to have them back. With the French invasion of Milan, Venice had acquired Milanese territories east of the Adda River, and upon the fall of Cesare Borgia had also acquired Rimini, Faenza and Ravenna, against the will of Pope Julius II. The Venetians also held Veneto and Friuli, on which Maximilian of Habsburg had imperial claims. In late 1507 Maximilian announced his intention to travel to Italy to receive the imperial investiture from the Pope himself, and in early 1508 he assembled a big army to escort him down to Rome. He requested free passage through Venetian territories, but was told that he would be allowed passage only without his army. Enraged at the answer, Maximilian attacked Venice, but this decision proved unwise: Venice not only routed the imperial army but also seized the imperial cities of Trieste, Gorz and Fiume. A second assault by a Tyrolean force several weeks later was an even greater failure, forcing Maximilian to conclude a humiliating three-year truce. With Pope Julius II's assent, Maximilian took the title of 'Emperor-elect', thus breaking the century-old custom that the Holy Roman Emperor had to be crowned by the Pope. Shortly afterward, Venice provided a pretext for war by appointing her own candidate to the vacant bishopric of Vicenza. The Emperor, the King of France and Ferdinand of Aragon gathered in Cambrai in December 1508 to sign a treaty which seemed to be a defensive alliance against the Turk. In reality they meant to form a league to attack Venice and deprive the Serenissima of most of her mainland territories. Pope Julius II, after a renewed Venetian refusal to give the Romagna lands back to the Papacy, ratified the treaty and at the same time proceeded to excommunicate all Venetian citizens. Ferrara and Mantua, each with separate claims to territories held by Venice, joined the league as well. In April 1509 military operations started, and a month later French troops decimated one of the two Venetian armies at the battle of Agnadello. Even though in August 1509 Venice managed to eliminate Mantua from the war, she still faced the collapse of her strategic position and had by February 24, 1510 to accept the papal demands on the cities she had occupied in Romagna. However, Pope Julius II was still not satisfied and demanded that the war be prosecuted until Venice conceded control over their church to the Pope and compensated him for his expenses. The Council of Ten had privately resolved that the terms had been accepted under duress and were therefore invalid, and that Venice should violate them at the earliest opportunity. This opportunity presented itself shortly afterward.

	action_a = {
		name = "ACTIONNAME3107A" #Express Support
		command = { type = casusbelli which = VEN value = 36 }
		command = { type = relation which = VEN value = -150 }
		command = { type = relation which = FRA value = 150 }
		command = { type = relation which = PAP value = 150 }
		command = { type = relation which = ARG value = 150 }
		command = { type = relation which = SPA value = 100 }
		command = { type = relation which = BUR value = 200 }
	}
	action_b = {
		name = "ACTIONNAME3107B" #Ignore
		command = { type = relation which = VEN value = 50 }
		command = { type = relation which = FRA value = -50 }
		command = { type = relation which = PAP value = -50 }
		command = { type = relation which = ARG value = -50 }
	}
	action_c = {
		name = "ACTIONNAME3107C" #Express Hostility
		command = { type = relation which = VEN value = 150 }
		command = { type = relation which = FRA value = -150 }
		command = { type = relation which = PAP value = -150 }
		command = { type = relation which = ARG value = -150 }
	}
}
#(1508) League of Cambrai (FRA refuses)
#reworked by Isaac Brock and by Bordic
event = {
	id = 17022 #triggered by FRA_3107 B/C
	random = no
	country = HAB
	name = "EVENTNAME3107" #The League of Cambrai
	desc = "EVENTHIST3107"
	#-#Since 1495, Venice had been holding the main ports of Apulia despite Aragonese claims to have them back. With the French invasion of Milan, Venice had acquired Milanese territories east of the Adda River, and upon the fall of Cesare Borgia had also acquired Rimini, Faenza and Ravenna, against the will of Pope Julius II. The Venetians also held Veneto and Friuli, on which Maximilian of Habsburg had imperial claims. In late 1507 Maximilian announced his intention to travel to Italy to receive the imperial investiture from the Pope himself, and in early 1508 he assembled a big army to escort him down to Rome. He requested free passage through Venetian territories, but was told that he would be allowed passage only without his army. Enraged at the answer, Maximilian attacked Venice, but this decision proved unwise: Venice not only routed the imperial army but also seized the imperial cities of Trieste, Gorz and Fiume. A second assault by a Tyrolean force several weeks later was an even greater failure, forcing Maximilian to conclude a humiliating three-year truce. With Pope Julius II's assent, Maximilian took the title of 'Emperor-elect', thus breaking the century-old custom that the Holy Roman Emperor had to be crowned by the Pope. Shortly afterward, Venice provided a pretext for war by appointing her own candidate to the vacant bishopric of Vicenza. The Emperor, the King of France and Ferdinand of Aragon gathered in Cambrai in December 1508 to sign a treaty which seemed to be a defensive alliance against the Turk. In reality they meant to form a league to attack Venice and deprive the Serenissima of most of her mainland territories. Pope Julius II, after a renewed Venetian refusal to give the Romagna lands back to the Papacy, ratified the treaty and at the same time proceeded to excommunicate all Venetian citizens. Ferrara and Mantua, each with separate claims to territories held by Venice, joined the league as well. In April 1509 military operations started, and a month later French troops decimated one of the two Venetian armies at the battle of Agnadello. Even though in August 1509 Venice managed to eliminate Mantua from the war, she still faced the collapse of her strategic position and had by February 24, 1510 to accept the papal demands on the cities she had occupied in Romagna. However, Pope Julius II was still not satisfied and demanded that the war be prosecuted until Venice conceded control over their church to the Pope and compensated him for his expenses. The Council of Ten had privately resolved that the terms had been accepted under duress and were therefore invalid, and that Venice should violate them at the earliest opportunity. This opportunity presented itself shortly afterward.

	action_a = {
		name = "ACTIONNAME3107A" #Express Support
		command = { type = casusbelli which = VEN value = 36 }
		command = { type = relation which = VEN value = -150 }
		command = { type = relation which = FRA value = 150 }
		command = { type = relation which = PAP value = 150 }
		command = { type = relation which = ARG value = 150 }
		command = { type = relation which = SPA value = 100 }
		command = { type = relation which = BUR value = 200 }
	}
	action_b = {
		name = "ACTIONNAME3107B" #Ignore
		command = { type = relation which = VEN value = 50 }
		command = { type = relation which = FRA value = -50 }
		command = { type = relation which = PAP value = -50 }
		command = { type = relation which = ARG value = -50 }
		command = { type = sleepevent which = 3545 } #PAP: The League of Cambrai
		command = { type = sleepevent which = 17020 } #SPA: The League of Cambrai
		command = { type = sleepevent which = 17019 } #ARG: The League of Cambrai
		command = { type = sleepevent which = 220009 } #MAN: The League of Cambrai
		command = { type = sleepevent which = 252009 } #MOD: The League of Cambrai
		command = { type = sleepevent which = 17018 } #VEN: Realizing Great Danger
		command = { type = sleepevent which = 17024 } #PAP: The Holy League against France
		command = { type = sleepevent which = 236006 } #MUS: The Holy League against France (no PAP)
	}
	action_c = {
		name = "ACTIONNAME3107C" #Express Hostility
		command = { type = relation which = VEN value = 150 }
		command = { type = relation which = FRA value = -150 }
		command = { type = relation which = PAP value = -150 }
		command = { type = relation which = ARG value = -150 }
		command = { type = sleepevent which = 3545 } #PAP: The League of Cambrai
		command = { type = sleepevent which = 17020 } #SPA: The League of Cambrai
		command = { type = sleepevent which = 17019 } #ARG: The League of Cambrai
		command = { type = sleepevent which = 220009 } #MAN: The League of Cambrai
		command = { type = sleepevent which = 252009 } #MOD: The League of Cambrai
		command = { type = sleepevent which = 17018 } #VEN: Realizing Great Danger
		command = { type = sleepevent which = 17024 } #PAP: The Holy League against France
		command = { type = sleepevent which = 236006 } #MUS: The Holy League against France (no PAP)
	}
}
#(1508-1509) League of Cambrai (FRA doesn't exists or FRA3107 doesn't fire)
#reworked by Isaac Brock
event = {
	id = 3182
	trigger = {
		exists = VEN
		event = 17017 #VEN: Seeing a Chance in Romagna
		NOT = { event = 3107 } #earlier FRA Cambrai event
	}
	random = no
	country = HAB
	name = "EVENTNAME3107" #The League of Cambrai
	desc = "EVENTHIST3107"
	#-#Since 1495, Venice had been holding the main ports of Apulia despite Aragonese claims to have them back. With the French invasion of Milan, Venice had acquired Milanese territories east of the Adda River, and upon the fall of Cesare Borgia had also acquired Rimini, Faenza and Ravenna, against the will of Pope Julius II. The Venetians also held Veneto and Friuli, on which Maximilian of Habsburg had imperial claims. In late 1507 Maximilian announced his intention to travel to Italy to receive the imperial investiture from the Pope himself, and in early 1508 he assembled a big army to escort him down to Rome. He requested free passage through Venetian territories, but was told that he would be allowed passage only without his army. Enraged at the answer, Maximilian attacked Venice, but this decision proved unwise: Venice not only routed the imperial army but also seized the imperial cities of Trieste, Gorz and Fiume. A second assault by a Tyrolean force several weeks later was an even greater failure, forcing Maximilian to conclude a humiliating three-year truce. With Pope Julius II's assent, Maximilian took the title of 'Emperor-elect', thus breaking the century-old custom that the Holy Roman Emperor had to be crowned by the Pope. Shortly afterward, Venice provided a pretext for war by appointing her own candidate to the vacant bishopric of Vicenza. The Emperor, the King of France and Ferdinand of Aragon gathered in Cambrai in December 1508 to sign a treaty which seemed to be a defensive alliance against the Turk. In reality they meant to form a league to attack Venice and deprive the Serenissima of most of her mainland territories. Pope Julius II, after a renewed Venetian refusal to give the Romagna lands back to the Papacy, ratified the treaty and at the same time proceeded to excommunicate all Venetian citizens. Ferrara and Mantua, each with separate claims to territories held by Venice, joined the league as well. In April 1509 military operations started, and a month later French troops decimated one of the two Venetian armies at the battle of Agnadello. Even though in August 1509 Venice managed to eliminate Mantua from the war, she still faced the collapse of her strategic position and had by February 24, 1510 to accept the papal demands on the cities she had occupied in Romagna. However, Pope Julius II was still not satisfied and demanded that the war be prosecuted until Venice conceded control over their church to the Pope and compensated him for his expenses. The Council of Ten had privately resolved that the terms had been accepted under duress and were therefore invalid, and that Venice should violate them at the earliest opportunity. This opportunity presented itself shortly afterward.

	date = { day = 10 month = December year = 1508 } #must be after deathdate of FRA_3107
	offset = 5
	deathdate = { day = 1 month = April year = 1509 }

	action_a = {
		name = "ACTIONNAME3107A" #Express Support
		command = { type = casusbelli which = VEN value = 72 }
		command = { type = relation which = VEN value = -150 }
		command = { type = relation which = FRA value = 150 }
		command = { type = relation which = PAP value = 150 }
		command = { type = relation which = ARG value = 150 }
		command = { type = relation which = SPA value = 100 }
		command = { type = relation which = BUR value = 200 }
	}
	action_b = {
		name = "ACTIONNAME3107B" #Ignore
		command = { type = relation which = VEN value = 50 }
		command = { type = relation which = FRA value = -50 }
		command = { type = relation which = PAP value = -50 }
		command = { type = relation which = ARG value = -50 }
		command = { type = sleepevent which = 17018 } #VEN: Realizing Great Danger
	}
	action_c = {
		name = "ACTIONNAME3107C" #Express Hostility
		command = { type = relation which = VEN value = 150 }
		command = { type = relation which = FRA value = -150 }
		command = { type = relation which = PAP value = -150 }
		command = { type = relation which = ARG value = -150 }
		command = { type = sleepevent which = 17018 } #VEN: Realizing Great Danger
	}
}

#(1510-1512) Holy League of 1510 - Austrian Version
event = {
	id = 17025
	trigger = {
		OR = {
			event = 17024 #PAP: The Holy League against France
			event = 236006 #MUS: The Holy League against France
		}
	}
	random = no
	country = HAB
	name = "EVENTNAME17024" #The Holy League against France
	desc = "EVENTHIST17024"
	#-#In 1510 Venice submitted to the Pope, thus lessening the league of Cambrai. Conditions were hard for Venice, the Republic had to renounce her traditional power to appoint bishops as well as all jurisdiction over Papal subjects in Venetian territory and was to compensate Pope Julius II for his war expenses needed to recapture the Papal holdings in Romagna, while the Pope accepted the humble request of the Republic for pardon, cancelling the interdict. But the reconciliation between Venice and the Pope did not stop the French to continue the war against Venice with attacks to her cities in Terraferma. Julius II, in the meanwhile, had become increasingly concerned by the growing French presence in Italy and formulated plans, both to chase the French out of the Po Valley and to seize the Duchy of Ferrara, a French ally, with the intention to add the territories of Modena, Reggio and Ferrara to the Papal States. In realizing his plan the Pope immediately excommunicated Alfonso d'Este, Duke of Ferrara, declaring his fief forfeited for his remaining loyal to France, then he gained the military support of Venice, eager to recover her territories lost to the French a armies and hired an army of Swiss mercenaries to attack Milan as to isolate the French armies in Italy. However his plans failed as the French army managed to invade Romagna and occupy the cities of Bologna and Ravenna, supported by the powerful and celebrated artillery of Duke Alfonso d'Este. In addition, in response to Pope's switching sides, Louis XII of France convoked a Schismatic Council at Pisa as to have the 'Warrior Pope' deposed. Pope Julius II, having unsuccessfully pressed the Republic of Florence to refuse hosting the schismatic cardinals, proclaimed the Holy League against France and convoked a Council of his own to meet at the Lateran in Rome. The promise of territorial gains at French expense caused Ferdinand II of Aragon and Emperor Maximilian I to abandon their alliance with the French, and in October 1511, they joined the newly-formed Holy League together with Julius II and the Republic of Venice. In November, Henry VIII of England and the Swiss confederation joined as well.

	date = { day = 10 month = October year = 1510 }
	offset = 500
	deathdate = { day = 1 month = april year = 1512 }

	action_a = {
		name = "ACTIONNAME17024A" #Express Support
		command = { type = casusbelli which = FRA value = 36 }
		command = { type = relation which = FRA value = -150 }
		command = { type = relation which = VEN value = 150 }
		command = { type = relation which = ENG value = 150 }
		command = { type = relation which = ARG value = 150 }
		command = { type = relation which = PAP value = 150 }
		command = { type = relation which = SPA value = 100 }
		command = { type = relation which = BUR value = 200 }
	}
	action_b = {
		name = "ACTIONNAME17024B" #Stay neutral
		command = { type = relation which = FRA value = 50 }
		command = { type = relation which = ENG value = -50 }
		command = { type = relation which = VEN value = -50 }
		command = { type = relation which = ARG value = -50 }
		command = { type = relation which = PAP value = -50 }
	}
	action_c = {
		name = "ACTIONNAME17024C" #Express Hostility
		command = { type = relation which = FRA value = 150 }
		command = { type = relation which = ENG value = -150 }
		command = { type = relation which = VEN value = -150 }
		command = { type = relation which = ARG value = -150 }
		command = { type = relation which = PAP value = -150 }
	}
}

#(1512) Seamless mantle of Christ discovered
event = {
	id = 179011
	random = no
	country = HAB
	name = "EVENTNAME179011" #The Seamless Mantle of Jesus Christ
	desc = "EVENTHIST179011"
	#-#The discovery of the Seamless Mantle of Jesus Christ by Emperor Maximilian in the cathedral of Trier in 1512 is an event around which several legends entwine. According to the most popular one, an angel appeared to Maximilian in Cologne telling him to ride to Trier. When he entered the cathedral of Trier, suddenly 15 candles on the altar began to burn. The altar was moved, and beyond there was a mantle made of one piece of cloth that the present clerics identified as the mantle of Christ, and some dice recognized as the dice of the guards who crucified him. This seamless mantle became the symbol for the Holy Roman Empire and the undivided Christian world.

	date = { day = 1 month = january year = 1512 }
	offset = 150
	deathdate = { day = 29 month = december year = 1512 }

	action_a = {
		name = "ACTIONNAME179011A" #We are chosen to unite the Christian world
		command = { type = stability value = 1 }
		command = { type = relation which = -1 value = 30 }
		command = { type = relation which = -1 value = 30 }
		command = { type = relation which = -1 value = 30 }
		command = { type = relation which = -1 value = 30 }
	}
}

#(1518) The candidate to the imperial crown
event = {
	id = 179088
	trigger = {
		emperor = yes
		exists = SPA
		core = { province = 387 data = SPA } #Franche-Comté
	}
	random = no
	country = HAB
	name = "EVENTNAME179088" #The candidate to the imperial crown
	desc = "EVENTHIST179088"
	#-#In the same way as his father did for him, at the end of his life Emperor Maximilian made attempts to keep the imperial title amongst the members of the House of Habsburg. But his son Philip died unexpectedly early in 1506, leaving two male heirs, Charles and Ferdinand which were respectively born in 1500 and 1503. Maximilian decided to support Charles, who in 1516 was already Archduke of Burgundy, King of Spain, Sicily and Naples, in his investiture as King of the Romans and future Holy Roman Emperor. But this diplomatic move would have been very expensive. Most of the German princes were already supporting the French candidate, King François Ier. Maximilian seemed to successfully convoy the favour of the imperial electors towards the Habsburg cause, by means of granting investitures and making promises of large sums of money with the help of bankers such as the Fuggers and the Welsers. The Pope, who couldn't accept the presence of an Emperor with territorial claims in Italy as it was under the rule of Emperor Frederick II, would have supported a German prince like Friedrich III of Saxony, with no particular interest laying beyond the Alps. Looking for international credit, also Henry VIII King of England took part in the imperial election offering his candidature but withdrew soon after the first consultations.

	date = { day = 0 month = january year = 1518 }
	offset = 20
	deathdate = { day = 0 month = january year = 1519 }

	action_a = {
		name = "ACTIONNAME179088A" #Support the Spanish line
		command = { type = stability value = 1 }
		command = { type = treasury value = -100 }
		command = { type = DIP which = 2 value = 12 }
		command = { type = ADM which = 2 value = 12 }
		command = { type = relation which = SPA value = 75 }
		command = { type = trigger which = 285251 } #SPA: The imperial candidature
		command = { type = trigger which = 170178 } #FRA: The imperial candidature
		command = { type = trigger which = 164096 } #ENG: The imperial candidature
		command = { type = trigger which = 273016 } #SAC: The imperial candidature
	}
	action_b = {
		name = "ACTIONNAME179088B" #Support the Austrian line
		command = { type = treasury value = -700 }
		command = { type = relation which = BAY value = 100 }
		command = { type = relation which = BOH value = 100 }
		command = { type = relation which = BRA value = 100 }
		command = { type = relation which = BRE value = 100 }
		command = { type = relation which = HAN value = 100 }
		command = { type = relation which = HES value = 100 }
		command = { type = relation which = KLE value = 100 }
		command = { type = relation which = KOL value = 100 }
		command = { type = relation which = LOR value = 100 }
		command = { type = relation which = MAI value = 100 }
		command = { type = relation which = MEC value = 100 }
		command = { type = relation which = BRG value = 100 }
		command = { type = relation which = OLD value = 100 }
		command = { type = relation which = PFA value = 100 }
		command = { type = relation which = POM value = 100 }
		command = { type = relation which = SEI value = 100 }
		command = { type = relation which = PRU value = 100 }
		command = { type = relation which = ROM value = 100 }
		command = { type = relation which = SAC value = 100 }
		command = { type = relation which = SHL value = 100 }
		command = { type = relation which = STR value = 100 }
		command = { type = relation which = STT value = 100 }
		command = { type = relation which = TYR value = 100 }
		command = { type = relation which = MEI value = 100 }
		command = { type = relation which = WUR value = 100 }
		command = { type = trigger which = 170178 } #FRA: The imperial candidature
		command = { type = trigger which = 164096 } #ENG: The imperial candidature
		command = { type = trigger which = 273016 } #SAC: The imperial candidature
	}
	action_c = {
		name = "ACTIONNAME179088C" #Don't announce any candidature
		command = { type = stability value = -1 }
		command = { type = DIP which = -2 value = 6 }
		command = { type = vp value = -5 }
	}
}

#(1518) General Estates
event = {
	id = 179014
	random = no
	country = HAB
	name = "EVENTNAME179014" #Generallandtag
	desc = "EVENTHIST179014"
	#-#On January 8, 1518 Emperor Maximilian I assembled a diet in Innsbruck, in session until May and attended by the Estates of the hereditary Austrian lands. After the Diets of Mürzzuschlag 1508 and Augsburg 1510, it was the Emperor's third attempt at establishing a centralised administration with a common government, common defence and common finance for Austria and the Empire. 70 participants attended the Diet, presided over by the governor of Tyrol. On May 18th the results of the debates on court order, armaments and general complaints were summarised in 3 documents. The Emperor promised that monies would be put to reasonable use, the Estates were granted better status. This general diet was the first all-Austrian parliament and marked an important step toward a centralised state.

	date = { day = 8 month = january year = 1518 }

	action_a = {
		name = "ACTIONNAME179014A" #Superb
		command = { type = stability value = 1 }
		command = { type = domestic which = CENTRALIZATION value = 2 }
	}
}

#(1519) Austria is offered Wirtemberg
event = {
	id = 179004 #triggered by WUR_331000 A
	random = no
	country = HAB
	name = "EVENTNAME179004" #Purchase of Wirtemberg
	desc = "EVENTHIST179004"
	#-#After deposing Duke Ulrich for his permament violations of their right, the murder of Hans von Hutten and the seizure of Reutlingen, the estates of Wirtemberg offered the country to Charles V. for 220.000 Gulden.

	action_a = {
		name = "ACTIONNAME179004A" #Accept the offer and buy Wirtemberg
		command = { type = inherit which = WUR }
		command = { type = addcore which = 372 } #Württemberg
		command = { type = treasury value = -220 }
	}
	action_b = {
		name = "ACTIONNAME179004B" #Reject the offer
		command = { type = relation which = WUR value = -50 }
	}
}

#(1519) The Habsburg inheritance - the Spanish line will rule
#by Bordic
event = {
	id = 179085 #triggered by SPA_285259 A
	trigger = {
		core = { province = 387 data = SPA } #Franche-Comté (Spain inheriting Burgundy)
	}
	random = no
	country = HAB
	name = "EVENTNAME285259" #The Habsburg inheritance
	desc = "EVENTHIST179085"
	#-#In 1496, when the King of Aragon Ferdinand and the Queen of Castile Isabella married their heir Joan the Mad to Habsburg heir Philip the Fair, they started the historical union between what would be called the Spanish and the Austria Habsburgs. The son from this marriage, Charles V, would become the emperor of the largest territory in Western Europe, having inherited the lands of Castile, Aragon, Burgundy and Austria. The Habsburgs would pursue this intra-family wedding policy till the end of the 17th century. King Karl has decided to rule the Habsburg dominions from his Court in Spain.

	action_a = {
		name = "ACTIONNAME179085A" #Humbly accept Karl's wise decision
		command = { type = stability value = -1 }
		command = { type = infra value = 500 }
		command = { type = diplomats value = -6 }
		command = { type = domestic which = CENTRALIZATION value = 1 }
		#Burgundian inheritance and claims
		command = { type = cedeprovince which = SPA value = 337 } #Friesen
		command = { type = cedeprovince which = SPA value = 338 } #Geldre
		command = { type = cedeprovince which = SPA value = 339 } #Holland
		command = { type = cedeprovince which = SPA value = 340 } #Zeeland
		command = { type = cedeprovince which = SPA value = 376 } #Nivernais
		command = { type = cedeprovince which = SPA value = 377 } #Luxembourg
		command = { type = cedeprovince which = SPA value = 378 } #Brabant
		command = { type = cedeprovince which = SPA value = 379 } #Artois
		command = { type = cedeprovince which = SPA value = 380 } #Flandern
		command = { type = cedeprovince which = SPA value = 383 } #Picardie
		command = { type = cedeprovince which = SPA value = 386 } #Champagne
		command = { type = cedeprovince which = SPA value = 387 } #Franche-Comté
		command = { type = cedeprovince which = SPA value = 409 } #Bourgogne
		#Italian conquests
		command = { type = cedeprovince which = SPA value = 393 } #Napoli
		command = { type = cedeprovince which = SPA value = 394 } #Apulia
	}
}
#(1519) The Habsburg inheritance - the Austrian line will rule
event = {
	id = 179095 #triggered by SPA_285259 B
	trigger = {
		core = { province = 387 data = SPA } #Franche-Comté (Spain inheriting Burgundy)
	}
	random = no
	country = HAB
	name = "EVENTNAME285259" #The Habsburg inheritance
	desc = "EVENTHIST179095"
	#-#In 1496, when the King of Aragon Ferdinand and the Queen of Castile Isabella married their heir Joan the Mad to Habsburg heir Philip the Fair, they started the historical union between what would be called the Spanish and the Austria Habsburgs. The son from this marriage, Charles V, would become the emperor of the largest territory in Western Europe, having inherited the lands of Castile, Aragon, Burgundy and Austria. The Habsburgs would pursue this intra-family wedding policy till the end of the 17th century. King Karl has decided to rule the Habsburg dominions from his Court in Austria.

	action_a = {
		name = "ACTIONNAME179095A" #Heartily accept Karl's wise decision
		command = { type = relation which = SPA value = 400 }
		command = { type = dynastic which = SPA }
		command = { type = alliance which = SPA }
		command = { type = treasury value = 1000 }
		command = { type = domestic which = ARISTOCRACY value = 2 }
		command = { type = domestic which = CENTRALIZATION value = -2 }
		#Burgundian inheritance and claims
		command = { type = cedeprovince which = SPA value = 337 } #Friesen
		command = { type = cedeprovince which = SPA value = 338 } #Geldre
		command = { type = cedeprovince which = SPA value = 339 } #Holland
		command = { type = cedeprovince which = SPA value = 340 } #Zeeland
		command = { type = cedeprovince which = SPA value = 376 } #Nivernais
		command = { type = cedeprovince which = SPA value = 377 } #Luxembourg
		command = { type = cedeprovince which = SPA value = 378 } #Brabant
		command = { type = cedeprovince which = SPA value = 379 } #Artois
		command = { type = cedeprovince which = SPA value = 380 } #Flandern
		command = { type = cedeprovince which = SPA value = 383 } #Picardie
		command = { type = cedeprovince which = SPA value = 386 } #Champagne
		command = { type = cedeprovince which = SPA value = 387 } #Franche-Comté
		command = { type = cedeprovince which = SPA value = 409 } #Bourgogne
		#Italian conquests
		command = { type = cedeprovince which = SPA value = 393 } #Napoli
		command = { type = cedeprovince which = SPA value = 394 } #Apulia
	}
}
#(1519) The Habsburg inheritance - the Austrian line will rule - Ahistorical (no Spanish Low Countries)
event = {
	id = 179138 #triggered by SPA_285259 B
	trigger = {
		NOT = {
			core = { province = 387 data = SPA } #Franche-Comté (Spain inheriting Burgundy)
		}
	}
	random = no
	country = HAB
	name = "EVENTNAME285259" #The Habsburg inheritance
	desc = "EVENTHIST179095"
	#-#In 1496, when the King of Aragon Ferdinand and the Queen of Castile Isabella married their heir Joan the Mad to Habsburg heir Philip the Fair, they started the historical union between what would be called the Spanish and the Austria Habsburgs. The son from this marriage, Charles V, would become the emperor of the largest territory in Western Europe, having inherited the lands of Castile, Aragon, Burgundy and Austria. The Habsburgs would pursue this intra-family wedding policy till the end of the 17th century. King Karl has decided to rule the Habsburg dominions from his Court in Austria.

	action_a = {
		name = "ACTIONNAME179095A" #Heartily accept Karl's wise decision
		command = { type = relation which = SPA value = 400 }
		command = { type = dynastic which = SPA }
		command = { type = alliance which = SPA }
		command = { type = treasury value = 1000 }
		command = { type = domestic which = ARISTOCRACY value = 2 }
		command = { type = domestic which = CENTRALIZATION value = -2 }
		#Spanish claims in Italy
		command = { type = cedeprovince which = SPA value = 393 } #Napoli
		command = { type = cedeprovince which = SPA value = 394 } #Apulia
	}
}

#(1519) The Fuggers - modified by mnorrefeldt
event = {
	id = 3183
	random = no
	country = HAB
	name = "EVENTNAME3183" #The Fuggers
	desc = "EVENTHIST3183"
	#-#The Fuggers were a peasant family of weavers from Augsburg during the 15th Century who rose through trade and transactions in money to Bankers of the Habsburgs and the Popes. Jakob Fugger the Rich (1511-1525) financed Charles V's wars and election to the Empire, controlled European lead, silver and copper production and obtained a monopoly in quicksilver. Anton Fugger (1525-1560) had trading concessions in Chile, Peru and Moscow. However, the company declined by the end of the 16th Century because of state bankruptcies in Spain, family conflicts and lack of interest on the part of the heirs.

	date = { day = 1 month = january year = 1519 }
	offset = 30
	deathdate = { day = 1 month = january year = 1520 }

	action_a = {
		name = "ACTIONNAME3183A" #Let the Fuggers run our Finances
		command = { type = loansize which = 300 }
		command = { type = treasury value = -100 }
		command = { type = merchants value = 6 }
		command = { type = inflation value = -5 }
	}
	action_b = {
		name = "ACTIONNAME3183B" #Turn the Fuggers offer down
		command = { type = stability value = -3 }
		command = { type = inflation value = 2 }
	}
}

#(1519-1522) The Question of Milan (MLO could not exist)
#by Bordic
event = {
	id = 179026
	trigger = {
		OR = {
			emperor = yes
			AND = {
				event = 285221 #SPA: The Question of Milan
				emperor = no
			}
		}
	}
	random = no
	country = HAB
	name = "EVENTNAME179026" #The Question of Milan
	desc = "EVENTHIST285221"
	#-#After the death of his grandfather the Emperor Maximilian I of Austria on 28 June 1519 Charles, King of Spain and Duke of Burgundy, became Holy Roman Emperor thanks to the money of his bankers (Fuggers and Welsers mainly) in a very expensive struggle with François Ier, King of France. Having proclaimed himself as the only legitimate heir of Charlemagne, the first Holy Roman Emperor, François Ier had announced his candidature to the imperial election. Commonly all the electors were bribed in order to obtain their much desired vote, but Charles 'bought' the Imperial title by paying the Great Electors and their emissaries the huge sum of 850,000 golden florins (equal to a value of 2,100 kilograms of gold). That money was advanced by his bankers in anticipation of several years worth of Castilian rents. Charles's election was also eased by the Army of the Svevian league, which impressed the doubtful electors when chasing the Duke of Württemberg, chief of the pro-French party, out of his duchy. That denied François his last remote chance to win the election. Being elected Holy Roman Emperor as Charles V, Charles (Karl in the German world or Carlos in Spain) of the House of Habsburg became suzerain of all the fiefs in the Holy Roman Empire. Amongst them the Duchy of Milan together with its sovereignty over the Republic of Genoa formed the beginning of the so-called 'Spanish Road' a critical route that allowed communication by land between the Habsburgs's dominions.

	date = { day = 15 month = January year = 1519 }
	offset = 10
	deathdate = { day = 26 month = April year = 1522 }

	action_a = {
		name = "ACTIONNAME179026A" #Our Spanish line will rule over Milan
		command = { type = cedeprovince which = SPA value = 389 } #Lombardia
		command = { type = cedeprovince which = SPA value = 402 } #Emilia
		command = { type = DIP which = -2 value = 12 }
		command = { type = ADM which = 2 value = 12 }
		command = { type = relation which = FRA value = -25 }
		command = { type = relation which = SPA value = 50 }
		command = { type = relation which = HEL value = 25 }
	}
	action_b = {
		name = "ACTIONNAME179026B" #Acknowledge the imperial status of Milan
		command = { type = independence which = MLO }
		command = { type = DIP which = 2 value = 12 }
		command = { type = ADM which = -2 value = 12 }
		command = { type = relation which = FRA value = -15 }
		command = { type = relation which = HEL value = 15 }
		#in case Milan is already independent
		command = { type = cedeprovince which = MLO value = 402 } #Emilia
		command = { type = relation which = MLO value = 20 }
	}
}

#(1520-1530) Hofkanzlei, Hofkammer and Hofrat
event = {
	id = 3328
	random = no
	country = HAB
	name = "EVENTNAME3328" #Hofkanzlei, Hofkammer and Hofrat
	desc = "EVENTHIST3328"
	#-#The Habsburg ruler reserved two places for Hungarians in the Hofrat which he was organizing as his central advisory council for his dominions as a whole - it was they themselves who failed to take up the offer

	date = { day = 1 month = january year = 1520 }
	offset = 30
	deathdate = { day = 1 month = january year = 1530 }

	action_a = {
		name = "ACTIONNAME3328A" #Create these New Functions
		command = { type = province_revoltrisk which = 389 value = -6 } #Lombardia
		command = { type = domestic which = CENTRALIZATION value = 1 }
		command = { type = domestic which = ARISTOCRACY value = -2 }
		command = { type = domestic which = SERFDOM value = -1 }
		command = { type = domestic which = INNOVATIVE value = 1 }
		command = { type = infra value = 500 }
		command = { type = trade value = 500 }
		command = { type = stability value = -1 }
	}
	action_b = {
		name = "ACTIONNAME3328B" #Let the Nobility run these mundane things
		command = { type = province_revoltrisk which = 389 value = -6 } #Lombardia
		command = { type = domestic which = CENTRALIZATION value = -1 }
		command = { type = domestic which = ARISTOCRACY value = 1 }
		command = { type = domestic which = SERFDOM value = 2 }
		command = { type = domestic which = INNOVATIVE value = -2 }
		command = { type = land value = 500 }
		command = { type = stability value = 1 }
	}
}

#(1520-1810) Austria gains slavonic culture
event = {
	id = 179139
	trigger = {
		AND = { #only a powerful Austria will get the trust of those fearing the Turks
			emperor = yes
			countrysize = 8
		}
		core = { province = 367 data = -1 } #Krain
		owned = { province = 367 data = -1 } #Krain
		control = { province = 367 data = -1 } #Krain
		owned = { province = 351 data = -1 } #Vienna to prevent it from firing if Corvinius took Vienna from Friedrich and Austria did not get it back
		control = { province = 351 data = -1 } #Vienna
		neighbour = TUR #only if the Ottomans are a threat and the Balkans have to choose between Ottomans and Austrians
		NOT = { exists = BYZ } #only if Eastern Rome is gone
		NOT = { #no independent Slavonic state exists
			exists = BUL
			exists = SER
			exists = BOS
			exists = CRO
		}
		#Not if Styria became Austria because then Austria will already have slavonic culture
		NOT = { event = 261002 } #SEI: Styria becomes Austria
	}
	random = no
	country = HAB
	name = "EVENTNAME179139" #Finally they put their trust and support into our hands
	desc = "EVENTHIST179139"
	#-#For years the Habsburgs struggled in many wars and skirmishes with the ever-increasing power of the Ottoman Empire. One after one the small states of the Balkans fell before the Turkish onslaught and there is no power left to which the oppressed Christians of the Balkans can turn for salvation - no power but us. From now on they will pay as much taxes, be as obedient as the other Kingdoms of the hereditary Habsburg lands and their men will serve in our armies willingly and form our military border.

	date = { day = 2 month = january year = 1520 } #after the Habsburgs became Bans of Croatia
	offset = 30
	deathdate = { day = 1 month = january year = 1810 }

	action_a = {
		name = "ACTIONNAME179139A" #They will be part of our empire
		command = { type = add_countryculture which = slavonic }
		command = { type = relation which = TUR value = -50 }
	}
	action_b = {
		name = "ACTIONNAME179139B" #We can't protect them all
		command = { type = provinceculture which = 367 value = german } #Krain
		command = { type = relation which = TUR value = 50 }
		command = { type = relation which = PAP value = -50 }
		command = { type = sleepevent which = 179140 } #HAB: They desert us
	}
}

#(1521) Edicts of Worms and Brussels
event = {
	id = 179015
	trigger = {
		exists = SPA
		NOT = { war = { country = HAB country = SPA } }
	}
	random = no
	country = HAB
	name = "EVENTNAME179015" #Edicts of Worms and Brussels
	desc = "EVENTHIST179015"
	#-#Charles V, ruler of the Netherlands, King of Spain, Holy Roman Emperor, and grandson of Emperor Maximilian I in 1519 succeeded as Prince of the Austrian territories. In 1521 through the Edicts of Worms and Brussels Karl handed the Austrian territories over to his brother Ferdinand I, while Karl kept Spain, the Italian possessions, the Netherlands, and America. Although Ferdinand freely ruled the Austrian state internally, he was still subordinate to Karl and had to pay homage to Spain as well as enact any policies of the Spanish Emperor. In 1556 when Karl abdicated his imperial status, the Austrian line of the House of Habsburg gained total independence from the Spanish House of Habsburg.

	date = { day = 0 month = january year = 1521 }
	offset = 7
	deathdate = { day = 0 month = january year = 1522 }

	action_a = {
		name = "ACTIONNAME179015A" #Accept Karl's will
		command = { type = dynastic which = SPA }
		command = { type = relation which = SPA value = 100 }
	}
	action_b = {
		name = "ACTIONNAME179015B" #Austria will be subordinate to no one
		command = { type = dynastic which = SPA } #they are brothers after all...
		command = { type = relation which = SPA value = -100 }
		command = { type = stability value = -3 }
		command = { type = relation which = PAP value = -100 }
		command = { type = sleepevent which = 179016 } #HAB: The Emperor's Abdication
		command = { type = wakemonarch which = 055504 } #Ferdinand I
	}
}

#(1524-1526) Fall of Petrucci
event = {
	id = 17354 #triggered by SIE_17353 A
	trigger = {
		NOT = {
			vassal = { country = SIE country = HAB }
		}
	}
	random = no
	country = HAB
	name = "EVENTNAME17354" #Sienese request
	desc = "EVENTHIST17354"
	#-#With the Pope interfering in their internal affairs, and a despot just deposed, Siena sought protection from the anarchy of the Italian Wars. In 1524 they requested that Austria protect their republic from external enemies.

	action_a = {
		name = "OK"
		command = { type = vassal which = SIE }
		command = { type = relation which = PAP value = -20 }
		command = { type = alliance which = SIE }
	}
}

#(1526) The Turk is expanding in Hungary - Lajos' death at Mohacs
#(historical path starting with HUN_19013 A)
event = {
	id = 3186 #triggered by HUN_19016 A
	random = no
	country = HAB
	name = "EVENTNAME3186" #The Turk is expanding in Hungary
	desc = "EVENTHIST3186"
	#-#Lajos II (Louis), 1506-26, King of Hungary and Bohemia (1516-26), son and successor of Uladislaus II. He was the last of the Jagiello dynasty in the two Kingdoms. In the face of intensified attacks by Sultan Sulayman I, Lajos hastily sought (1526) to unite Hungary and Christendom behind him, but only the Pope sent help. With a pitiful army, Lajos joined battle with the Ottomans at Mohács. The Hungarian army was destroyed, and Lajos was killed. Only the ambitious John Zapolya had failed to arrive in time for the battle with the army he was bringing from Transylvania. Through the marriage treaty concluded by Lajos father the crowns of Hungary and Bohemia passed to Louis's brother-in-law, Ferdinand of Habsburg (later Holy Roman Emperor Ferdinand I), but Hungary fell under Ottoman rule.

	action_a = {
		name = "ACTIONNAME3186A" #No! It is mine!
		command = { type = relation which = TUR value = -200 }
		command = { type = relation which = HUN value = -150 }
		command = { type = addcore which = 316 } #Carpathia
		command = { type = addcore which = 317 } #Ruthenia
		command = { type = addcore which = 324 } #Maros
		command = { type = addcore which = 325 } #Magyar
		command = { type = addcore which = 326 } #Presburg
		command = { type = addcore which = 352 } #Odenburg
		command = { type = addcore which = 353 } #Pest
		command = { type = addcore which = 366 } #Croatia
		command = { type = add_countryculture which = slovak }
		command = { type = trigger which = 19022 } #TUR: A foothold in Hungary
	}
	action_b = {
		name = "ACTIONNAME3186B" #Let him have it for now
		command = { type = relation which = HUN value = 100 }
		command = { type = relation which = TUR value = 50 }
		command = { type = removecore which = 317 } #Ruthenia
		command = { type = removecore which = 324 } #Maros
		command = { type = removecore which = 325 } #Magyar
		command = { type = removecore which = 353 } #Pest
		command = { type = trigger which = 301125 } #TUR: Hungary submits
	}
}
#(1526) The Turk is expanding in Hungary - Lajos' assassination by nobles - Ahistorical
#(if at least one of the ahistorical submissions took place with HUN_19009 B or HUN_19013 B)
event = {
	id = 179143 #triggered by HUN_19017 A
	random = no
	country = HAB
	name = "EVENTNAME3186" #The Turk is expanding in Hungary
	desc = "EVENTHIST179143"
	#-#The nobles of Hungary were growing increasingly dissatisfied with the leadership of the boy-king. His failure to join the League of Cambrai against Venice and take back Dalmatia was not well-received. Submitting to be the vassal of the heathen Turks was the last straw. On August, 22, 1526, King Lajos of Hungary and Bohemia was assassinated by a conspiracy of nobles. With Lajos II dead, Suleyman ordered the nobility of Hungary to chose whomever they wished to be King, so long as he was not a Habsburg. Most of the nobles voted for János Zápolya of Transylvania. Led by the nobility of Croatia, however, any nobles argued for Ferdinand of Austria, despite the Sultan's orders, saying that only he could protect them from Suleyman.

	action_a = {
		name = "ACTIONNAME3186A" #No! It is mine!
		command = { type = relation which = TUR value = -200 }
		command = { type = relation which = HUN value = -150 }
		command = { type = addcore which = 316 } #Carpathia
		command = { type = addcore which = 317 } #Ruthenia
		command = { type = addcore which = 324 } #Maros
		command = { type = addcore which = 325 } #Magyar
		command = { type = addcore which = 326 } #Presburg
		command = { type = addcore which = 352 } #Odenburg
		command = { type = addcore which = 353 } #Pest
		command = { type = addcore which = 366 } #Croatia
		command = { type = add_countryculture which = slovak }
		command = { type = trigger which = 19022 } #TUR: A foothold in Hungary
	}
	action_b = {
		name = "ACTIONNAME3186B" #Let him have it
		command = { type = relation which = HUN value = 100 }
		command = { type = relation which = TUR value = 50 }
		command = { type = removecore which = 317 } #Ruthenia
		command = { type = removecore which = 324 } #Maros
		command = { type = removecore which = 325 } #Magyar
		command = { type = removecore which = 353 } #Pest
		command = { type = trigger which = 301126 } #TUR: Hungary submits
	}
}
#(1526) The Habsburg Inheritance of Hungary - Habsburg Kings
event = {
	id = 3185
	trigger = {
		event = 19016 #HUN: Electing a New King (after the battle of Mohacs)
		event = 19018 #HUN: The Habsburg rule Hungary
	}
	random = no
	country = HAB
	name = "EVENTNAME3185" #The Habsburg Inheritance of Hungary
	desc = "EVENTHIST3185"
	#-#Lajos II (Louis), 1506-26, King of Hungary and Bohemia (1516-26), son and successor of Uladislaus II. He was the last of the Jagiello dynasty in the two Kingdoms. In the face of intensified attacks by Sultan Sulayman I, Lajos hastily sought (1526) to unite Hungary and Christendom behind him, but only the Pope sent help. With a pitiful army, Lajos joined battle with the Ottomans at Mohács. The Hungarian army was destroyed, and Lajos was killed. Only the ambitious John Zapolya had failed to arrive in time for the battle with the army he was bringing from Transylvania.

	date = { day = 24 month = august year = 1526 }

	action_a = {
		name = "ACTIONNAME3185A" #I will be crowned King of Hungary
		command = { type = addcore which = 316 } #Carpathia
		command = { type = addcore which = 317 } #Ruthenia
		command = { type = addcore which = 324 } #Maros
		command = { type = addcore which = 325 } #Magyar
		command = { type = addcore which = 326 } #Presburg
		command = { type = addcore which = 352 } #Odenburg
		command = { type = addcore which = 353 } #Pest
		command = { type = addcore which = 366 } #Croatia
		command = { type = vassal which = HUN }
		command = { type = add_countryculture which = magyar }
		command = { type = add_countryculture which = slovak }
		command = { type = relation which = HUN value = 150 }
		command = { type = stability value = 1 }
		command = { type = trigger which = 179130 } #HAB: The recovery of Hungary
	}
}
#(1526) The recovery of Hungary
event = {
	id = 179130 #triggered by HAB_3185 / HAB_179131
	random = no
	country = HAB
	name = "EVENTNAME179130" #The recovery of Hungary
	desc = "EVENTHIST179130"
	#-#Through the marriage treaty concluded by Lajos father the crowns of Hungary and Bohemia passed to Louis's brother-in-law, Ferdinand of Habsburg (later Holy Roman Emperor Ferdinand I), but Hungary fell under Ottoman rule.

	action_a = {
		name = "OK"
		command = { type = alliance which = HUN } #in order for HUN not to be alone versus TUR later
		command = { type = relation which = TUR value = -200 }
		command = { type = trigger which = 19023 } #TUR: The invasion of Hungary
	}
}
#(1526) Hungary is mine
event = {
	id = 179028
	trigger = {
		event = 19022 #TUR: A foothold in Hungary
		NOT = {
			war = { country = HAB country = HUN }
		}
	}
	random = no
	country = HAB
	name = "EVENTNAME179028" #Hungary is mine
	desc = "EVENTHIST179028"
	#-#Hungary fell under Ottoman rule. We have no choice but taking it by force...

	date = { day = 25 month = august year = 1526 }

	action_a = {
		name = "ACTIONNAME179028A" #Hungary is mine!
		command = { type = war which = HUN }
	}
}
#(1526) The Habsburg Inheritance of Hungary - Habsburgs Kings
event = {
	id = 179131
	trigger = {
		event = 19017 #HUN: Electing a New King (Lajos II submitted to the Sultan)
	}
	random = no
	country = HAB
	name = "EVENTNAME3185" #The Habsburg Inheritance of Hungary
	desc = "EVENTHIST179131"
	#-#The nobles of Hungary were growing increasingly dissatisfied with the leadership of Lajos II, the boy-king. His failure to join the League of Cambrai against Venice and take back Dalmatia was not well-received. Submitting to be the vassal of the heathen Turks was the last straw. On August, 22, 1526, King Lajos of Hungary and Bohemia was assassinated by a conspiracy of nobles. With Lajos II dead, Suleyman ordered the nobility of Hungary to chose whomever they wished to be King, so long as he was not a Habsburg. Most of the nobles voted for János Zápolya of Transylvania. Led by the nobility of Croatia, however, any nobles argued for Ferdinand of Austria, despite the Sultan's orders, saying that only he could protect them from Suleyman.

	date = { day = 26 month = august year = 1526 }

	action_a = {
		name = "ACTIONNAME3185A" #I will be crowned King of Hungary
		command = { type = addcore which = 316 } #Carpathia
		command = { type = addcore which = 317 } #Ruthenia
		command = { type = addcore which = 324 } #Maros
		command = { type = addcore which = 325 } #Magyar
		command = { type = addcore which = 326 } #Presburg
		command = { type = addcore which = 352 } #Odenburg
		command = { type = addcore which = 353 } #Pest
		command = { type = addcore which = 366 } #Croatia
		command = { type = vassal which = HUN }
		command = { type = add_countryculture which = magyar }
		command = { type = add_countryculture which = slovak }
		command = { type = relation which = HUN value = 150 }
		command = { type = stability value = 1 }
		command = { type = trigger which = 179130 } #HAB: The recovery of Hungary
	}
}
#(1526) The Death of King Lajos of Hungary
event = {
	id = 179132 #triggered by HUN_19025 A
	random = no
	country = HAB
	name = "EVENTNAME19025" #The Death of King Lajos of Hungary
	desc = "EVENTHIST19025"
	#-#Lajos II (Louis), King of Hungary, Bohemia, and Croatia, was the last of the Jagiello dynasty in the two Kingdoms. While riding with his companions on a hunting trip, King Lajos fell off his horse after it was suddenly startled, causing him to break his neck. Lajos left no direct heir. The Diet, Hungary's Parliament, convened to decide who would be the dead King's successor. Two factions formed around the candidates who were most likely to succeed him. The first was Louis's brother-in-law, Ferdinand of Habsburg, and the other was János Zápolya of Transylvania. Ferdinand's claim was supported by Spain, Bohemia, England and the Papacy, while France, the Ottoman Empire, and Poland backed Zápolya. The Diet voted to give Zápolya the crowns of Hungary and Croatia. Ferdinand lauched a lightning campaign against the disorganized Kingdom, and managed to secure a portion of it for himself.

	action_a = {
		name = "ACTIONNAME19026A" #We shall take our inheritance by force!
		command = { type = relation which = TUR value = -200 }
		command = { type = relation which = HUN value = -150 }
		command = { type = relation which = TRA value = -150 }
		command = { type = war which = HUN }
		command = { type = war which = TRA }
		command = { type = addcore which = 316 } #Carpathia
		command = { type = addcore which = 317 } #Ruthenia
		command = { type = addcore which = 324 } #Maros
		command = { type = addcore which = 325 } #Magyar
		command = { type = addcore which = 326 } #Presburg
		command = { type = addcore which = 352 } #Odenburg
		command = { type = addcore which = 353 } #Pest
		command = { type = addcore which = 366 } #Croatia
	}
	action_b = {
		name = "ACTIONNAME19026B" #Let the baby have it
		command = { type = relation which = HUN value = 100 }
		command = { type = relation which = TRA value = 100 }
		command = { type = relation which = TUR value = 50 }
		command = { type = removecore which = 317 } #Ruthenia
		command = { type = removecore which = 324 } #Maros
		command = { type = removecore which = 325 } #Magyar
		command = { type = removecore which = 353 } #Pest
	}
}

#(1526) The Habsburg Inheritance of Hungary - Habsburgs Kings
event = {
	id = 179133
	trigger = {
		event = 19025 #HUN: The Death of King Lajos of Hungary (No Turkish vassal, no battle of Mohacs)
	}
	random = no
	country = HAB
	name = "EVENTNAME3185" #The Habsburg Inheritance of Hungary
	desc = "EVENTHIST19025"
	#-#Lajos II (Louis), King of Hungary, Bohemia, and Croatia, was the last of the Jagiello dynasty in the two Kingdoms. While riding with his companions on a hunting trip, King Lajos fell off his horse after it was suddenly startled, causing him to break his neck. Lajos left no direct heir. The Diet, Hungary's Parliament, convened to decide who would be the dead King's successor. Two factions formed around the candidates who were most likely to succeed him. The first was Louis's brother-in-law, Ferdinand of Habsburg, and the other was János Zápolya of Transylvania. Ferdinand's claim was supported by Spain, Bohemia, England and the Papacy, while France, the Ottoman Empire, and Poland backed Zápolya. The Diet voted to give Zápolya the crowns of Hungary and Croatia. Ferdinand lauched a lightning campaign against the disorganized Kingdom, and managed to secure a portion of it for himself.

	date = { day = 27 month = august year = 1526 }

	action_a = {
		name = "ACTIONNAME3185A" #I will be crowned King of Hungary
		command = { type = addcore which = 316 } #Carpathia
		command = { type = addcore which = 317 } #Ruthenia
		command = { type = addcore which = 324 } #Maros
		command = { type = addcore which = 325 } #Magyar
		command = { type = addcore which = 326 } #Presburg
		command = { type = addcore which = 352 } #Odenburg
		command = { type = addcore which = 353 } #Pest
		command = { type = addcore which = 366 } #Croatia
		command = { type = vassal which = HUN }
		command = { type = alliance which = HUN }
		command = { type = add_countryculture which = magyar }
		command = { type = add_countryculture which = slovak }
		command = { type = relation which = HUN value = 150 }
		command = { type = stability value = 1 }
	}
}

#(1526-1820) Hungary is Mine!
event = {
	id = 19027
	trigger = {
		vassal = { country = HAB country = HUN }
		NOT = {
			event = 3185 #HAB: The Habsburg Inheritance of Hungary (after Mohacs)
			event = 179131 #HAB: The Habsburg Inheritance of Hungary (HUN as Turkish vassal)
			event = 179132 #HAB: The Habsburg Inheritance of Hungary (none of them)
		}
	}
	random = no
	country = HAB
	name = "EVENTNAME19027" #The Habsburg Inheritance of Hungary
	desc = "EVENTHIST19027"
	#-#The marriage contract that Lajos II's father, Ulászló II arranged with the Habsburgs promised Hungary and Bohemia to the Habsburgs if Lajos should die without an heir. On August 22, 1526, Lajos was killed with no heir. The Hungarian nobility, however, chose János Zápolya instead. Ultimately, however, the Habsburgs were able to collect their inheritance.

	date = { day = 22 month = august year = 1526 }
	offset = 30
	deathdate = { year = 1820 }

	action_a = {
		name = "EXCELLENT"
		command = { type = trigger which = 19018 } #HUN: The Habsburg rule in Hungary
	}
}

#(1526) The Habsburg Inheritance of Bohemia
event = {
	id = 3187 #triggered by BOH_3642 A
	trigger = {
	 	NOT = {
			vassal = { country = BOH country = HAB }
		}
	}
	random = no
	country = HAB
	name = "EVENTNAME3187" #The Habsburg Inheritance of Bohemia
	desc = "EVENTHIST3187"
	#-#In the year 1526 King Lajos II died childless, Emperor Maximilian of Habsburg, also King-elect of Bohemia and thus Elector of the Empire managed to have the Kingship become hereditary in his family.

	action_a = {
		name = "ACTIONNAME3187A" #I will become the King of Bohemia
		command = { type = vassal which = BOH }
		command = { type = alliance which = BOH }
		command = { type = relation which = BOH value = 100 }
		command = { type = stability value = 1 }
		command = { type = provinceculture which = 314 value = german } #Silesia
	}
}
#(1526 or 1541) The Habsburg Inheritance of Bohemia
event = {
	id = 3733 #triggered by BOH_3642 B or BOH_19007
	random = no
	country = HAB
	name = "EVENTNAME3733" #The Habsburg Inheritance of Bohemia
	desc = "EVENTHIST3733"
	#-#In the year 1526 King Lajos II died childless, Emperor Maximilian of Habsburg, also King-elect of Bohemia and thus Elector of the Empire managed to have the Kingship become hereditary in his family.

	action_a = {
		name = "ACTIONNAME3733A" #Bohemia is now secured for Our Dynasty
		command = { type = inherit which = BOH }
		command = { type = add_countryculture which = czech }
		command = { type = provinceculture which = 314 value = german } #Silesia
		command = { type = stability value = 1 }
		command = { type = domestic which = CENTRALIZATION value = 1 }
		command = { type = domestic which = ARISTOCRACY value = 1 }
		command = { type = addcore which = 314 } #Silesia
		command = { type = addcore which = 315 } #Moravia
		command = { type = addcore which = 327 } #Ostmarch
		command = { type = addcore which = 328 } #Bohemia
		command = { type = addcore which = 329 } #Erz
		command = { type = addcore which = 330 } #Sudeten
	}
}

#(1527) Charles V's Mercenary Army Sacks Rome (Papal States Event)
#by Isaac Brock
event = {
	id = 17408 #triggered by PAP_17406 Sack of Rome
	random = no
	country = HAB
	name = "EVENTNAME17406" #Charles V's Mercenary Army Sacks Rome
	desc = "EVENTHIST17408"
	#-#The 14,000 lansquenets, hired by Charles V in the war against the League of Cognac under the command of Georg von Frundsberg, were animated by a violent spirit of crusade against the Pope (Frundsberg was bringing a golden rope with which he insanely meant to hang the Pope and his cardinals!) but also, and most of all, angry for lack of pay. Abandoned by their captains, they begun to plunder villages in search of loots. Soon they were joined by 6,000 Spanish soldiers lead by Charles, Connétable de Bourbon, and by any sort of ruffians of any condition (mercenaries at the Emperor's service, deserting or disbanded troops of the League and common criminals), all of them with the common aim to make the way to Rome, the city of sin, and 'sack' it. On the morning of 6 May 1527, from his headquarters set up on the Gianicolo hill, Captain General Bourbon with his 40,000 soldiers launched a series of attacks on Rome. During one of them, at the Torrione Gate, while leading the assault of the walls, he himself was mortally wounded (Benvenuto Cellini, who took part in the defence of the walls, would boast about having shot the deadly bullet). Instead of being let down, the Spanish troops' confidence was boosted by their commander's sudden death and at the expenses of big losses, managed to break through the city walls and enter the Borgo while the imperial lansquenets broke rushed towards the Holy See. Pope Clement VII and his followers were able to escape into safety, thanks to the 'Passetto', a secret corridor which Pope Alexander VI had built along the top of the wall connecting the Vatican with Castel Sant'Angelo. Across the Sisto bridge the bewildered soldiers fell on the unarmed city and for eight days committed every sort of violence, theft, sacrilege and massacre. The streets were a mixture of drunken soldiers, corpses and heaps of every sort of luxury goods taken from churches, monasteries and palaces. No league army dared to enter the city to drive out the ravaging troops and rescue the Pope, who accepted to pay a huge ransom only six months later. Although the exact role of the emperor in this act is unclear, it hurt his standing internationally, and caused something of a domestic crisis. It was one of the motivations for the alliance between England and France in 1527, and for the war with those countries that followed.

	action_a = {
		name = "OH_WELL"
		command = { type = relation which = ENG value = -100 }
		command = { type = relation which = FRA value = -100 }
		command = { type = DIP which = -2 value =12 }
		command = { type = ADM which = -2 value =12 }
		command = { type = treasury value = 50 }# no need to pay their back pay now!
	}
}

#(1529-1535) The coronation of Charles V
#by Bordic
event = {
	id = 179073
	trigger = {
		OR = {
			emperor = yes
			AND = {
				event = 285107 #SPA: The coronation of Charles V
				emperor = no
			}
		}
		exists = PAP
		event = 251048 #PAP: The Treaty of Barcelona between the Emperor and the Pope
		NOT = {
			war = { country = PAP country = HAB }
			war = { country = PAP country = SPA }
			war = { country = FRA country = SPA }
		}
		OR = {
			event = 285106 #SPA: The Peace of Cambrai
			OR = {
				alliance = { country = FRA country = HAB }
				alliance = { country = FRA country = SPA }
				NOT = { owned = { province = 393 data = FRA } } #napoli
				NOT = { owned = { province = 389 data = FRA } } #Lombardia
			}
		}
	}
	random = no
	country = HAB
	name = "EVENTNAME285107" #The coronation of Charles V
	desc = "EVENTHIST285107"
	#-#In late 1529, according to the treaty stipulated in Barcelona a few months before, Charles V came to Bologna to meet the Pope. Princes and ambassadors of all Italian states came to this encounter with the intention to confirm their allegiance to the Empire. Charles V used his strengthened political influence to definitely settle the Italian balance of powers and the conflicts between the Italian minors that deceitfully used to switch sides between France and the Empire. According to Mercurino da Gattinara's advices Charles V granted independence to all the imperial fiefs and, with the mediation of Pope Clemens VII, even to Francesco Sforza who was reinstated in his duchy in spite of his joining the league of Cognac. Pope Clemens VII instead, receiving the territory of Parma was to renounce his claims to Modena and Ferrara and to promise to arrange for a Concile in the next future to discuss about the Reform of the Church. Settled the political affairs in the peninsula, Charles was crowned by Pope Clement VII King of Italy on 22 February 1530 and Holy Roman Emperor two day later, in two solemn ceremonies arranged in Bologna. The imperial crown was a really big gift for his 30th birthday: Charles V resulted, in facts, the last Holy Roman Emperor in history to be personally crowned by the Pope.

	date = { day = 22 month = October year = 1529 } #Charles V in Bologna
	offset = 20
	deathdate = { day = 22 month = October year = 1535 }

	action_a = {
		name = "ACTIONNAME179073A" #Now Karl, King of the Romans, is Emperor by God's will
		command = { type = DIP which = 2 value = 12 }
		command = { type = ADM which = 2 value = 12 }
		command = { type = independence which = MLO }
		command = { type = independence which = MAN }
		command = { type = independence which = MOD }
		command = { type = independence which = SIE }
		command = { type = independence which = GEN }
		command = { type = independence which = SAV }
		command = { type = independence which = HEL }
		#if SAV and HEL already exist, they'll receive all their core provinces
		command = { type = cedeprovince which = HEL value = 388 } #Bern
		command = { type = cedeprovince which = HEL value = 1612 } #Schwyz
		command = { type = cedeprovince which = SAV value = 404 } #Piemonte
		command = { type = cedeprovince which = SAV value = 405 } #Savoie
		#agreement with the Pope
		command = { type = cedeprovince which = PAP value = 402 } #Emilia
		command = { type = cedeprovince which = PAP value = 401 } #Firenze (to be released as PAP vassal)
	}
}

#(1534-1550) Loss of Wirtemberg (Hessen)
event = {
	id = 179005 #triggered by HES_185000 A
	random = no
	country = HAB
	name = "EVENTNAME179005" #The loss of Wirtemberg
	desc = "EVENTHIST179005"
	#-#Ulrich, former duke of Wirtemberg - his country had been sold to the Habsburgs - fled to Hessen. In his exile he became a protestant and convinced Philipp of Hessen to help him recover his possession for the sake of protestantism. Philipp occupied Wirtemberg with his troops and demanded the restoration of the independent duchy. Eventually the Habsburgs gave in to the pressure and returned Wirtemberg to Ulrich, who remained a vassal of the Habsburgs until 1599.

	action_a = {
		name = "ACTIONNAME179005A" #Give in and return Wirtemberg to Ulrich
		command = { type = independence which = WUR }
		command = { type = removecore which = 372 } #Württemberg
	}
	action_b = {
		name = "ACTIONNAME179005B" #Fight those heretics
		command = { type = removecore which = 372 } #Württemberg
		command = { type = desertion which = 372 value = 7000 } #Württemberg
		command = { type = revolt which = 372 } #Württemberg
		command = { type = revolt which = 372 } #Württemberg
		command = { type = relation which = HES value = -50 }
		command = { type = war which = HES } #absolutely not sure about that
		command = { type = province_revoltrisk which = 372 value = 5 } #Württemberg
	}
}

#(1535) Milan defies the Empire (MLO independent without France in game)
#by Bordic
event = {
	id = 179156 #triggered by MLO_228031 C
	random = no
	country = HAB
	name = "EVENTNAME285109" #Milan defies the Empire
	desc = "EVENTHIST285334"
	#-#

	action_a = {
		name = "ACTIONNAME285109A" #Milan must be under Imperial rule
		command = { 
			trigger = { emperor = yes }
			type = addcore_claim which = 389 #Lombardia
		}
		command = { type = relation which = MLO value = -200 }
		command = { type = stability value = -1 }
		command = { type = sleepevent which = 285222 } #SPA: The lapsed fief of Milan
		command = { type = sleepevent which = 179074 } #HAB: The lapsed fief of Milan
	}
}

#(1535-1550) Loss of Wirtemberg (Saxony)
event = {
	id = 179006 #triggered by SAC_273014 A
	random = no
	country = HAB
	name = "EVENTNAME179006" #The loss of Wirtemberg
	desc = "EVENTHIST179006"
	#-#Ulrich, former duke of Wirtemberg - his country had been sold to the Habsburgs - fled to Saxony. In his exile he became a protestant and convinced Johann Friedrich of Saxony to help him recover his possession for the sake of protestantism. Johann Friedrich occupied Wirtemberg with his troops and demanded the restoration of the independent duchy. Eventually the Habsburgs gave in to the pressure and returned Wirtemberg to Ulrich, who remained a vassal of the Habsburgs until 1599.

	action_a = {
		name = "ACTIONNAME179006A" #Give in and return Wirtemberg to Ulrich
		command = { type = independence which = WUR }
		command = { type = removecore which = 372 } #Württemberg
	}
	action_b = {
		name = "ACTIONNAME179006B" #Fight those heretics
		command = { type = removecore which = 372 } #Württemberg
		command = { type = desertion which = 372 value = 7000 } #Württemberg
		command = { type = revolt which = 372 } #Württemberg
		command = { type = revolt which = 372 } #Württemberg
		command = { type = relation which = SAC value = -50 }
		command = { type = war which = SAC } #absolutely not sure about that
		command = { type = province_revoltrisk which = 372 value = 5 } #Württemberg
	}
}

#(1535) The lapsed fief of Milan
#by Bordic
event = {
	id = 179074
	trigger = {
		OR = {
			AND = {
				emperor = yes
				exists = MLO
			}
			AND = {
				event = 285222 #SPA: The lapsed fief of Milan
				emperor = no
			}
		}
	}
	random = no
	country = HAB
	name = "EVENTNAME285222" #The lapsed fief of Milan
	desc = "EVENTHIST285222"
	#-#In 1530 during the congress of Bologna Pope Clement VII consecrated Charles V Holy Roman Emperor and convinced him to forgive the misbehaviour of Francesco II Sforza who joined the League of Cognac, as the Pope himself did. The Pope managed to have the Emperor grant Sforza the ducal title on the throne of Milan again, but under the firm condition that, on Sforza's death, the Duchy would have returned definitely to the Empire. A marriage was also agreed between Sforza and Charles V's niece Christine of Denmark.

	date = { day = 0 month = October year = 1535 }
	offset = 1
	deathdate = { day = 29 month = October year = 1535 }

	action_a = {
		name = "ACTIONNAME179074A" #Our Spanish line will inherit Milan
		command = { type = DIP which = 2 value = 12 }
		command = { type = ADM which = 2 value = 12 }
		command = { type = MIL which = 2 value = 12 }
		command = { type = relation which = SPA value = 30 }
	}
}

#(1540) The Habsburg Inheritance of Hungary - Habsburgs Kings - I -
event = {
	id = 179134
	trigger = {
		event = 19019 #TUR: The Death of János Zápolya (HUN vassal to TUR)
		event = 19018 #HUN: The Habsburg rule Hungary (HUN breaks vassalage from TUR)
	}
	random = no
	country = HAB
	name = "EVENTNAME3185" #The Habsburg Inheritance of Hungary
	desc = "EVENTHIST19024"
	#-#Zápolya's reign was contested from the very beginning. In 1538, Zápolya had secretly promised Ferdinand of Austria the Hungarian crown in order to buy peace. In 1540, while putting down a revolt in Transylvania, János died from illness, just three weeks after his Polish princess-bride had given him a son, János Sigusmund. With Zapolya's death, Ferdinand again invaded Hungary to try to claim his inheritance.

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

	action_a = {
		name = "ACTIONNAME3185A" #I will be crowned King of Hungary
		command = { type = addcore which = 316 } #Carpathia
		command = { type = addcore which = 317 } #Ruthenia
		command = { type = addcore which = 324 } #Maros
		command = { type = addcore which = 325 } #Magyar
		command = { type = addcore which = 326 } #Presburg
		command = { type = addcore which = 352 } #Odenburg
		command = { type = addcore which = 353 } #Pest
		command = { type = addcore which = 366 } #Croatia
		command = { type = vassal which = HUN }
		command = { type = alliance which = HUN }
		command = { type = add_countryculture which = magyar }
		command = { type = add_countryculture which = slovak }
		command = { type = relation which = HUN value = 150 }
		command = { type = stability value = 1 }
	}
}
#(1540) The Habsburg Inheritance of Hungary - Habsburgs Kings - II -
event = {
	id = 179135
	trigger = {
		event = 19021 #TUR: The Death of János Zápolya (HUN vassal to TUR, HUN no changing into SIE)
		event = 19018 #HUN: The Habsburg rule Hungary
	}
	random = no
	country = HAB
	name = "EVENTNAME3185" #The Habsburg Inheritance of Hungary
	desc = "EVENTHIST19021"
	#-#Zápolya's reign was contested from the very beginning. In 1538, Zápolya had secretly promised Ferdinand of Austria the Hungarian crown in order to buy peace. In 1540, while putting down a revolt in Transylvania, János died from illness. With Zapolya's death, Ferdinand again invaded Hungary to try to claim his inheritance. Finally the Ottoman Sultan, having had enough with the chaos in his vassal, Hungary, split the country in two. He annexed Hungary, while Ferdinand held the Western portion.

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

	action_a = {
		name = "ACTIONNAME3185A" #I will be crowned King of Hungary
		command = { type = addcore which = 316 } #Carpathia
		command = { type = addcore which = 317 } #Ruthenia
		command = { type = addcore which = 324 } #Maros
		command = { type = addcore which = 325 } #Magyar
		command = { type = addcore which = 326 } #Presburg
		command = { type = addcore which = 352 } #Odenburg
		command = { type = addcore which = 353 } #Pest
		command = { type = addcore which = 366 } #Croatia
		command = { type = vassal which = HUN }
		command = { type = alliance which = HUN }
		command = { type = add_countryculture which = magyar }
		command = { type = add_countryculture which = slovak }
		command = { type = relation which = HUN value = 150 }
		command = { type = stability value = 1 }
	}
}
#(1540) The Death of Zapolya
event = {
	id = 19026 #triggered by HUN_19024 A
	random = no
	country = HAB
	name = "EVENTNAME19019" #The Death of János Zápolya
	desc = "EVENTHIST19024"
	#-#Zápolya's reign was contested from the very beginning. In 1538, Zápolya had secretly promised Ferdinand of Austria the Hungarian crown in order to buy peace. In 1540, while putting down a revolt in Transylvania, János died from illness, just three weeks after his Polish princess-bride had given him a son, János Sigusmund. With Zapolya's death, Ferdinand again invaded Hungary to try to claim his inheritance.

	action_a = {
		name = "ACTIONNAME19026A" #We shall take our inheritance by force!
		command = { type = relation which = TUR value = -200 }
		command = { type = relation which = HUN value = -150 }
		command = { type = war which = HUN }
		command = { type = addcore which = 316 } #Carpathia
		command = { type = addcore which = 317 } #Ruthenia
		command = { type = addcore which = 324 } #Maros
		command = { type = addcore which = 325 } #Magyar
		command = { type = addcore which = 326 } #Presburg
		command = { type = addcore which = 352 } #Odenburg
		command = { type = addcore which = 353 } #Pest
		command = { type = addcore which = 366 } #Croatia
	}
	action_b = {
		name = "ACTIONNAME19026B" #Let the baby have it
		command = { type = relation which = HUN value = 100 }
		command = { type = relation which = TUR value = 50 }
	}
}
#(1540) The Habsburg Inheritance of Hungary - Habsburgs Kings -III-
event = {
	id = 179136
	trigger = {
		event = 19024 #HUN: The Death of János Zápolya (HUN seemingly independent)
		event = 19018 #HUN: The Habsburg rule in Hungary
	}
	random = no
	country = HAB
	name = "EVENTNAME3185" #The Habsburg Inheritance of Hungary
	desc = "EVENTHIST19024"
	#-#Zápolya's reign was contested from the very beginning. In 1538, Zápolya had secretly promised Ferdinand of Austria the Hungarian crown in order to buy peace. In 1540, while putting down a revolt in Transylvania, János died from illness, just three weeks after his Polish princess-bride had given him a son, János Sigusmund. With Zapolya's death, Ferdinand again invaded Hungary to try to claim his inheritance.

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

	action_a = {
		name = "ACTIONNAME3185A" #I will be crowned King of Hungary
		command = { type = addcore which = 316 } #Carpathia
		command = { type = addcore which = 317 } #Ruthenia
		command = { type = addcore which = 324 } #Maros
		command = { type = addcore which = 325 } #Magyar
		command = { type = addcore which = 326 } #Presburg
		command = { type = addcore which = 352 } #Odenburg
		command = { type = addcore which = 353 } #Pest
		command = { type = addcore which = 366 } #Croatia
		command = { type = vassal which = HUN }
		command = { type = alliance which = HUN }
		command = { type = add_countryculture which = magyar }
		command = { type = add_countryculture which = slovak }
		command = { type = relation which = HUN value = 150 }
		command = { type = stability value = 1 }
		command = { type = trigger which = 19023 } #TUR: The invasion of Hungary
	}
}

#(1540-1551) Siebenbürgen Agreement
event = {
	id = 179064 #triggered by TRA_282001 A
	random = no
	country = HAB
	name = "EVENTNAME179064" #Siebenbürgen Agreement
	desc = "EVENTHIST179064"
	#-#The scheming Martinuzzi has accepted Imperial suzerainty of Siebenbürgen. As per the arrangement, his ward János-Zsigmond Zápolya was betrothed to Archduke Ferdinand's daughter Helene with a stipulated a dowry of 100,000 gold pieces for his mother Izabella Jagelló and the Duchies of Oppeln and Ratibor in Silesia upon János-Zsigmond's majority. Martinuzzi would become a Cardinal and Primate of Hungary.

	action_a = {
		name = "EXCELLENT"
		command = { type = casusbelli which = TUR value = 48 }
		command = { type = relation which = TUR value = -100 }
		command = { type = relation which = TRA value = 100 }
		command = { type = treasury value = -100 }
		command = { type = dynastic which = TRA }
		command = { type = vassal which = TRA }
	}
}

#(1548) The Imperial Parliament at Augsburg
event = {
	id = 3188
	random = no
	country = HAB
	name = "EVENTNAME3188" #The Imperial Parliament at Augsburg
	desc = "EVENTHIST3188"
	#-#A temporary doctrinal agreement was proclaimed in May 1548 between German Catholics and Protestants and became imperial law on June 30, 1548. It was prepared and accepted at the insistence of the Holy Roman Emperor Charles V, who hoped to establish temporary religious unity in Germany until differences could be worked out in a general council of the Catholic Church. The Augsburg Interim primarily reflected a Catholic viewpoint. It did, however, allow clerical marriage and communion in both kinds (bread and wine) for the laity. Several Protestant electors objected to the Catholic emphasis of the Augsburg Interim and refused to abide by it. Charles attempted to force its acceptance, an action that led the Protestants to adopt the Leipzig Interim, which upheld Protestant doctrines, at a subsequent Diet. Neither interim was fully accepted so a German religious settlement was not brought about until the Peace of Augsburg (1555).

	date = { day = 1 month = january year = 1548 }
	offset = 10
	deathdate = { day = 2 month = december year = 1548 }

	action_a = {
		name = "ACTIONNAME3188A" #Middle-ground
		command = { type = religion which = catholic }
		command = { type = relation which = BRA value = -50 }
		command = { type = relation which = HAN value = -50 }
		command = { type = relation which = HES value = -50 }
		command = { type = relation which = PFA value = -50 }
		command = { type = relation which = SAC value = -50 }
		#command = { type = relation which = THU value = -50 } #Bayreuth
		command = { type = relation which = SHL value = -50 }
		command = { type = relation which = KLE value = -50 }
		command = { type = relation which = KOL value = -50 }
		command = { type = relation which = BAY value = -50 }
		command = { type = relation which = PAP value = -50 }
		command = { type = stability value = 1 }
	}
	action_b = {
		name = "ACTIONNAME3188B" #Catholic Support
		command = { type = religion which = catholic }
		command = { type = relation which = BRA value = -100 }
		command = { type = relation which = HAN value = -100 }
		command = { type = relation which = HES value = -100 }
		command = { type = relation which = PFA value = -100 }
		command = { type = relation which = SAC value = -100 }
		#command = { type = relation which = THU value = -100 } #Bayreuth
		command = { type = relation which = SHL value = -100 }
		command = { type = relation which = KLE value = 50 }
		command = { type = relation which = KOL value = 50 }
		command = { type = relation which = BAY value = 50 }
		command = { type = relation which = PAP value = 50 }
		command = { type = stability value = -1 }
	}
	action_c = {
		name = "ACTIONNAME3188C" #Protestant Support
		command = { type = relation which = BRA value = 50 }
		command = { type = relation which = HAN value = 50 }
		command = { type = relation which = HES value = 50 }
		command = { type = relation which = PFA value = 50 }
		command = { type = relation which = SAC value = 50 }
		#command = { type = relation which = THU value = 50 } #Bayreuth
		command = { type = relation which = SHL value = 50 }
		command = { type = relation which = KLE value = -100 }
		command = { type = relation which = KOL value = -100 }
		command = { type = relation which = BAY value = -100 }
		command = { type = relation which = PAP value = -100 }
		command = { type = stability value = -1 }
	}
}

#(1549) The Pragmatic Sanction of 1549
#by Archeolooginspe
event = {
	id = 179303
	trigger = {
		OR = {
			owned = { province = 379 data = -1 } #Artois
			owned = { province = 378 data = -1 } #Brabant
			owned = { province = 380 data = -1 } #Flanders
			owned = { province = 337 data = -1 } #Friesen
			owned = { province = 338 data = -1 } #Geldre
			owned = { province = 339 data = -1 } #Holland
			owned = { province = 377 data = -1 } #Luxenbourg
			owned = { province = 340 data = -1 } #Zeeland
		}
		NOT = {	exists = BUR }
		NOT = { event = 285300 } #SPA #IB added this to avoid both Austria and Spain getting the event
	}
	random = no
	country = HAB
	name = "EVENTNAME179303" #Pragmatic Sanction
	desc = "EVENTHIST179303"
	#-#In 1549, the 'Pragmatic Sanction' added a further link between the XVII provinces and declared them to be an 'indivisible, inseparable, whole' subject to the same law of succession.

	date = { day = 1 month = january year = 1549 }
	offset = 360
	deathdate = { day = 1 month = january year = 1550 }

	action_a = {
		name = "ACTIONNAME179303A" #Bring the XVII provinces together
		command = { type = domestic which = centralization value = 1 }
		command = { type = provincetax which = 379 value = 1 } #Artois
		command = { type = provincetax which = 378 value = 1 } #Brabant
		command = { type = provincetax which = 380 value = 1 } #Flandern
		command = { type = provincetax which = 337 value = 1 } #Friesen
		command = { type = provincetax which = 338 value = 1 } #Geldre
		command = { type = provincetax which = 339 value = 1 } #Holland
		command = { type = provincetax which = 377 value = 1 } #Luxembourg
		command = { type = provincetax which = 340 value = 1 } #Zeeland
		command = { type = relation which = FRA value = -50 }
	}
	action_b = {
		name = "ACTIONNAME179303B" #Let them keep their own succesion laws
		command = { type = stability value = 1 }
		command = { type = domestic which = aristocracy value = 1 }
	}
}

#(1550) Wirtemberg secured
event = {
	id = 179007
	trigger = {
		OR = {
			event = 179005 #HAB: The loss of Wirtemberg (help from Hessen)
			event = 179006 #HAB: The loss of Wirtemberg (help from Saxony)
		}
		owned = { province = 372 data = -1 }
	}
	random = no
	country = HAB
	name = "EVENTNAME179007" #Wirtemberg secured for Austria
	desc = "EVENTHIST179007"
	#-#Despite the protestant attempts to reinstall their fellow heretic Ulrich who was legally dispossessed by the emperor's wise judgement, Austria managed to defend Wirtemberg. Now that the usurper has died, our rightful claim isn't questioned anymore and we can finally consolidate our rule there.

	date = { day = 1 month = january year = 1550 }
	offset = 200
	deathdate = { day = 29 month = december year = 1550 }

	action_a = {
		name = "ACTIONNAME179007A" #Fine
		command = { type = addcore which = 372 } #Württemberg
		command = { type = province_revoltrisk which = 372 value = -5 } #Württemberg
	}
}

#(1552) Tuscany and the revolt in Siena
event = {
	id = 17359 #triggered by SIE_17358 A
	trigger = {
		exists = TOS
		NOT = {
			war = { country = HAB country = TOS }
		}
	}
	random = no
	country = HAB
	name = "EVENTNAME17359" #Tuscany and the revolt in Siena
	desc = "EVENTHIST17359"
	#-#In 1549 after increasing turmoil in Siena, the Spanish representative of the city, Don Diego di Mendoza, decided to build a fortress to ensure Spanish control of the territory. This decision was received with horror by the Sienese who begged with Charles V not to proceed. He refused, and several Sienese citizens in Rome received aid from French agents and collected an army. In 1552, as they marched on Siena the people revolted and threw out the Spanish troops, and an independent Siena took up a pro-French policy. Henri II, King of France, tried to exploit the situation by sending there an army led by Paul de Termes, who was successively substituted by Strozzi when an invasion of Corsica was attempted with the help of the Turkish fleet. On Emperor Charles V's decision to inflict an exemplary punishment upon the rebeling city, Cosimo I Duke of Tuscany responded to his call by invading and pillaging the villages surrounding Siena with the help of Spanish/imperial troops. After a year long siege laid by Medeghino and his Florentine troops, the city of Siena was eventually taken. Should we call on Tuscany to help us against Siena?

	action_a = {
		name = "ACTIONNAME17359A" #Tuscany can help
		command = { type = casusbelli which = SIE value = 12 }
		command = { type = relation which = SIE value = -400 }
		command = { type = relation which = TOS value = 200 }
		command = { type = trigger which = 17357 } #TOS: Revolt in Siena
	}
	action_b = {
		name = "ACTIONNAME17359B" #We can handle it
		command = { type = casusbelli which = SIE value = 12 }
		command = { type = relation which = SIE value = -400 }
	}
}
#(1552) Revolt in Siena
event = {
	id = 179152 #triggered by SIE_17355 A
	trigger = {
		OR = {
			NOT = {	exists = TOS }
			war = { country = HAB country = TOS }
		}
	}
	random = no
	country = HAB
	name = "EVENTNAME17357" #Revolt in Siena
	desc = "EVENTHIST17357"
	#-#In 1549 after increasing turmoil in Siena, the Spanish representative of the city, Don Diego di Mendoza, decided to build a fortress to ensure Spanish control of the territory. This decision was received with horror by the Sienese who begged with Charles V not to proceed. He refused, and several Sienese citizens in Rome received aid from French agents and collected an army. In 1552, as they marched on Siena the people revolted and threw out the Spanish troops, and an independent Siena took up a pro-French policy. Henri II, King of France, tried to exploit the situation by sending there an army led by Paul de Termes, who was successively substituted by Strozzi when an invasion of Corsica was attempted with the help of the Turkish fleet. On Emperor Charles V's decision to inflict an exemplary punishment upon the rebeling city, Cosimo I Duke of Tuscany responded to his call by invading and pillaging the villages surrounding Siena with the help of Spanish/imperial troops. After a year long siege laid by Medeghino and his Florentine troops, the city of Siena was eventually taken.

	action_a = {
		name = "ACTIONNAME17359B" #We can handle it
		command = { type = casusbelli which = SIE value = 12 }
		command = { type = relation which = SIE value = -400 }
	}
}

#(1555) The Religious Peace of Augsburg
event = {
	id = 3189
	random = no
	country = HAB
	name = "EVENTNAME3189" #The Religious Peace of Augsburg
	desc = "EVENTHIST3189"
	#-#Opened at Augsburg on Feb. 5, 1555, was proclaimed by Charles V, but not wishing to take part in the inevitable religious compromises, he refused to attend the proceedings and empowered his brother Ferdinand (the future emperor Ferdinand I) to settle all questions. It determined that in the future no member of the empire should make war against another on religious grounds and that this peace should remain operative until the denominations were peacefully reunited. Only two denominations were recognized, the Roman Catholics and the Lutherans. Moreover, in each territory of the empire, only one denomination was to be recognized, the religion of the prince's choice being thus made obligatory for his subjects. Protestant and Catholic citizens in the free and imperial cities remained free to exercise their religion as they pleased. The wish for a lasting settlement was so strong that the compromise peace, which satisfied no one completely and had many loopholes, was accepted. In spite of its shortcomings, the Peace of Augsburg saved the empire from serious internal conflicts for more than 50 years.

	date = { day = 1 month = january year = 1555 }
	offset = 10
	deathdate = { day = 2 month = december year = 1555 }

	action_a = {
		name = "ACTIONNAME3189A" #The Princes may choose their Religion
		command = { type = religion which = catholic }
		command = { type = relation which = BRA value = 100 }
		command = { type = relation which = HAN value = 100 }
		command = { type = relation which = HES value = 100 }
		command = { type = relation which = PFA value = 100 }
		command = { type = relation which = SAC value = 100 }
		#command = { type = relation which = THU value = 100 } #Bayreuth
		command = { type = relation which = SHL value = 100 }
		command = { type = relation which = KLE value = 50 }
		command = { type = relation which = KOL value = 50 }
		command = { type = relation which = BAY value = 50 }
		command = { type = relation which = PAP value = -100 }
		command = { type = domestic which = INNOVATIVE value = 1 }
		command = { type = stability value = 1 }
		command = { type = trigger which = 251014 } #PAP: Peace of Augsburg
	}
	action_b = {
		name = "ACTIONNAME3189B" #There is only one religion, Catholicism
		command = { type = religion which = catholic }
		command = { type = relation which = BRA value = -150 }
		command = { type = relation which = HAN value = -150 }
		command = { type = relation which = HES value = -150 }
		command = { type = relation which = PFA value = -150 }
		command = { type = relation which = SAC value = -150 }
		#command = { type = relation which = THU value = -150 } #Bayreuth
		command = { type = relation which = SHL value = -150 }
		command = { type = relation which = KLE value = 100 }
		command = { type = relation which = KOL value = 100 }
		command = { type = relation which = BAY value = 100 }
		command = { type = relation which = PAP value = 150 }
		command = { type = domestic which = INNOVATIVE value = -2 }
		command = { type = stability value = -1 }
	}
	action_c = {
		name = "ACTIONNAME3189C" #Anyone may choose their Religion
		command = { type = relation which = BRA value = -100 }
		command = { type = relation which = HAN value = -100 }
		command = { type = relation which = HES value = -100 }
		command = { type = relation which = PFA value = -100 }
		command = { type = relation which = SAC value = -100 }
		#command = { type = relation which = THU value = -100 } #Bayreuth
		command = { type = relation which = SHL value = -100 }
		command = { type = relation which = KLE value = -100 }
		command = { type = relation which = KOL value = -100 }
		command = { type = relation which = BAY value = -100 }
		command = { type = relation which = PAP value = -200 }
		command = { type = domestic which = INNOVATIVE value = 3 }
		command = { type = stability value = -1 }
	}
}

#(1556) The Empire of the Habsburgs
event = {
	id = 179089 #triggered by SPA_285253
	random = no
	country = HAB
	name = "EVENTNAME179089" #The Empire of the Habsburgs
	desc = "EVENTHIST285253"
	#-#In 1556 Emperor Charles decided to abdicate and before his retirement to the monastery of Yuste in Extremadura, he passed his imperial title to his brother Ferdinand, who he already entrusted with the government of the Habsburg hereditary lands in 1521 and supported his election as King of the Romans in 1531, making him his designated heir as Emperor. After Charles's abdication, Ferdinand would have assumed the title of Holy Roman Emperor, Charles seemingly having agreed to exclude his own son Felipe from the succession to the Austrian line of the House of Habsburg, which instead passed to Ferdinand's eldest son Maximilian as much as the imperial title.

	action_a = {
		name = "ACTIONNAME179089A" #Support Charles' will
		command = { type = treasury value = -200 }
		command = { type = relation which = BAY value = 50 }
		command = { type = relation which = BOH value = 50 }
		command = { type = relation which = BRA value = 50 }
		command = { type = relation which = BRE value = 50 }
		command = { type = relation which = HAN value = 50 }
		command = { type = relation which = HES value = 50 }
		command = { type = relation which = KLE value = 50 }
		command = { type = relation which = KOL value = 50 }
		command = { type = relation which = LOR value = 50 }
		command = { type = relation which = MAI value = 50 }
		command = { type = relation which = MEC value = 50 }
		command = { type = relation which = BRG value = 50 }
		command = { type = relation which = OLD value = 50 }
		command = { type = relation which = PFA value = 50 }
		command = { type = relation which = POM value = 50 }
		command = { type = relation which = SEI value = 50 }
		command = { type = relation which = PRU value = 50 }
		command = { type = relation which = ROM value = 50 }
		command = { type = relation which = SAC value = 50 }
		command = { type = relation which = SHL value = 50 }
		command = { type = relation which = STR value = 50 }
		command = { type = relation which = STT value = 50 }
		command = { type = relation which = TYR value = 50 }
		command = { type = relation which = MEI value = 50 }
		command = { type = relation which = WUR value = 50 }
	}
	action_b = {
		name = "ACTIONNAME179089B" #Ignore Charles' will
		command = { type = DIP which = -2 value = 24 }
		command = { type = vp value = -5 }
	}
}

#(1556) Hofkriegsrat
event = {
	id = 3331
	random = no
	country = HAB
	name = "EVENTNAME3331" #Hofkriegsrat
	desc = "EVENTHIST3331"
	#-#Ferdinand I started to reorganize Austrian administration. In 1527 he created new central organs: the Geheimer Rat, for foreign affairs and dynastic matters

	date = { day = 1 month = january year = 1556 }
	offset = 30
	deathdate = { day = 1 month = january year = 1557 }

	action_a = {
		name = "ACTIONNAME3331A" #Centralized Defensive Strategy
		command = { type = land value = 1000 }
		command = { type = domestic which = CENTRALIZATION value = 1 }
		command = { type = domestic which = ARISTOCRACY value = -1 }
		command = { type = domestic which = LAND value = 1 }
		command = { type = domestic which = OFFENSIVE value = -3 }
		command = { type = domestic which = QUALITY value = -2 }
		command = { type = fortress which = -1 value = 1 }
		command = { type = fortress which = -1 value = 1 }
		command = { type = stability value = -1 }
	}
	action_b = {
		name = "ACTIONNAME3331B" #Flexible Frontier Strategy
		command = { type = land value = 500 }
		command = { type = domestic which = CENTRALIZATION value = -2 }
		command = { type = domestic which = ARISTOCRACY value = 2 }
		command = { type = domestic which = LAND value = 3 }
		command = { type = domestic which = OFFENSIVE value = 3 }
		command = { type = domestic which = QUALITY value = 2 }
		command = { type = CAV which = -1 value = 10000 }
		command = { type = CAV which = -1 value = 10000 }
		command = { type = stability value = -1 }
	}
}

#(1556) The Abdication of Charles V - 1st version
event = {
	id = 179016
	trigger = { vassal = { country = SPA country = HAB } }
	random = no
	country = HAB
	name = "EVENTNAME179016" #The Emperor's Abdication
	desc = "EVENTHIST179016"
	#-#In 1556 when Karl abdicated his imperial status, the Austrian line of the House of Habsburg gained total independence from the Spanish House of Habsburg. Philip, Karl's son, was to rule Spain and the Netherlands, while Austria and the position as Emperor of the Holy Roman Empire fell to Ferdinand's decendants. In Ferdinand's last years he ruled as the equal of his nephew, Philip of Spain. Vienna became the political and economic center of the holdings of the Austrian Habsburgs.

	date = { day = 29 month = september year = 1556 }

	action_a = {
		name = "ACTIONNAME179016A" #As you wish, brother.
		command = { type = breakvassal which = SPA }
		command = { type = stability value = 2 }
		command = { type = relation which = SPA value = 200 }
		command = { type = sleepmonarch which = 055503 } #Karl I
		command = { type = wakemonarch which = 055504 } #Ferdinand I
	}
}
#(1556) The Abdication of Charles V - 2nd version
event = {
	id = 3749
	trigger = {
		NOT = {	vassal = { country = SPA country = HAB } }
		exists = SPA
	}
	random = no
	country = HAB
	name = "EVENTNAME3749" #The Abdication of Charles V
	desc = "EVENTHIST3749"
	#-#On the twenty-fifth day of October, 1555, the estates of the Netherlands were assembled in the great hall of the palace at Brussels. They had been summoned to be witnesses and the guarantees of the abdication, which Charles V had long before resolved upon, and which he was that day to execute. Charles was a devotee catholic and compassionate with other people, but he could not see why anyone would not come back to the only church there was, the Catholic Church. The incessant strife, both religious and political, within the Holy Roman Empire had worn him down. Therefore he wanted to split the Habsburg Empire between Madrid and Vienna and then withdraw to the calm milieu of his favorite cloister. Let the rash and youthful take care of the problems!

	date = { day = 29 month = september year = 1556 }

	action_a = {
		name = "ACTIONNAME3749A" #We go separate ways as Brothers
		command = { type = sleepmonarch which = 055503 } #Karl I
		command = { type = wakemonarch which = 055504 } #Ferdinand I
	}
}

#(1556-1820) Vienna
event = {
	id = 179023
	trigger = {
		owned = { province = 351 data = -1 } #Austria
		control = { province = 351 data = -1 } #Austria
	}
	random = no
	country = HAB
	name = "EVENTNAME179023" #Vienna
	desc = "EVENTHIST179023"
	#-#Vienna became the political and economic center of the holdings of the Austrian Habsburgs.

	date = { day = 0 month = october year = 1556 }
	offset = 50
	deathdate = { year = 1820 }

	action_a = {
		name = "ACTIONNAME179023A" #Let's establish our court there
		command = { type = stability value = 1 }
		command = { type = capital which = 351 } #Austria
		command = { type = population which = 351 value = 5000 }
		command = { type = provincetax which = 351 value = 1 }
	}
}

#(1599) Wirtemberg pays to end vassalage
event = {
	id = 179008 #triggered by WUR_331017 A
	random = no
	country = HAB
	name = "EVENTNAME179008" #Wirtemberg requests to be released
	desc = "EVENTHIST179008"
	#-#Although Duke Ulrich had been returned Wirtemberg by the Habsburgs, he remained their vassal. In 1599 Duke Friedrich decided that it was time to end this status and offered a large sum to emperor Rudolf to be released.

	action_a = {
		name = "ACTIONNAME179008A" #Take the money and end the vassalage
		command = { type = treasury value = 150 }
		command = { type = relation which = WUR value = 50 }
		command = { type = trigger which = 331019 } #WUR: Wirtemberg is released from the vassalage
	}
	action_b = {
		name = "ACTIONNAME179008B" #Wirtemberg has to remain faithful to us
		command = { type = relation which = WUR value = -70 }
	}
}

#(1600-1620) Italian Leaders abandon Austria
event = {
	id = 179035
	trigger = {
		OR = { #one of Italy, Modena/Ferrara and Tuscany must exist
			exists = ITA
			exists = MOD
			exists = TOS
		}
		NOT = { emperor = yes } #if they are emperor they get the leaders
		NOT = { countrysize = 6 } #if they have 6 provinces they get the leaders
		NOT = { #cannot own Vienna plus two other cores
			owned = { province = 351 data = -1 } #Austria
			OR = {
				AND = {
					owned = { province = 371 data = -1 } #Tyrol
					owned = { province = 327 data = -1 } #Ostmarch
				}
				AND = {
					owned = { province = 371 data = -1 } #Tyrol
					owned = { province = 350 data = -1 } #Salzburg
				}
				AND = {
					owned = { province = 371 data = -1 } #Tyrol
					owned = { province = 369 data = -1 } #Steiermark
				}
				AND = {
					owned = { province = 327 data = -1 } #Ostmarch
					owned = { province = 350 data = -1 } #Salzburg
				}
				AND = {
					owned = { province = 327 data = -1 } #Ostmarch
					owned = { province = 369 data = -1 } #Steiermark
				}
				AND = {
					owned = { province = 350 data = -1 } #Salzburg
					owned = { province = 369 data = -1 } #Steiermark
				}
			}
		}
	}
	random = no
	country = HAB
	name = "EVENTNAME179035" #Italian Leaders abandon Austria
	desc = "EVENTHIST179035"
	#-#With Austria's failure to become a major player on the European scene, she is no longer an attractive employer for military-minded Europeans. Some Italian generals are no longer available.

	date = { day = 7 month = march year = 1600 }
	offset = 953
	deathdate = { day = 17 month = november year = 1620 }

	action_a = {
		name = "OH_NO"
		command = { type = sleepleader which = 055811 } #Montecuccoli (HAB)
		command = { type = sleepleader which = 055810 } #Piccolomini (HAB)
		command = { type = wakeleader which = 0102803 } #Montecuccoli (MOD)
	}
}

#(1600-1820)
event = {
	id = 179147
	trigger = {
		owned = { province = 354 data = -1 } #Banat
		OR = { #Do the Ottomans own or control any province neighbouring Banat or Banat itself?
			control = { province = 354 data = TUR } #Banat
			control = { province = 322 data = TUR } #Wallachia
			control = { province = 323 data = TUR } #Transylvania
			control = { province = 324 data = TUR } #Maros
			control = { province = 353 data = TUR } #Pest
			control = { province = 355 data = TUR } #Serbia
			control = { province = 366 data = TUR } #Croatia
			owned = { province = 322 data = TUR } #Wallachia
			owned = { province = 323 data = TUR } #Transylvania
			owned = { province = 324 data = TUR } #Maros
			owned = { province = 353 data = TUR } #Pest
			owned = { province = 355 data = TUR } #Serbia
			owned = { province = 366 data = TUR } #Croatia
		}
		core = { province = 354 data = TUR } #Banat
		atwar = yes
	}
	random = no
	country = HAB
	name = "EVENTNAME179147" #Wartime devastation of Banat
	desc = "EVENTHIST179147"
	#-#The struggle on the military border between the Habsburg and the Ottoman Empire continued for years and years not only of large-scale warfare, sieges and occupation but also of raids and other incursions. The people living in the border regions of the empire suffered.

	date = { day = 21 month = july year = 1600 }
	offset = 30
	deathdate = { year = 1820 }

	action_a = {
		name = "ALAS"
		command = { type = population which = 354 value = -1000 } #Banat
	}
}

#(1604) The Protestant Rebellion in Hungary
event = {
	id = 3099
	trigger = {
		OR = {
			religion = catholic
			religion = counterreform
		}
		owned = { province = 325 data = -1 }
		owned = { province = 326 data = -1 }
		owned = { province = 352 data = -1 }
		owned = { province = 353 data = -1 }
		NOT = {	exists = HUN }
	}
	random = no
	country = HAB
	name = "EVENTNAME3099" #The Protestant Rebellion in Hungary
	desc = "EVENTHIST3099"
	#-#Religious antagonism played an important part when war between the empire and the Turks broke out again in 1591. In the so-called Fifteen Years' War, imperial troops entered Transylvania, and their commander, George Basta, behaved there (and in northern Hungary) with such insane cruelty toward the Hungarian Protestants that a Transylvanian general, István Bocskay, formerly a Habsburg supporter, revolted. His army of wild herdsmen (hajduks) drove out Basta, and in June 1606 Bocskay concluded with Rudolf the Peace of Vienna, which left him prince of an enlarged Transylvania and also guaranteed the rights of the Protestants of Royal Hungary.

	date = { day = 1 month = january year = 1604 }
	offset = 30
	deathdate = { day = 1 month = january year = 1605 }

	action_a = {
		name = "ACTIONNAME3099A" #Crush the Heretics
		command = { type = religiousrevolt which = 325 } #Magyar
		command = { type = religiousrevolt which = 353 } #Pest
		command = { type = religiousrevolt which = -1 }
		command = { type = religiousrevolt which = -1 }
		command = { type = domestic which = CENTRALIZATION value = 2 }
		command = { type = domestic which = ARISTOCRACY value = -2 }
		command = { type = stability value = -1 }
	}
	action_b = {
		name = "ACTIONNAME3099B" #Repress the Heretics
		command = { type = religiousrevolt which = 325 } #Magyar
		command = { type = religiousrevolt which = 353 } #Pest
		command = { type = domestic which = CENTRALIZATION value = 1 }
		command = { type = domestic which = ARISTOCRACY value = -1 }
		command = { type = stability value = -2 }
	}
	action_c = {
		name = "ACTIONNAME3099C" #Give Concessions
		command = { type = domestic which = CENTRALIZATION value = -3 }
		command = { type = domestic which = ARISTOCRACY value = 3 }
		command = { type = domestic which = SERFDOM value = 1 }
		command = { type = stability value = 2 }
		command = { type = treasury value = -300 }
	}
}

#(1607-1609) The Catholic League
event = {
	id = 3192
	trigger = {
		OR = {
			religion = catholic
			religion = counterreform
		}
	}
	random = no
	country = HAB
	name = "EVENTNAME3192" #The Catholic League
	desc = "EVENTHIST3192"
	#-#The German Catholic states felt threatened by the 1608 creation of the Evangelic Union of their northern Protestant neighbors, following the Donauwerth exclusion from the Empire. Feeling the urge to unite, they regrouped into a Catholic League that same year. The stage was set for the Thirty Years War.

	date = { day = 1 month = january year = 1607 }
	offset = 30
	deathdate = { day = 1 month = january year = 1609 }

	action_a = {
		name = "ACTIONNAME3192A" #Prepare to Join
		command = { type = relation which = FRA value = -100 }
		command = { type = relation which = BRA value = -150 }
		command = { type = relation which = HAN value = -150 }
		command = { type = relation which = HES value = -150 }
		command = { type = relation which = PFA value = -150 }
		command = { type = relation which = SAC value = -150 }
		#command = { type = relation which = THU value = -150 } #Bayreuth
		command = { type = relation which = SHL value = -150 }
		command = { type = relation which = KLE value = 100 }
		command = { type = relation which = KOL value = 150 }
		command = { type = relation which = BAY value = 150 }
		command = { type = relation which = PAP value = 150 }
		command = { type = relation which = SPA value = 150 }
	}
	action_b = {
		name = "ACTIONNAME3192B" #Stay Neutral
		command = { type = relation which = BRA value = 100 }
		command = { type = relation which = HAN value = 100 }
		command = { type = relation which = HES value = 100 }
		command = { type = relation which = PFA value = 100 }
		command = { type = relation which = SAC value = 100 }
		#command = { type = relation which = THU value = 100 } #Bayreuth
		command = { type = relation which = BAY value = 50 }
		command = { type = relation which = KLE value = -50 }
		command = { type = relation which = KOL value = -50 }
		command = { type = relation which = SPA value = -100 }
		command = { type = relation which = PAP value = -150 }
	}
}

#(1609) The Royal Letter of Bohemia
event = {
	id = 3193
	trigger = {
		OR = {
			vassal = { country = HAB country = BOH }
			owned = { province = 328 data = -1 } #Bohemia
		}
		NOT = {
			event = 129041 #BOH: The Royal Letter
			vassal = { country = BOH country = HAB }
		}
	}
	random = no
	country = HAB
	name = "EVENTNAME3193" #The Royal Letter of Bohemia
	desc = "EVENTHIST3193"
	#-#Pressed by the Estates of Bohemia and fearing the increasing power of his brother Ferdinand, Emperor Rudolf issued the Royal Letter of Bohemia. The letter gave religious freedom for all Protestants in Bohemia and the later recall of the letter would be one of the causes for the thirty years war.

	date = { day = 1 month = january year = 1609 }
	offset = 30
	deathdate = { day = 29 month = december year = 1609 }

	action_a = {
		name = "ACTIONNAME3193A" #Issue it
		command = { type = relation which = BOH value = 100 }
		command = { type = provincetax which = 328 value = 1 } #Bohemia
		command = { type = provincetax which = 330 value = 1 } #Sudeten
		command = { type = stability value = -1 }
		command = { type = sleepevent which = 129041 } #BOH: The Royal Letter
	}
	action_b = {
		name = "ACTIONNAME3193B" #Do not issue it
		command = { type = relation which = BOH value = -150 }
		command = { type = provincetax which = 328 value = -1 } #Bohemia
		command = { type = provincetax which = 330 value = -1 } #Sudeten
		command = { type = stability value = 1 }
		command = { type = sleepevent which = 129041 } #BOH: The Royal Letter
	}
}
#(1609) The Royal Letter of Bohemia (independent Bohemia and HAB Emperor)
#by Bordic
event = {
	id = 179098
	trigger = {
		emperor = yes
		exists = BOH
		event = 129041 #BOH: The Royal Letter
		NOT = {
			vassal = { country = BOH country = HAB }
		}
	}
	random = no
	country = HAB
	name = "EVENTNAME3193" #The Royal Letter of Bohemia
	desc = "EVENTHIST3193"
	#-#Pressed by the Estates of Bohemia and fearing the increasing power of his brother Ferdinand, Emperor Rudolf issued the Royal Letter of Bohemia. The letter gave religious freedom for all Protestants in Bohemia and the later recall of the letter would be one of the causes for the thirty years war.

	date = { day = 1 month = january year = 1609 }
	offset = 50
	deathdate = { day = 29 month = december year = 1609 }

	action_a = {
		name = "ALAS"
		command = { type = stability value = -1 }
		command = { type = relation which = BOH value = -150 }
		command = { type = ADM which = -2 value = 24 }
	}
}

#(1609) Confiscation of Cleves
event = {
	id = 179202 #triggered by KLE_200101 D / KLE_200102 C / KLE_200103 D / KLE_200104 C / KLE_200106 D / KLE_200107 D / KLE_200108 C
	random = no
	country = HAB
	name = "EVENTNAME179202" #Confiscation of Cleves
	desc = "EVENTHIST179202"
	#-#Duke Johann Wilhelm of Jülich, Cleves and Berg died on March 25th 1609, in a state of complete insanity and without a child or brother. While in the United Duchies a woman could not succeed to the throne herself, succession through a female relative was possible. Hence the husbands of Johann Wilhelm's sisters claimed the inheritance. Duke Albrecht Friedrich of Prussia, married to the oldest sister Marie-Eleonore, had no male heir himself and ceded his claim to the husband of his daughter Anna, Elector Johann Sigismund of Brandenburg. This claim was questioned by the husband of the second sister Anna, Philipp Ludwig of Palatinate-Neuburg, who wanted the inheritance for his son Wolfgang Wilhelm. The Count of Nevers-Rethel, originally a sidebranch of the Cleves ducal dynasty, and the Elector of Saxony considered themselves legitimate heirs by virtue of several treaties, and the Emperor, desiring to expand the Habsburgs' supply base near the rebellious Netherlands, declared both female succession and the treaties invalid and was about to confiscate the United Duchies as a lapsed fief. Imperial troops have succeeded in enforcing this plan and we are now in possession of the Duchies.

	action_a = {
		name = "GOOD"
		command = { type = addcore which = 334 } #Münster
		command = { type = addcore which = 343 } #Kleves
		command = { type = inherit which = KLE }
		command = { type = relation which = BRA value = -100 }
		command = { type = relation which = SAC value = -50 }
	}
}

#(1614-1622) The Uskok resettlement
#by Isaac Brock
event = {
	id = 179000
	trigger = {
		event = 326004 #Venice declared war
		event = 326001 #first event was vs HAB
		NOT = { war = { country = VEN country = HAB } } #war is over
		OR = {
			owned = { province = 368 data = VEN } #Istria
		 	owned = { province = 365 data = VEN } #Dalmatia
		}
	}
	random = no
	country = HAB
	name = "EVENTNAME179000" #The Uskok resettlement
	desc = "EVENTHIST179000"
	#-#The uskoks were refugees from the Balkans who settled in the town of Senj under the Habsburgs, who used them to help protect the frontier. Their piracy led to war between Austria and Venice. As part of the peace the Uskoks were forcibly relocated away from the coast.

	date = { day = 1 month = january year = 1614 }
	offset = 1
	deathdate = { day = 1 month = january year = 1622 }

	action_a = {
		name = "ACTIONNAME179000A" #Resettle the uskoks
		command = { type = provincemanpower which = 366 value = 2 } #Croatia
		command = { type = relation which = VEN value = 50 }
		command = { type = relation which = TUR value = 30 }
		command = { type = manpower value = -5 }
		command = { type = desertion which = -1 value = 3000 }
		command = { type = naval value = -500 }
		command = { type = provincemanpower which = 368 value = -1 } #Istria
		command = { type = add_countryculture which = dalmatian }
	}
}

#(1618) The second defenestration of Prague
event = {
	id = 3194
	trigger = {
		OR = {
			religion = catholic
			religion = counterreform
		}
		OR = {
			AND = {
				event = 3193 #HAB: The Royal Letter of Bohemia
				OR = {
					vassal = { country = HAB country = BOH }
					owned = { province = 328 data = -1 } #Bohemia
				}
			}
			AND = {
				emperor = yes
				exists = BOH
				event = 129041 #BOH: The Royal Letter
			}
		}
		NOT = {
			vassal = { country = BOH country = HAB }
			event = 179069 #HAB: Protestant Bohemian King
		}
	}
	random = no
	country = HAB
	name = "EVENTNAME3194" #The second defenestration of Prague
	desc = "EVENTHIST3194"
	#-#The revolt begun in Prague after the royal letter of Bohemia had been recalled. Two royal officers were hurled from a window by Protestant members of the Bohemian diet out the window into a pile of dung, in deliberate imitation of the incident which had kicked off the Hussite rebellion two hundred years before, the first defenestration of Prague (July, 1419). Ferdinand was declared deposed and the Bohemian throne was offered to Frederick V, the elector palatine. With this Bohemian Revolt the massacres of the so-called Thirty Years War officially started in the Holy Roman Empire.

	date = { day = 1 month = january year = 1618 }
	offset = 30
	deathdate = { day = 29 month = december year = 1618 }

	action_a = {
		name = "ACTIONNAME3194A" #Not good at all
		command = { type = stability value = -3 }
		command = { type = relation which = BOH value = -200 }
		command = { type = province_revoltrisk which = 328 value = 10 } #Bohemia
		command = { type = province_revoltrisk which = 329 value = 6 } #Erz
		command = { type = province_revoltrisk which = 330 value = 6 } #Sudeten
		command = { type = province_revoltrisk which = 314 value = 6 } #Silesia
		command = { type = province_revoltrisk which = 315 value = 4 } #Moravia
		command = { type = revolt which = 328 } #Bohemia
		command = { type = revolt which = 328 } #Bohemia
		command = { type = revolt which = 330 } #Sudeten
		command = { type = revolt which = 314 } #Silesia
		command = { type = revolt which = 315 } #Moravia
		command = { type = sleepevent which = 179069 } #HAB: Protestant Bohemian King
	}
}
#(1618) Protestant Bohemian King I - Ahistorical
event = {
	id = 179069
	trigger = {
		NOT = {
			religion = catholic
			religion = counterreform
		}
		OR = {
			vassal = { country = HAB country = BOH }
			owned = { province = 328 data = -1 } #Bohemia
			AND = {
				emperor = yes
				exists = BOH
				event = 129041 #BOH: The Royal Letter
			}
		}
		NOT = {
			vassal = { country = BOH country = HAB }
			event = 3194 #HAB: The second defenestration of Prague
		}
	}
	random = no
	country = HAB
	name = "EVENTNAME179069" #Protestant Bohemian King
	desc = "EVENTHIST179069"
	#-#Protestant nobles of Bohemia recognize Habsburgs as Bohemian Kings. Bohemia is now a dominion of the House of Habsburg.

	date = { day = 1 month = january year = 1618 }
	offset = 30
	deathdate = { day = 29 month = december year = 1618 }

	action_a = {
		name = "GOOD_NEWS"
		command = { type = addcore which = 314 } #Silesia
		command = { type = addcore which = 315 } #Moravia
		command = { type = addcore which = 327 } #Ostmarch
		command = { type = addcore which = 328 } #Bohemia
		command = { type = addcore which = 329 } #Erz
		command = { type = addcore which = 330 } #Sudeten
		command = { type = sleepevent which = 3194 } #HAB: The second defenestration of Prague
	}
}

#(1619-1624) The Winter King of Prague
event = {
	id = 3097 #triggered by BOH_3643 A
	random = no
	country = HAB
	name = "EVENTNAME3097" #The Winter King of Prague
	desc = "EVENTHIST3097"
	#-#In 1608 the tension increased between the catholic parts and the protestant parts of the empire. The Protestants entered a union under the prince Fredrik of Pfalz that was supported by Brandenburg and Hessen-Kassel. The Catholics answered by forming a union of their own, the catholic league. It was led by Maximilian of Bavaria. In 1618 the Protestants of Bohemia rebelled by throwing catholic emissaries from the windows of their mansion. They continued to choose a protestant King of Bohemia, prince Fredrik of Pfalz. The emperor couldn't accept this, as he also was King of Bohemia. He sent his experienced commander Jean Tcerclaes Tilly with his troops to Bohemia and in the battle of the White Mountain (8 November 1620), Fredrik of Pfalz reign ended and all protestant resistance in Austria and southern Germany was crushed. Fredrik escaped from Bohemia and was named winter King due to his short reign.

	action_a = {
		name = "ACTIONNAME3097A" #Exterminate the Troublemakers
		command = { type = relation which = BOH value = -200 }
		command = { type = relation which = PFA value = -150 }
		command = { type = casusbelli which = BOH value = 60 }
		command = { type = casusbelli which = PFA value = 60 }
		command = { type = domestic which = INNOVATIVE value = -2 }
		command = { type = treasury value = -200 }
		command = { type = addcore which = 314 } #Silesia
		command = { type = addcore which = 315 } #Moravia
		command = { type = addcore which = 327 } #Ostmarch
		command = { type = addcore which = 328 } #Bohemia
		command = { type = addcore which = 329 } #Erz
		command = { type = addcore which = 330 } #Sudeten
	}
	action_b = {
		name = "ACTIONNAME3097B" #Let them go their own way
		command = { type = relation which = BOH value = 150 }
		command = { type = relation which = PFA value = 150 }
		command = { type = domestic which = INNOVATIVE value = 2 }
		command = { type = stability value = 2 }
	}
}

#(1622-1629) For an Archduchess's hand
event = {
	id = 179065 #triggered by TRA_282008 A
	random = no
	country = HAB
	name = "EVENTNAME179065" #For an Archduchess's hand
	desc = "EVENTHIST179065"
	#-#Gabriel Bethlen de Iktar - Prince of Siebenbürgen has come to Vienna with the intention of obtaining an alliance against the Ottomans and the hand of an Austrian Archduchess. Shall we oblige?

	action_a = {
		name = "ACTIONNAME179065A" #Yes
		command = { type = casusbelli which = TUR value = 36 }
		command = { type = relation which = TRA value = 75 }
		command = { type = dynastic which = TRA }
	}
	action_b = {
		name = "ACTIONNAME179065B" #No
		command = { type = relation which = TRA value = -25 }
		command = { type = relation which = TUR value = 25 }
	}
}

#(1626) Peasant Revolt in Austria
event = {
	id = 3195
	random = no
	country = HAB
	name = "EVENTNAME3195" #Peasant Revolt in Austria
	desc = "EVENTHIST3195"
	#-#The 1620's were characterized by long and cold winters, late springs and cold and wet summers, leading to crop-failure and sharp increases in grain prices. Into this atmosphere of enhanced tension broke a climatic event of unusual severity. In 1626, during the last week of May, in the middle of the vegetation period, winter returned. The temperature fell so that lakes and rivers froze and trees shed their leaves. The unexpected return of winter caused panic and anxiety among the peasants who could not remember ever experiencing such destruction of their fields. This event, combined with the brutal persecution of protestants, led the mainly protestant peasants of Upper Austria, pledged to Bavaria, to revolt. The peasants were defeated after heavy fighting, and in 1628 the country passed into the hands of the emperor again.

	date = { day = 1 month = january year = 1626 }
	offset = 30
	deathdate = { day = 29 month = december year = 1626 }

	action_a = {
		name = "ACTIONNAME3195A" #Pappenheim will take care of the Matter
		command = { type = revoltrisk which = 36 value = 3 }
		command = { type = stability value = -1 }
	}
}

#-----------------------------------------------------------------------------------------------
#Succession of the throne of Mantua Sequence

#(1627) Nevers succeeds to Mantua
#by Aylo1
event = {
	id = 179119 #triggered by MAN_220031 A
	random = no
	country = HAB
	name = "EVENTNAME179119" #Nevers succeeds to Mantua
	desc = "EVENTHIST179119"
	#-#Upon the death of Vinzenz II, his Duchy passed to a French cousin Karl I - Herzog von Nevers. But Kaiser Ferdinand II who wed Eleanora Gonzaga (Vinzenz's sister) wanted Mantua for himself. He supported Herzog von Guastalla's claim to Mantua and Herzog von Savoyern's claim to Montferrat. With help from Spain, Savoyern occupied Montferrat while the Kaiser's army sacked Mantua (1629) but French intervention ended Savoyern's dream with the Peace of Susa (Apr 1630). Gustavus II Adolphus of Sweden's entrance into the Thirty Years War (1618-48) forced Ferdinand II to sign the Peace of Regensburg (Oct 1630) allowing his troops to fight elsewhere. Ludwig XIII's refusal prolonged the Mantuan campaign til Cherasco (1631) which gave our allies some of the territories they sought.

	action_a = {
		name = "ACTIONNAME179119A" #Assert Imperial rights to Mantua
		command = { type = casusbelli which = FRA value = 36 }
		command = { type = casusbelli which = MAN value = 36 }
		command = { type = casusbelli which = VEN value = 36 }
		command = { type = casusbelli which = PAP value = 36 }
		command = { type = relation which = MAN value = -150 }
		command = { type = relation which = FRA value = -150 }
		command = { type = relation which = VEN value = -100 }
		command = { type = relation which = PAP value = -100 }
		command = { type = relation which = SPA value = 100 }
		command = { type = relation which = SAV value = 100 }
		command = { type = alliance which = SPA }
		command = { type = alliance which = SAV }
		command = { type = stability value = 2 }
	}
}
#(1631) Treaty of Cherasco
#by Aylo1
event = {
	id = 179120
	trigger = {
		event = 220031 #MAN: Succession of Vincenzo II
		event = 179119 #HAB: Nevers succeeds to Mantua
		event = 285273 #SPA: Guastalla Denied
		NOT = {
			war = { country = HAB country = FRA }
			war = { country = SPA country = FRA }
		}
	}
	random = no
	country = HAB
	name = "EVENTNAME179120" #Treaty of Cherasco (1631)
	desc = "EVENTHIST179120"
	#-#After Habsburg troops sacked Mantua (1629) and Savoyard troops occupied Montferrato, French intervention neutralized Savoy at Susa (Apr 1630). Unfavourable terms for France in the Peace of Regensburg (Oct 1630) prolonged the war, but developments in Germany helped restore peace at Cherasco (6 April 1631). Gonzagas's testimony was revised whereby Mayenne's father, Herzog von Nevers received Mantua. Guastalla gained lands Luzzara and Reggiolo whilst Savoy got parts of Montferrat. France renounced all Italian conquests for territories in the Piedmont. The Habsburgs retained their Italian hegemony but at a reduced military presence.

	date = { day = 6 month = april year = 1631 }
	offset = 10
	deathdate = { day = 19 month = june year = 1631 } #conflicting dates

	action_a = {
		name = "OK"
		command = { type = independence which = MAN } #in case
		command = { type = relation which = MAN value = -25 }
		command = { type = relation which = FRA value = -25 }
		command = { type = relation which = VEN value = -25 }
		command = { type = relation which = PAP value = -25 }
		command = { type = relation which = SPA value = 25 } #already high
		command = { type = relation which = SAV value = 25 }
		command = { type = desertion which = 371 value = 5000 } #Tirol
		command = { type = desertion which = 389 value = 5000 } #Lombardia
		command = { type = desertion which = 390 value = 5000 } #Mantua
		command = { type = stability value = 2 }
		command = { type = trigger which = 285274 } #SPA: Treaty of Cherasco
	}
}
#(1631) Treaty of Cherasco - Ahistorical
#by Aylo1
event = {
	id = 179121 #triggered by SPA_285275
	random = no
	country = HAB
	name = "EVENTNAME179120" #Treaty of Cherasco (1631)
	desc = "EVENTHIST285275"
	#-#After Imperial troops sacked Mantua (1629) and Savoy occupied Montferrato, French intervention ended Savoyard ambitions at Susa (Apr 1630). Although preliminary peace was achieved at Regensburg (Oct 1630), France continued to interfere. Fortunately a timely rebellion of French Huguenots under Enrique - Duque di Rohan (funded by Spanish gold) succeeded in drawing Richelieu's attentions from Italy, allowing Habsburg forces to retake Mantua and dictate the Treaty of Cherasco (1631). Gonzaga-Nevers was expelled from Italy whilst the senior Gonzaga heiress Maria now wed Guastalla's heir - who became the new Herzog von Mantua and vassal of the Emperador. Montferrat was partitioned between Savoy and Spain, thereby securing the southern frontier shortly before the incursion of Gustavus II Adolphus in Germany.

	action_a = {
		name = "SPLENDID"
		command = { type = independence which = MAN } #in case
		command = { type = relation which = SPA value = 50 }
		command = { type = relation which = MAN value = 25 }
		command = { type = relation which = SAV value = 25 }
		command = { type = relation which = FRA value = -100 }
		command = { type = relation which = VEN value = -50 }
		command = { type = relation which = PAP value = -50 }
		command = { type = stability value = 1 }
		command = { type = trigger which = 220033 } #MAN: Treaty of Cherasco
	}
}
#End of Succession of the throne of Mantua Sequence
#-----------------------------------------------------------------------------------------------

#(1629) The Edict of Restitution
event = {
	id = 3196
	trigger = {
		NOT = {
			vassal = { country = BOH country = HAB }
			vassal = { country = PFA country = HAB }
		}
		OR = {
			religion = catholic
			religion = counterreform
		}
		OR = {
			owned = { province = 314 data = -1 }
			owned = { province = 315 data = -1 }
			owned = { province = 328 data = -1 }
			owned = { province = 329 data = -1 }
			owned = { province = 330 data = -1 }
			vassal = { country = HAB country = BOH }
			AND = {
				event = 3665 #PFA: The Winter King of Prague
				OR = {
					vassal = { country = HAB country = PFA }
					AND = {
						NOT = { exists = PFA }
						OR = {
							owned = { province = 345 data = -1 } #Pfalz
							owned = { province = 347 data = -1 } #Würzburg
						}
					}
				}
			}
		}
		event = 3194 #HAB: The second defenestration of Prague
		NOT = { event = 179070 } #HAB: Protestant Bohemian King
	}
	random = no
	country = HAB
	name = "EVENTNAME3196" #The Edict of Restitution
	desc = "EVENTHIST3196"
	#-#The first phase of the Thirty Years War saw the defeat of the rebellious protestant nobles of Bohemia who were punished severely and their lands expropriated because of their decision to depose Ferdinand of Austria in favor of the Protestant Palatine elector as Bohemian King. Consequently religious persecutions began in Bohemia to eradicate Protestantism from that land. To penalize Friedrich V of the Palatinate and to reward Maximilian of Bavaria, Ferdinand deprived Friedrich of his electorate and of the Upper Palatinate and granted both to Bavaria. That was an obvious violation of imperial law, but since no German prince was really in a position to defy Ferdinand and Maximilian, it was done and Maximilian had achieved a recognition proportionate to his power. An unsuccessful attempt to help the Lutheran rulers of neighboring Lower Saxony made by King Christian IV of Denmark who, himself a Lutheran and, as Duke of Holstein, an Imperial nobleman, feared that Denmark's sovereignty as a Protestant nation was being threatened. The Danish army was routed by the fiercer imperial troops under the command of Albrecht von Wallenstein, who was given by Emperor Ferdinand II free hand in pillaging all the territories his army would have crossed or captured from the enemy. The victories of the Catholic League against the German Protestant princes persuaded Ferdinand II to issue the Edict of Restitution with the intention to take back the Lutheran holdings that were, according to the Peace of Augsburg, rightfully the possession of the Catholic Church. So this brief document purported to do no more than enforce the terms of the Peace of Augsburg. However, the interpretation put on that document was that which had been urged by partisans of Catholicism. Thus it became the source of outrage for King Gustav II Adolphus of Sweden (the Lion of the North) who, like Christian IV before him, came to aid the German Lutherans to forestall Catholic aggression against their homeland and to obtain economic influence in the German states around the Baltic Sea which were threatened by the imperial authority.

	date = { day = 1 month = january year = 1629 }
	offset = 30
	deathdate = { day = 29 month = december year = 1629 }

	action_a = {
		name = "ACTIONNAME3196A" #Yes, and eradicate Protestants in Bohemia
		command = { type = province_revoltrisk which = 328 value = -10 } #Bohemia
		command = { type = province_revoltrisk which = 329 value = -6 } #Erz
		command = { type = province_revoltrisk which = 330 value = -6 } #Sudeten
		command = { type = province_revoltrisk which = 314 value = -6 } #Silesia
		command = { type = province_revoltrisk which = 315 value = -4 } #Moravia
		command = { type = provincereligion which = 328 value = catholic } #Bohemia
		command = { type = provincereligion which = 329 value = catholic } #Erz
		command = { type = provincereligion which = 330 value = catholic } #Sudeten
		command = { type = provincereligion which = 314 value = catholic } #Silesia
		command = { type = provincereligion which = 315 value = catholic } #Moravia
		command = { type = provinceculture which = 330 value = german } #Sudeten
		#Bohemia is now claimed as dominion of the House of Habsburg
		command = { type = addcore which = 314 } #Silesia
		command = { type = addcore which = 315 } #Moravia
		command = { type = addcore which = 327 } #Ostmarch
		command = { type = addcore which = 328 } #Bohemia
		command = { type = addcore which = 329 } #Erz
		command = { type = addcore which = 330 } #Sudeten
		command = { type = relation which = FRA value = -100 }
		command = { type = relation which = SWE value = -150 }
		command = { type = relation which = BRA value = -150 }
		command = { type = relation which = HAN value = -150 }
		command = { type = relation which = HES value = -150 }
		command = { type = relation which = PFA value = -150 }
		command = { type = relation which = SAC value = -150 }
		#command = { type = relation which = THU value = -150 } #Bayreuth
		command = { type = relation which = SHL value = -150 }
		command = { type = relation which = KLE value = 100 }
		command = { type = relation which = KOL value = 150 }
		command = { type = relation which = BAY value = 150 }
		command = { type = relation which = PAP value = 150 }
		command = { type = relation which = SPA value = 150 }
		command = { type = stability value = -1 }
		command = { type = sleepevent which = 179070 } #HAB: Protestant Bohemian King
		command = { type = trigger which = 129045 } #BOH: The White Mountain Aftermath (BOH vassal to PFA)
		command = { type = trigger which = 129046 } #BOH: The White Mountain Aftermath
	}
	action_b = {
		name = "ACTIONNAME3196B" #No, and appease Protestants in Bohemia
		command = { type = province_revoltrisk which = 328 value = -10 } #Bohemia
		command = { type = province_revoltrisk which = 329 value = -6 } #Erz
		command = { type = province_revoltrisk which = 330 value = -6 } #Sudeten
		command = { type = province_revoltrisk which = 314 value = -6 } #Silesia
		command = { type = province_revoltrisk which = 315 value = -4 } #Moravia
		command = { type = gainmanufactory which = 328 value = luxury } #Bohemia
		command = { type = gainmanufactory which = -1 value = luxury }
		command = { type = relation which = BRA value = 100 }
		command = { type = relation which = HAN value = 100 }
		command = { type = relation which = HES value = 100 }
		command = { type = relation which = PFA value = 100 }
		command = { type = relation which = SAC value = 100 }
		#command = { type = relation which = THU value = 100 } #Bayreuth
		command = { type = relation which = SHL value = 100 }
		command = { type = relation which = PAP value = -50 }
		command = { type = stability value = 3 }
		command = { type = sleepevent which = 3754 } #SWE: The Threat to Protestantism in Germany
		command = { type = sleepevent which = 12062 } #FRA: French Encirclement by the Habsburgs
		command = { type = sleepevent which = 338232 } #ProvinceSpec*389: The plague in Milan
		command = { type = sleepevent which = 125018 } #BAY: Bavaria assumes the electoral vote of the Palatinate
		command = { type = sleepevent which = 179128 } #HAB: The subjugation of Bohemia
		command = { type = sleepevent which = 179070 } #HAB: Protestant Bohemian King
	}
}
#(1629) Protestant Bohemian King II - Ahistorical
event = {
	id = 179070
	trigger = {
		NOT = {
			religion = catholic
			religion = counterreform
		}
		OR = {
			owned = { province = 314 data = -1 }
			owned = { province = 315 data = -1 }
			owned = { province = 328 data = -1 }
			owned = { province = 329 data = -1 }
			owned = { province = 330 data = -1 }
			vassal = { country = HAB country = BOH }
		}
		event = 3194 #HAB: The second defenestration of Prague
		NOT = { event = 3196 } #HAB: The Edict of Restitution
	}
	random = no
	country = HAB
	name = "EVENTNAME179069" #Protestant Bohemian King
	desc = "EVENTHIST179070"
	#-#Protestant nobles of Bohemia finally recognize Ferdinand of Austria as Bohemian King.

	date = { day = 1 month = january year = 1629 }
	offset = 30
	deathdate = { day = 29 month = december year = 1629 }

	action_a = {
		name = "AT_LAST"
		command = { type = province_revoltrisk which = 328 value = -10 } #Bohemia
		command = { type = province_revoltrisk which = 329 value = -6 } #Erz
		command = { type = province_revoltrisk which = 330 value = -6 } #Sudeten
		command = { type = province_revoltrisk which = 314 value = -6 } #Silesia
		command = { type = province_revoltrisk which = 315 value = -4 } #Moravia
		command = { type = provinceculture which = 330 value = german } #Sudeten
		#Bohemia is now claimed as dominion of the House of Habsburg
		command = { type = addcore which = 314 } #Silesia
		command = { type = addcore which = 315 } #Moravia
		command = { type = addcore which = 327 } #Ostmarch
		command = { type = addcore which = 328 } #Bohemia
		command = { type = addcore which = 329 } #Erz
		command = { type = addcore which = 330 } #Sudeten
		command = { type = relation which = BRA value = 100 }
		command = { type = relation which = HAN value = 100 }
		command = { type = relation which = HES value = 100 }
		command = { type = relation which = PFA value = 100 }
		command = { type = relation which = SAC value = 100 }
		#command = { type = relation which = THU value = 100 } #Bayreuth
		command = { type = relation which = SHL value = 100 }
		command = { type = relation which = PAP value = -50 }
		command = { type = sleepevent which = 3196 } #HAB: The Edict of Restitution
	}
}

#(1629) The subjugation of Bohemia
event = {
	id = 179128
	trigger = {
		exists = BOH
		NOT = {
			vassal = { country = BOH country = HAB }
		}
		OR = {
			event = 129045 #BOH: The White Mountain Aftermath
			event = 129046 #BOH: The White Mountain Aftermath (BOH not vassal to PFA)
		}
	}
	random = no
	country = HAB
	name = "EVENTNAME179128" #The subjugation of Bohemia
	desc = "EVENTHIST179070"
	#-#Protestant nobles of Bohemia finally recognize Ferdinand of Austria as Bohemian King.

	date = { day = 1 month = january year = 1629 }
	offset = 20
	deathdate = { day = 29 month = december year = 1629 }

	action_a = {
		name = "GOOD"
		command = { type = vassal which = BOH }
		command = { type = DIP which = 2 value = 12 }
		command = { type = ADM which = 2 value = 12 }
	}
}

#(1635) French Encirclement by the Habsburgs
event = {
	id = 12066 #triggered by FRA_12062 A
	random = no
	country = HAB
	name = "EVENTNAME12062" #French Encirclement by the Habsburgs
	desc = "EVENTHIST12062"
	#-#Until 1635, France had played a minimal part in the Thirty Years War, limiting her involvements in diplomatic and political measures: financially supporting the Protestant cause against the Habsburg party in order to weaken his authority in the Empire or making short-lived military interventions in Northern Italy as to interrupt the military supply line between the Habsburg dominions of Spain and Austria. But in 1635 the Emperor and the German princes stipulated a peace treaty in Prague, with which the Protestant rulers were allowed to retain secularized bishoprics held by them in 1627, the enforcement of the Edict of Restitution was delayed for 40 years, the armies of the Emperor and of the German states were reunited to one imperial army and the German princes were forbidden to have alliances between them or with foreign powers. Since this treaty acknowledged the authority of the Habsburg party in the Empire and subsequently it renewed the threat for France of being surrounded at her borders, Cardinal Richelieu decided it was the moment for France to enter a preventive war against Spain and Austria. The religious character of the early war lost any real significance, from now on a struggle for the hegemony in Europe would take place.

	action_a = {
		name = "ACTIONNAME12066A" #Interfering Cardinal
		command = { type = casusbelli which = FRA value = 48 }
		command = { type = relation which = FRA value = -100 }
	}
	action_b = {
		name = "ACTIONNAME12066B" #Ignore the Threat
		command = { type = relation which = FRA value = 10 }
	}
}

#(1650-1792) Swiss asking for independence
event = {
	id = 179072
	trigger = {
		atwar = no
		NOT = { exists = HEL }
		OR = {
			owned = { province = 388 data = -1 } #Bern
			owned = { province = 1612 data = -1 } #Schwyz
		}
		OR = {
			provincereligion = { province = 388 data = reformed } #Bern
			provincereligion = { province = 1612 data = reformed } #Schwyz
		}
		event = 103 #ReligiousEvent: Edict of Tolerance
	}
	random = no
	country = HAB
	name = "EVENTNAME179072" #Swiss asking for independence
	desc = "EVENTHIST179072"
	#-#Over the years the House of Habsburg was losing its influence on the policies of the Swiss cantons, mostly becasue of the Calvinist doctrines professed early in Geneva and then in the neighbouring cities which were against the Roman Catholicism to which the Austrian and Spanish royals were highly devoted. That would cause strong religious conflicts between peripheries and central authority. Only after the promulgation of the Edict of Tolerance, which stated that all religions had equal dignity, Switzerland was formally acknowledged her independence from the Holy Roman Empire.

	date = { day = 16 month = January year = 1650 }
	offset = 360
	deathdate = { day = 0 month = january year = 1792 }

	action_a = {
		name = "ACTIONNAME179072A" #Let's concede them the long expected independence
		command = { type = independence which = HEL }
		command = { type = DIP which = 2 value = 24 }
		command = { type = trigger which = 184030 } #HEL: The independence from the Empire
	}
	action_b = {
		name = "ACTIONNAME179072B" #No way, these were our ancestral lands
		command = { type = stability value = -1 }
		command = { type = ADM which = -2 value = 24 }
		command = { type = MIL which = -2 value = 24 }
		command = { type = revolt which = 388 } #Bern
		command = { type = revolt which = 388 }
		command = { type = revolt which = 1612 } #Schwyz
		command = { type = revolt which = 1612 }
	}
}

#(1668-1673) The Chastening of Hungary
event = {
	id = 3332
	trigger = {
		owned = { province = 325 data = -1 }
		owned = { province = 326 data = -1 }
		owned = { province = 352 data = -1 }
		owned = { province = 353 data = -1 }
	}
	random = no
	country = HAB
	name = "EVENTNAME3332" #The Chastening of Hungary
	desc = "EVENTHIST3332"
	#-#The Turkish occupation of central Hungary remained a volatile issue, for every Hungarian resented the Habsburgs' policy of leaving the Turks unmolested while pursuing ambitious objectives in the west. Emperor Leopold sent a force against the Turks - but, although the Austrian general Raimondo Montecuccoli defeated the Turks at Szentgotthárd on Aug. 1, 1664, the subsequent Peace of Vasvár recognized all the sultan's gains. Now even the highest magnates of Royal Hungary plotted to expel the Habsburgs with Turkish and French help. The Hungarian magnates are untrustworthy. Perhaps we should consider a reorganization of the provincial government...

	date = { day = 1 month = january year = 1668 }
	offset = 30
	deathdate = { day = 1 month = january year = 1673 }

	action_a = {
		name = "ACTIONNAME3332A" #Centralized German Administration from Budapest
		command = { type = domestic which = CENTRALIZATION value = 1 }
		command = { type = domestic which = ARISTOCRACY value = -1 }
		command = { type = domestic which = SERFDOM value = -1 }
		command = { type = domestic which = OFFENSIVE value = -1 }
		command = { type = domestic which = QUALITY value = -1 }
		command = { type = stability value = -1 }
	}
	action_b = {
		name = "ACTIONNAME3332B" #Centralized German Administration from Vienna
		command = { type = domestic which = CENTRALIZATION value = 2 }
		command = { type = domestic which = ARISTOCRACY value = -3 }
		command = { type = domestic which = SERFDOM value = -1 }
		command = { type = domestic which = OFFENSIVE value = -2 }
		command = { type = domestic which = QUALITY value = -2 }
		command = { type = revolt which = 325 } #Magyar
		command = { type = revolt which = 352 } #Odenburg
		command = { type = stability value = -2 }
	}
	action_c = {
		name = "ACTIONNAME3332C" #Decentralized Hungarian Noble Council in Budapest
		command = { type = domestic which = CENTRALIZATION value = -2 }
		command = { type = domestic which = ARISTOCRACY value = 2 }
		command = { type = domestic which = SERFDOM value = 3 }
		command = { type = domestic which = OFFENSIVE value = 1 }
		command = { type = domestic which = QUALITY value = 1 }
		command = { type = sleepevent which = 3333 } #HAB: The Insurrection of Duke Imre Tököll
		command = { type = stability value = 1 }
	}
}

#(1676-1679) The Insurrection of Duke Imre Tököll
event = {
	id = 3333
	trigger = {
		owned = { province = 325 data = -1 }
		owned = { province = 326 data = -1 }
		owned = { province = 352 data = -1 }
		owned = { province = 353 data = -1 }
	}
	random = no
	country = HAB
	name = "EVENTNAME3333" #The Insurrection of Duke Imre Tököll
	desc = "EVENTHIST3333"
	#-#A young Transylvanian, Imre Tököll, led a revolt that forced Leopold in 1681 to restore the constitution and revoke many of his harshest measures. The Porte, encouraged by Tököll's successes against the empire, sent into Hungary a vast army that in 1683 reached the walls of Vienna.

	date = { day = 1 month = january year = 1676 }
	offset = 30
	deathdate = { day = 1 month = january year = 1679 }

	action_a = {
		name = "ACTIONNAME3333A" #Stop the Movement for Independence
		command = { type = revolt which = 325 } #Magyar
		command = { type = revolt which = 325 } #Magyar
		command = { type = revolt which = 326 } #Presburg
		command = { type = revolt which = 352 } #Odenburg
		command = { type = revolt which = 324 } #Maros
		command = { type = revolt which = 353 } #Pest
		command = { type = stability value = 1 }
	}
}

#(1676-1681) The League of Augsburg
event = {
	id = 3198 #triggered by FRA_3127 A
	random = no
	country = HAB
	name = "EVENTNAME3198" #The League of Augsburg
	desc = "EVENTHIST3198"
	#-#The reunion policy of Louis XIV had been forced upon by the Empire in the 1684 by the Truce of Regensburg, mostly because the Emperor was preoccupied by the Turkish menace (siege of Vienna in 1683). The continued French claims and expansion to the detriment of the Habsburg possessions and the German states of the Empire led to the creation of the anti-French League of Augsburg (1686).

	action_a = {
		name = "ACTIONNAME3198A" #Defy French claims
		command = { type = casusbelli which = FRA value = 72 }
		command = { type = relation which = FRA value = -150 }
		command = { type = relation which = ENG value = 150 }
		command = { type = relation which = SPA value = 150 }
		command = { type = relation which = BRA value = 150 }
		command = { type = relation which = HOL value = 150 }
		command = { type = relation which = HAN value = 100 }
		command = { type = relation which = BAD value = 100 }
		command = { type = relation which = HES value = 100 }
		command = { type = relation which = KLE value = 100 }
		command = { type = relation which = KOL value = 100 }
		command = { type = relation which = PFA value = 100 }
		#command = { type = relation which = THU value = 100 } #Bayreuth
	}
	action_b = {
		name = "ACTIONNAME3198B" #Ignore it
		command = { type = relation which = FRA value = 50 }
		command = { type = relation which = ENG value = -100 }
		command = { type = relation which = BAD value = -50 }
		command = { type = relation which = BRA value = -100 }
		command = { type = relation which = HOL value = -100 }
		command = { type = relation which = HAN value = -50 }
		command = { type = relation which = SPA value = -50 }
		command = { type = relation which = HES value = -50 }
		command = { type = relation which = KLE value = -50 }
		command = { type = relation which = KOL value = -50 }
		command = { type = relation which = PFA value = -50 }
		#command = { type = relation which = THU value = -50 } #Bayreuth
	}
}

#(1678) Guastalla Succession - Ahistorical
#by Aylo1
event = {
	id = 179122
	trigger = {
		event = 220033 #MAN: Treaty of Cherasco (ahistorical)
		exists = FRA
		exists = MAN
	}
	random = no
	country = HAB
	name = "EVENTNAME179122" #Guastalla Succession (1678-92)
	desc = "EVENTHIST179122"
	#-#Ferdinand III's death left Guastalla to his eldest daughter Anna-Isabella and her husband Karl III Ferdinand of Mantova. Guastalla's imperial suzerain (Holy Roman Emperor Leopold I) declared the succession illegitimate and installed Anna-Isabella's cousin and brother-in-law Vincenzo Gonzaga - Conte di San Paolo as Herzog. In response Mantova allied with Habsburg's arch-nemesis Louis XIV.

	date = { day = 1 month = january year = 1678 }
	offset = 180
	deathdate = { day = 0 month = january year = 1679 }

	action_a = {
		name = "ACTIONNAME179122A" #Appoint Graf von San Paolo
		command = { type = casusbelli which = MAN value = 6 }
		command = { type = relation which = MAN value = -75 }
		command = { type = trigger which = 220035 } #MAN: Gonzaga Reunion (1678-92)
	}
	action_b = {
		name = "ACTIONNAME179122B" #Recognise Herzog von Mantova
		command = { type = relation which = MAN value = 25 }
		command = { type = stability value = -1 }
		command = { type = sleepevent which = 220036 } #MAN: Mattioli's Intrigues
	}
}

#(1682-1690) The Ottoman war
event = {
	id = 179076
	trigger = {
		neighbour = TUR
		atwar = no
		countrysize = 6
		NOT = { exists = HUN }
	}
	random = no
	country = HAB
	name = "EVENTNAME179076" #The Ottoman war
	desc = "EVENTHIST179076"
	#-#In the winter of 1682-83 a defensive-offensive coalition of powers formed against the Turks. The Pope organized another Holy League comprising of Austria, Poland, Saxony and Bavaria. The Venetians determined to join the struggle, signed in March 1684. Russia was eventually to join this League in 1686.

	date = { day = 0 month = january year = 1682 }
	offset = 90
	deathdate = { day = 0 month = june year = 1690 }

	action_a = {
		name = "ACTIONNAME179076A" #War then
		command = { type = casusbelli which = TUR value = 100 }
		command = { type = relation which = TUR value = -200 }
		command = { type = INF which = -2 value = 5000 }
		command = { type = alliance which = POL }
		command = { type = alliance which = VEN }
		command = { type = alliance which = RUS }
	}
	action_b = {
		name = "ACTIONNAME179076B" #Ignore the Pope
		command = { type = relation which = PAP value = -200 }
		command = { type = relation which = TUR value = 100 }
		command = { type = ADM which = -2 value = 48 }
		command = { type = removecore which = 353 } #Pest
		command = { type = removecore which = 325 } #Magyar
		command = { type = removecore which = 324 } #Maros
		command = { type = removecore which = 317 } #Rutheria
		command = { type = removecore which = 364 } #Bosnia
		command = { type = removecore which = 355 } #Serbia
		command = { type = removecore which = 322 } #Wallachia
		command = { type = removecore which = 316 } #Carpathia
	}
}

#(1682-1688) Sherban Cantacuzino and the siege of Vienna - Ahistorical
event = {
	id = 179097
	trigger = {
		event = 329036 #WAL: Sherban Cantacuzino and the siege of Vienna
	}
	random = no
	country = HAB
	name = "EVENTNAME329036" #Sherban Cantacuzino and the siege of Vienna
	desc = "EVENTHIST179097"
	#-#Wallachia has decided to openly support us against the Turks.

	date = { day = 0 month = january year = 1682 }
	offset = 0
	deathdate = { day = 8 month = november year = 1688 } #death of Sherban Cantacuzino

	action_a = {
		name = "ACTIONNAME301080A" #Wallachia is our ally
		command = { type = alliance which = WAL }
		command = { }
	}
}

#(1687-1820) Diet of 1687
event = {
	id = 179047
	trigger = {
		owned = { province = 353 data = -1 } #Pest
		OR = {
			event = 3186 #HAB: The Turk is expanding in Hungary (Lajos' death at Mohacs)
			event = 179143 #HAB: The Turk is expanding in Hungary (Lajos' ahistorical death)
			event = 19026 #HAB: The Death of János Zápolya (ahistorically independent Hungary)
		}
		core = { province = 353 data = -1 } #Pest
		NOT = {	exists = HUN }
	}
	random = no
	country = HAB
	name = "EVENTNAME179047" #The Diet of Buda
	desc = "EVENTHIST179047"
	#-#The Privy Council of the Emperor met and discussed the modalities of the coronation as King of Hungary. Some council members advocated using the opportunity the Habsburgs had at that time, due to their military control of the country, to subjugate the defiant Hungarians once and for all and introduce absolutistic rule in Hungary iure belli, by the law of war. The Emperor himself however decided to opt for a reconciliation with the Estates of Hungary that would secure the power of his dynasty in that Kingdom without abolishing its constitution which would almost certainly eventually provoke another large-scale uprising. Thus, at a Diet convoked in Buda he agreed to confirm Hungary's constitution with three amendments: the succession was made hereditary in the male line of the Habsburgs, the ius resistendi, the right of the Hungarian subjects to rebel against a monarch who violated the constitution, was abolished, and the promise of the Emperor to 'observe the country's laws and privileges' was modified by the clause 'as the King and the assembled Estates shall agree on the interpretation and application thereof'. The Habsburgs had thereby finally achieved recognition as hereditary Kings in all of Hungary.

	date = { day = 1 month = january year = 1687 }
	offset = 300
	deathdate = { year = 1820 }

	action_a = {
		name = "ACTIONNAME179047A" #Achieve an agreement with the estates
		command = { type = add_countryculture which = magyar }
		command = { type = domestic which = aristocracy value = 1 }
		command = { type = domestic which = centralization value = -1 }
	}
}

#(1700-1713) Noble Revolt in Hungary
event = {
	id = 3201
	trigger = {
		OR = {
			owned = { province = 353 data = -1 } #Pest
			owned = { province = 324 data = -1 } #Maros
			owned = { province = 325 data = -1 } #Magyar
		}
		NOT = {	exists = HUN }
		atwar = yes
	}
	random = no
	country = HAB
	name = "EVENTNAME3201" #Noble Revolt in Hungary
	desc = "EVENTHIST3201"
	#-#As struggles came and went the ruling family of Hungary, the Habsburgs, had established the following pattern in treating their nobility. During times of foreign war, nobles were granted rights which the crown then tried to recall as soon as peace came. This, naturally, often triggered revolts. Following this pattern, taxes and military drafts were imposed upon the nobles after Hungary's decisive victory over the Turks in 1699. But, when Austria went to war with France in 1703, the nobles revolted once again, and forced the Emperor Charles V to restore the old system of noble privileges, in the Peace of Szatmar of 1711.

	date = { day = 1 month = january year = 1700 }
	offset = 50
	deathdate = { day = 1 month = january year = 1713 }

	action_a = {
		name = "ACTIONNAME3201A" #Whip!
		command = { type = revolt which = 325 } #Magyar
		command = { type = revolt which = 325 } #Magyar
		command = { type = revolt which = 353 } #Pest
		command = { type = revolt which = 353 } #Pest
		command = { type = revolt which = 324 } #Maros
		command = { type = revolt which = 324 } #Maros
		command = { type = revolt which = 316 } #Carpathia
		command = { type = relation which = TUR value = -150 }
	}
	action_b = {
		name = "ACTIONNAME3201B" #Whip and Carrot!
		command = { type = revolt which = 353 } #Pest
		command = { type = revolt which = 325 } #Magyar
		command = { type = revolt which = 324 } #Maros
		command = { type = revolt which = 316 } #Carpathia
		command = { type = relation which = TUR value = -50 }
		command = { type = treasury value = -200 }
		command = { type = stability value = -1 }
	}
}

#-----------------------------------------------------------------------------------------------
#"War of Spanish succession" Sequence

#(1700) The will of Carlos II (Austrian version)
#by Fodoron
event = {
	id = 179080 #triggered by SPA_285210 / SPA_285284
	random = no
	country = HAB
	name = "EVENTNAME285210" #The will of Carlos II
	desc = "EVENTHIST179080"
	#-#For years Europe has been preparing for the death of childless Carlos II of Spain. He was related to several royal families in Europe, but after the death of the designated heir, Joseph Ferdinand Wittelbach of Bavaria, at the age of six, the royal houses of Austria and France had a similar claim, although according to the Spanish laws of succession the right of the French Dauphin preceded that of the Habsburg. But both nations were too powerful, and the addition of the Spanish empire would make any of them unstoppable, and so candidates not destined to their thrones, Philip of Anjou and Charles Habsburg, were discussed as heirs to Carlos, and several partition agreements were negotiated. That is precisely what everybody wanted to prevent in Spain. Despite the bigger influence from the Austracist party led by the mother of Carlos, there was an undisputable fact: France had 300,000 soldiers next to Spain and the Spanish Netherlands, and so represented the only opportunity, albeit small, to keep the empire together. A will was redacted and the agonizing Carlos signed it. It bequeathed the Kingdom to Philip Anjou, but it contained two crucial clauses, the condition that the crowns of France and Spain should never be held by the same person, and the condition that if any partition took place, then the crown of Spain should go to Charles Habsburg. Austria, of course, rejected it, starting the war in Italy, but the rest of Europe seemed to agree, as the equilibrium was not broken. But, could Louis XIV resist the temptation?\n \n Historically the Austrian Empire was quite successful despite losing the Spanish throne. The Spanish Netherlands became the Austrian Netherlands, Milan, the Kingdom of Naples, Sicily and Sardina were conquered. But historically only Milan and the Austrian Netherlands would stay in Austrian hands - the southern Italian possesions were either lost in the next war or traded away. Should we try only to achieve what was historically achieved - or should we try to be more successful than history?

	action_a = {
		name = "ACTIONNAME179080A" #We reject his will
		command = { type = relation which = FRA value = -100 }
		command = { type = relation which = SPA value = -100 }
		command = { type = addcore which = 377 } #Luxembourg
		command = { type = addcore which = 378 } #Brabant
		command = { type = addcore which = 380 } #Flandern
		command = { type = addcore which = 389 } #Lombardia
		command = { type = casusbelli which = SPA value = 120 }
		command = { type = casusbelli which = FRA value = 120 }
	}
	action_b = {
		name = "ACTIONNAME179080B" #It's all mine. Mine!
		command = { type = relation which = FRA value = -150 }
		command = { type = relation which = SPA value = -150 }
		command = { type = relation which = PAP value = -10 }
		command = { type = relation which = NAP value = -100 }
		command = { type = relation which = SIC value = -100 }
		command = { type = addcore which = 377 } #Luxembourg
		command = { type = addcore which = 378 } #Brabant
		command = { type = addcore which = 380 } #Flandern
		command = { type = addcore which = 389 } #Lombardia
		command = { type = addcore which = 393 } #Kingdom of Naples
		command = { type = addcore which = 394 }
		command = { type = addcore which = 395 } #Kingdom of Sicily
		command = { type = addcore which = 396 } #
		command = { type = addcore which = 397 } #Sardinia
		command = { type = casusbelli which = SPA value = 120 }
		command = { type = casusbelli which = FRA value = 120 }
	}
}
#(1700) The will of Carlos II (Austrian version) - Ahistorical
#by Fodoron modified by ConjurerDragon
event = {
	id = 179145 #triggered by SPA_285285
	random = no
	country = HAB
	name = "EVENTNAME285210" #The will of Carlos II
	desc = "EVENTHIST285285"
	#-#For years Europe has been preparing for the death of childless Carlos II of Spain. He was related to several royal families in Europe, but after the death of the designated heir, Joseph Ferdinand Wittelbach of Bavaria, at the age of six, the royal houses of Austria and France had a similar claim, although according to the Spanish laws of succession the right of the French Dauphin preceded that of the Habsburg. But the Habsburgs were too powerful, and the addition of the Spanish empire would make any of them unstoppable, and so candidates not destined to their thrones, Philip of Anjou and Charles Habsburg, were discussed as heirs to Carlos, and several partition agreements were negotiated. That is precisely what everybody wanted to prevent in Spain. A will was redacted and the agonizing Carlos signed it. It bequeathed the Kingdom to Charles of Habsburg, but it contained two crucial clauses, the condition that the crowns of France and Spain should never be held by the same person, and the condition that if any partition took place, then the crown of Spain should go to Charles Habsburg. Austria, of course, accepted it, gaining the now austrian netherlands and Italy, but the rest of Europe seemed to agree, as the equilibrium was not broken. The Austrian line of the House of Habsburg will rule over the Low Countries and the duchy of Milan.

	action_a = {
		name = "ACTIONNAME285210A" #We accept his will
		command = { type = addcore which = 377 } #Luxembourg
		command = { type = addcore which = 378 } #Brabant
		command = { type = addcore which = 380 } #Flandern
		command = { type = addcore which = 389 } #Lombardia
		command = { type = independence which = FRA }
	}
}
#(1700-1706) The fate of Mantua (Spanish war of succession, Austrian version)
#by Bordic
event = {
	id = 179100 #triggered by MAN_220011
	random = no
	country = HAB
	name = "EVENTNAME179100" #The fate of Mantua
	desc = "EVENTHIST179100"
	#-#In the dispute over the Spanish succession, Ferdinando Carlo Duke of Mantua decided to side with the House of Bourbon. That unlucky political decision would mean the end of the independence for Mantua: since the end of Second War of Mantuan Succession the Habsburgs were always hostile to a French presence in Italy (specifically the Nevers branch of the House of Gonzaga) and wouldn't miss the opportunity to definitively subjugate the ducal city to the imperial rule.

	action_a = {
		name = "DAMN"
		command = { type = addcore which = 390 } #Mantua
		command = { type = relation which = MAN value = -200 }
	}
}
#(1703) Charles proclaimed King of Spain in Vienna
#by Fodoron
event = {
	id = 179081
	trigger = {
		OR = {
			AND = {
				event = 186050 #HOL: Grand alliance
				OR = {
					event = 164015 #ENG: Grand alliance (the Orange King)
					event = 164099 #ENG: Grand alliance (the Stuart King)
				}
			}
			AND = {
				NOT = {
					exists = HOL
					event = 186050 #HOL: Grand alliance
				}
				OR = {
					event = 164015 #ENG: Grand alliance (the Orange King)
					event = 164099 #ENG: Grand alliance (the Stuart King)
				}
			}
		}
	}
	random = no
	country = HAB
	name = "EVENTNAME179081" #Charles proclaimed King of Spain in Vienna
	desc = "EVENTHIST179081"
	#-#The formation of the Grand Alliance and the start of the war made it possible for Charles Habsburg to push his bid for the Spanish crown. Although initially the Grand Alliance did not seek to replace Felipe Bourbon as King of Spain, by 1703 England and the United Provinces (Netherlands) had decided that their commercial interests would be better protected by Habsburg rule. The issue was also important to win another ally, as Portugal was hesitant to enter a war unless on the side of the future King of Spain, her future neighbour. The Austrians, on their part, were convinced that the invasion of Spain could only be achieved with the concurrence of English and Portuguese troops. Once the support of their allies was secured, Charles was proclaimed King of Spain by the imperial court in Vienna in September 1703. This proclamation was important also for the supporters that Charles had in Spain, that could raise in arms in the hope of being on the winning side.

	date = { day = 13 month = september year = 1703 }

	action_a = {
		name = "ACTIONNAME179081A" #State our claims
		command = { type = stability value = 1 }
		command = { type = relation which = SPA value = -100 }
		command = { type = relation which = FRA value = -75 }
	}
}
#(1705) Charles declared King of Spain in Catalonia and Valencia
#by Fodoron
event = {
	id = 179084
	trigger = {
		event = 187000 #HSP: war of Spanish succession
	}
	random = no
	country = HAB
	name = "EVENTNAME179084" #Charles declared King of Spain in Catalonia and Valencia
	desc = "EVENTHIST179084"
	#-#Felipe V was well accepted in all of Spain, and recognized as King by all the parliaments. However with the start of the war and the arrival of the French troops, and with the proclamation of Charles Habsburg as King in Vienna, his supporters (Austracists), were ready to change sides. Although there were supporters for both monarchs in all regions of Spain, the disenchantment with the Habsburg rule and the admiration for the French centralized model was higher in the former Kingdom of Castile, while in Catalonia, besides the opposite sentiment, there was a profound hatred of the French for the loss of the Roselló and the bombardment of Barcelona by the French fleet a few years before.

	date = { day = 10 month = october year = 1705 }

	action_a = {
		name = "GREAT"
		command = { type = vassal which = HSP }
		command = { type = trigger which = 179096 } #HAB: The support to the Austracist party
	}
}
#(1705) The support to the Austracist party
#by Bordic
event = {
	id = 179096 #triggered by HAB_179084
	random = no
	country = HAB
	name = "EVENTNAME179096" #The support to the Austracist party
	desc = "EVENTHIST179096"
	#-#The arrival of the Archduke to the coasts of Valencia raised most of the province in his favor, and after the conquest of Barcelona by the English troops, and with the Archduke Charles in the city, most of Catalonia declared her support for him, and he was proclaimed King by the parliament on November 7, 1705. Soon the parliament of Valencia took the same decision. The European war of Spanish succession had just become a civil war in Spain.

	action_a = {
		name = "ACTIONNAME179096A" #Support them militarily
		command = { type = alliance which = HSP } #it involves HAB in a war against FRA-SPA alliance
		command = { type = trigger which = 187003 } #HSP: The Austracist party
	}
	action_b = {
		name = "ACTIONNAME179096B" #Support them financially
		command = { type = DIP which = -2 value = 24 }
		command = { type = treasury value = -200 }
		command = { type = trigger which = 187003 } #HSP: The Austracist party
	}
}
#(1706-1740) The Austracist victory in Spain
#by Bordic
event = {
	id = 179099
	trigger = {
		owned = { province = 436 data = SPA } #Castilla
		control = { province = 436 data = SPA } #Castilla
		NOT = {
			vassal = { country = SPA country = HAB }
			war = { country = SPA country = HAB }
		}
		OR = {
			event = 285213 #SPA: Bourbonist defeat in war of Spanish succession
			event = 285265 #SPA: Austrian rulers in Spain
		}
	}
	random = no
	country = HAB
	name = "EVENTNAME179099" #The Austracist victory in Spain
	desc = "EVENTHIST285213"
	#-#A victory has been achieved by the Austracist party. Charles Habsburg has been accepted as King of Spain as Carlos III. The Habsburgs will continue ruling Spain. Philippe d'Anjou has left the Kingdom and gone back to France, where he has been named Dauphin of France.

	date = { day = 10 month = october year = 1706 }
	offset = 120
	deathdate = { day = 0 month = january year = 1740 }

	action_a = {
		name = "GREAT"
		command = { type = vassal which = SPA }
		command = { type = trigger which = 285264 } #SPA: Effects of the Austrian rule
	}
}
#(1711) Charles VI elected Holy Roman Emperor (HAB version)
#by Fodoron
event = {
	id = 179082
	trigger = {
		emperor = yes
		event = 179081 #HAB: Charles crowned King of Spain in Vienna
	}
	random = no
	country = HAB
	name = "EVENTNAME179082" #Charles VI elected Holy Roman Emperor
	desc = "EVENTHIST179082"
	#-#The war of Spanish succession seemed about to be won by the Grand Alliance in 1709, with France completely defeated in all fronts. Only the war in Spain seemed favorable to the Bourbons, but Louis XIV was ready to abandon his grandson in exchange for peace. But the allies were frustrated by their inability to impose the Archduke on the Spaniards, and surprised by their stern resistance, and went too far in their conditions demanding that Louis should remove his own grandson from the throne of Spain by force. This was a humiliation too big to endure, and Louis understood that he was negotiating from a position of weakness and decided to break the negotiations and renew the fight. Time would prove him right, as dissensions were already dividing the allies as the French threat receded. The Dutch and the Austrians were already at odds over the Spanish Netherlands, and the Austrians were seeing as not doing their part, occupied with the Hungarian revolt. The turning point was the unexpected death of Emperor Joseph I, at 33 years of age in April 1711. While Charles left Spain and went to Vienna to be elected emperor, the allies were not ready to reconstruct the empire of Charles V, and England immediately started peace negotiations with France without informing the Dutch or Austria.

	date = { day = 18 month = april year = 1711 }

	action_a = {
		name = "ACTIONNAME179082A" #Our allies will abandon us
		command = { type = stability value = 1 }
		command = { type = DIP which = -2 value = 24 }
		command = { type = trigger which = 285214 } #SPA: Charles elected HRE
		command = { type = trigger which = 164016 } #ENG: Charles elected HRE
		command = { type = trigger which = 186051 } #HOL: Charles elected HRE
		command = { type = trigger which = 170054 } #FRA: Charles elected HRE
	}
}
#(1713) The Peace of Utrecht (HAB version)
#by Fodoron
event = {
	id = 179083
	trigger = {
		event = 179081 #HAB: Charles crowned King of Spain in Vienna
	}
	random = no
	country = HAB
	name = "EVENTNAME179083" #The Peace of Utrecht
	desc = "EVENTHIST179083"
	#-#The Spanish war of succession was also slow to end. Since Spain and Austria had not settled the issue and it was impossible to reach an agreement between all participants, it was decided that separate peace treaties between the parties would end the war. To Austria, the English decission was little less than treason, but Austrian participation in the war had been less than stellar, consumed as she was by her war against the Ottoman empire and the rebellions in Hungary. During the 1713 season, Austria tried to continue the campaign of the Rhine, but failed to achieve any significant result. The Spanish Netherlands had already been guaranteed for Austria by the treaty between France and the United Provinces, and the French were most than willing to sign a separate peace and surrender all the Spanish Italian possessions in their hands. Already in March 1713, Elizabeth Christine Brunswick, regent of Spain on behalf of Charles II of Habsburg, had left Barcelona, abandoning the Spanish Austracists and leaving Stahrenberg to reach an agreement with Felipe V. Finally Charles signed the peace with France at Radstatt (March 6, 1714) and Baden (September 7, 1714). Charles had won the Spanish Netherlands, Milan, Naples, Sardinia (later exchanged for Sicily to Savoy) and Mantua (whose Duke Ferdinando Carlo was declared deposed because of his siding with France in the war), and restored the right bank of the Rhine to the empire, but he had lost the throne of Spain. An agreement with Spain was impossible, and will lead to the Spanish invasion of Sardinia and Sicily in 1717-1718, and to the formation of the Quadruple Alliance that would impose the treaty of the Hague to Spain on February 17, 1720, sealing the peace between Austria and Spain. At the Peace of Utrecht, Felipe, as King of Spain, renounced his right to the crown of France, and Charles renounced the crown of Spain. During the war of Polish succession, Felipe will finally be able to recover Naples and Sicily from Austria.

	date = { day = 9 month = march year = 1713 }

	action_a = {
		name = "ACTIONNAME179083A" #A lost throne
		command = { type = relation which = FRA value = 25 }
		command = { type = relation which = SPA value = 25 }
		command = { type = relation which = BAY value = 25 }
		command = { type = removecore which = 349 } #Bayern
		command = { type = trigger which = 187002 } #HSP: The Habsburg party abandoned by all
		command = { type = sleepevent which = 179099 } #HAB: The Austracist victory in Spain
	}
}
#End of "War of Spanish succession" Sequence
#-----------------------------------------------------------------------------------------------

#(1700-1810) Core on Bayern for Habsburg
event = {
	id = 179142
	trigger = {
		emperor = yes #Being emperor the Habsburgs declared the electors of Bavaria and Cologne outlaws ("Reichsacht")
		event = 202022 #KOL: The Grand Alliance
		war = { country = HAB country = BAY }
		war = { country = FRA country = HAB }
		control = { province = 348 data = -1 } #Ansbach
		control = { province = 349 data = -1 } #Bayern
	}
	random = no
	country = HAB
	name = "EVENTNAME179142" #Claim on Bayern
	desc = "EVENTHIST179142"
	#-#Like the old feud between the Welfs and the Staufers in the Empire the tensions between the Wittelsbach and the Habsburg dynasties often lead to confrontation and to major conflicts in which both parties claimed rulership over the other parties lands. Now again have the insidious Bavarian Wittelsbachs dared to lay claim to one of our domains backstabbing us while we were already occupied with another war. It is time that this struggle ends. Bavaria should be incorporated in the heredetary Habsburg lands.

	date = { day = 23 month = December year = 1700 }
	offset = 30
	deathdate = { day = 23 month = December year = 1810 }

	action_a = {
		name = "ACTIONNAME179142A" #Bavaria becomes part of the Habsburg heredetary lands
		command = { type = diplomats value = -6 }
		command = { type = relation which = FRA value = -100 }
		command = { type = relation which = PRU value = -50 } #all true electors
		command = { type = relation which = BRA value = -50 }
		command = { type = relation which = KOL value = -100 }
		command = { type = relation which = BOH value = -50 }
		command = { type = relation which = SAC value = -50 }
		command = { type = relation which = MAI value = -50 }
		#command = { type = relation which = TRI? value = -100 } to be Trier in the new map
		command = { type = addcore which = 348 } #Ansbach
		command = { type = addcore which = 349 } #Munich
	}
	action_b = {
		name = "ACTIONNAME179142B" #Respect the electors imperial rights
		command = { type = stability value = -1 }
		command = { type = relation which = BAY value = 100 }
		command = { type = relation which = KOL value = 100 }
	}
}

#-----------------------------------------------------------------------------------------------
#(1701-1720) Barrier Treaty by archeolooginspe
event = {
	id = 179305 #triggered by HOL_186321 A
	random = no
	country = HAB
	name = "EVENTNAME179305" #Barrier treaty
	desc = "EVENTHIST179305"
	#-#After the Spanish succesion war Austria gained the Southern Netherlands. But before they fully could assert power they had to sign a treaty with the Dutch which stipulated the further closure of the Schelt and the right for the Dutch to place troops allong the French border. These troops got their own Protestant churches and were fed by the Austrians.

	action_a = {
		name = "ACTIONNAME179305A" #Accept the treaty
		command = { type = relation which = HOL value = 100 }
		command = { type = stability value = -1 }
		command = { type = trade value = -100 }
		command = { type = relation which = FRA value = -25 }
		command = { type = INF which = 380 value = 1000 } #Flandern
		command = { type = INF which = 378 value = 1000 } #Brabant
		command = { type = INF which = 377 value = 1000 } #Luxembourg
		command = { type = provincetax which = 380 value = -1 } #Flandern
		command = { type = provincetax which = 380 value = -1 } #Flandern
		command = { type = provincetax which = 380 value = -1 } #Flandern
		command = { type = dynastic which = HOL }
	}
	action_b = {
		name = "ACTIONNAME179305B" #Refuse to sign the treaty
		command = { type = trigger which = 186322 } #HOL: Reaction on the refusal
		command = { type = relation which = FRA value = 50 }
		command = { type = infra value = 100 }
		command = { type = trade value = 100 }
	}
}
event = {
	id = 179306 #triggered by HOL_186321 B
	random = no
	country = HAB
	name = "EVENTNAME179306" #Barrier treaty
	desc = "EVENTHIST179306"
	#-#After the Spanish succesion war Austria gained the Southern Netherlands. But before they fully could assert power they had to sign a treaty with the Dutch which stipulated the further closure of the Schelt and the right for the Dutch to place troops allong the French border. These troops got their own Protestant churches and were fed by the Austrians.

	action_a = {
		name = "ACTIONNAME179306A" #Accept the treaty
		command = { type = relation which = HOL value = 100 }
		command = { type = stability value = -1 }
		command = { type = trade value = -100 }
		command = { type = provincetax which = 380 value = -1 } #Flandern
		command = { type = provincetax which = 380 value = -1 } #Flandern
		command = { type = provincetax which = 380 value = -1 } #Flandern
		command = { type = dynastic which = HOL }
	}
	action_b = {
		name = "ACTIONNAME179306B" #Refuse to sign the treaty
		command = { type = trigger which = 186322 } #HOL: Reaction on the refusal
		command = { type = infra value = 100 }
		command = { type = trade value = 100 }
	}
}
event = {
	id = 179307 #triggered by HOL_186321 C
	random = no
	country = HAB
	name = "EVENTNAME179307" #Barrier treaty
	desc = "EVENTHIST179307"
	#-#After the Spanish succesion war Austria gained the Southern Netherlands. But before they fully could assert power they had to sign a treaty with the Dutch which stipulated the further closure of the Schelt and the right for the Dutch to place troops allong the French border. These troops got their own Protestant churches and were fed by the Austrians.

	action_a = {
		name = "ACTIONNAME179307A" #Accept the treaty
		command = { type = relation which = HOL value = 100 }
		command = { type = stability value = -1 }
		command = { type = trade value = 100 }
		command = { type = infra value = 100 }
		command = { type = relation which = FRA value = -75 }
		command = { type = INF which = 380 value = 1000 } #Flandern
		command = { type = INF which = 378 value = 1000 } #Brabant
		command = { type = INF which = 377 value = 1000 } #Luxembourg
		command = { type = provincetax which = 380 value = -1 } #Flandern
		command = { type = provincetax which = 380 value = -1 } #Flandern
		command = { type = provincetax which = 380 value = -1 } #Flandern
		command = { type = dynastic which = HOL }
	}
	action_b = {
		name = "ACTIONNAME179307B" #Refuse to sign the treaty
		command = { type = trigger which = 186322 } #HOL: Reaction on the refusal
		command = { type = relation which = FRA value = 50 }
		command = { type = infra value = 100 }
		command = { type = trade value = 100 }
	}
}
#-----------------------------------------------------------------------------------------------

#(1702-1740) University in Breslau
event = {
	id = 179068
	trigger = {
		owned = { province = 314 data = -1 } #Silesia
		atwar = no
		OR = {
			religion = catholic
			religion = counterreform
		}
	}
	random = no
	country = HAB
	name = "EVENTNAME179068" #University in Breslau
	desc = "EVENTHIST179068"
	#-#In second half of the XVII century the Jesuits in Breslau started to run college in the former ducal castle. Their school became quite popular, but it also had enemies among protestant burghers. The seat of their college soon became to small and the rector Friedrich Wolf von Lüdinghausen asked Leopold II for new seat and establishing university in Breslau. On 21st October 1702 Leopold II agreed and signed in Vienna the Golden Bull that founded the University in Breslau, St. Leopold became the patron of the new founded university. The university had only two faculties, philosophical and theological (catholic).

	date = { day = 1 month = january year = 1702 }
	offset = 30
	deathdate = { day = 29 month = december year = 1740 }

	action_a = {
		name = "ACTIONNAME179068A" #Allow Jesuits to run the university
		command = { type = treasury value = -25 }
		command = { type = infra value = 100 }
		command = { type = relation which = PAP value = 20 }
	}
	action_b = {
		name = "ACTIONNAME179068B" #There is no need for it
		command = { type = relation which = PAP value = -20 }
	}
}

#(1710-1820) The Treaty of Pessarowitz
event = {
	id = 179144
	trigger = {
		OR = {
			event = 301015 #TUR: Treaty of Karlowitz they lost the cores on Austria and Hungary except Banat
			NOT = { exists = TUR }
			NOT = { core = { province = 353 data = TUR } } #OE has no cores on Hungary for whatever eventchoice
		}
		countrysize = 6 #if smaller Austria should concentrate on taking those cores it not owns
		core = { province = 353 data = -1 } #Pest
		land = 26 #minimum land tech to sweep through the Balkans
		#Austria owns and controls all their provinces neighbouring Banat and Transylvania
		owned = { province = 353 data = -1 } #Pest
		control = { province = 353 data = -1 } #Pest
		owned = { province = 366 data = -1 } #Croatia
		control = { province = 366 data = -1 } #Croatia
		owned = { province = 324 data = -1 } #Maros
		control = { province = 324 data = -1 } #Maros
		owned = { province = 317 data = -1 } #Ruthenia
		control = { province = 317 data = -1 } #Ruthenia
	}
	random = no
	country = HAB
	name = "EVENTNAME179144" #The Treaty of Pessarowitz
	desc = "EVENTHIST179144"
	#-#Having been defeated decisively by a coalition of Austria, Russia, Poland and Venice and lost control over large chunks of the Balkan, the Ottoman Empire was forced to sign a humiliating peace treaty in 1699 in the Serbian city of Karlowitz. All rights to Hungary except the Banat of Temesvar, Croatia and Slavonia were ceded to Austria, Podolia to Poland, Dalmatia and the Peloponnesus to Venice. Russia got Azov in a separate treaty signed in 1700. Except for Greece, none of these losses was ever recovered permanently. The disintegration of the Ottoman Empire had begun. However the power in the Balkans shifted even more in the favour of Austria in the following years when the struggle continued. Historically Austrias great leader Prince Eugene of Savoy won a battle at Peterwardein and with the treaty of Pessarowitz a large part of the Ottoman Balkans became Austrian. Too large a part to hold on to it, for historically most of it was lost again to the Ottomans in another war. Will we be prudent and lay claim only to what Austria historically was able to take and keep - or will we allow Prince Eugene to recklessly drive the Ottomans as far south as he can and risk to lose those areas later?

	date = { day = 21 month = july year = 1710}
	offset = 100
	deathdate = { year = 1820 }

	action_a = {
		name = "GOOD"
		command = { type = addcore which = 323 } #Transylvania
		command = { type = addcore which = 354 } #Banat
		command = { type = sleepevent which = 179147 } #HAB: Wartime devastation of Banat
	}
	action_b = {
		name = "WAR"
		command = { type = addcore which = 323 } #Transylvania
		command = { type = addcore which = 354 } #Banat
		command = { type = addcore which = 355 } #Serbia
		command = { type = addcore which = 322 } #Wallachia
		command = { type = addcore which = 364 } #Bosnia
		command = { type = relation which = TUR value = -100 }
		command = { type = relation which = FRA value = -50 }
		command = { type = relation which = RUS value = -50 }
		command = { type = relation which = PRU value = -10 }
		command = { type = relation which = MOL value = -50 }
		command = { type = relation which = WAL value = -100 }
		command = { type = relation which = POL value = -50 }
		command = { type = relation which = VEN value = -10 }
		command = { type = stability value = -1 }
	}
}

#(1716-1726) The Oostende Company
event = {
	id = 3202
	trigger = {
		owned = { province = 380 data = -1 }
	}
	random = no
	country = HAB
	name = "EVENTNAME3202" #The Oostende Company
	desc = "EVENTHIST3202"
	#-#The company was a highly successful colonial trading company, mostly active in the Chinese tea trade and also in the Bengals where it had a colony/fort factory. Its success was short-lived however because of Habsburg dynastical reasons when Maria Theresia came to the throne. The VOC was so annoyingly successful to the Dutch and the English that the abolishment of it was a demand to not oppose the ascending to the throne of Maria Theresia.

	date = { day = 1 month = january year = 1716 }
	offset = 100
	deathdate = { day = 1 month = january year = 1726 }

	action_a = {
		name = "ACTIONNAME3202A" #We will exploit this!
		command = { type = treasury value = 200 }
		command = { type = merchants value = 6 }
		command = { type = explorer which = -1 }
		command = { type = relation which = HOL value = -100 }
		command = { type = relation which = ENG value = -50 }
		command = { type = trade value = 1000 }
		command = { type = stability value = 1 }
	}
}

#-----------------------------------------------------------------------------------------------
#Frans Anneesens by Archeolooginspe

#(1718) Unrest in Brussels
event = {
	id = 179308
	trigger = {
		owned = { province = 378 data = -1 } #Brabant
		domestic = { type = centralization value = 6 }
	}
	random = no
	country = HAB
	name = "EVENTNAME179308" #Unrest in Brussels
	desc = "EVENTHIST179308"
	#-#During the reign of the first governor Eugene of Savoye, who was represented by the plenipopotentiary minister the marquis de Pré, the Brussels crafts tried to restore their old privileges as much as possible. This lead to continual conflicts with the Austrian administration which wanted a centralized rule. The marquis de Pré let Frans Anneessens, dean of the weavers be decapitaded on the Grand Market of Brussels to end the suspension with the weavers.

	date = { day = 1 month = january year = 1718 }
	offset = 360
	deathdate = { day = 1 month = january year = 1719 }

	action_a = {
		name = "ACTIONNAME179308A" #Those damn weavers!
		command = { type = revolt which = 378 } #Brabant
		command = { type = province_revoltrisk which = 378 value = 4 } #Brabant
	}
}
#(1719) Decapitation of Frans Anneessens
event = {
	id = 179309
	trigger = {
		owned = { province = 378 data = -1 } #Brabant
		event = 179308
	}
	random = no
	country = HAB
	name = "EVENTNAME179309" #Decapitation of Frans Anneessens
	desc = "EVENTHIST179309"
	#-#During the unrest 10 deans were arrested but only one, Frans Anneessens, was decapitated. What shall we do to ease the unrest?

	date = { day = 1 month = august year = 1719 }
	offset = 30
	deathdate = { day = 1 month = january year = 1721 }

	action_a = {
		name = "ACTIONNAME179309A" #Decapitate one of them to set an exemple
		command = { type = stability value = 1 }
		command = { type = population which = 378 value = -1 } #Brabant
		command = { type = province_revoltrisk which = 378 value = -4 } #Brabant
	}
	action_b = {
		name = "ACTIONNAME179309B" #Let them all go
		command = { type = stability value = 1 } #lowered by mnorrefeldt
		command = { type = province_revoltrisk which = 378 value = -4 } #Brabant
		command = { type = revoltrisk which = 6 value = -1 }
	}
	action_c = {
		name = "ACTIONNAME179309C" #Decapitate them all!
		command = { type = stability value = -1 }
		command = { type = population which = 378 value = -10 } #Brabant
		command = { type = province_revoltrisk which = 378 value = -4 } #Brabant
		command = { type = revoltrisk which = 3 value = 1 }
	}
}
#-----------------------------------------------------------------------------------------------

#(1731) The Purge of the Archbishop of Salzburg
event = {
	id = 3203
	trigger = {
		owned = { province = 350 data = -1 } #Salzburg
		NOT = {
			#exists = SLZ
			#event = 3755 #SLZ: same as 3203
		}
		OR = {
			religion = catholic
			religion = counterreform
		}
	}
	random = no
	country = HAB
	name = "EVENTNAME3203" #The Purge of the Archbishop of Salzburg
	desc = "EVENTHIST3203"
	#-#In 1731 the Archbishop of Salzburg purged his lands from Protestants. The Protestants had grown in number over the years and the archbishop had started to feel his powers threatened by their existence. More than 26000 ethnic German Protestants fled for their lives. 17000 of them were welcomed in Prussia in 1732 and most of them settle in East Prussia. Several protestant countries started nation-wide collections to help the fugitives.

	date = { day = 1 month = january year = 1731 }
	offset = 10
	deathdate = { day = 1 month = january year = 1732 }

	action_a = {
		name = "ACTIONNAME3203A" #Let the Archbishop Purge the Protestants
		command = { type = domestic which = INNOVATIVE value = -3 }
		command = { type = population which = 350 value = -10000 } #Salzburg
		command = { type = stability value = -1 }
		command = { type = trigger which = 3543 } #PRU: The Purge of the Archbishop of Salzburg
	}
	action_b = {
		name = "ACTIONNAME3203B" #Stop the Archbishop's Purge
		command = { type = domestic which = INNOVATIVE value = 1 }
		command = { type = provincereligion which = 350 value = protestant } #Salzburg
		command = { type = stability value = 1 }
	}
}

#(1731-1733) Austrian intervention in Corsica
event = {
	id = 179118
	trigger = {
		event = 174072 #GEN: Ask for Austrian support
		atwar = no
		OR = {
			emperor = yes
			vassal = { country = HAB country = GEN }
			alliance = { country = HAB country = GEN }
			AND = {
				owned = { province = 389 data = -1 } #Milan
				relation = { country = GEN data = 150 }
			}
		}
	}
	random = no
	country = HAB
	name = "EVENTNAME179118" #Austrian intervention in Corsica
	desc = "EVENTHIST174072"
	#-#On 10th May 1731, the Genoese ambassador in Vienna, Marquis Gian Luca Pallavicini, was received by Karl II to present a request for military assistance on behalf of the Republic. On 10th August, nearly 4000 Austrian soldiers landed at Bastia under the Baron of Wachtendonck, with them were 3000 Genoese under Camillo Doria. The two men often disagreed as the Genoese often found the Austrian officer's attitude too conciliary towards the rebels. Some more troops landed at Calvi in early april 1732 under the Prince of Wurtemberg and there were now around 10000 Austrians in the island. In less than a month, this first revolt was over and the foremost leaders surrendered and were transfered in Genoa.

	date = { day = 19 month = may year = 1731 }
	offset = 10
	deathdate = { day = 15 month = june year = 1733 }

	action_a = {
		name = "ACTIONNAME179118A" #Send support
		command = { type = relation which = COR value = -200 }
		command = { type = relation which = GEN value = 50 }
		command = { type = desertion which = -1 value = 8000 }
		command = { type = treasury value = 50 }
		command = { type = trigger which = 174073 } #GEN: Austria sends troops
	}
	action_b = {
		name = "ACTIONNAME179118B" #Don't send anything
		command = { type = relation which = COR value = 50 }
		command = { type = relation which = GEN value = -100 }
	}
}

#(1733) The Polish Succession of 1733
event = {
	id = 3204
	trigger = {
		OR = {
			event = 3495 #POL: The Polish Succession of 1733 -I-
			event = 258086 #POL: The Polish Succession of 1733 -II-
		}
	}
	random = no
	country = HAB
	name = "EVENTNAME3495" #The Polish Succession of 1733
	desc = "EVENTHIST3495"
	#-#In 1733, the death of August II prompted a new election for the Polish monarch. Due to the permanent practice of Liberum Veto and the ensuing constant bribery, the Polish Sejm was unable to agree between the French Candidate, Stanislaw Leszczynski and his opponent, August III of Saxony, supported by Austria and Russia. The Sejm finally agreed on Stanislas, but this was rejected by Austria and Russia starting the war of Polish Succession. The war ended with August III on the Polish throne.

	date = { day = 12 month = september year = 1733 }

	action_a = {
		name = "ACTIONNAME3429B" #Give the Wettins a helping hand
		command = { type = casusbelli which = FRA value = 12 }
		command = { type = relation which = POL value = 50 }
		command = { type = relation which = SAC value = 50 }
		command = { type = relation which = RUS value = 50 }
		command = { type = relation which = FRA value = -100 }
		command = { type = relation which = PRU value = -100 }
		command = { type = relation which = SWE value = -100 }
		command = { type = stability value = -1 }
	}
	action_b = {
		name = "ACTIONNAME3429A" #Secure Poland for the Wettins
		command = { type = casusbelli which = FRA value = 12 }
		command = { type = casusbelli which = PRU value = 12 }
		command = { type = relation which = POL value = 100 }
		command = { type = relation which = SAC value = 150 }
		command = { type = relation which = RUS value = 150 }
		command = { type = relation which = FRA value = -150 }
		command = { type = relation which = PRU value = -150 }
		command = { type = relation which = SWE value = -150 }
		command = { type = stability value = 1 }
	}
}

#(1733) The Habsburg Inheritance of Lothringen
event = {
	id = 3100 #triggered by LOR_3632
	trigger = {
		NOT = {
			vassal = { country = LOR country = HAB }
		}
	}
	random = no
	country = HAB
	name = "EVENTNAME3100" #Habsburg Inheritance of Lothringen
	desc = "EVENTHIST3100"
	#-#In 1733 there had been great conflict in Europe centered on the election of King Stanislaw Leszczynski. Russia and Austria had supported Friedrich Augustus II's son, but he lost the election. War had been close and several plans had been discussed to secure peace for all. One was that Friedrich Augustus II's son got the throne and Stanislaw would have been compensated with Lorraine. However that situation never materialized and when François III Stephan of Lorraine married Maria-Theresia of Austria the lands of Lorraine would be inherited by their eldest son, Josef.

	action_a = {
		name = "ACTIONNAME3100A" #Lothringen will stay within the Habsburg Dynasty
		command = { type = vassal which = LOR }
		command = { type = relation which = LOR value = 150 }
		command = { type = stability value = 1 }
	}
}

#(1739) The Effects of the Pragmatic Sanction
event = {
	id = 3205
	trigger = {
		OR = {
			exists = BAY
			AND = {
				exists = PRU
				event = 263014 #PRU: The Kingdom of Prussia
			}
		 }
	}
	random = no
	country = HAB
	name = "EVENTNAME3205" #The Effects of the Pragmatic Sanction
	desc = "EVENTHIST3205"
	#-#The Pragmatic Sanction, solemnly rendered by Emperor Charles VI on 19th April 1713, established the indivisibility of the Habsburg patrimony, and ruled the order of succession by order of first born child, even to a woman. This made Maria-Theresa, born in 1717, the heir of the Empire. The Pragmatic Sanction was recognized by Spain in 1725 (confirmed in 1731), Russia in 1726, Prussia in 1728, the United Provinces in 1731, Hanover in 1732, the Heiliges Reich (except Bavaria) in 1732 and France in 1738 only. Bavarian refusal would lead to the War of the Austrian Succession.

	date = { day = 29 month = december year = 1739 }

	action_a = {
		name = "ACTIONNAME3205A" #Staunchly defend our rights
		command = { type = relation which = PRU value = -150 }
		command = { type = relation which = BAY value = -100 }
		command = { type = relation which = SAC value = -100 }
		command = { type = relation which = GEN value = -50 }
		command = { type = relation which = FRA value = -150 }
		command = { type = relation which = ENG value = 150 }
		command = { type = relation which = HOL value = 150 }
		command = { type = relation which = RUS value = 150 }
		command = { type = relation which = HES value = 100 }
		command = { type = relation which = HAN value = 100 }
		command = { type = stability value = 1 }
	}
	action_b = {
		name = "ACTIONNAME3205B" #Meekly argue for moral justice
		command = { type = relation which = PRU value = -100 }
		command = { type = relation which = BAY value = -80 }
		command = { type = relation which = SAC value = -80 }
		command = { type = relation which = GEN value = -20 }
		command = { type = relation which = FRA value = -150 }
		command = { type = relation which = HOL value = 150 }
		command = { type = relation which = RUS value = 150 }
		command = { type = relation which = HES value = 100 }
		command = { type = relation which = HAN value = 100 }
		command = { type = stability value = -1 }
	}
	action_c = {
		name = "ACTIONNAME3205C" #Publicly promise concessions
		#territorial cessions to Spain
		command = { type = cedeprovince which = SPA value = 402 } #Emilia
		#territorial cessions to Prussia
		command = { type = removecore which = 314 } #Silesia
		command = { type = cedeprovince which = PRU value = 289 } #Memel
		command = { type = cedeprovince which = PRU value = 290 } #Prussia
		command = { type = cedeprovince which = PRU value = 302 } #Hinterpommern
		command = { type = cedeprovince which = PRU value = 304 } #Vorpommern
		command = { type = cedeprovince which = PRU value = 311 } #Magdeburg
		command = { type = cedeprovince which = PRU value = 312 } #Brandenburg
		command = { type = cedeprovince which = PRU value = 313 } #Küstrin
		command = { type = cedeprovince which = PRU value = 314 } #Silesia
		command = { type = relation which = PRU value = 100 }
		command = { type = relation which = BAY value = 50 }
		command = { type = relation which = SAC value = 50 }
		command = { type = relation which = GEN value = 100 }
		command = { type = relation which = FRA value = -50 }
		command = { type = relation which = HOL value = 100 }
		command = { type = relation which = RUS value = 100 }
		command = { type = relation which = HES value = 50 }
		command = { type = relation which = HAN value = 50 }
		command = { type = stability value = -2 }
		command = { type = revolt which = -2 }
		command = { type = sleepevent which = 3527 } #PRU: The Effects of the Pragmatic Sanction
		command = { type = sleepevent which = 263003 } #PRU: The Convention of Westminster
		command = { type = trigger which = 263013 } #PRU: The acquisition of Silesia
	}
}

#(1740-1765) Tuscan vassalage
#modified by YodaMaster
event = {
	id = 17371
	trigger = {
		emperor = yes
		NOT = {
			vassal = { country = TOS country = HAB }
			war = { country = TOS country = HAB }
		}
		exists = TOS
		event = 17370 #TOS: The rule of the House of Lorraine
	}
	random = no
	country = HAB
	name = "EVENTNAME17371" #Francesco II Grand Duke of Tuscany
	desc = "EVENTHIST17371"
	#-#In 1737 Duke Francis of Lorraine relinquished his claim to that Duchy and was made Grand Duke of Tuscany. His wife, Maria Theresa was heir to Austria and all the Habsburg domains. She secured his election to the Empire in 1745 and made him co-regent of her hereditary dominions. He ruled Tuscany from Vienna and supported his wife's aims with its resources.

	date = { day = 21 month = october year = 1740 }
	offset = 10
	deathdate = { day = 17 month = august year = 1765 }

	action_a = {
		name = "OK"
		command = { type = DIP which = 2 value = 12 }
		command = { type = vassal which = TOS }
		command = { type = alliance which = TOS }
	}
}
#(1740-1765) Kingdom of Italy vassalage (Francesco II) - Fantasy
#by YodaMaster
event = {
	id = 179048
	trigger = {
		emperor = yes
		NOT = {
			vassal = { country = ITA country = HAB }
			war = { country = ITA country = HAB }
		}
		exists = ITA
		event = 193039 #ITA: The rule of the House of Lorraine
	}
	random = no
	country = HAB
	name = "EVENTNAME179048" #Francesco II King of Italy
	desc = "EVENTHIST179048"
	#-#In 1737 Duke Francis of Lorraine relinquished his claim to that Duchy and was made King of Italy. His wife, Maria Theresa was heir to Austria and all the Habsburg domains. She secured his election to the Empire in 1745 and made him co-regent of her hereditary dominions. He ruled Italy from Vienna and supported his wife's aims with its resources.

	date = { day = 21 month = october year = 1740 }
	offset = 10
	deathdate = { day = 17 month = august year = 1765 }

	action_a = {
		name = "OK"
		command = { type = DIP which = 2 value = 12 }
		command = { type = vassal which = ITA }
		command = { type = alliance which = ITA }
	}
}
#(1740-1765) Tuscan vassalage (no War of Polish Succession) - Ahistorical
event = {
	id = 179124
	trigger = {
		emperor = yes
		NOT = {
			vassal = { country = TOS country = HAB }
			war = { country = TOS country = HAB }
		}
		exists = TOS
		event = 297036 #TOS: The House of Lorraine settles in Florence
	}
	random = no
	country = HAB
	name = "EVENTNAME17371" #Francesco II Grand Duke of Tuscany
	desc = "EVENTHIST179124"
	#-#In 1737 Francis Stephan Duke of Lorraine was made Grand Duke of Tuscany because Florence lacked a ruling dynasty as the last Medici died heirless. Francis' wife, Maria Theresa, was heir to Austria and of all the Habsburg domains. She secured her husband's investiture as Grand Duke of Tuscany and his election to the Empire in 1745 making him co-regent of her hereditary dominions. Francis preferred to rule Tuscany and Lorraine from Vienna supporting his wife's aims with its resources.

	date = { day = 21 month = october year = 1740 }
	offset = 10
	deathdate = { day = 17 month = august year = 1765 }

	action_a = {
		name = "OK"
		command = { type = DIP which = 2 value = 12 }
		command = { type = vassal which = TOS }
		command = { type = alliance which = TOS }
		command = { type = dynastic which = LOR }
		command = { type = alliance which = LOR }
		command = { type = relation which = LOR value = 50 }
	}
}
#(1740-1765) Kingdom of Italy vassalage (Francesco II) (no War of Polish Succession) - Fantasy
#by Bordic
event = {
	id = 179125
	trigger = {
		emperor = yes
		NOT = {
			vassal = { country = ITA country = HAB }
			war = { country = ITA country = HAB }
		}
		exists = ITA
		event = 193067 #ITA: The House of Lorraine settles in Italy
	}
	random = no
	country = HAB
	name = "EVENTNAME179048" #Francesco II King of Italy
	desc = "EVENTHIST179125"
	#-#In 1737 Francis Stephan Duke of Lorraine was made King of Italy. Francis' wife, Maria Theresa, was heir to Austria and of all the Habsburg domains. She secured her husband's investiture as King of Italy and his election to the Empire in 1745 making him co-regent of her hereditary dominions. Francis preferred to rule Italy and Lorraine from Vienna supporting his wife's aims with its resources.

	date = { day = 21 month = october year = 1740 }
	offset = 10
	deathdate = { day = 17 month = august year = 1765 }

	action_a = {
		name = "OK"
		command = { type = DIP which = 2 value = 12 }
		command = { type = vassal which = ITA }
		command = { type = alliance which = ITA }
		command = { type = dynastic which = LOR }
		command = { type = alliance which = LOR }
		command = { type = relation which = LOR value = 50 }
	}
}

#(1748-49) Bohemia is lost - BAY won WoAS - Ahistorical
#by Bordic
event = {
	id = 179105 #triggered by BAY_125037
	random = no
	country = HAB
	name = "EVENTNAME179105" #Bohemia is lost
	desc = "EVENTHIST125037"
	#-#The war of the Austrian succession was victorious for the Elector of Bavaria, who was granted the crown of Bohemia and the allegiance of Maria Theresia, Archduchess of Austria.

	action_a = {
		name = "OH_NO"
		command = { type = stability value = -2 }
		command = { type = removecore which = 314 } #Silesia
		command = { type = removecore which = 315 } #Moravia
		command = { type = removecore which = 327 } #Ostmarch
		command = { type = removecore which = 328 } #Bohemia
		command = { type = removecore which = 329 } #Erz
		command = { type = removecore which = 330 } #Sudeten
		command = { type = cedeprovince which = PRU value = 314 } #Silesia (just in case)
		command = { type = cedeprovince which = BAY value = 315 } #Moravia
		command = { type = cedeprovince which = BAY value = 327 } #Ostmarch
		command = { type = cedeprovince which = BAY value = 328 } #Bohemia
		command = { type = cedeprovince which = BAY value = 329 } #Erz
		command = { type = cedeprovince which = BAY value = 330 } #Sudeten
	}
}

#(1750-1760) The Reform of the Bureaucracy
event = {
	id = 3336
	random = no
	country = HAB
	name = "EVENTNAME3336" #The Reform of the Bureaucracy
	desc = "EVENTHIST3336"
	#-#Maria Theresa determined from the outset of her reign that the Habsburg monarchy would never again be perceived as too weak to defend itself. Consequently, even while the war was under way she had been studying reforms, and when it ended she immediately began implementing them. First and foremost was reform of the army. Maria Theresa realized, however, that no military reform would be effective without financial reform and in this area she (advised by the brilliant Friedrich Wilhelm, Count von Haugwitz) achieved her perhaps greatest accomplishments. Following the military and financial reforms other changes came, generally in administrative matters. Although these reforms were subjected to many modifications and changes throughout Maria Theresa's reign and after, the result was a government far more centralized than it had ever been before.

	date = { day = 1 month = january year = 1750 }
	offset = 30
	deathdate = { day = 1 month = january year = 1760 }

	action_a = {
		name = "ACTIONNAME3336A" #Reform
		command = { type = domestic which = CENTRALIZATION value = 2 }
		command = { type = domestic which = ARISTOCRACY value = 2 }
		command = { type = domestic which = SERFDOM value = -1 }
		command = { type = stability value = 1 }
	}
	action_b = {
		name = "ACTIONNAME3336B" #Let it be
		command = { type = treasury value = 300 }
		command = { type = stability value = 3 }
	}
}

#(1751) Military academy
event = {
	id = 179017
	random = no
	country = HAB
	name = "EVENTNAME179017" #Militarakademie
	desc = "EVENTHIST179017"
	#-#The Military Academy (official name: Theresianische Militarakademie), was founded by Empress Maria Theresia by act of resolution on December 14, 1751. Between 1752-1918 it was a center of education for imperial officers in the castle of Wiener Neustadt. Its first director was Field Marshal L. von Daun. The name 'Militarakademie' has been used since its union with the 'Pflanzschule' cadet school in Vienna in 1769. On an average 400 pupils graduated from the Academy every year.

	date = { day = 13 month = december year = 1751 }

	action_a = {
		name = "ACTIONNAME179017A" #Build it
		command = { type = gainbuilding which = -2 value = Barrack }
		command = { type = treasury value = -200 }
	}
	action_b = {
		name = "ACTIONNAME179017B" #Put our resources into research
		command = { type = land value = 2000 }
	}
}

#(1753) Kaunitz
event = {
	id = 3206
	random = no
	country = HAB
	name = "EVENTNAME3206" #Kaunitz
	desc = "EVENTHIST3206"
	#-#Wenzel-Anton, Earl and then Prince of Rittberg-Kaunitz (1711-1794) is a noble from Bohemia. Impregnated of the culture of the Englightenment, a devoted civil servant, he always had the full confidence and support from Empress Maria-Theresa. After a diplomatic career, he became Chancellor of Austria in 1753, till 1792. A partisan of alliance shifts, he worked out the closer ties with France that led to the Seven Years War, but also managed to renew with Frederick II of Prussia in time to be part of the first partition of Poland.

	date = { day = 1 month = january year = 1753 }
	offset = 10
	deathdate = { day = 29 month = december year = 1753 }

	action_a = {
		name = "ACTIONNAME3206A" #An Excellent Minister!
		command = { type = DIP which = 3 value = 240 }
		command = { type = ADM which = 3 value = 240 }
		command = { type = MIL which = 3 value = 240 }
		command = { type = stability value = 2 }
	}
}

#(1753-1772) The Reversion of all alliances
#by Bordic
event = {
	id = 179053
	trigger = {
		event = 3206 #HAB: Kaunitz
		countrysize = 6 #must be a major power
		exists = ENG
		exists = FRA
		AND = {
			exists = PRU
			event = 263014 #PRU: The Kingdom of Prussia
		}
		NOT = { war = { country = FRA country = HAB } }
		event = 164038 #ENG: The Convention of Westminster
	}
	random = no
	country = HAB
	name = "EVENTNAME179053" #The Reversion of all alliances
	desc = "EVENTHIST179053"
	#-#In 1740s the problem of Maria Theresia's succession to the Austrian throne and to the Habsburg inheritance caused a big instability in the European balance of powers which led to the War of Austrian succession. The peace that followed the conflict, provoked by the foreign opposition to the Pragmatic Sanction stated by the former Emperor Charles VI and ended with the Treaty of Aix-la-Chapelle in 1748, resulted in a well defined rivalry between major European powers forming essentially two main political formations: the alliance of the socalled 'Bourbon family pact' (France, Spain, Naples and the latest Parma, all with members of the same House of Bourbons) with Prussia and the alliance between Austria, Russia and England. Disappointed by England's interested approaches to the emerging power of Prussia wich led to the Convention of Westminster, a treaty with which both countries would avoid any foreign military presence or access in the German territories, Austria strengthened her political ties with Saxony, Russia and Sweden and started new diplomatic handlings with France, traditionally an arch-enemy of the Habsburgs since the old dispute over the Burgundian inheritance but for sure the most powerful antagonist to the rising British colonial empire. And an alliance with France would also mean the support of Spain and the Bourbon Italian monarchies. That diplomatic move would lead to a huge world conflict fought in the years between 1756 and 1763: the socalled 'Seven Years War'.

	date = { day = 1 month = January year = 1753 } #Kaunitz in charge
	offset = 20
	deathdate = { day = 0 month = january year = 1772 }

	action_a = {
		name = "ACTIONNAME179053A" #Side with France
		command = { type = stability value = 1 }
		command = { type = casusbelli which = PRU value = 36 }
		command = { type = relation which = FRA value = 150 }
		command = { type = relation which = SPA value = 150 }
		command = { type = relation which = NAP value = 150 }
		command = { type = relation which = PAR value = 150 }
		command = { type = relation which = RUS value = 150 }
		command = { type = relation which = SWE value = 150 }
		command = { type = relation which = SAC value = 100 }
		command = { type = relation which = ENG value = -150 }
		command = { type = relation which = PRU value = -150 }
		command = { type = trigger which = 170120 } #FRA: The Diplomatic Revolution
	}
	action_b = {
		name = "ACTIONNAME179053B" #Stay Neutral
		command = { type = relation which = FRA value = 25 }
		command = { type = relation which = SPA value = 25 }
		command = { type = relation which = NAP value = 25 }
		command = { type = relation which = PAR value = 25 }
		command = { type = relation which = RUS value = 25 }
		command = { type = relation which = SWE value = 25 }
		command = { type = relation which = SAC value = 25 }
		command = { type = relation which = ENG value = -50 }
		command = { type = relation which = PRU value = -50 }
	}
	action_c = {
		name = "ACTIONNAME179053C" #France is the true enemy
		command = { type = stability value = -1 }
		command = { type = casusbelli which = FRA value = 36 }
		command = { type = casusbelli which = SPA value = 36 }
		command = { type = casusbelli which = PAR value = 36 }
		command = { type = casusbelli which = NAP value = 36 }
		command = { type = relation which = FRA value = -150 }
		command = { type = relation which = SPA value = -150 }
		command = { type = relation which = NAP value = -150 }
		command = { type = relation which = PAR value = -150 }
		command = { type = relation which = RUS value = 50 }
		command = { type = relation which = SWE value = 50 }
		command = { type = relation which = SAC value = 50 }
		command = { type = relation which = ENG value = 50 }
		command = { type = sleepevent which = 273033 } #SAC: The Reversion of all alliances
		command = { type = sleepevent which = 291027 } #SWE: The Reversion of all alliances
		command = { type = sleepevent which = 271003 } #RUS: The Reversion of all alliances
	}
}

#(1764-1772) 1st Partition of Poland
event = {
	id = 3337 #triggered by POL_3499 A
	trigger = { neighbour = POL }
	random = no
	country = HAB
	name = "EVENTNAME3440" #The Partition of Poland
	desc = "EVENTHIST3440"
	#-#Stanislas II Poniatowsky (1764-1795) had been elected King of Poland under Russian pressure. The favorite of Catherine II of Russia, he aspired to reform the conditions of his realm, described as anarchy tempered by civil war. Russia placed her supporters in the 1767 Confederation of Slutsk to prevent any curtailment in the Liberum Veto. Civil war occurred in 1768 and by 1772, the powers of Russia, Prussia and Austria, under the inspiration of Frederick II, proceeded to the first partition of Poland, taking border provinces from her and demanding that the Liberum Veto be maintained and all reforms abandoned.

	action_a = {
		name = "ACTIONNAME3440A" #Poland is trying to reform and it must be stopped
		command = { type = casusbelli which = POL value = 60 }
		command = { type = relation which = POL value = -150 }
		command = { type = stability value = 3 }
		command = { type = treasury value = 250 }
		command = { type = addcore which = 298 } #Galizien
	}
}

#(1765-1790) The reversion of Lothringen - Ahistorical
event = {
	id = 179126 #triggered by LOR_211010 A
	random = no
	country = HAB
	name = "EVENTNAME179126" #The reversion of Lothringen
	desc = "EVENTHIST211010"
	#-#Following the death of Duke François III Stephan, his son Joseph Ier, also co-regent with his mother Maria Theresa of Austria, had the opportunity to incorporate the Duchy of Lorraine into the Habsburgs' hereditary dominions as the imperial fief of Lothringen. There is now a question about absorbing our ducal title into the imperial administration or not.

	action_a = {
		name = "GOOD"
		command = { type = inherit which = LOR }
		command = { type = addcore which = 375 } #Lorraine
	}
}

#(1770-1774) The Enlightened Reforms of Josef II - reworked by Archeolooginspe
event = {
	id = 3216
	random = no
	country = HAB
	name = "EVENTNAME3216" #The Enlightened Reforms of Josef II
	desc = "EVENTHIST3216"
	#-#Joseph II, 1741-90, Holy Roman Emperor (1765-90), King of Bohemia and Hungary (1780-90). After his fathers death 1765, Joseph acted as emperor and co-regent with his mother but had little real influence. Resenting this fact, he takes to traveling until his mothers death in 1780. He then begins reformations largely based on his own philosophy and principles, rather than those originating in the Enlightenment. These reforms consisted of nothing less than the abolition of hereditary and ecclesiastic privileges as well as the creation of a civil service based on merit and loyalty rather than birth.

	date = { day = 1 month = january year = 1770 }
	offset = 30
	deathdate = { day = 1 month = january year = 1774 }

	action_a = {
		name = "ACTIONNAME3216A" #Reforms of Enlightenment
		command = { type = domestic which = CENTRALIZATION value = 2 }
		command = { type = domestic which = ARISTOCRACY value = -1 }
		command = { type = domestic which = SERFDOM value = -5 }
		command = { type = domestic which = INNOVATIVE value = 2 }
		command = { type = domestic which = MERCANTILISM value = -2 }
		command = { type = domestic which = LAND value = -2 }
		command = { type = revoltrisk which = 36 value = 4 }
		command = { type = treasury value = -200 }
	}
	action_b = {
		name = "ACTIONNAME3216B" #No Change
		command = { type = stability value = 1 }
	}
	action_c = {
		name = "ACTIONNAME3216C" #Reforms of Reaction
		command = { type = domestic which = CENTRALIZATION value = -1 }
		command = { type = domestic which = ARISTOCRACY value = 3 }
		command = { type = domestic which = SERFDOM value = 3 }
		command = { type = domestic which = INNOVATIVE value = -2 }
		command = { type = domestic which = MERCANTILISM value = 2 }
		command = { type = domestic which = LAND value = 1 }
		command = { type = revoltrisk which = 36 value = 2 }
		command = { type = treasury value = -200 }
	}
}

#(1776-1785) Serfdom is formally abolished
event = {
	id = 3339
	random = no
	country = HAB
	name = "EVENTNAME3339" #Serfdom is formally abolished
	desc = "EVENTHIST3339"
	#-#At long last, serfdom is formally abolished in Estonia and Latvia. Peasants in Lithuania, as well as in Russia proper, have to wait another 50 years before serfdom is struck from the books. But while the Estonians and Latvians gain their freedom by law, their lives do not change that much in practice: German barons continue to own all the land, and they retain rights to restrict the movement of peasants and to inflict physical punishment. Without land, most peasants can't sustain themselves economically and are forced to keep working for their centuries-old German masters.

	date = { day = 1 month = january year = 1776 }
	offset = 30
	deathdate = { day = 1 month = january year = 1785 }

	action_a = {
		name = "ACTIONNAME3339A" #Yes, certainly!
		command = { type = domestic which = SERFDOM value = -5 }
		command = { type = domestic which = INNOVATIVE value = 1 }
		command = { type = stability value = -1 }
	}
	action_b = {
		name = "ACTIONNAME3339B" #No, certainly not!
		command = { type = domestic which = INNOVATIVE value = -1 }
	}
	action_c = {
		name = "ACTIONNAME3339C" #No, and go further!
		command = { type = domestic which = SERFDOM value = 3 }
		command = { type = domestic which = INNOVATIVE value = -3 }
		command = { type = stability value = 1 }
	}
}

#(1778) The Bavarian Succession of 1777
event = {
	id = 3207
	trigger = {
		AND = {
			exists = PRU
			event = 263014 #PRU: The Kingdom of Prussia
		}
		OR = {
			exists = BAY
			exists = PFA
		}
		event = 179019 #HAB: Straubing granted to Habsburg
		OR = {
			event = 255003 #PFA: Palatinate inherits Bavaria
			event = 255008 #PFA: The Wittelsbach inheritance of Bavaria
			event = 125034 #BAY: The Palatine Wittelsbach settles in Munich
		}
		NOT = { owned = { province = 349 data = -1 } } #Bayern
	}
	random = no
	country = HAB
	name = "EVENTNAME3207" #The Bavarian Succession of 1777
	desc = "EVENTHIST3207"
	#-#After the extinction of the Wittelsbach dynasty in Bavaria (1777), Joseph II endeavored to strengthen the position of Austria within the Empire. His plan to exchange territories with Charles Theodore of the Palatinate, the heir of the Bavarian throne (Lower Bavaria and the Upper Palatinate for Lower Austria) led to the War of the Bavarian Succession (1778-1779). Prussia intervened in July 1778 in what she saw as a dangerous Austrian expansion. It was a short conflict which started with a Prussian invasion of Bohemia but was terminated in May 1779s when Empress Maria Theresa forced her son Joseph II to capitulate. The peace was concluded at Teschen on 16th May 1779 and Austria settled for the small Inn district.

	date = { day = 1 month = january year = 1778 }
	offset = 10
	deathdate = { day = 1 month = july year = 1778 }

	action_a = {
		name = "ACTIONNAME3207A" #Make legal claims on Bayern
		command = { type = relation which = PRU value = -150 }
		command = { type = trigger which = 3666 } #PFA: Austria claims Straubing
		command = { type = trigger which = 3617 } #BAY: Austria claims Straubing
	}
	action_b = {
		name = "ACTIONNAME3207B" #Do not interfere
		command = { type = relation which = BAY value = -50 }
		command = { type = relation which = PRU value = 50 }
		command = { type = relation which = PFA value = -50 }
		command = { type = sleepevent which = 3531 } #PRU: The Bavarian Succession of 1777
		command = { type = sleepevent which = 179021 } #HAB: Austria recovers Straubing
		command = { type = stability value = 1 }
	}
}
#(1778) The Bavarian Succession of 1777
event = {
	id = 179092
	trigger = {
		event = 179019 #HAB: Straubing granted to Habsburg
		NOT = { event = 3207 } #HAB: The Bavarian Succession of 1777
		OR = {
			AND = {
				OR = {
					exists = BAY
				 	exists = PFA
				}
				OR = {
					event = 255003 #PFA: Palatinate inherits Bavaria
					event = 255008 #PFA: The Wittelsbach inheritance of Bavaria
					event = 125034 #BAY: The Palatine Wittelsbach settles in Munich
				}
				NOT = {
					owned = { province = 349 data = -1 } #Bayern
					war = { country = PFA country = HAB }
					war = { country = BAY country = HAB }
				}
			}
			NOT = {
				exists = BAY
				exists = PFA
			}
		}
	}
	random = no
	country = HAB
	name = "EVENTNAME3207" #The Bavarian Succession of 1777
	desc = "EVENTHIST179092"
	#-#After the extinction of the Wittelsbach dynasty in Bavaria in 1777, Joseph II endeavored to strengthen the position of Austria within the Empire by exchanging territories with Charles Theodore of the Palatinate, the heir of the Bavarian throne (Lower Bavaria and the Upper Palatinate for Lower Austria). Austria would then legitimatedly press her claims to Straubing, thereby expanding her influence into Southern Germany.

	date = { day = 2 month = july year = 1778 }
	offset = 10
	deathdate = { day = 29 month = december year = 1778 }

	action_a = {
		name = "ACTIONNAME3207A" #Make legal claims on Bayern
		command = { type = treasury value = -100 }
		command = { type = addcore which = 348 } #Ansbach
		command = { type = trigger which = 125035 } #BAY: Straubing is ceded to Austria
		command = { type = trigger which = 255009 } #PFA: Straubing is ceded to Austria
	}
	action_b = {
		name = "ACTIONNAME3207B" #Do not interfere
		command = { type = stability value = 1 }
		command = { type = vp value = -5 }
		command = { type = relation which = BAY value = -50 }
		command = { type = relation which = PFA value = -50 }
	}
}

#(1780-1783) Austria is victorious
event = {
	id = 179021
	trigger = {
		NOT = {
			event = 125022 #BAY: Austria is defeated
			event = 255004 #PFA: Austria is defeated
			event = 263000 #PRU: Austria is defeated
		}
		event = 3207 #HAB: The Bavarian Succession of 1777
		NOT = {
			war = { country = PFA country = HAB }
			war = { country = BAY country = HAB }
			war = { country = PRU country = HAB }
		}
	}
	random = no
	country = HAB
	name = "EVENTNAME179021" #Austria recovers Straubing
	desc = "EVENTHIST179021"
	#-#Despite resistance from Prussia, Austria managed to occupy and annex Straubing, thereby expanding into Southern Germany.

	date = { day = 1 month = january year = 1780 }
	offset = 10
	deathdate = { day = 29 month = december year = 1783 }

	action_a = {
		name = "ACTIONNAME179021A" #We are victorious
		command = { type = treasury value = -30 }
		command = { type = vp value = 30 }
		command = { type = addcore which = 348 } #Ansbach
		command = { type = trigger which = 125023 } #BAY: Straubing is ceded to Austria
		command = { type = trigger which = 255005 } #PFA: Straubing is ceded to Austria
	}
}

#(1782-1783) Haydn - Flavor
event = {
	id = 179036
	trigger = { stability = -1 }
	random = no
	country = HAB
	name = "EVENTNAME179036" #Franz Joseph Haydn
	desc = "EVENTHIST179036"
	#-#The composer Franz-Joseph Haydn was appointed in 1759 as Vice-Kapellmeister to one of the leading Hungarian families, the Esterházys, becoming Kapellmeister in 1766. The works at Esterháza show an increasing enterprise, originality and freedom of style as well as melodic fluency, command of form, and humour, which carried Haydn's reputation beyond central Europe. In 1790, Nikolaus Esterházy died, but Haydn was retained by his son and was free to live in Vienna. In his last years his works show great diversity of style and seriousness of content yet retaining his vitality and fluency of utterance. At that time he composed his two great oratorios, 'The Creation' and 'The Seasons', clearly influenced by those of Haendel. Haydn died in 1809, after twice dictating his recollections and preparing a catalogue of his works. He was widely revered and is regarded, with justice, as father of the symphony and the string quartet.

	date = { day = 1 month = march year = 1782 }
	offset = 360
	deathdate = { day = 29 month = november year = 1783 }

	action_a = {
		name = "GREAT"
		command = { type = infra value = 25 }
		command = { type = vp value = 15 }
		command = { type = relation which = -1 value = 10 }
		command = { type = relation which = -1 value = 10 }
		command = { type = relation which = -1 value = 10 }
	}
}

#(1784-1801) Habsburg Archbishop in Cologne
event = {
	id = 179018 #triggered by KOL_202008
	trigger = {
		NOT = {
			vassal = { country = KOL country = HAB }
		}
	}
	random = no
	country = HAB
	name = "EVENTNAME179018" #The Archbishop in Cologne
	desc = "EVENTHIST202008"
	#-#Cologne's attempt to achieve independence from dynastic interests was short-lived: When Maximilian Friedrich died, the cathedral chapter conceded to the Emperor's efforts to install an Archbishop-Elector from the Habsburg dynasty and elected Maximilian Franz of Austria. The next Archbishop, Anton Viktor, was also a Habsburg, and the Emperor seemed to have gained the influence in the Rhineland he desired.

	action_a = {
		name = "OK"
		command = { type = vassal which = KOL }
		command = { type = trigger which = 179129 } #HAB: Maximilian Franz of Austria succeeds to the Archbishopric
	}
}
#(1784-1801) Maximilian Franz of Austria succeeds to the Archbishopric
event = {
	id = 179129 #triggered by HAB_179018
	random = no
	country = HAB
	name = "EVENTNAME179129" #Maximilian Franz of Austria succeeds to the Archbishopric
	desc = "EVENTHIST179129"
	#-#With his new throne Maximilian Franz brought Cologne into Austria's alliance and orbit.

	action_a = {
		name = "GOOD"
		command = { type = alliance which = KOL }
		command = { }
	}
}

#(1786) The Austrian flag
#by Bordic
event = {
	id = 179075
	random = no
	country = HAB
	name = "EVENTNAME179075" #The Austrian flag
	desc = "EVENTHIST179075"
	#-#Being the elder son and successor of Maria Theresia, heir to the Habsburg domains, and Franz, former Duke of Lorraine and Grand Duke of Tuscany, whose title he also received, Joseph II established the new line of the House of Habsburg-Lorraine to rule over Austria. On 20 march 1786 Joseph II decided to change the flag hoisted over all the Habsburgs dominions within the Holy Roman Empire with a more appropriate flag for Austria. However the use of red and white colours dates back to 1191 when, according to legend, duke Leopold got his white tunic entirely bloodstained by the end of a fierce battle fought at Ptolemais (Acre) except the part of the tunic protected by the wide belt which he found out still white, when taking his belt off. Losing his standard during the fray, Leopold supposedly raised his tunic as a rallying point, and that was when the design was subsequently made official. After this episode duke Leopold V would be supposedly granted these arms by King Henry VI.

	date = { day = 19 month = march year = 1786 }

	action_a = {
		name = "ACTIONNAME179075A" #A flag to better represent Austria
		command = { type = treasury value = -5 }
		command = { type = flagname which = "Austria" }
		command = { type = clrflag which = [Imperialflag] }
	}
}

#(1788-1790) Mozart for HAB (original by Paradox) - Flavor
event = {
	id = 5191
	trigger = { stability = -1 }
	random = no
	country = HAB
	name = "EVENTNAME5191" #Wolfgang Amadeus Mozart
	desc = "EVENTHIST5191"
	#-#Mozart is widely recognized as one of the greatest composers in the history of Western music. With Haydn and Beethoven he brought to its height the achievement of the Viennese Classical school. Unlike any other composer in musical history he wrote in all the musical genres of his day and excelled in every one. His taste his command of form and his range of expression entitle him to be considered the most universal of all composers.

	date = { day = 1 month = january year = 1788 }
	offset = 360
	deathdate = { day = 29 month = december year = 1790 }

	action_a = {
		name = "OK"
		command = { type = vp value = 15 }
		command = { type = infra value = 25 }
		command = { type = relation which = -1 value = 10 }
		command = { type = relation which = -1 value = 10 }
	}
}

#(1788-1792) 2nd Partition of Poland
event = {
	id = 3338 #triggered by POL_3500 A
	trigger = { neighbour = POL }
	random = no
	country = HAB
	name = "EVENTNAME3440" #The Partition of Poland
	desc = "EVENTHIST3441"
	#-#The 1788-1791 Four Years Diet of Poland took opportunity of the war between Russia, Turkey and Sweden (1788-1790) to attempt the transformation of Poland into a hereditary constitutional monarchy, which was proclaimed in the Constitution of May 1791. Influenced by Russia, the opposition forced the King to 'join' and called Russian troops to restore order. This led to the partition of the country in 1793, between her neighbouring countries, which deprived Poland of most of her territory. She would disappear after the 1794 popular uprising of Kosciuszko and the final dissolution of the state in 1795.

	action_a = {
		name = "ACTIONNAME3440A" #Poland is trying to reform and it must be stopped
		command = { type = casusbelli which = POL value = 60 }
		command = { type = relation which = POL value = -150 }
		command = { type = stability value = 3 }
		command = { type = treasury value = 250 }
		command = { type = addcore which = 298 } #Galizien
		command = { type = addcore which = 292 } #Podlasia
		command = { type = addcore which = 299 } #Krakow
	}
}

#(1789-1810) Takes slavonic away from Austria under conditions
event = {
	id = 179140
	trigger = {
		OR = {
			exists = BYZ
			exists = BUL
			exists = SER
			exists = BOS
			exists = CRO
		}
		NOT = { neighbour = TUR }
		event = 179139 #HAB: Finally they put their trust and support into our hands
	}
	random = no
	country = HAB
	name = "EVENTNAME179140" #They desert us
	desc = "EVENTHIST179140"
	#-#During the 18th century Turkish power on the Balkans declined and first independent states appeared where formerly Turkish sandzaks ruled. The people of the Balkans now seem to think that they no longer need us to protect them as our former military border no longer is under threat from the Turks and we are no longer the bulwark and nemesis of Christian Europe against the Muslim Turks.

	date = { day = 2 month = january year = 1789 }
	offset = 60
	deathdate = { day = 1 month = january year = 1810 }

	action_a = {
		name = "ACTIONNAME179140A" #All but the true friends turn away from us
		command = { type = remove_countryculture which = slavonic }
		command = { type = provinceculture which = 367 value = german } #Krain
		command = { type = relation which = TUR value = 10 }
	}
}

#-----------------------------------------------------------------------------------------------
#The Brabant Revolution - by Archeolooginspe

#(1789) The Brabant Revolution
event = {
	id = 179300
	trigger = {
		owned = { province = 378 data = -1 } #Brabant
		event = 3216 #HAB: The Enlightened Reforms of Josef II
	}
	random = no
	country = HAB
	name = "EVENTNAME179300" #The Brabant Revolution
	desc = "EVENTHIST179300"
	#-#The cancellation of the Blijde Inkomste on June 18th 1789 alienated the Vonckists, who now acted in cooperation with the Statists. In October 1789, the manifesto of the people of Brabant was published, proclaiming the province's independence, and the Habsburg forces were expelled. The estates general met on January 11th 1790 and proclaimed the United States of Belgium. Emperor Joseph II died in February 1790. The Brabant coalition of revolutionaries broke up, the Vonckists being chased out of offices and persecuted. In the Reichenbach Agreement, Prussia promised not to support the revolutionaries. On Dec. 3rd 1790, Austrian troops occupied Brussels, ending the short-lived United States of Belgium.

	date = { day = 18 month = june year = 1789 }
	offset = 60
	deathdate = { day = 1 month = september year = 1789 }

	action_a = {
		name = "DAMN"
		command = { type = revolt which = 378 } #Brabant
		command = { type = revolt which = 380 } #Flandern
		command = { type = revolt which = 377 } #Luxembourg
		command = { type = province_revoltrisk which = 378 value = 6 } #Brabant
		command = { type = province_revoltrisk which = 380 value = 6 } #Flandern
	}
}
#(1789) Event to check loss of Brabant and Flandern
event = {
	id = 179146
	trigger = {
		event = 179300 #HAB: The Brabant Revolution
		NOT = {
			owned = { province = 378 data = HAB } #Brabant
			owned = { province = 380 data = HAB } #Flandern
		}
	}
	random = no
	country = MUS #yes not HAB
	name = "AI_EVENT"
	desc = ""
	#-#No description needed

	date = { day = 18 month = june year = 1789 }
	offset = 1
	deathdate = { year = 1820 }

	action_a = {
		name = "OK"
		command = { type = sleepevent which = 179301 } #HAB: Leopold II recaptures the Southern Netherlands
	}
}
#(1790-1791) Suppression of the Brabant Revolution
event = {
	id = 179301
	trigger = {
		event = 179300 #HAB: The Brabant Revolution
		OR = {
			AND = { #both provinces owned
				owned = { province = 378 data = -1 } #Brabant
				control = { province = 378 data = -1 } #Brabant
				owned = { province = 380 data = -1 } #Flandern
				control = { province = 380 data = -1 } #Flandern
			}
			AND = { #only Brabant
				owned = { province = 378 data = -1 } #Brabant
				control = { province = 378 data = -1 } #Brabant
				NOT = {
					owned = { province = 380 data = -1 } #Flandern
				}
			}
			AND = { #only Flandern
				NOT = {
					owned = { province = 378 data = -1 } #Brabant
				}
				owned = { province = 380 data = -1 } #Flandern
				control = { province = 380 data = -1 } #Flandern
			}
		}
	}
	random = no
	country = HAB
	name = "EVENTNAME179301" #Leopold II recaptures the Southern Netherlands
	desc = "EVENTHIST179301"
	#-#On December 3rd, 1790, the troops of Leopold II captured Brussels and ended the short lived state of Belgium.

	date = { day = 2 month = december year = 1790 }
	offset = 56
	deathdate = { year = 1820 }

	action_a = {
		name = "ACTIONNAME179301A" #That will teach them
		command = { type = province_revoltrisk which = 378 value = -6 } #Brabant
		command = { type = province_revoltrisk which = 380 value = -6 } #Flandern
		command = { type = sleepevent which = 179146 } #MUS: Event to check loss of Brabant and Flandern
	}
}
#End of "The Brabant Revolution"
#-----------------------------------------------------------------------------------------------

#(1789) The Reactionary Reforms of 1789
event = {
	id = 3340
	random = no
	country = HAB
	name = "EVENTNAME3340" #The Reactionary Reforms of 1789
	desc = "EVENTHIST3340"
	#-#Joseph II was a controversial ruler. He began his reign with liberal reforms like the Edict of Toleration, which gave Lutherans, Calvinists, and Orthodox near equality with Roman Catholics. He also abolished serfdom and (temporarily) eased up on official censorship. However, Joseph was also an extreme centralist. In 1784 he informed the Hungarian government that it's official language, Latin, was really not effective for modern government and would be changed to German. To add to their horror, Joseph refused to submit to a coronation in Hungary lest he have to swear to uphold laws that he did not wish to, and then he had the sacred crown of the Kingdom moved to Vienna. In March 1787 Joseph swept away the constitution of the Austrian Netherlands and announced that from then on it would be ruled according to absolutist principles. Resistance simmered in the Austrian Netherlands until 1789 when it boiled over into open revolt. By that time there also were rumors of rebellion in Hungary and in Galicia, and for a time it appeared as if revolution might erupt in many parts of the monarchy.

	date = { day = 20 month = september year = 1789 }
	offset = 30
	deathdate = { day = 29 month = december year = 1789 }

	action_a = {
		name = "ACTIONNAME3340A" #React against Revolutionary Tendencies!
		command = { type = domestic which = ARISTOCRACY value = 3 }
		command = { type = domestic which = SERFDOM value = 3 }
		command = { type = domestic which = INNOVATIVE value = -3 }
		command = { type = stability value = -1 }
	}
	action_b = {
		name = "ACTIONNAME3340B" #Risk the Revolution!
		command = { type = domestic which = ARISTOCRACY value = -1 }
		command = { type = domestic which = SERFDOM value = -1 }
		command = { type = domestic which = INNOVATIVE value = 1 }
		command = { type = revoltrisk which = 156 value = 3 }
		command = { type = stability value = 1 }
	}
}

#(1792) The French Revolutionary Wars
event = {
	id = 12115 #triggered by FRA_12114 A
	random = no
	country = HAB
	name = "EVENTNAME12114" #The French Revolutionary Wars
	desc = "EVENTHIST12114"
	#-#With the creation of a Legislative Assembly to limit the monarchic power, several reasons pushed France towards war in 1792. Internally, the republican party of the Girondins were calling for a war to rid Europe of monarchy and despotism but also to rid France of any internal reactions. Externally, the nobility, the socalled emigrés, fleeing to Austria and Prussia requested that those powers intervene to restore the French monarchy. Louis XVI, King of the French, saw in a war failure the possibility to restore absolutism. But the dissolution of the Ancien Régime in France alarmed all the European royal courts fearing that the French Jacobinism would have spread in the whole continent and provoked deep destabilization inside their own absolutist government systems.

	action_a = {
		name = "ACTIONNAME12114A" #Rattle Our Sabres
		command = { type = casusbelli which = FRA value = 80 }
		command = { type = relation which = ENG value = 150 }
		command = { type = relation which = SAV value = 150 }
		command = { type = relation which = SPA value = 150 }
		command = { type = relation which = PRU value = 150 }
		command = { type = relation which = RUS value = 150 }
		command = { type = relation which = SWE value = 150 }
	}
	action_b = {
		name = "ACTIONNAME12114B" #Temporize
		command = { type = stability value = -1 }
	}
}

#(1797-1805) The Treaty of Campoformio
#by Bordic
event = {
	id = 179022 #triggered by FRA_170024 A
	random = no
	country = HAB
	name = "EVENTNAME179022" #The Peace of Campoformio
	desc = "EVENTHIST170024"
	#-#The treaty of Campoformio signed between France and Austria stated that Austria would enter in possession of the territories of the Republic of Venice, while the Lombardy, large part of the Emilia and Romagna and the territories of the Cispadane Republic were united in the Cisalpine Republic. France was also recognized her rights of ownership over the Low Countries and the Left Rhine Bank.

	action_a = {
		name = "ACTIONNAME179022A" #Venice for Belgium
		command = { type = relation which = FRA value = 50 }
		command = { type = addcore which = 370 } #Veneto
		command = { type = addcore which = 365 } #Dalmatia
		command = { type = addcore which = 368 } #Istria
		command = { type = addcore which = 362 } #Ragusa
		command = { type = removecore which = 377 } #Luxembourg
		command = { type = removecore which = 378 } #Brabant
		command = { type = removecore which = 380 } #Flandern
		command = { type = cedeprovince which = FRA value = 377 } #Luxembourg
		command = { type = cedeprovince which = FRA value = 378 } #Brabant
		command = { type = cedeprovince which = FRA value = 380 } #Flandern
		command = { type = cedeprovince which = FRA value = 345 } #Pfalz
		command = { type = cedeprovince which = FRA value = 344 } #Köln
		command = { type = cedeprovince which = FRA value = 374 } #Alsace
	}
}

#(1800-1805) Metternich
event = {
	id = 3208
	random = no
	country = HAB
	name = "EVENTNAME3208" #Metternich
	desc = "EVENTHIST3208"
	#-#Metternich began his state career in 1797 as representative of the Westphalian College of counts at the Congress of Rastatt, but in less than a decade, he had managed to become ambassador of Saxony and Preussen as well as the Austrian representative in France. His career primed in 1809 when he was assigned the post as minister of Austrian foreign affairs. Until 1813 Metternich will pursue a policy of acquiescence to French supremacy. A policy which ends with the creation of the Quadruple Alliance, the war against France, and the allied victory the very same year. The following 35 years have been called the Age of Metternich for during this time he was the chief arbiter of Europe. The Metternich system depended upon political and religious censorship, espionage, and the suppression of revolutionary and nationalist movements. This system holds part of the blame for the revolutions of 1848.

	date = { day = 1 month = january year = 1800 }
	offset = 10
	deathdate = { day = 29 month = december year = 1805 }

	action_a = {
		name = "ACTIONNAME3208A" #An Excellent Minister!
		command = { type = DIP which = 5 value = 240 }
		command = { type = ADM which = 3 value = 240 }
		command = { type = MIL which = 2 value = 240 }
		command = { type = stability value = 2 }
	}
}

#(1803) The Napoleonic Wars
event = {
	id = 12127 #triggered by FRA_12125 A
	random = no
	country = HAB
	name = "EVENTNAME12125" #The Napoleonic Wars
	desc = "EVENTHIST12128"
	#-#Napoléon argued that he wanted to build a federation of free peoples in a Europe united under a liberal government. But if this was indeed his goal, he intended to achieve it by taking power into his own hands. He supposedly intended to grant constitutions, introduce laws, abolished feudalism, create efficient governments and foster education, science, literature and the arts. The other powers of Europe looked on with alarm at an expansionist France, bringing its revolutionary ideals and fervour abroad in the wake of Napoléon's military might.

	action_a = {
		name = "WAR"
		command = { type = casusbelli which = FRA value = 192 }
		command = { type = relation which = ENG value = 150 }
		command = { type = relation which = SAV value = 150 }
		command = { type = relation which = PRU value = 150 }
		command = { type = relation which = SPA value = 150 }
		command = { type = relation which = RUS value = 150 }
		command = { type = relation which = NAP value = 150 }
		command = { type = relation which = POR value = 150 }
	}
	action_b = {
		name = "PEACE"
		command = { type = stability value = -1 }
	}
}

#(1806) Francesco IV Duke of Modena
#by Isaac Brock - modified by YodaMaster
event = {
	id = 17440 #triggered by MOD_17439
	trigger = {
		NOT = {
			vassal = { country = MOD country = HAB }
		}
	}
	random = no
	country = HAB
	name = "EVENTNAME17440" #Francesco IV Duke of Modena
	desc = "EVENTHIST17440"
	#-#In 1806 the male line of the Este family of Modena failed. The daughter of the last Este Duke of Modena was married to the son of Franz I of Austria, and became Duke of Modena. Modena was now firmly tied to Austrian interests.

	action_a = {
		name = "OK"
		command = { type = vassal which = MOD }
		command = { type = alliance which = MOD }
	}
}
#(1806) Kingdom of Italy vassalage (Francesco IV) by YodaMaster - Fantasy
event = {
	id = 179049 #triggered by ITA_193020
	trigger = {
		NOT = {
			vassal = { country = ITA country = HAB }
		}
	}
	random = no
	country = HAB
	name = "EVENTNAME179049" #Francesco IV King of Italy
	desc = "EVENTHIST179049"
	#-#In 1806 the male line of the Este family of Italy failed. The daughter of the last King of Italy was married to the son of Franz I of Austria, and became King of Italy. Kingdom of Italy was now firmly tied to Austrian interests.

	action_a = {
		name = "OK"
		command = { type = vassal which = ITA }
		command = { type = alliance which = ITA }
	}
}

#(1808-1810) Beethoven for HAB (original by Paradox) - Flavor
event = {
	id = 5190
	random = no
	trigger = { stability = -1 }
	country = HAB
	name = "EVENTNAME5190" #Ludwig van Beethoven
	desc = "EVENTHIST5190"
	#-#Ludwig van Beethoven was a universal genius widely regarded as the greatest composer who ever lived He dominated a period of musical history as no one else before or since. Rooted in the Classical traditions of Haydn and Mozart his art reaches out to encompass the new spirit of humanism expressed in the works of Goethe and Schiller his elder contemporaries in the world of literature and above all in the ideals of the French Revolution with its passionate concern for the freedom and dignity of the individual.

	date = { day = 1 month = january year = 1808 }
	offset = 360
	deathdate = { day = 29 month = december year = 1810 }

	action_a = {
		name = "OK"
		command = { type = vp value = 15 }
		command = { type = infra value = 25 }
		command = { type = relation which = -1 value = 10 }
		command = { type = relation which = -1 value = 10 }
	}
}

#(1809-1820) The Restoration of the French Monarchy
event = {
	id = 3209 #triggered by FRA_3787
	random = no
	country = HAB
	name = "EVENTNAME3209" #The Restoration of the French Monarchy
	desc = "EVENTHIST3209"
	#-#Many countries had view the French revolution with neutral mistrust or eager interest, but with the Reign of Terror and the Execution of King Louis most countries became abhorred. The New Republic and its ideas undermined the 'Old Order' that existed in most European countries. Those several alliances were set up to restore the Bourbons to the French Throne, crush the revolution and get Europe back to normal again. This succeeded in 1814 and again in 1815 when foreign armies brought Louis XVIII on the throne. Louis XVIII was the brother of the Executed King Louis of France and in early life was known as the Comte de Provence. He remained in Paris after the outbreak of the French Revolution in 1789 but escaped to Belgium two years later. After King Louis' execution in 1793 he proclaimed himself regent, and after the death of his brother's heir in 1795, he took the title Louis XVIII. He lived as an exile in various European countries until he became King after Napoléon's first abdication in 1814. On Napoléon's return to power in 1815, however, Louis again fled to Belgium

	action_a = {
		name = "ACTIONNAME3209A" #The Bourbons are reinstalled
		command = { type = vp value = 500 }
		command = { type = treasury value = 500 }
		command = { type = relation which = FRA value = 200 }
		command = { type = stability value = 3 }
	}
}

#(1810-1820) Austrian foothold in Italy
#by Bordic
event = {
	id = 179055 #triggered by ITA_193803 A
	random = no
	country = HAB
	name = "EVENTNAME179055" #Austrian foothold in Italy
	desc = "EVENTHIST193803"
	#-#In the congress of Vienna, the Prince of Metternich, Austrian minister of foreign affairs, managed to gain Lombardy and Veneto from the spoils of the Napoleonic Kingdom of Italy, with the creation of the Kingdom of Lombardy-Veneto, a Vassal-State under the direct rule of the Austrian Emperor by means of a Viceroy.

	action_a = {
		name = "ACTIONNAME179055A" #We now control Northern Italy
		command = { type = inherit which = ITA }
	}
}

#(1810-1820) The Restoration in the Holy Roman Empire
#by Bordic
event = {
	id = 179056
	trigger = {
		event = 170128 #FRA: The Restoration of the European Monarchies
		OR = {
			owned = { province = 305 data = -1 } #Mecklenburg
			owned = { province = 332 data = -1 } #Anhalt
			owned = { province = 333 data = -1 } #Hessen
			owned = { province = 335 data = -1 } #Oldenburg
			owned = { province = 346 data = -1 } #Mainz
			owned = { province = 345 data = -1 } #Pfalz
			owned = { province = 347 data = -1 } #Würzburg
			owned = { province = 348 data = -1 } #Ansbach
			owned = { province = 349 data = -1 } #Bayern
			owned = { province = 388 data = -1 } #Bern
			owned = { province = 1612 data = -1 } #Schwyz
			owned = { province = 373 data = -1 } #Baden
			owned = { province = 372 data = -1 } #Württemberg
		}
	}
	random = no
	country = HAB
	name = "EVENTNAME179056" #The Restoration in the Holy Roman Empire
	desc = "EVENTHIST170128"
	#-#The Congress of Vienna brought Europe back to its boundaries before the French Revolution. Only the former Republics of Genoa and Venice weren't granted the restoration of their pre-revolutionary governments. Since any sort of socalled Republic was now the most hated by all the monarchies of the restoration, they were respectively given to Savoy as to form a medium buffer state against France and to Austria as to strengthen her position in Southern Europe.

	date = { day = 1 month = january year = 1810 }
	offset = 10
	deathdate = { year = 1820 }

	action_a = {
		name = "ACTIONNAME179056A" #Germany is only a geographical issue
		command = { type = independence which = MEC } #Mecklenburg
		command = { type = independence which = SAC } #Sachsen
		command = { type = independence which = OLD } #Oldenburg
		command = { type = independence which = HES } #Hessen
		command = { type = independence which = BAD } #Baden
		command = { type = independence which = WUR } #Wirtemberg
		command = { type = independence which = BAY } #Bayern
		command = { type = independence which = HEL } #Switzerland
		command = { type = trigger which = 179057 } #HAB: The German Confederation
	}
}
#(1810-1820) The German Confederation
#by Bordic
event = {
	id = 179057 #triggered by HAB_179056
	random = no
	country = HAB
	name = "EVENTNAME179057" #The German Confederation
	desc = "EVENTHIST179057"
	#-#Dissolved in 1806 by Napoléon Ier who couldn't bear the presence of another Empire in Europe and changed into the Confederation of the Rhine which had to swear perpetual alliance to France and to provide the Napoleonic Armies with troops, arms and money, the former millenial Holy Roman Empire was no more restored by the European powers taking part in the congress of Vienna but it changed its organization of states forming a Deutscher Bund (the German Confederation) administered by a Diet held in Frankfurt and presided by the Emperor of Austria.

	action_a = {
		name = "ACTIONNAME179057A" #Germany is under our control again
		command = { type = cedeprovince which = HES value = 346 } #Mainz
		command = { type = cedeprovince which = BAY value = 345 } #Pfalz
		command = { type = cedeprovince which = BAY value = 347 } #Würzburg
		command = { type = cedeprovince which = BAY value = 348 } #Ansbach
		command = { type = cedeprovince which = BAY value = 349 } #Bayern
		command = { type = cedeprovince which = HEL value = 388 } #Bern
		command = { type = cedeprovince which = HEL value = 1612 } #Schwyz
	}
}

#(1810-1820) The Restoration in Italy
#by Bordic
event = {
	id = 179058
	trigger = {
		event = 170030 #FRA: The Restoration of the Italian Monarchies
		OR = {
			owned = { province = 391 data = -1 } #Romagna
			owned = { province = 392 data = -1 } #Marche
			owned = { province = 393 data = -1 } #Napoli
			owned = { province = 394 data = -1 } #Apulia
			owned = { province = 395 data = -1 } #Messina
			owned = { province = 396 data = -1 } #Sicily
			owned = { province = 405 data = -1 } #Savoie
			owned = { province = 404 data = -1 } #Piemonte
			owned = { province = 403 data = -1 } #Liguria
			owned = { province = 402 data = -1 } #Emilia
			owned = { province = 401 data = -1 } #Firenze
			owned = { province = 400 data = -1 } #Siena
			owned = { province = 397 data = -1 } #Sardinia
			owned = { province = 399 data = -1 } #Roma
		}
	}
	random = no
	country = HAB
	name = "EVENTNAME179058" #The Restoration in Italy
	desc = "EVENTHIST170030"
	#-#In the Congress of Vienna, all the Italian monarchs chased away by the Napoleonic troops were restored in their Kingdoms: the Kingdom of Sardinia which obtained Genoa, the Grand-Duchy of Tuscany, the Duchy of Parma, the Duchy of Modena and Reggio, the Papal States, the Kingdom of Two Sicilies. Everything seemed to be made in order to create a balance of powers in Italy between those minor states under the Austrian rule. The Napoleonic design of a united Italy which was unsuccessfully pursued by Murat with his proclamation at Rimini, was still to be postponed...

	date = { day = 1 month = january year = 1810 }
	offset = 10
	deathdate = { year = 1820 }

	action_a = {
		name = "ACTIONNAME179058A" #Italy is only a geographical issue
		command = { type = DIP which = 2 value = 60 }
		command = { type = ADM which = 2 value = 60 }
		command = { type = relation which = FRA value = 300 }
		command = { type = independence which = MOD } #Modena
		command = { type = independence which = PAR } #Parma
		command = { type = independence which = TOS } #Tuscany
		command = { type = independence which = PAP } #Papal States
		command = { type = independence which = SAV } #Savoy
		command = { type = independence which = SIC } #Sicily
		command = { type = trigger which = 179054 } #HAB: The new Italian balance of powers
	}
}
#(1810-1820) The new Italian balance of powers
#by Bordic
event = {
	id = 179054 #triggered by HAB_179058
	random = no
	country = HAB
	name = "EVENTNAME179054" #The new Italian balance of powers
	desc = "EVENTHIST179054"
	#-#After the congress of Vienna, Austria became the new master of Italy by means of Metternich's skillful diplomatic moves.

	action_a = {
		name = "ACTIONNAME179054A" #All Italy is under our control
		command = { type = cedeprovince which = PAP value = 392 } #Marche
		command = { type = cedeprovince which = SAV value = 403 } #Liguria
		command = { type = cedeprovince which = SAV value = 405 } #Savoie
		command = { type = cedeprovince which = TOS value = 400 } #Siena
		command = { type = cedeprovince which = SAV value = 397 } #Sardinia
		command = { type = cedeprovince which = SIC value = 393 } #Napoli
		command = { type = cedeprovince which = SIC value = 394 } #Apulia
		command = { type = cedeprovince which = SIC value = 395 } #Messina
		command = { type = cedeprovince which = SIC value = 396 } #Sicily
	}
}

#(1815-1820) The last Napoleonic battle in Italy
#by Bordic
event = {
	id = 179059 #triggered by NAP_239031 A
	random = no
	country = HAB
	name = "EVENTNAME179059" #The last Napoleonic battle in Italy
	desc = "EVENTHIST179059"
	#-#As soon as Napoléon returned to France in his lasts attempts to preserve his Empire in the socalled Hundred Days, Joachim Murat, also called King Gioacchino Napoleone in Naples, decided this time to give his full support to his imperial brother-in-law and started gathering troops. In his proclamation of Rimini, the King of Naples meant to raise voluntary troops in the last attempt to defend his Kingdom and, in the same time, to expand in other Italian territories as to achieve a stronger position in a future peace treaty with the 7th Coalition. But his calls to the national pride of a population, which had never considered herself as one Italian population until then, remained unheard. After he failed to cross the Po River, King Gioacchino reorganized his troops in the Papal Marches and decided to wait for an Austrian army which was descending Italy to restore the Bourbons in Naples.

	action_a = {
		name = "ACTIONNAME179059A" #Let's beat that usurpator
		command = { type = casusbelli which = NAP value = 60 }
		command = { type = relation which = NAP value = -200 }
	}
}
#(1815-1820) The Restoration of the Bourbons
#by Bordic
event = {
	id = 179060 #triggered by NAP_239031 B
	random = no
	country = HAB
	name = "EVENTNAME179060" #The Restoration of the Bourbons
	desc = "EVENTHIST179060"
	#-#As soon as Napoléon returned to France in his lasts attempts to preserve his Empire in the socalled Hundred Days, Joachim Murat, also called King Gioacchino Napoleone in Naples, decided this time to give his full support to his imperial brother-in-law and started gathering troops. In his proclamation of Rimini, the King of Naples meant to raise voluntary troops in the last attempt to defend his Kingdom and, in the same time, to expand in other Italian territories as to achieve a stronger position in a future peace treaty with the 7th Coalition. But his calls to the national pride of a population, which had never considered herself as one Italian population until then, remained unheard. After he failed to cross the Po River and fearing to be defeated by an Austrian army which was descending Italy to restore the Bourbons in Naples, King Gioacchino decided to abdicate and leave Italy to her destiny.

	action_a = {
		name = "ACTIONNAME179060A" #Murat is chased away!
		command = { type = inherit which = NAP }
	}
}

#(1815-1820) The Restoration in the Two Sicilies
#by Bordic
event = {
	id = 179061
	random = no
	trigger = {
		event = 239031 #NAP: The Proclamation of Rimini
		event = 179058 #HAB: The Restoration in Italy
		OR = {
			owned = { province = 393 data = -1 } #Napoli
			owned = { province = 394 data = -1 } #Apulia
			owned = { province = 395 data = -1 } #Messina
			owned = { province = 396 data = -1 } #Sicily
			vassal = { country = HAB country = NAP }
			event = 179060 #HAB: The Restoration of the Bourbons
		}
		NOT = { exists = SIC }
	}
	country = HAB
	name = "EVENTNAME179061" #The Restoration in the Two Sicilies
	desc = "EVENTHIST179061"
	#-#In the Congress of Vienna, the Kingdoms of Naples (which Murat believed to maintain) and Sicily, now united in the socalled Kingdom of Two Sicilies, were given back to the former King Ferdinando IV of Bourbon, who was forced to exile in Sicily when the French troops had invaded his realm. Ferdinando changed his numbering from IV to I as to represent that he was the first monarch to rule the United Kingdom of Two Sicilies.

	date = { day = 3 month = may year = 1815 } #battle of Tolentino
	offset = 90
	deathdate = { year = 1820 }

	action_a = {
		name = "ACTIONNAME179061A" #Restore the Bourbon King
		command = { type = independence which = NAP } #in case NAP doesn't exist or hasn't all its cores
		command = { type = cedeprovince which = NAP value = 393 } #Napoli
		command = { type = cedeprovince which = NAP value = 394 } #Apulia
		command = { type = independence which = SIC } #in case SIC didn't exist when HAB_179053 fired
	}
}

#(1818-1820) Schubert for HAB - Flavor
#text from Grove Concide Dictionary of Music
event = {
	id = 179033
	trigger = { stability = 1 }
	random = no
	country = HAB
	name = "EVENTNAME179033" #Franz Schubert
	desc = "EVENTHIST179033"
	#-#Schubert showed an extraordinary childhood aptitude for music. By 1814 he had produced piano pieces, string quartets, a symphony and an opera. His huge output of 1814-15 includes numerous songs, besides two more symphonies, three masses and four stage works. From this time he enjoyed the companionship of several friends. Frequently gathering for evenings of Schubert's music, this group represented the new phenomenon of an educated, musically aware middle class. In 1818 more songs poured out, including 'Der Wanderer', and instrumental pieces: piano sonatas and the 5 and 6 Symphonies began to show increased harmonic subtlety. Schubert's fame was long limited to that of a songwriter, since the bulk of his large output was not even published until the late 19th century. Yet he produced major instrumental masterpieces. These are marked by an intense lyricism, a spontaneous chromatic modulation that is surprising yet clearly purposeful, and an imagination that creates its own formal structures.

	date = { day = 1 month = june year = 1818 }
	offset = 360
	deathdate = { year = 1820 }

	action_a = {
		name = "GREAT"
		command = { type = vp value = 5 }
		command = { type = infra value = 15 }
	}
}

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

#First free id: 179066, 179067, 179071 then 179157
