#Austria inherits Steiermark#
event = {
	id = 261000
	trigger = {
		exists = HAB
		exists = TYR
	}
	random = NO
	country = SEI
	name = "EVENTNAME261000" #Death of Duke Albert
	desc = "EVENTHIST261000"
	#-#In December 1463 Duke Albert of Steiermark died childless. Despite their former conflicts he let his brother, emperor Friedrich V, who was thus able to unite Steiermark and Krain with Austria, inherit all his possessions.

	date = { day = 1 month = december year = 1463 }
	offset = 10
	deathdate = { day = 1 month = january year = 1464 }

	action_a = {
		name = "ACTIONNAME261000A" #The duke's brother is heir (End Game)
		command = { type = independence which = BAY }
		command = { type = independence which = WUR }
		command = { type = independence which = MLO }
		command = { type = independence which = MAN }
		command = { type = independence which = VEN } #Weird things can happen :-)
		command = { type = secedeprovince which = VEN value = 368 } #Istria
		command = { type = secedeprovince which = VEN value = 365 } #Dalmatia
		command = { type = secedeprovince which = HUN value = 352 } #Odenburg
		command = { type = secedeprovince which = HUN value = 326 } #Presburg
		command = { type = trigger which = 179002 } #HAB: Austria inherits Steiermark
	}
	action_b = {
		name = "ACTIONNAME261000B" #Let Sigmund of Tyrol have it instead (End Game)
		command = { type = trigger which = 322014 } #TYR: Steiermark and Krain are willed to Tyrol
	}
	action_c = {
		name = "ACTIONNAME261000C" #Friedrich is our enemy! Steiermark remains independent
		command = { type = stability value = -3 }
		command = { type = revolt which = 367 } #Krain
		command = { type = revolt which = 369 } #Steiermark
		command = { type = relation which = HAB value = -200 }
		command = { type = relation which = TYR value = -100 }
		#command = { type = relation which = SLZ value = -100 } #Salzburg
	}
}

#Austria inherits Steiermark (Tyrol doesn't exist)
event = {
	id = 261001
	trigger = {
		exists = HAB
		NOT = { exists = TYR }
	}
	random = NO
	country = SEI
	name = "EVENTNAME261001" #Death of Duke Albert
	desc = "EVENTHIST261001"
	#-#In december 1463 Duke Albert of Steiermark died childlessly. Despite their former conflicts he let his brother, emperor Friedrich V, who was thus able to unite Steiermark and Krain with Austria, inherit all his possessions.

	date = { day = 1 month = december year = 1463 }
	offset = 10
	deathdate = { day = 1 month = january year = 1464 }

	action_a = {
		name = "ACTIONNAME261001A" #The duke's brother is heir (End Game)
		#command = { type = independence which = SLZ } #Salzburg
		command = { type = independence which = TYR }
		command = { type = independence which = BAY }
		command = { type = independence which = WUR }
		command = { type = independence which = MLO }
		command = { type = independence which = MAN }
		command = { type = independence which = VEN } #Weird things can happen :-)
		command = { type = secedeprovince which = VEN value = 368 } #Istria
		command = { type = secedeprovince which = VEN value = 365 } #Dalmatia
		command = { type = secedeprovince which = HUN value = 352 } #Odenburg
		command = { type = secedeprovince which = HUN value = 326 } #Presburg
		command = { type = trigger which = 179002 } #HAB: Austria inherits Steiermark
	}
	action_b = {
		name = "ACTIONNAME261001B" #Friedrich is our enemy! Steiermark remains independent
		command = { type = stability value = -3 }
		command = { type = revolt which = 367 } #Krain
		command = { type = revolt which = 369 } #Steiermark
		command = { type = relation which = HAB value = -200 }
		#command = { type = relation which = SLZ value = -100 } #Salzburg
	}
}

#Steiermark becomes Austria#
event = {
	id = 261002
	trigger = {
		NOT = { exists = HAB }
		countrysize = 2
	}
	random = no
	country = SEI
	name = "EVENTNAME261002" #Steiermark becomes Austria
	desc = "EVENTHIST261002"
	#-#Since the main branch of the Austrian Habsburgs has ceased to exist, it is now upon the Dukes of Steiermark to lead the dynasty.

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

	action_a = {
		name = "ACTIONNAME261002A" #Lead the House of Habsburg
		command = { type = country which = HAB }
		command = { type = addcore which = 351 } #Nieder Oesterreich
		command = { type = addcore which = 327 } #Marchfeld
		command = { type = addcore which = 1613 } #Ober Oesterreich
		command = { type = addcore which = 371 } #Tyrol
		command = { type = addcore which = 1593 } #Trento
		command = { type = addcore which = 1930 } #Breisgau
                command = { type = addcore which = 1932 } #Kaerten
	}
	action_b = {
		name = "ACTIONNAME261002B" #Remain Dukes of Steiermark
		command = { type = stability value = 1 }
	}
}

#General Steiermarkian Events#
event = {
	id = 261004
	trigger = {
		owned = { province = 369 data = -1 }
	}
	random = NO
	country = SEI
	name = "EVENTNAME261004" #The dukes of Cilli
	desc = "EVENTHIST261004"
	#-#In 1396 count Hermann II of Cilli was in command of Steiermarkian troops that took part in the Battle of Nicopolis. The Ottoman army won the battle decisively, but the count saved the life of the Hungarian king Sigismund of Luxemburg. A strong bond between the two men, which was further strengthened when Sigismund married Hermann's daughter Barbara, was created. In 1436 the Emperor Sigismund elevated the counts of Cilli to the rank of dukes. This triggered a feud with the Habsburg duke Frederick V, who was their formal liege lord.

	date = { day = 2 month = march year = 1436 }

	action_a = {
		name = "ACTIONNAME261004A" #This is unacceptable
		command = { type = relation which = HUN value = -50 }
		command = { type = relation which = BOH value = -50 }
		command = { type = province_revoltrisk which = 369 value = 5 } #Steiermark
		command = { type = revolt which = 369 } #Steiermark
	}
}

event = {
	id = 261005
	trigger = {
		owned = { province = 369 data = -1 }
	}
	random = NO
	country = SEI
	name = "EVENTNAME261005" #End of the feud
	desc = "EVENTHIST261005"
	#-#The feud between Duke Frederick V of Steiermark and Duke Ulrich of Cilli lasted until 1443, and the fighting in which local nobles, their entourages and foreign mercenaries took part spread over much of Steiermark and Carniola. Many castles and towns were besieged and destroyed. The troops of the Counts of Cilli even unsuccessfully laid siege to the Carniolan capital Ljubljana. The conflict was solved in 1443 with the signing of several documents; one of them foresaw a mutual inheritance in case one of the families became extinct.

	date = { day = 11 month = april year = 1443 }

	action_a = {
		name = "ACTIONNAME261005A" #At last
		command = { type = provincetax which = 369 value = -2 } #Steiermark
		command = { type = province_revoltrisk which = 369 value = -5 } #Steiermark
	}
}

event = {
	id = 261006
	trigger = {
		owned = { province = 369 data = -1 }
	}
	random = NO
	country = SEI
	name = "EVENTNAME261006" #Death of Duke Ulrich of Cilli
	desc = "EVENTHIST261006"
	#-#When last Count of Cilli, Ulrich, was killed in Belgrade (1456), Frederick had to fight Ulrich's widow, Hungarian king Ladislas Postumus, the count of Görz and the Croatian counts of Frankopani for his promised inheritance of Cilli. Unfortunately the region has become volatile once again.

	date = { day = 24 month = july year = 1456 }

	action_a = {
		name = "ACTIONNAME261006A" #Damn!
		command = { type = relation which = HUN value = -50 }
		command = { type = relation which = BOH value = -50 }
		command = { type = relation which = CRO value = -50 }
		command = { type = revoltrisk which = 369 value = 3 }
	}


}
event = {
	id = 261007
	trigger = {
		owned = { province = 369 data = -1 }
	}
	random = NO
	country = SEI
	name = "EVENTNAME261007" #The stubborn widow
	desc = "EVENTHIST261007"
	#-#After Ladislas died in 1457 and Frederick managed to strike a deal with the widow, and the conflict was practically settled. The war of succession ended in 1460 with Frederick gaining all the former possessions of the Counts of Cilli.

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

	action_a = {
		name = "ACTIONNAME261007A" #The county is now ours
		command = { type = provincetax which = 369 value = 3 } #Steiermark
		command = { type = revoltrisk which = 369 value = -3 }
	}

}

#Baumkircher
event = {
	id = 261008
	random = NO
	country = SEI
	name = "EVENTNAME261008" #Baumkircher's revolt
	desc = "EVENTHIST261008"
	#-#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 Steiermarkian nobility against Frederic III. He took and plundered several Steiermarkian towns and soundly beat the emperor's army on the bettelfield. In the end, Frederic III was forced to make peace with him, pardoning the rebells and paying 14000 guldens.

	date = { month = february year = 1469 }

	action_a = {
		name = "ACTIONNAME261008A" #Fight the rebels
		command = { type = revolt which = -2 }
		command = { type = revoltrisk which = 26 value = 3 }
	}
	action_b = {
		name = "ACTIONNAME261008B" #Buy peace
		command = { type = cash value = -40 }
		command = { type = wakeleader which = 0111301 } #Baumkircher (PRM)
		command = { type = domestic which = serfdom value = 1 }
		command = { type = domestic which = aristocracy value = 1 }
	}
}

event = {
	id = 261009
	trigger = { event = 261008 }
	random = NO
	country = SEI
	name = "EVENTNAME261009" #Death of Baumkircher
	desc = "EVENTHIST261009"
	#-#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 = "ACTIONNAME261009A" #Execute Baumkircher
		command = { type = DIP which = -2 value = 12 }
	}
}

#Regency of Friedrich IV, Count of Tyrol#
event = {
	id = 261010
	trigger = { NOT = { war = { country = SEI country = TYR } } }
	random = no
	country = SEI
	name = "EVENTNAME261010" #Death of Ernest the Iron
	desc = "EVENTHIST261010"
	#-#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. Therefore when Archduke Ernst the Iron of Steiermark prematurely died in his best manhood in 1424 at the age of 47, and his sons Friedrich and Albrecht were only 9 and 5 years old, their uncle Friedrich IV, Count of Tyrol, became tutor of the two brothers and administered Steiermark, Carinthia and Carniola not only for them as their tutor, but personally as regent. The large noble dynasties of Steiermark, especially the Cilli, who quickly rose in power with the close personal friendship of Count Herman II and Holy Roman Emperor Sigismund, used the rather weak central authority during the regency, to enhance their power and autonomy.

	date = { day = 9 month = june year = 1424 }

	action_a = {
		name = "ACTIONNAME261010A" #Let Friedrich IV be our regent
		command = { type = relation which = TYR value = 100 }
		command = { type = domestic which = centralization value = -1 }
		command = { type = domestic which = aristocracy value = 1 }
		command = { type = trigger which = 322015 } #TYR: Regency of Friedrich IV in Inner Austria
	}
	action_b = {
		name = "ACTIONNAME261010B" #Refuse Friedrich and have Hermann II of Cilli instead
		command = { type = relation which = TYR value = -200 }
		command = { type = relation which = HAB value = -200 }
		command = { type = relation which = HUN value = 200 } #Friend of emperor Sigismund, king of HUN and BOH
		command = { type = relation which = BOH value = 200 }
		command = { type = relation which = ROM value = 200 }
		command = { type = wakemonarch which = 0111017 } #Herman II Celjski
		command = { type = sleepmonarch which = 0111018 } #Friedrich IV
		command = { type = domestic which = aristocracy value = 2 }
		command = { type = stability value = -1 }
	}
}

event = {
	id = 261011
	trigger = { war = { country = SEI country = TYR } }
	random = no
	country = SEI
	name = "EVENTNAME261011" #Regency of Herman II of Cilli (ahistorical)
	desc = "EVENTHIST261011"
	#-#Archduke Ernest the Iron was in his best manhood when he passed away in 1424 at the age of 47. His body was interred in the Abbey Reun near Graz. His successors were his three minor sons, Frederic V (*1415), Albert VI (*1418), and Ernest II (*1420). Since Steiermark was at war with Tyrol, whose ruler Friedrich IV would otherwise, according to Habsburg tradition, be chosen as the guardian of Ernest's sons, the Estates decided to trust the regency to Hermann II of Cilli, member of a noble family of Steiermarkian magnates that was quickly rising in power due to Herman's close personal Friendship with the Holy Roman Emperor Sigismund, whose life he saved in the battle against the Turks at Nicopolis. Thus Herman was made regent of Croatia in 1406, and in 1436 the family was raised to the rank of the princes of state.

	date = { day = 9 month = june year = 1424 }

	action_a = {
		name = "Ok"
		command = { type = relation which = HUN value = 200 } #Friend of emperor Sigismund, king of HUN and BOH
		command = { type = relation which = BOH value = 200 }
		command = { type = relation which = ROM value = 200 }
		command = { type = wakemonarch which = 0111017 } #Herman II Celjski
		command = { type = sleepmonarch which = 0111018 } #Friedrich IV
	}
}

event = {
	id = 261012 #Triggered by TYR_322015: Regency of Friedrich IV in Inner Austria
	random = no
	country = SEI
	name = "EVENTNAME261012" #Regency of Friedrich IV, Count of Tyrol
	desc = "EVENTHIST261012"
	#-#Friedrich IV's regency, during which Steiermark was governed from Tyrol by a regent whose main interest was to get as much profit as possible for himself out of his office, led to a notable weakening of central power and further strengthened the local noble dynasties and landowners, which led to increased taxes they demanded from their peasants, making the decline of their situation even more rapid.

	action_a = {
		name = "Ok"
		command = { type = stability value = 4 }
	}
}

event = {
	id = 261013
	trigger = {

		exists = TYR
		monarch = 0111018 #Friedrich IV
		NOT = { vassal = { country = PRM country = TYR } }
	}
	random = no
	country = SEI
	name = "EVENTNAME261013" #Change of regent
	desc = "EVENTHIST261013"
	#-#Unsatisfied with Friedrich IV's handling of matters in Steiermark, the estates of Inner Austria decided to entrust the regency into the hands of the Counts of Cilli.

	date = { year = 1425 }
	offset = 30
	deathdate = { day = 23 month = june year = 1439 }

	action_a = {
		name = "ACTIONNAME261013A" #We prefer Herman of Cilli
		command = { type = relation which = TYR value = -200 }
		command = { type = relation which = HAB value = -200 }
		command = { type = relation which = HUN value = 200 } #Friend of emperor Sigismund, king of HUN and BOH
		command = { type = relation which = BOH value = 200 }
		command = { type = relation which = ROM value = 200 }
		command = { type = wakemonarch which = 0111017 } #Herman II Celjski
		command = { type = stability value = 3 }
	}
}

#Frederich V ascends the throne
event = {
	id = 261014 #Triggered by TYR 322016
	random = no
	country = SEI
	name = "EVENTNAME261014" #Friedrich V comes of age
	desc = "EVENTHIST261014"
	#-#Friedrich IV, regent for the minors Friedrich V and Albrecht VI, only reluctantly accepted to turn over Steiermark to his nephews. Usually, regencies in Habsburg lands lasted until the heir had reached adulthood, which was by Habsburg law at the age of 16. However when Friedrich V came of age in 1431, Friedrich IV managed to extend his term until Albrecht VI's 16th birthday in 1435, under the pretext that a possible partition between the two brothers could only be negotiated fairly when both had reached adulthood. Even in 1435, Friedrich IV refused to give up rule of Steiermark. Only because of the arbitration of Albrecht V of Austria did Friedrich IV finally agree to end his regency on March 25th 1436.

	action_a = {
		name = "ACTIONNAME261014A"#Friedrich V becomes Duke of Inner Austria
		command = { type = breakvassal which = TYR }
		command = { type = relation which = TYR value = -50 }
		command = { type = stability value = 3 }
		command = { type = diplomats value = 3 }
		command = { type = relation which = HAB value = 30 }
	}
}

event = {
	id = 261015
	trigger = { monarch = 0111017 } #Herman II Celjski
	random = no
	country = SEI
	name = "EVENTNAME261014" #Friedrich V comes of age
	desc = "EVENTHIST261015"
	#-#Friedrich V, later emperor Friedrich III, became of age in 1431, on his 16th birthday, and took up the rulership of Inner Austria, thus terminating the regency of Cilli.

	date = { day = 20 month = september year = 1431 }
	offset = 30
	deathdate = { year = 1435 }

	action_a = {
		name = "ACTIONNAME261014A" #Friedrich V becomes Duke of Inner Austria
		command = { type = relation which = HAB value = 50 }
		command = { type = relation which = TYR value = 50 }
		command = { type = relation which = BOH value = -100 }
		command = { type = relation which = ROM value = -100 }
		command = { type = relation which = HUN value = -100 }
		command = { type = wakemonarch which = 0111019 } #Friedrich V (early instance)
		command = { type = sleepmonarch which = 0111001 } #Friedrich V
	}
}

event = {
	id = 261016
	trigger = { monarch = 0111018 } #Friedrich IV
	random = no
	country = SEI
	name = "EVENTNAME261014" #Friedrich V comes of age
	desc = "EVENTHIST261014"
	#-#Friedrich IV, regent for the minors Friedrich V and Albrecht VI, only reluctantly accepted to turn over Steiermark to his nephews. Usually, regencies in Habsburg lands lasted until the heir had reached adulthood, which was by Habsburg law at the age of 16. However when Friedrich V came of age in 1431, Friedrich IV managed to extend his term until Albrecht VI's 16th birthday in 1435, under the pretext that a possible partition between the two brothers could only be negotiated fairly when both had reached adulthood. Even in 1435, Friedrich IV refused to give up rule of Steiermark. Only because of the arbitration of Albrecht V of Austria did Friedrich IV finally agree to end his regency on March 25th 1436.

	date = { day = 24 month = march year = 1436 }

	action_a = {
		name = "ACTIONNAME261014A" #Friedrich V becomes Duke of Inner Austria
		command = { type = breakvassal which = TYR }
		command = { type = relation which = TYR value = -50 }
		command = { type = stability value = 3 }
		command = { type = diplomats value = 3 }
		command = { type = relation which = HAB value = 30 }
	}
}

event = {
	id = 261017
	trigger = {
		OR = {
			monarch = 0111001 #Friedrich V (early instance)
			monarch = 0111001 #Friedrich V
		}
	}
	random = no
	country = SEI
	name = "EVENTNAME261017" #Treaty with Albrecht VI
	desc = "EVENTHIST261017"
	#-#Soon after taking over Steiermark, Friedrich V had to deal with the demands of his younger brother, Albrecht VI, for a part of their father's estate. Their first treaty was concluded on May 13th 1436 in Vienna. By the terms of the treaty, Friedrich remained governor of all of Steiermark, but had to provide Albrecht with an income sufficient to fund a princely lifestyle. This soon wasn't enough for the extravagant, ambitious and warlike Albrecht.

	date = { day = 12 month = may year = 1436 }
	offset = 30
	deathdate = { month = may year = 1439 }

	action_a = {
		name = "ACTIONNAME261017A" #Accept the treaty
		command = { type = provincetax which = 369 value = -1 } #Steiermark
		command = { type = revoltrisk which = 36 value = 3 }
	}
	action_b = {
		name = "ACTIONNAME261017B" #Don't make any concessions to Albrecht
		command = { type = revoltrisk which = 312 value = 6 }
		command = { type = revolt which = -2 }
		command = { type = setflag which = no_concessions }
	}
}
