#####Florence (Toscana) Major Events#####
#######By Joakim 'Greven' Bergqwist######
#########################################

# Modified by Isaac Brock
#The League of Cambrai#
event = {

	id = 3649
	trigger = { 
			event = 17017 #VEN seeing a chance
			exists = VEN 
		}
	random = no
	country = TOS
	name = "EVENTNAME3649"
	desc = "EVENTHIST3649"
	style = 2

	date = { day = 1 month = october year = 1503 }
	offset = 2070
	deathdate = { day = 1 month = april year = 1509 }

	action_a ={
		name = "ACTIONNAME3649A"		#Express Support#
		command = { type = casusbelli which = VEN value = 72 }
		command = { type = relation which = VEN value = -150 }
		command = { type = relation which = FRA value = 150 }
		command = { type = relation which = PAP value = 150 }
		command = { type = relation which = HAB value = 150 }
		command = { type = relation which = ARG value = 150 }

	}

	action_b ={
		name = "ACTIONNAME3649B"		#Ignore#
		command = { type = relation which = VEN value = 50 }
		command = { type = relation which = FRA value = -50 }
		command = { type = relation which = PAP value = -50 }
		command = { type = relation which = HAB value = -50 }
		command = { type = relation which = ARG value = -50 }
	}

	action_c ={
		name = "ACTIONNAME3649C"		#Express Hostility#
		command = { type = relation which = VEN value = 150 }
		command = { type = relation which = FRA value = -150 }
		command = { type = relation which = PAP value = -150 }
		command = { type = relation which = HAB value = -150 }
		command = { type = relation which = ARG value = -150 }
	}

}

#The Holy League#
event = {

	id = 3650
	trigger = {
				 exists = TUR
				event = 3549
			 }
	random = no
	country = TOS
	name = "EVENTNAME3650"
	desc = "EVENTHIST3650"
	style = 2

	date = { day = 1 month = january year = 1568 }
	offset = 30
	deathdate = { day = 1 month = january year = 1571 }

	action_a ={						#Support the Holy League#
		name = "ACTIONNAME3650A"
		command = { type = casusbelli which = TUR value = 72 }
		command = { type = relation which = TUR value = 150 }
		command = { type = relation which = PAP value = 150 }
		command = { type = relation which = FRA value = 150 }
		command = { type = relation which = SPA value = 150 }
		command = { type = relation which = KNI value = 150 }
		command = { type = relation which = VEN value = 150 }
		command = { type = relation which = NAP value = 150 }
		command = { type = relation which = SAV value = 150 }
	}

	action_b ={						#Let the matter fall#
		name = "ACTIONNAME3650B"
		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 = SPA value = -50 }
		command = { type = relation which = KNI value = -50 }
		command = { type = relation which = VEN value = -50 }
		command = { type = relation which = NAP value = -50 }
		command = { type = relation which = SAV value = -50 }
	}
}

# The Castro War #
# modeled after League of Cambrai#
# By Isaac Brock #
event = {
	id = 17437
	trigger = { 
		exists = PAP 
		event = 17435
		}
	random = no
	country = TOS
	name = "EVENTNAME17436"
	desc = "EVENTHIST17437"

	style = 3
	date = { day = 10 month = october year = 1641 }#siege of Castro
	offset = 600
	deathdate = { day = 1 month = june year = 1643 }#first allied campaign


	action_a ={
		name = "ACTIONNAME17436A"		#Express Support#
		command = { type = casusbelli which = PAP value = 72 }
		command = { type = relation which = PAP value = -150 }
		command = { type = relation which = PAR value = 150 }
		command = { type = relation which = VEN value = 150 }
	}
	action_b ={
		name = "ACTIONNAME17436B"		#Ignore#
		command = { type = relation which = PAP value = 50 }
		command = { type = relation which = VEN value = -50 }
		command = { type = relation which = PAR value = -50 }
	}
	action_c ={
		name = "ACTIONNAME17436C"		#Express Hostility#
		command = { type = relation which = PAP value = 150 }
		command = { type = relation which = VEN value = -150 }
		command = { type = relation which = PAR value = -150 }
	}
}

#Donatello#
event = {
	id = 17361
	random = no
	country = TOS
	name = "EVENTNAME17361"
	desc = "EVENTHIST17361"
	style = 0
	date = { day = 1 month = january year = 1430}
	offset = 360

	action_a ={				#Ok#
		name = "ACTIONNAME5221A"
		command = { type = stability value = 1 }
		command = { type = infra value = 250 }
	}
}

#The Albizzi vs. Cosimo de' Medici#
event = {
	id = 17362
	random = no
	country = TOS
	name = "EVENTNAME17362"
	desc = "EVENTHIST17362"
	style = 0
	date = { day = 1 month = september year = 1433}
	offset = 30

	action_a ={				
		name = "ACTIONNAME17362A"
		command = { type = stability value = 1 }
		command = { type = domestic which = centralization  value = -1 }
		command = { type = sleepevent which = 17319 } # Cosimo's reforms
		command = { type = wakemonarch which = 06703 } #Albizzi
		command = { type = wakemonarch which = 06704 } #Cosimo returned
	}
	action_b ={				#Ok#
		name = "ACTIONNAME17362B"
		command = { type = stability value = -4 }
		command = { type = domestic which = centralization  value = -2 }
		command = { type = revolt which = 401 }
		command = { type = revolt which = 401 }
		command = { type = sleepevent which = 17363 } # return of Medici
		command = { type = sleepmonarch which = 06703 } #Albizzi
		command = { type = sleepmonarch which = 06704 } #Cosimo returned
	}
}

event = {
	id = 17363
	trigger = { event = 17362 } #Albizzi vs. Medici
	random = no
	country = TOS
	name = "EVENTNAME17363"
	desc = "EVENTHIST17363"
	style = 0
	date = { day = 10 month = august year = 1434 }
	offset = 30

	action_a ={				
		name = "ACTIONNAME5251A"
		command = { type = stability value = 2 }
		command = { type = domestic which = centralization  value = 2 }
		command = { type = domestic which = aristocracy  value = -2 }
		command = { type = domestic which = mercantilism  value = -1 }
		command = { type = domestic which = serfdom  value = -1 }
		command = { type = domestic which = innovative  value = 1 }
		command = { type = infra value = 300 } 
	}
}

#Volterra.  
event = {
	id = 17364
	random = no
	country = TOS
	name = "EVENTNAME17364"
	desc = "EVENTHIST17364"
	style = 1
	date = { day = 30 month = april year = 1472}
	offset = 120

	action_a ={				
		name = "ACTIONNAME17364A"
		command = { type = merchants value = 3 }
		command = { type = revolt which = 401 }
		command = { type = revolt which = 401 }
		command = { type = provincetax   which = 401 value = -1 }
	}
	action_b ={				
		name = "ACTIONNAME17364B"
		command = { type = stability value = -2 }
		command = { type = cash value = -20 }
		command = { type = vp value = -20 }
		command = { type = domestic which = centralization value = 1 }
	}
}

event = {
	id = 17365
	trigger = { event = 17360}  #Pazzi conspiracy PAP
	random = no
	country = TOS
	name = "EVENTNAME17360"
	desc = "EVENTHIST17365"
	style = 0
	date = { day = 26 month = april year = 1478}

	action_a ={				
		name = "ACTIONNAME5251A"
		command = { type = cash value = 50 }
		command = { type = casusbelli which = PAP value = 12 }
		command = { type = stability value = -1 }
		command = { type = relation which = PAP value = -300 }
		command = { type = domestic which = centralization value = 2 }
		command = { type = INF which = -2 value = 4000 }
		command = { type = CAV which = -2 value = 2000 }
	}
}

#Revolt in Siena - Habsburgs request help
event = {
	id = 17357 #triggered by 17356 Revolt in Siena SPA, or 17359 Revolt in Siena HAB
	random = no
	country = TOS
	name = "EVENTNAME17359"
	desc = "EVENTHIST17357"
	style = 1
	action_a ={
		name = "ACTIONNAME5251A"
		command = { type = casusbelli which = PIS value = 12 }
		command = { type = relation which = PIS value = -100 }          
          	}
}

#Cadorna attacks Florence#
#undoes the republic and milita sliders.
event = {
	id = 17366
	random = no
	country = TOS
trigger = {
		flag = militiaflag
		}
	name = "EVENTNAME17366"
	desc = "EVENTHIST17366"
	style = 1
	date = { day = 1 month = august year = 1512}
	offset = 30

	action_a ={				
		name = "ACTIONNAME17366A"
		command = { type = stability value = 1 }
		command = { type = domestic which = innovative value = 1 }
		command = { type = domestic which = centralization value = 2 }
		command = { type = domestic which = aristocracy value = 2 }
		command = { type = domestic which = serfdom value = 2 }
		command = { type = domestic which = quality value = 2 }
		command = { type = domestic which = land value = -1 }
		command = { type = domestic which = offensive value = -2 }
		command = { type = provincetax which = -2 value = -1 }
	}
	action_b ={				
		name = "ACTIONNAME17366B"
		command = { type = stability value = -3 }
		command = { type = domestic which = innovative value = 1 }
		command = { type = domestic which = centralization value = 1 }
		command = { type = domestic which = aristocracy value = 1 }
		command = { type = domestic which = serfdom value = 1 }
		command = { type = domestic which = quality value = 2 }
		command = { type = domestic which = land value = -1 }
		command = { type = domestic which = offensive value = -2 }
	}
}

event = {
	id = 71318
        trigger = {
		NOT = {
			flag = militiaflag
			}
		}
	random = no
	country = TOS
	name = " Florence attacked "
	desc = "Cardinal Giovanni de' Medici intrigued continually against the
republic of Florence with either France or Spain, whoever he felt could
help him return the Medici to power.  In the aftermath of the Council of
Florence he was able to get support from Spain, and accompanied an army
that invaded Tuscany.  The Tuscan militia could not stop the advance of
this army, and as it neared Florence Giovanni opened negotiations with
the city.  Piero Soderini offered to step down to allow the Medici to
return, but the city refused to accept Medici rule.  Because the city
refused to submit, the cardinal's army captured and pillaged the nearby
town of Prato after which Florence submitted.  What should we do about
Soderini's offer?"
	style = 1
	date = { day = 1 month = august year = 1512}
	offset = 30

	action_a ={
		name = "Defy the Medici"
		command = { type = stability value = 1 }
		# command = { type = domestic which = innovative value = 1 }
		command = { type = domestic which = centralization value = 2 }
		command = { type = domestic which = aristocracy value = 1 }
		command = { type = domestic which = serfdom value = 1 }
		command = { type = provincetax   which = -2 value = -1 }
	}
	action_b ={
		name = "Let Soderini resign"
		command = { type = stability value = -3 }
		# command = { type = domestic which = innovative value = 1 }
		command = { type = domestic which = centralization value = 1 }
	}
}

event = {
	id = 17367
	trigger = { exists = PAP 
		NOT = {war   = { country = TOS country = PAP }}
}
	random = no
	country = TOS
	name = "EVENTNAME17367"
	desc = "EVENTHIST17367"
 	style = 1
	date = { day = 1 month = august year = 1523 }
	offset = 90
	deathdate = { day = 1 month = march year = 1525 }
	action_a ={
		name = "ACTIONNAME5251A"
		command = { type = stability value = 1 }
		command = { type = DIP which = 1 value = 12 }
		command = { type = trigger which = 17368 } #election of Clement VII PAP
		command = { type = domestic which = innovative value = -1 }
		}
}

event = {
   id = 297004
   random = no
   country = TOS
   name = "Äæîâàííè Ðèêî äåëëà Ìèðàäîííà"
   desc = "EVENTHIST331049"
   date = { day = 17 month = november year = 1494 }

   action_a = {
      name = "OK"
      command = { type = infra value = 50 }
      }
}

event = {
	id = 297014
	trigger = {
		atwar = no
	}
	random = no
	country = TOS
	name = "Catasto"
	desc = "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."
	style = 1

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

	action_a ={ #New Tax#
		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 = cash value = 200 }
		command = { type = stability value = 1 }
		command = { type = domestic which = aristocracy value = -1 }
	}
}

event = {
	id = 297001
	random = no
	trigger = {
		event = 17382 #Duchy of Tuscany War version ##event id changed from 71324#
		flag = militiaflag #milita established in 1507
		}
	country = TOS
	name = "The Military of the Medici Restoration"
	desc = "The republican government had resurrected Machiavelli's 'Nine of Militia' in 1527 and added some innovations of their own - most notably conscription for city citizens themselves.  The reconstructed militia proved itself to be formidable in the contest with Charles V and could well be a useful tool for the future grandeur of Florence.  However, keeping citizens in arms contains risks for those who mean to rule, and rule absolutely.  The new Duke, Alessandro de' Medici faced a decisionabout how to establish his military."
	style = 2
	date = { day = 24 month = october year = 1530} #1 month after the Duchy event
	deathdate = { day = 24 month = october year = 1531}
	offset = 30

	action_a ={
		name = "End the Militia - it's not politically reliable"
		command = { type = domestic   which = serfdom value = 2 }
		command = { type = stability value = 1 }
		command = { type = land   value = -500 }
		command = { type = CAV   which = -2 value = 2000 }
	}
	action_b ={
		name = "Continue the militia reforms."
		command = { type = provincemanpower   which = -2 value = 4 }
		command = { type = domestic   which = land value = 1 }
		command = { type = domestic   which = offensive value = 2 }
		command = { type = revoltrisk   which = 60 value = 6 }
		command = { type = stability value = -3 }
		command = { type = land   value = 500 }
	}

}

#Galileo#
event = {
	id = 17369
	random = no
	country = TOS
	name = "EVENTNAME17369"
	desc = "EVENTHIST17369"
	style = 3
	date = { day = 1 month = january year = 1610}
	offset = 360

	action_a ={				#Ok#
		name = "ACTIONNAME5251A"
		command = { type = domestic which = innovative value = 1 }
		command = { type = infra value = 500 }
	}
}

event = {
	id = 17370
	trigger = { exists = HAB 
		NOT = {war   = { country = TOS country = HAB }} }
	random = no
	country = TOS
	name = "EVENTNAME17370"
	desc = "EVENTHIST17370"
	style = 1
	date = { day = 9 month = july year = 1737 }
	action_a ={
		name = "ACTIONNAME5251A"
		command = { type = stability value = 1 }
		command = { type = DIP which = 1 value = 12 }
		command = { type = trigger which = 17371 }  # HAB version Francis Grand Duke of Tuscany
		}
}

event = {
	id = 17372
	random = no
	country = TOS
	name = "EVENTNAME17372"
	desc = "EVENTHIST17372"
	style = 1
	date = { day = 18 month = august year = 1765 }
	action_a ={
		name = "ACTIONNAME5251A"
		command = { type = breakvassal  which = HAB }
		command = { type = stability   value = 4 }
		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 }
		}
}

#fortification of Tuscany under Cosimo I No Siena version
event = {
	id = 17373
	trigger = {
		NOT = { event = 17374} #fortification Siena version
		NOT = { owned = { province = 400 data = -1 } }
		}
	random = no
	country = TOS
	name = "EVENTNAME17373"
	desc = "EVENTHIST17373"
	style = 2
	date = { day = 1 month = april year = 1569}
	offset = 600
	action_a = {
		name = "ACTIONNAME5251A"
		command = { type = fortress which = 401 value = 1}
		}
}

#fortification of Tuscany under Cosimo I Siena version
event = {
	id = 17374
	trigger = {
		NOT = { event = 17373} #fortification No SIena version
		owned   = { province = 400 data = -1 }
		}
	random = no
	country = TOS
	name = "EVENTNAME17373"
	desc = "EVENTHIST17373"
	style = 2
	date = { day = 1 month = january year = 1569}
	deathdate = { day = 1 month = march year = 1569}
	action_a = {
		name = "ACTIONNAME5251A"
		command = { type = fortress which = 401 value = 1}
		command = { type = fortress which = 1922 value = 1}
command = { type = fortress which = 401 value = 1}
		}
}
#Assimilation of Siena
event = {
	id = 17375
	trigger = {
		NOT = { event = 17373} #fortification no Siena version
		event = 17374 # fortification Siena version
		owned   = { province = 400 data = -1 }
		atwar = no
		}
	random = no
	country = TOS
	name = "EVENTNAME17375"
	desc = "EVENTHIST17375"
	style = 2
	date = { day = 1 month = january year = 1583}
	offset = 1080
	deathdate = { day = 1 month = january year = 1593}
	action_a = {
		name = "OK"
		command = { type = addcore which = 400}
		}
}

event = {
	id = 17376
	random = no
	country = TOS
	trigger = { NOT = { relation = {  country = TUR value = -100 } } }
	name = "EVENTNAME17376"
	desc = "EVENTHIST17376"
	style = 2
	date = { day = 1 month = january year = 1558 }
	offset = 360
	action_a = {
		name = "ACTIONNAME5251A"
		command = { type = naval  value = 1000 }
		command = { type = domestic which = LAND value = -1 }
		command = { type = galleys which = -1 value = 6 }
		}
}

########################
#### Tuscany Events ####
####   by Annibale  ####
########################

#Florentine Militia#
event = {
	id = 17377
	random = no
	country = TOS
	name = "EVENTNAME17377"
	desc = "EVENTHIST17377"
	style = 2

	date = { day = 1 month = january year = 1505 }
	offset = 360
	deathdate = { day = 1 month = january year = 1506 }

	action_a ={		#Establish Militia#
		name = "ACTIONNAME17377A"
		command = { type = domestic which = ARISTOCRACY value = -1 }
		command = { type = domestic which = SERFDOM value = -1 }
		command = { type = domestic which = land value = 1 }
		command = { type = domestic which = QUALITY value = -2 }#IB change, they 		should certainly get more manpower from this
		command = { type = domestic which = OFFENSIVE value = 2 }#so as not to make 		it impossible.
		command = { type = land value = 500 }
		command = { type = INF which = -2 value = 12000 }
		command = { type = revoltrisk which = 24 value = 3 }
		command = { type = stability value = -1 }
		}

	action_b ={				#Rely on Mercenaries#
		name = "ACTIONNAME17377B"
		command = { type = CAV which = -2 value = 2000 }
		command = { type = clrflag which = militiaflag }
		command = { type = stability value = 2 }
		}
	}
	
#Council of Pisa#
event = {
	id = 17378
	random = no
	country = TOS
	name = "EVENTNAME17378"
	desc = "EVENTHIST17378"
	style = 2

	date = { day = 1 month = january year = 1511 }
	offset = 360
	deathdate = { day = 1 month = january year = 1512 }

	action_a ={		#France#
		name = "ACTIONNAME17378A"
		command = { type = trigger which = 17379 } #Wrath of God PAP
		command = { type = relation which = FRA value = 50 }
		command = { type = relation which = PAP value = -50 }
		}
	action_b ={		#Pisa#
		name = "ACTIONNAME17378B"
		command = { type = trigger which = 17380 }  #Rage of Louis FRA
		command = { type = relation which = FRA value = -50 }
		command = { type = relation which = PAP value = 50 }
		}
}

#Establishment of Republic
#17 May 1527 IRL
event = {
          id = 17381
          trigger = { 
		OR = {
			event = 17407 #Sack of Rome SPA 
			event = 17408 #Sack of Rome HAB
			}
		}
          random = no
          country = TOS
          name = "EVENTNAME17381"
          desc = "EVENTHIST17381"
          style = 1
          date = { day = 1 month = january year = 1527 }
          offset = 20
          deathdate = { day = 1 month = january year = 1528 }

          action_a ={
                name = "ACTIONNAME17381A"
		command = { type = stability value = 2 } #they need this because they are losing stab from breaking the vassalage
		command = { type = breakvassal which = PAP }
		command = { type = domestic which = centralization value = -3 }
		command = { type = domestic which = aristocracy value = -1 }
		command = { type = domestic which = serfdom value = -1 }
		command = { type = wakemonarch which = 06714 } #repubblica
		command = { type = sleepmonarch which = 06713 }#Giulio de Medici
		command = { type = leader which = 2122 }
		command = { type = sleepevent which = 17383 } #Duchy of Tuscany Peaceful version
                      }
          action_b ={
		name = "ACTIONNAME17381B"
		command = { type = stability value = -2 }
		command = { type = relation which = PAP value = 50 }
		command = { type = revolt which = -2 }
		command = { type = revolt which = -2 }
		command = { type = sleepevent which = 17382} #Duchy of Tuscany War verison
		}
}

#Duchy of Tuscany#
event = {
	id = 17382
	random = no
	trigger = {event = 17381} #Establishment of republic
	country = TOS
	name = "EVENTNAME17382"
	desc = "EVENTHIST17382"
	style = 1
	date = { day = 24 month = september year = 1530}
	offset = 30

	action_a ={				
		name = "ACTIONNAME17382A"
		command = { type = stability value = 1 }
		command = { type = domestic   which = innovative value = -1 }
		command = { type = domestic   which = centralization value = 2 }
		command = { type = domestic   which = aristocracy value = 2 }
		command = { type = domestic   which = serfdom value = 2 }
		command = { type = provincetax   which = 401 value = -1 }
		command = { type = inflation   value = 10 }
		command = { type = cash value = -50} #indemnity
		command = { type = relation which = HAB value = 50}
		command = { type = relation which = PAP value = 80}
		command = { type = sleepevent which = 17383 }
	}
}
#Duchy of Tuscany#
event = {
	id = 17383
	random = no
	trigger = {
		NOT = { event = 17382 } #Duchy of Tuscany 
		event = 17381 #Establishment of the Republic
	}
	country = TOS
	name = "EVENTNAME17382"
	desc = "EVENTHIST17383"
	style = 1
	date = { day = 24 month = september year = 1534}
	offset = 30

	action_a ={				
		name = "ACTIONNAME3637A"
		command = { type = domestic   which = innovative value = -1 }
		command = { type = domestic   which = centralization value = -1 }
		command = { type = domestic   which = aristocracy value = 1 }
		command = { type = domestic   which = serfdom value = 1 }
		command = { type = cash value = -50} #bribe to emperor
		command = { type = relation which = HAB value = 50}
	}
}
#Assasination of Alessandro #
event = {
	id = 17384
	random = no
	trigger = {
		OR = {
			event = 17383 #Duchy of Tuscany
			event = 17382 #Duchy of Tuscany
			}
		}
	country = TOS
	name = "EVENTNAME17384"
	desc = "EVENTHIST17384"
	style = 1
	date = { day = 6 month = january year = 1537}
	offset = 30

	action_a ={				
		name = "ACTIONNAME17382A"
		command = { type = stability value = -2 }
		command = { type = MIL   which = -2 value = 12 }
		command = { type = diplomats   value = -3 }
		command = { type = merchants   value = -3 }
		command = { type = ADM   which = -2 value = 12 }
		command = { type = DIP   which = -2 value = 12 }
	}
}

### Brunelleschi and the Duomo
### By mfigueras
### (text from Mac Tutor History of Mathematics)

event = {
	id = 5222
	random = no
	country = TOS
	name = "EVENTNAME5222"
	desc = "EVENTHIST5222"
	style = 1
	date = {day = 1 month = march year = 1420}
	offset = 150

	action_a = {
		name = "ACTIONNAME5222A"
		command = { type = cash value = -60 }
		command = { type = ADM which = 1 value = 18 }
		command = { type = infra value = 50 }
		}
	action_b = {
		name = "ACTIONNAME5222B"
		command = { type = cash value = -15 }
		command = { type = infra value = 10 }
		command = { type = sleepevent which = 5223 }
		}
	action_c = {
		name = "ACTIONNAME5222C"
		command = { type = stability value = -1 }
		command = { type = sleepevent which = 5223 }
		}
}



### The Duomo is completed !!
event = {
	id = 5223
	random = no
	country = TOS
	trigger = { event = 5222 }
	name = "EVENTNAME5223"
	desc = "EVENTHIST5223"
	style = 1
	date = {day = 1 month = march year = 1447}
	offset = 120
	action_a = {
		name = "ACTIONNAME5223A"
		command = { type = vp value = 5 }
		command = { type = infra value = 75 }
		command = { type = stability value = 1 }
		command = { type = relation which = -1 value = 15}
		command = { type = relation which = -1 value = 15}
		command = { type = relation which = -1 value = 15}
		command = { type = relation which = -1 value = 15}
		}
}

### Galileo at Firenze 
### By mfigueras

event = {
	id = 5226
	trigger = { domestic = { type = innovative value = 2} }
	random = no
	country = TOS
	name = "EVENTNAME5226"
	desc = "EVENTHIST5226"
	style = 3
	date = { day = 1 month = june year = 1610 }
	offset = 360
	deathdate = { day = 1 month = september year = 1612 }
	action_a = {
		name = "ACTIONNAME5226A"
		command = { type = cash value = -50 }
		command = { type = domestic which = innovative value = 1 }
		command = { type = infra value = 100 }
		command = { type = sleepevent which = 5228 }  ## Dialogues in VEN
		}
	action_b = {
		name = "ACTIONNAME5226B"
		command = { type = infra value = -50 }
		command = { type = sleepevent which = 5227 }  ## Dialogues in TOS
		}
}



### Galileo publishes the Dialogues (TOS)
### (text from Mac Tutor History of Mathematics)
### (http://turnbull.dcs.st-and.ac.uk/~history/index.html)

event = {
	id = 5227
	trigger = { event = 5226 }
	random = no
	country = TOS
	name = "EVENTNAME5227"
	desc = "EVENTHIST5227"
	style = 3
	date = {day = 1 month = march year = 1632}
	offset = 20
	deathdate = {day = 30 month = august year = 1632}
	action_a = {
		name = "ACTIONNAME5227A"
		command = { type = revoltrisk value = 7 }
		command = { type = infra value = 50 }
		command = { type = relation which = PAP value = -25 }
		}
	action_b = {
		name = "ACTIONNAME5227B"
		command = { type = domestic which = innovative value = -1 }
		command = { type = relation which = PAP value = 25 }
		command = { type = sleepevent which = 5225 }
		}
}

#####Tuscany Flavor Events#####
#By Henrik 'Doomdark' Fåhraeus#
###############################

#Niccolò Machiavelli publishes 'The Prince'#
event = {
	id = 5220
	random = no
	country = TOS
	name = "EVENTNAME5220"
	desc = "EVENTHIST5220"
	style = 2
	date = { day = 1 month = june year = 1513 }

	action_a ={				#Ok#
		name = "ACTIONNAME5220A"
		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 }
	}
}
#Michelangelo#
event = {
	id = 5221
	random = no
	country = TOS
	name = "EVENTNAME5221"
	desc = "EVENTHIST5221"
	style = 4
	date = { day = 1 month = january year = 1504 }

	action_a ={				#Ok#
		name = "ACTIONNAME5221A"
		command = { type = stability value = 1 }
		command = { type = infra value = 250 }
	}
}


# Ids free to 5239

################################
#####  Event by driftwood  #####
################################

# The Inheritance of Athens - Tuscan version # 
event = { 
        id = 23011 
        style = 1 
	trigger = { 
			exists = ATH 
	} 
        random = NO 
        country = TOS 
        name = "EVENTNAME23011" 
        desc = "EVENTHIST23011" 
	style = 1
	date = { day = 1 month = january year = 1435 }

        action_a = { # Rule it as a vassal 
                   name = "ACTIONNAME23011A" 
                   command = { type = vp value = 1 } 
                   } 
        action_b = { # Place it under direct rule 
                   name = "ACTIONNAME23011B" 
                   command = { type = inherit which = ATH } 
		   command = { type = trigger which = 95455 } #u19
                   } 
        } 

#Savonarola events for Tuscany by 'Savonarola'
event = {
	id = 17317
	random = no
	country = TOS
	name = "EVENTNAME17317"
	desc = "EVENTHIST17317"
	style = 1
	date = { day = 17 month = november year = 1494}

	action_a = {
		name = "ACTIONNAME17317A"
		command = { type = domestic which = aristocracy value = -4 }
		command = { type = domestic which = centralization value = 2 }
		command = { type = domestic which = innovative value = -2 }
		command = { type = domestic which = quality value = -1 }
		command = { type = relation which = FRA value = 100}
		command = { type = relation which = PAP value = -100} #Isaac Brock added from Solmyr: 100 not 400
		command = { type = missionaries value = 3 } #Isaac Brock added from Solmyr
		command = { type = diplomats value = -6 } #Isaac Brock added from Solmyr
		command = { type = stability value = -1 }
	}
}

event = {
	id = 17318
	trigger = { event = 17317 }
	random = no
	country = TOS
	name = "EVENTNAME17318"
	desc = "EVENTHIST17318"	
	style = 1
	date = { day = 22 month = may year = 1498}

	action_a = {
		name = "ACTIONNAME17318A"
		command = { type = domestic   which = aristocracy value = 3 }
		command = { type = domestic   which = centralization value = -4 }
		command = { type = domestic   which = innovative value = 1 }
		command = { type = domestic   which = quality value = 1 }
		command = { type = sleepmonarch  which = 06708 }
		command = { type = wakemonarch   which = 06709 }
		command = { type = wakemonarch   which = 06710 }
		command = { type = relation which = FRA value = -50}
		command = { type = relation which = PAP value = 50}
		command = { type = stability value = -1 }
		}
	action_b = {
		name = "ACTIONNAME17318B" #Savonarola intensifies his preaching#
		command = { type = relation which = PAP value = -200}
		command = { type = domestic   which = centralization value = 1 }
		command = { type = domestic   which = innovative value = -1 }
		command = { type = domestic   which = quality value = -1 }
		command = { type = stability value = -2 }
		command = { type = sleepmonarch   which = 06709 }
		command = { type = sleepmonarch   which = 06710 }
		command = { type = sleepevent  which = 71377 } #Florentine Militia
		}
}

#further Florentine events from Solmyr
event = {
	id = 17319
	random = no
	country = TOS
	name = "EVENTNAME17319"
	desc = "EVENTHIST17319"
	style = 1
	date = { day = 1 month = january year = 1439 }
	offset = 364
	deathdate = { day = 1 month = january year = 1442 }

	action_a ={
		name = "ACTIONNAME17319A"
		command = { type = stability value = 1 }
		command = { type = infra value = 300 }#changed from 500 by Crook
		command = { type = domestic which = innovative value = 1 }#added by Crook
	}
}

#Isaac Brock:  modified this one to make it more anti-intervention in Italy
event = {
	id = 17320
	trigger ={ atwar = no }
	random = no
	country = TOS
	name = "EVENTNAME17320"
	desc = "EVENTHIST17320"
	style = 1

	date = { day = 1 month = january year = 1470 }
	offset = 100
	deathdate = { day = 31 month = december year = 1490 }

	action_a ={
		name = "ACTIONNAME17320A"
		command = { type = relation which = NAP value = 100 } #IB relations toned down 150 to 100
		command = { type = relation which = PIS value = 50 }
		command = { type = relation which = PAP value = 100 }#added back
		command = { type = relation which = PAR value = 50 }
		command = { type = relation which = MAN value = 50 }
		command = { type = relation which = VEN value = 100 }
		command = { type = relation which = GEN value = 50 }
		command = { type = relation which = MLO value = 100 }
		command = { type = relation which = SAV value = 50 }
		command = { type = relation which = FRA value = -50 }
		command = { type = relation which = SPA value = -50 }
		command = { type = relation which = HAB value = -50 }
		command = { type = relation which = TUR value = -50 }
		command = { type = relation which = ARG value = -50 }
		command = { type = stability value = 3 }
		}
	action_b ={
		name = "ACTIONNAME17320B"
		command = { type = relation which = NAP value = -100 }#IB relations toned down,150 to 100
		command = { type = relation which = PIS value = -50 }
		command = { type = relation which = PAR value = -50 }
		command = { type = relation which = MAN value = -50 }
		command = { type = relation which = VEN value = -100 }
		command = { type = relation which = GEN value = -50 }
		command = { type = relation which = MLO value = -100 }
		command = { type = relation which = SAV value = -50 }
		command = { type = relation which = PAP value = -100 }#added back
		command = { type = inf which = -2 value = 10000 }
		command = { type = cav which = -2 value = 5000 }
		command = { type = manpower value = 10 }
		}
}

