#####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
	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 = 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 }
		}
}

#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 = 400 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 = 401 value = 5 }
		}
}

########################
#### 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 = 4000 }
		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 = 1000 }
		command = { type = revoltrisk which = 24 value = -2 }
		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 }
		}
}
