#Kingdom of Italy (ITA) - Alternative

#Countries able to form KoI:
#Mantua (MAN)
#Milan (MLO)
#Modena (MOD)
#Parma (PAR)
#Savoy (SAV)
#Tuscany (TOS)

#Other involved countries:
#Austria (HAB)
#France (FRA)
#Genoa (GEN)
#Papal States (PAP)
#Siena (SIE)
#Spain (SPA)
#Venice (VEN)

#-----------------------------------------------------------------------------------------------
#Austria (HAB)
#-----------------------------------------------------------------------------------------------

#(1419-1660) Austria answers the proposal to give away the Crown of Italy, Tuscany version
event = {
	id = 179040 #triggered by TOS_297006 A
	random = no
	country = HAB
	name = "EVENTNAME179040" #The Crown of Italy
	desc = "EVENTHIST179040"
	#-#Our ally and good friend in Florence have made to his land grown greatly in size and power, and it now dominates the northern part of the Italian peninsula. They now petitions us to grant them legitimate status as the Kingdom of Italy, a title within the Holy Roman Empire. The aspiring King offer us a great sum of money in the bargain and, it will strengthen our position in Italy.

	action_a = {
		name = "ACTIONNAME179040A" #This shall benefit us both, long live the King of Italy
		command = { type = treasury value = 500 }
		command = { type = trigger which = 297011 } #Approval #TOS: The path to the Crown is cleared
		command = { type = removecore which = 389 } #Lombardia
		command = { type = stability value = 1 }
		command = { type = sleepevent which = 179037 } #Austria get no CB #HAB: The Kingdom of Italy threatens the balance
	}
	action_b = {
		name = "ACTIONNAME179040B" #If they want the crown, let them come and take it
		command = { type = trigger which = 297012 } #TOS: Our proposal is rejected
	}
}
#(1419-1660) Austria answers the proposal to give away the Crown of Italy, Savoy version
event = {
	id = 179039 #triggered by SAV_275001 A
	random = no
	country = HAB
	name = "EVENTNAME179039" #The Crown of Italy
	desc = "EVENTHIST179039"
	#-#Our ally and good friend in Savoy have made to his land grown greatly in size and power, and it now dominates the northern part of the Italian peninsula. They now petitions us to grant them legitimate status as the Kingdom of Italy, a title within the Holy Roman Empire. The aspiring King offer us a great sum of money in the bargain and, it will strengthen our position in Italy.

	action_a = {
		name = "ACTIONNAME179039A" #This shall benefit us both, long live the King of Italy
		command = { type = treasury value = 500 }
		command = { type = trigger which = 275006 } #Approval #SAV: The path to the Crown is cleared
		command = { type = removecore which = 389 } #Lombardia
		command = { type = stability value = 1 }
		command = { type = sleepevent which = 179037 } #Austria get no CB #HAB: The Kingdom of Italy threatens the balance

	}
	action_b = {
		name = "ACTIONNAME179039B" #If they want the crown, let them come and take it
		command = { type = trigger which = 275007 } #SAV: Our proposal is rejected
	}
}
#(1419-1660) Austria answers the proposal to give away the Crown of Italy, Modena version
event = {
	id = 179041 #triggered by MOD_252001 A
	random = no
	country = HAB
	name = "EVENTNAME179041" #The Crown of Italy
	desc = "EVENTHIST179041"
	#-#Our ally and good friend in Modena have made to his land grown greatly in size and power, and it now dominates the northern part of the Italian peninsula. They now petitions us to grant them legitimate status as the Kingdom of Italy, a title within the Holy Roman Empire. The aspiring King offer us a great sum of money in the bargain and, it will strengthen our position in Italy.

	action_a = {
		name = "ACTIONNAME179041A" #This shall benefit us both, long live the King of Italy
		command = { type = treasury value = 500 }
		command = { type = trigger which = 252006 } #Approval #MOD: The path to the Crown is cleared.
		command = { type = removecore which = 389 } #Lombardia #Lombardia
		command = { type = stability value = 1 }
		command = { type = sleepevent which = 179037 } #Austria get no CB #HAB: The Kingdom of Italy threatens the balance

	}
	action_b = {
		name = "ACTIONNAME179041B" #If they want the crown, let them come and take it
		command = { type = trigger which = 252007 } #MOD: Our proposal is rejected
	}
}
#(1419-1660) Austria answers the proposal to give away the Crown of Italy, Mantua version
event = {
	id = 179012 #triggered by MAN_220001 A
	random = no
	country = HAB
	name = "EVENTNAME179012" #The Crown of Italy
	desc = "EVENTHIST179012"
	#-#Our ally and good friend in Mantua have made to his land grown greatly in size and power, and it now dominates the northern part of the Italian peninsula. They now petitions us to grant them legitimate status as the Kingdom of Italy, a title within the Holy Roman Empire. The aspiring King offer us a great sum of money in the bargain and, it will strengthen our position in Italy.

	action_a = {
		name = "ACTIONNAME179012A" #This shall benefit us both, long live the King of Italy
		command = { type = treasury value = 500 }
		command = { type = trigger which = 220006 } #Approval #MAN: The path to the Crown is cleared.
		command = { type = removecore which = 389 } #Lombardia
		command = { type = stability value = 1 }
		command = { type = sleepevent which = 179037 } #Austria get no CB #HAB: The Kingdom of Italy threatens the balance

	}
	action_b = {
		name = "ACTIONNAME179012B" #If they want the crown, let them come and take it
		command = { type = trigger which = 220007 } #MAN: Our proposal is rejected
	}
}
#(1419-1660) Austria answers the proposal to give away the Crown of Italy, Milan version
event = {
	id = 179038 #triggered by MLO_228007 A
	random = no
	country = HAB
	name = "EVENTNAME179038" #The Crown of Italy
	desc = "EVENTHIST179038"
	#-#Our ally and good friend in Milan have made to his land grown greatly in size and power, and it now dominates the northern part of the Italian peninsula. They now petitions us to grant them legitimate status as the Kingdom of Italy, a title within the Holy Roman Empire. The aspiring King offer us a great sum of money in the bargain and, it will strengthen our position in Italy.

	action_a = {
		name = "ACTIONNAME179038A" #This shall benefit us both, long live the King of Italy
		command = { type = treasury value = 500 }
		command = { type = trigger which = 228009 } #Approval #MLO: The path to the Crown is cleared.
		command = { type = removecore which = 389 } #Lombardia
		command = { type = stability value = 1 }
		command = { type = sleepevent which = 179037 } #Austria get no CB #HAB: The Kingdom of Italy threatens the balance

	}
	action_b = {
		name = "ACTIONNAME179038B" #If they want the crown, let them come and take it
		command = { type = trigger which = 228010 } #MLO: Our proposal is rejected
	}
}
#(1546-1660) Austria answers the proposal to give away the Crown of Italy, Parma version
event = {
	id = 179027 #triggered by PAR_390011 A
	random = no
	country = HAB
	name = "EVENTNAME179038" #The Crown of Italy
	desc = "EVENTHIST179027"
	#-#Our ally and good friend in Parma have made to his land grown greatly in size and power, and it now dominates the northern part of the Italian peninsula. They now petitions us to grant them legitimate status as the Kingdom of Italy, a title within the Holy Roman Empire. The aspiring King offer us a great sum of money in the bargain and, it will strengthen our position in Italy.

	action_a = {
		name = "ACTIONNAME179038A" #This shall benefit us both, long live the King of Italy
		command = { type = treasury value = 500 }
		command = { type = trigger which = 390016 } #Approval #PAR: The path to the Crown is cleared.
		command = { type = removecore which = 389 } #Lombardia
		command = { type = stability value = 1 }
		command = { type = sleepevent which = 179037 } #Austria get no CB #HAB: The Kingdom of Italy threatens the balance

	}
	action_b = {
		name = "ACTIONNAME179038B" #If they want the crown, let them come and take it
		command = { type = trigger which = 390017 } #PAR: Our proposal is rejected
	}
}
#(1419-1820) If Italy is created and the crown was granted by the Pope or taken by force
event = {
	id = 179037
	trigger = { exists = ITA }
	random = no
	country = HAB
	name = "EVENTNAME179037" #The Kingdom of Italy threatens the balance
	desc = "EVENTHIST179037"
	#-#The Kingdom of Italy have formed, as an independent part of the Holy Roman Empire and, a new King have been crowned in Milan. All this is against our will! They claim the right to all the lands in the north of the peninsula and their emergence threatens the balance.

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

	action_a = {
		name = "ACTIONNAME179037A" #Bad news
		command = { type = breakvassal which = ITA } #ITA may be liege
		command = { type = casusbelli which = ITA value = 120 }
	}
	action_b = {
		name = "ACTIONNAME179037B" #Seek their friendship
		command = { type = diplomats value = -1 }
		command = { type = stability value = -1 }
		command = { type = relation which = ITA value = 100 }
	}
}

#-----------------------------------------------------------------------------------------------
#France (FRA)
#-----------------------------------------------------------------------------------------------

#(1419-1820) If Italy is created, by mnorrefeldt
event = {
	id = 170019
	trigger = { exists = ITA }
	random = no
	country = FRA
	name = "EVENTNAME170019" #The Kingdom of Italy threatens the balance
	desc = "EVENTHIST170019"
	#-#The Kingdom of Italy has formed as an independent part of the Holy Roman Empire and a new King has been crowned in Milan. They claim the right to all the lands in the northern part of the peninsula and their emergence threatens the balance of power.

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

	action_a = {
		name = "ACTIONNAME170019A" #Oppose this new threat
		command = { type = casusbelli which = ITA value = 120 }
	}
	action_b = {
		name = "ACTIONNAME170019B" #Seek their friendship
		command = { type = diplomats value = -1 }
		command = { type = stability value = -1 }
		command = { type = relation which = ITA value = 100 }
	}
}

#-----------------------------------------------------------------------------------------------
#Genoa (GEN)
#-----------------------------------------------------------------------------------------------

#(1419-1820) If Italy is created, by mnorrefeldt
event = {
	id = 174020
	trigger = { exists = ITA }
	random = no
	country = GEN
	name = "EVENTNAME174020" #The Kingdom of Italy threatens the balance
	desc = "EVENTHIST174020"
	#-#The Kingdom of Italy have formed, as an independent part of the Holy Roman Empire and a new King have been crowned in Milan. They claim the right to all the lands in the north of the peninsula and their emergence threatens the balance.

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

	action_a = {
		name = "ACTIONNAME174020A" #Bad news
		command = { type = casusbelli which = ITA value = 120 }
	}
	action_b = {
		name = "ACTIONNAME174020B" #Seek their friendship
		command = { type = diplomats value = -1 }
		command = { type = stability value = -1 }
		command = { type = relation which = ITA value = 100 }
	}
}

#-----------------------------------------------------------------------------------------------
#Mantua (MAN)
#-----------------------------------------------------------------------------------------------

#(1419-1660) The Kingdom of Italy
#The Guelf way, the Pope's party
event = {
	id = 220000
	trigger = {
		NOT = { event = 103 } #HugeEvents: Edict of Tolerance (1650-1655)
		NOT = { flag = [Ghibelline] }
		owned = { province = 389 data = -1 } #Lombardia
		atwar = no
		stability = 3
		OR = {
			religion = catholic
			religion = counterreform
		}
		NOT = { badboy = 4 } #Badboy must not be higher than 3
		NOT = { vassal = { country = HAB country = MAN } } #Must not be vassalised to Austria
		NOT = { vassal = { country = PAP country = MAN } } #Must not be vassalised to the Papal States
		alliance = { country = MAN country = PAP }
		relation = { country = PAP data = 190 }
		NOT = { vassal = { country = MAN country = PAP } } #The Pope can't be forced but lured...
		OR = {
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 403 data = -1 } #Liguria
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 400 data = -1 } #Siena
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 391 data = -1 } #Romagna
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 402 data = -1 } #Emilia
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 400 data = -1 } #Siena
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 391 data = -1 } #Romagna
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 402 data = -1 } #Emilia
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 391 data = -1 } #Romagna
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 402 data = -1 } #Emilia
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 391 data = -1 } #Romagna
				owned = { province = 402 data = -1 } #Emilia
			}
			AND = {
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 400 data = -1 } #Siena
			}
			AND = {
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 391 data = -1 } #Romagna
			}
			AND = {
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 402 data = -1 } #Emilia
			}
			AND = {
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 391 data = -1 } #Romagna
			}
			AND = {
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 402 data = -1 } #Emilia
			}
			AND = {
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 391 data = -1 } #Romagna
				owned = { province = 402 data = -1 } #Emilia
			}
			AND = {
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 391 data = -1 } #Romagna
			}
			AND = {
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 402 data = -1 } #Emilia
			}
			AND = {
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 391 data = -1 } #Romagna
				owned = { province = 402 data = -1 } #Emilia
			}
			AND = {
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 391 data = -1 } #Romagna
				owned = { province = 402 data = -1 } #Emilia
			}
		}
	}
	random = no
	country = MAN
	name = "EVENTNAME220000" #The Kingdom of Italy
	desc = "EVENTHIST228002"
	#-#Since the fall of the Roman Empire the title of King of Italy was sometimes used by the barbarians chiefs who ruled over the Italian peninsula until the end of the Gothic Wars and the following invasion of the Lombards, who established their own Kingdom in 568, thus separating northern Italy from the territories controlled by the Eastern Roman Empire. In 774 Pope Adrianus I, threatened by a renewed Lombard claim to the Patrimomium Petri (also know as the Duchy of Rome), called Charlemagne in Italy to protect him, thus granting the Frankish King possession of the conquered Kingdom of Lombards and the Duchy of Spoleto as its vassal in exchange for the cession to the Pope of some Lombard held territories,the future Papal States. Venice, who nominally recognized the Byzantine sovereignty, and the southernmost Lombard Duchy of Benevento were granted independence. In 781 Charlemagne's son Pippin became the first King of Italy crowned by a Pope with the Corona Ferrea (iron crown) so called from a narrow band of iron within it, said to be beaten out of one of the nails used at the Crucifixion. Even if the Empire had usually suffered dynastic and feudal disputes, only after 888, with the extinction of the Carolingian dynasty and the anarchy that followed, were the throne of Italy and the Imperial title continuously contended for by several claimants. And when in 962 Berengar, Marquis of Ivrea, one of the self-proclaimed Kings of Italy of those times, audaciously tried to seize the Papal States, Pope Johannes XII, as his predecessor did with the Franks before, invited Otto I, Duke of Saxony and King of the Germans, to come to Italy and protect him in exchange for the title of Holy Roman Emperor (translatio imperii). Since then, excluding the short period between 1002 and 1015 during which Arduino, Margrave of Ivrea, unsuccessfully tried to proclaim himself King of Italy and was then forced to abandon his claims, the 'Regnum Italicum' (the Kingdom of Italy) has been subsumed into the Holy Roman Empire. And now, after a period of great expansion, we have finally gained dominance over the lands representing the medieval Kingdom of Italy. But in order to be acknowledged Kings of Italy, we would need the official recognition of the Holy Roman Emperor, who holds the rights to the title, or the Pope, who could crown us against the will of the Emperor. Our great relations and alliance with the Pope makes it possible that he will grant us the crown. We will offer him 100 ducats to help his Holiness go against the will of the Emperor.

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

	action_a = {
		name = "ACTIONNAME220000A" #I am worthy the Crown
		command = { type = treasury value = -20 }
		command = { type = diplomats value = -1 }
		command = { type = setflag which = [Guelf] }
		command = { type = trigger which = 251003 } #The Pope's reply #PAP: The Crown of Italy
	}
	action_b = {
		name = "ACTIONNAME220000B" #Let us remain Mantua
		command = { type = stability value = -1 }
	}
}
#(1419-1660) The Kingdom of Italy
#The Ghibelline way, the Emperor's party
event = {
	id = 220001
	trigger = {
		NOT = { event = 103 } #HugeEvents: Edict of Tolerance (1650-1655)
		NOT = { flag = [Guelf] }
		owned = { province = 389 data = -1 } #Lombardia
		atwar = no
		stability = 3
		OR = {
			religion = catholic
			religion = counterreform
		}
		exists = HAB
		NOT = { badboy = 6 } #Badboy must be less than 6
		NOT = { vassal = { country = HAB country = MAN } } #Must not be vassalised to Austria
		NOT = { vassal = { country = PAP country = MAN } } #Must not be vassalised to the Papal States
		NOT = { vassal = { country = FRA country = MAN } } #Must not be vassalised to the France
		alliance = { country = MAN country = HAB }
		dynastic = { country = MAN country = HAB }
		relation = { country = HAB data = 150 }
		NOT = { vassal = { country = MAN country = HAB } } #The Emperor can't be forced but lured...
		OR = {
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 403 data = -1 } #Liguria
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 400 data = -1 } #Siena
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 391 data = -1 } #Romagna
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 402 data = -1 } #Emilia
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 400 data = -1 } #Siena
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 391 data = -1 } #Romagna
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 402 data = -1 } #Emilia
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 391 data = -1 } #Romagna
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 402 data = -1 } #Emilia
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 391 data = -1 } #Romagna
				owned = { province = 402 data = -1 } #Emilia
			}
			AND = {
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 400 data = -1 } #Siena
			}
			AND = {
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 391 data = -1 } #Romagna
			}
			AND = {
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 402 data = -1 } #Emilia
			}
			AND = {
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 391 data = -1 } #Romagna
			}
			AND = {
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 402 data = -1 } #Emilia
			}
			AND = {
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 391 data = -1 } #Romagna
				owned = { province = 402 data = -1 } #Emilia
			}
			AND = {
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 391 data = -1 } #Romagna
			}
			AND = {
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 402 data = -1 } #Emilia
			}
			AND = {
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 391 data = -1 } #Romagna
				owned = { province = 402 data = -1 } #Emilia
			}
			AND = {
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 391 data = -1 } #Romagna
				owned = { province = 402 data = -1 } #Emilia
			}
		}
	}
	random = no
	country = MAN
	name = "EVENTNAME220001" #The Kingdom of Italy
	desc = "EVENTHIST228007"
	#-#Since the fall of the Roman Empire the title of King of Italy was sometimes used by the barbarians chiefs who ruled over the Italian peninsula until the end of the Gothic Wars and the following invasion of the Lombards, who established their own Kingdom in 568, thus separating northern Italy from the territories controlled by the Eastern Roman Empire. In 774 Pope Adrianus I, threatened by a renewed Lombard claim to the Patrimomium Petri (also know as the Duchy of Rome), called Charlemagne in Italy to protect him, thus granting the Frankish King possession of the conquered Kingdom of Lombards and the Duchy of Spoleto as its vassal in exchange for the cession to the Pope of some Lombard held territories,the future Papal States. Venice, who nominally recognized the Byzantine sovereignty, and the southernmost Lombard Duchy of Benevento were granted independence. In 781 Charlemagne's son Pippin became the first King of Italy crowned by a Pope with the Corona Ferrea (iron crown) so called from a narrow band of iron within it, said to be beaten out of one of the nails used at the Crucifixion. Even if the Empire had usually suffered dynastic and feudal disputes, only after 888, with the extinction of the Carolingian dynasty and the anarchy that followed, were the throne of Italy and the Imperial title continuously contended for by several claimants. And when in 962 Berengar, Marquis of Ivrea, one of the self-proclaimed Kings of Italy of those times, audaciously tried to seize the Papal States, Pope Johannes XII, as his predecessor did with the Franks before, invited Otto I, Duke of Saxony and King of the Germans, to come to Italy and protect him in exchange for the title of Holy Roman Emperor (translatio imperii). Since then, excluding the short period between 1002 and 1015 during which Arduino, Margrave of Ivrea, unsuccessfully tried to proclaim himself King of Italy and was then forced to abandon his claims, the 'Regnum Italicum' (the Kingdom of Italy) has been subsumed into the Holy Roman Empire. And now, after a period of great expansion, we have finally gained dominance over the lands representing the medieval Kingdom of Italy. But in order to be acknowledged Kings of Italy, we would need the official recognition of the Holy Roman Emperor, who holds the rights to the title, or the Pope. Our great relations and alliance with the Habsburgs makes it possible that they will grant us the crown. We will offer the Emperor lavish gifts worth 500 ducats to convince him to hand over the title.

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

	action_a = {
		name = "ACTIONNAME220001A" #I am worthy the Crown
		command = { type = treasury value = -20 }
		command = { type = diplomats value = -1 }
		command = { type = setflag which = [Ghibelline] }
		command = { type = trigger which = 179012 } #Austrias reply #HAB: The Crown of Italy
	}
	action_b = {
		name = "ACTIONNAME220001B" #Let us remain Mantua
		command = { type = stability value = -1 }
	}
}
#(1419-1796) The Kingdom of Italy
#The force majeur way
event = {
	id = 220002
	trigger = {
		NOT = { event = 12114 } #FRA: The French Revolutionary Wars (previously, Sabre Rattling, 1792)
		owned = { province = 389 data = -1 } #Lombardia
		atwar = no
		stability = 3
		OR = {
			religion = catholic
			religion = counterreform
		}
		vassal = { country = MAN country = HAB } #Must have vassalised Austria
		vassal = { country = MAN country = PAP } #Must have vassalised the Papal States
		OR = {
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 403 data = -1 } #Liguria
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 400 data = -1 } #Siena
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 391 data = -1 } #Romagna
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 402 data = -1 } #Emilia
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 400 data = -1 } #Siena
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 391 data = -1 } #Romagna
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 402 data = -1 } #Emilia
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 391 data = -1 } #Romagna
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 402 data = -1 } #Emilia
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 391 data = -1 } #Romagna
				owned = { province = 402 data = -1 } #Emilia
			}
			AND = {
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 400 data = -1 } #Siena
			}
			AND = {
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 391 data = -1 } #Romagna
			}
			AND = {
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 402 data = -1 } #Emilia
			}
			AND = {
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 391 data = -1 } #Romagna
			}
			AND = {
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 402 data = -1 } #Emilia
			}
			AND = {
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 391 data = -1 } #Romagna
				owned = { province = 402 data = -1 } #Emilia
			}
			AND = {
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 391 data = -1 } #Romagna
			}
			AND = {
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 402 data = -1 } #Emilia
			}
			AND = {
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 391 data = -1 } #Romagna
				owned = { province = 402 data = -1 } #Emilia
			}
			AND = {
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 391 data = -1 } #Romagna
				owned = { province = 402 data = -1 } #Emilia
			}
		}
	}
	random = no
	country = MAN
	name = "EVENTNAME220002" #The Kingdom of Italy
	desc = "EVENTHIST228008"
	#-#Since the fall of the Roman Empire the title of King of Italy was sometimes used by the barbarians chiefs who ruled over the Italian peninsula until the end of the Gothic Wars and the following invasion of the Lombards, who established their own Kingdom in 568, thus separating northern Italy from the territories controlled by the Eastern Roman Empire. In 774 Pope Adrianus I, threatened by a renewed Lombard claim to the Patrimomium Petri (also know as the Duchy of Rome), called Charlemagne in Italy to protect him, thus granting the Frankish King possession of the conquered Kingdom of Lombards and the Duchy of Spoleto as its vassal in exchange for the cession to the Pope of some Lombard held territories,the future Papal States. Venice, who nominally recognized the Byzantine sovereignty, and the southernmost Lombard Duchy of Benevento were granted independence. In 781 Charlemagne's son Pippin became the first King of Italy crowned by a Pope with the Corona Ferrea (iron crown) so called from a narrow band of iron within it, said to be beaten out of one of the nails used at the Crucifixion. Even if the Empire had usually suffered dynastic and feudal disputes, only after 888, with the extinction of the Carolingian dynasty and the anarchy that followed, were the throne of Italy and the Imperial title continuously contended for by several claimants. And when in 962 Berengar, Marquis of Ivrea, one of the self-proclaimed Kings of Italy of those times, audaciously tried to seize the Papal States, Pope Johannes XII, as his predecessor did with the Franks before, invited Otto I, Duke of Saxony and King of the Germans, to come to Italy and protect him in exchange for the title of Holy Roman Emperor (translatio imperii). Since then, excluding the short period between 1002 and 1015 during which Arduino, Margrave of Ivrea, unsuccessfully tried to proclaim himself King of Italy and was then forced to abandon his claims, the 'Regnum Italicum' (the Kingdom of Italy) has been subsumed into the Holy Roman Empire. And now, after a period of great expansion, we have finally gained dominance over the lands representing the medieval Kingdom of Italy. Having also vassalized Austria and put the Pope under our boot, there is now no obstacle in our path to claim the crown of the Kingdom of Italy as part of the Holy Roman Empire. Shall we start preparations for the coronation?

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

	action_a = {
		name = "ACTIONNAME220002A" #I shall take the Crown
		command = { type = badboy value = 3 }
		command = { type = treasury value = -20 }
		command = { type = setflag which = [force_majeur_coronation] }
	}
	action_b = {
		name = "ACTIONNAME220002B" #That would give us too many enemies
		command = { type = stability value = -1 }
	}
}
#(1419-1820) The Pope have granted the crown
event = {
	id = 220003
	trigger = {
		event = 220006 #the approval
		flag = [Guelf]
		atwar = no
	}
	random = no
	country = MAN
	name = "EVENTNAME220003" #The Coronation
	desc = "EVENTHIST220003"
	#-#We are now the Kingdom of Italy!

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

	action_a = {
		name = "ACTIONNAME220003A" #Long live the King!
		command = { type = treasury value = -100 }
		command = { type = vp value = 200 }
		command = { type = flagname which = "" }
		command = { type = country which = ITA }
		command = { type = add_countryculture which = italian }
		command = { type = trigger which = 193000 } #Capital in Milan #ITA: A new capital
		command = { type = badboy value = 5 }
		command = { type = domestic which = aristocracy value = 1 }
		command = { type = sleepevent which = 220008 } #Italy shall get no CB on Italy #MAN: The Kingdom of Italy threatens the balance
		command = { type = breakdynastic which = TOS } #Tuscany
		command = { type = breakdynastic which = SAV } #Savoy
		command = { type = breakdynastic which = SIE } #Siena
		command = { type = breakdynastic which = MOD } #Modena
		command = { type = breakdynastic which = PAR } #Parma
		command = { type = breakdynastic which = GEN } #Genoa
		command = { type = breakdynastic which = HAB } #Austria
		command = { type = addcore_claim which = 401 } #Firenze
		command = { type = addcore_claim which = 403 } #Liguria
		command = { type = addcore_claim which = 389 } #Lombardia
		command = { type = addcore_claim which = 391 } #Romagna
		command = { type = addcore_claim which = 404 } #Piemonte
		command = { type = addcore_claim which = 400 } #Siena
		command = { type = addcore_claim which = 402 } #Emilia
		command = { type = revoltrisk which = 120 value = 5 } #1.07 vanilla version
		command = { type = relation which = TOS value = -200 }
		command = { type = relation which = GEN value = -200 }
		command = { type = relation which = SAV value = -200 }
		command = { type = relation which = SIE value = -200 }
		command = { type = relation which = MOD value = -200 }
		command = { type = relation which = PAR value = -200 }
		command = { type = relation which = HAB value = -200 }
                command = { type = relation which = KOL value = -400 } #Cologne was the Archvikar of Italy
                command = { type = relation which = -6 value = -100 } #emperor
                command = { type = relation which = -7 value = -100 } #random elector of the HRE
                command = { type = relation which = -7 value = -100 } #random elector of the HRE
                command = { type = relation which = -7 value = -100 } #random elector of the HRE
		command = { type = relation which = VEN value = -150 }
		command = { type = relation which = SPA value = -100 }
		command = { type = relation which = FRA value = -100 }
		command = { type = relation which = PAP value = 100 }
		command = { 
			trigger = { 
				core_national = { province =  391 data = PAP }
			}
			type = cedeprovince which = PAP value = 391 #Romagna
		}
		command = { type = cedeprovince which = PAP value = 392 } #Marche
	}
}
#(1419-1820) The Emperor have granted the crown
event = {
	id = 220004
	trigger = {
		event = 220006 #the approval
		flag = [Ghibelline]
		atwar = no
	}
	random = no
	country = MAN
	name = "EVENTNAME220004" #The Coronation
	desc = "EVENTHIST220004"
	#-#We are now the Kingdom of Italy!

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

	action_a = {
		name = "ACTIONNAME220004A" #Long live the King!
		command = { type = treasury value = -500 }
		command = { type = vp value = 200 }
		command = { type = flagname which = "" }
		command = { type = country which = ITA }
		command = { type = add_countryculture which = italian }
		command = { type = trigger which = 193000 } #Capital in Milan #ITA: A new capital
		command = { type = badboy value = 5 }
		command = { type = domestic which = aristocracy value = 1 }
		command = { type = sleepevent which = 220008 } #Italy shall get no CB on Italy #MAN: The Kingdom of Italy threatens the balance
		command = { type = breakdynastic which = TOS } #Tuscany
		command = { type = breakdynastic which = SAV } #Savoy
		command = { type = breakdynastic which = SIE } #Siena
		command = { type = breakdynastic which = MOD } #Modena
		command = { type = breakdynastic which = PAR } #Parma
		command = { type = breakdynastic which = GEN } #Genoa
		command = { type = breakdynastic which = PAP } #Papal states
		command = { type = addcore_claim which = 401 } #Firenze
		command = { type = addcore_claim which = 403 } #Liguria
		command = { type = addcore_claim which = 389 } #Lombardia
		command = { type = addcore_claim which = 404 } #Piemonte
		command = { type = addcore_claim which = 391 } #Romagna
		command = { type = addcore_claim which = 400 } #Siena
		command = { type = addcore_claim which = 402 } #Emilia
		command = { type = revoltrisk which = 120 value = 5 } #1.07 vanilla version
		command = { type = relation which = TOS value = -200 }
		command = { type = relation which = GEN value = -200 }
		command = { type = relation which = SAV value = -200 }
		command = { type = relation which = SIE value = -200 }
		command = { type = relation which = MOD value = -200 }
		command = { type = relation which = PAR value = -200 }
		command = { type = relation which = VEN value = -150 }
		command = { type = relation which = PAP value = -150 }
		command = { type = relation which = SPA value = -100 }
		command = { type = relation which = FRA value = -100 }
		command = { type = relation which = HAB value = 100 }
		command = { type = cedeprovince which = HAB value = 327 } #Ostmarch
		command = { type = cedeprovince which = HAB value = 371 } #Tirol
		command = { type = cedeprovince which = HAB value = 369 } #Steiermark
		command = { type = cedeprovince which = HAB value = 350 } #Salzburg
	}
}
#(1419-1820) The Emperor and the Pope are forced
event = {
	id = 220005
	trigger = {
		flag = [force_majeur_coronation]
		atwar = no
	}
	random = no
	country = MAN
	name = "EVENTNAME220005" #The Coronation
	desc = "EVENTHIST220005"
	#-#We are now the Kingdom of Italy!

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

	action_a = {
		name = "ACTIONNAME220005A" #Long live the King!
		command = { type = treasury value = -100 }
		command = { type = vp value = 200 }
		command = { type = flagname which = "" }
		command = { type = country which = ITA }
		command = { type = add_countryculture which = italian }
		command = { type = trigger which = 193000 } #Capital in Milan #ITA: A new capital
		command = { type = badboy value = 5 }
		command = { type = domestic which = aristocracy value = 1 }
		command = { type = sleepevent which = 220008 } #Italy shall get no CB on Italy #MAN: The Kingdom of Italy threatens the balance
		command = { type = breakdynastic which = TOS } #Tuscany
		command = { type = breakdynastic which = SAV } #Savoy
		command = { type = breakdynastic which = SIE } #Siena
		command = { type = breakdynastic which = MOD } #Modena
		command = { type = breakdynastic which = PAR } #Parma
		command = { type = breakdynastic which = GEN } #Genoa
		command = { type = addcore_claim which = 401 } #Firenze
		command = { type = addcore_claim which = 403 } #Liguria
		command = { type = addcore_claim which = 389 } #Lombardia
		command = { type = addcore_claim which = 404 } #Piemonte
		command = { type = addcore_claim which = 391 } #Romagna
		command = { type = addcore_claim which = 400 } #Siena
		command = { type = addcore_claim which = 402 } #Emilia
		command = { type = revoltrisk which = 120 value = 5 } #1.07 vanilla version
		command = { type = relation which = TOS value = -200 }
		command = { type = relation which = GEN value = -200 }
		command = { type = relation which = SAV value = -200 }
		command = { type = relation which = SIE value = -200 }
		command = { type = relation which = MOD value = -200 }
		command = { type = relation which = PAR value = -200 }
		command = { type = relation which = HAB value = -200 }
                command = { type = relation which = KOL value = -400 } #Cologne was the Archvikar of Italy
                command = { type = relation which = -6 value = -100 } #emperor
                command = { type = relation which = -7 value = -100 } #random elector of the HRE
                command = { type = relation which = -7 value = -100 } #random elector of the HRE
                command = { type = relation which = -7 value = -100 } #random elector of the HRE
		command = { type = relation which = PAP value = -200 }
		command = { type = relation which = VEN value = -150 }
		command = { type = relation which = SPA value = -100 }
		command = { type = relation which = FRA value = -100 }
	}
}
#(1419-1660) The approval
event = {
	id = 220006 #triggered by PAP_251003 A / HAB_179012 A
	random = no
	country = MAN
	name = "EVENTNAME220006" #The path to the Crown is cleared
	desc = "EVENTHIST220006"
	#-#Our diplomat has returned, with good news. Time to prepare the coronation!

	action_a = {
		name = "ACTIONNAME220006A" #It is God's will
		command = { type = vp value = 1 }
	}
}
#(1419-1660) The rejection
event = {
	id = 220007 #triggered by PAP_251003 B / HAB_179012 B
	random = no
	country = MAN
	name = "EVENTNAME220007" #Our proposal is rejected
	desc = "EVENTHIST220007"
	#-#Our diplomat has returned, with bad news. They will not recognise our legitimacy to the Kingdom, at any price.

	action_a = {
		name = "ACTIONNAME220007A" #This must be God's will
		command = { type = vp value = -25 }
		command = { type = clrflag which = [Guelf] } #otherwise you can get two coronations
		command = { type = clrflag which = [Ghibelline] }

	}
}
#-----------------------------------------------------------------------------------------------
#(1419-1820) The Kingdom of Italy threatens the balance
event = {
	id = 220008
	trigger = { exists = ITA }
	random = no
	country = MAN
	name = "EVENTNAME220008" #The Kingdom of Italy threatens the balance
	desc = "EVENTHIST220008"
	#-#The Kingdom of Italy have formed, as an independent part of the Holy Roman Empire and, a new King have been crowned in Milan. They claim the right to all the lands in the north of the peninsula and their emergence threatens the balance.

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

	action_a = {
		name = "ACTIONNAME220008A" #Bad news
		command = { type = casusbelli which = ITA value = 120 }
	}
	action_b = {
		name = "ACTIONNAME220008B" #Seek their friendship
		command = { type = diplomats value = -1 }
		command = { type = stability value = -1 }
		command = { type = relation which = ITA value = 100 }
	}
}

#-----------------------------------------------------------------------------------------------
#Milan (MLO)
#-----------------------------------------------------------------------------------------------

#(1419-1660) The Kingdom of Italy
#The Guelf way, the Pope's party
event = {
	id = 228002
	trigger = {
		NOT = { event = 103 } #HugeEvents: Edict of Tolerance (1650-1655)
		NOT = { flag = [Ghibelline] }
		NOT = { monarch = 089001 } #Aurea Repubblica Ambrosiana #Ambrosian republic
		atwar = no
		stability = 3
		OR = {
			religion = catholic
			religion = counterreform
		}
		NOT = { badboy = 4 } #Badboy must not be higher than 3
		NOT = { vassal = { country = HAB country = MLO } } #Must not be vassalised to Austria
		NOT = { vassal = { country = PAP country = MLO } } #Must not be vassalised to the Papal States
		alliance = { country = MLO country = PAP }
		relation = { country = PAP data = 190 }
		NOT = { vassal = { country = MLO country = PAP } } #The Pope can't be forced but lured...
		OR = {
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 400 data = -1 } #Siena
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 391 data = -1 } #Romagna
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 402 data = -1 } #Emilia
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 391 data = -1 } #Romagna
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 402 data = -1 } #Emilia
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 391 data = -1 } #Romagna
				owned = { province = 402 data = -1 } #Emilia
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 391 data = -1 } #Romagna
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 402 data = -1 } #Emilia
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 391 data = -1 } #Romagna
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 402 data = -1 } #Emilia
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 391 data = -1 } #Romagna
				owned = { province = 402 data = -1 } #Emilia
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 391 data = -1 } #Romagna
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 402 data = -1 } #Emilia
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 391 data = -1 } #Romagna
				owned = { province = 402 data = -1 } #Emilia
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 391 data = -1 } #Romagna
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 391 data = -1 } #Romagna
				owned = { province = 402 data = -1 } #Emilia
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 391 data = -1 } #Romagna
			}
			AND = {
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 402 data = -1 } #Emilia
			}
			AND = {
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 391 data = -1 } #Romagna
				owned = { province = 402 data = -1 } #Emilia
			}
			AND = {
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 391 data = -1 } #Romagna
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 402 data = -1 } #Emilia
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 391 data = -1 } #Romagna
				owned = { province = 402 data = -1 } #Emilia
			}
			AND = {
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 391 data = -1 } #Romagna
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 402 data = -1 } #Emilia
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 391 data = -1 } #Romagna
				owned = { province = 402 data = -1 } #Emilia
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 391 data = -1 } #Romagna
				owned = { province = 402 data = -1 } #Emilia
			}
			AND = {
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 391 data = -1 } #Romagna
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 402 data = -1 } #Emilia
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 391 data = -1 } #Romagna
				owned = { province = 402 data = -1 } #Emilia
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 391 data = -1 } #Romagna
				owned = { province = 402 data = -1 } #Emilia
				owned = { province = 390 data = -1 } #Mantua
			}
		}
	}
	random = no
	country = MLO
	name = "EVENTNAME228002" #The Kingdom of Italy
	desc = "EVENTHIST228002"
	#-#Since the fall of the Roman Empire the title of King of Italy was sometimes used by the barbarians chiefs who ruled over the Italian peninsula until the end of the Gothic Wars and the following invasion of the Lombards, who established their own Kingdom in 568, thus separating northern Italy from the territories controlled by the Eastern Roman Empire. In 774 Pope Adrianus I, threatened by a renewed Lombard claim to the Patrimomium Petri (also know as the Duchy of Rome), called Charlemagne in Italy to protect him, thus granting the Frankish King possession of the conquered Kingdom of Lombards and the Duchy of Spoleto as its vassal in exchange for the cession to the Pope of some Lombard held territories,the future Papal States. Venice, who nominally recognized the Byzantine sovereignty, and the southernmost Lombard Duchy of Benevento were granted independence. In 781 Charlemagne's son Pippin became the first King of Italy crowned by a Pope with the Corona Ferrea (iron crown) so called from a narrow band of iron within it, said to be beaten out of one of the nails used at the Crucifixion. Even if the Empire had usually suffered dynastic and feudal disputes, only after 888, with the extinction of the Carolingian dynasty and the anarchy that followed, were the throne of Italy and the Imperial title continuously contended for by several claimants. And when in 962 Berengar, Marquis of Ivrea, one of the self-proclaimed Kings of Italy of those times, audaciously tried to seize the Papal States, Pope Johannes XII, as his predecessor did with the Franks before, invited Otto I, Duke of Saxony and King of the Germans, to come to Italy and protect him in exchange for the title of Holy Roman Emperor (translatio imperii). Since then, excluding the short period between 1002 and 1015 during which Arduino, Margrave of Ivrea, unsuccessfully tried to proclaim himself King of Italy and was then forced to abandon his claims, the 'Regnum Italicum' (the Kingdom of Italy) has been subsumed into the Holy Roman Empire. And now, after a period of great expansion, we have finally gained dominance over the lands representing the medieval Kingdom of Italy. But in order to be acknowledged Kings of Italy, we would need the official recognition of the Holy Roman Emperor, who holds the rights to the title, or the Pope, who could crown us against the will of the Emperor. Our great relations and alliance with the Pope makes it possible that he will grant us the crown. We will offer him 100 ducats to help his Holiness go against the will of the Emperor.

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

	action_a = {
		name = "ACTIONNAME228002A" #I am worthy the Crown
		command = { type = treasury value = -20 }
		command = { type = diplomats value = -1 }
		command = { type = setflag which = [Guelf] }
		command = { type = trigger which = 251005 } #The Pope's reply #PAP: The Crown of Italy
	}
	action_b = {
		name = "ACTIONNAME228002B" #Let us remain Milan
		command = { type = stability value = -1 }
	}
}
#(1419-1660) The Kingdom of Italy
#The Ghibelline way, the Emperor's party
event = {
	id = 228007
	trigger = {
		NOT = { event = 103 } #HugeEvents: Edict of Tolerance (1650-1655)
		NOT = { flag = [Guelf] }
		NOT = { monarch = 089001 } #Aurea Repubblica Ambrosiana #Ambrosian republic
		atwar = no
		stability = 3
		OR = {
			religion = catholic
			religion = counterreform
		}
 		exists = HAB
		NOT = { badboy = 6 } #Badboy must be less than 6
		NOT = { vassal = { country = HAB country = MLO } } #Must not be vassalised to Austria
		NOT = { vassal = { country = PAP country = MLO } } #Must not be vassalised to the Papal States
		NOT = { vassal = { country = FRA country = MLO } } #Must not be vassalised to the France
		alliance = { country = MLO country = HAB }
		dynastic = { country = MLO country = HAB }
		relation = { country = HAB data = 150 }
		NOT = { vassal = { country = MLO country = HAB } } #The Emperor can't be forced but lured...
		OR = {
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 400 data = -1 } #Siena
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 391 data = -1 } #Romagna
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 402 data = -1 } #Emilia
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 391 data = -1 } #Romagna
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 402 data = -1 } #Emilia
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 391 data = -1 } #Romagna
				owned = { province = 402 data = -1 } #Emilia
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 391 data = -1 } #Romagna
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 402 data = -1 } #Emilia
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 391 data = -1 } #Romagna
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 402 data = -1 } #Emilia
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 391 data = -1 } #Romagna
				owned = { province = 402 data = -1 } #Emilia
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 391 data = -1 } #Romagna
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 402 data = -1 } #Emilia
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 391 data = -1 } #Romagna
				owned = { province = 402 data = -1 } #Emilia
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 391 data = -1 } #Romagna
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 391 data = -1 } #Romagna
				owned = { province = 402 data = -1 } #Emilia
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 391 data = -1 } #Romagna
			}
			AND = {
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 402 data = -1 } #Emilia
			}
			AND = {
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 391 data = -1 } #Romagna
				owned = { province = 402 data = -1 } #Emilia
			}
			AND = {
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 391 data = -1 } #Romagna
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 402 data = -1 } #Emilia
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 391 data = -1 } #Romagna
				owned = { province = 402 data = -1 } #Emilia
			}
			AND = {
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 391 data = -1 } #Romagna
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 402 data = -1 } #Emilia
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 391 data = -1 } #Romagna
				owned = { province = 402 data = -1 } #Emilia
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 391 data = -1 } #Romagna
				owned = { province = 402 data = -1 } #Emilia
			}
			AND = {
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 391 data = -1 } #Romagna
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 402 data = -1 } #Emilia
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 391 data = -1 } #Romagna
				owned = { province = 402 data = -1 } #Emilia
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 391 data = -1 } #Romagna
				owned = { province = 402 data = -1 } #Emilia
				owned = { province = 390 data = -1 } #Mantua
			}
		}
	}
	random = no
	country = MLO
	name = "EVENTNAME228007" #The Kingdom of Italy
	desc = "EVENTHIST228007"
	#-#Since the fall of the Roman Empire the title of King of Italy was sometimes used by the barbarians chiefs who ruled over the Italian peninsula until the end of the Gothic Wars and the following invasion of the Lombards, who established their own Kingdom in 568, thus separating northern Italy from the territories controlled by the Eastern Roman Empire. In 774 Pope Adrianus I, threatened by a renewed Lombard claim to the Patrimomium Petri (also know as the Duchy of Rome), called Charlemagne in Italy to protect him, thus granting the Frankish King possession of the conquered Kingdom of Lombards and the Duchy of Spoleto as its vassal in exchange for the cession to the Pope of some Lombard held territories,the future Papal States. Venice, who nominally recognized the Byzantine sovereignty, and the southernmost Lombard Duchy of Benevento were granted independence. In 781 Charlemagne's son Pippin became the first King of Italy crowned by a Pope with the Corona Ferrea (iron crown) so called from a narrow band of iron within it, said to be beaten out of one of the nails used at the Crucifixion. Even if the Empire had usually suffered dynastic and feudal disputes, only after 888, with the extinction of the Carolingian dynasty and the anarchy that followed, were the throne of Italy and the Imperial title continuously contended for by several claimants. And when in 962 Berengar, Marquis of Ivrea, one of the self-proclaimed Kings of Italy of those times, audaciously tried to seize the Papal States, Pope Johannes XII, as his predecessor did with the Franks before, invited Otto I, Duke of Saxony and King of the Germans, to come to Italy and protect him in exchange for the title of Holy Roman Emperor (translatio imperii). Since then, excluding the short period between 1002 and 1015 during which Arduino, Margrave of Ivrea, unsuccessfully tried to proclaim himself King of Italy and was then forced to abandon his claims, the 'Regnum Italicum' (the Kingdom of Italy) has been subsumed into the Holy Roman Empire. And now, after a period of great expansion, we have finally gained dominance over the lands representing the medieval Kingdom of Italy. But in order to be acknowledged Kings of Italy, we would need the official recognition of the Holy Roman Emperor, who holds the rights to the title, or the Pope. Our great relations and alliance with the Habsburgs makes it possible that they will grant us the crown. We will offer the Emperor lavish gifts worth 500 ducats to convince him to hand over the title.

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

	action_a = {
		name = "ACTIONNAME228007A" #I am worthy the Crown
		command = { type = treasury value = -20 }
		command = { type = diplomats value = -1 }
		command = { type = setflag which = [Ghibelline] }
		command = { type = trigger which = 179038 } #Austrias reply #HAB: The Crown of Italy
	}
	action_b = {
		name = "ACTIONNAME228007B" #Let us remain Milan
		command = { type = stability value = -1 }
	}
}
#(1419-1796) The Kingdom of Italy
#The force majeur way
event = {
	id = 228008
	random = no
	country = MLO
	trigger = {
		NOT = { event = 12114 } #FRA: The French Revolutionary Wars (previously, Sabre Rattling, 1792)
		NOT = { monarch = 089001 } #Aurea Repubblica Ambrosiana #Ambrosian republic
		atwar = no
		stability = 3
		OR = {
			religion = catholic
			religion = counterreform
		}
		vassal = { country = MLO country = HAB } #Must have vassalised Austria
		vassal = { country = MLO country = PAP } #Must have vassalised the Papal States
		OR = {
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 400 data = -1 } #Siena
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 391 data = -1 } #Romagna
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 402 data = -1 } #Emilia
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 391 data = -1 } #Romagna
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 402 data = -1 } #Emilia
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 391 data = -1 } #Romagna
				owned = { province = 402 data = -1 } #Emilia
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 391 data = -1 } #Romagna
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 402 data = -1 } #Emilia
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 391 data = -1 } #Romagna
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 402 data = -1 } #Emilia
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 391 data = -1 } #Romagna
				owned = { province = 402 data = -1 } #Emilia
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 391 data = -1 } #Romagna
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 402 data = -1 } #Emilia
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 391 data = -1 } #Romagna
				owned = { province = 402 data = -1 } #Emilia
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 391 data = -1 } #Romagna
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 391 data = -1 } #Romagna
				owned = { province = 402 data = -1 } #Emilia
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 391 data = -1 } #Romagna
			}
			AND = {
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 402 data = -1 } #Emilia
			}
			AND = {
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 391 data = -1 } #Romagna
				owned = { province = 402 data = -1 } #Emilia
			}
			AND = {
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 391 data = -1 } #Romagna
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 402 data = -1 } #Emilia
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 391 data = -1 } #Romagna
				owned = { province = 402 data = -1 } #Emilia
			}
			AND = {
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 391 data = -1 } #Romagna
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 402 data = -1 } #Emilia
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 391 data = -1 } #Romagna
				owned = { province = 402 data = -1 } #Emilia
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 391 data = -1 } #Romagna
				owned = { province = 402 data = -1 } #Emilia
			}
			AND = {
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 391 data = -1 } #Romagna
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 402 data = -1 } #Emilia
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 391 data = -1 } #Romagna
				owned = { province = 402 data = -1 } #Emilia
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 391 data = -1 } #Romagna
				owned = { province = 402 data = -1 } #Emilia
				owned = { province = 390 data = -1 } #Mantua
			}
		}
	}
	name = "EVENTNAME228008" #The Kingdom of Italy
	desc = "EVENTHIST228008"
	#-#Since the fall of the Roman Empire the title of King of Italy was sometimes used by the barbarians chiefs who ruled over the Italian peninsula until the end of the Gothic Wars and the following invasion of the Lombards, who established their own Kingdom in 568, thus separating northern Italy from the territories controlled by the Eastern Roman Empire. In 774 Pope Adrianus I, threatened by a renewed Lombard claim to the Patrimomium Petri (also know as the Duchy of Rome), called Charlemagne in Italy to protect him, thus granting the Frankish King possession of the conquered Kingdom of Lombards and the Duchy of Spoleto as its vassal in exchange for the cession to the Pope of some Lombard held territories,the future Papal States. Venice, who nominally recognized the Byzantine sovereignty, and the southernmost Lombard Duchy of Benevento were granted independence. In 781 Charlemagne's son Pippin became the first King of Italy crowned by a Pope with the Corona Ferrea (iron crown) so called from a narrow band of iron within it, said to be beaten out of one of the nails used at the Crucifixion. Even if the Empire had usually suffered dynastic and feudal disputes, only after 888, with the extinction of the Carolingian dynasty and the anarchy that followed, were the throne of Italy and the Imperial title continuously contended for by several claimants. And when in 962 Berengar, Marquis of Ivrea, one of the self-proclaimed Kings of Italy of those times, audaciously tried to seize the Papal States, Pope Johannes XII, as his predecessor did with the Franks before, invited Otto I, Duke of Saxony and King of the Germans, to come to Italy and protect him in exchange for the title of Holy Roman Emperor (translatio imperii). Since then, excluding the short period between 1002 and 1015 during which Arduino, Margrave of Ivrea, unsuccessfully tried to proclaim himself King of Italy and was then forced to abandon his claims, the 'Regnum Italicum' (the Kingdom of Italy) has been subsumed into the Holy Roman Empire. And now, after a period of great expansion, we have finally gained dominance over the lands representing the medieval Kingdom of Italy. Having also vassalized Austria and put the Pope under our boot, there is now no obstacle in our path to claim the crown of the Kingdom of Italy as part of the Holy Roman Empire. Shall we start preparations for the coronation?

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

	action_a = {
		name = "ACTIONNAME228008A" #I shall take the Crown
		command = { type = badboy value = 3 }
		command = { type = treasury value = -20 }
		command = { type = setflag which = [force_majeur_coronation] }
	}
	action_b = {
		name = "ACTIONNAME228008B" #That would give us too many enemies
		command = { type = stability value = -1 }
	}
}
#(1419-1660) The approval
event = {
	id = 228009 #triggered by HAB_179038 A / PAP_251005 A
	random = no
	country = MLO
	name = "EVENTNAME228009" #The path to the Crown is cleared
	desc = "EVENTHIST228009"
	#-#Our diplomat has returned, with good news. Time to prepare the coronation!

	action_a = {
		name = "ACTIONNAME228009A" #It is God's will
		command = { type = vp value = 1 }
	}
}
#(1419-1660) The rejection
event = {
	id = 228010 #triggered by HAB_179038 B / PAP_251005 B
	random = no
	country = MLO
	name = "EVENTNAME228010" #Our proposal is rejected
	desc = "EVENTHIST228010"
	#-#Our diplomat has returned, with bad news. They will not recognise our legitimacy to the Kingdom, at any price.

	action_a = {
		name = "ACTIONNAME228010A" #This must be God's will
		command = { type = vp value = -25 }
		command = { type = clrflag which = [Guelf] } #otherwise you can get two coronations
		command = { type = clrflag which = [Ghibelline] }
	}
}
#(1419-1820) The Pope have granted the crown
event = {
	id = 228011
	trigger = {
		event = 228009 #the approval
		flag = [Guelf]
		atwar = no
	}
	random = no
	country = MLO
	name = "EVENTNAME228011" #The Coronation
	desc = "EVENTHIST228011"
	#-#We are now the Kingdom of Italy!

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

	action_a = {
		name = "ACTIONNAME228011A" #Long live the King!
		command = { type = treasury value = -100 }
		command = { type = vp value = 200 }
		command = { type = flagname which = "" }
		command = { type = country which = ITA }
		command = { type = add_countryculture which = italian }
		command = { type = provincetax which = -2 value = 1 }
		command = { type = trigger which = 193002 } #Sets the monarch to the Savoyard monarchs #ITA: Italian leaders
		command = { type = trigger which = 193061 } #Sets the monarch to the Orlans monarchs #ITA: Italian leaders
		command = { type = badboy value = 5 }
		command = { type = domestic which = aristocracy value = 1 }
		command = { type = breakdynastic which = TOS } #Tuscany
		command = { type = breakdynastic which = SAV } #Savoy
		command = { type = breakdynastic which = SIE } #Siena
		command = { type = breakdynastic which = MAN } #Mantua
		command = { type = breakdynastic which = MOD } #Modena
		command = { type = breakdynastic which = PAR } #Parma
		command = { type = breakdynastic which = GEN } #Genoa
		command = { type = breakdynastic which = HAB } #Austria
		command = { type = addcore_claim which = 401 } #Firenze
		command = { type = addcore_claim which = 403 } #Liguria
		command = { type = addcore_claim which = 390 } #Mantua
		command = { type = addcore_claim which = 391 } #Romagna
		command = { type = addcore_claim which = 404 } #Piemonte
		command = { type = addcore_claim which = 400 } #Siena
		command = { type = addcore_claim which = 402 } #Emilia
		command = { type = revoltrisk which = 120 value = 5 } #1.07 vanilla version
		command = { type = relation which = TOS value = -200 }
		command = { type = relation which = GEN value = -200 }
		command = { type = relation which = SAV value = -200 }
		command = { type = relation which = SIE value = -200 }
		command = { type = relation which = MOD value = -200 }
		command = { type = relation which = PAR value = -200 }
		command = { type = relation which = HAB value = -200 }
                command = { type = relation which = KOL value = -400 } #Cologne was the Archvikar of Italy
                command = { type = relation which = -6 value = -100 } #emperor
                command = { type = relation which = -7 value = -100 } #random elector of the HRE
                command = { type = relation which = -7 value = -100 } #random elector of the HRE
                command = { type = relation which = -7 value = -100 } #random elector of the HRE
		command = { type = relation which = MAN value = -200 }
		command = { type = relation which = VEN value = -150 }
		command = { type = relation which = SPA value = -100 }
		command = { type = relation which = FRA value = -100 }
		command = { type = relation which = PAP value = 100 }
		command = { type = cedeprovince which = PAP value = 392 } #Marche
	}
}
#(1419-1820) The Emperor have granted the crown
event = {
	id = 228012
	trigger = {
		event = 228009 #the approval
		flag = [Ghibelline]
		atwar = no
	}
	random = no
	country = MLO
	name = "EVENTNAME228012" #The Coronation
	desc = "EVENTHIST228012"
	#-#We are now the Kingdom of Italy!

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

	action_a = {
		name = "ACTIONNAME228012A" #Long live the King!
		command = { type = treasury value = -500 }
		command = { type = vp value = 200 }
		command = { type = flagname which = "" }
		command = { type = country which = ITA }
		command = { type = add_countryculture which = italian }
		command = { type = provincetax which = -2 value = 1 }
		command = { type = trigger which = 193002 } #Sets the monarch to the Savoyard monarchs #ITA: Italian leaders
		command = { type = trigger which = 193061 } #Sets the monarch to the Orlans monarchs #ITA: Italian leaders
		command = { type = badboy value = 5 }
		command = { type = domestic which = aristocracy value = 1 }
		command = { type = breakdynastic which = TOS } #Tuscany
		command = { type = breakdynastic which = SAV } #Savoy
		command = { type = breakdynastic which = SIE } #Siena
		command = { type = breakdynastic which = MAN } #Mantua
		command = { type = breakdynastic which = MOD } #Modena
		command = { type = breakdynastic which = PAR } #Parma
		command = { type = breakdynastic which = GEN } #Genoa
		command = { type = breakdynastic which = PAP } #Papal states
		command = { type = addcore_claim which = 401 } #Firenze
		command = { type = addcore_claim which = 403 } #Liguria
		command = { type = addcore_claim which = 390 } #Mantua
		command = { type = addcore_claim which = 404 } #Piemonte
		command = { type = addcore_claim which = 391 } #Romagna
		command = { type = addcore_claim which = 400 } #Siena
		command = { type = addcore_claim which = 402 } #Emilia
		command = { type = revoltrisk which = 120 value = 5 } #1.07 vanilla version
		command = { type = relation which = TOS value = -200 }
		command = { type = relation which = GEN value = -200 }
		command = { type = relation which = SAV value = -200 }
		command = { type = relation which = SIE value = -200 }
		command = { type = relation which = MOD value = -200 }
		command = { type = relation which = PAR value = -200 }
		command = { type = relation which = MAN value = -200 }
		command = { type = relation which = VEN value = -150 }
		command = { type = relation which = PAP value = -150 }
		command = { type = relation which = SPA value = -100 }
		command = { type = relation which = FRA value = -100 }
		command = { type = relation which = HAB value = 100 }
		command = { type = cedeprovince which = HAB value = 327 } #Ostmarch
		command = { type = cedeprovince which = HAB value = 371 } #Tirol
		command = { type = cedeprovince which = HAB value = 369 } #Steiermark
		command = { type = cedeprovince which = HAB value = 350 } #Salzburg
	}
}
#(1419-1820) The Emperor and the Pope are forced
event = {
	id = 228013
	trigger = {
		flag = [force_majeur_coronation]
		atwar = no
	}
	random = no
	country = MLO
	name = "EVENTNAME228013" #The Coronation
	desc = "EVENTHIST228013"
	#-#We are now the Kingdom of Italy!

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

	action_a = {
		name = "ACTIONNAME228013A" #Long live the King!
		command = { type = treasury value = -100 }
		command = { type = vp value = 200 }
		command = { type = flagname which = "" }
		command = { type = country which = ITA }
		command = { type = add_countryculture which = italian }
		command = { type = provincetax which = -2 value = 1 }
		command = { type = trigger which = 193002 } #Sets the monarch to the Savoyard monarchs #ITA: Italian leaders
		command = { type = trigger which = 193061 } #Sets the monarch to the Orlans monarchs #ITA: Italian leaders
		command = { type = badboy value = 5 }
		command = { type = domestic which = aristocracy value = 1 }
		command = { type = breakdynastic which = TOS } #Tuscany
		command = { type = breakdynastic which = SAV } #Savoy
		command = { type = breakdynastic which = SIE } #Siena
		command = { type = breakdynastic which = MAN } #Mantua
		command = { type = breakdynastic which = MOD } #Modena
		command = { type = breakdynastic which = PAR } #Parma
		command = { type = breakdynastic which = GEN } #Genoa
		command = { type = addcore_claim which = 401 } #Firenze
		command = { type = addcore_claim which = 403 } #Liguria
		command = { type = addcore_claim which = 390 } #Mantua
		command = { type = addcore_claim which = 404 } #Piemonte
		command = { type = addcore_claim which = 391 } #Romagna
		command = { type = addcore_claim which = 400 } #Siena
		command = { type = addcore_claim which = 402 } #Emilia
		command = { type = revoltrisk which = 120 value = 5 } #1.07 vanilla version
		command = { type = relation which = TOS value = -200 }
		command = { type = relation which = GEN value = -200 }
		command = { type = relation which = SAV value = -200 }
		command = { type = relation which = SIE value = -200 }
		command = { type = relation which = MOD value = -200 }
		command = { type = relation which = PAR value = -200 }
		command = { type = relation which = HAB value = -200 }
                command = { type = relation which = KOL value = -400 } #Cologne was the Archvikar of Italy
                command = { type = relation which = -6 value = -100 } #emperor
                command = { type = relation which = -7 value = -100 } #random elector of the HRE
                command = { type = relation which = -7 value = -100 } #random elector of the HRE
                command = { type = relation which = -7 value = -100 } #random elector of the HRE
		command = { type = relation which = PAP value = -200 }
		command = { type = relation which = MAN value = -200 }
		command = { type = relation which = VEN value = -150 }
		command = { type = relation which = SPA value = -100 }
		command = { type = relation which = FRA value = -100 }
	}
}

#-----------------------------------------------------------------------------------------------
#Modena (MOD)
#-----------------------------------------------------------------------------------------------

#(1419-1660) The Kingdom of Italy
#The Guelf way, the Pope's party
event = {
	id = 252000
	trigger = {
		NOT = { event = 103 } #HugeEvents: Edict of Tolerance (1650-1655)
		NOT = { flag = [Ghibelline] }
		owned = { province = 389 data = -1 } #Lombardia
		atwar = no
		stability = 3
		OR = {
			religion = catholic
			religion = counterreform
		}
		NOT = { badboy = 4 } #Badboy must not be higher than 3
		NOT = { vassal = { country = HAB country = MOD } } #Must not be vassalised to Austria
		NOT = { vassal = { country = PAP country = MOD } } #Must not be vassalised to the Papal States
		alliance = { country = MOD country = PAP }
		relation = { country = PAP data = 190 }
		NOT = { vassal = { country = MOD country = PAP } } #The Pope can't be forced but lured...
		OR = {
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 403 data = -1 } #Liguria
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 400 data = -1 } #Siena
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 402 data = -1 } #Emilia
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 400 data = -1 } #Siena
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 402 data = -1 } #Emilia
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 402 data = -1 } #Emilia
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 402 data = -1 } #Emilia
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 400 data = -1 } #Siena
			}
			AND = {
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 402 data = -1 } #Emilia
			}
			AND = {
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 402 data = -1 } #Emilia
			}
			AND = {
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 402 data = -1 } #Emilia
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 402 data = -1 } #Emilia
			}
			AND = {
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 402 data = -1 } #Emilia
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 402 data = -1 } #Emilia
				owned = { province = 390 data = -1 } #Mantua
			}
		}
	}
	random = no
	country = MOD
	name = "EVENTNAME252000" #The Kingdom of Italy
	desc = "EVENTHIST228002"
	#-#Since the fall of the Roman Empire the title of King of Italy was sometimes used by the barbarians chiefs who ruled over the Italian peninsula until the end of the Gothic Wars and the following invasion of the Lombards, who established their own Kingdom in 568, thus separating northern Italy from the territories controlled by the Eastern Roman Empire. In 774 Pope Adrianus I, threatened by a renewed Lombard claim to the Patrimomium Petri (also know as the Duchy of Rome), called Charlemagne in Italy to protect him, thus granting the Frankish King possession of the conquered Kingdom of Lombards and the Duchy of Spoleto as its vassal in exchange for the cession to the Pope of some Lombard held territories,the future Papal States. Venice, who nominally recognized the Byzantine sovereignty, and the southernmost Lombard Duchy of Benevento were granted independence. In 781 Charlemagne's son Pippin became the first King of Italy crowned by a Pope with the Corona Ferrea (iron crown) so called from a narrow band of iron within it, said to be beaten out of one of the nails used at the Crucifixion. Even if the Empire had usually suffered dynastic and feudal disputes, only after 888, with the extinction of the Carolingian dynasty and the anarchy that followed, were the throne of Italy and the Imperial title continuously contended for by several claimants. And when in 962 Berengar, Marquis of Ivrea, one of the self-proclaimed Kings of Italy of those times, audaciously tried to seize the Papal States, Pope Johannes XII, as his predecessor did with the Franks before, invited Otto I, Duke of Saxony and King of the Germans, to come to Italy and protect him in exchange for the title of Holy Roman Emperor (translatio imperii). Since then, excluding the short period between 1002 and 1015 during which Arduino, Margrave of Ivrea, unsuccessfully tried to proclaim himself King of Italy and was then forced to abandon his claims, the 'Regnum Italicum' (the Kingdom of Italy) has been subsumed into the Holy Roman Empire. And now, after a period of great expansion, we have finally gained dominance over the lands representing the medieval Kingdom of Italy. But in order to be acknowledged Kings of Italy, we would need the official recognition of the Holy Roman Emperor, who holds the rights to the title, or the Pope, who could crown us against the will of the Emperor. Our great relations and alliance with the Pope makes it possible that he will grant us the crown. We will offer him 100 ducats to help his Holiness go against the will of the Emperor.

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

	action_a = {
		name = "ACTIONNAME252000A" #I am worthy the Crown
		command = { type = treasury value = -20 }
		command = { type = diplomats value = -1 }
		command = { type = setflag which = [Guelf] }
		command = { type = trigger which = 251008 } #The Pope's reply #PAP: The Crown of Italy
	}
	action_b = {
		name = "ACTIONNAME252000B" #Let us remain Modena
		command = { type = stability value = -1 }
	}
}
#(1419-1660) The Kingdom of Italy
#The Ghibelline way, the Emperor's party
event = {
	id = 252001
	trigger = {
		NOT = { event = 103 } #HugeEvents: Edict of Tolerance (1650-1655)
		NOT = { flag = [Guelf] }
		owned = { province = 389 data = -1 } #Lombardia
		atwar = no
		stability = 3
		OR = {
			religion = catholic
			religion = counterreform
		}
 		exists = HAB
		NOT = { badboy = 6 } #Badboy must be less than 6
		NOT = { vassal = { country = HAB country = MOD } } #Must not be vassalised to Austria
		NOT = { vassal = { country = PAP country = MOD } } #Must not be vassalised to the Papal States
		NOT = { vassal = { country = FRA country = MOD } } #Must not be vassalised to the France
		alliance = { country = MOD country = HAB }
		dynastic = { country = MOD country = HAB }
		relation = { country = HAB data = 150 }
		NOT = { vassal = { country = MOD country = HAB } } #The Emperor can't be forced but lured...
		OR = {
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 403 data = -1 } #Liguria
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 400 data = -1 } #Siena
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 402 data = -1 } #Emilia
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 400 data = -1 } #Siena
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 402 data = -1 } #Emilia
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 402 data = -1 } #Emilia
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 402 data = -1 } #Emilia
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 400 data = -1 } #Siena
			}
			AND = {
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 402 data = -1 } #Emilia
			}
			AND = {
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 402 data = -1 } #Emilia
			}
			AND = {
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 402 data = -1 } #Emilia
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 402 data = -1 } #Emilia
			}
			AND = {
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 402 data = -1 } #Emilia
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 402 data = -1 } #Emilia
				owned = { province = 390 data = -1 } #Mantua
			}
		}
	}
	random = no
	country = MOD
	name = "EVENTNAME252001" #The Kingdom of Italy
	desc = "EVENTHIST228007"
	#-#Since the fall of the Roman Empire the title of King of Italy was sometimes used by the barbarians chiefs who ruled over the Italian peninsula until the end of the Gothic Wars and the following invasion of the Lombards, who established their own Kingdom in 568, thus separating northern Italy from the territories controlled by the Eastern Roman Empire. In 774 Pope Adrianus I, threatened by a renewed Lombard claim to the Patrimomium Petri (also know as the Duchy of Rome), called Charlemagne in Italy to protect him, thus granting the Frankish King possession of the conquered Kingdom of Lombards and the Duchy of Spoleto as its vassal in exchange for the cession to the Pope of some Lombard held territories,the future Papal States. Venice, who nominally recognized the Byzantine sovereignty, and the southernmost Lombard Duchy of Benevento were granted independence. In 781 Charlemagne's son Pippin became the first King of Italy crowned by a Pope with the Corona Ferrea (iron crown) so called from a narrow band of iron within it, said to be beaten out of one of the nails used at the Crucifixion. Even if the Empire had usually suffered dynastic and feudal disputes, only after 888, with the extinction of the Carolingian dynasty and the anarchy that followed, were the throne of Italy and the Imperial title continuously contended for by several claimants. And when in 962 Berengar, Marquis of Ivrea, one of the self-proclaimed Kings of Italy of those times, audaciously tried to seize the Papal States, Pope Johannes XII, as his predecessor did with the Franks before, invited Otto I, Duke of Saxony and King of the Germans, to come to Italy and protect him in exchange for the title of Holy Roman Emperor (translatio imperii). Since then, excluding the short period between 1002 and 1015 during which Arduino, Margrave of Ivrea, unsuccessfully tried to proclaim himself King of Italy and was then forced to abandon his claims, the 'Regnum Italicum' (the Kingdom of Italy) has been subsumed into the Holy Roman Empire. And now, after a period of great expansion, we have finally gained dominance over the lands representing the medieval Kingdom of Italy. But in order to be acknowledged Kings of Italy, we would need the official recognition of the Holy Roman Emperor, who holds the rights to the title, or the Pope. Our great relations and alliance with the Habsburgs makes it possible that they will grant us the crown. We will offer the Emperor lavish gifts worth 500 ducats to convince him to hand over the title.

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

	action_a = {
		name = "ACTIONNAME252001A" #I am worthy the Crown
		command = { type = treasury value = -20 }
		command = { type = diplomats value = -1 }
		command = { type = setflag which = [Ghibelline] }
		command = { type = trigger which = 179041 } #Austrias reply #HAB: The Crown of Italy
	}
	action_b = {
		name = "ACTIONNAME252001B" #Let us remain Modena
		command = { type = stability value = -1 }
	}
}
#(1419-1796) The Kingdom of Italy
#The force majeur way
event = {
	id = 252002
	random = no
	country = MOD
	trigger = {
		NOT = { event = 12114 } #FRA: The French Revolutionary Wars (previously, Sabre Rattling, 1792)
		owned = { province = 389 data = -1 } #Lombardia
		atwar = no
		stability = 3
		OR = {
			religion = catholic
			religion = counterreform
		}
		vassal = { country = MOD country = HAB } #Must have vassalised Austria
		vassal = { country = MOD country = PAP } #Must have vassalised the Papal States
		OR = {
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 403 data = -1 } #Liguria
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 400 data = -1 } #Siena
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 402 data = -1 } #Emilia
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 400 data = -1 } #Siena
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 402 data = -1 } #Emilia
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 402 data = -1 } #Emilia
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 402 data = -1 } #Emilia
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 400 data = -1 } #Siena
			}
			AND = {
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 402 data = -1 } #Emilia
			}
			AND = {
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 402 data = -1 } #Emilia
			}
			AND = {
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 402 data = -1 } #Emilia
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 402 data = -1 } #Emilia
			}
			AND = {
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 402 data = -1 } #Emilia
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 402 data = -1 } #Emilia
				owned = { province = 390 data = -1 } #Mantua
			}
		}
	}

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

	name = "EVENTNAME252002" #The Kingdom of Italy
	desc = "EVENTHIST228008"
	#-#Since the fall of the Roman Empire the title of King of Italy was sometimes used by the barbarians chiefs who ruled over the Italian peninsula until the end of the Gothic Wars and the following invasion of the Lombards, who established their own Kingdom in 568, thus separating northern Italy from the territories controlled by the Eastern Roman Empire. In 774 Pope Adrianus I, threatened by a renewed Lombard claim to the Patrimomium Petri (also know as the Duchy of Rome), called Charlemagne in Italy to protect him, thus granting the Frankish King possession of the conquered Kingdom of Lombards and the Duchy of Spoleto as its vassal in exchange for the cession to the Pope of some Lombard held territories,the future Papal States. Venice, who nominally recognized the Byzantine sovereignty, and the southernmost Lombard Duchy of Benevento were granted independence. In 781 Charlemagne's son Pippin became the first King of Italy crowned by a Pope with the Corona Ferrea (iron crown) so called from a narrow band of iron within it, said to be beaten out of one of the nails used at the Crucifixion. Even if the Empire had usually suffered dynastic and feudal disputes, only after 888, with the extinction of the Carolingian dynasty and the anarchy that followed, were the throne of Italy and the Imperial title continuously contended for by several claimants. And when in 962 Berengar, Marquis of Ivrea, one of the self-proclaimed Kings of Italy of those times, audaciously tried to seize the Papal States, Pope Johannes XII, as his predecessor did with the Franks before, invited Otto I, Duke of Saxony and King of the Germans, to come to Italy and protect him in exchange for the title of Holy Roman Emperor (translatio imperii). Since then, excluding the short period between 1002 and 1015 during which Arduino, Margrave of Ivrea, unsuccessfully tried to proclaim himself King of Italy and was then forced to abandon his claims, the 'Regnum Italicum' (the Kingdom of Italy) has been subsumed into the Holy Roman Empire. And now, after a period of great expansion, we have finally gained dominance over the lands representing the medieval Kingdom of Italy. Having also vassalized Austria and put the Pope under our boot, there is now no obstacle in our path to claim the crown of the Kingdom of Italy as part of the Holy Roman Empire. Shall we start preparations for the coronation?

	action_a = {
		name = "ACTIONNAME252002A" #I shall take the Crown
		command = { type = badboy value = 3 }
		command = { type = treasury value = -20 }
		command = { type = setflag which = [force_majeur_coronation] }
	}
	action_b = {
		name = "ACTIONNAME252002B" #That would give us too many enemies
		command = { type = stability value = -1 }
	}
}
#(1419-1820) The Pope have granted the crown
event = {
	id = 252003
	trigger = {
		event = 252006 #the approval
		flag = [Guelf]
		atwar = no
	}
	random = no
	country = MOD
	name = "EVENTNAME252003" #The Coronation
	desc = "EVENTHIST252003"
	#-#We are now the Kingdom of Italy!

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

	action_a = {
		name = "ACTIONNAME252003A" #Long live the King!
		command = { type = treasury value = -100 }
		command = { type = vp value = 200 }
		command = { type = flagname which = "" }
		command = { type = country which = ITA }
		command = { type = add_countryculture which = italian }
		command = { type = trigger which = 193000 } #Capital in Milan #ITA: A new capital
		command = { type = trigger which = 193004 } #Sets the monarch to the Modena monarchs, and adds it's leaders #ITA: Italian leaders
		command = { type = badboy value = 5 }
		command = { type = domestic which = aristocracy value = 1 }
		command = { type = sleepevent which = 252008 } #Italy shall get no CB on Italy #MOD: The Kingdom of Italy threatens the balance
		command = { type = breakdynastic which = TOS } #Tuscany
		command = { type = breakdynastic which = SAV } #Savoy
		command = { type = breakdynastic which = SIE } #Siena
		command = { type = breakdynastic which = MAN } #Mantua
		command = { type = breakdynastic which = PAR } #Parma
		command = { type = breakdynastic which = GEN } #Genoa
		command = { type = breakdynastic which = HAB } #Austria
		command = { type = addcore_claim which = 401 } #Firenze
		command = { type = addcore_claim which = 403 } #Liguria
		command = { type = addcore_claim which = 389 } #Lombardia
		command = { type = addcore_claim which = 404 } #Piemonte
		command = { type = addcore_claim which = 400 } #Siena
		command = { type = addcore_claim which = 390 } #Mantua
		command = { type = addcore_claim which = 402 } #Emilia
		command = { type = revoltrisk which = 120 value = 5 } #1.07 vanilla version
		command = { type = relation which = TOS value = -200 }
		command = { type = relation which = GEN value = -200 }
		command = { type = relation which = SAV value = -200 }
		command = { type = relation which = SIE value = -200 }
		command = { type = relation which = MAN value = -200 }
		command = { type = relation which = HAB value = -200 }
		command = { type = relation which = KOL value = -400 } #Cologne was the Archvikar of Italy
		command = { type = relation which = -6 value = -100 } #emperor
		command = { type = relation which = -7 value = -100 } #random elector of the HRE
		command = { type = relation which = -7 value = -100 } #random elector of the HRE
		command = { type = relation which = -7 value = -100 } #random elector of the HRE
		command = { type = relation which = PAR value = -200 }
		command = { type = relation which = VEN value = -150 }
		command = { type = relation which = SPA value = -100 }
		command = { type = relation which = FRA value = -100 }
		command = { type = relation which = PAP value = 100 }
		command = { type = cedeprovince which = PAP value = 392 } #Marche
	}
}
#(1419-1820) The Emperor have granted the crown
event = {
	id = 252004
	trigger = {
		event = 252006 #the approval
		flag = [Ghibelline]
		atwar = no
	}
	random = no
	country = MOD
	name = "EVENTNAME252004" #The Coronation
	desc = "EVENTHIST252004"
	#-#We are now the Kingdom of Italy!

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

	action_a = {
		name = "ACTIONNAME252004A" #Long live the King!
		command = { type = treasury value = -500 }
		command = { type = vp value = 200 }
		command = { type = flagname which = "" }
		command = { type = country which = ITA }
		command = { type = add_countryculture which = italian }
		command = { type = trigger which = 193000 } #Capital in Milan #ITA: A new capital
		command = { type = trigger which = 193004 } #Sets the monarchs to Modena's monarchs, and adds it's leaders #ITA: Italian leaders
		command = { type = badboy value = 5 }
		command = { type = domestic which = aristocracy value = 1 }
		command = { type = sleepevent which = 252008 } #Italy shall get no CB on Italy #MOD: The Kingdom of Italy threatens the balance
		command = { type = breakdynastic which = TOS } #Tuscany
		command = { type = breakdynastic which = SAV } #Savoy
		command = { type = breakdynastic which = SIE } #Siena
		command = { type = breakdynastic which = MAN } #Mantua
		command = { type = breakdynastic which = PAR } #Parma
		command = { type = breakdynastic which = GEN } #Genoa
		command = { type = breakdynastic which = PAP } #Papal states
		command = { type = addcore_claim which = 401 } #Firenze
		command = { type = addcore_claim which = 403 } #Liguria
		command = { type = addcore_claim which = 389 } #Lombardia
		command = { type = addcore_claim which = 404 } #Piemonte
		command = { type = addcore_claim which = 402 } #Emilia
		command = { type = addcore_claim which = 400 } #Siena
		command = { type = addcore_claim which = 390 } #Mantua
		command = { type = revoltrisk which = 120 value = 5 } #1.07 vanilla version
		command = { type = relation which = TOS value = -200 }
		command = { type = relation which = GEN value = -200 }
		command = { type = relation which = SAV value = -200 }
		command = { type = relation which = SIE value = -200 }
		command = { type = relation which = MAN value = -200 }
		command = { type = relation which = PAR value = -200 }
		command = { type = relation which = VEN value = -150 }
		command = { type = relation which = PAP value = -150 }
		command = { type = relation which = SPA value = -100 }
		command = { type = relation which = FRA value = -100 }
		command = { type = relation which = HAB value = 100 }
		command = { type = cedeprovince which = HAB value = 327 } #Ostmarch
		command = { type = cedeprovince which = HAB value = 371 } #Tirol
		command = { type = cedeprovince which = HAB value = 369 } #Steiermark
		command = { type = cedeprovince which = HAB value = 350 } #Salzburg
	}
}
#(1419-1820) The Emperor and the Pope are forced
event = {
	id = 252005
	trigger = {
		flag = [force_majeur_coronation]
		atwar = no
	}
	random = no
	country = MOD
	name = "EVENTNAME252005" #The Coronation
	desc = "EVENTHIST252005"
	#-#We are now the Kingdom of Italy!

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

	action_a = {
		name = "ACTIONNAME252005A" #Long live the King!
		command = { type = treasury value = -100 }
		command = { type = vp value = 200 }
		command = { type = flagname which = "" }
		command = { type = country which = ITA }
		command = { type = add_countryculture which = italian }
		command = { type = trigger which = 193000 } #Capital in Milan #ITA: A new capital
		command = { type = trigger which = 193004 } #Sets the monarchs to Modena's monarchs, and adds it's leaders #ITA: Italian leaders
		command = { type = badboy value = 5 }
		command = { type = domestic which = aristocracy value = 1 }
		command = { type = sleepevent which = 252008 } #Italy shall get no CB on Italy #MOD: The Kingdom of Italy threatens the balance
		command = { type = breakdynastic which = TOS } #Tuscany
		command = { type = breakdynastic which = SAV } #Savoy
		command = { type = breakdynastic which = SIE } #Siena
		command = { type = breakdynastic which = MAN } #Mantua
		command = { type = breakdynastic which = PAR } #Parma
		command = { type = breakdynastic which = GEN } #Genoa
		command = { type = addcore_claim which = 401 } #Firenze
		command = { type = addcore_claim which = 403 } #Liguria
		command = { type = addcore_claim which = 389 } #Lombardia
		command = { type = addcore_claim which = 404 } #Piemonte
		command = { type = addcore_claim which = 402 } #Emilia
		command = { type = addcore_claim which = 400 } #Siena
		command = { type = addcore_claim which = 390 } #Mantua
		command = { type = revoltrisk which = 120 value = 5 } #1.07 vanilla version
		command = { type = relation which = TOS value = -200 }
		command = { type = relation which = GEN value = -200 }
		command = { type = relation which = SAV value = -200 }
		command = { type = relation which = SIE value = -200 }
		command = { type = relation which = MAN value = -200 }
		command = { type = relation which = HAB value = -200 }
		command = { type = relation which = KOL value = -400 } #Cologne was the Archvikar of Italy
		command = { type = relation which = -6 value = -100 } #emperor
		command = { type = relation which = -7 value = -100 } #random elector of the HRE
		command = { type = relation which = -7 value = -100 } #random elector of the HRE
		command = { type = relation which = -7 value = -100 } #random elector of the HRE
		command = { type = relation which = PAP value = -200 }
		command = { type = relation which = PAR value = -200 }
		command = { type = relation which = VEN value = -150 }
		command = { type = relation which = SPA value = -100 }
		command = { type = relation which = FRA value = -100 }
	}
}
#(1419-1660) The approval
event = {
	id = 252006 #triggered by HAB_179041 A / PAP_251008 A
	random = no
	country = MOD
	name = "EVENTNAME252006" #The path to the Crown is cleared
	desc = "EVENTHIST252006"
	#-#Our diplomat has returned, with good news. Time to prepare the coronation!

	action_a = {
		name = "ACTIONNAME252006A" #It is God's will
		command = { type = vp value = 1 }
	}
}
#(1419-1660) The rejection
event = {
	id = 252007 #triggered by HAB_179041 B / PAP_251008 B
	random = no
	country = MOD
	name = "EVENTNAME252007" #Our proposal is rejected
	desc = "EVENTHIST252007"
	#-#Our diplomat has returned, with bad news. They will not recognise our legitimacy to the Kingdom, at any price.

	action_a = {
		name = "ACTIONNAME252007A" #This must be God's will
		command = { type = vp value = -25 }
		command = { type = clrflag which = [Guelf] } #otherwise you can get two coronations
		command = { type = clrflag which = [Ghibelline] }

	}
}
#-----------------------------------------------------------------------------------------------
#(1419-1820) The Kingdom of Italy threatens the balance
event = {
	id = 252008
	trigger = { exists = ITA }
	random = no
	country = MOD
	name = "EVENTNAME252008" #The Kingdom of Italy threatens the balance
	desc = "EVENTHIST252008"
	#-#The Kingdom of Italy have formed, as an independent part of the Holy Roman Empire and a new King have been crowned in Milan. They claim the right to all the lands in the north of the peninsula and their emergence threatens the balance.

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

	action_a = {
		name = "ACTIONNAME252008A" #Bad news
		command = { type = casusbelli which = ITA value = 120 }
	}
	action_b = {
		name = "ACTIONNAME252008B" #Seek their friendship
		command = { type = diplomats value = -1 }
		command = { type = stability value = -1 }
		command = { type = relation which = ITA value = 100 }
	}
}

#-----------------------------------------------------------------------------------------------
#Papal States (PAP)
#-----------------------------------------------------------------------------------------------

#(1419-1660) The Pope answers the proposal to crown an Italian King, Mantua version
event = {
	id = 251003 #triggered by MAN_220000 A
	random = no
	country = PAP
	name = "EVENTNAME251003" #The Crown of Italy
	desc = "EVENTHIST251003"
	#-#Our ally and good friend in Mantua have made to his land grown greatly in size and power, and it now dominates the northern part of the Italian peninsula. They now petitions us to grant them legitimate status as the Kingdom of Italy, a title within the Holy Roman Empire. The aspiring King offer us a great sum of money in the bargain but, the Emperor will not be amused if we agree to crown him.

	action_a = {
		name = "ACTIONNAME251003A" #This shall benefit us both, long live the King of Italy
		command = { type = treasury value = 100 }
		command = { type = trigger which = 220006 } #Approval #MAN: The path to the Crown is cleared.
		command = { type = relation which = HAB value = -200 }
		command = { type = breakdynastic which = HAB }
		command = { type = sleepevent which = 251004 } #The Papal States get no CB #PAP: The Kingdom of Italy threatens the balance

	}
	action_b = {
		name = "ACTIONNAME251003B" #If they want the crown, let them come and take it
		command = { type = trigger which = 220007 } #Rejection #MAN: Our proposal is rejected
	}
}
#(1419-1660) The Pope answers the proposal to crown an Italian King, Milan version
event = {
	id = 251005 #triggered by MLO_228002 A
	random = no
	country = PAP
	name = "EVENTNAME251005" #The Crown of Italy
	desc = "EVENTHIST251005"
	#-#Our ally and good friend in Milan have made to his land grown greatly in size and power, and it now dominates the northern part of the Italian peninsula. They now petitions us to grant them legitimate status as the Kingdom of Italy, a title within the Holy Roman Empire. The aspiring King offer us a great sum of money in the bargain but, the Emperor will not be amused if we agree to crown him.

	action_a = {
		name = "ACTIONNAME251005A" #This shall benefit us both, long live the King of Italy
		command = { type = treasury value = 100 }
		command = { type = trigger which = 228009 } #Approval #MLO: The path to the Crown is cleared.
		command = { type = relation which = HAB value = -200 }
		command = { type = breakdynastic which = HAB }
		command = { type = sleepevent which = 251004 } #The Papal States get no CB #PAP: The Kingdom of Italy threatens the balance

	}
	action_b = {
		name = "ACTIONNAME251005B" #If they want the crown, let them come and take it
		command = { type = trigger which = 228010 } #Rejection #MLO: Our proposal is rejected
	}
}
#(1419-1660) The Pope answers the proposal to crown an Italian King, Savoy version
event = {
	id = 251006 #triggered by SAV_275000 A
	random = no
	country = PAP
	name = "EVENTNAME251006" #The Crown of Italy
	desc = "EVENTHIST251006"
	#-#Our ally and good friend in Savoy have made to his land grown greatly in size and power, and it now dominates the northern part of the Italian peninsula. They now petitions us to grant them legitimate status as the Kingdom of Italy, a title within the Holy Roman Empire. The aspiring King offer us a great sum of money in the bargain but, the Emperor will not be amused if we agree to crown him.

	action_a = {
		name = "ACTIONNAME251006A" #This shall benefit us both, long live the King of Italy
		command = { type = treasury value = 100 }
		command = { type = trigger which = 275006 } #Approval #SAV: The path to the Crown is cleared.
		command = { type = relation which = HAB value = -200 }
		command = { type = breakdynastic which = HAB }
		command = { type = sleepevent which = 251004 } #The Papal States get no CB #PAP: The Kingdom of Italy threatens the balance

	}
	action_b = {
		name = "ACTIONNAME251006B" #If they want the crown, let them come and take it
		command = { type = trigger which = 275007 } #Rejection #SAV: Our proposal is rejected
	}
}
#(1419-1660) The Pope answers the proposal to crown an Italian King, Tuscany version
event = {
	id = 251007 #triggered by TOS_297005 A
	random = no
	country = PAP
	name = "EVENTNAME251007" #The Crown of Italy
	desc = "EVENTHIST251007"
	#-#Our ally and good friend in Florence have made to his land grown greatly in size and power, and it now dominates the northern part of the Italian peninsula. They now petitions us to grant them legitimate status as the Kingdom of Italy, a title within the Holy Roman Empire. The aspiring King offer us a great sum of money in the bargain but, the Emperor will not be amused if we agree to crown him.

	action_a = {
		name = "ACTIONNAME251007A" #This shall benefit us both, long live the King of Italy
		command = { type = treasury value = 100 }
		command = { type = trigger which = 297011 } #Approval #TOS: The path to the Crown is cleared
		command = { type = relation which = HAB value = -200 }
		command = { type = breakdynastic which = HAB }
		command = { type = sleepevent which = 251004 } #The Papal States get no CB #PAP: The Kingdom of Italy threatens the balance

	}
	action_b = {
		name = "ACTIONNAME251007B" #If they want the crown, let them come and take it
		command = { type = trigger which = 297012 } #Rejection #TOS: Our proposal is rejected
	}
}
#(1419-1660) The Pope answers the proposal to crown an Italian King, Modena version
event = {
	id = 251008 #triggered by MOD_252000 A
	random = no
	country = PAP
	name = "EVENTNAME251008" #The Crown of Italy
	desc = "EVENTHIST251008"
	#-#Our ally and good friend in Modena have made to his land grown greatly in size and power, and it now dominates the northern part of the Italian peninsula. They now petitions us to grant them legitimate status as the Kingdom of Italy, a title within the Holy Roman Empire. The aspiring King offer us a great sum of money in the bargain but, the Emperor will not be amused if we agree to crown him.

	action_a = {
		name = "ACTIONNAME251008A" #This shall benefit us both, long live the King of Italy
		command = { type = treasury value = 100 }
		command = { type = trigger which = 252006 } #Approval #MOD: The path to the Crown is cleared.
		command = { type = relation which = HAB value = -200 }
		command = { type = breakdynastic which = HAB }
		command = { type = sleepevent which = 251004 } #The Papal States get no CB #PAP: The Kingdom of Italy threatens the balance

	}
	action_b = {
		name = "ACTIONNAME251008B" #If they want the crown, let them come and take it
		command = { type = trigger which = 252007 } #Rejection #MOD: Our proposal is rejected
	}
}
#(1546-1660) The Pope answers the proposal to crown an Italian King, Parma version
event = {
	id = 251050 #triggered by PAR_390010 A
	random = no
	country = PAP
	name = "EVENTNAME251008" #The Crown of Italy
	desc = "EVENTHIST251050"
	#-#Our ally and good friend in Parma have made to his land grown greatly in size and power, and it now dominates the northern part of the Italian peninsula. They now petitions us to grant them legitimate status as the Kingdom of Italy, a title within the Holy Roman Empire. The aspiring King offer us a great sum of money in the bargain but, the Emperor will not be amused if we agree to crown him.

	action_a = {
		name = "ACTIONNAME251008A" #This shall benefit us both, long live the King of Italy
		command = { type = treasury value = 100 }
		command = { type = trigger which = 390016 } #Approval #PAR: The path to the Crown is cleared.
		command = { type = relation which = HAB value = -200 }
		command = { type = breakdynastic which = HAB }
		command = { type = sleepevent which = 251004 } #The Papal States get no CB #PAP: The Kingdom of Italy threatens the balance

	}
	action_b = {
		name = "ACTIONNAME251008B" #If they want the crown, let them come and take it
		command = { type = trigger which = 390017 } #Rejection #PAR: Our proposal is rejected
	}
}
#(1419-1820) If Italy is created and the crown was granted by the Emperor or taken by force
event = {
	id = 251004
	trigger = { exists = ITA }
	random = no
	country = PAP
	name = "EVENTNAME251004" #The Kingdom of Italy threatens the balance
	desc = "EVENTHIST251004"
	#-#The Kingdom of Italy have formed, as an independent part of the Holy Roman Empire and, a new King have been crowned in Milan. All this is against our will! They claim the right to all the lands in the north of the peninsula and their emergence threatens the balance.

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

	action_a = {
		name = "ACTIONNAME251004A" #Bad news
		command = { type = breakvassal which = ITA } #ITA may be liege
		command = { type = casusbelli which = ITA value = 120 }
	}
	action_b = {
		name = "ACTIONNAME251004B" #Seek their friendship
		command = { type = diplomats value = -1 }
		command = { type = stability value = -1 }
		command = { type = relation which = ITA value = 100 }
	}
}

#-----------------------------------------------------------------------------------------------
#Parma (PAR) - not before 1546
#-----------------------------------------------------------------------------------------------

#(1546-1660) The Kingdom of Italy
#The Guelf way, the Pope's party
event = {
	id = 390010
	trigger = {
		NOT = { event = 103 } #HugeEvents: Edict of Tolerance (1650-1655)
		NOT = { flag = [Ghibelline] }
		owned = { province = 389 data = -1 } #Lombardia
		atwar = no
		stability = 3
		OR = {
			religion = catholic
			religion = counterreform
		}
		NOT = { badboy = 4 } #Badboy must be no more than 3
		NOT = { vassal = { country = HAB country = PAR } } #Must not be vassalised to Austria
		NOT = { vassal = { country = PAP country = PAR } } #Must not be vassalised to the Papal States
		alliance = { country = PAR country = PAP }
		relation = { country = PAP data = 190 }
		NOT = { vassal = { country = PAR country = PAP } } #The Pope can't be forced but lured...
		OR = {
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 403 data = -1 } #Liguria
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 400 data = -1 } #Siena
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 391 data = -1 } #Romagna
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 400 data = -1 } #Siena
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 391 data = -1 } #Romagna
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 391 data = -1 } #Romagna
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 391 data = -1 } #Romagna
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 400 data = -1 } #Siena
				}
			AND = {
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 391 data = -1 } #Romagna
			}
			AND = {
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 391 data = -1 } #Romagna
			}
			AND = {
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 391 data = -1 } #Romagna
				owned = { province = 390 data = -1 } #Mantua
				}
			AND = {
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 391 data = -1 } #Romagna
			}
			AND = {
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 391 data = -1 } #Romagna
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 391 data = -1 } #Romagna
				owned = { province = 390 data = -1 } #Mantua
			}
		}
	}
	random = no
	country = PAR
	name = "EVENTNAME228002" #The Kingdom of Italy
	desc = "EVENTHIST228002"
	#-#Since the fall of the Roman Empire the title of King of Italy was sometimes used by the barbarians chiefs who ruled over the Italian peninsula until the end of the Gothic Wars and the following invasion of the Lombards, who established their own Kingdom in 568, thus separating northern Italy from the territories controlled by the Eastern Roman Empire. In 774 Pope Adrianus I, threatened by a renewed Lombard claim to the Patrimomium Petri (also know as the Duchy of Rome), called Charlemagne in Italy to protect him, thus granting the Frankish King possession of the conquered Kingdom of Lombards and the Duchy of Spoleto as its vassal in exchange for the cession to the Pope of some Lombard held territories,the future Papal States. Venice, who nominally recognized the Byzantine sovereignty, and the southernmost Lombard Duchy of Benevento were granted independence. In 781 Charlemagne's son Pippin became the first King of Italy crowned by a Pope with the Corona Ferrea (iron crown) so called from a narrow band of iron within it, said to be beaten out of one of the nails used at the Crucifixion. Even if the Empire had usually suffered dynastic and feudal disputes, only after 888, with the extinction of the Carolingian dynasty and the anarchy that followed, were the throne of Italy and the Imperial title continuously contended for by several claimants. And when in 962 Berengar, Marquis of Ivrea, one of the self-proclaimed Kings of Italy of those times, audaciously tried to seize the Papal States, Pope Johannes XII, as his predecessor did with the Franks before, invited Otto I, Duke of Saxony and King of the Germans, to come to Italy and protect him in exchange for the title of Holy Roman Emperor (translatio imperii). Since then, excluding the short period between 1002 and 1015 during which Arduino, Margrave of Ivrea, unsuccessfully tried to proclaim himself King of Italy and was then forced to abandon his claims, the 'Regnum Italicum' (the Kingdom of Italy) has been subsumed into the Holy Roman Empire. And now, after a period of great expansion, we have finally gained dominance over the lands representing the medieval Kingdom of Italy. But in order to be acknowledged Kings of Italy, we would need the official recognition of the Holy Roman Emperor, who holds the rights to the title, or the Pope, who could crown us against the will of the Emperor. Our great relations and alliance with the Pope makes it possible that he will grant us the crown. We will offer him 100 ducats to help his Holiness go against the will of the Emperor.

	date = { day = 1 month = January year = 1546 }
	offset = 360
	deathdate = { day = 1 month = January year = 1660 }

	action_a = {
		name = "ACTIONNAME390010A" #I am worthy the Crown
		command = { type = treasury value = -20 }
		command = { type = diplomats value = -1 }
		command = { type = setflag which = [Guelf] }
		command = { type = trigger which = 251050 } #The Pope's reply #PAP: The Crown of Italy
	}
	action_b = {
		name = "ACTIONNAME390010B" #Let us remain Parma
		command = { type = stability value = -1 }
	}
}
#(1546-1660) The Kingdom of Italy
#The Ghibelline way, the Emperor's party
event = {
	id = 390011
	trigger = {
		NOT = { event = 103 } #HugeEvents: Edict of Tolerance (1650-1655)
		NOT = { flag = [Guelf] }
		owned = { province = 389 data = -1 } #Lombardia
		atwar = no
		stability = 3
		OR = {
			religion = catholic
			religion = counterreform
		}
 		exists = HAB
		NOT = { badboy = 6 } #Badboy must be no more than 5
		NOT = { vassal = { country = HAB country = PAR } } #Must not be vassalised to Austria
		NOT = { vassal = { country = PAP country = PAR } } #Must not be vassalised to the Papal States
		NOT = { vassal = { country = FRA country = PAR } } #Must not be vassalised to France
		alliance = { country = PAR country = HAB }
		dynastic = { country = PAR country = HAB }
		relation = { country = HAB data = 150 }
		NOT = { vassal = { country = PAR country = HAB } } #The Emperor can't be forced but lured...
		OR = {
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 403 data = -1 } #Liguria
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 400 data = -1 } #Siena
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 391 data = -1 } #Romagna
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 400 data = -1 } #Siena
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 391 data = -1 } #Romagna
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 390 data = -1 } #Mantua
				}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 391 data = -1 } #Romagna
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 391 data = -1 } #Romagna
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 400 data = -1 } #Siena
			}
			AND = {
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 391 data = -1 } #Romagna
			}
			AND = {
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 391 data = -1 } #Romagna
			}
			AND = {
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 391 data = -1 } #Romagna
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 391 data = -1 } #Romagna
			}
			AND = {
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 391 data = -1 } #Romagna
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 391 data = -1 } #Romagna
				owned = { province = 390 data = -1 } #Mantua
			}
		}
	}
	random = no
	country = PAR
	name = "EVENTNAME228002" #The Kingdom of Italy
	desc = "EVENTHIST228007"
	#-#Since the fall of the Roman Empire the title of King of Italy was sometimes used by the barbarians chiefs who ruled over the Italian peninsula until the end of the Gothic Wars and the following invasion of the Lombards, who established their own Kingdom in 568, thus separating northern Italy from the territories controlled by the Eastern Roman Empire. In 774 Pope Adrianus I, threatened by a renewed Lombard claim to the Patrimomium Petri (also know as the Duchy of Rome), called Charlemagne in Italy to protect him, thus granting the Frankish King possession of the conquered Kingdom of Lombards and the Duchy of Spoleto as its vassal in exchange for the cession to the Pope of some Lombard held territories,the future Papal States. Venice, who nominally recognized the Byzantine sovereignty, and the southernmost Lombard Duchy of Benevento were granted independence. In 781 Charlemagne's son Pippin became the first King of Italy crowned by a Pope with the Corona Ferrea (iron crown) so called from a narrow band of iron within it, said to be beaten out of one of the nails used at the Crucifixion. Even if the Empire had usually suffered dynastic and feudal disputes, only after 888, with the extinction of the Carolingian dynasty and the anarchy that followed, were the throne of Italy and the Imperial title continuously contended for by several claimants. And when in 962 Berengar, Marquis of Ivrea, one of the self-proclaimed Kings of Italy of those times, audaciously tried to seize the Papal States, Pope Johannes XII, as his predecessor did with the Franks before, invited Otto I, Duke of Saxony and King of the Germans, to come to Italy and protect him in exchange for the title of Holy Roman Emperor (translatio imperii). Since then, excluding the short period between 1002 and 1015 during which Arduino, Margrave of Ivrea, unsuccessfully tried to proclaim himself King of Italy and was then forced to abandon his claims, the 'Regnum Italicum' (the Kingdom of Italy) has been subsumed into the Holy Roman Empire. And now, after a period of great expansion, we have finally gained dominance over the lands representing the medieval Kingdom of Italy. But in order to be acknowledged Kings of Italy, we would need the official recognition of the Holy Roman Emperor, who holds the rights to the title, or the Pope. Our great relations and alliance with the Habsburgs makes it possible that they will grant us the crown. We will offer the Emperor lavish gifts worth 500 ducats to convince him to hand over the title.

	date = { day = 1 month = January year = 1546 }
	offset = 360
	deathdate = { day = 1 month = january year = 1660 }

	action_a = {
		name = "ACTIONNAME390010A" #I am worthy the Crown
		command = { type = treasury value = -20 }
		command = { type = diplomats value = -1 }
		command = { type = setflag which = [Ghibelline] }
		command = { type = trigger which = 179027 } #Austrias reply #HAB: The Crown of Italy
	}
	action_b = {
		name = "ACTIONNAME390010B" #Let us remain Parma
		command = { type = stability value = -1 }
	}
}
#(1546-1796) The Kingdom of Italy
#The force majeur way
event = {
	id = 390012
	trigger = {
		NOT = { event = 12114 } # FRA: The French Revolutionary Wars (previously, Sabre Rattling, 1792)
		owned = { province = 389 data = -1 } #Lombardia
		atwar = no
		stability = 3
		OR = {
			religion = catholic
			religion = counterreform
		}
		vassal = { country = PAR country = HAB } #Must have vassalised Austria
		vassal = { country = PAR country = PAP } #Must have vassalised the Papal States
		OR = {
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 403 data = -1 } #Liguria
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 400 data = -1 } #Siena
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 391 data = -1 } #Romagna
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 400 data = -1 } #Siena
				}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 391 data = -1 } #Romagna
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 391 data = -1 } #Romagna
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 391 data = -1 } #Romagna
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 400 data = -1 } #Siena
			}
			AND = {
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 391 data = -1 } #Romagna
			}
			AND = {
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 391 data = -1 } #Romagna
			}
			AND = {
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 391 data = -1 } #Romagna
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 391 data = -1 } #Romagna
			}
			AND = {
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 391 data = -1 } #Romagna
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 391 data = -1 } #Romagna
				owned = { province = 390 data = -1 } #Mantua
			}
		}
	}
	random = no
	country = PAR
	name = "EVENTNAME228002" #The Kingdom of Italy
	desc = "EVENTHIST228008"
	#-#Since the fall of the Roman Empire the title of King of Italy was sometimes used by the barbarians chiefs who ruled over the Italian peninsula until the end of the Gothic Wars and the following invasion of the Lombards, who established their own Kingdom in 568, thus separating northern Italy from the territories controlled by the Eastern Roman Empire. In 774 Pope Adrianus I, threatened by a renewed Lombard claim to the Patrimomium Petri (also know as the Duchy of Rome), called Charlemagne in Italy to protect him, thus granting the Frankish King possession of the conquered Kingdom of Lombards and the Duchy of Spoleto as its vassal in exchange for the cession to the Pope of some Lombard held territories,the future Papal States. Venice, who nominally recognized the Byzantine sovereignty, and the southernmost Lombard Duchy of Benevento were granted independence. In 781 Charlemagne's son Pippin became the first King of Italy crowned by a Pope with the Corona Ferrea (iron crown) so called from a narrow band of iron within it, said to be beaten out of one of the nails used at the Crucifixion. Even if the Empire had usually suffered dynastic and feudal disputes, only after 888, with the extinction of the Carolingian dynasty and the anarchy that followed, were the throne of Italy and the Imperial title continuously contended for by several claimants. And when in 962 Berengar, Marquis of Ivrea, one of the self-proclaimed Kings of Italy of those times, audaciously tried to seize the Papal States, Pope Johannes XII, as his predecessor did with the Franks before, invited Otto I, Duke of Saxony and King of the Germans, to come to Italy and protect him in exchange for the title of Holy Roman Emperor (translatio imperii). Since then, excluding the short period between 1002 and 1015 during which Arduino, Margrave of Ivrea, unsuccessfully tried to proclaim himself King of Italy and was then forced to abandon his claims, the 'Regnum Italicum' (the Kingdom of Italy) has been subsumed into the Holy Roman Empire. And now, after a period of great expansion, we have finally gained dominance over the lands representing the medieval Kingdom of Italy. Having also vassalized Austria and put the Pope under our boot, there is now no obstacle in our path to claim the crown of the Kingdom of Italy as part of the Holy Roman Empire. Shall we start preparations for the coronation?

	date = { day = 1 month = January year = 1546 }
	offset = 30
	deathdate = { day = 1 month = January year = 1796 }

	action_a = {
		name = "ACTIONNAME228008A" #I shall take the Crown
		command = { type = badboy value = 3 }
		command = { type = treasury value = -20 }
		command = { type = setflag which = [force_majeur_coronation] }
	}
	action_b = {
		name = "ACTIONNAME228008B" #That would give us too many enemies
		command = { type = stability value = -1 }
	}
}
#(1546-1660) The Pope have granted the crown
event = {
	id = 390013
	trigger = {
		event = 390016 #the approval
		flag = [Guelf]
		atwar = no
	}
	random = no
	country = PAR
	name = "EVENTNAME228011" #The Coronation
	desc = "EVENTHIST228011"
	#-#We are now the Kingdom of Italy!

	date = { day = 1 month = January year = 1546 }
	offset = 90
	deathdate = { day = 1 month = January year = 1660 }

	action_a = {
		name = "ACTIONNAME228011A" #Long live the King!
		command = { type = treasury value = -100 }
		command = { type = vp value = 200 }
		command = { type = flagname which = "" }
		command = { type = country which = ITA }
		command = { type = add_countryculture which = italian }
		command = { type = trigger which = 193000 } #Capital in Milan
		command = { type = trigger which = 193059 } #Sets the monarchs to Parma's monarchs, and adds its leaders
		command = { type = badboy value = 5 }
		command = { type = domestic which = aristocracy value = 1 }
		command = { type = sleepevent which = 390000 } #PAR: The KoI threatens the balance (Italy shall get no CB on Italy)
		command = { type = breakdynastic which = TOS } #Tuscany
		command = { type = breakdynastic which = SAV } #Savoy
		command = { type = breakdynastic which = SIE } #Siena
		command = { type = breakdynastic which = MAN } #Mantua
		command = { type = breakdynastic which = MOD } #Modena
		command = { type = breakdynastic which = GEN } #Genoa
		command = { type = breakdynastic which = HAB } #Austria
		command = { type = addcore_claim which = 401 } #Firenze
		command = { type = addcore_claim which = 403 } #Liguria
		command = { type = addcore_claim which = 389 } #Lombardia
		command = { type = addcore_claim which = 404 } #Piemonte
		command = { type = addcore_claim which = 400 } #Siena
		command = { type = addcore_claim which = 390 } #Mantua
		command = { type = addcore_claim which = 391 } #Romagna
		command = { type = revoltrisk which = 120 value = 5 } #1.07 vanilla version #1.07 vanilla version
		command = { type = relation which = TOS value = -200 }
		command = { type = relation which = GEN value = -200 }
		command = { type = relation which = SAV value = -200 }
		command = { type = relation which = SIE value = -200 }
		command = { type = relation which = MAN value = -200 }
		command = { type = relation which = HAB value = -200 }			command = { type = relation which = KOL value = -400 } #Cologne was the Archvikar of Italy
		command = { type = relation which = -6 value = -100 } #emperor
		command = { type = relation which = -7 value = -100 } #random elector of the HRE
		command = { type = relation which = -7 value = -100 } #random elector of the HRE
		command = { type = relation which = -7 value = -100 } #random elector of the HRE
		command = { type = relation which = MOD value = -200 }
		command = { type = relation which = VEN value = -150 }
		command = { type = relation which = SPA value = -100 }
		command = { type = relation which = FRA value = -100 }
		command = { type = relation which = PAP value = 100 }
		command = { type = cedeprovince which = PAP value = 392 } #Marche
	}
}
#(1546-1660) The Emperor have granted the crown
event = {
	id = 390014
	trigger = {
		event = 390016 #the approval
		flag = [Ghibelline]
		atwar = no
	}
	random = no
	country = PAR
	name = "EVENTNAME228011" #The Coronation
	desc = "EVENTHIST228012"
	#-#We are now the Kingdom of Italy!

	date = { day = 1 month = January year = 1546 }
	offset = 90
	deathdate = { day = 1 month = January year = 1660 }

	action_a = {
		name = "ACTIONNAME228012A" #Long live the King!
		command = { type = treasury value = -500 }
		command = { type = vp value = 200 }
		command = { type = flagname which = "" }
		command = { type = country which = ITA }
		command = { type = add_countryculture which = italian }
		command = { type = trigger which = 193000 } #Capital in Milan
		command = { type = trigger which = 193059 } #Sets the monarchs to Parma's monarchs, and adds its leaders
		command = { type = badboy value = 5 }
		command = { type = domestic which = aristocracy value = 1 }
		command = { type = sleepevent which = 390000 } #PAR: The KoI threatens the balance (Italy shall get no CB on Italy)
		command = { type = breakdynastic which = TOS } #Tuscany
		command = { type = breakdynastic which = SAV } #Savoy
		command = { type = breakdynastic which = SIE } #Siena
		command = { type = breakdynastic which = MAN } #Mantua
		command = { type = breakdynastic which = MOD } #Modena
		command = { type = breakdynastic which = GEN } #Genoa
		command = { type = breakdynastic which = PAP } #Papal states
		command = { type = addcore_claim which = 401 } #Firenze
		command = { type = addcore_claim which = 403 } #Liguria
		command = { type = addcore_claim which = 389 } #Lombardia
		command = { type = addcore_claim which = 404 } #Piemonte
		command = { type = addcore_claim which = 391 } #Romagna
		command = { type = addcore_claim which = 400 } #Siena
		command = { type = addcore_claim which = 390 } #Mantua
		command = { type = revoltrisk which = 120 value = 5 } #1.07 vanilla version
		command = { type = relation which = TOS value = -200 }
		command = { type = relation which = GEN value = -200 }
		command = { type = relation which = SAV value = -200 }
		command = { type = relation which = SIE value = -200 }
		command = { type = relation which = MAN value = -200 }
		command = { type = relation which = MOD value = -200 }
		command = { type = relation which = VEN value = -150 }
		command = { type = relation which = PAP value = -150 }
		command = { type = relation which = SPA value = -100 }
		command = { type = relation which = FRA value = -100 }
		command = { type = relation which = HAB value = 100 }
		command = { type = cedeprovince which = HAB value = 327 } #Ostmarch
		command = { type = cedeprovince which = HAB value = 371 } #Tirol
		command = { type = cedeprovince which = HAB value = 369 } #Steiermark
		command = { type = cedeprovince which = HAB value = 350 } #Salzburg
	}
}
#(1546-1796) The Emperor and the Pope are forced
event = {
	id = 390015
	trigger = {
		flag = [force_majeur_coronation]
		atwar = no
	}
	random = no
	country = PAR
	name = "EVENTNAME228011" #The Coronation
	desc = "EVENTHIST228013"
	#-#We are now the Kingdom of Italy!

	date = { day = 1 month = January year = 1546 }
	offset = 90
	deathdate = { day = 1 month = January year = 1796 }

	action_a = {
		name = "ACTIONNAME228013A" #Long live the King!
		command = { type = treasury value = -100 }
		command = { type = vp value = 200 }
		command = { type = flagname which = "" }
		command = { type = country which = ITA }
		command = { type = add_countryculture which = italian }
		command = { type = trigger which = 193000 } #Capital in Milan
		command = { type = trigger which = 193059 } #Sets the monarchs to Parma's monarchs, and adds its leaders
		command = { type = badboy value = 5 }
		command = { type = domestic which = aristocracy value = 1 }
		command = { type = sleepevent which = 390000 } #PAR: The KoI threatens the balance (Italy shall get no CB on Italy)
		command = { type = breakdynastic which = TOS } #Tuscany
		command = { type = breakdynastic which = SAV } #Savoy
		command = { type = breakdynastic which = SIE } #Siena
		command = { type = breakdynastic which = MAN } #Mantua
		command = { type = breakdynastic which = MOD } #Modena
		command = { type = breakdynastic which = GEN } #Genoa
		command = { type = addcore_claim which = 401 } #Firenze
		command = { type = addcore_claim which = 403 } #Liguria
		command = { type = addcore_claim which = 389 } #Lombardia
		command = { type = addcore_claim which = 404 } #Piemonte
		command = { type = addcore_claim which = 391 } #Romagna
		command = { type = addcore_claim which = 400 } #Siena
		command = { type = addcore_claim which = 390 } #Mantua
		command = { type = revoltrisk which = 120 value = 5 } #1.07 vanilla version
		command = { type = relation which = TOS value = -200 }
		command = { type = relation which = GEN value = -200 }
		command = { type = relation which = SAV value = -200 }
		command = { type = relation which = SIE value = -200 }
		command = { type = relation which = MAN value = -200 }
		command = { type = relation which = HAB value = -200 }
		command = { type = relation which = KOL value = -400 } #Cologne was the Archvikar of Italy
		command = { type = relation which = -6 value = -100 } #emperor
		command = { type = relation which = -7 value = -100 } #random elector of the HRE
		command = { type = relation which = -7 value = -100 } #random elector of the HRE
		command = { type = relation which = -7 value = -100 } #random elector of the HRE
		command = { type = relation which = PAP value = -200 }
		command = { type = relation which = MOD value = -200 }
		command = { type = relation which = VEN value = -150 }
		command = { type = relation which = SPA value = -100 }
		command = { type = relation which = FRA value = -100 }
	}
}
#(1546-1660) The approval
event = {
	id = 390016 #triggered by HAB_179027 A / PAP_251050 A
	random = no
	country = PAR
	name = "EVENTNAME228009" #The path to the Crown is cleared.
	desc = "EVENTHIST228009"
	#-#Our diplomat has returned, with good news. Time to prepare the coronation!

	action_a = {
		name = "ACTIONNAME228009A" #It is God's will
		command = { type = vp value = 1 }
	}
}
#(1546-1660) The rejection
event = {
	id = 390017 #triggered by HAB_179027 B / PAP_251050 B
	random = no
	country = PAR
	name = "EVENTNAME228010" #Our proposal is rejected
	desc = "EVENTHIST228010"
	#-#Our diplomat has returned, with bad news. They will not recognise our legitimacy to the Kingdom, at any price.

	action_a = {
		name = "ACTIONNAME228010A" #This must be God's will
		command = { type = vp value = -25 }
		command = { type = clrflag which = [Guelf] } #otherwise you can get two coronations
		command = { type = clrflag which = [Ghibelline] }
	}
}
#-----------------------------------------------------------------------------------------------
#(1419-1820) The Kingdom of Italy threatens the balance
event = {
	id = 390000
	trigger = { exists = ITA }
	random = no
	country = PAR
	name = "EVENTNAME390000" #The Kingdom of Italy threatens the balance
	desc = "EVENTHIST390000"
	#-#The Kingdom of Italy have formed, as an independent part of the Holy Roman Empire and a new King have been crowned in Milan. They claim the right to all the lands in the north of the peninsula and their emergence threatens the balance.

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

	action_a = {
		name = "ACTIONNAME390000A" #Bad news
		command = { type = casusbelli which = ITA value = 120 }
	}
	action_b = {
		name = "ACTIONNAME390000B" #Seek their friendship
		command = { type = diplomats value = -1 }
		command = { type = stability value = -1 }
		command = { type = relation which = ITA value = 100 }
	}
}

#-----------------------------------------------------------------------------------------------
#Savoy (SAV)
#-----------------------------------------------------------------------------------------------

#(1419-1660) The Kingdom of Italy
#The Guelf way, the Pope's party
event = {
	id = 275000
	trigger = {
		NOT = { event = 103 } #HugeEvents: Edict of Tolerance (1650-1655)
		NOT = { flag = [Ghibelline] }
		owned = { province = 389 data = -1 } #Lombardia
		owned = { province = 404 data = -1 } #Piemonte
		atwar = no
		stability = 3
		OR = {
			religion = catholic
			religion = counterreform
		}
		NOT = { badboy = 4 } #Badboy must not be higher than 3
		NOT = { vassal = { country = HAB country = SAV } } #Must not be vassalised to Austria
		NOT = { vassal = { country = PAP country = SAV } } #Must not be vassalised to the Papal States
		alliance = { country = SAV country = PAP }
		relation = { country = PAP data = 190 }
		NOT = { vassal = { country = SAV country = PAP } } #The Pope can't be forced but lured...
		OR = {
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 390 data = -1 } #Mantua
				owned = { province = 403 data = -1 } #Liguria
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 390 data = -1 } #Mantua
				owned = { province = 400 data = -1 } #Siena
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 390 data = -1 } #Mantua
				owned = { province = 391 data = -1 } #Romagna
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 390 data = -1 } #Mantua
				owned = { province = 402 data = -1 } #Emilia
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 400 data = -1 } #Siena
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 391 data = -1 } #Romagna
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 402 data = -1 } #Emilia
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 391 data = -1 } #Romagna
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 402 data = -1 } #Emilia
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 391 data = -1 } #Romagna
				owned = { province = 402 data = -1 } #Emilia
			}
			AND = {
				owned = { province = 390 data = -1 } #Mantua
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 400 data = -1 } #Siena
			}
			AND = {
				owned = { province = 390 data = -1 } #Mantua
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 391 data = -1 } #Romagna
			}
			AND = {
				owned = { province = 390 data = -1 } #Mantua
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 402 data = -1 } #Emilia
			}
			AND = {
				owned = { province = 390 data = -1 } #Mantua
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 391 data = -1 } #Romagna
			}
			AND = {
				owned = { province = 390 data = -1 } #Mantua
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 402 data = -1 } #Emilia
			}
			AND = {
				owned = { province = 390 data = -1 } #Mantua
				owned = { province = 391 data = -1 } #Romagna
				owned = { province = 402 data = -1 } #Emilia
			}
			AND = {
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 391 data = -1 } #Romagna
			}
			AND = {
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 402 data = -1 } #Emilia
			}
			AND = {
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 391 data = -1 } #Romagna
				owned = { province = 402 data = -1 } #Emilia
			}
			AND = {
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 391 data = -1 } #Romagna
				owned = { province = 402 data = -1 } #Emilia
			}
		}
	}
	random = no
	country = SAV
	name = "EVENTNAME275000" #The Kingdom of Italy
	desc = "EVENTHIST228002"
	#-#Since the fall of the Roman Empire the title of King of Italy was sometimes used by the barbarians chiefs who ruled over the Italian peninsula until the end of the Gothic Wars and the following invasion of the Lombards, who established their own Kingdom in 568, thus separating northern Italy from the territories controlled by the Eastern Roman Empire. In 774 Pope Adrianus I, threatened by a renewed Lombard claim to the Patrimomium Petri (also know as the Duchy of Rome), called Charlemagne in Italy to protect him, thus granting the Frankish King possession of the conquered Kingdom of Lombards and the Duchy of Spoleto as its vassal in exchange for the cession to the Pope of some Lombard held territories,the future Papal States. Venice, who nominally recognized the Byzantine sovereignty, and the southernmost Lombard Duchy of Benevento were granted independence. In 781 Charlemagne's son Pippin became the first King of Italy crowned by a Pope with the Corona Ferrea (iron crown) so called from a narrow band of iron within it, said to be beaten out of one of the nails used at the Crucifixion. Even if the Empire had usually suffered dynastic and feudal disputes, only after 888, with the extinction of the Carolingian dynasty and the anarchy that followed, were the throne of Italy and the Imperial title continuously contended for by several claimants. And when in 962 Berengar, Marquis of Ivrea, one of the self-proclaimed Kings of Italy of those times, audaciously tried to seize the Papal States, Pope Johannes XII, as his predecessor did with the Franks before, invited Otto I, Duke of Saxony and King of the Germans, to come to Italy and protect him in exchange for the title of Holy Roman Emperor (translatio imperii). Since then, excluding the short period between 1002 and 1015 during which Arduino, Margrave of Ivrea, unsuccessfully tried to proclaim himself King of Italy and was then forced to abandon his claims, the 'Regnum Italicum' (the Kingdom of Italy) has been subsumed into the Holy Roman Empire. And now, after a period of great expansion, we have finally gained dominance over the lands representing the medieval Kingdom of Italy. But in order to be acknowledged Kings of Italy, we would need the official recognition of the Holy Roman Emperor, who holds the rights to the title, or the Pope, who could crown us against the will of the Emperor. Our great relations and alliance with the Pope makes it possible that he will grant us the crown. We will offer him 100 ducats to help his Holiness go against the will of the Emperor.

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

	action_a = {
		name = "ACTIONNAME275000A" #I am worthy the Crown
		command = { type = treasury value = -20 }
		command = { type = diplomats value = -1 }
		command = { type = setflag which = [Guelf] }
		command = { type = trigger which = 251006 } #The Pope's reply #PAP: The Crown of Italy
	}
	action_b = {
		name = "ACTIONNAME275000B" #Let us remain Savoy
		command = { type = stability value = -1 }
	}
}
#(1419-1660) The Kingdom of Italy
#The Ghibelline way, the Emperor's party
event = {
	id = 275001
	trigger = {
		NOT = { event = 103 } #HugeEvents: Edict of Tolerance (1650-1655)
		NOT = { flag = [Guelf] }
		owned = { province = 389 data = -1 } #Lombardia
		owned = { province = 404 data = -1 } #Piemonte
		atwar = no
		stability = 3
		OR = {
			religion = catholic
			religion = counterreform
		}
 		exists = HAB
		NOT = { badboy = 6 } #Badboy must be less than 6
		NOT = { vassal = { country = HAB country = SAV } } #Must not be vassalised to Austria
		NOT = { vassal = { country = PAP country = SAV } } #Must not be vassalised to the Papal States
		NOT = { vassal = { country = FRA country = SAV } } #Must not be vassalised to the France
		alliance = { country = SAV country = HAB }
		dynastic = { country = SAV country = HAB }
		relation = { country = HAB data = 150 }
		NOT = { vassal = { country = SAV country = HAB } } #The Emperor can't be forced but lured...
		OR = {
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 390 data = -1 } #Mantua
				owned = { province = 403 data = -1 } #Liguria
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 390 data = -1 } #Mantua
				owned = { province = 400 data = -1 } #Siena
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 390 data = -1 } #Mantua
				owned = { province = 391 data = -1 } #Romagna
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 390 data = -1 } #Mantua
				owned = { province = 402 data = -1 } #Emilia
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 400 data = -1 } #Siena
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 391 data = -1 } #Romagna
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 402 data = -1 } #Emilia
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 391 data = -1 } #Romagna
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 402 data = -1 } #Emilia
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 391 data = -1 } #Romagna
				owned = { province = 402 data = -1 } #Emilia
			}
			AND = {
				owned = { province = 390 data = -1 } #Mantua
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 400 data = -1 } #Siena
			}
			AND = {
				owned = { province = 390 data = -1 } #Mantua
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 391 data = -1 } #Romagna
			}
			AND = {
				owned = { province = 390 data = -1 } #Mantua
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 402 data = -1 } #Emilia
			}
			AND = {
				owned = { province = 390 data = -1 } #Mantua
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 391 data = -1 } #Romagna
			}
			AND = {
				owned = { province = 390 data = -1 } #Mantua
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 402 data = -1 } #Emilia
			}
			AND = {
				owned = { province = 390 data = -1 } #Mantua
				owned = { province = 391 data = -1 } #Romagna
				owned = { province = 402 data = -1 } #Emilia
			}
			AND = {
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 391 data = -1 } #Romagna
			}
			AND = {
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 402 data = -1 } #Emilia
			}
			AND = {
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 391 data = -1 } #Romagna
				owned = { province = 402 data = -1 } #Emilia
			}
			AND = {
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 391 data = -1 } #Romagna
				owned = { province = 402 data = -1 } #Emilia
			}
		}
	}
	random = no
	country = SAV
	name = "EVENTNAME275001" #The Kingdom of Italy
	desc = "EVENTHIST228007"
	#-#Since the fall of the Roman Empire the title of King of Italy was sometimes used by the barbarians chiefs who ruled over the Italian peninsula until the end of the Gothic Wars and the following invasion of the Lombards, who established their own Kingdom in 568, thus separating northern Italy from the territories controlled by the Eastern Roman Empire. In 774 Pope Adrianus I, threatened by a renewed Lombard claim to the Patrimomium Petri (also know as the Duchy of Rome), called Charlemagne in Italy to protect him, thus granting the Frankish King possession of the conquered Kingdom of Lombards and the Duchy of Spoleto as its vassal in exchange for the cession to the Pope of some Lombard held territories,the future Papal States. Venice, who nominally recognized the Byzantine sovereignty, and the southernmost Lombard Duchy of Benevento were granted independence. In 781 Charlemagne's son Pippin became the first King of Italy crowned by a Pope with the Corona Ferrea (iron crown) so called from a narrow band of iron within it, said to be beaten out of one of the nails used at the Crucifixion. Even if the Empire had usually suffered dynastic and feudal disputes, only after 888, with the extinction of the Carolingian dynasty and the anarchy that followed, were the throne of Italy and the Imperial title continuously contended for by several claimants. And when in 962 Berengar, Marquis of Ivrea, one of the self-proclaimed Kings of Italy of those times, audaciously tried to seize the Papal States, Pope Johannes XII, as his predecessor did with the Franks before, invited Otto I, Duke of Saxony and King of the Germans, to come to Italy and protect him in exchange for the title of Holy Roman Emperor (translatio imperii). Since then, excluding the short period between 1002 and 1015 during which Arduino, Margrave of Ivrea, unsuccessfully tried to proclaim himself King of Italy and was then forced to abandon his claims, the 'Regnum Italicum' (the Kingdom of Italy) has been subsumed into the Holy Roman Empire. And now, after a period of great expansion, we have finally gained dominance over the lands representing the medieval Kingdom of Italy. But in order to be acknowledged Kings of Italy, we would need the official recognition of the Holy Roman Emperor, who holds the rights to the title, or the Pope. Our great relations and alliance with the Habsburgs makes it possible that they will grant us the crown. We will offer the Emperor lavish gifts worth 500 ducats to convince him to hand over the title.

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

	action_a = {
		name = "ACTIONNAME275001A" #I am worthy the Crown
		command = { type = treasury value = -20 }
		command = { type = diplomats value = -1 }
		command = { type = setflag which = [Ghibelline] }
		command = { type = trigger which = 179039 } #Austrias reply #HAB: The Crown of Italy
	}
	action_b = {
		name = "ACTIONNAME275001B" #Let us remain Savoy
		command = { type = stability value = -1 }
	}
}
#(1419-1796) The Kingdom of Italy
#The force majeur way
event = {
	id = 275002
	random = no
	country = SAV
	trigger = {
		NOT = { event = 12114 } #FRA: The French Revolutionary Wars (previously, Sabre Rattling, 1792)
		owned = { province = 389 data = -1 } #Lombardia
		owned = { province = 404 data = -1 } #Piemonte
		atwar = no
		stability = 3
		OR = {
			religion = catholic
			religion = counterreform
		}
		vassal = { country = SAV country = HAB } #Must have vassalised Austria
		vassal = { country = SAV country = PAP } #Must have vassalised the Papal States
		OR = {
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 390 data = -1 } #Mantua
				owned = { province = 403 data = -1 } #Liguria
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 390 data = -1 } #Mantua
				owned = { province = 400 data = -1 } #Siena
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 390 data = -1 } #Mantua
				owned = { province = 391 data = -1 } #Romagna
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 390 data = -1 } #Mantua
				owned = { province = 402 data = -1 } #Emilia
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 400 data = -1 } #Siena
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 391 data = -1 } #Romagna
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 402 data = -1 } #Emilia
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 391 data = -1 } #Romagna
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 402 data = -1 } #Emilia
			}
			AND = {
				owned = { province = 401 data = -1 } #Firenze
				owned = { province = 391 data = -1 } #Romagna
				owned = { province = 402 data = -1 } #Emilia
			}
			AND = {
				owned = { province = 390 data = -1 } #Mantua
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 400 data = -1 } #Siena
			}
			AND = {
				owned = { province = 390 data = -1 } #Mantua
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 391 data = -1 } #Romagna
			}
			AND = {
				owned = { province = 390 data = -1 } #Mantua
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 402 data = -1 } #Emilia
			}
			AND = {
				owned = { province = 390 data = -1 } #Mantua
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 391 data = -1 } #Romagna
			}
			AND = {
				owned = { province = 390 data = -1 } #Mantua
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 402 data = -1 } #Emilia
			}
			AND = {
				owned = { province = 390 data = -1 } #Mantua
				owned = { province = 391 data = -1 } #Romagna
				owned = { province = 402 data = -1 } #Emilia
			}
			AND = {
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 391 data = -1 } #Romagna
			}
			AND = {
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 402 data = -1 } #Emilia
			}
			AND = {
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 391 data = -1 } #Romagna
				owned = { province = 402 data = -1 } #Emilia
			}
			AND = {
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 391 data = -1 } #Romagna
				owned = { province = 402 data = -1 } #Emilia
			}
		}
	}
	name = "EVENTNAME275002" #The Kingdom of Italy
	desc = "EVENTHIST228008"
	#-#Since the fall of the Roman Empire the title of King of Italy was sometimes used by the barbarians chiefs who ruled over the Italian peninsula until the end of the Gothic Wars and the following invasion of the Lombards, who established their own Kingdom in 568, thus separating northern Italy from the territories controlled by the Eastern Roman Empire. In 774 Pope Adrianus I, threatened by a renewed Lombard claim to the Patrimomium Petri (also know as the Duchy of Rome), called Charlemagne in Italy to protect him, thus granting the Frankish King possession of the conquered Kingdom of Lombards and the Duchy of Spoleto as its vassal in exchange for the cession to the Pope of some Lombard held territories,the future Papal States. Venice, who nominally recognized the Byzantine sovereignty, and the southernmost Lombard Duchy of Benevento were granted independence. In 781 Charlemagne's son Pippin became the first King of Italy crowned by a Pope with the Corona Ferrea (iron crown) so called from a narrow band of iron within it, said to be beaten out of one of the nails used at the Crucifixion. Even if the Empire had usually suffered dynastic and feudal disputes, only after 888, with the extinction of the Carolingian dynasty and the anarchy that followed, were the throne of Italy and the Imperial title continuously contended for by several claimants. And when in 962 Berengar, Marquis of Ivrea, one of the self-proclaimed Kings of Italy of those times, audaciously tried to seize the Papal States, Pope Johannes XII, as his predecessor did with the Franks before, invited Otto I, Duke of Saxony and King of the Germans, to come to Italy and protect him in exchange for the title of Holy Roman Emperor (translatio imperii). Since then, excluding the short period between 1002 and 1015 during which Arduino, Margrave of Ivrea, unsuccessfully tried to proclaim himself King of Italy and was then forced to abandon his claims, the 'Regnum Italicum' (the Kingdom of Italy) has been subsumed into the Holy Roman Empire. And now, after a period of great expansion, we have finally gained dominance over the lands representing the medieval Kingdom of Italy. Having also vassalized Austria and put the Pope under our boot, there is now no obstacle in our path to claim the crown of the Kingdom of Italy as part of the Holy Roman Empire. Shall we start preparations for the coronation?

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

	action_a = {
		name = "ACTIONNAME275002A" #I shall take the Crown
		command = { type = badboy value = 3 }
		command = { type = treasury value = -20 }
		command = { type = setflag which = [force_majeur_coronation] }
	}
	action_b = {
		name = "ACTIONNAME275002B" #That would give us too many enemies
		command = { type = stability value = -1 }
	}
}
#(1419-1820) The Pope have granted the crown
event = {
	id = 275003
	trigger = {
		event = 275006 #the approval
		flag = [Guelf]
		atwar = no
	}
	random = no
	country = SAV
	name = "EVENTNAME275003" #The Coronation
	desc = "EVENTHIST275003"
	#-#We are now the Kingdom of Italy!

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

	action_a = {
		name = "ACTIONNAME275003A" #Long live the King!
		command = { type = treasury value = -100 }
		command = { type = vp value = 200 }
		command = { type = flagname which = "" }
		command = { type = country which = ITA }
		command = { type = add_countryculture which = italian }
		command = { type = trigger which = 193000 } #Capital in Milan #ITA: A new capital
		command = { type = trigger which = 193005 } #Sets the monarch to the Savoy monarchs, and adds it's leaders #ITA: Italian leaders
		command = { type = badboy value = 5 }
		command = { type = domestic which = aristocracy value = 1 }
		command = { type = sleepevent which = 275008 } #Italy shall get no CB on Italy #SAV: The Kingdom of Italy threatens the balance
		command = { type = breakdynastic which = TOS } #Tuscany
		command = { type = breakdynastic which = MAN } #Savoy
		command = { type = breakdynastic which = SIE } #Siena
		command = { type = breakdynastic which = MOD } #Modena
		command = { type = breakdynastic which = PAR } #Parma
		command = { type = breakdynastic which = GEN } #Genoa
		command = { type = breakdynastic which = HAB } #Austria
		command = { type = addcore_claim which = 401 } #Firenze
		command = { type = addcore_claim which = 403 } #Liguria
		command = { type = addcore_claim which = 389 } #Lombardia
		command = { type = addcore_claim which = 390 } #Mantua
		command = { type = addcore_claim which = 391 } #Romagna
		command = { type = addcore_claim which = 400 } #Siena
		command = { type = addcore_claim which = 402 } #Emilia
		command = { type = revoltrisk which = 120 value = 5 } #1.07 vanilla version
		command = { type = relation which = TOS value = -200 }
		command = { type = relation which = GEN value = -200 }
		command = { type = relation which = MAN value = -200 }
		command = { type = relation which = SIE value = -200 }
		command = { type = relation which = MOD value = -200 }
		command = { type = relation which = PAR value = -200 }
		command = { type = relation which = HAB value = -200 }
		command = { type = relation which = KOL value = -400 } #Cologne was the Archvikar of Italy
		command = { type = relation which = -6 value = -100 } #emperor
		command = { type = relation which = -7 value = -100 } #random elector of the HRE
		command = { type = relation which = -7 value = -100 } #random elector of the HRE
		command = { type = relation which = -7 value = -100 } #random elector of the HRE
		command = { type = relation which = VEN value = -150 }
		command = { type = relation which = SPA value = -100 }
		command = { type = relation which = FRA value = -100 }
		command = { type = relation which = PAP value = 100 }
		command = { type = remove_countryculture which = French }
		command = { 
			trigger = { 
				core_national = { province =  391 data = PAP }
			}
			type = cedeprovince which = PAP value = 39 #Romagna
		}
		command = { type = cedeprovince which = PAP value = 392 } #Marche
	}
}
#(1419-1820) The Emperor have granted the crown
event = {
	id = 275004
	trigger = {
		event = 275006 #the approval
		flag = [Ghibelline]
		atwar = no
	}
	random = no
	country = SAV
	name = "EVENTNAME275004" #The Coronation
	desc = "EVENTHIST275004"
	#-#We are now the Kingdom of Italy!

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

	action_a = {
		name = "ACTIONNAME275004A" #Long live the King!
		command = { type = treasury value = -500 }
		command = { type = vp value = 200 }
		command = { type = flagname which = "" }
		command = { type = country which = ITA }
		command = { type = add_countryculture which = italian }
		command = { type = trigger which = 193000 } #Capital in Milan #ITA: A new capital
		command = { type = trigger which = 193005 } #Sets the monarch to the Savoy monarchs, and adds it's leaders #ITA: Italian leaders
		command = { type = badboy value = 5 }
		command = { type = domestic which = aristocracy value = 1 }
		command = { type = sleepevent which = 275008 } #Italy shall get no CB on Italy #SAV: The Kingdom of Italy threatens the balance
		command = { type = breakdynastic which = TOS } #Tuscany
		command = { type = breakdynastic which = MAN } #Savoy
		command = { type = breakdynastic which = SIE } #Siena
		command = { type = breakdynastic which = MOD } #Modena
		command = { type = breakdynastic which = PAR } #Parma
		command = { type = breakdynastic which = GEN } #Genoa
		command = { type = breakdynastic which = PAP } #Papal states
		command = { type = addcore_claim which = 401 } #Firenze
		command = { type = addcore_claim which = 403 } #Liguria
		command = { type = addcore_claim which = 389 } #Lombardia
		command = { type = addcore_claim which = 390 } #Mantua
		command = { type = addcore_claim which = 391 } #Romagna
		command = { type = addcore_claim which = 400 } #Siena
		command = { type = addcore_claim which = 402 } #Emilia
		command = { type = revoltrisk which = 120 value = 5 } #1.07 vanilla version
		command = { type = relation which = TOS value = -200 }
		command = { type = relation which = GEN value = -200 }
		command = { type = relation which = MAN value = -200 }
		command = { type = relation which = SIE value = -200 }
		command = { type = relation which = MOD value = -200 }
		command = { type = relation which = PAR value = -200 }
		command = { type = relation which = VEN value = -150 }
		command = { type = relation which = PAP value = -150 }
		command = { type = relation which = SPA value = -100 }
		command = { type = relation which = FRA value = -100 }
		command = { type = relation which = HAB value = 100 }
		command = { type = remove_countryculture which = French }
		command = { type = cedeprovince which = HAB value = 327 } #Ostmarch
		command = { type = cedeprovince which = HAB value = 371 } #Tirol
		command = { type = cedeprovince which = HAB value = 369 } #Steiermark
		command = { type = cedeprovince which = HAB value = 350 } #Salzburg
	}
}
#(1419-1820) The Emperor and the Pope are forced
event = {
	id = 275005
	trigger = {
		flag = [force_majeur_coronation]
		atwar = no
	}
	random = no
	country = SAV
	name = "EVENTNAME275005" #The Coronation
	desc = "EVENTHIST275005"
	#-#We are now the Kingdom of Italy!

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

	action_a = {
		name = "ACTIONNAME275005A" #Long live the King!
		command = { type = treasury value = -100 }
		command = { type = vp value = 200 }
		command = { type = flagname which = "" }
		command = { type = country which = ITA }
		command = { type = add_countryculture which = italian }
		command = { type = trigger which = 193000 } #Capital in Milan #ITA: A new capital
		command = { type = trigger which = 193005 } #Sets the monarch to the Savoy monarchs, and adds it's leaders #ITA: Italian leaders
		command = { type = badboy value = 5 }
		command = { type = domestic which = aristocracy value = 1 }
		command = { type = sleepevent which = 275008 } #Italy shall get no CB on Italy #SAV: The Kingdom of Italy threatens the balance
		command = { type = breakdynastic which = TOS } #Tuscany
		command = { type = breakdynastic which = MAN } #Savoy
		command = { type = breakdynastic which = SIE } #Siena
		command = { type = breakdynastic which = MOD } #Modena
		command = { type = breakdynastic which = PAR } #Parma
		command = { type = breakdynastic which = GEN } #Genoa
		command = { type = addcore_claim which = 401 } #Firenze
		command = { type = addcore_claim which = 403 } #Liguria
		command = { type = addcore_claim which = 389 } #Lombardia
		command = { type = addcore_claim which = 390 } #Mantua
		command = { type = addcore_claim which = 391 } #Romagna
		command = { type = addcore_claim which = 400 } #Siena
		command = { type = addcore_claim which = 402 } #Emilia
		command = { type = revoltrisk which = 120 value = 5 } #1.07 vanilla version
		command = { type = relation which = TOS value = -200 }
		command = { type = relation which = GEN value = -200 }
		command = { type = relation which = MAN value = -200 }
		command = { type = relation which = SIE value = -200 }
		command = { type = relation which = MOD value = -200 }
		command = { type = relation which = PAR value = -200 }
		command = { type = relation which = HAB value = -200 }
		command = { type = relation which = KOL value = -400 } #Cologne was the Archvikar of Italy
		command = { type = relation which = -6 value = -100 } #emperor
		command = { type = relation which = -7 value = -100 } #random elector of the HRE
		command = { type = relation which = -7 value = -100 } #random elector of the HRE
		command = { type = relation which = -7 value = -100 } #random elector of the HRE
		command = { type = relation which = PAP value = -200 }
		command = { type = relation which = VEN value = -150 }
		command = { type = relation which = SPA value = -100 }
		command = { type = relation which = FRA value = -100 }
		command = { type = remove_countryculture which = French }
	}
}
#(1419-1660) The approval
event = {
	id = 275006 #triggered by HAB_179039 A / PAP_251006 A
	random = no
	country = SAV
	name = "EVENTNAME275006" #The path to the Crown is cleared.
	desc = "EVENTHIST275006"
	#-#Our diplomat has returned, with good news. Time to prepare the coronation!

	action_a = {
		name = "ACTIONNAME275006A" #It is God's will
		command = { type = vp value = 1 }
	}
}
#(1419-1660) The rejection
event = {
	id = 275007 #triggered by HAB_179039 B / PAP_251006 B
	random = no
	country = SAV
	name = "EVENTNAME275007" #Our proposal is rejected
	desc = "EVENTHIST275007"
	#-#Our diplomat has returned, with bad news. They will not recognise our legitimacy to the Kingdom, at any price.

	action_a = {
		name = "ACTIONNAME275007A" #This must be God's will
		command = { type = vp value = -25 }
		command = { type = clrflag which = [Guelf] } #otherwise you can get two coronations
		command = { type = clrflag which = [Ghibelline] }
	}
}
#-----------------------------------------------------------------------------------------------
#(1419-1820) The Kingdom of Italy threatens the balance
event = {
	id = 275008
	trigger = {
		exists = ITA
	}
	random = no
	country = SAV
	name = "EVENTNAME275008" #The Kingdom of Italy threatens the balance
	desc = "EVENTHIST275008"
	#-#The Kingdom of Italy have formed, as an independent part of the Holy Roman Empire and, a new King have been crowned in Milan. They claim the right to all the lands in the north of the peninsula and their emergence threatens the balance.

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

	action_a = {
		name = "ACTIONNAME275008A" #Bad news
		command = { type = casusbelli which = ITA value = 120 }
	}
	action_b = {
		name = "ACTIONNAME275008B" #Seek their friendship
		command = { type = diplomats value = -1 }
		command = { type = stability value = -1 }
		command = { type = relation which = ITA value = 100 }
	}
}
#-----------------------------------------------------------------------------------------------
#(1535) Savoyards Monarchs for Kingdom of Italy
event = {
	id = 275010 #triggered by ITA_193051
	country = SAV
	name = "EVENTNAME275010" #A new King for Italy
	desc = "EVENTHIST275010"
	#-#Francesco II Maria, last King of Italy, is dying. Shall we offer to become King of Italy or just rule this Kingdom separatly?

	action_a = {
		name = "ACTIONNAME275010A" #Become King of Italy (End Game)
		command = { type = trigger which = 193052 } #ITA: A new King for Italy
	}
	action_b = {
		name = "ACTIONNAME275010B" #Rule Italy from Chambry
		command = { type = relation which = ITA value = 150 }
		command = { type = dynastic which = ITA }
		command = { type = alliance which = ITA }
		command = { type = relation which = FRA value = -25 }
	}
}
#-----------------------------------------------------------------------------------------------
#(1743) Savoyards Monarchs for Kingdom of Italy
event = {
	id = 275009 #triggered by ITA_193048
	country = SAV
	name = "EVENTNAME275009" #A new King for Italy
	desc = "EVENTHIST275009"
	#-#Giovanni, last King of Italy, is dying. Shall we offer to become King of Italy or just rule this Kingdom separatly?

	action_a = {
		name = "ACTIONNAME275009A" #Become King of Italy (End Game)
		command = { type = trigger which = 193049 } #ITA: A new King for Italy
	}
	action_b = {
		name = "ACTIONNAME275009B" #Rule Italy from Chambry
		command = { type = relation which = ITA value = 150 }
		command = { type = dynastic which = ITA }
		command = { type = alliance which = ITA }
		command = { type = relation which = FRA value = -25 }
	}
}

#-----------------------------------------------------------------------------------------------
#Siena (SIE)
#-----------------------------------------------------------------------------------------------

#(1419-1820) If Italy is created, by mnorrefeldt
event = {
	id = 257007
	trigger = { exists = ITA }
	random = no
	country = SIE
	name = "EVENTNAME257007" #The Kingdom of Italy threatens the balance
	desc = "EVENTHIST257007"
	#-#The Kingdom of Italy have formed, as an independent part of the Holy Roman Empire and, a new King have been crowned in Milan. They claim the right to all the lands in the north of the peninsula and their emergence threatens the balance.

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

	action_a = {
		name = "ACTIONNAME257007A" #Bad news
		command = { type = casusbelli which = ITA value = 120 }
	}
	action_b = {
		name = "ACTIONNAME257007B" #Seek their friendship
		command = { type = diplomats value = -1 }
		command = { type = stability value = -1 }
		command = { type = relation which = ITA value = 100 }
	}
}

#-----------------------------------------------------------------------------------------------
#Spain (SPA)
#-----------------------------------------------------------------------------------------------

#(1419-1820) If Italy is created, by mnorrefeldt
event = {
	id = 285003
	trigger = { exists = ITA }
	random = no
	country = SPA
	name = "EVENTNAME285003" #The Kingdom of Italy threatens the balance
	desc = "EVENTHIST285003"
	#-#The Kingdom of Italy have formed, as an independent part of the Holy Roman Empire and a new King have been crowned in Milan. They claim the right to all the lands in the north of the peninsula and their emergence threatens the balance.

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

	action_a = {
		name = "ACTIONNAME285003A" #Bad news
		command = { type = casusbelli which = ITA value = 120 }
	}
	action_b = {
		name = "ACTIONNAME285003B" #Seek their friendship
		command = { type = diplomats value = -1 }
		command = { type = stability value = -1 }
		command = { type = relation which = ITA value = 100 }
	}
}

#-----------------------------------------------------------------------------------------------
#Tuscany (TOS)
#-----------------------------------------------------------------------------------------------

#(1419-1660) The Kingdom of Italy
#The Guelf way, the Pope's party
event = {
	id = 297005
	trigger = {
		NOT = { event = 103 } #HugeEvents: Edict of Tolerance (1650-1655)
		NOT = { flag = [Ghibelline] }
		NOT = { monarch = 0136009 } #Repubblica
		NOT = { monarch = 0136000 } #Repubblica
		NOT = { monarch = 0136014 } #Repubblica
		owned = { province = 389 data = -1 } #Lombardia
		atwar = no
		stability = 3
		OR = {
			religion = catholic
			religion = counterreform
		}
		NOT = { badboy = 4 } #Badboy must not be higher than 3
		NOT = { vassal = { country = HAB country = TOS } } #Must not be vassalised to Austria
		NOT = { vassal = { country = PAP country = TOS } } #Must not be vassalised to the Papal States
		alliance = { country = TOS country = PAP }
		relation = { country = PAP data = 190 }
		NOT = { vassal = { country = TOS country = PAP } } #The Pope can't be forced but lured...
		OR = {
			AND = {
				owned = { province = 402 data = -1 } #Emilia
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 403 data = -1 } #Liguria
			}
			AND = {
				owned = { province = 402 data = -1 } #Emilia
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 400 data = -1 } #Siena
			}
			AND = {
				owned = { province = 402 data = -1 } #Emilia
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 391 data = -1 } #Romagna
			}
			AND = {
				owned = { province = 402 data = -1 } #Emilia
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 402 data = -1 } #Emilia
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 400 data = -1 } #Siena
			}
			AND = {
				owned = { province = 402 data = -1 } #Emilia
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 391 data = -1 } #Romagna
			}
			AND = {
				owned = { province = 402 data = -1 } #Emilia
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 402 data = -1 } #Emilia
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 391 data = -1 } #Romagna
			}
			AND = {
				owned = { province = 402 data = -1 } #Emilia
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 402 data = -1 } #Emilia
				owned = { province = 391 data = -1 } #Romagna
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 400 data = -1 } #Siena
			}
			AND = {
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 391 data = -1 } #Romagna
			}
			AND = {
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 391 data = -1 } #Romagna
			}
			AND = {
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 391 data = -1 } #Romagna
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 391 data = -1 } #Romagna
			}
			AND = {
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 391 data = -1 } #Romagna
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 391 data = -1 } #Romagna
				owned = { province = 390 data = -1 } #Mantua
			}
		}
	}
	random = no
	country = TOS
	name = "EVENTNAME297005" #The Kingdom of Italy
	desc = "EVENTHIST228002"
	#-#Since the fall of the Roman Empire the title of King of Italy was sometimes used by the barbarians chiefs who ruled over the Italian peninsula until the end of the Gothic Wars and the following invasion of the Lombards, who established their own Kingdom in 568, thus separating northern Italy from the territories controlled by the Eastern Roman Empire. In 774 Pope Adrianus I, threatened by a renewed Lombard claim to the Patrimomium Petri (also know as the Duchy of Rome), called Charlemagne in Italy to protect him, thus granting the Frankish King possession of the conquered Kingdom of Lombards and the Duchy of Spoleto as its vassal in exchange for the cession to the Pope of some Lombard held territories,the future Papal States. Venice, who nominally recognized the Byzantine sovereignty, and the southernmost Lombard Duchy of Benevento were granted independence. In 781 Charlemagne's son Pippin became the first King of Italy crowned by a Pope with the Corona Ferrea (iron crown) so called from a narrow band of iron within it, said to be beaten out of one of the nails used at the Crucifixion. Even if the Empire had usually suffered dynastic and feudal disputes, only after 888, with the extinction of the Carolingian dynasty and the anarchy that followed, were the throne of Italy and the Imperial title continuously contended for by several claimants. And when in 962 Berengar, Marquis of Ivrea, one of the self-proclaimed Kings of Italy of those times, audaciously tried to seize the Papal States, Pope Johannes XII, as his predecessor did with the Franks before, invited Otto I, Duke of Saxony and King of the Germans, to come to Italy and protect him in exchange for the title of Holy Roman Emperor (translatio imperii). Since then, excluding the short period between 1002 and 1015 during which Arduino, Margrave of Ivrea, unsuccessfully tried to proclaim himself King of Italy and was then forced to abandon his claims, the 'Regnum Italicum' (the Kingdom of Italy) has been subsumed into the Holy Roman Empire. And now, after a period of great expansion, we have finally gained dominance over the lands representing the medieval Kingdom of Italy. But in order to be acknowledged Kings of Italy, we would need the official recognition of the Holy Roman Emperor, who holds the rights to the title, or the Pope, who could crown us against the will of the Emperor. Our great relations and alliance with the Pope makes it possible that he will grant us the crown. We will offer him 100 ducats to help his Holiness go against the will of the Emperor.

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

	action_a = {
		name = "ACTIONNAME297005A" #I am worthy the Crown
		command = { type = treasury value = -20 }
		command = { type = diplomats value = -1 }
		command = { type = setflag which = [Guelf] }
		command = { type = trigger which = 251007 } #PAP: The Crown of Italy
	}
	action_b = {
		name = "ACTIONNAME297005B" #Let us remain Florence
		command = { type = stability value = -1 }
	}
}
#(1419-1660) The Kingdom of Italy
#The Ghibelline way, the Emperor's party
event = {
	id = 297006
	trigger = {
		NOT = { event = 103 } #HugeEvents: Edict of Tolerance (1650-1655)
		NOT = { flag = [Guelf] }
		NOT = { monarch = 0136009 } #Repubblica
		NOT = { monarch = 0136000 } #Repubblica
		NOT = { monarch = 0136014 } #Repubblica
		owned = { province = 389 data = -1 } #Lombardia
		atwar = no
		stability = 3
		OR = {
			religion = catholic
			religion = counterreform
		}
		exists = HAB
		NOT = { badboy = 6 } #Badboy must be less than 6
		NOT = { vassal = { country = HAB country = TOS } } #Must not be vassalised to Austria
		NOT = { vassal = { country = PAP country = TOS } } #Must not be vassalised to the Papal States
		NOT = { vassal = { country = FRA country = TOS } } #Must not be vassalised to the France
		alliance = { country = TOS country = HAB }
		dynastic = { country = TOS country = HAB }
		relation = { country = HAB data = 150 }
		NOT = { vassal = { country = TOS country = HAB } } #The Emperor can't be forced but lured...
		OR = {
			AND = {
				owned = { province = 402 data = -1 } #Emilia
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 403 data = -1 } #Liguria
			}
			AND = {
				owned = { province = 402 data = -1 } #Emilia
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 400 data = -1 } #Siena
			}
			AND = {
				owned = { province = 402 data = -1 } #Emilia
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 391 data = -1 } #Romagna
			}
			AND = {
				owned = { province = 402 data = -1 } #Emilia
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 402 data = -1 } #Emilia
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 400 data = -1 } #Siena
			}
			AND = {
				owned = { province = 402 data = -1 } #Emilia
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 391 data = -1 } #Romagna
			}
			AND = {
				owned = { province = 402 data = -1 } #Emilia
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 402 data = -1 } #Emilia
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 391 data = -1 } #Romagna
			}
			AND = {
				owned = { province = 402 data = -1 } #Emilia
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 402 data = -1 } #Emilia
				owned = { province = 391 data = -1 } #Romagna
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 400 data = -1 } #Siena
			}
			AND = {
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 391 data = -1 } #Romagna
			}
			AND = {
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 391 data = -1 } #Romagna
			}
			AND = {
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 391 data = -1 } #Romagna
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 391 data = -1 } #Romagna
			}
			AND = {
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 391 data = -1 } #Romagna
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 391 data = -1 } #Romagna
				owned = { province = 390 data = -1 } #Mantua
			}
		}
	}
	random = no
	country = TOS
	name = "EVENTNAME297006" #The Kingdom of Italy
	desc = "EVENTHIST228007"
	#-#Since the fall of the Roman Empire the title of King of Italy was sometimes used by the barbarians chiefs who ruled over the Italian peninsula until the end of the Gothic Wars and the following invasion of the Lombards, who established their own Kingdom in 568, thus separating northern Italy from the territories controlled by the Eastern Roman Empire. In 774 Pope Adrianus I, threatened by a renewed Lombard claim to the Patrimomium Petri (also know as the Duchy of Rome), called Charlemagne in Italy to protect him, thus granting the Frankish King possession of the conquered Kingdom of Lombards and the Duchy of Spoleto as its vassal in exchange for the cession to the Pope of some Lombard held territories,the future Papal States. Venice, who nominally recognized the Byzantine sovereignty, and the southernmost Lombard Duchy of Benevento were granted independence. In 781 Charlemagne's son Pippin became the first King of Italy crowned by a Pope with the Corona Ferrea (iron crown) so called from a narrow band of iron within it, said to be beaten out of one of the nails used at the Crucifixion. Even if the Empire had usually suffered dynastic and feudal disputes, only after 888, with the extinction of the Carolingian dynasty and the anarchy that followed, were the throne of Italy and the Imperial title continuously contended for by several claimants. And when in 962 Berengar, Marquis of Ivrea, one of the self-proclaimed Kings of Italy of those times, audaciously tried to seize the Papal States, Pope Johannes XII, as his predecessor did with the Franks before, invited Otto I, Duke of Saxony and King of the Germans, to come to Italy and protect him in exchange for the title of Holy Roman Emperor (translatio imperii). Since then, excluding the short period between 1002 and 1015 during which Arduino, Margrave of Ivrea, unsuccessfully tried to proclaim himself King of Italy and was then forced to abandon his claims, the 'Regnum Italicum' (the Kingdom of Italy) has been subsumed into the Holy Roman Empire. And now, after a period of great expansion, we have finally gained dominance over the lands representing the medieval Kingdom of Italy. But in order to be acknowledged Kings of Italy, we would need the official recognition of the Holy Roman Emperor, who holds the rights to the title, or the Pope. Our great relations and alliance with the Habsburgs makes it possible that they will grant us the crown. We will offer the Emperor lavish gifts worth 500 ducats to convince him to hand over the title.

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

	action_a = {
		name = "ACTIONNAME297006A" #I am worthy the Crown
		command = { type = treasury value = -20 }
		command = { type = diplomats value = -1 }
		command = { type = setflag which = [Ghibelline] }
		command = { type = trigger which = 179040 } #Austrias reply #HAB: The Crown of Italy
	}
	action_b = {
		name = "ACTIONNAME297006B" #Let us remain Florence
		command = { type = stability value = -1 }
	}
}
#(1419-1796) The Kingdom of Italy
#The force majeur way
event = {
	id = 297007
	trigger = {
		NOT = { event = 12114 } #FRA: The French Revolutionary Wars (previously, Sabre Rattling, 1792)
		NOT = { monarch = 0136009 } #Repubblica
		NOT = { monarch = 0136000 } #Repubblica
		NOT = { monarch = 0136014 } #Repubblica
		owned = { province = 389 data = -1 } #Lombardia
		atwar = no
		stability = 3
		OR = {
			religion = catholic
			religion = counterreform
		}
		vassal = { country = TOS country = HAB } #Must have vassalised Austria
		vassal = { country = TOS country = PAP } #Must have vassalised the Papal States
		OR = {
			AND = {
				owned = { province = 402 data = -1 } #Emilia
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 403 data = -1 } #Liguria
			}
			AND = {
				owned = { province = 402 data = -1 } #Emilia
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 400 data = -1 } #Siena
			}
			AND = {
				owned = { province = 402 data = -1 } #Emilia
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 391 data = -1 } #Romagna
			}
			AND = {
				owned = { province = 402 data = -1 } #Emilia
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 402 data = -1 } #Emilia
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 400 data = -1 } #Siena
			}
			AND = {
				owned = { province = 402 data = -1 } #Emilia
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 391 data = -1 } #Romagna
			}
			AND = {
				owned = { province = 402 data = -1 } #Emilia
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 402 data = -1 } #Emilia
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 391 data = -1 } #Romagna
			}
			AND = {
				owned = { province = 402 data = -1 } #Emilia
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 402 data = -1 } #Emilia
				owned = { province = 391 data = -1 } #Romagna
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 400 data = -1 } #Siena
			}
			AND = {
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 391 data = -1 } #Romagna
			}
			AND = {
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 391 data = -1 } #Romagna
			}
			AND = {
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 404 data = -1 } #Piemonte
				owned = { province = 391 data = -1 } #Romagna
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 391 data = -1 } #Romagna
			}
			AND = {
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 403 data = -1 } #Liguria
				owned = { province = 391 data = -1 } #Romagna
				owned = { province = 390 data = -1 } #Mantua
			}
			AND = {
				owned = { province = 400 data = -1 } #Siena
				owned = { province = 391 data = -1 } #Romagna
				owned = { province = 390 data = -1 } #Mantua
			}
		}
	}
	random = no
	country = TOS
	name = "EVENTNAME297007" #The Kingdom of Italy
	desc = "EVENTHIST228008"
	#-#Since the fall of the Roman Empire the title of King of Italy was sometimes used by the barbarians chiefs who ruled over the Italian peninsula until the end of the Gothic Wars and the following invasion of the Lombards, who established their own Kingdom in 568, thus separating northern Italy from the territories controlled by the Eastern Roman Empire. In 774 Pope Adrianus I, threatened by a renewed Lombard claim to the Patrimomium Petri (also know as the Duchy of Rome), called Charlemagne in Italy to protect him, thus granting the Frankish King possession of the conquered Kingdom of Lombards and the Duchy of Spoleto as its vassal in exchange for the cession to the Pope of some Lombard held territories,the future Papal States. Venice, who nominally recognized the Byzantine sovereignty, and the southernmost Lombard Duchy of Benevento were granted independence. In 781 Charlemagne's son Pippin became the first King of Italy crowned by a Pope with the Corona Ferrea (iron crown) so called from a narrow band of iron within it, said to be beaten out of one of the nails used at the Crucifixion. Even if the Empire had usually suffered dynastic and feudal disputes, only after 888, with the extinction of the Carolingian dynasty and the anarchy that followed, were the throne of Italy and the Imperial title continuously contended for by several claimants. And when in 962 Berengar, Marquis of Ivrea, one of the self-proclaimed Kings of Italy of those times, audaciously tried to seize the Papal States, Pope Johannes XII, as his predecessor did with the Franks before, invited Otto I, Duke of Saxony and King of the Germans, to come to Italy and protect him in exchange for the title of Holy Roman Emperor (translatio imperii). Since then, excluding the short period between 1002 and 1015 during which Arduino, Margrave of Ivrea, unsuccessfully tried to proclaim himself King of Italy and was then forced to abandon his claims, the 'Regnum Italicum' (the Kingdom of Italy) has been subsumed into the Holy Roman Empire. And now, after a period of great expansion, we have finally gained dominance over the lands representing the medieval Kingdom of Italy. Having also vassalized Austria and put the Pope under our boot, there is now no obstacle in our path to claim the crown of the Kingdom of Italy as part of the Holy Roman Empire. Shall we start preparations for the coronation?

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

	action_a = {
		name = "ACTIONNAME297007A" #I shall take the Crown
		command = { type = badboy value = 3 }
		command = { type = treasury value = -20 }
		command = { type = setflag which = [force_majeur_coronation] }
	}
	action_b = {
		name = "ACTIONNAME297007B" #That would give us too many enemies
		command = { type = stability value = -1 }
	}
}
#(1419-1820) The Pope have granted the crown
event = {
	id = 297008
	trigger = {
		event = 297011 #the approval
		flag = [Guelf]
		atwar = no
	}
	random = no
	country = TOS
	name = "EVENTNAME297008" #The Coronation
	desc = "EVENTHIST297008"
	#-#We are now the Kingdom of Italy!

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

	action_a = {
		name = "ACTIONNAME297008A" #Long live the King!
		command = { type = treasury value = -100 }
		command = { type = vp value = 200 }
		command = { type = flagname which = "" }
		command = { type = country which = ITA }
		command = { type = remove_countryculture which = italian }
		command = { type = add_countryculture which = lombard } #to have them sorted
		command = { type = add_countryculture which = italian }
		command = { type = trigger which = 193000 } #Capital in Milan #ITA: A new capital
		command = { type = trigger which = 193003 } #Sets the monarch to the Florentine monarchs, and adds it's leaders #ITA: Italian leaders
		command = { type = badboy value = 5 }
		command = { type = domestic which = aristocracy value = 1 }
		command = { type = sleepevent which = 297013 } #Italy shall get no CB on Italy #TOS: The Kingdom of Italy threatens the balance
		command = { type = breakdynastic which = MOD } #Modena
		command = { type = breakdynastic which = SAV } #Savoy
		command = { type = breakdynastic which = SIE } #Siena
		command = { type = breakdynastic which = PAR } #Parma
		command = { type = breakdynastic which = MAN } #Mantua
		command = { type = breakdynastic which = GEN } #Genoa
		command = { type = breakdynastic which = HAB } #Austria
		command = { type = addcore_claim which = 402 } #Emilia
		command = { type = addcore_claim which = 403 } #Liguria
		command = { type = addcore_claim which = 389 } #Lombardia
		command = { type = addcore_claim which = 391 } #Romagna
		command = { type = addcore_claim which = 404 } #Piemonte
		command = { type = addcore_claim which = 400 } #Siena
		command = { type = addcore_claim which = 390 } #Mantua
		command = { type = revoltrisk which = 120 value = 5 } #1.07 vanilla version
		command = { type = relation which = MOD value = -200 }
		command = { type = relation which = GEN value = -200 }
		command = { type = relation which = SAV value = -200 }
		command = { type = relation which = SIE value = -200 }
		command = { type = relation which = MAN value = -200 }
		command = { type = relation which = PAR value = -200 }
		command = { type = relation which = HAB value = -200 }
		command = { type = relation which = KOL value = -400 } #Cologne was the Archvikar of Italy
		command = { type = relation which = -6 value = -100 } #emperor
		command = { type = relation which = -7 value = -100 } #random elector of the HRE
		command = { type = relation which = -7 value = -100 } #random elector of the HRE
		command = { type = relation which = -7 value = -100 } #random elector of the HRE
		command = { type = relation which = VEN value = -150 }
		command = { type = relation which = SPA value = -100 }
		command = { type = relation which = FRA value = -100 }
		command = { type = relation which = PAP value = 100 }
		command = { 
			trigger = { 
				core_national = { province =  391 data = PAP }
			}
			type = cedeprovince which = PAP value = 39 #Romagna
		}
		command = { type = cedeprovince which = PAP value = 392 } #Marche
	}
}
#(1419-1820) The Emperor have granted the crown
event = {
	id = 297009
	trigger = {
		event = 297011 #the approval
		flag = [Ghibelline]
		atwar = no
	}
	random = no
	country = TOS
	name = "EVENTNAME297009" #The Coronation
	desc = "EVENTHIST297009"
	#-#We are now the Kingdom of Italy!

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

	action_a = {
		name = "ACTIONNAME297009A" #Long live the King!
		command = { type = treasury value = -500 }
		command = { type = vp value = 200 }
		command = { type = flagname which = "" }
		command = { type = country which = ITA }
		command = { type = remove_countryculture which = italian }
		command = { type = add_countryculture which = lombard } #to have them sorted
		command = { type = add_countryculture which = italian }
		command = { type = trigger which = 193000 } #Capital in Milan #ITA: A new capital
		command = { type = trigger which = 193003 } #Sets the monarchs to Florentine monarchs, and adds it's leaders #ITA: Italian leaders
		command = { type = badboy value = 5 }
		command = { type = domestic which = aristocracy value = 1 }
		command = { type = sleepevent which = 297013 } #Italy shall get no CB on Italy #TOS: The Kingdom of Italy threatens the balance
		command = { type = breakdynastic which = MOD } #Modena
		command = { type = breakdynastic which = SAV } #Savoy
		command = { type = breakdynastic which = SIE } #Siena
		command = { type = breakdynastic which = PAR } #Parma
		command = { type = breakdynastic which = MAN } #Mantua
		command = { type = breakdynastic which = GEN } #Genoa
		command = { type = breakdynastic which = PAP } #Papal states
		command = { type = addcore_claim which = 402 } #Emilia
		command = { type = addcore_claim which = 403 } #Liguria
		command = { type = addcore_claim which = 389 } #Lombardia
		command = { type = addcore_claim which = 404 } #Piemonte
		command = { type = addcore_claim which = 391 } #Romagna
		command = { type = addcore_claim which = 400 } #Siena
		command = { type = addcore_claim which = 390 } #Mantua
		command = { type = revoltrisk which = 120 value = 5 } #1.07 vanilla version
		command = { type = relation which = MOD value = -200 }
		command = { type = relation which = GEN value = -200 }
		command = { type = relation which = SAV value = -200 }
		command = { type = relation which = SIE value = -200 }
		command = { type = relation which = MAN value = -200 }
		command = { type = relation which = PAR value = -200 }
		command = { type = relation which = VEN value = -150 }
		command = { type = relation which = PAP value = -150 }
		command = { type = relation which = SPA value = -100 }
		command = { type = relation which = FRA value = -100 }
		command = { type = relation which = HAB value = 100 }
		command = { type = cedeprovince which = HAB value = 327 } #Ostmarch
		command = { type = cedeprovince which = HAB value = 371 } #Tirol
		command = { type = cedeprovince which = HAB value = 369 } #Steiermark
		command = { type = cedeprovince which = HAB value = 350 } #Salzburg
	}
}
#(1419-1820) The Emperor and the Pope are forced
event = {
	id = 297010
	trigger = {
		flag = [force_majeur_coronation]
		atwar = no
	}
	random = no
	country = Tos
	name = "EVENTNAME297010" #The Coronation
	desc = "EVENTHIST297010"
	#-#We are now the Kingdom of Italy!

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

	action_a = {
		name = "ACTIONNAME297010A" #Long live the King!
		command = { type = treasury value = -100 }
		command = { type = vp value = 200 }
		command = { type = flagname which = "" }
		command = { type = country which = ITA }
		command = { type = remove_countryculture which = italian }
		command = { type = add_countryculture which = lombard } #to have them sorted
		command = { type = add_countryculture which = italian }
		command = { type = trigger which = 193000 } #Capital in Milan #ITA: A new capital
		command = { type = trigger which = 193003 } #Sets the monarchs to Florentine monarchs, and adds it's leaders #ITA: Italian leaders
		command = { type = badboy value = 5 }
		command = { type = domestic which = aristocracy value = 1 }
		command = { type = sleepevent which = 297013 } #Italy shall get no CB on Italy #TOS: The Kingdom of Italy threatens the balance
		command = { type = breakdynastic which = MOD } #Modena
		command = { type = breakdynastic which = SAV } #Savoy
		command = { type = breakdynastic which = SIE } #Siena
		command = { type = breakdynastic which = PAR } #Parma
		command = { type = breakdynastic which = MAN } #Mantua
		command = { type = breakdynastic which = GEN } #Genoa
		command = { type = addcore_claim which = 402 } #Emilia
		command = { type = addcore_claim which = 403 } #Liguria
		command = { type = addcore_claim which = 389 } #Lombardia
		command = { type = addcore_claim which = 404 } #Piemonte
		command = { type = addcore_claim which = 391 } #Romagna
		command = { type = addcore_claim which = 400 } #Siena
		command = { type = addcore_claim which = 390 } #Mantua
		command = { type = revoltrisk which = 120 value = 5 } #1.07 vanilla version
		command = { type = relation which = MOD value = -200 }
		command = { type = relation which = GEN value = -200 }
		command = { type = relation which = SAV value = -200 }
		command = { type = relation which = SIE value = -200 }
		command = { type = relation which = MAN value = -200 }
		command = { type = relation which = PAR value = -200 }
		command = { type = relation which = HAB value = -200 }
		command = { type = relation which = KOL value = -400 } #Cologne was the Archvikar of Italy
		command = { type = relation which = -6 value = -100 } #emperor
		command = { type = relation which = -7 value = -100 } #random elector of the HRE
		command = { type = relation which = -7 value = -100 } #random elector of the HRE
		command = { type = relation which = -7 value = -100 } #random elector of the HRE
		command = { type = relation which = PAP value = -200 }
		command = { type = relation which = VEN value = -150 }
		command = { type = relation which = SPA value = -100 }
		command = { type = relation which = FRA value = -100 }
	}
}
#(1419-1660) The approval
event = {
	id = 297011 #triggered by HAB_179040 A / PAP_251007 A
	random = no
	country = tos
	name = "EVENTNAME297011" #The path to the Crown is cleared
	desc = "EVENTHIST297011"
	#-#Our diplomat has returned, with good news. Time to prepare the coronation!

	action_a = {
		name = "ACTIONNAME297011A" #It is God's will
		command = { type = vp value = 1 }
	}
}
#(1419-1660) The rejection
event = {
	id = 297012 #triggered by HAB_179040 B / PAP_251007 B
	random = no
	country = TOS
	name = "EVENTNAME297012" #Our proposal is rejected
	desc = "EVENTHIST297012"
	#-#Our diplomat has returned, with bad news. They will not recognise our legitimacy to the Kingdom, at any price.

	action_a = {
		name = "ACTIONNAME297012A" #This must be God's will
		command = { type = vp value = -25 }
		command = { type = clrflag which = [Guelf] } #otherwise you can get two coronations
		command = { type = clrflag which = [Ghibelline] }
	}
}
#-----------------------------------------------------------------------------------------------
#(1419-1820) The Kingdom of Italy threatens the balance
event = {
	id = 297013
	trigger = { exists = ITA }
	random = no
	country = TOS
	name = "EVENTNAME297013" #The Kingdom of Italy threatens the balance
	desc = "EVENTHIST297013"
	#-#The Kingdom of Italy have formed, as an independent part of the Holy Roman Empire and a new King have been crowned in Milan. They claim the right to all the lands in the north of the peninsula and their emergence threatens the balance.

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

	action_a = {
		name = "ACTIONNAME297013A" #Bad news
		command = { type = casusbelli which = ITA value = 120 }
	}
	action_b = {
		name = "ACTIONNAME297013B" #Seek their friendship
		command = { type = diplomats value = -1 }
		command = { type = stability value = -1 }
		command = { type = relation which = ITA value = 100 }
	}
}

#-----------------------------------------------------------------------------------------------
#Venice (VEN)
#-----------------------------------------------------------------------------------------------

#(1419-1820) If Italy is created, by mnorrefeldt
event = {
	id = 326000
	trigger = { exists = ITA }
	random = no
	country = VEN
	name = "EVENTNAME326000" #The Kingdom of Italy threatens the balance
	desc = "EVENTHIST326000"
	#-#The Kingdom of Italy have formed, as an independent part of the Holy Roman Empire and, a new King have been crowned in Milan. They claim the right to all the lands in the north of the peninsula and their emergence threatens the balance.

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

	action_a = {
		name = "ACTIONNAME326000A" #Bad news
		command = { type = casusbelli which = ITA value = 120 }
	}
	action_b = {
		name = "ACTIONNAME326000B" #Seek their friendship
		command = { type = diplomats value = -1 }
		command = { type = stability value = -1 }
		command = { type = relation which = ITA value = 100 }
	}
}

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



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

#Alternative Italy Events by YodaMaster
#Based on original historic events for every country that can form Italy

#Events fire at two conditions (most cases) :
#1) historic country doesn't exist
#2) corresponding historic event didn't fire

#Additionnal trigger conditions if necessary.

#Each Alternative event sleeps his corresponding historic event (exceptions allowed).

#-----------------------------------------------------------------------------------------------
#Global events
#-----------------------------------------------------------------------------------------------

#(1419-1820) Move the capital to Milan?
event = {
	id = 193000 #triggered by The Coronation events - not for MLO
	random = no
	country = ITA
	name = "EVENTNAME193000" #A new capital
	desc = "EVENTHIST193000"
	#-#Milan was the capital of the Lombard Kingdom of Italy from the 6th to the 8th century. It is well situated and we should consider moving the capital there.

	action_a = {
		name = "ACTIONNAME193000A" #We shall move our capital
		command = { type = capital which = 389 } #Lombardia
		command = { type = provincetax which = 389 value = 1 } #Lombardia
		command = { type = treasury value = -40 }
		#command = { type = AI which = Italy.txt }
	}
	action_b = {
		name = "ACTIONNAME193000B" #It is not needed
		command = { type = provincetax which = -2 value = 1 }
		#command = { type = AI which = Italy.txt }
	}
}

#(1472) The Mine in Volterra
event = {
	id = 193033
	trigger = {
		NOT = { exists = TOS }
		NOT = { event = 17364 }
		owned = { province = 401 data = -1 }
	}
	random = no
	country = ITA
	name = "EVENTNAME193033" #The Mine in Volterra
	desc = "EVENTHIST193033"
	#-#In 1472 a contract was granted to a consortium to mine alum from a cave near the Tuscan town of Volterra. There were strong indications that the grant of the contract may have been corrupt and magistrates from the town seized the mine. The King was asked to mediate and ruled in favor of the consortium who immediately seized the mine causing violent rioting in Volterra and the murder of some of the members of the consortium. Many influential members of the Court argued that the Volterrans should be offered lenient terms to defuse the crisis. However, the King's credibility was on the line, and he felt that they should be taught a lesson. He hired mercenaries and after a siege of a month the town was plundered in violation of the terms of surrender. This event is still memorialized in Volterra. What terms should be offered to the Volterrans?

	date = { day = 29 month = april year = 1472 }
	offset = 120
	deathdate = { day = 29 month = december year = 1472 }

	action_a = {
		name = "ACTIONNAME193033A" #Harsh Terms
		command = { type = merchants value = 3 }
		command = { type = revolt which = 401 } #Firenze
		command = { type = revolt which = 401 } #Firenze
		command = { type = provincetax which = 401 value = -1 } #Firenze
		command = { type = sleepevent which = 17364 } #TOS: The Mine in Volterra
	}
	action_b = {
		name = "ACTIONNAME193033B" #Lenient Terms
		command = { type = stability value = -2 }
		command = { type = treasury value = -20 }
		command = { type = vp value = -20 }
		command = { type = domestic which = centralization value = -1 }
		command = { type = sleepevent which = 17364 } #TOS: The Mine in Volterra
	}
}

#(1494) Giovanni Pico della Mirandola (1463-1494)
event = {
	id = 193042
	trigger = {
		NOT = { exists = TOS }
		NOT = { event = 297004 }
		owned = { province = 401 data = -1 }
	}
	random = no
	country = ITA
	name = "EVENTNAME193042" #Giovanni Pico della Mirandola
	desc = "EVENTHIST193042"
	#-#Born in the Castle of Mirandola - at the age of fourteen went to Bologna to study Canon Law, but, repelled by the purely positivist science of Law, he traveled to chief universities of Italy and France where he studied Hebrew, Syriac, Arabic, Latin and Greek as well as the philosophy of Averroes. In December 1486, Pico published in Rome his 900 these. In his later life he dedicated his work to defending Christianity against the Jews and Mohammedans and became a follower of Savonarola. His interest in Kabbalah led to a broad current of Christian Kabbalahism which included John Reuchlin and remained important throughout the 16th century.

	date = { day = 17 month = november year = 1494 }

	action_a = {
		name = "OK"
		command = { type = infra value = 50 }
		command = { type = sleepevent which = 297004 } #TOS: Giovanni Pico della Mirandola
	}
}

#(1497) Leonardo da Vinci - Flavor
event = {
	id = 193045
	trigger = {
		NOT = { exists = MLO }
		NOT = { event = 5240 }
		owned = { province = 389 data = -1 }
	}
	random = no
	country = ITA
	name = "EVENTNAME5240" #Leonardo da Vinci
	desc = "EVENTHIST5240"
	#-#Da Vinci was an Italian painter draftsman sculptor architect and engineer whose genius perhaps more than that of any figure epitomized the Renaissance humanist ideal. His 'Last Supper' and 'Mona Lisa' are among the most widely popular and influential paintings of the Renaissance. His notebooks reveal a spirit of scientific inquiry and a mechanical inventiveness that were centuries ahead of their time.

	date = { day = 1 month = june year = 1497 }

	action_a = {
		name = "OK"
		command = { type = stability value = 1 }
		command = { type = infra value = 250 }
		command = { type = domestic which = INNOVATIVE value = 1 }
		command = { type = sleepevent which = 5240 } #MLO: Leonardo da Vinci
	}
}

#(1504) Michelangelo - Flavor
event = {
	id = 193044
	trigger = {
		NOT = { exists = TOS }
		NOT = { event = 5221 }
		owned = { province = 401 data = -1 }
	}
	random = no
	country = ITA
	name = "EVENTNAME5221" #Michelangelo
	desc = "EVENTHIST5221"
	#-#Michelangelo was considered the greatest living artist in his lifetime and ever since then he has been held to be one of the greatest artists of all times. A number of his works in painting sculpture and architecture rank among the most famous in existence. Although the frescoes on the ceiling of the Sistine Chapel are probably the best known of his works today the artist thought of himself primarily as a sculptor.

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

	action_a = {
		name = "OK"
		command = { type = stability value = 1 }
		command = { type = infra value = 250 }
		command = { type = sleepevent which = 5221 } #TOS: Michelangelo
	}
}

#(1513) Niccol Machiavelli publishes 'The Prince' - Flavor
event = {
	id = 193043
	trigger = {
		NOT = { exists = TOS }
		NOT = { event = 5220 }
		owned = { province = 401 data = -1 }
	}
	random = no
	country = ITA
	name = "EVENTNAME5220" #Machiavelli publishes 'The Prince'
	desc = "EVENTHIST5220"
	#-#Niccol Machiavelli was an Italian writer and statesman Florentine patriot and original political theorist whose principal work 'The Prince' brought him a reputation of amoral cynicism. Yet Machiavelli's affections always lay with the republic and all of his theories were intended for its betterment but the corruption of the times the weakness of the states of Italy and the threat of foreign conquest made him long for that 'new prince' who might give reality to his great dream of the redemption of Italy.

	date = { day = 1 month = june year = 1513 }

	action_a = {
		name = "OK"
		command = { type = relation which = -1 value = 20 }
		command = { type = relation which = -1 value = 20 }
		command = { type = relation which = -1 value = 20 }
		command = { type = relation which = -1 value = 20 }
		command = { type = diplomats value = 3 }
		command = { type = domestic which = ARISTOCRACY value = 1 }
		command = { type = sleepevent which = 5220 } #TOS: Machiavelli publishes 'The Prince'
	}
}

#(1558-1560) The Knights of Santo Stefano
event = {
	id = 193036
	trigger = {
		NOT = { exists = TOS }
		NOT = { event = 17376 }
		owned = { province = 401 data = -1 }
		NOT = { relation = { country = TUR data = -50 } }
	}
	random = no
	country = ITA
	name = "EVENTNAME193036" #The Knights of Santo Stefano
	desc = "EVENTHIST193036"
	#-#Inspired by the successes of the Knights of St. John in fighting the Turks, the King set up the order of the Knights of Santo Stefano. Based out of Pisa their role was to serve him when he needed naval support and to defend Italian interests in the Mediterranean. They played a role in many of the great conflicts in the Mediterranean against the Ottomans including the battle of Lepanto (1572) and the siege of Candia (1645-1669). When not at war they engaged in piracy against Turkish and occasionally Venetian shipping.

	date = { day = 1 month = january year = 1558 }
	offset = 360
	deathdate = { day = 1 month = january year = 1560 }

	action_a = {
		name = "OK"
		command = { type = naval value = 1000 }
		command = { type = domestic which = LAND value = -1 }
		command = { type = galleys which = 401 value = 5 }
		command = { type = sleepevent which = 17376 } #TOS: The Knights of Santo Stefano
	}
}

#(1569) Italian Leaders abandon Spain
event = {
	id = 193060
	trigger = {
		NOT = { exists = PAR }
		NOT = { event = 390001 } #PAR: Italian leaders abandon Spain
		NOT = { exists = SPA }
		NOT = { event = 285011 } #SPA event to wake/sleep leaders
		owned = { province = 402 data = -1 } #Emilia
	}
	random = no
	country = ITA
	name = "EVENTNAME390001" #Italian leaders abandon Spain
	desc = "EVENTHIST193060"
	#-#Because Spain had been destroyed leaders who might have served Spain will now serve Italy

	date = { day = 0 month = january year = 1569 }

	action_a = {
		name = "ACTIONNAME390001A" #Oh Yes!
		command = { type = sleepleader which = 0127834 } #Alessandro Farnese (SPA)
		command = { type = wakeleader which = 064841 } #Alessandro (ITA)
		command = { type = sleepevent which = 390001 } #PAR: Italian leaders abandon Spain
	}
}

#(1571-1573) The Holy League
event = {
	id = 193047
	trigger = {
		exists = TUR
		OR = {
			event = 3549 #PAP: The Holy League
			event = 236000 #MUS: The Holy League (no Papal States)
		}
	}
	random = no
	country = ITA
	name = "EVENTNAME3549" #The Holy League
	desc = "EVENTHIST3549"
	#-#When in 1570 the Turks sent an ultimatum to Venice asking for the ceding of Cyprus and then invaded the island after the Republic of San Marco failed to respond, a great uproar was created in the Catholic world by the facts and rumors of Ottoman atrocities in the last Christian bastion of the eastern Mediterranean. After a first failure in the summer of 1570, Pope Pius V managed to convince major Catholic nations (except France) to join a Holy League against the heathens Turks, and it was proclaimed in May 1571. The League would lead to the great naval victory of Don Juan on the Turks at Lepanto, but would not outlast this first and final triumph. Selim II is rumored to have said, after the news he had lost 200 galleys at Lepanto: At Lepanto, the Christians have shaved me. At Cyprus, I cut their arm. My beard will grow again.

	date = { day = 7 month = may year = 1571 }
	offset = 30
	deathdate = { day = 13 month = april year = 1573 }

	action_a = {
		name = "ACTIONNAME3161A" #Support the Holy League
		command = { type = casusbelli which = TUR value = 72 }
		command = { type = relation which = TUR value = -150 }
		command = { type = relation which = PAP value = 50 }
		command = { type = relation which = FRA value = 50 }
		command = { type = relation which = GEN value = 50 }
		command = { type = relation which = KNI value = 50 }
		command = { type = relation which = NAP value = 50 }
		command = { type = relation which = SAV value = 50 }
		command = { type = relation which = SIC value = 50 }
		command = { type = relation which = SPA value = 50 }
		command = { type = relation which = TOS value = 50 }
		command = { type = relation which = VEN value = 50 }
	}
	action_b = {
		name = "ACTIONNAME3549B" #Let the matter fall
		command = { type = relation which = TUR value = 50 }
		command = { type = relation which = PAP value = -50 }
		command = { type = relation which = FRA value = -50 }
		command = { type = relation which = GEN value = -50 }
		command = { type = relation which = KNI value = -50 }
		command = { type = relation which = NAP value = -50 }
		command = { type = relation which = SAV value = -50 }
		command = { type = relation which = SIC value = -50 }
		command = { type = relation which = SPA value = -50 }
		command = { type = relation which = TOS value = -50 }
		command = { type = relation which = VEN value = -50 }
	}
}

#(1610-1612) Galileo Galilei: the modern science is born
event = {
	id = 193037
	trigger = {
		NOT = { exists = TOS }
		NOT = { event = 5226 }
		owned = { province = 401 data = -1 }
		domestic = { type = innovative value = 2 }
	}
	random = no
	country = ITA
	name = "EVENTNAME193037" #Galileo Galilei: the modern science is born
	desc = "EVENTHIST193037"
	#-#Galileo was born in Pisa in Tuscany and he is chiefly remembered for his work on free fall, his use of the telescope and his employment of experimentation. Early in his career he determined that repetition time of a pendulum was the same regardless of the amplitude of the oscillation. He determined experimentally that objects do not fall with velocities proportionate to their weight that was a direct contradiction of the teachings of Aristotle. In 1609 he built a telescope and began detailed observations of the sky. However his disagreements with the Aristotelean canon made his life at the University of Padua increasingly difficult as he met accusations from the Church and the opposition of detractors at the University. In 1610 the King invited him to come to the capital and continue his work away from his opponents.

	date = { day = 1 month = june year = 1610 }
	offset = 360
	deathdate = { day = 1 month = september year = 1612 }

	action_a = {
		name = "ACTIONNAME193037A" #Appoint Galileo as Mathematician to the King
		command = { type = treasury value = -50 }
		command = { type = domestic which = innovative value = 1 }
		command = { type = infra value = 100 }
		command = { type = sleepevent which = 5228 } #VEN: Galileo Galilei publishes the 'Dialogues'
		command = { type = sleepevent which = 5227 } #TOS: Galileo Galilei publishes the 'Dialogues'
		command = { type = sleepevent which = 5226 } #TOS: Galileo Galilei: the modern science is born
	}
	action_b = {
		name = "ACTIONNAME193037B" #We don't need him
		command = { type = infra value = -50 }
		command = { type = sleepevent which = 5227 } #TOS: Galileo Galilei publishes the 'Dialogues'
		command = { type = sleepevent which = 193038 } #ITA: Galileo Galilei publishes the 'Dialogues'
		command = { type = sleepevent which = 5226 } #TOS: Galileo Galilei: the modern science is born
	}
}

#(1629) Italian Leaders abandon Austria
event = {
	id = 193022
	trigger = {
		NOT = { exists = MOD }
		NOT = { event = 252101 }
		NOT = { exists = HAB }
		NOT = { event = 179035 } #HAB event to wake/sleep leaders
		owned = { province = 391 data = -1 } #Modena
	}
	random = no
	country = ITA
	name = "EVENTNAME193022" #Italian Leaders abandon Austria
	desc = "EVENTHIST193022"
	#-#Because Austria has been destroyed leaders who might have served Austria will now serve Italy.

	date = { day = 0 month = january year = 1629 }

	action_a = {
		name = "EXCELLENT"
		command = { type = sleepleader which = 055811 } #Montecuccoli (HAB)
		command = { type = wakeleader which = 064839 } #Montecuccoli (ITA)
		command = { type = sleepevent which = 252101 } #MOD: Italian Leaders abandon Austria
	}
}

#(1632) Galileo publishes the Dialogues
event = {
	id = 193038
	trigger = {
		OR = {
			AND = { #if Galileo Galilei event for TOS just before Italy formed by TOS
				NOT = { exists = TOS }
				NOT = { event = 5227 }
				event = 5226
				monarch = 064554 #Ferdinando II
			}
			event = 193037
		}
	}
	random = no
	country = ITA
	name = "EVENTNAME193038" #Galileo Galilei publishes the 'Dialogues'
	desc = "EVENTHIST193038"
	#-#Galileo continued his work on motion and on mechanics and began to get involved in disputes about Copernicanism. Galileo showed a marked tendency to use all his discoveries as evidence for Copernicanism and to do so with great verbal as well as mathematical skill. Copernicanism was in contradiction with Scripture and in 1616 Galileo was given some kind of secret but official warning that he was not to defend Copernicanism. Just what was said on this occasion was to become a subject for dispute when Galileo was accused of departing from this undertaking in his 'Dialogue concerning the two greatest world systems' published in 1632.

	date = { day = 1 month = march year = 1632 }
	offset = 20
	deathdate = { day = 29 month = august year = 1632 }

	action_a = {
		name = "ACTIONNAME193038A" #Allow Galileo to publish his work
		command = { type = revoltrisk which = 12 value = 5 }#changed by IB from RR 7 to RR 5
		command = { type = infra value = 50 }
		command = { type = relation which = PAP value = -25 }
		command = { type = sleepevent which = 5227 } #TOS: Galileo Galilei publishes the 'Dialogues'
	}
	action_b = {
		name = "ACTIONNAME193038B" #No this is too revolutionary
		command = { type = domestic which = innovative value = -1 }
		command = { type = relation which = PAP value = 25 }
		command = { type = sleepevent which = 5225 } #PAP: The trial against Galileo
		command = { type = sleepevent which = 5227 } #TOS: Galileo Galilei publishes the 'Dialogues'
	}
}

#-----------------------------------------------------------------------------------------------
#Mantua created Italy
#-----------------------------------------------------------------------------------------------

#(1419-1820) Sets the monarchs to the Mantuan monarchs, and adds it's leaders
event = {
	id = 193001
	trigger = {
		OR = {
			event = 220003
			event = 220004
			event = 220005
		}
		OR = {
			NOT = { event = 220031 } #MAN: Succession of Vincenzo II
			AND = {
				event = 220031 #MAN: Succession of Vincenzo II
				OR = {
					event = 179119 #HAB: Nevers succeeds to Mantua
					event = 285273 #SPA: Guastalla Denied
				}
			}
		}
	}
	random = no
	country = ITA
	name = "EVENTNAME193001" #Italian leaders
	desc = "EVENTHIST193001"
	#-#We will get the services of additional leaders and our monarchs will rule Italy.

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

	action_a = {
		name = "ACTIONNAME193001A" #Our new leaders!
		command = { type = wakemonarch which = 064500 } #Gian Francesco I
		command = { type = wakemonarch which = 064501 } #Ludovico III il Turco
		command = { type = wakemonarch which = 064502 } #Federico I
		command = { type = wakemonarch which = 064503 } #Francesco II
		command = { type = wakemonarch which = 064504 } #Federico II
		command = { type = wakemonarch which = 064505 } #Francesco III
		command = { type = wakemonarch which = 064506 } #Guglielmo
		command = { type = wakemonarch which = 064507 } #Vincenzo I
		command = { type = wakemonarch which = 064508 } #Francesco IV
		command = { type = wakemonarch which = 064509 } #Ferdinando
		command = { type = wakemonarch which = 064510 } #Vincenzo II
		command = { type = wakemonarch which = 064511 } #Carlo I
		command = { type = wakemonarch which = 064512 } #Carlo II
		command = { type = wakemonarch which = 064513 } #Ferdinando Carlo
		command = { type = wakemonarch which = 064514 } #Giovanni
		command = { type = wakemonarch which = 064515 } #Carlo Emanuele III
		command = { type = wakemonarch which = 064516 } #Vittorio Amedeo III
		command = { type = wakemonarch which = 064517 } #Carlo Emanuele IV
		command = { type = wakemonarch which = 064518 } #Vittorio Emanuele I
	}
}
#(1419-1820) Sets the monarchs to the Mantuan monarchs, with the Guastalla line, and adds it's leaders
event = {
	id = 193006
	trigger = {
		OR = {
			event = 220003
			event = 220004
			event = 220005
		}
		event = 220031 #MAN: Succession of Vincenzo II
		NOT = {
			event = 179119 #HAB: Nevers succeeds to Mantua
			event = 285273 #SPA: Guastalla Denied
		}
	}
	random = no
	country = ITA
	name = "EVENTNAME193001" #Italian leaders
	desc = "EVENTHIST193001"
	#-#We will get the services of additional leaders and our monarchs will rule Italy.

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

	action_a = {
		name = "ACTIONNAME193001A" #Our new leaders!
		command = { type = wakemonarch which = 064500 } #Gian Francesco I
		command = { type = wakemonarch which = 064501 } #Ludovico III il Turco
		command = { type = wakemonarch which = 064502 } #Federico I
		command = { type = wakemonarch which = 064503 } #Francesco II
		command = { type = wakemonarch which = 064504 } #Federico II
		command = { type = wakemonarch which = 064505 } #Francesco III
		command = { type = wakemonarch which = 064506 } #Guglielmo
		command = { type = wakemonarch which = 064507 } #Vincenzo I
		command = { type = wakemonarch which = 064508 } #Francesco IV
		command = { type = wakemonarch which = 064509 } #Ferdinando
		command = { type = wakemonarch which = 064510 } #Vincenzo II
		command = { type = wakemonarch which = 064519 } #Guastalla monarch #Ferrante I
		command = { type = wakemonarch which = 064520 } #Guastalla monarch #Cesare
		command = { type = wakemonarch which = 064521 } #Guastalla monarch #Ferrante II
		command = { type = wakemonarch which = 064513 } #Ferdinando Carlo
		command = { type = wakemonarch which = 064514 } #Giovanni
		command = { type = wakemonarch which = 064515 } #Carlo Emanuele III
		command = { type = wakemonarch which = 064516 } #Vittorio Amedeo III
		command = { type = wakemonarch which = 064517 } #Carlo Emanuele IV
		command = { type = wakemonarch which = 064518 } #Vittorio Emanuele I
	}
}

#(1462) Mantegna - modeled on Paradox painter events
event = {
	id = 193015
	trigger = {
		NOT = { exists = MAN }
		NOT = { event = 17342 }
		owned = { province = 390 data = -1 } #Mantua
	}
	random = no
	country = ITA
	name = "EVENTNAME17342" #Andrea Mantegna
	desc = "EVENTHIST17342"
	#-#Andrea Mantegna was a prolific and admired painter. He is best known for his 'Triumph of Caesar' murals in Mantua. He directed the work of such artsts as Bellini, Rafael, Durer and da Vinci. Though he painted for many Renaissance princes he spent most of his career and produced his most prominent works in Mantua.

	date = { day = 1 month = january year = 1462 }
	offset = 180
	deathdate = { day = 1 month = january year = 1463 }

	action_a = {
		name = "OK"
		command = { type = stability value = 1 }
		command = { type = infra value = 200 }
		command = { type = sleepevent which = 17342 } #MAN: Andrea Mantegna
	}
}

#(1480-1481) Murder of Gonzaga
event = {
	id = 193016
	trigger = {
		NOT = { exists = MAN }
		NOT = { event = 17343 }
		monarch = 064502 #Federico I
	}
	random = no
	country = ITA
	name = "EVENTNAME17343" #Murder of Gonzaga
	desc = "EVENTHIST193016"
	#-#Frederico il Gobbo (the humpback) and his son were nearly poisoned by his brothers Rodolfo and Gian Francesco. The plot was betrayed by another brother, Ludovico, but caused concerns at court. Unusally for a Renaissance Prince, Frederico was inclined to be merciful. The incident was likely the origin of Shakespeare's 'Murder of Gonzaga'.

	date = { day = 1 month = march year = 1480 }
	offset = 180
	deathdate = { day = 1 month = march year = 1481 }

	action_a = {
		name = "ACTIONNAME17343A" #Expel them
		command = { type = stability value = -1 }
		command = { type = ADM which = -2 value = 12 }
		command = { type = DIP which = -2 value = 12 }
		command = { type = sleepevent which = 17343 } #MAN: Murder of Gonzaga
	}
	action_b = {
		name = "ACTIONNAME17343B" #Execute them
		command = { type = stability value = -2 }
		command = { type = diplomats value = -1 }
		command = { type = sleepevent which = 17343 } #MAN: Murder of Gonzaga
	}
}

#(1490) Isabelle d'Este
event = {
	id = 193017
	trigger = {
		NOT = { exists = MAN }
		NOT = { event = 17344 }
		monarch = 064503 #Francesco II
	}
	random = no
	country = ITA
	name = "EVENTNAME17344" #Isabella d'Este
	desc = "EVENTHIST193017"
	#-#Isabella d'Este married Franceso Gonzaga in 1490. As a princess of Ferrara she recieved an extensive education, and has been called the 'First Lady of the Renaissance'. She patronized great artists, and was painted by Rafael's father, Mantegna, da Vinci, and possibly Titian. She was one one the fashion trend settters in Italy. She administered Italy very effectively for most of her husbands reign. She had a large group of beautiful ladies-in-waiting who were often deployed to aid Italian diplomacy.

	date = { day = 1 month = february year = 1490 }
	offset = 30
	deathdate = { day = 29 month = december year = 1490 }

	action_a = {
		name = "OK"
		command = { type = ADM which = 2 value = 350 }
		command = { type = DIP which = 2 value = 350 }
		command = { type = infra value = 70 }
		#EXCEPTION : no sleepevent which = 17344 - should apply to MAN too
	}
}

#(1581) Vincenzo Gonzaga marries Elizabeth Farnese
event = {
	id = 193010
	trigger = {
		NOT = { exists = MAN }
		NOT = { event = 17300 }
		monarch = 064506 #Guglielmo
	}
	random = no
	country = ITA
	name = "EVENTNAME17300" #Vincenzo Gonzaga marries Elizabeth Farnese
	desc = "EVENTHIST193010"
	#-#Vincenzo Gonzaga marries Elizabeth Farnese daughter of Alexander Farnese, duke of Parma, and a princess of Portugal.

	date = { day = 1 month = april year = 1581 }

	action_a = {
		name = "OK"
		command = { type = dynastic which = PAR }
		command = { type = relation which = PAR value = 50 }
		command = { type = relation which = SPA value = 15 }
		command = { type = relation which = POR value = 30 }
		command = { type = treasury value = 100 }
		command = { type = ADM which = -2 value = 6 }
		command = { type = sleepevent which = 17300 } #MAN: Vincenzo Gonzaga marries Elizabeth Farnese
	}
}

#(1582) Death of Chrichton
event = {
	id = 193011
	trigger = {
		NOT = { exists = MAN }
		NOT = { event = 17301 }
		monarch = 064506 #Guglielmo
	}
	random = no
	country = ITA
	name = "EVENTNAME17301" #Death of Chrichton
	desc = "EVENTHIST193011"
	#-#Vincenzo Gonzaga kills Chrichton, a Scotsman, who served as a counselor of his father's. His father Guglielmo is outraged. Vincenzo apologized to his father, and submitted to a hearing. Rumor has it that he was exonerated because his sword was shorter than Chrichton's, so he couldn't have been responsible. On the other hand, this is also a reference to Vincenzo's fruitless marriage.

	date = { day = 3 month = july year = 1582 }

	action_a = {
		name = "OK"
		command = { type = ADM which = -2 value = 6 }
		command = { type = MIL which = -2 value = 6 }
		command = { type = DIP which = -2 value = 6 }
		command = { type = sleepevent which = 17301 } #MAN: Death of Chrichton
	}
}

#(1583) The Test of virility
event = {
	id = 193012
	trigger = {
		NOT = { exists = MAN }
		NOT = { event = 17302 }
		monarch = 064506 #Guglielmo
	}
	random = no
	country = ITA
	name = "EVENTNAME17302" #The Test of virility
	desc = "EVENTHIST193012"
	#-#The marriage of Vincenzo Gonzaga and Elizabeth Farnese has not been consummated. Her relatives claim that Vincenzo is impotent, the Italian court maintains that it is her fault. An alternate marriage with a Tuscan princess has been established, however, the Tuscan court insists that Vincenzo proves his potency. They have arranged a test in which he will have to perform with an orphan girl in the presence of eight women and a set of guards, priests and agents.

	date = { day = 1 month = august year = 1583 }
	offset = 30
	deathdate = { day = 1 month = october year = 1583 }

	action_a = {
		name = "ACTIONNAME17302A" #Vincenzo will submit to the test
		command = { type = relation which = PAR value = -60 }
		command = { type = relation which = POR value = -60 }
		command = { type = relation which = SPA value = -30 }
		command = { type = domestic which = centralization value = -1 } #monarch loses stature/morality
		command = { type = sleepevent which = 17302 } #MAN: The Test
	}
	action_b = {
		name = "ACTIONNAME17302B" #Vincenzo will leave Elizabeth Farnese and seek a wife elsewhere
		command = { type = relation which = PAR value = -60 }
		command = { type = relation which = POR value = -60 }
		command = { type = relation which = SPA value = -30 }
		command = { type = relation which = TOS value = -100 }
		command = { type = treasury value = -100 } #have to return the dowry#
		command = { type = DIP which = -2 value = 20 } #he looks weak#
		command = { type = sleepevent which = 17303 } #MAN: The second test of virility
		command = { type = sleepevent which = 193013 } #ITA: The second test of virility
		command = { type = sleepevent which = 17302 } #MAN: The Test
	}
	action_c = {
		name = "ACTIONNAME17302C" #Vincenzo will stay with Elizabeth Farnese
		command = { type = relation which = PAR value = 90 }
		command = { type = relation which = POR value = 90 }
		command = { type = relation which = SPA value = 45 }
		command = { type = relation which = TOS value = -50 }
		command = { type = relation which = HAB value = -10 }
		command = { type = stability value = -1 } #no heir apparent
		command = { type = diplomats value = -1 }
		command = { type = sleepevent which = 17303 } #MAN: The second test of virility
		command = { type = sleepevent which = 193013 } #ITA: The second test of virility
		command = { type = sleepevent which = 17302 } #MAN: The Test
	}
}

#(1583-1587) The second test of virility
event = {
	id = 193013
	trigger = {
		NOT = { exists = MAN }
		NOT = { event = 17303 }
		monarch = 064506 #Guglielmo
		OR = {
			event = 193012
			event = 17302
		}
	}
	random = no
	country = ITA
	name = "EVENTNAME17303" #The second test of virility
	desc = "EVENTHIST17303"
	#-#Vincenzo did not perform in the presence of all the onlookers. Tuscany has reluctantly agreed to a second test, with another orphan girl. Vincenzo will be able to make 3 attempts, and all the witnesses but one will be behind screens. A doctor will examine Vincenzo during the act.

	date = { day = 1 month = october year = 1583 }
	offset = 600
	deathdate = { day = 1 month = august year = 1587 }

	action_a = {
		name = "ACTIONNAME193013A" #Vincenzo must again submit to this indignity
		command = { type = trigger which = 193014 } #ITA: Vincenzo Gonzaga's virility
		command = { type = sleepevent which = 17303 } #MAN: The second test of virility
	}
	action_b = {
		name = "ACTIONNAME193013B" #No. A man cannot be expected to perform under these conditions!
		command = { type = treasury value = -100 } #have to return the dowry to Parma#
		command = { type = relation which = PAR value = -60 }
		command = { type = relation which = POR value = -60 }
		command = { type = relation which = SPA value = -30 }
		command = { type = relation which = TOS value = -100 }
		command = { type = relation which = HAB value = -20 }
		command = { type = stability value = -1 } #Critics proven right#
		command = { type = DIP which = -2 value = 40 }
		command = { type = sleepevent which = 17303 } #MAN: The second test of virility
	}
}
#(1583-1587) Vincenzo Gonzaga's virility
event = {
	id = 193014 #triggered by ITA_193013 A
	random = no
	country = ITA
	name = "EVENTNAME17304" #Vincenzo Gonzaga's virility
	desc = "EVENTHIST17304"
	#-#All witnesses agree that Vincenzo is fully potent and not to be blamed for the infertility of his former wife Elizabeth Farnese.

	action_a = {
		name = "OK"
		command = { type = dynastic which = TOS }
		command = { type = relation which = TOS value = 50 }
		command = { type = treasury value = 500 }
		command = { type = relation which = HAB value = 10 }
		command = { type = vp value = 5 }
		command = { type = DIP which = 1 value = 40 }
	}
}

#(1675-1715) Economic and Social Decadence - Ahistorical Alt_Italy formed by Mantua
#EXCEPTION : no sleepevent - should apply to each country within KoI too
#by Bordic
event = {
	id = 193064
	trigger = {
		OR = {
			monarch = 064513 #Ferdinando Carlo
			monarch = 064514 #Giovanni
			monarch = 064521 #Ferrante II (Guastalla line)
		}
		NOT = {
			exists = MAN
			event = 220014 #MAN: Economic and Social Decadence
		}
		owned = { province = 390 data = -1 } #Mantua
		NOT = {
			countrysize = 10
			domestic = { type = innovative value = 9 }
			domestic = { type = serfdom value = 3 }
			domestic = { type = aristocracy value = 1 }
			event = 338232 #ProvinceSpec*389: The plague in Milan
		}
	}
	random = no
	country = ITA
	name = "EVENTNAME251066" #Economic and Social Decadence
	desc = "EVENTHIST251066"
	#-#In the late XVIIth century, the disuse of the Mediterranean sea as the main international trade junction between Europa and the East Indies brought the Italian economic system to collapse. Italy became more removed from the mainstream of European development and each local administration along the peninsula lagged behind that of any other European contemporary. The practice of agriculture as prevailing economic activity meant the coming back to power of the most conservative landowning aristocracy. That economic backwardness associated with the effects of Counterreform deeply affected Italian social life too, now less and less inclined to accept innovation and to develop some entrepreneurial attitude.

	date = { day = 15 month = january year = 1675 }
	offset = 60
	deathdate = { day = 0 month = january year = 1715 }

	action_a = {
		name = "ALAS"
		command = { type = stability value = -1 }
		command = { type = provincetax which = -2 value = -2 }
		command = { type = provincemanpower which = -2 value = -1 }
		command = { type = domestic which = ARISTOCRACY value = 1 }
		command = { type = domestic which = CENTRALIZATION value = -1 }
		command = { type = domestic which = INNOVATIVE value = -1 }
		command = { type = domestic which = MERCANTILISM value = 1 }
		command = { type = domestic which = SERFDOM value = 1 }
		command = { type = domestic which = LAND value = 1 }
		command = { type = trade value = -500 }
		command = { type = infra value = -500 }
		command = { type = naval value = -500 }
	}
}

#(1743) Savoyards Monarchs
event = {
	id = 193048
	trigger = {
		monarch = 064514 #Giovanni
		exists = SAV
	}
	random = no
	country = ITA
	name = "EVENTNAME193048" #A new King for Italy
	desc = "EVENTHIST193048"
	#-#Giovanni dies without heir. Kingdom of Italy could have no King...

	date = { day = 26 month = october year = 1743 }

	action_a = {
		name = "ACTIONNAME193048A" #We need one
		command = { type = trigger which = 275009 } #SAV: A new King for Italy
	}
}
#(1743) A new King for Italy
event = {
	id = 193049 #triggered by SAV_275009 A
	random = no
	country = ITA
	name = "EVENTNAME193049" #A new King for Italy
	desc = "EVENTHIST193049"
	#-#Carlo Emanuele III, Duke of Savoy, offered to become King of Italy.

	action_a = {
		name = "ACTIONNAME193049A" #Accept
		command = { type = inherit which = SAV }
		command = { type = trigger which = 193050 } #ITA: A new King for Italy
	}
}
#(1743) A new King for Italy
event = {
	id = 193050 #triggered by ITA_193049
	trigger = {
		exists = FRA
		NOT = { vassal = { country = ITA country = FRA } }
		OR = {
			owned = { province = 375 data = ITA } #Lorraine
			owned = { province = 376 data = ITA } #Champagne
			owned = { province = 379 data = ITA } #Artois
			owned = { province = 382 data = ITA } #Calais
			owned = { province = 383 data = ITA } #Picardie
			owned = { province = 384 data = ITA } #Caux
			owned = { province = 385 data = ITA } #Ile de France
			owned = { province = 386 data = ITA } #Nivernais
			owned = { province = 387 data = ITA } #Franche-Comt
			owned = { province = 405 data = ITA } #Savoie
			owned = { province = 406 data = ITA } #Provence
			owned = { province = 407 data = ITA } #Dauphin
			owned = { province = 408 data = ITA } #Lyonnais
			owned = { province = 409 data = ITA } #Bourgogne
			owned = { province = 410 data = ITA } #Berri
			owned = { province = 411 data = ITA } #Orlanais
			owned = { province = 412 data = ITA } #Maine
			owned = { province = 413 data = ITA } #Normandie
			owned = { province = 414 data = ITA } #Armor
			owned = { province = 415 data = ITA } #Bretagne
			owned = { province = 416 data = ITA } #Morbihan
			owned = { province = 417 data = ITA } #Vende
			owned = { province = 418 data = ITA } #Poitou
			owned = { province = 419 data = ITA } #Limousin
			owned = { province = 420 data = ITA } #Auvergne
			owned = { province = 421 data = ITA } #Cvennes
			owned = { province = 422 data = ITA } #Languedoc
			owned = { province = 423 data = ITA } #Guyenne
			owned = { province = 424 data = ITA } #Gascogne
			owned = { province = 425 data = ITA } #Barn
			owned = { province = 426 data = ITA } #Roussillon
		}
	}
	random = no
	country = ITA
	name = "EVENTNAME193050" #A new King for Italy
	desc = "EVENTHIST193050"
	#-#France demands all the french possessions of the Kingdom of Italy.

	action_a = {
		name = "ACTIONNAME193050A" #Secede the french possessions
		command = { type = cedeprovince which = FRA value = 375 } #Lorraine
		command = { type = cedeprovince which = FRA value = 376 } #Champagne
		command = { type = cedeprovince which = FRA value = 379 } #Artois
		command = { type = cedeprovince which = FRA value = 382 } #Calais
		command = { type = cedeprovince which = FRA value = 383 } #Picardie
		command = { type = cedeprovince which = FRA value = 384 } #Caux
		command = { type = cedeprovince which = FRA value = 385 } #Ile de France
		command = { type = cedeprovince which = FRA value = 386 } #Nivernais
		command = { type = cedeprovince which = FRA value = 387 } #Franche-Comt
		command = { type = cedeprovince which = FRA value = 405 } #Savoie
		command = { type = cedeprovince which = FRA value = 406 } #Provence
		command = { type = cedeprovince which = FRA value = 407 } #Dauphin
		command = { type = cedeprovince which = FRA value = 408 } #Lyonnais
		command = { type = cedeprovince which = FRA value = 409 } #Bourgogne
		command = { type = cedeprovince which = FRA value = 410 } #Berri
		command = { type = cedeprovince which = FRA value = 411 } #Orleanais
		command = { type = cedeprovince which = FRA value = 412 } #Maine
		command = { type = cedeprovince which = FRA value = 413 } #Normandie
		command = { type = cedeprovince which = FRA value = 414 } #Armor
		command = { type = cedeprovince which = FRA value = 415 } #Bretagne
		command = { type = cedeprovince which = FRA value = 416 } #Morbihan
		command = { type = cedeprovince which = FRA value = 417 } #Vende
		command = { type = cedeprovince which = FRA value = 418 } #Poitou
		command = { type = cedeprovince which = FRA value = 419 } #Limousin
		command = { type = cedeprovince which = FRA value = 420 } #Auvergne
		command = { type = cedeprovince which = FRA value = 421 } #Cvennes
		command = { type = cedeprovince which = FRA value = 422 } #Languedoc
		command = { type = cedeprovince which = FRA value = 423 } #Guyenne
		command = { type = cedeprovince which = FRA value = 424 } #Gascogne
		command = { type = cedeprovince which = FRA value = 425 } #Barn
		command = { type = cedeprovince which = FRA value = 426 } #Roussillon
		command = { type = relation which = FRA value = 100 }
	}
	action_b = {
		name = "ACTIONNAME193050B" #Refuse
		command = { type = relation which = FRA value = -150 }
	}
 }

#See "Savoy created Italy" for other events

#-----------------------------------------------------------------------------------------------
#Milan created Italy
#-----------------------------------------------------------------------------------------------

#(1419-1820) Sets the monarchs to the Milanese monarchs (House of Savoy after 1535)
event = {
	id = 193002 #triggered by MLO_228012 / MLO_228013
	trigger = {
		NOT = { flag = [Visconti-Orleans] }
	}
	random = no
	country = ITA
	name = "EVENTNAME193001" #Italian leaders
	desc = "EVENTHIST193001"
	#-#We will get the services of additional leaders and our monarchs will rule Italy, with Milan as our capital.

	action_a = {
		name = "ACTIONNAME193001A" #Our new leaders!
		command = { type = wakemonarch which = 064560 } #Filippo Maria
		command = { type = wakemonarch which = 064561 } #Francesco Sforza
		command = { type = wakemonarch which = 064562 } #Galeazzo Maria Sforza
		command = { type = wakemonarch which = 064563 } #Gian Galeazzo Sforza
		command = { type = wakemonarch which = 064564 } #Ludovico il Moro
		command = { type = wakemonarch which = 064565 } #Ercole Massimiliano
		command = { type = wakemonarch which = 064566 } #Francesco II
		command = { type = wakemonarch which = 064567 } #Charles III le Bon
		command = { type = wakemonarch which = 064568 } #Emmanuel-Philibert
		command = { type = wakemonarch which = 064569 } #Charles Emmanuel Ier
		command = { type = wakemonarch which = 064570 } #Victor Amde Ier
		command = { type = wakemonarch which = 064571 } #Franois-Hyacinthe
		command = { type = wakemonarch which = 064572 } #Charles Emmanuel II
		command = { type = wakemonarch which = 064573 } #Vittorio Amedeo II
		command = { type = wakemonarch which = 064574 } #Carlo Emanuele III
		command = { type = wakemonarch which = 064575 } #Vittorio Amedeo III
		command = { type = wakemonarch which = 064576 } #Carlo Emanuele IV
		command = { type = wakemonarch which = 064577 } #Vittorio Emanuele I
		#command = { type = AI which = Italy.txt }
	}
}
#(1419-1820) Sets the monarchs to the Milanese monarchs (House of Visconti-Orlans after 1535)
event = {
	id = 193061 #triggered by MLO_228012 / MLO_228013
	trigger = {
		flag = [Visconti-Orleans]
	}
	random = no
	country = ITA
	name = "EVENTNAME193001" #Italian leaders
	desc = "EVENTHIST193002"
	#-#We will get the services of additional leaders and our monarchs will rule Italy, with Milan as our capital.

	action_a = {
		name = "ACTIONNAME193001A" #Our new leaders!
		command = { type = wakemonarch which = 064560 } #Filippo Maria
		command = { type = wakemonarch which = 064561 } #Francesco Sforza
		command = { type = wakemonarch which = 064562 } #Galeazzo Maria Sforza
		command = { type = wakemonarch which = 064563 } #Gian Galeazzo Sforza
		command = { type = wakemonarch which = 064564 } #Ludovico il Moro
		command = { type = wakemonarch which = 064565 } #Ercole Massimiliano
		command = { type = wakemonarch which = 064566 } #Francesco II
		command = { type = wakemonarch which = 064609 } #Francesco III 1535-1540
		command = { type = wakemonarch which = 064610 } #Carlo I 1540-1545
		command = { type = wakemonarch which = 064611 } #Valois Regency 1545-1549
		command = { type = wakemonarch which = 064612 } #Luigi II 1549-1550
		command = { type = wakemonarch which = 064613 } #Carlo II Massimiliano 1550-1560
		command = { type = wakemonarch which = 064614 } #Enrico Alessandro 1560-1574
		command = { type = wakemonarch which = 064615 } #Valois Regency 1574-1589
		command = { type = wakemonarch which = 064616 } #Bourbon Regency 1589-1626
		command = { type = wakemonarch which = 064617 } #Gastone Giambattista 1626-1660
		command = { type = wakemonarch which = 064618 } #Filippo II 1660-1701
		command = { type = wakemonarch which = 064619 } #Filippo III 1701-1723
		command = { type = wakemonarch which = 064620 } #Luigi III 1723-1752
		command = { type = wakemonarch which = 064621 } #Luigi Filippo I 1752-1785
		command = { type = wakemonarch which = 064622 } #Luigi Filippo II 1785-1793
		command = { type = wakemonarch which = 064623 } #Luigi Filippo III, King of France in 1830
		#No longer Savoyard Kings of Italy
		command = { type = sleepevent which = 193051 } #ITA: A new King for Italy
	}
}

#(1535) A new King for Italy
event = {
	id = 193051
	trigger = {
		monarch = 064566 #Francesco II
		exists = SAV
	}
	random = no
	country = ITA
	name = "EVENTNAME193051" #A new King for Italy
	desc = "EVENTHIST193051"
	#-#Francesco II dies without heir. Kingdom of Italy could have no King...

	date = { day = 0 month = november year = 1535 }

	action_a = {
		name = "ACTIONNAME193051A" #We need one
		command = { type = trigger which = 275010 } #SAV: A new King for Italy
	}
}
#(1535) A new King for Italy
event = {
	id = 193052 #triggered by SAV_275010 A
	random = no
	country = ITA
	name = "EVENTNAME193052" #A new King for Italy
	desc = "EVENTHIST193052"
	#-#Carlo Emanuele III, Duke of Savoy, offered to become King of Italy.

	action_a = {
		name = "ACTIONNAME193052A" #Accept
		command = { type = inherit which = SAV }
		command = { type = trigger which = 193053 } #ITA: A new King for Italy
	}
}
#(1535) A new King for Italy
event = {
	id = 193053 #triggered by ITA_193052
	trigger = {
		exists = FRA
		NOT = { vassal = { country = ITA country = FRA } }
		OR = {
			owned = { province = 375 data = ITA } #Lorraine
			owned = { province = 376 data = ITA } #Champagne
			owned = { province = 379 data = ITA } #Artois
			owned = { province = 382 data = ITA } #Calais
			owned = { province = 383 data = ITA } #Picardie
			owned = { province = 384 data = ITA } #Caux
			owned = { province = 385 data = ITA } #Ile de France
			owned = { province = 386 data = ITA } #Nivernais
			owned = { province = 387 data = ITA } #Franche-Comt
			owned = { province = 405 data = ITA } #Savoie
			owned = { province = 406 data = ITA } #Provence
			owned = { province = 407 data = ITA } #Dauphin
			owned = { province = 408 data = ITA } #Lyonnais
			owned = { province = 409 data = ITA } #Bourgogne
			owned = { province = 410 data = ITA } #Berri
			owned = { province = 411 data = ITA } #Orlanais
			owned = { province = 412 data = ITA } #Maine
			owned = { province = 413 data = ITA } #Normandie
			owned = { province = 414 data = ITA } #Armor
			owned = { province = 415 data = ITA } #Bretagne
			owned = { province = 416 data = ITA } #Morbihan
			owned = { province = 417 data = ITA } #Vende
			owned = { province = 418 data = ITA } #Poitou
			owned = { province = 419 data = ITA } #Limousin
			owned = { province = 420 data = ITA } #Auvergne
			owned = { province = 421 data = ITA } #Cvennes
			owned = { province = 422 data = ITA } #Languedoc
			owned = { province = 423 data = ITA } #Guyenne
			owned = { province = 424 data = ITA } #Gascogne
			owned = { province = 425 data = ITA } #Barn
			owned = { province = 426 data = ITA } #Roussillon
		}
	}
	random = no
	country = ITA
	name = "EVENTNAME193053" #A new King for Italy
	desc = "EVENTHIST193053"
	#-#France demands all the french possessions of the Kingdom of Italy.

	action_a = {
		name = "ACTIONNAME193053A" #Secede the french possessions
		command = { type = cedeprovince which = FRA value = 375 } #Lorraine
		command = { type = cedeprovince which = FRA value = 376 } #Champagne
		command = { type = cedeprovince which = FRA value = 379 } #Artois
		command = { type = cedeprovince which = FRA value = 382 } #Calais
		command = { type = cedeprovince which = FRA value = 383 } #Picardie
		command = { type = cedeprovince which = FRA value = 384 } #Caux
		command = { type = cedeprovince which = FRA value = 385 } #Ile de France
		command = { type = cedeprovince which = FRA value = 386 } #Nivernais
		command = { type = cedeprovince which = FRA value = 387 } #Franche-Comt
		command = { type = cedeprovince which = FRA value = 405 } #Savoie
		command = { type = cedeprovince which = FRA value = 406 } #Provence
		command = { type = cedeprovince which = FRA value = 407 } #Dauphin
		command = { type = cedeprovince which = FRA value = 408 } #Lyonnais
		command = { type = cedeprovince which = FRA value = 409 } #Bourgogne
		command = { type = cedeprovince which = FRA value = 410 } #Berri
		command = { type = cedeprovince which = FRA value = 411 } #Orleanais
		command = { type = cedeprovince which = FRA value = 412 } #Maine
		command = { type = cedeprovince which = FRA value = 413 } #Normandie
		command = { type = cedeprovince which = FRA value = 414 } #Armor
		command = { type = cedeprovince which = FRA value = 415 } #Bretagne
		command = { type = cedeprovince which = FRA value = 416 } #Morbihan
		command = { type = cedeprovince which = FRA value = 417 } #Vende
		command = { type = cedeprovince which = FRA value = 418 } #Poitou
		command = { type = cedeprovince which = FRA value = 419 } #Limousin
		command = { type = cedeprovince which = FRA value = 420 } #Auvergne
		command = { type = cedeprovince which = FRA value = 421 } #Cvennes
		command = { type = cedeprovince which = FRA value = 422 } #Languedoc
		command = { type = cedeprovince which = FRA value = 423 } #Guyenne
		command = { type = cedeprovince which = FRA value = 424 } #Gascogne
		command = { type = cedeprovince which = FRA value = 425 } #Barn
		command = { type = cedeprovince which = FRA value = 426 } #Roussillon
		command = { type = relation which = FRA value = 100 }
	}
	action_b = {
		name = "ACTIONNAME193053B" #Refuse
		command = { type = relation which = FRA value = -150 }
	}
}

#(1567-1584) Charles Borromeo
event = {
	id = 193018
	trigger = {
		NOT = { exists = MLO }
		NOT = { event = 17316 }
		monarch = 064568 #Emmanuel-Philibert
		religion = catholic
		event = 102 #Council of Trent
		owned = { province = 389 data = -1 } #Lombardia
	}
	random = no
	country = ITA
	name = "EVENTNAME17316" #Charles Borromeo
	desc = "EVENTHIST17316"
	#-#Charles Borromeo (1538-1584) became Archbishop of Milan after his uncle Giovanni Angelo de' Medici became Pope as Pius IV. Charles immediately applied the new policies and doctrines of the Council of Trent to Milan when he was still only 29, making the city just as disciplined as its Calvinist rival, Geneva, just across the Alps. Charles set up a printing press in his own palace to make the new legislation known, and subjected the clergy to rigourous examinations. He reformed the education system of Milan, making it far better than it was before. His reforms, however, conflicted with the secular authourities of Milan, as well as some of the unreformist clergy. He was canonized in 1614.

	date = { day = 1 month = january year = 1567 }
	offset = 20
	deathdate = { day = 7 month = january year = 1584 }

	action_a = {
		name = "ACTIONNAME17316A" #A wonderful Archbishop!
		command = { type = religion which = counterreform }
		command = { type = missionaries value = 6 }
		command = { type = stability value = -1 }
		command = { type = revoltrisk which = 120 value = 3 }
		command = { type = dip which = 3 value = 240 } #Isaac Brock changed 6 to 3
		command = { type = adm which = 3 value = 240 } #Isaac Brock changed 6 to 3
		command = { type = relation which = PAP value = 100 } #Isaac Brock: changed 200 to 100
		command = { type = relation which = SPA value = 50 } #Isaac Brock: changed 100 to 50
		command = { type = relation which = HAB value = 50 } #Isaac Brock: changed 100 to 50
		#EXCEPTION : no sleepevent which = 17316 - should apply to MLO too
	}
}

#(1562-1580) Reforms of Emmanuel-Philibert - Milan version
event = {
	id = 193029
	trigger = {
		monarch = 064568 #Emmanuel-Philibert - Milan version and SAV can exist
		atwar = no
	}
	random = no
	country = ITA
	name = "EVENTNAME17417" #Reforms of Emmanuel-Philibert
	desc = "EVENTHIST193028"
	#-#Emmanuel-Philibert swept away many of the traditional governing structures of the state.

	date = { day = 1 month = january year = 1562 }
	offset = 360
	deathdate = { day = 1 month = january year = 1580 }

	action_a = {
		name = "ACTIONNAME17417A" #Reform the government
		command = { type = gainbuilding which = -1 value = bailiff }
		command = { type = domestic which = centralization value = 3 }
		command = { type = domestic which = aristocracy value = -1 }
		command = { type = domestic which = innovative value = 1 }
		command = { type = domestic which = mercantilism value = 1 }
		command = { type = land value = 600 }
		command = { type = infra value = 250 }
		command = { type = sleepevent which = 193028 } #ITA: Reforms of Emmanuel-Philibert
		#EXCEPTION : no sleepevent which = 17417 - should apply to SAV too
	}
}

#(1593-1595) The Banco di San Ambrogio
event = {
	id = 193019
	trigger = {
		NOT = { exists = MLO }
		NOT = { event = 228014 }
		owned = { province = 389 data = -1 } #Lombardia
	}
	random = no
	country = ITA
	name = "EVENTNAME193019" #The Banco di San Ambrogio
	desc = "EVENTHIST193019"
	#-#In 1593 the government set up the Banco di San Ambrogio, the first public bank in Milan. Milan became the most important financial centre in Northern Italy.

	date = { day = 20 month = march year = 1593 }
	offset = 30
	deathdate = { day = 1 month = april year = 1595 }

	action_a = {
		name = "EXCELLENT"
		command = { type = ADM which = 1 value = 12 }
		command = { type = treasury value = 100 }
		command = { type = inflation value = -3 }
		command = { type = loansize which = 100 }
		command = { type = sleepevent which = 228014 } #MLO: The Banco di San Ambrogio
	}
}

#(1638-1642) civil wars under Charles Emmanuel II - Milan version
event = {
	id = 193027
	trigger = {
		monarch = 064572 #Charles Emmanuel II - Milan version and SAV can exist
	}
	random = no
	country = ITA
	name = "EVENTNAME193026" #Civil Wars
	desc = "EVENTHIST193026"
	#-#The regency of Charles Emmanuel II was in the hands of his mother. Despite her French origins she resisted French attempts to determine policy for Kingdom of Italy. However, her brothers-in-law sought the help of Spain to oust her from the regency and she was forced to accept French aid in the civil wars that followed.

	date = { day = 4 month = october year = 1638 }
	offset = 60
	deathdate = { day = 14 month = june year = 1642 }

	action_a = {
		name = "ACTIONNAME193026A" #What can we do?
		command = { type = stability value = -3 }
		command = { type = revoltrisk which = 60 value = 4 }
		command = { type = ADM which = -2 value = 60 }
		command = { type = DIP which = -2 value = 60 }
		command = { type = MIL which = -2 value = 60 }
		command = { type = relation which = FRA value = 50 }
		command = { type = sleepevent which = 193026 } #ITA: Civil Wars
		#EXCEPTION : no sleepevent which = 17416 - should apply to SAV too
	}
}

#(1675-1715) Economic and Social Decadence - Ahistorical Alt_Italy formed by Milan
#EXCEPTION : no sleepevent - should apply to each country within KoI too
#by Bordic
event = {
	id = 193066
	trigger = {
		OR = {
			monarch = 064572 #Charles Emmanuel II (dukes of Savoy)
			monarch = 064573 #Vittorio Amedeo II
			monarch = 064618 #Filippo II * (dukes of Orlans)
			monarch = 064619 #Filippo III *
		}
		NOT = {
			exists = MLO
			event = 228048 #MLO: Economic and Social Decadence
		}
		owned = { province = 389 data = -1 } #Lombardia
		NOT = {
			countrysize = 10
			domestic = { type = innovative value = 9 }
			domestic = { type = serfdom value = 3 }
			domestic = { type = aristocracy value = 1 }
			event = 338232 #ProvinceSpec*389: The plague in Milan
		}
	}
	random = no
	country = ITA
	name = "EVENTNAME251066" #Economic and Social Decadence
	desc = "EVENTHIST251066"
	#-#In the late XVIIth century, the disuse of the Mediterranean sea as the main international trade junction between Europa and the East Indies brought the Italian economic system to collapse. Italy became more removed from the mainstream of European development and each local administration along the peninsula lagged behind that of any other European contemporary. The practice of agriculture as prevailing economic activity meant the coming back to power of the most conservative landowning aristocracy. That economic backwardness associated with the effects of Counterreform deeply affected Italian social life too, now less and less inclined to accept innovation and to develop some entrepreneurial attitude.

	date = { day = 15 month = january year = 1675 }
	offset = 60
	deathdate = { day = 0 month = january year = 1715 }

	action_a = {
		name = "ALAS"
		command = { type = stability value = -1 }
		command = { type = provincetax which = -2 value = -2 }
		command = { type = provincemanpower which = -2 value = -1 }
		command = { type = domestic which = ARISTOCRACY value = 1 }
		command = { type = domestic which = CENTRALIZATION value = -1 }
		command = { type = domestic which = INNOVATIVE value = -1 }
		command = { type = domestic which = MERCANTILISM value = 1 }
		command = { type = domestic which = SERFDOM value = 1 }
		command = { type = domestic which = LAND value = 1 }
		command = { type = trade value = -500 }
		command = { type = infra value = -500 }
		command = { type = naval value = -500 }
	}
}

#See "Savoy created Italy" for other events

#-----------------------------------------------------------------------------------------------
#Modena created Italy
#-----------------------------------------------------------------------------------------------

#(1419-1820) Sets the monarchs to the Modena monarchs, and adds it's leaders
event = {
	id = 193004 #triggered by MOD_252003 / MOD_252004 / MOD_252005
	random = no
	country = ITA
	name = "EVENTNAME193001" #Italian leaders
	desc = "EVENTHIST193001"
	#-#We will get the services of additional leaders and our monarchs will rule Italy.

	action_a = {
		name = "ACTIONNAME193001A" #Our new leaders!
		command = { type = wakemonarch which = 064578 } #Nicol III
		command = { type = wakemonarch which = 064579 } #Leonello
		command = { type = wakemonarch which = 064580 } #Borso
		command = { type = wakemonarch which = 064581 } #Ercole I
		command = { type = wakemonarch which = 064582 } #Alfonso I
		command = { type = wakemonarch which = 064583 } #Ercole II
		command = { type = wakemonarch which = 064584 } #Alfonso II
		command = { type = wakemonarch which = 064585 } #Cesare V
		command = { type = wakemonarch which = 064586 } #Alfonso III
		command = { type = wakemonarch which = 064587 } #Francesco I
		command = { type = wakemonarch which = 064588 } #Alfonso IV
		command = { type = wakemonarch which = 064589 } #Francesco II
		command = { type = wakemonarch which = 064590 } #Rinaldo III
		command = { type = wakemonarch which = 064591 } #Francesco III
		command = { type = wakemonarch which = 064592 } #Ercole III
		command = { type = wakemonarch which = 064593 } #Ferdinando
		command = { type = wakemonarch which = 064594 } #Francesco IV
		command = { type = wakeleader which = 064814 } #Ercole (ITA)
		command = { type = wakeleader which = 064815 } #Alfonso (ITA)
		command = { type = wakeleader which = 064816 } #Francesco I (ITA)
	}
}

#(1675-1715) Economic and Social Decadence - Ahistorical Alt_Italy formed by Modena
#EXCEPTION : no sleepevent - should apply to each country within KoI too
#by Bordic
event = {
	id = 193063
	trigger = {
		OR = {
			monarch = 064589 #Francesco II
			monarch = 064590 #Rinaldo III
		}
		NOT = {
			exists = MOD
			event = 252018 #MOD: Economic and Social Decadence
		}
		owned = { province = 391 data = -1 } #Romagna
		NOT = {
			countrysize = 10
			domestic = { type = innovative value = 9 }
			domestic = { type = serfdom value = 3 }
			domestic = { type = aristocracy value = 1 }
			event = 338232 #ProvinceSpec*389: The plague in Milan
		}
	}
	random = no
	country = ITA
	name = "EVENTNAME251066" #Economic and Social Decadence
	desc = "EVENTHIST251066"
	#-#In the late XVIIth century, the disuse of the Mediterranean sea as the main international trade junction between Europa and the East Indies brought the Italian economic system to collapse. Italy became more removed from the mainstream of European development and each local administration along the peninsula lagged behind that of any other European contemporary. The practice of agriculture as prevailing economic activity meant the coming back to power of the most conservative landowning aristocracy. That economic backwardness associated with the effects of Counterreform deeply affected Italian social life too, now less and less inclined to accept innovation and to develop some entrepreneurial attitude.

	date = { day = 15 month = january year = 1675 }
	offset = 60
	deathdate = { day = 0 month = january year = 1715 }

	action_a = {
		name = "ALAS"
		command = { type = stability value = -1 }
		command = { type = provincetax which = -2 value = -2 }
		command = { type = provincemanpower which = -2 value = -1 }
		command = { type = domestic which = ARISTOCRACY value = 1 }
		command = { type = domestic which = CENTRALIZATION value = -1 }
		command = { type = domestic which = INNOVATIVE value = -1 }
		command = { type = domestic which = MERCANTILISM value = 1 }
		command = { type = domestic which = SERFDOM value = 1 }
		command = { type = domestic which = LAND value = 1 }
		command = { type = trade value = -500 }
		command = { type = infra value = -500 }
		command = { type = naval value = -500 }
	}
}

#(1806) Francesco IV
event = {
	id = 193020
	trigger = {
		monarch = 064594 #Francesco IV but MOD can exist
		exists = HAB
		NOT = { war = { country = ITA country = HAB } }
	}
	random = no
	country = ITA
	name = "EVENTNAME17439" #Francesco IV
	desc = "EVENTHIST193020"
	#-#Francesco IV was the son of the Emperor Franz I - as the husband of Maria d'Este he achieved the title of King of Italy when her father Ercole III died in 1806.

	date = { day = 24 month = december year = 1806 }

	action_a = {
		name = "OK"
		command = { type = relation which = HAB value = 100 }
		command = { type = trigger which = 179049 } #HAB: Francesco IV King of Italy
		#EXCEPTION : no sleepevent which = 17339 - should apply to MOD too
	}
}

#-----------------------------------------------------------------------------------------------
#Parma created Italy
#-----------------------------------------------------------------------------------------------

#(1419-1820) Sets the monarchs to the Parma monarchs, and adds its leaders
event = {
	id = 193059 #triggered by PAR_390013 / PAR_390014 / PAR_390015
	random = no
	country = ITA
	name = "EVENTNAME193001" #Italian leaders
	desc = "EVENTHIST193001"
	#-#We will get the services of additional leaders and our monarchs will rule Italy.

	action_a = {
		name = "ACTIONNAME193001A" #Our new leaders!
		command = { type = wakemonarch which = 064595 } #Pier Luigi
		command = { type = wakemonarch which = 064596 } #Ottavio
		command = { type = wakemonarch which = 064597 } #Alessandro
		command = { type = wakemonarch which = 064598 } #Ranuccio I
		command = { type = wakemonarch which = 064599 } #Odoardo
		command = { type = wakemonarch which = 064600 } #Ranuccio II
		command = { type = wakemonarch which = 064601 } #Francesco Maria
		command = { type = wakemonarch which = 064602 } #Antonio
		command = { type = wakemonarch which = 064603 } #Carlo
		command = { type = wakemonarch which = 064604 } #Filippo
		command = { type = wakemonarch which = 064605 } #Ferdinando
		command = { type = wakemonarch which = 064606 } #Luigi
		command = { type = wakemonarch which = 064607 } #Carlo Luigi
		command = { type = wakemonarch which = 064608 } #Maria Luisa
		command = { type = wakeleader which = 064840 } #Odoardo (ITA)
	}
}

#(1675-1715) Economic and Social Decadence - Ahistorical Alt_Italy formed by Parma
#EXCEPTION : no sleepevent - should apply to each country within KoI too
#by Bordic
event = {
	id = 193062
	trigger = {
		OR = {
			monarch = 064600 #Ranuccio II
			monarch = 064601 #Francesco Maria
		}
		NOT = {
			exists = PAR
			event = 390028 #PAR: Economic and Social Decadence
		}
		owned = { province = 402 data = -1 } #Emilia
		NOT = {
			countrysize = 10
			domestic = { type = innovative value = 9 }
			domestic = { type = serfdom value = 3 }
			domestic = { type = aristocracy value = 1 }
			event = 338232 #ProvinceSpec*389: The plague in Milan
		}
	}
	random = no
	country = ITA
	name = "EVENTNAME251066" #Economic and Social Decadence
	desc = "EVENTHIST251066"
	#-#In the late XVIIth century, the disuse of the Mediterranean sea as the main international trade junction between Europa and the East Indies brought the Italian economic system to collapse. Italy became more removed from the mainstream of European development and each local administration along the peninsula lagged behind that of any other European contemporary. The practice of agriculture as prevailing economic activity meant the coming back to power of the most conservative landowning aristocracy. That economic backwardness associated with the effects of Counterreform deeply affected Italian social life too, now less and less inclined to accept innovation and to develop some entrepreneurial attitude.

	date = { day = 15 month = january year = 1675 }
	offset = 60
	deathdate = { day = 0 month = january year = 1715 }

	action_a = {
		name = "ALAS"
		command = { type = stability value = -1 }
		command = { type = provincetax which = -2 value = -2 }
		command = { type = provincemanpower which = -2 value = -1 }
		command = { type = domestic which = ARISTOCRACY value = 1 }
		command = { type = domestic which = CENTRALIZATION value = -1 }
		command = { type = domestic which = INNOVATIVE value = -1 }
		command = { type = domestic which = MERCANTILISM value = 1 }
		command = { type = domestic which = SERFDOM value = 1 }
		command = { type = domestic which = LAND value = 1 }
		command = { type = trade value = -500 }
		command = { type = infra value = -500 }
		command = { type = naval value = -500 }
	}
}

#-----------------------------------------------------------------------------------------------
#Savoy created Italy
#-----------------------------------------------------------------------------------------------

#IMPORTANT : Savoy Monarchs are King of Italy (Milan or Mantua version) even if Savoy didn't created Italy and still exists.

#(1419-1820) Sets the monarchs to the Savoy monarchs, and adds it's leaders
event = {
	id = 193005 #triggered by SAV_275003 / SAV_275004 / SAV_275005
	random = no
	country = ITA
	name = "EVENTNAME193001" #Italian leaders
	desc = "EVENTHIST193001"
	#-#We will get the services of additional leaders and our monarchs will rule Italy.

	action_a = {
		name = "ACTIONNAME193001A" #Our new leaders!
		command = { type = wakemonarch which = 064522 } #Amde VIII le Paisible
		command = { type = wakemonarch which = 064523 } #Louis Ier
		command = { type = wakemonarch which = 064524 } #Amde IX le Bni
		command = { type = wakemonarch which = 064525 } #Philibert Ier
		command = { type = wakemonarch which = 064526 } #Charles Ier le Guerrier
		command = { type = wakemonarch which = 064527 } #Charles II
		command = { type = wakemonarch which = 064528 } #Philippe II
		command = { type = wakemonarch which = 064529 } #Philibert II le Beau
		command = { type = wakemonarch which = 064530 } #Charles III le Bon
		command = { type = wakemonarch which = 064531 } #Emmanuel-Philibert
		command = { type = wakemonarch which = 064532 } #Charles Emmanuel Ier
		command = { type = wakemonarch which = 064533 } #Victor Amde Ier
		command = { type = wakemonarch which = 064534 } #Franois-Hyacinthe
		command = { type = wakemonarch which = 064535 } #Charles Emmanuel II
		command = { type = wakemonarch which = 064536 } #Vittorio Amedeo II
		command = { type = wakemonarch which = 064537 } #Carlo Emanuele III
		command = { type = wakemonarch which = 064538 } #Vittorio Amedeo III
		command = { type = wakemonarch which = 064539 } #Carlo Emanuele IV
		command = { type = wakemonarch which = 064540 } #Vittorio Emanuele I
		command = { type = wakeleader which = 064817 } #Thomas Franois (ITA)
		command = { type = wakeleader which = 064818 } #Emmanuel-Philibert (ITA)
		command = { type = wakeleader which = 064819 } #Charles Emmanuel Ier (ITA)
		command = { type = wakeleader which = 064820 } #Vittorio Amedeo II (ITA)
		command = { type = wakeleader which = 064821 } #Carlo Emanuele III (ITA)
		command = { type = wakeleader which = 064822 } #Victor Amde Ier (ITA)
		command = { type = wakeleader which = 064823 } #Colli (ITA)
		command = { type = wakeleader which = 064824 } #Leutrum (ITA)
		command = { type = wakeleader which = 064825 } #Porcile (ITA)
	}
}

#(1430) A General Statute of Laws
event = {
	id = 193023
	trigger = {
		NOT = { exists = SAV }
		NOT = { event = 17410 }
		monarch = 064522 #Amde VIII le Paisible
	}
	random = no
	country = ITA
	name = "EVENTNAME17410" #A General Statute of Laws
	desc = "EVENTHIST193023"
	#-#In 1430 Amadeus VIII promulgated a general statute of laws for the entire Kingdom of Italy that enforced a uniform code over the stenuous opposition of the towns and nobles.

	date = { day = 1 month = january year = 1430 }
	offset = 180
	deathdate = { day = 1 month = january year = 1431 }

	action_a = {
		name = "ACTIONNAME17410A" #Establish the Code of Laws
		command = { type = domestic which = CENTRALIZATION value = 1 }
		command = { type = domestic which = ARISTOCRACY value = -1 }
		command = { type = domestic which = MERCANTILISM value = 1 }
		command = { type = domestic which = INNOVATIVE value = 1 }
		command = { type = gainbuilding which = -2 value = bailiff }
		command = { type = provincetax which = -2 value = 1 }
		command = { type = treasury value = -20 }
		command = { type = stability value = -3 }
		command = { type = infra value = 100 } #strengthens government
		command = { type = sleepevent which = 17410 } #SAV: A General Statute of Laws
	}
	action_b = {
		name = "ACTIONNAME17410B" #Rely on local Custom
		command = { type = domestic which = SERFDOM value = 1 }
		command = { type = domestic which = MERCANTILISM value = -1 }
		command = { type = domestic which = CENTRALIZATION value = -1 }
		command = { type = stability value = 1 }
		command = { type = trade value = 50 } #helps cities
		command = { type = sleepevent which = 17410 } #SAV: A General Statute of Laws
	}
}

#(1439) The Last Anti-Pope
event = {
	id = 193024
	trigger = {
		NOT = { exists = SAV }
		NOT = { event = 17411 }
		monarch = 064522 #Amde VIII le Paisible
	}
	random = no
	country = ITA
	name = "EVENTNAME17411" #The Last Anti-Pope
	desc = "EVENTHIST17411"
	#-#In 1438 Pope Eugenius IV broke with the Council of Basel over negotiations with the Orthodox Church. The Pope called a new Council in Florence, while the council of Basel elected Duke Amadeus VIII of Savoy Pope even though he had never been ordained. He was recognized by very few states and his reign represented the last councilar challenge to papal supremacy in the Catholic church.

	date = { day = 4 month = november year = 1439 }

	action_a = {
		name = "ACTIONNAME17411A" #A pleasant surprise
		command = { type = DIP which = 1 value = 120 }
		command = { type = ADM which = -2 value = 120 }
		command = { type = relation which = PAP value = -100 }
		command = { type = casusbelli which = PAP value = 120 }
		command = { type = treasury value = -50 }
		command = { type = stability value = 2 }
		command = { type = diplomats value = 3 }
		command = { type = missionaries value = 2 }
		command = { type = sleepevent which = 17411 } #SAV: The Last Anti-Pope
	}
}

#(1453-1464) The Holy Shroud - 1st fantasy event for KoI by Bordic
event = {
	id = 193054
	trigger = {
		atwar = no
		NOT = { exists = SAV }
		NOT = { event = 275011 }
		monarch = 064523 #Louis Ier
	}
	random = no
	country = ITA
	name = "EVENTNAME275011" #The Holy Shroud
	desc = "EVENTHIST275011"
	#-#It is believed to be the Jesus' burial shroud. The known provenance of this cloth dates to 1357, when the widow of the French knight Geoffroy de Charny had it displayed in a church at Lirey, France. During the fourteenth century, the Shroud was often publicly exposed, though not continuously, and also denounced as a fraud but indulgences for pilgrimages to see the Shroud were however prescribed by the Antipope Clement VII. In 1418, in order to provide protection against criminal bands the Lirey canons handed the Shroud over to Humbert of Villersexel, Marguerite of Charny's husband, who moved it to his castle at Montfort and later to Saint-Hippolyte-sur-Doubs, in his estates. After Humbert's death, his widow kept the Shroud in spite of claims of ownership by the canons of Lirey and travelled with it to various expositions, notably in Lige and Geneva. In 1453 in Geneva, she sold the image to Louis I of Savoy in exchange for a castle in Varambon. Louis of Savoy, the new owner, stored the Shroud in Chambry in the newly-built Sainte Chapelle, which Pope Paul II shortly thereafter raised to the dignity of a collegiate church. In 1464, by an accord drawn up in Paris Louis I agreed to pay an annual fee to the Lirey canons in exchange for their dropping claims of ownership of the cloth. The accord specifically noted that the Shroud had been given to the church of Lirey by Geoffrey de Charny, lord of Savoisy and Lirey, and that it had then been transferred to Louis of Savoy by Marguerite de Charny. That agreement finally legitimated the House of Savoy to own the sacred 'Sindon'.

	date = { day = 22 month = march year = 1453 }
	offset = 30
	deathdate = { day = 6 month = february year = 1464 }

	action_a = {
		name = "ACTIONNAME275011A" #the Shroud is authentic #That's a deal!
		command = { type = treasury value = -50 }
		command = { type = domestic which = innovative value = -1 }
		command = { type = domestic which = aristocracy value = 1 }
		command = { type = relation which = PAP value = 100 }
		command = { type = sleepevent which = 275011 } #1st #SAV: The Holy Shroud
		command = { type = sleepevent which = 275012 } #2nd #SAV: The Holy Shroud
	}
	action_b = {
		name = "ACTIONNAME275011B" #the Shroud is a medieval forgery #Refuse the transaction!
		command = { type = relation which = FRA value = 25 }
		command = { type = vp value = -5 }
		command = { type = sleepevent which = 275011 } #1st #SAV: Holy Shroud
		command = { type = sleepevent which = 275012 } #2nd #SAV: Holy Shroud
		command = { type = sleepevent which = 193055 } #2nd #ITA: Holy Shroud
	}
}

#(1472-1473) Civil War
event = {
	id = 193025
	trigger = {
		NOT = { exists = SAV }
		NOT = { event = 17412 }
		monarch = 064525 #Philibert Ier
	}
	random = no
	country = ITA
	name = "EVENTNAME193025" #Civil War
	desc = "EVENTHIST193025"
	#-#In 1472 King Philibert was a minor when his mother and regent died. This led to civil war between his Phillipe de Bresse and other hopeful regents supported by another uncle, Louis XI of France.

	date = { day = 1 month = june year = 1472 }
	offset = 150
	deathdate = { day = 1 month = june year = 1473 }

	action_a = {
		name = "OH_NO"
		command = { type = revolt which = -1 }
		command = { type = revoltrisk which = 48 value = 5 }
		command = { type = stability value = -1 }
		command = { type = domestic which = ARISTOCRACY value = 1 }
		command = { type = sleepevent which = 17412 } #SAV: Civil War in Savoy
	}
}

#(1573) The Order of Santi Maurizio e Lazzaro - Savoy + Milan
event = {
	id = 193032
	trigger = {
		NOT = { exists = SAV }
		NOT = { event = 17427 }
		OR = {
			monarch = 064531 #Emmanuel-Philibert
			monarch = 064568 #Emmanuel-Philibert - Milan version
		}
	}
	random = no
	country = ITA
	name = "EVENTNAME17427" #The Order of Santi Maurizio e Lazzaro
	desc = "EVENTHIST193032"
	#-#In 1573 Kingdom of Italy established the Order of the Knights of Santi Maurizio e Lazzaro, in emulation of the success of the Knights of St. John in Malta. The knights maintained a handful of galleys, in principle to protect the italian coast from Turkish raiders.

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

	action_a = {
		name = "ACTIONNAME17427A" #Alright
		command = { type = relation which = SPA value = 20 }
		command = { type = relation which = TUR value = -20 }
		command = { type = naval value = 50 }
		command = { type = sleepevent which = 17427 } #SAV: The Order of Santi Maurizio e Lazzaro
	}
}

#(1562-1580) Reforms of Emmanuel-Philibert
event = {
	id = 193028
	trigger = {
		NOT = { exists = SAV }
		NOT = { event = 17417 }
		monarch = 064531 #Emmanuel-Philibert
		atwar = no
	}
	random = no
	country = ITA
	name = "EVENTNAME17417" #Reforms of Emmanuel-Philibert
	desc = "EVENTHIST193028"
	#-#Emmanuel-Philibert swept away many of the traditional governing structures of the state.

	date = { day = 1 month = january year = 1562 }
	offset = 360
	deathdate = { day = 1 month = january year = 1580 }

	action_a = {
		name = "ACTIONNAME17417A" #Reform the government
		command = { type = gainbuilding which = -1 value = bailiff }
		command = { type = domestic which = centralization value = 3 }
		command = { type = domestic which = aristocracy value = -1 }
		command = { type = domestic which = innovative value = 1 }
		command = { type = domestic which = mercantilism value = 1 }
		command = { type = land value = 600 }
		command = { type = infra value = 250 }
		command = { type = sleepevent which = 17417 } #SAV: Reforms of Emmanuel-Philibert
		command = { type = sleepevent which = 193029 } #ITA: Reforms of Emmanuel-Philibert
	}
}

#(1638-1642) civil wars under Charles Emmanuel II
event = {
	id = 193026
	trigger = {
		NOT = { exists = SAV }
		NOT = { event = 17416 }
		monarch = 064535 #Charles Emmanuel II
	}
	random = no
	country = ITA
	name = "EVENTNAME193026" #Civil Wars
	desc = "EVENTHIST193026"
	#-#The regency of Charles Emmanuel II was in the hands of his mother. Despite her French origins she resisted French attempts to determine policy for Kingdom of Italy. However, her brothers-in-law sought the help of Spain to oust her from the regency and she was forced to accept French aid in the civil wars that followed.

	date = { day = 4 month = october year = 1638 }
	offset = 60
	deathdate = { day = 14 month = june year = 1642 }

	action_a = {
		name = "ACTIONNAME193026A" #What can we do?
		command = { type = stability value = -3 }
		command = { type = revoltrisk which = 60 value = 4 }
		command = { type = ADM which = -2 value = 60 }
		command = { type = DIP which = -2 value = 60 }
		command = { type = MIL which = -2 value = 60 }
		command = { type = relation which = FRA value = 50 }
		command = { type = sleepevent which = 17416 } #SAV: Civil Wars in Savoy
		command = { type = sleepevent which = 193027 } #ITA: Civil Wars
	}
}

#(1675-1715) Economic and Social Decadence - Ahistorical Alt_Italy formed by Savoy
#EXCEPTION : no sleepevent - should apply to each country within KoI too
#by Bordic
event = {
	id = 193065
	trigger = {
		OR = {
			monarch = 064535 #Charles Emmanuel II
			monarch = 064536 #Vittorio Amedeo II
		}
		NOT = {
			exists = SAV
			event = 275022 #SAV: Economic and Social Decadence
		}
		owned = { province = 404 data = -1 } #Piemonte
		NOT = {
			countrysize = 10
			domestic = { type = innovative value = 9 }
			domestic = { type = serfdom value = 3 }
			domestic = { type = aristocracy value = 1 }
			event = 338232 #ProvinceSpec*389: The plague in Milan
		}
	}
	random = no
	country = ITA
	name = "EVENTNAME251066" #Economic and Social Decadence
	desc = "EVENTHIST251066"
	#-#In the late XVIIth century, the disuse of the Mediterranean sea as the main international trade junction between Europa and the East Indies brought the Italian economic system to collapse. Italy became more removed from the mainstream of European development and each local administration along the peninsula lagged behind that of any other European contemporary. The practice of agriculture as prevailing economic activity meant the coming back to power of the most conservative landowning aristocracy. That economic backwardness associated with the effects of Counterreform deeply affected Italian social life too, now less and less inclined to accept innovation and to develop some entrepreneurial attitude.

	date = { day = 15 month = january year = 1675 }
	offset = 60
	deathdate = { day = 0 month = january year = 1715 }

	action_a = {
		name = "ALAS"
		command = { type = stability value = -1 }
		command = { type = provincetax which = -2 value = -2 }
		command = { type = provincemanpower which = -2 value = -1 }
		command = { type = domestic which = ARISTOCRACY value = 1 }
		command = { type = domestic which = CENTRALIZATION value = -1 }
		command = { type = domestic which = INNOVATIVE value = -1 }
		command = { type = domestic which = MERCANTILISM value = 1 }
		command = { type = domestic which = SERFDOM value = 1 }
		command = { type = domestic which = LAND value = 1 }
		command = { type = trade value = -500 }
		command = { type = infra value = -500 }
		command = { type = naval value = -500 }
	}
}

#(1694-1820) The Holy Shroud 2nd fantasy event for KOI by Bordic - Savoy + Mantua + Milan
event = {
	id = 193055
	trigger = {
		atwar = no
		NOT = { exists = SAV }
		NOT = { event = 275012 }
		owned = { province = 404 data = -1 } #Piemonte
		OR = {
			event = 193054 #if SAV has formed KoI
			event = 275011 #1st #SAV: Holy Shroud
		}
		OR = {
			monarch = 064515 #MAN Carlo Emanuele III
			monarch = 064516 #MAN Vittorio Amedeo III
			monarch = 064517 #MAN Carlo Emanuele IV
			monarch = 064518 #MAN Vittorio Emanuele Ier
			monarch = 064536 #SAV Vittorio Amedeo II
			monarch = 064537 #SAV Carlo Emanuele III
			monarch = 064538 #SAV Vittorio Amedeo III
			monarch = 064539 #SAV Carlo Emanuele IV
			monarch = 064540 #SAV Vittorio Emanuele Ier
			monarch = 064573 #MLO Vittorio Amedeo II
			monarch = 064574 #MLO Carlo Emanuele III
			monarch = 064575 #MLO Vittorio Amedeo III
			monarch = 064576 #MLO Carlo Emanuele IV
			monarch = 064577 #MLO Vittorio Emanuele Ier
		}
	}
	random = no
	country = ITA
	name = "EVENTNAME275011" #The Holy Shroud
	desc = "EVENTHIST275012"
	#-#Louis I of Savoy acquired the cloth, believed to be the Jesus' burial shroud, from Geoffroy de Charny's grand-daughter Marguerite in 1453 in Geneva in exchange for a castle in Varambon, France. He then stored the Shroud in Chambery in the newly-built Sainte Chapelle which the Pope Paul II shortly thereafter raised to the dignity of a collegiate church. Beginning in 1471, the Shroud was moved between many cities of Savoy and Piedmont and also housed there briefly. In 1532 the Shroud suffered damage from a fire in the chapel where it was stored in Chambry. A drop of molten silver from the reliquary produced a symmetrically-placed mark through the layers of the folded cloth. Chambry's poor Clare Nuns attempted to repair this damage with patches. In 1578, after having been continuously transferred from one place to another for protection against war devastations, the Shroud arrived at last to its final destination, the Cathedral of Turin. Since then the Shroud was frequently carried out in religious processions and also brought in public exhibitions as well as in private showings only for the most notable people. Turin became an important centre of Christian pilgrimage.

	date = { day = 1 month = june year = 1694 }
	offset = 300
	deathdate = { year = 1820 }

	action_a = {
		name = "ACTIONNAME275012A" #Turin City of modern Christianity #Pilgrims are welcome!
		command = { type = treasury value = 250 }
		command = { type = infra value = 250 }
		command = { type = relation which = PAP value = 100 }
		command = { type = sleepevent which = 275012 } #SAV: Holy Shroud II
	}
}

#(1717) The Absolutist reforms of Vittorio Amedeo II - Savoy + Milan
event = {
	id = 193030
	trigger = {
		NOT = { exists = SAV }
		NOT = { event = 17418 }
		OR = {
			monarch = 064536 #Vittorio Amedeo II
			monarch = 064573 #Vittorio Amedeo II - Milan version
		}
	}
	random = no
	country = ITA
	name = "EVENTNAME17418" #The Absolutist Reforms of Vittorio Amedeo II
	desc = "EVENTHIST193030"
	#-#After the War of Spanish Succession Vittorio Amedeo II overhauled the administration of the Italian state along absolutist lines. He centralized power, reduced the independence of the judiciary, established a diplomatic network of embassies in major capitals, created a navy and a militia and placed the states finances on a more solid basis. These reforms laid the foundation from which the further expansion of Italy in the eighteenth century.

	date = { day = 1 month = january year = 1717 }
	offset = 30
	deathdate = { day = 1 month = january year = 1718 }

	action_a = {
		name = "ACTIONNAME17418A" #Enact absolutist reforms
		command = { type = domestic which = Aristocracy value = -2 }
		command = { type = domestic which = Centralization value = 2 }
		command = { type = domestic which = Innovative value = 1 }
		command = { type = domestic which = Quality value = -1 }
		command = { type = stability value = -1 }
		command = { type = naval value = 300 }
		command = { type = provincemanpower which = -2 value = 1 }
		command = { type = diplomats value = 3 }
		command = { type = sleepevent which = 17418 } #SAV: The Absolutist Reforms of Vittorio Amedeo II
	}
	action_b = {
		name = "ACTIONNAME17418B" #Maintain the present system
		command = { type = domestic which = ARISTOCRACY value = 1 }
		command = { type = domestic which = CENTRALIZATION value = -1 }
		command = { type = sleepevent which = 17418 } #SAV: The Absolutist Reforms of Vittorio Amedeo II
		command = { type = sleepevent which = 17419 } #SAV: The Reforms of Carlo Emanuele III
		command = { type = sleepevent which = 193031 } #ITA: The Reforms of Carlo Emanuele III
	}
}

#(1731) The Absolutist reforms of Carlo Emanuele III - Savoy + Mantua + Milan
event = {
	id = 193031
	trigger = {
		NOT = { exists = SAV }
		NOT = { event = 17419 }
		OR = {
			monarch = 064515 #Carlo Emanuele III - Mantua version
			monarch = 064537 #Carlo Emanuele III
			monarch = 064574 #Carlo Emanuele III - Milan version
		}
	}
	random = no
	country = ITA
	name = "EVENTNAME17419" #The Reforms of Carlo Emanuele III
	desc = "EVENTHIST193031"
	#-#Upon his ascension Carlo Emanuele III oversaw the finalization of a land register enumerating all the property in the state. This survey was the first of its kind in Europe. It ended manorial and clerical privileges, and allowed Charles Emmanuel to build a very effective bureaucracy to administer his father's reforms. Kingdom of Italy was the model of the 'well-administered state', and tax revenues soared. During his reign Italy had the most effective army it would have until the mid-19th century, winning notable successes in the Polish War of Succession and the Austrian War of Succession.

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

	action_a = {
		name = "ACTIONNAME17419A" #More reforms
		command = { type = domestic which = Aristocracy value = -1 } #privileges further reduced
		command = { type = domestic which = Centralization value = 1 }#effective taxation
		command = { type = domestic which = Innovative value = 1 }
		command = { type = domestic which = Quality value = -1 }#better manpower
		command = { type = domestic which = Offensive value = -2 }#better military doctrine
		command = { type = domestic which = Land value = 2 }#better army
		command = { type = provincetax which = -2 value = 1 }
		command = { type = provincetax which = -1 value = 1 }
		command = { type = ADM which = 1 value = 120 }
		command = { type = infra value = 500 }
		command = { type = land value = 500 }
		command = { type = sleepevent which = 17419 } #SAV: The Reforms of Carlo Emanuele III
	}
	action_b = {
		name = "ACTIONNAME17418B" #Maintain the present system
		command = { type = fortress which = -1 value = 1 }
		command = { type = domestic which = ARISTOCRACY value = 1 }
		command = { type = domestic which = CENTRALIZATION value = -1 }
		command = { type = stability value = 2 }
		command = { type = sleepevent which = 17419 } #SAV: The Reforms of Carlo Emanuele III
	}
}

#-----------------------------------------------------------------------------------------------
#Tuscany created Italy
#-----------------------------------------------------------------------------------------------

#(1419-1820) Sets the monarchs to the Florentine monarchs, and adds it's leaders
event = {
	id = 193003 #triggered by TOS_297008 / TOS_297009 / TOS_297010
	random = no
	country = ITA
	name = "EVENTNAME193001" #Italian leaders
	desc = "EVENTHIST193001"
	#-#We will get the services of additional leaders and our monarchs will rule Italy.

	action_a = {
		name = "ACTIONNAME193001A" #Our new leaders!
		command = { type = wakemonarch which = 064541 } #Giovanni di Bicci de' Medici
		command = { type = wakemonarch which = 064542 } #Cosimo il Vecchio
		command = { type = wakemonarch which = 064543 } #Piero il Gottoso
		command = { type = wakemonarch which = 064544 } #Lorenzo il Magnifico
		command = { type = wakemonarch which = 064545 } #Piero II de' Medici
		command = { type = wakemonarch which = 064546 } #Giuliano II de' Medici
		command = { type = wakemonarch which = 064547 } #Lorenzo II de' Medici
		command = { type = wakemonarch which = 064548 } #Giulio de' Medici
		command = { type = wakemonarch which = 064549 } #Alessandro I
		command = { type = wakemonarch which = 064550 } #Cosimo I
		command = { type = wakemonarch which = 064551 } #Francesco I
		command = { type = wakemonarch which = 064552 } #Ferdinando I
		command = { type = wakemonarch which = 064553 } #Cosimo II
		command = { type = wakemonarch which = 064554 } #Ferdinando II
		command = { type = wakemonarch which = 064555 } #Cosimo III
		command = { type = wakemonarch which = 064556 } #Gian Gastone
		command = { type = wakemonarch which = 064557 } #Francesco II
		command = { type = wakemonarch which = 064558 } #Pietro Leopoldo I
		command = { type = wakemonarch which = 064559 } #Ferdinando III
		command = { type = wakeleader which = 064826 } #E Bentivoglio (ITA)
		command = { type = wakeleader which = 064827 } #E d'Este (ITA)
		command = { type = wakeleader which = 064828 } #V Vitelli (ITA)
		command = { type = wakeleader which = 064829 } #F Sforza (ITA)
		command = { type = wakeleader which = 064830 } #SP Malatesta (ITA)
		command = { type = wakeleader which = 064831 } #F Montefeltro (ITA)
		command = { type = wakeleader which = 064832 } #A Vitelli (ITA)
		command = { type = wakeleader which = 064833 } #Medeghino (ITA)
		command = { type = wakeleader which = 064834 } #Giovanni (ITA)
		command = { type = wakeleader which = 064835 } #Gb Serbelloni (ITA)
		command = { type = wakeleader which = 064836 } #Bourbon del Monte (ITA)
		command = { type = wakeleader which = 064837 } #Inghirami (ITA)
		command = { type = wakeleader which = 064838 } #Mathias (ITA)
	}
}

#(1427-1454) Catasto
event = {
	id = 193056
	trigger = {
		NOT = { exists = TOS }
		NOT = { event = 297014 }
		atwar = no
		OR = {
			monarch = 064541 #Giovanni I de' Medici
			monarch = 064542 #Cosimo de' Medici
		}
	}
	random = no
	country = ITA
	name = "EVENTNAME193056" #Catasto
	desc = "EVENTHIST193056"
	#-#Giovanni de' Medici is responsible for the introduction of the catasto, a new system of taxation on declarations of assets, not of income, which is easily disguised. It is a very popular act as one chronicler puts it, now the common folk have the satisfaction of seeing 'those who previously paid 20 florins are now paying 300'. The excitement was appeased by Giovanni de' Medici, who said, It is not well to go into things so long past, unless to learn something for our present guidance, and if in former times the taxation has been unjust, we ought to be thankful, that we have now discovered a method of making it equitable, and hope that this will be the means of uniting the citizens, not of dividing them, which would certainly be the case were they to attempt the recovery of taxes for the past, and make them equal to the present, and that he who is content with a moderate victory is always most successful, for those who would more than conquer, commonly lose.

	date = { day = 20 month = april year = 1427 }
	offset = 60
	deathdate = { day = 22 month = march year = 1454 }

	action_a = {
		name = "OK"
		command = { type = trade value = 300 }
		command = { type = inflation value = -1 }
		command = { type = provincetax which = -2 value = 1 }
		command = { type = domestic which = serfdom value = -1 }
		command = { type = treasury value = 200 }
		command = { type = stability value = 1 }
		command = { type = domestic which = aristocracy value = -1 }
		command = { type = sleepevent which = 297014 } #TOS: Catasto
	}
}

#(1494) The Rise of Savonarola
event = {
	id = 193034
	trigger = {
		monarch = 064545 #Piero II de' Medici
		NOT = { event = 17317 }
		owned = { province = 401 data = -1 } #Firenze
	}
	random = no
	country = ITA
	name = "EVENTNAME193034" #The Rise of Savonarola
	desc = "EVENTHIST193034"
	#-#Girolamo Savonarola was a Dominican monk, who rose to power in Florence's city council driving out the despised de' Medici's governor and led the city into an age of enforced piety. He oversaw burnings of luxuries, scourging of the wicked and violent denuciations of the excesses of themerchant classes. In 1497, during the carnival, rather than the traditional games and costume parades Savonarola oversaw the famous 'bonfire of the vanities', where numerous paintings, books and clothes that were considered lewd were burned.

	date = { day = 17 month = november year = 1494 }

	action_a = {
		name = "ACTIONNAME193034A" #Save our Souls!
		command = { type = domestic which = aristocracy value = -1 }
		command = { type = domestic which = centralization value = -1 }
		command = { type = domestic which = innovative value = -1 }
		command = { type = domestic which = quality value = -1 }
		command = { type = relation which = PAP value = -50 }
		command = { type = DIP which = -2 value = 60 }
		command = { type = ADM which = -2 value = 60 }
		command = { type = stability value = -1 }
	}
}

#(1498) Savonarola Challenged
event = {
	id = 193035
	trigger = {
		monarch = 064545 #Piero II de' Medici
		OR = {
 			event = 17317
 			event = 193034
		}
		owned = { province = 401 data = -1 } #Firenze
	}
	random = no
	country = ITA
	name = "EVENTNAME193035" #Savonarola Challenged
	desc = "EVENTHIST193035"
	#-#Savonarola made many enemies with his firebrand preaching not least Pope Alexander VI (Rodrigo Borgia). After tolerating Savonarola's preaching for several years Alexander VII excommunicated him.

	date = { day = 22 month = may year = 1498 }

	action_a = {
		name = "ACTIONNAME193035A" #Forget the Heretic
		command = { type = domestic which = aristocracy value = 1 }
		command = { type = domestic which = quality value = 1 }
		command = { type = relation which = PAP value = 25 }
		command = { type = stability value = -1 }
	}
}

#(1675-1715) Economic and Social Decadence - Ahistorical Alt_Italy formed by Tuscany
#EXCEPTION : no sleepevent - should apply to each country within KoI too
#by Bordic
event = {
	id = 193046
	trigger = {
		monarch = 064555 #Cosimo III
		NOT = {
			exists = TOS
			event = 297032 #TOS: Economic and Social Decadence
		}
		owned = { province = 401 data = -1 } #Firenze
		NOT = {
			countrysize = 10
			domestic = { type = innovative value = 9 }
			domestic = { type = serfdom value = 3 }
			domestic = { type = aristocracy value = 1 }
			event = 338232 #ProvinceSpec*389: The plague in Milan
		}
	}
	random = no
	country = ITA
	name = "EVENTNAME251066" #Economic and Social Decadence
	desc = "EVENTHIST251066"
	#-#In the late XVIIth century, the disuse of the Mediterranean sea as the main international trade junction between Europa and the East Indies brought the Italian economic system to collapse. Italy became more removed from the mainstream of European development and each local administration along the peninsula lagged behind that of any other European contemporary. The practice of agriculture as prevailing economic activity meant the coming back to power of the most conservative landowning aristocracy. That economic backwardness associated with the effects of Counterreform deeply affected Italian social life too, now less and less inclined to accept innovation and to develop some entrepreneurial attitude.

	date = { day = 15 month = march year = 1675 }
	offset = 60
	deathdate = { day = 0 month = january year = 1715 }

	action_a = {
		name = "ALAS"
		command = { type = stability value = -1 }
		command = { type = provincetax which = -2 value = -2 }
		command = { type = provincemanpower which = -2 value = -1 }
		command = { type = domestic which = ARISTOCRACY value = 1 }
		command = { type = domestic which = CENTRALIZATION value = -1 }
		command = { type = domestic which = INNOVATIVE value = -1 }
		command = { type = domestic which = MERCANTILISM value = 1 }
		command = { type = domestic which = SERFDOM value = 1 }
		command = { type = domestic which = LAND value = 1 }
		command = { type = trade value = -500 }
		command = { type = infra value = -500 }
		command = { type = naval value = -500 }
	}
}

#(1737-1765) The rule of the House of Lorraine
event = {
	id = 193039
	trigger = {
		monarch = 064557 #Francesco II but TOS can exist
		OR = {
			event = 3736 #FRA: French Inheritance of Lothringen
			event = 170202 #FRA: The claim to Lorraine
		}
		exists = HAB
		NOT = { war = { country = ITA country = HAB } }
	}
	random = no
	country = ITA
	name = "EVENTNAME17370" #The rule of the House of Lorraine
	desc = "EVENTHIST193039"
	#-#At the death of Gian Gastone, the last of the ruling house of Medici, Francesco II became King of Italy in 1737 in exchange for giving up his Duchy of Lorraine. He was the husband of Maria Theresa, heir to the Habsburg domains, and was elected emperor in 1745. He lived in Vienna and never visited Italy. Although the country was reasonably well administered under his reign it was very heavily taxed to support Francesco's court and Austria's wars. Under the reign of Francesco II Italy became more firmly attached to the Habsburg dynasty then ever.

	date = { day = 9 month = july year = 1737 }
	offset = 10
	deathdate = { day = 17 month = august year = 1765 }

	action_a = {
		name = "OK"
		command = { type = stability value = 1 }
		command = { type = DIP which = 2 value = 12 }
		command = { type = dynastic which = HAB }
		#EXCEPTION : no sleepevent which = 17370 - should apply to TOS too
	}
}
#(1737-1765) The House of Lorraine settles in Italy (no War of Polish Succession)
event = {
	id = 193067
	trigger = {
		OR = {
			event = 3632 #LOR: Habsburg Inheritance of Lothringen
			event = 170202 #FRA: The claim to Lorraine (choice B)
		}
		monarch = 064557 #Francesco II but TOS can exist
		exists = HAB
		NOT = { war = { country = ITA country = HAB } }
	}
	random = no
	country = ITA
	name = "EVENTNAME193067" #The House of Lorraine settles in Italy
	desc = "EVENTHIST193067"
	#-#In 1737, at the death of Gian Gastone, the last of the ruling house of Medici, Duke Franois III Stephan of Lorraine became King of Italy thanks to his political marriage with Maria Theresa of Austria, heir of all the Habsburgs' domains. In facts many were the interests of the House of Habsburg in exercising its hegemonic power in Italy in order to chase any Bourbon interference out of the peninsula. During his rule, Francesco II preferred to live in Vienna and never visited Italy. Although the country was reasonably well administered under his reign, Italy was very heavily taxed to support Francesco's court and Austria's wars. Under the reign of Francesco II Italy became more firmly attached to the Habsburg dynasty then ever.

	date = { day = 9 month = july year = 1737 }
	offset = 10
	deathdate = { day = 17 month = august year = 1765 }

	action_a = {
		name = "OK"
		command = { type = stability value = 1 }
		command = { type = DIP which = 2 value = 12 }
		command = { type = dynastic which = HAB }
		command = { type = dynastic which = LOR }
		#EXCEPTION : no sleepevent which = 297036 - should apply to TOS too
	}
}

#(1765) Reforms of Pietro Leopoldo
event = {
	id = 193041
	trigger = {
		monarch = 064558 #Pietro Leopoldo I
	}
	random = no
	country = ITA
	name = "EVENTNAME193041" #Reforms of Pietro Leopoldo
	desc = "EVENTHIST193041"
	#-#Pietro Leopoldo was the younger son of Francesco II. He replaced the Germans in the administration of Kingdom of Italy with Italians. He abolished the tax privileges of the upper classes and curbed the power of the clergy.

	date = { day = 18 month = august year = 1765 }

	action_a = {
		name = "OK"
		command = { type = trigger which = 193057 } #breakvassal HAB #ITA: Consequences of Pietro Leopoldo reforms
		command = { type = stability value = 1 }
		command = { type = infra value = 500 }
		command = { type = domestic which = aristocracy value = -1 }
		command = { type = domestic which = centralization value = 1 }
		command = { type = domestic which = quality value = -1 }
		command = { type = provincetax which = -2 value = 2 }
		command = { type = relation which = PAP value = -40 }
		#EXCEPTION : no sleepevent which = 17372 - should apply to TOS too
	}
}
#(1765) Consequences of Pietro Leopoldo reforms
event = {
	id = 193057 #triggered by ITA_193041
	trigger = {
		vassal = { country = HAB country = ITA }
	}
	random = no
	country = ITA
	name = "EVENTNAME193057" #Consequences of Pietro Leopoldo reforms
	desc = "EVENTHIST193057"
	#-#Upon his ascension to the crown of Austria in 1790 Pietro Leopoldo appointed his younger son as King of Italy.

	action_a = {
		name = "OK"
		command = { type = breakvassal which = HAB }
		command = { type = stability value = 3 }
	}
}

#(1786-1787) Beccaria's essay on Crimes and Punishments
#by Bordic
event = {
	id = 193058
	trigger = {
		atwar = no
		NOT = { exists = TOS }
		NOT = { event = 297016 }
		monarch = 064558 #Pietro Leopoldo I
	}
	random = no
	country = ITA
	name = "EVENTNAME297016" #Beccaria's essay on Crimes and Punishments
	desc = "EVENTHIST297016"
	#-#In 1764, Cesare Bonesana, Marquis of Beccaria, published a brief but justly celebrated treatise, 'Dei Delitti e delle Pene' (On Crimes and Punishments), which marked the high point of the Milan Enlightenment. In it, Beccaria put forth the first arguments ever made against the death penalty. His treatise was also the first full work of penology, advocating reform of the criminal law system. Apart from condemning the death penalty (on two grounds: first, because the state does not possess the right to take lives and secondly, because capital punishment is neither a useful nor a necessary form of punishment), Beccaria developed in his treatise a number of innovative and influential principles: punishment had a preventive, not a retributive, function, punishment should be proportionate to the crime committed, the certainty of punishment, not its severity, would achieve the preventive effect, procedures of criminal convictions should be public and finally, in order to be effective, punishment should be prompt. The book was the first full-scale work to tackle criminal reform and to suggest that criminal justice should conform to rational principles. In this, Beccaria reflected the convictions of the 'Il Caff' group, who sought to cause reform through Enlightenment discourse. Put across in a clear and animated style, the book's serious message was based in particular upon a deep sense of humanity and of urgency at unjust suffering. This humane sentiment was what made Beccaria appeal for rationality in the laws. In 1786 Pietro Leopoldo of Habsburg-Lorraine was the first European monarch to reform the penal code with his 'Codice Leopoldino', he but followed Beccaria's argument about the lack of utility of capital punishment, not about the state's lacking right to execute citizens.

	date = { day = 10 month = march year = 1786 }
	offset = 30
	deathdate = { day = 10 month = january year = 1787 }

	action_a = {
		name = "ACTIONNAME297016A" #Reform the Justice
		command = { type = stability value = -1 }
		command = { type = domestic which = SERFDOM value = -2 }
		command = { type = domestic which = INNOVATIVE value = 1 }
		command = { type = infra value = 250 }
		command = { type = gainbuilding which = -2 value = courthouse }
		command = { type = treasury value = -100 }
		#EXCEPTION : no sleepevent which = 297016 - should apply to TOS too
	}
	action_b = {
		name = "ACTIONNAME3297B" #too much enlightenment... #Maintain the present system
		command = { type = vp value = -10 }
		command = { type = infra value = -100 }
	}
}

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

#193800-193999 reserved for Specific_Italy

#First free id: 193068
