#####Spanish Major Events########
#By Joakim 'Greven' Bergqwist   #
#   Henrik 'Doomdark' Fåhraeus  #
#   Thomas 'Besuchov' Johansson #
#   Kristof 'BiB' Haekens       #
#################################

#The Iberian Wedding  IB changed to trigger Aragon event for future use#
event = {

	id = 3716
	trigger = {
		exists = ARG
		NOT = { vassal = { country = ARG country = SPA } }
		NOT = { vassal = { country = SPA country = ARG } }
		owned = { province = 439 data = SPA }
	}
	random = no
	country = SPA
	name = "EVENTNAME3716"
	desc = "EVENTHIST3716"
	style = 1

	date = { day = 1 month = january year = 1477 }
	offset = 30
	deathdate = { day = 30 month = december year = 1491 }

	action_a ={			#Let us bind their Dynasty to ours#
		name = "ACTIONNAME3716A"
		command = { type = dynastic which = ARG }
		command = { type = alliance which = ARG }
		command = { type = vassal which = ARG }
	#	command = { type = relation which = ARG value = 150 }
		command = { type = relation which = POR value = -50 }
		command = { type = land value = 800 }
		command = { type = stability value = 2 }
		command = { type = casusbelli which = GRA value = 300 }
		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 = OFFENSIVE value = 1 }
		command = { type = trigger which = 7126 }#added IB
	}

	action_b ={			#No let us marry a local talent instead#
		name = "ACTIONNAME3716B"
		command = { type = relation which = ARG value = -150 }
		command = { type = relation which = POR value = -150 }
		command = { type = stability value = -3 }
		command = { type = fortress which = -1 value = 1 }
		command = { type = fortress which = -1 value = 1 }
		command = { type = fortress which = -1 value = 1 }
		command = { type = merchants value = 5 }
		command = { type = trade value = 800 }
		command = { type = domestic which = ARISTOCRACY value = 2 }
		command = { type = domestic which = CENTRALIZATION value = -1 }
		command = { type = domestic which = INNOVATIVE value = 1 }
		command = { type = domestic which = MERCANTILISM value = -2 }
		command = { type = domestic which = OFFENSIVE value = -1 }
		command = { type = sleepmonarch which = 4140 }
	}
}

#The Iberian Wedding#
event = {

	id = 3717
	trigger = {
			exists = CAS
		}
	random = no
	country = SPA
	name = "EVENTNAME3717"
	desc = "EVENTHIST3717"
	style = 1

	date = { day = 1 month = january year = 1477 }
	offset = 30
	deathdate = { day = 30 month = december year = 1491 }

	action_a ={			#Let us bind their Dynasty to ours#
		name = "ACTIONNAME3717A"
		command = { type = dynastic which = CAS }
		command = { type = alliance which = CAS }
		command = { type = vassal which = CAS }
		command = { type = relation which = CAS value = 150 }
		command = { type = relation which = POR value = -50 }
		command = { type = land value = 800 }
		command = { type = stability value = 2 }
		command = { type = casusbelli which = GRA value = 300 }
		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 = OFFENSIVE value = 1 }
	}

	action_b ={			#No let us marry a local talent instead#
		name = "ACTIONNAME3717B"
		command = { type = relation which = CAS value = -150 }
		command = { type = relation which = POR value = -150 }
		command = { type = stability value = -3 }
		command = { type = fortress which = -1 value = 1 }
		command = { type = fortress which = -1 value = 1 }
		command = { type = fortress which = -1 value = 1 }
		command = { type = merchants value = 5 }
		command = { type = trade value = 800 }
		command = { type = domestic which = ARISTOCRACY value = 2 }
		command = { type = domestic which = CENTRALIZATION value = -1 }
		command = { type = domestic which = INNOVATIVE value = 1 }
		command = { type = domestic which = MERCANTILISM value = -2 }
		command = { type = domestic which = OFFENSIVE value = -1 }
	}
}

#Torquemada and the Expulsion of the Moors#
event = {

	id = 3150
	trigger = { #added trigger conditions#
			owned = { province = 438 data = SPA }
			owned = { province = 443 data = SPA }
		} 
	random = no
	country = SPA
	name = "EVENTNAME3150"
	desc = "EVENTHIST3150"
	style = 1

	date = { day = 1 month = january year = 1493 }
	offset = 30
	deathdate = { day = 30 month = december year = 1500 }#extended by 2 years

	action_a ={		#Let us be rid of those we cannot trust#
		name = "ACTIONNAME3150A"
		command = { type = domestic which = INNOVATIVE value = -3 }
		command = { type = population which = 443 value = -18000 }
		command = { type = population which = 439 value = -8000 }
		command = { type = population which = 438 value = -5000 }
		command = { type = religiousrevolt which = 438 }
		command = { type = religiousrevolt which = 443 }
		command = { type = provincereligion which = 438 value = catholic }
		command = { type = provincereligion which = 443 value = catholic }
		command = { type = stability value = -1 }
		command = { type = trigger which = 3654 }
		command = { type = trigger which = 3652 }
		command = { type = trigger which = 3657 }
	}

	action_b ={		#Let us make a clean sweep for the Glory of God#
		name = "ACTIONNAME3150B"
		command = { type = domestic which = INNOVATIVE value = -4 }
		command = { type = population which = 443 value = -20000 }
		command = { type = population which = 439 value = -9000 }
		command = { type = population which = 438 value = -6000 }
		command = { type = population which = 444 value = -24000 }
		command = { type = population which = 445 value = -3500 }
		command = { type = provincereligion which = 438 value = catholic }
		command = { type = provincereligion which = 443 value = catholic }
		command = { type = provincereligion which = 444 value = catholic }
		command = { type = provincereligion which = 445 value = catholic }
		command = { type = religiousrevolt which = 438 }
		command = { type = religiousrevolt which = 443 }
		command = { type = religiousrevolt which = 444 }
		command = { type = religiousrevolt which = 445 }
		command = { type = stability value = -3 }
		command = { type = trigger which = 3728 }
		command = { type = trigger which = 3729 }
		command = { type = trigger which = 3730 }
	}
}

#The Habsburg Wedding#
event = {

	id = 3151		#Triggered by HAB3179#
	random = no
	country = SPA
	name = "EVENTNAME3151"
	desc = "EVENTHIST3151"
	style = 1

	action_a ={		#Humbly Accept Carlos' Wise Decision#
		name = "ACTIONNAME3151A"
		command = { type = stability value = -2 }
		command = { type = domestic which = ARISTOCRACY value = 2 }
		command = { type = domestic which = CENTRALIZATION value = -1 }
		command = { type = diplomats value = -6 }
	}
}

#The Habsburg Wedding#
event = {

	id = 3731		#Triggered by HAB3179#
	random = no
	country = SPA
	name = "EVENTNAME3731"
	desc = "EVENTHIST3731"
	style = 1

	action_a ={		#Humbly Accept Carlos' Wise Decision#
		name = "ACTIONNAME3731A"
		command = { type = dynastic which = HAB }
		command = { type = alliance which = HAB }
#		command = { type = vassal which = HAB }
		command = { type = treasury value = 500 }
		command = { type = domestic which = CENTRALIZATION value = 1 }
	}
}


#The Quest for the New World#
event = {

	id = 3152
	trigger = {
		war = {
			country = SPA
			country = AZT
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME3152"
	desc = "EVENTHIST3152"
	style = 2

	date = { day = 1 month = january year = 1470 }
	offset = 30
	deathdate = { day = 1 month = january year = 1560 }

	action_a ={		#A New Reconquista! A New Beginning!#
		name = "ACTIONNAME3152A"
		command = { type = stability value = 1 }
		command = { type = treasury value = 300 }
		command = { type = colonists value = 6 }
		command = { type = missionaries value = 6 }
		command = { type = conquistador which = -1 }
		command = { type = conquistador which = -1 }
		command = { type = conquistador which = -1 }
		command = { type = explorer which = 902 }
		command = { type = explorer which = 903 }
		command = { type = explorer which = 904 }
		command = { type = addcore which = 29 } 
		command = { type = addcore which = 27 } 
	}
}

#The Trade Center of Sevilla#
event = {
	id = 3153
	trigger = {owned = { province = 443 data = SPA } }  #added#
	random = no
	country = SPA
	name = "EVENTNAME3153"
	desc = "EVENTHIST3153"
	style = 2

	date = { day = 1 month = january year = 1501 }
	offset = 30
	deathdate = { day = 1 month = january year = 1526 } #moved from 1506#

	action_a ={		#We now have control of our Oversea Trade#
		name = "ACTIONNAME3153A"
		command = { type = cot which = 443 }
		command = { type = gainbuilding which = 443 value = shipyard }
		command = { type = merchants value = 6 }
		command = { type = treasury value = 200 }
	}
}

#The Fuggers#
event = {

	id = 3154
	random = no
	country = SPA
	name = "EVENTNAME3154"
	desc = "EVENTHIST3154"
	style = 2

	date = { day = 1 month = january year = 1508 }
	offset = 30
	deathdate = { day = 1 month = january year = 1514 }

	action_a ={		#Let the Fuggers run our Finances#
		name = "ACTIONNAME3154A"
		command = { type = loansize which = 1000 }
		command = { type = treasury value = -100 }
		command = { type = merchants value = 6 }
		command = { type = inflation value = -5 }
	}

	action_b ={		#Turn the Fuggers offer down#
		name = "ACTIONNAME3154B"
		command = { type = treasury value = -300 }
		command = { type = stability value = -4 }
		command = { type = inflation value = 15 }
	}
}

#The Communeros#
event = {

	id = 3155
	random = no
	country = SPA
	name = "EVENTNAME3155"
	desc = "EVENTHIST3155"
	style = 2

	date = { day = 1 month = january year = 1520 }
	offset = 30
	deathdate = { day = 1 month = july year = 1520 }

	action_a ={		#Crush the Rebellion#
	name = "ACTIONNAME3155A"
	command = { type = stability value = -1 }
	command = { type = domestic which = CENTRALIZATION value = 1 }
	command = { type = revoltrisk which = 24 value = 6 }
	}

	action_b ={		#Use force, but give concessions to the Peasantry#
	name = "ACTIONNAME3155B"
	command = { type = treasury value = -200 }
	command = { type = domestic which = ARISTOCRACY value = -1 }
	command = { type = domestic which = SERFDOM value = -1 }
	command = { type = INF which = -1 value = 12083 }
	command = { type = INF which = -1 value = 9712 }
	command = { type = revoltrisk which = 18 value = 2 }
	}

	action_c ={		#Use force, but give concessions to the Nobility#
	name = "ACTIONNAME3155C"
	command = { type = treasury value = -200 }
	command = { type = domestic which = ARISTOCRACY value = 1 }
	command = { type = domestic which = SERFDOM value = 1 }
	command = { type = CAV which = -1 value = 8342 }
	command = { type = CAV which = -1 value = 7665 }
	command = { type = revoltrisk which = 18 value = 4 }
	}

}

#The Abdication of Charles V#
event = {

	id = 3157		#Triggered by HAB3190#
	random = no
	country = SPA
	name = "EVENTNAME3157"
	desc = "EVENTHIST3157"
	style = 2

	action_a ={		#Yes Father!#
		name = "ACTIONNAME3157A"
		command = { type = addcore which = 387 }
		command = { type = addcore which = 377 }
		command = { type = addcore which = 378 }
		command = { type = addcore which = 379 }
		command = { type = addcore which = 380 }
		command = { type = addcore which = 337 }
		command = { type = addcore which = 338 }
		command = { type = addcore which = 339 }
		command = { type = addcore which = 340 }
		command = { type = addcore which = 389 }
		command = { type = relation which = HAB value = 100 }
		command = { type = stability value = 1 }
	}
}

#The Abdication of Charles V#
event = {

	id = 3484		#Triggered by HAB3190#
	random = no
	country = POL
	name = "EVENTNAME3484"
	desc = "EVENTHIST3484"
	style = 2

	action_a ={		#Yes Father!#
		name = "ACTIONNAME3484A"
		command = { type = addcore which = 387 }
		command = { type = addcore which = 389 }
		command = { type = relation which = HAB value = -100 }
		command = { type = stability value = 1 }
	}
}


#The Abdication of Charles V#
event = {

	id = 3747		#Triggered by HAB3190#
	random = no
	country = SPA
	name = "EVENTNAME3747"
	desc = "EVENTHIST3747"
	style = 2

	action_a ={		#Yes Father!#
		name = "ACTIONNAME3747A"
		command = { type = addcore which = 387 }
		command = { type = addcore which = 377 }
		command = { type = addcore which = 378 }
		command = { type = addcore which = 379 }
		command = { type = addcore which = 380 }
		command = { type = addcore which = 337 }
		command = { type = addcore which = 338 }
		command = { type = addcore which = 339 }
		command = { type = addcore which = 340 }
		command = { type = relation which = HAB value = 50 }
		command = { type = stability value = 1 }
	}
}

#The Abdication of Charles V#
event = {

	id = 3748		#Triggered by HAB3749#
	random = no
	country = SPA
	name = "EVENTNAME3748"
	desc = "EVENTHIST3748"
	style = 2

	action_a ={		#Yes Father!#
		name = "ACTIONNAME3748A"
		command = { type = relation which = HAB value = 150 }
		command = { type = stability value = 1 }
	}
}

#State Bankruptcy#
event = {

	id = 3158
	trigger = {
		AND = {
			OR ={
				owned = { province = 24 data = -1 }
				owned = { province = 27 data = -1 }
				owned = { province = 159 data = -1 }
				}
			OR ={
				owned = { province = 25 data = -1 }
				owned = { province = 163 data = -1 }
				owned = { province = 167 data = -1 }
				}
			OR ={
				owned = { province = 26 data = -1 }
				owned = { province = 194 data = -1 }
				owned = { province = 169 data = -1 }
				}
			}
		}
	random = no
	country = SPA
	name = "EVENTNAME3158"
	desc = "EVENTHIST3158"
	style = 2

	date = { day = 1 month = january year = 1592 }
	offset = 30
	deathdate = { day = 1 month = january year = 1598 }

	action_a ={		#Declare State Bankruptcy#
		name = "ACTIONNAME3158A"
		command = { type = treasury value = -100 }
		command = { type = loansize which = 100 }
		command = { type = inflation value = 15 }
		command = { type = stability value = -3 }
		command = { type = losemanufactory which = -1 }
		command = { type = losemanufactory which = -1 }
		command = { type = desertion which = -1 value = 9892 }
		command = { type = desertion which = -1 value = 5841 }
		command = { type = desertion which = -1 value = 5613 }
	}
}



#The Purge of the Morisques#
event = {

	id = 3160
	trigger = { #added trigger conditions#
			event = 3150
			owned = { province = 444 data = SPA }
			owned = { province = 445 data = SPA }
		} 
	random = no
	country = SPA
	name = "EVENTNAME3160"
	desc = "EVENTHIST3160"
	style = 2

	date = { day = 1 month = january year = 1566 }
	offset = 30
	deathdate = { day = 1 month = january year = 1591 } # extended from 1571

	action_a ={		#Force them to become Good Catholic Spaniards#	
	name = "ACTIONNAME3160A"
	command = { type = domestic which = INNOVATIVE value = -2 }
	command = { type = population which = 443 value = -2000 }
	command = { type = population which = 444 value = -5000 }
	command = { type = population which = 445 value = -2000 }
	command = { type = provincereligion which = 444 value = catholic }
	command = { type = provincereligion which = 445 value = catholic }
	command = { type = provinceculture which = 444 value = iberian }
	command = { type = provinceculture which = 445 value = iberian }
	command = { type = revolt which = 444 }
	command = { type = revolt which = 445 }
	command = { type = stability value = -2 }
	command = { type = trigger which = 3655 }
	command = { type = trigger which = 3658 }
	}

	action_b ={		#Let them be as they are needed for the economy#
	name = "ACTIONNAME3160B"
	command = { type = domestic which = MERCANTILISM value = -2 }
	command = { type = domestic which = INNOVATIVE value = 2 }
	command = { type = stability value = 2 }
	command = { type = trade value = 1500 }
	command = { type = infra value = 1000 }
	command = { type = inflation value = -5 }
	command = { type = provincetax which = 438 value = 3 }
	command = { type = provincetax which = 439 value = 3 }
	command = { type = provincetax which = 443 value = 3 }
	command = { type = provincetax which = 444 value = 3 }
	}
}


#The Holy League#
event = {

	id = 3161
	trigger = {
			exists = TUR
			AND = {
				event = 3549 
				} 
		}
	random = no
	country = SPA
	name = "EVENTNAME3161"
	desc = "EVENTHIST3161"
	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 = "ACTIONNAME3161A"
		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 = KNI value = 150 }
		command = { type = relation which = TOS 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 = "ACTIONNAME3161B"
		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 = KNI value = -50 }
		command = { type = relation which = TOS value = -50 }
		command = { type = relation which = VEN value = -50 }
		command = { type = relation which = NAP value = -50 }
		command = { type = relation which = SAV value = -50 }
	}
}

#The Portuguese Crown#
event = {

	id = 3162
	random = no
	country = SPA
	name = "EVENTNAME3162"
	desc = "EVENTHIST3162"
	style = 2

	date = { day = 1 month = february year = 1580 }
	offset = 0
	deathdate = { day = 2 month = february year = 1580 }

	action_a ={		#One King, One Kingdom#
		name = "ACTIONNAME3162A"
		command = { Type = vassal which = POR }
		command = { Type = dynastic which = POR }
		command = { Type = stability value = 1 }
	}

	action_b ={		#One King, Two Kingdoms#
		name = "ACTIONNAME3162B"
		command = { Type = alliance which = POR }
		command = { Type = dynastic which = POR }
		command = { Type = stability value = -1 }
	}
}

#The Portuguese Crown#
event = {

	id = 3163
	random = no
	country =  SPA
	name = "EVENTNAME3163"
	desc = "EVENTHIST3163"
	style = 3

	date = { day = 1 month = april year = 1621 }
	offset = 0
	deathdate = { day = 2 month = april year = 1621 }

	action_a ={		#One King, One Kingdom#
		name = "ACTIONNAME3163A"
		command = { Type = vassal which = POR }
		command = { Type = dynastic which = POR }
		command = { Type = stability value = 1 }
	}

	action_b ={		#One King, Two Kingdoms#
		name = "ACTIONNAME3163B"
		command = { Type = alliance which = POR }
		command = { Type = dynastic which = POR }
		command = { Type = stability value = -1 }

	}
}

#State Bankruptcy#
event = {

	id = 3164
	trigger = {
		AND = {
			OR ={
				owned = { province = 24 data = -1 }
				owned = { province = 27 data = -1 }
				owned = { province = 159 data = -1 }
				}
			OR ={
				owned = { province = 25 data = -1 }
				owned = { province = 163 data = -1 }
				owned = { province = 167 data = -1 }
				}
			OR ={
				owned = { province = 26 data = -1 }
				owned = { province = 194 data = -1 }
				owned = { province = 169 data = -1 }
				}
			}
		}

	random = no
	country = SPA
	name = "EVENTNAME3164"
	desc = "EVENTHIST3164"
	style = 3

	date = { day = 1 month = january year = 1621 }
	offset = 30
	deathdate = { day = 1 month = january year = 1641 }

	action_a ={			#Declare State Bankruptcy#
		name = "ACTIONNAME3164A"
		command = { type = treasury value = -600 }
		command = { type = loansize which = 200 }
		command = { type = inflation value = 15 }
		command = { type = stability value = -3 }
		command = { type = losemanufactory which = -1 }
		command = { type = losemanufactory which = -1 }
		command = { type = losemanufactory which = -1 }
		command = { type = desertion which = -1 value = 11198 }
		command = { type = desertion which = -1 value = 7317 }
		command = { type = desertion which = -1 value = 9467 }

	}
}

#Epidemic Plague#
event = {

	id = 3165
	random = no
	country = SPA
	name = "EVENTNAME3165"
	desc = "EVENTHIST3165"
	style = 3

	date = { day = 1 month = january year = 1596 }
	offset = 30
	deathdate = { day = 1 month = january year = 1603 }

	action_a ={				#Arrgh!#
		name = "ACTIONNAME3165A"
		command = { type = stability value = -1 }
		command = { type = trigger which = 3273 }
		command = { type = population which = -1 value = -5000 }
		command = { type = provincetax which = -3 value = -1 }
		command = { type = population which = -1 value = -5000 }
		command = { type = provincetax which = -3 value = -1 }
		command = { type = population which = -1 value = -5000 }
		command = { type = provincetax which = -3 value = -1 }
		command = { type = population which = -1 value = -5000 }
		command = { type = provincetax which = -3 value = -1 }
		command = { type = population which = -1 value = -5000 }
		command = { type = provincetax which = -3 value = -1 }
		command = { type = population which = -1 value = -5000 }
		command = { type = provincetax which = -3 value = -1 }
	}
}

#The Catholic League#
event = {

	id = 3166
	trigger = {
		 OR = {
			religion = catholic
			religion = counterreform
				}
			}
	random = no
	country = SPA
	name = "EVENTNAME3166"
	desc = "EVENTHIST3166"
	style = 3

	date = { day = 1 month = january year = 1607 }
	offset = 30
	deathdate = { day = 1 month = january year = 1609 }

	action_a ={			#Prepare to Join#
		name = "ACTIONNAME3166A"
		command = { type = relation which = FRA value = -100 }
		command = { type = relation which = BRA value = -150 }
		command = { type = relation which = HAN value = -150 }
		command = { type = relation which = HES value = -150 }
		command = { type = relation which = PFA value = -150 }
		command = { type = relation which = SAC value = -150 }
		command = { type = relation which = THU value = -150 }
		command = { type = relation which = SHL value = -150 }
		command = { type = relation which = KLE value = 100 }
		command = { type = relation which = KOL value = 150 }
		command = { type = relation which = BAY value = 150 }
		command = { type = relation which = PAP value = 150 }
		command = { type = relation which = HAB value = 150 }
	}

	action_b ={			#Stay Neutral#
		name = "ACTIONNAME3166B"
		command = { type = relation which = BRA value = 100 }
		command = { type = relation which = HAN value = 100 }
		command = { type = relation which = HES value = 100 }
		command = { type = relation which = PFA value = 100 }
		command = { type = relation which = SAC value = 100 }
		command = { type = relation which = THU value = 100 }
		command = { type = relation which = BAY value = 50 }
		command = { type = relation which = KLE value = -50 }
		command = { type = relation which = KOL value = -50 }
		command = { type = relation which = HAB value = -100 }
		command = { type = relation which = PAP value = -150 }
	}
}

#The Expulsion of the Morisques#
event = {

	id = 3167
	trigger = { #added trigger conditions#
			event = 3160
			owned = { province = 444 data = SPA }
			owned = { province = 445 data = SPA }
		} 
	random = no
	country = SPA
	name = "EVENTNAME3167"
	desc = "EVENTHIST3167"
	style = 3

	date = { day = 1 month = january year = 1600 }
	offset = 134
	deathdate = { day = 1 month = january year = 1612 }

	action_a ={			#Expel the Heretics!#
	name = "ACTIONNAME3167A"
	command = { type = domestic which = INNOVATIVE value = -2 }
	command = { type = population which = 443 value = -5000 }
	command = { type = population which = 439 value = -5000 }
	command = { type = population which = 444 value = -10000 }
	command = { type = population which = 438 value = -2000 }
	command = { type = population which = 445 value = -1000 }
	command = { type = provinceculture which = 444 value = iberian }
	command = { type = provinceculture which = 445 value = iberian }
#	command = { type = provinceculture which = -1 value = iberian }
#	command = { type = provinceculture which = -1 value = iberian }
	command = { type = revolt which = 445 }
	command = { type = revolt which = 444 }
	command = { type = stability value = 1 }
	command = { type = trigger which = 3656 }
	command = { type = trigger which = 3653 }
	command = { type = trigger which = 3659 }
	}

	action_b ={	#Let them be as they are needed for the economy#
	name = "ACTIONNAME3167B"
	command = { type = domestic which = MERCANTILISM value = -2 }
	command = { type = domestic which = INNOVATIVE value = 2 }
	command = { type = stability  value = -4 }
	command = { type = revoltrisk which = 12 value = 6 }
	command = { type = trade value = 1800 }
	command = { type = infra value = 1200 }
	command = { type = inflation value = -5 }
	command = { type = provincetax which = 438 value = 4 }
	command = { type = provincetax which = 439 value = 4 }
	command = { type = provincetax which = 443 value = 4 }
	command = { type = provincetax which = 444 value = 4 }
	}
}

#National revolt in Portugal#
event = {

	id = 3168					#Triggered by SPA3169#
	random = no
	country = SPA
	name = "EVENTNAME3168"
	desc = "EVENTHIST3168"
	style = 3

	action_a ={			#Put it down!#
		name = "ACTIONNAME3168A"
		command = { type = breakvassal which = POR }
		command = { type = relation which = POR value = -200 }
		command = { type = revolt which = 434 }
		command = { type = revolt which = 441 }
		command = { type = revolt which = 442 }
		command = { type = revolt which = 823 }
		command = { type = revolt which = 818 }
		command = { type = province_revoltrisk which = 201 value = 5 }
		command = { type = province_revoltrisk which = 203 value = 5 }
		command = { type = province_revoltrisk which = 205 value = 5 }
		command = { type = province_revoltrisk which = 206 value = 5 }
		command = { type = province_revoltrisk which = 207 value = 5 }
		command = { type = province_revoltrisk which = 208 value = 5 }
		command = { type = province_revoltrisk which = 209 value = 5 }
		command = { type = INF which = 435 value = 10000 }
		command = { type = domestic which = INNOVATIVE value = -1 }
	}

	action_b ={			#Appease them!#
		name = "ACTIONNAME3168B"
		command = { type = treasury value = -800 }
		command = { type = stability value = 1 }
		command = { type = domestic which = ARISTOCRACY value = 1 }
		command = { type = domestic which = CENTRALIZATION value = -2 }
	}
}

#The Iberian Revolts#
event = {

	id = 3169
	trigger ={
		atwar = yes
		}
	random = no
	country = SPA
	name = "EVENTNAME3169"
	desc = "EVENTHIST3169"
	style = 3

	date = { day = 1 month = january year = 1630 }
	offset = 41
	deathdate = { day = 1 month = january year = 1649 }


	action_a ={			#Put it down!#
		name = "ACTIONNAME3169A"
		command = { type = trigger which = 3168 }
		command = { type = trigger which = 3170 }
		command = { type = breakvassal which = ARG }
		command = { type = relation which = ARG value = -200 }
		command = { type = breakvassal which = CAS }
		command = { type = relation which = CAS value = -200 }
		command = { type = breakvassal which = CAT }
		command = { type = relation which = CAT value = -200 }
		command = { type = revolt which = 429 }
		command = { type = revolt which = 429 }
		command = { type = revolt which = 427 }
		command = { type = revolt which = 821 }
		command = { type = revolt which = 397 }
		command = { type = INF which = 436 value = 10000 }
		command = { type = domestic which = INNOVATIVE value = -1 }
	}

	action_b ={			#Appease them!#
		name = "ACTIONNAME3169B"
		command = { type = trigger which = 3168 }
		command = { type = trigger which = 3170 }
		command = { type = treasury value = -500 }
		command = { type = stability value = 1 }
		command = { type = domestic which = ARISTOCRACY value = 3 }
		command = { type = domestic which = CENTRALIZATION value = -1 }

	}
}

#The Italian Revolts#
event = {

	id = 3170					#Triggered by SPA3169#
	random = no
	country = SPA
	name = "EVENTNAME3170"
	desc = "EVENTHIST3170"
	style = 3

	action_a ={			#Put it down!#
		name = "ACTIONNAME3170A"
		command = { type = revolt which = 395 }
		command = { type = revolt which = 393 }
		command = { type = revolt which = 399 }
		command = { type = revolt which = 400 }
		command = { type = revolt which = 402 }
		command = { type = revolt which = 389 }
		command = { type = INF which = 396 value = 5000 }
		command = { type = INF which = 394 value = 5000 }
		command = { type = domestic which = INNOVATIVE value = -1 }
	}

	action_b ={			#Appease them!#
		name = "ACTIONNAME3170B"
		command = { type = treasury value = -300 }
		command = { type = stability value = 1 }
		command = { type = domestic which = CENTRALIZATION value = -1 }

	}
}



#France opens Chambers of Reunion#
event = {

	id = 3172			#Triggered by FRA3127#
	random = no
	country = SPA
	name = "EVENTNAME3172"
	desc = "EVENTHIST3172"
	style = 3

	action_a ={				#Defy French claims#
		name = "ACTIONNAME3172A"
		command = { type = casusbelli which = FRA value = 72 }
		command = { type = relation which = FRA value = -150 }
		command = { type = relation which = ENG value = 150 }
		command = { type = relation which = HAB value = 150 }
		command = { type = relation which = PRU value = 150 }
		command = { type = relation which = HOL value = 150 }
		command = { type = relation which = HAN value = 100 }
		command = { type = relation which = BAD value = 100 }
		command = { type = relation which = HES value = 100 }
		command = { type = relation which = KLE value = 100 }
		command = { type = relation which = KOL value = 100 }
		command = { type = relation which = PFA value = 100 }
		command = { type = relation which = THU value = 100 }
	}

	action_b ={				#Give in to France#
		name = "ACTIONNAME3172B"
		command = { type = secedeprovince which = FRA value = 377 }
		command = { type = secedeprovince which = FRA value = 378 }
		command = { type = secedeprovince which = FRA value = 379 }
		command = { type = relation which = ENG value = -100 }
		command = { type = relation which = HAB value = -100 }
		command = { type = relation which = PRU value = -100 }
		command = { type = relation which = HOL value = -100 }
		command = { type = relation which = FRA value = 150 }
		command = { type = treasury value = -200 }
	}
}

#The Succession of Carlos II in Spain#
event = {

	id = 3173
	random = no
	country = SPA
	name = "EVENTNAME3173"
	desc = "EVENTHIST3173"
	style = 4

	date = { day = 1 month = november year = 1700 }
	offset = 0
	deathdate = { day = 2 month = november year = 1700 }

	action_a ={
		name = "ACTIONNAME3173A"	#Felipe of Bourbon#
		command = { type = trigger which = 3199 }
		command = { type = trigger which = 3130 }
		command = { type = trigger which = 3035 }
		command = { type = trigger which = 3511 }
		command = { type = stability value = 2 }
		command = { type = dynastic which = FRA }
		command = { type = alliance which = FRA }
		command = { type = relation which = FRA value = 150 }
		command = { type = relation which = HAB value = -150 }
	}

	action_b ={
		name = "ACTIONNAME3173B"	#Carlos of Habsburg#
		command = { type = trigger which = 3200 }
		command = { type = trigger which = 3131 }
		command = { type = trigger which = 3036 }
		command = { type = trigger which = 3512 }
		command = { type = stability value = -1 }
		command = { type = dynastic which = HAB }
		command = { type = alliance which = HAB }
		command = { type = relation which = HAB value = 150 }
		command = { type = relation which = FRA value = -150 }
		#Habsburg Dynasty#
		command = { type = wakemonarch which = 04151 }
		command = { type = wakemonarch which = 04152 }
		command = { type = wakemonarch which = 04153 }
		command = { type = wakemonarch which = 04154 }
		command = { type = wakemonarch which = 04155 }
	}


}

#The Effects of the Pragmatic Sanction#
event = {

	id = 3174
	trigger = {
		NOT = { 
			Event = 3200
			}
		}
	random = no
	country = SPA
	name = "EVENTNAME3174"
	desc = "EVENTHIST3174"
	style = 4

	date = { day = 1 month = january year = 1741 }
	offset = 10
	deathdate = { day = 1 month = august year = 1741 }

	action_a ={		#Anti-Habsburg#
		name = "ACTIONNAME3174A"
		command = { type = casusbelli which = HAB value = 36 }
		command = { type = stability value = -1 }
		command = { type = relation which = BAY value = 100 }
		command = { type = relation which = SAC value = 100 }
		command = { type = relation which = GEN value = 100 }
		command = { type = relation which = PRU value = 100 }
		command = { type = relation which = FRA value = 150 }
		command = { type = relation which = ENG value = -150 }
		command = { type = relation which = HOL value = -100 }
		command = { type = relation which = POR value = -100 }
		command = { type = relation which = RUS value = -50 }
		command = { type = relation which = HES value = -50 }
		command = { type = relation which = HAN value = -50 }
		command = { type = relation which = HAB value = -150 }

	}

	action_b ={		#Neutral#
		name = "ACTIONNAME3174B"
		command = { type = stability value = 2 }
		command = { type = relation which = BAY value = -50 }
		command = { type = relation which = SAC value = -50 }
		command = { type = relation which = GEN value = 50 }
		command = { type = relation which = PRU value = -50 }
		command = { type = relation which = FRA value = 50 }
		command = { type = relation which = ENG value = 50 }
		command = { type = relation which = HOL value = 100 }
		command = { type = relation which = POR value = 100 }
		command = { type = relation which = RUS value = 50 }
		command = { type = relation which = HES value = 50 }
		command = { type = relation which = HAN value = 50 }
		command = { type = relation which = HAB value = 100 }

	}

	action_c ={		#Pro-Habsburg#
		name = "ACTIONNAME3174C"
		command = { type = stability value = -2 }
		command = { type = casusbelli which = FRA value = 36 }
		command = { type = relation which = BAY value = -100 }
		command = { type = relation which = SAC value = -100 }
		command = { type = relation which = GEN value = -50 }
		command = { type = relation which = PRU value = -100 }
		command = { type = relation which = FRA value = -150 }
		command = { type = relation which = ENG value = 100 }
		command = { type = relation which = HOL value = -150 }
		command = { type = relation which = POR value = 150 }
		command = { type = relation which = RUS value = 50 }
		command = { type = relation which = HES value = 50 }
		command = { type = relation which = HAN value = 50 }
		command = { type = relation which = HAB value = 150 }	}

}

#The Sale of Corsica#
event = {

	id = 3175		#Triggered by GEN3708 or ENG3046#
	random = no
	country = SPA
	name = "EVENTNAME3175"
	desc = "EVENTHIST3175"
	style = 4

	action_a ={				#Offer to buy Corsica#
		name = "ACTIONNAME3175A"
		command = { type = trigger which = 3709 }
	}

	action_b ={			#Pass the opportunity#
		name = "ACTIONNAME3175B"
		command = { type = trigger which = 3648 }
	}
}

#Genoa accepts offer to buy Corsica#
event = {

	id = 3723			#Triggered by GEN3709#
	random = no
	country = SPA
	name = "EVENTNAME3723"
	desc = "EVENTHIST3723"
	style = 4

	action_a ={				#Good#
		name = "ACTIONNAME3723A"
		command = { type = relation which = GEN value = 150 }
		command = { type = treasury value = -1200 }
	}
}

#Genoa decline offer to buy Corsica#
event = {

	id = 3724			#Triggered by GEN3709#
	random = no
	country = SPA
	name = "EVENTNAME3724"
	desc = "EVENTHIST3724"
	style = 4

	action_a ={				#Darn#
		name = "ACTIONNAME3724A"
		command = { type = relation which = GEN value = -100 }
	}
}

#The American Colonial Policy#
event = {

	id = 3176
	trigger = {
		NOT = {
			domestic = {
				type = innovative
				value = 10
				}
			}
		}
	random = no
	country = SPA
	name = "EVENTNAME3176"
	desc = "EVENTHIST3176"
	style = 4

	date = { day = 1 month = january year = 1790 }
	offset = 10
	deathdate = { day = 1 month = august year = 1820 }


	action_a ={		#Govern through Spanish Governors#
		name = "ACTIONNAME3176A"
		command = { type = province_revoltrisk which = 24  value = 4 }
		command = { type = province_revoltrisk which = 25  value = 4 }
		command = { type = province_revoltrisk which = 26  value = 4 }
		command = { type = province_revoltrisk which = 27  value = 4 }
		command = { type = province_revoltrisk which = 28  value = 4 }
		command = { type = province_revoltrisk which = 29  value = 4 }
		command = { type = province_revoltrisk which = 30  value = 4 }
		command = { type = province_revoltrisk which = 223  value = 4 }
		command = { type = province_revoltrisk which = 222  value = 4 }
		command = { type = province_revoltrisk which = 1485  value = 4 }
		command = { type = province_revoltrisk which = 1486  value = 4 }
		command = { type = province_revoltrisk which = 218  value = 4 }
		command = { type = province_revoltrisk which = 217  value = 4 }
		command = { type = province_revoltrisk which = 224  value = 4 }
		command = { type = province_revoltrisk which = 158  value = 4 }
		command = { type = province_revoltrisk which = 160  value = 4 }
		command = { type = province_revoltrisk which = 161  value = 4 }
		command = { type = province_revoltrisk which = 162  value = 4 }
		command = { type = province_revoltrisk which = 163  value = 4 }
		command = { type = province_revoltrisk which = 164  value = 4 }
		command = { type = province_revoltrisk which = 165  value = 4 }
		command = { type = province_revoltrisk which = 166  value = 4 }
		command = { type = province_revoltrisk which = 167  value = 4 }
		command = { type = province_revoltrisk which = 168  value = 4 }
		command = { type = stability value = 1 }
		command = { type = relation which = USA value = -50 }
	}

	action_b ={		#Govern from Madrid#
		name = "ACTIONNAME3176B"
		command = { type = province_revoltrisk which = 24  value = 8 }
		command = { type = province_revoltrisk which = 25  value = 8 }
		command = { type = province_revoltrisk which = 26  value = 8 }
		command = { type = province_revoltrisk which = 27  value = 8 }
		command = { type = province_revoltrisk which = 28  value = 8 }
		command = { type = province_revoltrisk which = 29  value = 8 }
		command = { type = province_revoltrisk which = 30  value = 8 }
		command = { type = province_revoltrisk which = 223  value = 8 }
		command = { type = province_revoltrisk which = 222  value = 8 }
		command = { type = province_revoltrisk which = 1485  value = 8 }
		command = { type = province_revoltrisk which = 1486  value = 8 }
		command = { type = province_revoltrisk which = 218  value = 8 }
		command = { type = province_revoltrisk which = 217  value = 8 }
		command = { type = province_revoltrisk which = 224  value = 8 }
		command = { type = province_revoltrisk which = 158  value = 8 }
		command = { type = province_revoltrisk which = 160  value = 8 }
		command = { type = province_revoltrisk which = 161  value = 8 }
		command = { type = province_revoltrisk which = 162  value = 8 }
		command = { type = province_revoltrisk which = 163  value = 8 }
		command = { type = province_revoltrisk which = 164  value = 8 }
		command = { type = province_revoltrisk which = 165  value = 8 }
		command = { type = province_revoltrisk which = 166  value = 8 }
		command = { type = province_revoltrisk which = 167  value = 8 }
		command = { type = province_revoltrisk which = 168  value = 8 }
		command = { type = stability value = 3 }
		command = { type = relation which = USA value = -150  }
	}

	action_c ={		#Franchised Citizenship#
		name = "ACTIONNAME3176C"
		command = { type = province_revoltrisk which = 24  value = 1 }
		command = { type = province_revoltrisk which = 25  value = 1 }
		command = { type = province_revoltrisk which = 26  value = 1 }
		command = { type = province_revoltrisk which = 27  value = 1 }
		command = { type = province_revoltrisk which = 28  value = 1 }
		command = { type = province_revoltrisk which = 29  value = 1 }
		command = { type = province_revoltrisk which = 30  value = 1 }
		command = { type = province_revoltrisk which = 223  value = 1 }
		command = { type = province_revoltrisk which = 222  value = 1 }
		command = { type = province_revoltrisk which = 1485  value = 1 }
		command = { type = province_revoltrisk which = 1486  value = 1 }
		command = { type = province_revoltrisk which = 218  value = 1 }
		command = { type = province_revoltrisk which = 217  value = 1 }
		command = { type = province_revoltrisk which = 224  value = 1 }
		command = { type = province_revoltrisk which = 158  value = 1 }
		command = { type = province_revoltrisk which = 160  value = 1 }
		command = { type = province_revoltrisk which = 161  value = 1 }
		command = { type = province_revoltrisk which = 162  value = 1 }
		command = { type = province_revoltrisk which = 163  value = 1 }
		command = { type = province_revoltrisk which = 164  value = 1 }
		command = { type = province_revoltrisk which = 165  value = 1 }
		command = { type = province_revoltrisk which = 166  value = 1 }
		command = { type = province_revoltrisk which = 167  value = 1 }
		command = { type = province_revoltrisk which = 168  value = 1 }
		command = { type = stability value = -2 }
		command = { type = relation which = USA value = 100 }
	}

}

#The Sale of Florida to the United States#
event = {

	id = 3090
	date = { day = 1 month = january year = 1819 }
	offset = 120
	deathdate = { day = 2 month = may year = 1819 }
	trigger = {
		exists = USA
		OR = { 
			owned = { province = 48 data = -1 }
			owned = { province = 49 data = -1 }
			owned = { province = 50 data = -1 }
			}
	}

	random = no
	country = SPA
	name = "EVENTNAME3090"
	desc = "EVENTHIST3090"
	style = 5

	action_a ={		#Offer Florida for 500 ducats#
		name = "ACTIONNAME3090A"
		command = { type = trigger which = 3067 }
	}

	action_b ={		#Offer them nothing#
		name = "ACTIONNAME3090B"
		command = { type = relation which = USA value = -100 }
		command = { type = stability value = -1 } 
	}
}

#Adam-Onís Treaty#
event = {

	id = 3091			#Triggered by USA3067#
	random = no
	country = SPA
	name = "EVENTNAME3091"
	desc = "EVENTHIST3091"
	style = 5

	action_a ={			#Ok#
		name = "ACTIONNAME3091A"
		command = { type = treasury value = 500 }
		command = { type = stability value = 2 }
		command = { type = relation which = USA value = 100 }
		command = { type = secedeprovince which = USA value = 48 }
		command = { type = secedeprovince which = USA value = 49 }
		command = { type = secedeprovince which = USA value = 50 }
	}
}

#The United States declined the offer of Florida#
event = {

	id = 3092			#Triggered by USA3067#
	random = no
	country = SPA
	name = "EVENTNAME3092"
	desc = "EVENTHIST3092"
	style = 5

	action_a ={			#Ok#
		name = "ACTIONNAME3092A"
		command = { type = relation which = USA value = -100 }
	}

}
#José Monino's Reforms#
event = {

	id = 3094
	random = no
	country = SPA
	name = "EVENTNAME3094"
	desc = "EVENTHIST3094"
	style = 5

	date = { day = 1 month = january year = 1769 }
	offset = 10
	deathdate = { day = 1 month = january year = 1770 }

	action_a ={			#Reform#
		name = "ACTIONNAME3094A"
		command = { type = domestic which = MERCANTILISM value = -2 }
		command = { type = domestic which = INNOVATIVE value = 2 }
		command = { type = gainmanufactory which = -1 value = refinery }
		command = { type = gainmanufactory which = -1 value = goods }
		command = { type = stability value = -2 }
	}

	action_b ={			#Do not reform#
		name = "ACTIONNAME3094B"
		command = { type = stability value = 2 }
		command = { type = treasury value = 300 }
	}
}

#The Constitution of 1812#
event = {

	id = 3095
	random = no
	country = SPA
	name = "EVENTNAME3095"
	desc = "EVENTHIST3095"
	style = 5

	date = { day = 1 month = january year = 1812 }
	offset = 10
	deathdate = { day = 30 month = december year = 1812 }

	action_a ={		#The Cortes has enacted it already#
		name = "ACTIONNAME3095A"
		command = { type = domestic which = ARISTOCRACY value = -5 }
		command = { type = domestic which = SERFDOM value = -5 }
		command = { type = domestic which = MERCANTILISM value = -2 }
		command = { type = domestic which = INNOVATIVE value = 2 }
		command = { type = domestic which = CENTRALIZATION value = 1 }
		command = { type = stability value = -1 }
	}
}

#The Reaction of 1813#
event = {

	id = 3096
	random = no
	country = SPA
	name = "EVENTNAME3096"
	desc = "EVENTHIST3096"
	style = 5

	date = { day = 1 month = january year = 1813 }
	offset = 10
	deathdate = { day = 30 month = december year = 1813 }

	action_a ={		#Introduce a regime of reaction#
		name = "ACTIONNAME3096A"
		command = { type = domestic which = ARISTOCRACY value = 7 }
		command = { type = domestic which = SERFDOM value = 6 }
		command = { type = domestic which = MERCANTILISM value = 3 }
		command = { type = domestic which = INNOVATIVE value = -5 }
		command = { type = domestic which = CENTRALIZATION value = -2 }
		command = { type = stability value = 3 }
	}

	action_b ={		#Let the liberal constitution stay put#
		name = "ACTIONNAME3096B"
		command = { type = stability value = -1 }
		command = { type = treasury value = -200 }
	}
}

}
#Olivares#
event = {

	id = 3711
	random = no
	country = SPA
	name = "EVENTNAME3711"
	desc = "EVENTHIST3711"
	style = 3

	date = { day = 2 month = april year = 1621 }

	action_a ={			#An Excellent Minister!#
		name = "ACTIONNAME3711A"
		command = { type = DIP which = 3 value = 240 }
		command = { type = ADM which = 3 value = 240 }
		command = { type = MIL which = 3 value = 240 }
		command = { type = stability value = 2 }
	}
}
#Alberoni#
event = {

	id = 3712
	random = no
	country = SPA
	name = "EVENTNAME3712"
	desc = "EVENTHIST3712"
	style = 3

	date = { day = 4 month = april year = 1641 }

	action_a ={			#An Excellent Minister!#
		name = "ACTIONNAME3712A"
		command = { type = DIP which = 3 value = 240 }
		command = { type = ADM which = 2 value = 240 }
		command = { type = MIL which = 2 value = 240 }
		command = { type = stability value = 2 }
	}
}



# Spain is Unified
event = {

	id = 3848
	
	# Triggered by CAS 3849 or ARG 3850
	
	random = no
	country = SPA
	name = "EVENTNAME3848"
	desc = "EVENTHIST3848"
	style = 2

	action_a = { #The Kingdoms are one!#
		name = "ACTIONNAME3848A"
		command = { type = inherit which = ARG }
		command = { type = inherit which = CAS }
    } 
}

#The Knights of St:John of Jerusalem#
event = {

	id = 3156
	trigger = {
		owned = { province = 819 data = -1 }
		NOT = { exists = KNI }
		NOT = { event = 24000 }
		NOT = { event = 24002 }
		}
	random = no
	country = SPA
	name = "EVENTNAME3156"
	desc = "EVENTHIST3156"
	style = 2

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

	action_a ={		#Give Malta to the Knights of St:John#
		name = "ACTIONNAME24000A"
		command = { type = independence which = KNI }
		command = { type = stability value = 1 }
		command = { type = relation which = TUR value = -100 }
		command = { type = relation which = ALD value = -100 }
		command = { type = trigger which = 3540 }
	}

	action_b ={		#Don't give them anything#
		name = "ACTIONNAME24000B"
		command = { type = relation which = PAP value = -150 }
		command = { type = relation which = TUR value = 100 }
		command = { type = warships which = -1 value = 5 }
	}
}

#####################################
#####  Events by Johnny Canuck  #####
#####################################

#English Privateering#
event = {

	id = 21038
	random = no
	country = SPA
	name = "EVENTNAME21038"
	desc = "EVENTHIST21038"
	style = 2

	action_a ={
		name = "ACTIONNAME21038A"
		command = { type = stability value = -1 }
	}
}

#Drake Strikes the Panamanian Silver Train#
event = {

	id = 21040
	random = no
	country = SPA
	name = "EVENTNAME21040"
	desc = "EVENTHIST21040"
	style = 2

	action_a ={
		name = "ACTIONNAME21040A"
		command = { type = relation which = ENG value = -50 }
		command = { type = casusbelli which = ENG value = 60 }
	}
}

#Drake in the Pacific#
event = {

	id = 21042
	random = no
	country = SPA
	name = "EVENTNAME21042"
	desc = "EVENTHIST21041"
	style = 2

	action_a ={
		name = "ACTIONNAME21040A"
		command = { type = relation which = ENG value = -50 }
		command = { type = casusbelli which = ENG value = 60 }
	}
}

#Drake Strikes in Spain and the Americas#
event = {

	id = 21044
	random = no
	country = SPA
	name = "EVENTNAME21044"
	desc = "EVENTHIST21043"
	style = 2

	action_a ={
		name = "ACTIONNAME21040A"
		command = { type = relation which = ENG value = -50 }
		command = { type = casusbelli which = ENG value = 60 }
	}
}

##English Support for the Dutch and Huguenots Events##
## Created by Johnny Canuck                         ##

#English Aid Arrives in the Dutch Provinces#
event = {

	id = 21046
	random = no
	country = SPA
	name = "EVENTNAME21046"
	desc = "EVENTHIST21046"
	style = 2

	action_a ={
		name = "ACTIONNAME21046A"
		command = { type = revolt which = 339 }
		command = { type = revolt which = 340 }
		command = { type = relation which = ENG value = -50 }
		command = { type = casusbelli which = ENG value = 120 }
	}
}

#England Again Sides with the Enemies of Spain#
event = {

	id = 21049
	random = no
	country = SPA
	name = "EVENTNAME21049"
	desc = "EVENTHIST21049"
	style = 2

	action_a ={
		name = "ACTIONNAME21049A"
		command = { type = relation which = ENG value = -50 }
		command = { type = casusbelli which = ENG value = 120 }
	}
}

#Spain Tires of England's Interference#
event = {

	id = 21053
	trigger = {
		event = 21040
		event = 21042
		event = 21044
		OR = {
			event = 21046
			event = 21049
			}
		NOT = {
			relation = {
				country = ENG value = 0
				}
			}
		}
	random = no
	country = SPA
	name = "EVENTNAME21053"
	desc = "EVENTHIST21053"
	style = 2

	offset = 100
	deathdate = { day = 1 month = january year = 1603 }

	action_a ={
		name = "ACTIONNAME21053A"
		command = { type = war which = ENG }
		command = { type = stability value = 1 }
		command = { type = warships which = 433 value = 15 }
		command = { type = INF which = 433 value = 10000 }
		command = { type = CAV which = 433 value = 5000 }
		command = { type = manpower value = 10 }
		command = { type = treasury value = 100 }
	}

	action_b ={
		name = "ACTIONNAME21053B"
		command = { type = stability value = -1 }
	}
}

#SPANISH EVENTS#
#Carlo Duke of Nevers succeeds to the Mantuan throne#	
event = {

	id = 17331		#Triggered by 17327#
	random = no
	country = SPA
	name = "EVENTNAME17337"
	desc = "EVENTHIST17331"
	style = 3

	action_a ={				#No it ours#
		name = "ACTIONNAME17337A"
		command = { type = casusbelli which = FRA value = 36 }
		command = { type = casusbelli which = MAN value = 36 }
		command = { type = relation which = MAN value = -150 }
		command = { type = relation which = FRA value = -150 }
		command = { type = relation which = HAB value = 50 }
		command = { type = relation which = SAV value = 100 }
		command = { type = alliance which = SAV }
		command = { type = stability value = 1 }
	}

	action_b ={				#We have more pressing matters#
		name = "ACTIONNAME17337B"
		command = { type = relation which = MAN value = 150 }
		command = { type = relation which = FRA value = 150 }
		command = { type = relation which = HAB value = 100 }
		command = { type = relation which = SAV value = -50 }
		command = { type = stability value = -2 }
	}
}

#Duke of Guastalla succedes to the Mantuan throne#
event = {

	id = 17332		#Triggered by 17327#
	random = no
	country = SPA
	name = "EVENTNAME17338"
	desc = "EVENTHIST17332"
	style = 3

	action_a ={				#Splendid#
		name = "ACTIONNAME17338A"
		command = { type = vassal which = MAN }
		command = { type = alliance which = MAN }
		command = { type = relation which = MAN value = 200 }
		command = { type = relation which = FRA value = -150 }
		command = { type = relation which = HAB value = 50 }
		command = { type = relation which = SAV value = -75 }
		command = { type = stability value = 1 }
	}
}

#Columbus#
event = {
	id = 24005
	random = no
	country = SPA
	name = "EVENTNAME24005"
	desc = "EVENTHIST24005"
	style = 1

	date = { day = 1 month = november year = 1486 }
	offset = 50
	deathdate = { day = 1 month = april year = 1487 }

	action_a ={	
		name = "ACTIONNAME24005A"
		command = { type = land  value = 100 }
		command = { type = domestic which = land value = 1 }
		command = { type = domestic which = offensive value = 1 }
	}
	action_b ={	
		name = "ACTIONNAME24005B"
		command = { type = naval  value = 100 }
		command = { type = domestic which = land value = -1 }
		command = { type = leader which = 09740 } 
		command = { type = warships which = -1 value = 2 }
		command = { type = treasury value = -100 }
		command = { type = sleepevent which = 24006 }
	}
}
#Columbus#
event = {
	id = 24006
	random = no
	country = SPA
	name = "EVENTNAME24006"
	desc = "EVENTHIST24006"
	style = 1

	date = { day = 1 month = november year = 1491 }
	offset = 50
	deathdate = { day = 1 month = april year = 1493 }

	action_a ={	
		name = "ACTIONNAME24006A"
		command = { type = domestic which = land value = -1 }
		command = { type = leader which = 09740 } 
		command = { type = warships which = -1 value = 3 }
		command = { type = treasury value = -30 }
	}
	action_b ={	
		name = "ACTIONNAME24006B"
		command = { type = land  value = 100 }
		command = { type = domestic which = land value = 1 }
		}
}
#Vespucci#
event = {
	id = 24007
	random = no
	country = SPA
	name = "EVENTNAME24007"
	desc = "EVENTHIST24007"
	style = 1

	date = { day = 1 month = april year = 1497 }
	offset = 50
	deathdate = { day = 1 month = april year = 1498 }

	action_a ={	
		name = "ACTIONNAME24007A"
		command = { type = leader which = 09745 } 
		command = { type = warships which = -1 value = 2 }
		command = { type = treasury value = -25 }
	}
	action_b ={	
		name = "ACTIONNAME24007B"
		command = { type = land  value = 100 }
		}
}

### Events by Chanda "Phillip V" Choun ### 
#Cambodia asks for aid# 
event = { 
	id = 65149 
	random = no 
	country = SPA 
	name = "EVENTNAME65149" 
	desc = "EVENTHIST65149"
	style = 2 
	action_a = { 
		name = "ACTIONNAME65149A" 
		command = { type = war which = AYU } 
		command = { type = vassal which = CAM } 
		command = { type = trigger which = 65133 } 
		} 
	action_b = { 
		name = "ACTIONNAME65149B" 
		command = { type = trigger which = 65134 } 
		}
}

#Lovek is captured# 
event = { 
	id = 65150 
	random = no 
	country = SPA 
	name = "EVENTNAME65150" 
	desc = "EVENTHIST65150" 
	style = 3 
	action_a = { 
		name = "ACTIONNAME65150A" 
		command = { type = breakvassal which = CAM } 
		command = { type = trigger which = 65143 } 
		}
}

event = {
	id = 7124
	trigger = { exists = GRA
			NOT = { event = 7120 }
}
	random = no
	country = SPA
	name = "EVENTNAME7120"
	desc = "EVENTHIST7120"
	style = 1
	date = { day = 27 month = december year = 1481 }
	action_a = {
		name = "ACTIONNAME7120A"
		command = { type = inf which = -2 value = 5000 }
		command = { type = relation which = GRA value = -200 }
		command = { type = casusbelli which = GRA value = 24 }
		command = { type = stability value = 1 }  
		command = { type = addcore which = 444 }
		command = { type = addcore which = 445 }
	}
}

event = {
	id = 7125
	trigger = { 
                	exists = GRA
                  }
	random = no
	country = SPA
	name = "EVENTNAME7125"
	desc = "EVENTHIST7125"
	style = 1
	date = { day = 1 month = july year = 1491 }
	action_a = {
		name = "ACTIONNAME7125A"
		command = { type = inf which = -2 value = 5000 }
		command = { type = relation which = GRA value = -200 }
		command = { type = war which = GRA } 
		command = { type = stability value = 2 }  
	}
}

#IB follow up to Iberian wedding to force ARG back into vassalage
event = {
	id = 7127
	trigger = {
		exists = ARG
		event = 7126 #chose to vassalize Aragon in 1477#
	NOT = { vassal = { country = ARG country = SPA } }
		NOT = { vassal = { country = SPA country = ARG } }
		NOT = { war = { country = ARG country = SPA } }
	}
	random = no
	country = SPA
	name = "EVENTNAME7127"
	desc = "EVENTHIST7127"
	style = 1

	date = { day = 26 month = november year = 1504 }
	offset = 30
	deathdate = { day = 30 month = december year = 1505 }

	action_a ={			
		name = "ACTIONNAME5251A"
		command = { type = dynastic which = ARG }
		command = { type = alliance which = ARG }
		command = { type = vassal which = ARG }
	}
}

#Siena sequence of events#
event = {
	id = 17351 #triggered by 17350 Fall of Petrucci PIS
	random = no
	country = SPA
	name = "EVENTNAME17354"
	desc = "EVENTHIST17351"
	style = 1
	action_a ={
		name = "ACTIONNAME5251A"
		command = { type = vassal  which = PIS }
		command = { type = relation   which = PAP value = -20 }
		command = { type = alliance   which = PIS }
		}
}

event = {
	id = 17356 #triggered by 17355 Burnt Siena PIS
	random = no
	country = SPA
	name = "EVENTNAME17359"
	desc = "EVENTHIST17356"
	style = 1
	action_a ={
		name = "ACTIONNAME17359A"
		command = { type = casusbelli which = PIS value = 12 }
		command = { type = relation which = PIS value = -400 }
		command = { type = relation which = TOS value = 200 }
		command = { type = trigger which = 17357 }  #TOS Revolt in Siena          
          	}
	action_b ={
		name = "ACTIONNAME17359B"
		command = { type = casusbelli which = PIS value = 12 }
		command = { type = relation which = PIS value = -400 }          
          	}
}

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

	id = 17020
	trigger = { 
		event = 17017 #VEN seeing a chance
		exists = VEN 
		NOT = { exists = ARG}
	}
	random = no
	country = SPA
	name = "EVENTNAME3107"
	desc = "EVENTHIST17020"
	style = 2

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

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

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

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

}

#Holy League of 1510 Spanish Version
event = {

	id = 17027
	trigger = { 
		event = 17024
		NOT = { exists = ARG }
		NOT = { event = 17026 }
	}
	random = no
	country = SPA
	name = "EVENTNAME17024"
	desc = "EVENTHIST17025"
	style = 2

	date = { day = 1 month = july year = 1510 }
	offset = 500
	deathdate = { day = 1 month = april year = 1512 }

	action_a ={
		name = "ACTIONNAME17024A"	#Express Support#
		command = { type = casusbelli which = FRA value = 36 }
		command = { type = relation which = FRA value = -150 }
		command = { type = relation which = VEN value = 150 }
		command = { type = relation which = ENG value = 150 }
		command = { type = relation which = HAB value = 150 }
		command = { type = relation which = PAP value = 150 }
	}

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

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

### Charles V's Mercenary Army Sacks Rome (Papal States Event) ###  Isaac Brock
event = {  
	id = 17407
	random = no
	country = SPA
	name = "EVENTNAME17406"
	desc = "EVENTHIST17408"
	style = 2
	action_a = {
		name = "ACTIONNAME17382A"
		command = { type = relation which = ENG value = -100}
		command = { type = relation which = FRA value = -100}
		command = { type = DIP   which = -2 value =12 }
		command = { type = ADM   which = -2 value =12 }
		command = { type = treasury   value = 50 }# no need to pay their back pay now!
		}
}

### French Meddling in Italy (Spanish Event) ###

event = {
	id = 12026
	trigger = {
		exists = FRA
		exists = HAB
			OR = { 
				event = 12022
#				event = 12024 #French intervention in Milan
				event = 17386 #France pressed claims in Milan
				}
}
	random = no
	country = SPA
	name = "EVENTNAME12026"
	desc = "EVENTHIST12026"
	style = 2
	date = { day = 1 month = january year = 1521 }
	offset = 90
	action_a = {
		name = "ACTIONNAME12026A"
		command = { type = casusbelli which = FRA value = 24}
		command = { type = alliance which = HAB}
		command = { type = relation which = FRA value = -200}
		}
	action_b = {
		name = "ACTIONNAME12026B"
		command = { type = stability value = 1}
		command = { type = sleepevent which = 12027}
		command = { type = sleepevent which = 12028}
		}
}


### Anti-French Coalition (Spanish Event) ###

event = {
	id = 12143
	trigger = {	
			event = 12022
			NOT = { exists = ARG }
 }
	random = no
	country = SPA
	name = "EVENTNAME12143"
	desc = "EVENTHIST12143"
	style = 1
	date = { day = 1 month = january year = 1496 }
	offset = 30
	action_a = {
		name = "ACTIONNAME12143A"
		command = { type = alliance which = HAB}
		command = { type = alliance which = VEN}
		command = { type = casusbelli which = FRA value = 120}
		}
	action_b = {
		name = "ACTIONNAME12143B"
		command = { type = stability value = -1}
		}
}

### French Encirclement by the Habsburgs ###  #SPA Event#

event = {
	id = 12067
	random = no
	country = SPA
	name = "EVENTNAME12062"
	desc = "EVENTHIST12062"
	style = 3
	action_a = {
		name = "ACTIONNAME12066A"
		command = { type = casusbelli which = FRA value = 48}
		command = { type = relation which = FRA value = -100}
		}
	action_b = {
		name = "ACTIONNAME12066B"
		command = { type = relation which = FRA value = 10}
		}
}

### Sabre Rattling ## SPA Event#

event = {
	id = 12116
	random = no
	country = SPA
	name = "EVENTNAME12114"
	desc = "EVENTHIST12114"
	style = 4
	action_a = {
		name = "ACTIONNAME12114A"
		command = { type = casusbelli which = FRA value = 80 } 
		}
	action_b = {
		name = "ACTIONNAME12114B"
		command = { type = stability value = -1 } 
		}
}


### War Again ## SPA Event#

event = {
	id = 12128
	random = no
	country = SPA
	name = "EVENTNAME12125"
	desc = "EVENTHIST12128"
	style = 5
	action_a = {
		name = "ACTIONNAME12126A"
		command = { type = casusbelli which = FRA value = 216 } 
		}
	action_b = {
		name = "ACTIONNAME12126B"
		command = { type = stability value = -1 } 
		}
}


# The treaty of Barcelona (for SPA)
event = {
	id = 7137
	trigger = {event = 12145
	   	owned = {province = 426 data = FRA}
	   	NOT = {exists = ARG}
          }
	random = no
	country = SPA
	name = "EVENTNAME7136"
	desc = "EVENTHIST7136"
	style = 1
	date = {day = 1 month = march year = 1493}
	offset = 120
	deathdate = {day = 1 month = march year = 1520}
	action_a = {
		name = "ACTIONNAME7136A"
		command = {type = treasury value = -300}
		command = {type = stability value = 1}
		command = {type = trigger which = 12147 }
		}
	action_b = {
		name = "ACTIONNAME7136B"
		command = {type = stability value = -2}
		}
}

# France refuses (for SPA)
event = {
	id = 7139
	random = no
	country = SPA
	name = "EVENTNAME7138"
	desc = "EVENTHIST7138"
	style = 1
	action_a = {
		name = "ACTIONNAME7138A" 
		command = {type = treasury value = 300} 
		command = {type = casusbelli which = FRA value = 36} 
		} 
}

# Joanot Martorell and the Tirant lo Blanc (SPA owns València)
event = {
	id = 7147 
	trigger = {owned = {province = 437 data = -1}
		NOT = { event = 7146 }
		NOT = { event = 7145 }
}
	random = no
	country = SPA
	name = "EVENTNAME7145"
	desc = "EVENTHIST7145"
	style = 1
	date = { day = 1 month = february year = 1490}
	offset = 120
	action_a = {
		name = "ACTIONNAME7145A"
		command = {type = stability value = 1}
		command = {type = infra value = 50}
		}
}

event = {
	id = 7157
	trigger = {
		exists = TUR
		exists = TRI
		atwar = no
		NOT = { event = 7156 }
		countrysize = 8
		NOT = { vassal = { country = SPA country = TRI } }
		NOT = { alliance = { country = SPA country = TRI } }
	}
	random = no
	country = SPA
	name = "EVENTNAME7156"
	desc = "EVENTHIST7157"
	style = 1
	date = { day = 1 month = november year = 1509 }
	offset = 30
	deathdate = { day = 1 month = january year = 1528 }
	action_a = {
		name = "ACTIONNAME7156A"
		command = { type = relation which = TRI value = -200 }
		command = { type = war which = TRI }
		}
	action_b = {
		name = "ACTIONNAME7156B"
		command = { type = relation which = TRI value = -50 }
		}
}

event = {
	id = 7159
	trigger = {
		owned = { province = 740 data = -1 }
		control = { province = 740 data = -1 }
		exists = KNI
	}
	random = no
	country = SPA
	name = "EVENTNAME7158"
	desc = "EVENTHIST7159"
	style = 1
	date = { day = 1 month = january year = 1517 }
	offset = 30
	deathdate = { day = 1 month = january year = 1525 }
	action_a = {
		name = "ACTIONNAME7158A"
		command = { type = secedeprovince which = KNI value = 740 }
		command = { type = relation which = KNI value = -30 }
		command = { type = trigger which = 24053 }
		}
	action_b = {
		name = "ACTIONNAME7158B"
		command = { type = secedeprovince which = KNI value = 740 }
		command = { type = trigger which = 24053 }
		}
	action_c = {
		name = "ACTIONNAME7158C"
        	command = { type = treasury value = -50 }
		command = { type = inflation value = 2 }
       		command = { type = inf which = 740 value = 6000 }
		command = { type = province_revoltrisk which = 740 value = 5 }
		}
}


### The Novatores
### By mfigueras
event = {
	id = 5252
	trigger = { stability = 0
		domestic = { type = innovative value = 3 } }
	random = no
	country = SPA
	name = "EVENTNAME5252"
	desc = "EVENTHIST5252"
	style = 3
	date = {day = 1 month = june year = 1680}
	offset = 720
	deathdate = {day = 1 month = august year = 1685}
	action_a = {
		name = "ACTIONNAME5252A"
		command = { type = infra value = 50 }
		command = { type = sleepevent which = 5253 }
		}
	action_b = {
		name = "ACTIONNAME5252B"
		command = { type = cash value = -75 }
		command = { type = infra value = 100 }
		}
}

### Consequences of the royal-funded novatores

event = {
	id = 5253
	trigger = { stability = 0
		domestic = { type = innovative value = 3 } 
		event = 5252 }
	random = no
	country = SPA
	name = "EVENTNAME5253"
	desc = "EVENTHIST5253"
	style = 4
	date = {day = 1 month = june year = 1710}
	offset = 720
	deathdate = {day = 1 month = august year = 1715}
	action_a = {
		name = "ACTIONNAME5253A"
		command = {type = infra value = 150}
		command = {type = ADM which = 2 value = 12}
		command = {type = domestic which = innovative value = 1}
		}
}


### The royal expedition for the smallpox vaccination

event = {
	id = 5254
	trigger = { event = 5060 }  ## Jenner
	random = no
	country = SPA
	name = "EVENTNAME5254"
	desc = "EVENTHIST5254"
	style = 5
	date = {day = 1 month = april year = 1803}
	offset = 60
	deathdate = {day = 30 month = september year = 1807}
	action_a = {
		name = ACTIONNAME5254A
		command = {type = cash value = -100}
		command = {type = infra value = 150}
		command = {type = population which = 27 value = 1000}
		command = {type = population which = 29 value = 800}
		command = {type = population which = 33 value = 1000}
		command = {type = population which = 137 value = 800}
		command = {type = population which = 139 value = 1000}
		command = {type = population which = 158 value = 1000}
		command = {type = population which = 160 value = 500}
		command = {type = population which = 163 value = 1000}
		command = {type = population which = 169 value = 1000}
		}
	action_b = {
		name = "ACTIONNAME5254B"
		command = {type = ADM which = -2 value = 15}
		command = {type = population which = 29 value = -1000}
		command = {type = population which = 33 value = -800}
		command = {type = population which = 139 value = -500}
		command = {type = population which = 158 value = -200}
		command = {type = population which = 169 value = -1000}
		}
}


