#Regency of Emperor Friedrich V.#
event = {
	id = 322001
	trigger = {
		NOT = { war = { country = HAB country = TYR } }
	}
	random = no
	country = TYR
	name = "The regency of Friedrich of Steiermark"
	desc = "When Duke Friedrich IV. of Tyrol died, his son Sigmund was still a child. His uncle, Emperor Friedrich V., ruled the duchy for him until he was an adult."

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

	action_a = {
		name = "Accept this"
		command = { type = relation which = SEI value = 100 } #All Habsburg "countries"
		command = { type = relation which = HAB value = 100 }
		command = { type = relation which = HUN value = 100 }
		command = { type = relation which = BOH value = 100 }
		command = { type = trigger which = 179050 } #HAB: The regency of Friedrich in Tyrol
	}
	action_b = {
		name = "Refuse Friedrich and let a local noble reign"
		command = { type = relation which = SEI value = -200 } #All Habsburg "countries"
		command = { type = relation which = HAB value = -200 }
		command = { type = relation which = HUN value = -200 }
		command = { type = relation which = BOH value = -200 }
		command = { type = stability value = -3 }
		command = { type = sleepevent which = 322002 } #TYR: Sigmund ascends the throne
	}
}

#Sigmund ascends the throne
event = {
	id = 322002
	random = no
	country = TYR
	name = "Sigmund ascends the throne"
	desc = "In 1446 Sigmund was finally adult and took over Tyrol from his uncle Friedrich."

	date = { day = 1 month = january year = 1446 }

	action_a = {
		name = "Sigmund becomes Duke"
		command = { type = breakvassal which = HAB }
		command = { type = relation which = HAB value = -50 }
	}
}

#Silver mining in Schwaz#
event = {
	id = 322003
	random = no
	country = TYR
	name = "The silver mines of Schwaz"
	desc = "In 1449, Duke Sigmund issued the Schwazer Bergordnung, rules for the rich silver mines of Tyrol that were exemplary for silver mines in the whole world. The profits from silver mining grew massively in the following years, bringing prosperity to the whole area around Schwaz, and the city reached a population of 20000, which made it the biggest mining town in Europe."

	date = { day = 1 month = january year = 1449 }
	offset = 100
	deathdate = { day = 29 month = december year = 1449 }

	action_a = {
		name = "Great"
		command = { type = mine which = 371 value = 3 } #Tyrol
		command = { type = population which = 371 value = 3000 } #Tyrol
		command = { type = inflation value = 5 }
		command = { type = infra value = 100 }
	}
}

#Conflict with cardinal Nikolaus Cosanus#
event = {
	id = 322004
	random = no
	country = TYR
	name = "Conflict with Cardinal Nikolaus Cosanus"
	desc = "Cardinal Nikolaus Cosanus of Brixen tried to overthrow the Habsburg duke's authority, and to establish clerical sovereignity in Tyrol. In the inevitable conflict Duke Sigmund prevailed because he was supported by the nobility and populace of Tyrol."

	date = { day = 1 month = january year = 1460 }
	offset = 600
	deathdate = { day = 1 month = january year = 1462 }

	action_a = {
		name = "Fight this preposterous cleric"
		command = { type = relation which = PAP value = -50 }
		#command = { type = relation which = MAG value = -30 } #Magdeburg
		#command = { type = relation which = SLZ value = -30 } #Salzburg
		command = { type = relation which = STR value = -30 }
		command = { type = relation which = MAI value = -30 }
		command = { type = relation which = WUR value = -30 }
		command = { type = relation which = KOL value = -30 }
		command = { type = relation which = MUN value = -30 }
		command = { type = relation which = BRE value = -30 }
		command = { type = revoltrisk which = 24 value = 2 }
		command = { type = stability value = -1 }
	}
	action_b = {
		name = "Try to achieve an agreement with Cosanus"
		command = { type = relation which = PAP value = 50 }
		#command = { type = relation which = MAG value = 30 } #Magdeburg
		#command = { type = relation which = SLZ value = 30 } #Salzburg
		command = { type = relation which = STR value = 30 }
		command = { type = relation which = MAI value = 30 }
		command = { type = relation which = WUR value = 30 }
		command = { type = relation which = KOL value = 30 }
		command = { type = relation which = MUN value = 30 }
		command = { type = relation which = BRE value = 30 }
		command = { type = vp value = -30 }
		command = { type = provincetax which = 371 value = -2 } #Cosanus gets a part of the income #Tyrol
	}
}

#Construction of Sigmundskron#
event = {
	id = 322007
	random = no
	country = TYR
	name = "Construction of castle Sigmundskron"
	desc = "Duke Sigmund expanded Castle Formigar near Bozen in 1470, making it the largest fortification in Tyrol, and called it Sigmundskron. Using the advantages of the mountainous terrain, this mighty castle made an invasion from the south difficult for a long time."

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

	action_a = {
		name = "Build Sigmundskron"
		command = { type = fortress which = 371 value = 1 } #Tyrol
		command = { type = domestic which = offensive value = -1 }
		command = { type = treasury value = -100 }
	}
	action_b = {
		name = "Save the money"
		command = { type = population which = -1 value = 10 } #dummy effect to allow the option
	}
}

#First silver dollar in the world#
event = {
	id = 322008
	random = no
	country = TYR
	name = "The first silver dollar"
	desc = "The silver mines of Schwaz prospering, Sigmund had the idea to use the produced silver for coins, instead of gold. He moved the ducal mint to Hall, which was near Schwaz, in 1477, and in 1486 the Uncialis, the first silver dollar in the world, was made."

	date = { day = 1 month = january year = 1486 }
	offset = 100
	deathdate = { day = 29 month = december year = 1486 }

	action_a = {
		name = "Nice"
		command = { type = infra value = 25 }
	}
}

#Abdication of Sigmund der Münzreiche#
event = {
	id = 322012
	trigger = { exists = HAB }
	random = no
	country = TYR
	name = "Abdication of Duke Sigmund"
	desc = "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."

	date = { day = 1 month = january year = 1490 }
	offset = 50
	deathdate = { day = 1 month = january year = 1491 }

	action_a = {
		name = "Tyrol shall be united with Austria"
		command = { type = independence which = HEL }
		command = { type = independence which = MLO }
		command = { type = independence which = MAN }
		command = { type = independence which = LOR }
		command = { type = independence which = WUR }
		command = { type = independence which = BAY }
		command = { type = secedeprovince which = BAY value = 348 } #Ansbach
		command = { type = secedeprovince which = BAY value = 928 }
		command = { type = secedeprovince which = BAY value = 869 }
		command = { type = independence which = MAI }
		command = { type = independence which = PFA }
		command = { type = independence which = THU }
		command = { type = independence which = SAV }
		command = { type = secedeprovince which = SAV value = 404 } #Piemonte
		command = { type = independence which = GEN }
		command = { type = independence which = PAR }
		command = { type = independence which = TOS }
		command = { type = independence which = PAM }
		command = { type = secedeprovince which = BUR value = 387 } #Franche Comté
		command = { type = secedeprovince which = BUR value = 409 } #Bourgogne
		command = { type = trigger which = 179003 } #HAB: Austria inherits Tyrol
	}
	action_b = {
		name = "Tyrol remains independent"
		command = { type = relation which = HAB value = -200 }
		command = { type = stability value = -3 }
		command = { type = DIP which = -2 value = 240 } #Sigmund is old and tired
		command = { type = ADM which = -4 value = 240 } #Sigmund is old and tired
		command = { type = MIL which = -4 value = 240 } #Sigmund is old and tired
	}
}

#Tyrol becomes Austria#
event = {
	id = 322013
	trigger = {
		NOT = { exists = HAB }
		NOT = { exists = SEI }
		countrysize = 3
	}
	random = no
	country = TYR
	name = "Tyrol becomes Austria"
	desc = "Since all other branches of the Austrian Habsburgs have ceased to exist, it is now upon the Dukes of Tyrol to lead the dynasty."

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

	action_a = {
		name = "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 = 367 } #Krain
                command = { type = addcore which = 369 } #Steiermark
		command = { type = addcore which = 1930 } #Breisgau		
                command = { type = addcore which = 1932 } #Kaerten
	}
	action_b = {
		name = "Remain Dukes of Tyrol"
		command = { type = stability value = 1 }
	}
}

#Steiermark willed to Tyrol
event = {
	id = 322014 #triggered by #triggered by SEI_261000/261001 B
	random = no
	country = TYR
        name = "Steiermark and Krain are willed to Tyrol"
        desc = "In december 1463 Duke Albert of Steiermark died childlessly. Despite his brother, emperor Friedrich V, that he had had a long struggle for power in Austria and Steiermark with having the strongest claim, he willed Steiermark to his cousin Sigmund of Tyrol. Tyrol can inherit Steiermark and Krain, however this would almost inevitably cause a conflict with Friedrich V and the whole empire."
       
        style = 1
        
        action_a = { 
                 name = "Austria is the rightful heir, we'll reject the inheritance"
                 command = { type = relation which = HAB value = 100 }
                 command = { type = trigger which = 179002 } #HAB: Austria inherits Steiermark
                 }
        
        action_b = {
                 name = "We'll inherit no matter what"
		command = { type = inherit which = SEI }
		command = { type = addcore which = 367 } #Krain
		command = { type = addcore which = 369 } #Steiermark
		command = { type = addcore which = 1932 } #Kaerten
		command = { type = relation which = HAB value = -200 }
		command = { type = relation which = WUR value = -80 }
		command = { type = relation which = BAD value = -80 }
		command = { type = relation which = STR value = -80 }
		command = { type = relation which = PFA value = -80 }
		command = { type = relation which = LOR value = -80 }
		command = { type = relation which = HES value = -80 }
		command = { type = relation which = BAY value = -80 }
		command = { type = relation which = MAI value = -80 }
		command = { type = relation which = SAC value = -80 }
		command = { type = relation which = KOL value = -80 }
		command = { type = relation which = KLE value = -80 }
		command = { type = relation which = MUN value = -80 }
		command = { type = relation which = BRA value = -80 }
		command = { type = relation which = MEC value = -80 }
		command = { type = relation which = POM value = -80 }
		command = { type = relation which = SHL value = -80 }
		command = { type = relation which = BRE value = -80 }
		command = { type = relation which = OLD value = -80 }
		command = { type = relation which = HAN value = -80 }
		command = { type = relation which = MAN value = -80 }
		command = { type = relation which = SAV value = -80 }
		command = { type = relation which = GEL value = -80 }
		command = { type = stability value = -2 }
	}
}

#Regency in Inner Austria
event = {
	id = 322015 #triggered by SEI_261010
	random = no
	country = TYR
	name = "Regency of Friedrich IV in Inner Austria"
	desc = "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."

	action_a = {
		name = "We must take care of the children"
		command = { type = vassal which = SEI }
		command = { type = alliance which = SEI }
		command = { type = trigger which = 261012 } #SEI: Regency of Friedrich IV, Count of Tyrol
	}
}

#Friedrich V of Steiermark comes of age
event = {
	id = 322016
	trigger = {
		event = 322015
		vassal = { country = TYR country = SEI }
	}
	random = no
	country = TYR
	name = "Friedrich V comes of age"
	desc = "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 = 20 month = september year = 1431 }
	action_a = {
		name = "Maintain Friedrich's regency in Steiermark"
		command = { type = relation which = SEI value = -40 }
		command = { type = relation which = HAB value = -20 }
	}
	action_b = {
		name = "Respect family law and let Friedrich V rule Steiermark"
		command = { type = trigger which = 261014 } #End of Friedrich IV's regency #SEI: Friedrich V comes of age
		command = { type = relation which = SEI value = 30 }
		command = { type = relation which = HAB value = 10 }
	}
}

#Opposition against Friedrich IV
event = {
	id = 322017
	random = no
	country = TYR
	name = "Opposition against Friedrich IV"
	desc = "Since the beginning of his reign in 1406, Friedrich IV had been opposed by the Tyrolean nobility and the bishoprics of Trient, Brixen and Chur. The large noble dynasties of Tyrol formed several leagues to pursue their goal of deposing the Habsburg count and have Tyrol turned into an immediate imperial fief. They almost seemed to succeed when Friedrich was excommunicated and imprisoned at the council of Konstanz in 1415 after having supported the anti-Pope Johann XXIII. However Friedrich managed to escape, to return to his country and, with the aid of the Tyrolean peasantry and his brother Ernst of Steiermark, to recover rule of Tyrol. The situation however remained unstable, and Friedrich IV found his rule opposed by several strong forces."

	date = { day = 1 month = january year = 1419 }

	action_a = {
		name = "They'll regret this one day"
		command = { type = province_revoltrisk which = 371 value = 5 } #Tyrol
		command = { type = province_revoltrisk which = 1593 value = 5 } #Trento
	}
}

#Acquisition of Bludenz
event = {
	id = 322018
	random = no
	country = TYR
	name = "Acquisition of the County of Bludenz"
	desc = "In 1394, the childless Count Albrecht IV of Werdenberg-Heiligenberg-Bludenz sold the County of Bludenz, situated in Vorarlberg, the small region between Tyrol, Swabia and Switzerland, the fortress of Bürs, the lordship of St. Peter and the Montafon area to the Habsburg dynasty for 5000 Gulden, to be ceded to them upon his death. He died on January 9th 1420, and Bludenz and the other holdings passed to the Habsburg Duke Friedrich IV, Count of Tyrol."

	date = { day = 9 month = january year = 1420 }

	action_a = {
		name = "So our investment finally pays off"
		command = { type = provincetax which = 371 value = 1 } #Tyrol
		command = { type = fortress which = 371 value = 1 } #The fortress of Bludenz and the fortress of Bürs, both rather decent fortifications #Tyrol
	}
}

#Foundation of a new league against Friedrich IV
event = {
	id = 322019
	random = no
	country = TYR
	name = "Foundation of a new league against Friedrich IV"
	desc = "Friedrich IV gradually reduced the power of the rebellious nobility through diplomacy and military successes. In a last desperate attempt to keep their power, several nobles concluded an alliance against Friedrich with the bishoprics of Trient, Brixen and Chur on July 18th 1423."

	date = { day = 18 month = july year = 1423 }

	action_a = {
		name = "Crush these traitors"
		command = { type = province_revoltrisk which = 371 value = 2 } #Tyrol
		command = { type = revolt which = 371 } #Tyrol
                command = { type = province_revoltrisk which = 1593 value = 2 } #Trento
		command = { type = revolt which = 1593 } #Trento
		command = { type = stability value = -1 }
	}
}

#Diet at Meran
event = {
	id = 322020
	trigger = { control = { province = 371 data = -1 } control = { province = 1593 data = -1 } }
	random = no
	country = TYR
	name = "First assembly of the Tyrolean diet at Meran"
	desc = "The league against Friedrich IV founded in July 1423 was basically doomed from the beginning. Ever since his return from his imprisonment, Friedrich IV had been seeking the support of burghers and peasantry, who had suffered much from the decade of unrest, largely despised the rebellious nobles whom they perceived to betray Tyrol to satisfy their personal greed and ambitions and therefore willingly rallied behind the popular, folksy count. Castle Greifenstein, the apparently impregnable stronghold of the Starkenberg dynasty which was among the most important adherents to the rebellion, fell to Friedrich in 1423. The decisive move happened in Meran in November 1423: for the first time in the history of Tyrol, a diet with representatives of all estates, including the burghers and the peasantry, assembled and forced the league of the nobles to surrender and dissolve."

	date = { day = 1 month = november year = 1423 }
	offset = 30
	deathdate = { year = 1431 }

	action_a = {
		name = "Ally with the lower classes"
		command = { type = stability value = 1 }
		command = { type = province_revoltrisk which = 371 value = -7 } #Tyrol
		command = { type = province_revoltrisk which = 1593 value = -7 } #Trento
		command = { type = domestic which = aristocracy value = -4 }
		command = { type = domestic which = centralization value = 1 }
		command = { type = domestic which = quality value = -1 } #Tyrol needs to rely more on peasant armies
		command = { type = domestic which = serfdom value = -2 }
	}
	action_b = {
		name = "Compromise with the rebellious nobles"
		command = { type = stability value = 2 }
		command = { type = province_revoltrisk which = 371 value = -7 } #Tyrol
		command = { type = province_revoltrisk which = 1593 value = -7 } #Trento
		command = { type = domestic which = serfdom value = 1 }
	}
}

#Death of the last Toggenburg
event = {
	id = 322021
	random = no
	country = TYR
	name = "Recovery of the County of Feldkirch"
	desc = "The County of Feldkirch in Vorarlberg had been a Habsburg possession since 1379. During Friedrich IV's imprisonment, it was however seized by Imperial troops. Emperor Sigmund, who desired to completely break Friedrich's power, mortgaged Feldkirch to Count Friedrich of Toggenburg in 1417. Upon the latter's death on April 30th 1436, Friedrich IV managed to rebuy the pawn from the widow, Elisabeth von Matsch, for 22.000 Gulden."

	date = { day = 29 month = april year = 1436 }

	action_a = {
		name = "Rebuy the County of Feldkirch"
		command = { type = treasury value = -22 }
		command = { type = provincetax which = 371 value = 1 } #Tyrol
		command = { type = provincemanpower which = 371 value = 1 } #Tyrol
	}
	action_b = {
		name = "We cannot afford it"
		command = { type = vp value = -5 }
	}
}

#Sigmund's bastards
event = {
	id = 322022
	random = no
	country = TYR
	name = "Sigmund's bastards"
	desc = "Sigmund of Tyrol's two marriages produced only one child which died with its mother, Eleanor of Scotland, in childbed in 1480. There were however about 50 children whom Sigmund had recognized as his illegitimate offspring and who were supported financially from Sigmund's coffers. Whether he indeed was so fertile or just accepted these bastards as his in order to be able to blame his failure to father a heir on his wifes cannot be asserted with certainty. In any case, the generous supply of 50 children was a huge drain on Tyrol's finances."

	date = { day = 1 month = january year = 1460 }
	offset = 9000
	deathdate = { year = 1490 }

	action_a = {
		name = "Recognize and supply them"
		command = { type = stability value = 2 }
		command = { type = treasury value = -50 }
		command = { type = relation which = PAP value = -5 }
	}
	action_b = {
		name = "Don't you know I'm Sigmund the Chaste?"
		command = { type = stability value = -1 }
	}
}
#Margaret Maultasch Abdication
event = {
	id = 322023
	random = no
	country = TYR
	name = "Margaret Maultasch give away of Tyrol"
	desc = "Margaret Maultasch gave the Duchy of Tyrol in 1363, because of the death of her late son, Meinhard III, to Albert II Habsburg, Duke of Austria, whom merged the Duchy of Tyrol with the Duchy of Austria."
	date = { day = 13 month = january year = 1363 }

	action_a = {
		name = "Give Tyrol to Albert II Duke of Austria"
		command = { type = trigger which = 12345660 } #HAB: Austrian inheritance of Tyrol
	}
	action_b = {
		name = "Give Tyrol to Frederick III King of Sicily"
		command = { type = trigger which = 12345661 } #SIC: Sicilian inheritance of Tyrol
	}
	action_c = {
		name = "Give the duchy to a distant relative."
		command = { type = stability value = 1 }
		command = { type = treasury value = 50 }
		command = { type = relation which = HAB value = -200 }
		command = { type = relation which = SIC value = -100 }

	}
}

#First free id : 322025