#Spain (SPA)

#See AGCEEP_Alt_Italy.txt for KoI Alternative events
#See AGCEEP_Alt_Iberia.txt for Alternative events

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

#(1470-1560) The Quest for the New World
event = {
	id = 3152
	trigger = {
		war = { country = SPA country = AZT }
	}
	random = no
	country = SPA
	name = "EVENTNAME3152" #The Quest for the New World
	desc = "EVENTHIST3152"
	#-#After the Conquest of Granada, Spain was filled with veterans and warriors of the faith with nothing to do and many needs. Deeds and needs would be fulfilled as Cortez and Pizarro started out to conquer South- and Central America. All these people became the hacienda-owners and trader-barons of the New World bringing wealth both into their own pockets and the vaults of the Spanish treasury.

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

	action_a = {
		name = "ACTIONNAME3152A" #A New Reconquista! A New Beginning!
		command = { type = stability value = 1 }
		command = { type = treasury value = 300 }
		command = { type = colonists value = 6 }
		command = { type = missionaries value = 6 }
	}
}

#(1478-1481) Purchase of Canary Islands rights
#by Fodoron
event = {
	id = 285176
	trigger = {
		owned = { province = 817 data = -1 } #Canary Islands
	}
	random = no
	country = SPA
	name = "EVENTNAME285176" #Purchase of Canary Islands rights
	desc = "EVENTHIST285176"
	#-#Coming out of the civil war, and seeing that the Canary Islands could not be conquered by the Peraza, the Catholic Kings ordered an expedition in 1478. The Peraza protested that they had all the legal rights. The Kings, to avoid legal problems, bought back the rights to Gran Canaria, La Palma and Tenerife, that became the royalship islands, while the remaining lordship islands continued under feudal status for the Peraza family. In 1480 the Kings sent Pedro de Vera to conquer the islands, who using all available means, including war dogs, conquered Gran Canaria by 1483. Spain was getting her first experience at conquest and colonization in the Canary Islands.

	date = { day = 0 month = january year = 1478 }
	offset = 100
	deathdate = { day = 0 month = january year = 1481 }

	action_a = {
		name = "ACTIONNAME285176A" #Pay for the islands
		command = { type = treasury value = -50 }
		command = { type = natives which = 817 value = 0 } #Canary Islands
		command = { type = INF which = 817 value = 3000 } #Canary Islands
		command = { type = population which = 817 value = 600 } #Canary Islands
	}
	action_b = {
		name = "ACTIONNAME285176B" #A King does not pay for his lands
		command = { type = vp value = 5 }
	}
}

#(1479-1491) The Forging of the Spanish Identity - Ahistorical
event = {
	id = 285278 #triggered by CAS_142016 A
	random = no
	country = SPA
	name = "EVENTNAME111026" #The Forging of the Spanish Identity
	desc = "EVENTHIST285278"
	#-#Isabel I of Castile becomes the Queen of Spain as Isabel I.

	action_a = {
		name = "VIVAT"
		command = { type = sleepmonarch which = 0127500 } #Isabel y Fernando
		command = { type = wakemonarch which = 0127524 } #Isabel I
		command = { type = wakemonarch which = 0127525 } #Juana I 
		command = { type = sleepleader which = 0127802 } #Prospero Colonna (SPA)
	}
}
#(1479-1491) The Forging of the Spanish Identity - Ahistorical
event = {
	id = 285279 #triggered by ARG_111026 A
	random = no
	country = SPA
	name = "EVENTNAME111026" #The Forging of the Spanish Identity
	desc = "EVENTHIST285279"
	#-#Ferrn II of Aragon becomes the King of Spain as Fernando I.

	action_a = {
		name = "VIVAT"
		command = { type = sleepmonarch which = 0127500 } #Isabel y Fernando
		command = { type = wakemonarch which = 0127526 } #Fernando I
	}
}

#(1479-1820) Spain inherits Aragon's core on Corsica
#by sturmvogel
event = {
	id = 285293
	trigger = {
		event = 111038 #ARG: Gain of core on Corsica
		NOT = {
			event = 111002 #ARG: Aragon loses claim to Corsica
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285293" #Spain inherits Aragon's core on Corsica
	desc = "EVENTHIST285293"
	#-#Spain inherited Aragon's claim on Corsica.

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

	action_a = {
		name = "GREAT"
		command = { type = addcore which = 398 } #Corsica
	}
}

#-----------------------------------------------------------------------------------------------
#Treaty of Alcacovas for Spain
#Idea: Baston - Scripting by Annibale
#Mod by Isaac Brock to include Canaries - Further modified by Fodoron

#(1479) Treaty of Alcacovas
event = {
	id = 285001 #triggered by POR_260003 A
	random = no
	country = SPA
	name = "EVENTNAME285001" #Treaty of Alcacovas
	desc = "EVENTHIST285001"
	#-#In 1469 Alfonso V of Portugal was presented with the opportunity of becoming the King of Castile when he and his brother-in-law Enrique IV of Castile agreed on his marriage to Isabel, Princess of Asturias (heir title). But the deal failed when Isabel married Fernando of Aragon. When Enrique died and Isabel proclaimed herself Queen, in 1475, he saw his chance disappearing and decided to play hard. In a month he was married to his niece, Juana, and had claimed the crown of Castile for himself, invading the country. The plan was good because Juana had also the support of France and a great part of the Castilian nobility who rebelled in her support. Despite the simultaneous invasion from France and Portugal, and the rebellion of the nobles in the West of Castile, the war did not go well. The French were stopped by the Basques, while Fernando, with troops mostly from Castile and Asturias, inflicted a crushing defeat to the Portuguese in Toro in 1476. Alfonso traveled to France to try to get a stronger involvement from Louis XI, but the French had lost interest. By then Fernando had recovered control of all the Northwest. The war at sea, that extended as far as the coast of Guinea, claimed by Castile, was also favorable to Isabel. Alfonso's marriage to his niece was not recognized by the Pope, and a last invasion at the South ended also in defeat at la Albuera in February, 1479. With the nobility subdued and the Portuguese defeated, Castile had now the upper hand, but Isabel was half Portuguese herself, and Portuguese was her first language. She desired a perpetual peace with Portugal, with long lasting friendship and perhaps a dynastic union in the future, like the one with Aragon, and she was prepared to be generous with the defeated to obtain it. The treaty of Alcacovas, was concluded in September 4, 1479. It had four parts, all of them historically important. In the first part, Isabel and Fernando were recognized as rightful Kings of Castile and Leon, and Alfonso was recognized as rightful King of Portugal. In the second part, Juana renounced to her claim to the crown of Castile and was forced to expend the rest of her life in a convent in Portugal. In the third part, the future marriage between the infant Alfonso, son of Joao and the infant Isabel, daughter of the Catholic Kings was arranged. And in the fourth part, Castile accepted the claim of Portugal over Guinea, and the Atlantic coast of Africa, Madeira, Azores and Cape Verde, and any future discoveries South of the Canary Islands toward Guinea. Portugal accepted the claim of Castile over the Canary Islands. The treaty of Alcacovas is very important because it created a long lasting peace between Portugal and Spain, and set the basis for future diplomatic resolution of conflicts, like the discovery of the New World and the treaty of Tordesillas. Some believe it was crucial to the discovery of the New World by Spain, as Africa was reserved for Portugal, leaving only the unknown West for Sp

	action_a = {
		name = "ACTIONNAME285001A" #The Portuguese have accepted our generous offer
		command = { type = stability value = 1 } #end of the war
		command = { type = addcore which = 817 } #The Canary Islands
		command = { type = naval value = 200 }
		command = { type = cedeprovince which = POR value = 733 } #Fez
		command = { type = cedeprovince which = POR value = 806 } #Toubkal
		command = { type = cedeprovince which = POR value = 805 } #Sahara
		command = { type = cedeprovince which = POR value = 804 } #Tassaret
		command = { type = cedeprovince which = POR value = 1595 } #Anti Atlas
		command = { type = cedeprovince which = POR value = 1596 } #Mdennan
		command = { type = cedeprovince which = POR value = 1597 } #Azaouad
		command = { type = cedeprovince which = POR value = 803 } #Nouadibuh
		command = { type = cedeprovince which = POR value = 802 } #Nouakchott
		command = { type = cedeprovince which = POR value = 801 } #Louga
		command = { type = cedeprovince which = POR value = 800 } #Senegal
		command = { type = cedeprovince which = POR value = 799 } #Dakar
		command = { type = cedeprovince which = POR value = 798 } #Gambia
		command = { type = cedeprovince which = POR value = 797 } #Casamance
		command = { type = cedeprovince which = POR value = 796 } #Guinea
		command = { type = cedeprovince which = POR value = 795 } #Leone
		command = { type = cedeprovince which = POR value = 794 } #Palanas
		command = { type = cedeprovince which = POR value = 793 } #Ivoria
		command = { type = cedeprovince which = POR value = 792 } #Accra
		command = { type = cedeprovince which = POR value = 791 } #Nigeria
		command = { type = cedeprovince which = POR value = 790 } #Douala
		command = { type = cedeprovince which = POR value = 789 } #Kribi
		command = { type = cedeprovince which = POR value = 818 } #Cape Verde
		command = { type = cedeprovince which = POR value = 816 } #Fernando Po
		command = { type = cedeprovince which = POR value = 823 } #The Azores
		command = { type = cedeprovince which = POR value = 434 } #Oporto
		command = { type = cedeprovince which = POR value = 442 } #Algarve
	}
	action_b = {
		name = "ACTIONNAME285001B" #On second thought we are being too generous
		command = { type = stability value = -2 } #war continues
		command = { type = relation which = POR value = -50 }
		command = { type = trigger which = 260004 } #POR: Treaty of Alcacovas Rejected
		command = { type = addcore which = 796 } #Guinea claimed by Juan II and Isabel I for Castile
		command = { type = breakdynastic which = POR }
		command = { type = treasury value = 50 } #Portuguese gold and slave routes attacked
	}
}
#(1479) Treaty of Alcacovas Rejected
event = {
	id = 285050 #triggered by POR_260003 B
	random = no
	country = SPA
	name = "EVENTNAME285050" #Treaty of Alcacovas Rejected
	desc = "EVENTHIST285050"
	#-#In 1469 Alfonso V of Portugal was presented with the opportunity of becoming the King of Castile when he and his brother-in-law Enrique IV of Castile agreed on his marriage to Isabel, Princess of Asturias (heir title). But the deal failed when Isabel married Fernando of Aragon. When Enrique died and Isabel proclaimed herself Queen, in 1475, he saw his chance disappearing and decided to play hard. In a month he was married to his niece, Juana, and had claimed the crown of Castile for himself, invading the country. The plan was good because Juana had also the support of France and a great part of the Castilian nobility who rebelled in her support. Despite the simultaneous invasion from France and Portugal, and the rebellion of the nobles in the West of Castile, the war did not go well. The French were stopped by the Basques, while Fernando, with troops mostly from Castile and Asturias, inflicted a crushing defeat to the Portuguese in Toro in 1476. Alfonso traveled to France to try to get a stronger involvement from Louis XI, but the French had lost interest. By then Fernando had recovered control of all the Northwest. The war at sea, that extended as far as the coast of Guinea, claimed by Castile, was also favorable to Isabel. Alfonso's marriage to his niece was not recognized by the Pope, and a last invasion at the South ended also in defeat at la Albuera in February, 1479. With the nobility subdued and the Portuguese defeated, Castile had now the upper hand, but Isabel was half Portuguese herself, and Portuguese was her first language. She desired a perpetual peace with Portugal, with long lasting friendship and perhaps a dynastic union in the future, like the one with Aragon, and she was prepared to be generous with the defeated to obtain it. The treaty of Alcacovas, was concluded in September 4, 1479. It had four parts, all of them historically important. In the first part, Isabel and Fernando were recognized as rightful Kings of Castile and Leon, and Alfonso was recognized as rightful King of Portugal. In the second part, Juana renounced to her claim to the crown of Castile and was forced to expend the rest of her life in a convent in Portugal. In the third part, the future marriage between the infant Alfonso, son of Joao and the infant Isabel, daughter of the Catholic Kings was arranged. And in the fourth part, Castile accepted the claim of Portugal over Guinea, and the Atlantic coast of Africa, Madeira, Azores and Cape Verde, and any future discoveries South of the Canary Islands toward Guinea. Portugal accepted the claim of Castile over the Canary Islands. Alfonso has chosen to reject our generous offer, and has decided to maintain his claim to the crown of Castile. He also reclaims the Canary Islands, despite the Pope's sentence in our favour.

	action_a = {
		name = "ACTIONNAME285050A" #Damn Portuguese!
		command = { type = stability value = -1 } #war continues
		command = { type = relation which = POR value = -50 }
		command = { type = addcore which = 796 } #Guinea claimed by Juan II and Isabel I for Castile #Guinea
		command = { type = treasury value = 50 } #Portuguese gold and slave routes attacked
		command = { type = casusbelli which = POR value = 24 }
	}
}
#End of Treaty of Alcacovas for Spain
#-----------------------------------------------------------------------------------------------

#-----------------------------------------------------------------------------------------------
#(1481-1491) Event for Spain as unwanted revolter or released vassal...
event = {
	id = 285286
	trigger = {
		ai = yes
		exists = CAS
		NOT = {
			event = 142016 #CAS: The Forging of the Spanish Identity
		}
	}
	random = no
	country = SPA
	name = "AI_EVENT"
	desc = ""
	#-#No description needed

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

	action_a = {
		name = "OK"
		command = { type = trigger which = 142029 } #CAS: The Spanish Identity
	}
}
#-----------------------------------------------------------------------------------------------

#(1484) Toms de Torquemada - Flavor
event = {
	id = 5251
	random = no
	country = SPA
	name = "EVENTNAME5251" #Torquemada
	desc = "EVENTHIST5251"
	#-#Toms de Torquemada was the first grand inquisitor in Spain whose name has become synonymous with the Christian Inquisition's horror religious bigotry and cruel fanaticism. He was closely associated with the religious policy of King Ferdinand II and Queen Isabella I to whom he was both confessor and adviser. In 1484 he promulgated 28 articles for the guidance of inquisitors whose competence was extended to include not only crimes of heresy and apostasy but also sorcery sodomy polygamy blasphemy usury and other offenses - torture was authorized in order to obtain evidence.

	date = { day = 1 month = august year = 1484 }

	action_a = {
		name = "OK"
		command = { type = stability value = 2 }
		command = { type = domestic which = INNOVATIVE value = -2 }
	}
}

#(1485-1820) Royal Astronomical Commission
event = {
	id = 285012
	trigger = { event = 260024 } #POR: Royal Astronomical Commission
	random = no
	country = SPA
	name = "EVENTNAME285012" #Royal Astronomical Commission
	desc = "EVENTHIST285012"
	#-#In 1484 the Portuguese King D. Joo II commissioned a group of prominent scientists to find a method for navigation outside European waters. The commission published the Regimento do Astrolabio e do Quadrante which contained a Portuguese translation of the 1250 text by Sacrobosco, Sphaera Mundi, on the spherical nature of the Earth as well as the Regimento do Norte which gve rules on how to use the Pole Star to determine latitude and the Regimento do Sol which provided rules and tables to allow sailors to use the height of the sun at noon to determine their latitude. It likely came into hands of Spanish mariners within a couple of years of its (hand-written) publication. Coupled with improvements in navigational instruments this information greatly eased the navigational problems that had bedevilled earlier explorers.

	date = { day = 0 month = january year = 1485 }
	offset = 1000
	deathdate = { year = 1820 }

	action_a = {
		name = "OK"
		command = { type = naval value = 1000 }
	}
}

#(1485-1488) Wars of Granada II (First in Granada folder)
#modified by Garbon and further by Fodoron
event = {
	id = 7124
	trigger = {
		exists = GRA
		atwar = no
		NOT = { event = 142017 } #CAS: Second Phase of the War of Granada
	}
	random = no
	country = SPA
	name = "EVENTNAME7124" #Second Phase of the War of Granada
	desc = "EVENTHIST7124"
	#-#The war of Granada started as a frontier war with a Muslim attack on Zahara in December 1481, that was responded by the Marquis of Cadiz in February 1482 with the conquest of Alhama, deep inside Muslim terrritory. The Kings gave orders of holding Alhama at all cost, as the first step in the conquest of the Nasrid emirate. Alhama held thanks to the help of the Duke of Medina-Sidonia, personal enemy of the Marquis of Cadiz, a clear demonstration that the war was going to unite the Kingdoms. At the beginning of the war, the Christians were not prepared for the offensive, and suffered several setbacks, but Granada was in a civil war, divided in two factions fighting each other and against the Christians, and after the battle of Lucena, the leader of one faction, Boabdil, was captured. Fernando decided to realease him on terms to keep the Muslims divided. Fernando reorganized the army, introducing artillery in great amounts, as a new weapon to conquer the Muslim strongholds in days instead of months. Through an extraordinary effort during the campaigns of 1484-86 the first phase of the war was concluded with the conquest of the Western part of the emirate of Granada, capturing Boabdil a second time. The pact made with him for his release included his renounciation to the parts of the emirate in the hands of his rival and uncle, Emir Muhammad XIII al-Zagal, and the surrender of Granada once it became under his control in exchange for a title and land states. The second phase of the war of Granada was then directed against the parts controlled by al-Zagal, the coast and the Eastern part of the emirate. After the fall of Baza and Almeria in 1489, Al-Zagal, defeated, abdicated, and Boabdil became in control of Granada. According to the treaty the war was over. But Boabdil refused to comply, forcing a third phase, the siege of Granada, that was stablished in 1491. The artillery was not used to preserve the city, and Granada will finally surrender in January 1492. 780 years of Muslim presence in the peninsula had come to an end.

	date = { day = 1 month = january year = 1485 }
	offset = 120
	deathdate = { day = 1 month = january year = 1488 }

	action_a = {
		name = "ACTIONNAME7124A" #Expell the Muslims from our motherland
		command = { type = inf which = -1 value = 5000 } #European crusaders
		command = { type = cav which = -1 value = 2000 } #European crusaders
		command = { type = relation which = GRA value = -200 }
		command = { type = war which = GRA }
		command = { type = stability value = 5 } #compensates for breaking truce
		command = { type = sleepevent which = 142017 } #CAS: Second Phase of the War of Granada
	}
	action_b = {
		name = "ACTIONNAME7124B" #Seek a peaceful alliance of civilizations
		command = { type = relation which = GRA value = 25 }
		command = { type = stability value = -1 }
		command = { type = sleepevent which = 142017 } #CAS: Second Phase of the War of Granada
	}
}

#(1486-1487) Columbus
event = {
	id = 24005
	random = no
	country = SPA
	name = "EVENTNAME24005" #Western route to India
	desc = "EVENTHIST24005"
	#-#In 1486 a Genoese named Cristoforo Colombo offered his plan for finding a Western route to India to the Kings of Spain. His offer had been previously rejected by Portugal because they were following the Eastern route, and because it was fundamentally flawed. Columbus was basing his plan in the mistaken Ptolemaic and Biblic theories of Pierre D'Ailly and Paolo Toscanelli that considered the circumference of the Earth a lot smaller that it really is. Although it was difficult to find good geographers in Castile, the Spanish commission also rightly concluded that the plan was inviable, probably because the right measurement of the Earth's circumference had already been calculated by Erathostenes, and by Muslim astronomers, and this knowledge was known at the time. The outrageous demands of the sailor probably did not help him either. However, since Columbus had already gained some important supporters, Queen Isabel between them, the commission left the door open to a reconsideration after the war of Granada, and allocated some funds for Columbus.

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

	action_a = {
		name = "ACTIONNAME24005A" #We lack the money
		command = { type = land value = 100 }
		command = { type = domestic which = offensive value = 1 }
	}
	action_b = {
		name = "ACTIONNAME24005B" #Let's go for it
		command = { type = naval value = 100 }
		command = { type = domestic which = land value = -1 }
		command = { type = wakeleader which = 0127800 } #Cristobal Colon (SPA)
		command = { type = warships which = -1 value = 2 }
		command = { type = treasury value = -300 }
		command = { type = sleepevent which = 24006 } #SPA: Columbus
	}
}

#(1488) The rebellion of Gomera
#by Fodoron
event = {
	id = 285177
	trigger = {
		owned = { province = 817 data = -1 } #Canary Islands
	}
	random = no
	country = SPA
	name = "EVENTNAME285177" #The rebellion of Gomera
	desc = "EVENTHIST285177"
	#-#The situation in the lordship islands of the Canaries was specially bad. Their feudal status in Norman style, that did not exist in any other place of Spain, allowed their lords, Hernn de Peraza and his wife Beatriz de Bobadilla to dispossess their subjects, and even sell them if they were not Christians. Knowing that, almost all the Guanches had baptized, yet their lords sometimes sold them anyway despite priests protests. The authority of the Peraza in Gomera had been established through a tribal pact with two of the four tribal groups. When Hernn became the lover of Yballa, a young Guanche, he inadvertently broke a tabu, since she was a member of his adopted tribal group, and intermarriage within a group was not allowed to prevent consanguinity. Hernn de Peraza was killed, and the natives rose in rebellion, besieging his wife, who called for help. Pedro de Vera came from Gran Canaria and conducted a terrible revenge, killing many men and selling many women and children.

	date = { day = 0 month = january year = 1488 }
	offset = 100
	deathdate = { day = 0 month = january year = 1489 }

	action_a = {
		name = "ACTIONNAME285177A" #Kill the men and sell the rest
		command = { type = revolt which = 817 } #Canary Islands
		command = { type = treasury value = 100 }
		command = { type = population which = 817 value = -150 } #Canary Islands
	}
	action_b = {
		name = "ACTIONNAME285177B" #Protect the Guanches
		command = { type = revolt which = 817 } #Canary Islands
		command = { type = treasury value = -50 }
	}
}

#(1490-1520) Sugar in the Canaries
#by Fodoron
event = {
	id = 285179
	trigger = {
		owned = { province = 817 data = -1 } #Canary Islands
		control = { province = 817 data = -1 } #Canary Islands
	}
	random = no
	country = SPA
	name = "EVENTNAME285179" #Sugar in the Canaries
	desc = "EVENTHIST285179"
	#-#Sugar was for a long time a luxury product. In the second half of the XV century, Portugal displaced Venice as the biggest European productor, introducing sugar in the Azores and Madeira. In Spain sugar was cultivated in Granada by the Arabs, but the conditions in the Canary Islands were very good for its cultivation. From the moment of their conquest, sugar was introduced in the islands, specially in Gran Canaria, Gomera, La Palma and Tenerife. Sugar production attracted many inmigrants from Castile, Aragon, Portugal, Genoa and Flanders, as well as black slaves brought to work on the plantations. Soon there were over 30 sugar mills in the Canary Islands. Christopher Columbus will take sugar cane plants from the Canaries to Santo Domingo in his second trip in 1493, introducing sugar production in the Antilles.

	date = { day = 0 month = january year = 1490 }
	offset = 100
	deathdate = { day = 0 month = january year = 1520 }

	action_a = {
		name = "ACTIONNAME285179A" #Build sugar mills
		command = { type = treasury value = -500 }
		command = { type = population which = 817 value = 300 } #Canary Islands
		command = { type = provincetax which = 817 value = 1 } #Canary Islands
		command = { type = gainmanufactory which = 817 value = refinery } #Canary Islands
	}
	action_b = {
		name = "ACTIONNAME285179B" #Too expensive
		command = { type = vp value = -5 }
	}
}

#(1490-1500) Wars of Granada III (First in Granada folder)
#modified by Garbon and further by Fodoron
event = {
	id = 7125
	trigger = {
		neighbour = GRA
		atwar = no
	}
	random = no
	country = SPA
	name = "EVENTNAME7125" #Third Phase of the War of Granada
	desc = "EVENTHIST7124"
	#-#The war of Granada started as a frontier war with a Muslim attack on Zahara in December 1481, that was responded by the Marquis of Cadiz in February 1482 with the conquest of Alhama, deep inside Muslim terrritory. The Kings gave orders of holding Alhama at all cost, as the first step in the conquest of the Nasrid emirate. Alhama held thanks to the help of the Duke of Medina-Sidonia, personal enemy of the Marquis of Cadiz, a clear demonstration that the war was going to unite the Kingdoms. At the beginning of the war, the Christians were not prepared for the offensive, and suffered several setbacks, but Granada was in a civil war, divided in two factions fighting each other and against the Christians, and after the battle of Lucena, the leader of one faction, Boabdil, was captured. Fernando decided to realease him on terms to keep the Muslims divided. Fernando reorganized the army, introducing artillery in great amounts, as a new weapon to conquer the Muslim strongholds in days instead of months. Through an extraordinary effort during the campaigns of 1484-86 the first phase of the war was concluded with the conquest of the Western part of the emirate of Granada, capturing Boabdil a second time. The pact made with him for his release included his renounciation to the parts of the emirate in the hands of his rival and uncle, Emir Muhammad XIII al-Zagal, and the surrender of Granada once it became under his control in exchange for a title and land states. The second phase of the war of Granada was then directed against the parts controlled by al-Zagal, the coast and the Eastern part of the emirate. After the fall of Baza and Almeria in 1489, Al-Zagal, defeated, abdicated, and Boabdil became in control of Granada. According to the treaty the war was over. But Boabdil refused to comply, forcing a third phase, the siege of Granada, that was stablished in 1491. The artillery was not used to preserve the city, and Granada will finally surrender in January 1492. 780 years of Muslim presence in the peninsula had come to an end.

	date = { day = 1 month = january year = 1490 }
	offset = 120
	deathdate = { day = 1 month = january year = 1500 }

	action_a = {
		name = "ACTIONNAME7124A" #Expell the Muslims from our motherland
		command = { type = inf which = -1 value = 5000 } #European crusaders
		command = { type = cav which = -1 value = 2000 } #European crusaders
		command = { type = relation which = GRA value = -200 }
		command = { type = war which = GRA }
		command = { type = stability value = 5 } #compensates for breaking truce
	}
	action_b = {
		name = "ACTIONNAME7124B" #Seek a peaceful alliance of civilizations
		command = { type = relation which = GRA value = 25 }
		command = { type = stability value = -1 }
	}
}

#(1490-1820) Submission of Granada - Ahistorical
event = {
	id = 285266 #triggered by GRA_176015
	random = no
	country = SPA
	name = "EVENTNAME176015" #Submission of Granada
	desc = "EVENTHIST176015"
	#-#After the wars against the Spaniards, Granada has lost independence for good...

	action_a = {
		name = "AT_LAST"
		command = { type = inherit which = GRA }
		command = { type = badboy value = 5 }
	}
}

#(1491-1493) Columbus
event = {
	id = 24006
	random = no
	country = SPA
	name = "EVENTNAME24006" #Columbus
	desc = "EVENTHIST24006"
	#-#Cristoforo Colombo submitted his plan for finding a Western route to India a second time in 1491. He was made to wait until the fall of Granada, but then the commission failed against his plan for a second time. However Columbus had impressed favourably several counselors of both Isabel and Fernando, and they lobbied in his favor. The main argument was that even if the risk was high, the investment was small and the potential benefits enormous, both in terms of money and in terms of souls that could be saved by Christianity. Isabel was very sensitive to this last argument and agreed to finance the expedition. The monarchs agreed to the exorbitant terms Columbus demanded: he would be knighted if he were to succeed on his first voyage, appointed Admiral of the Seas, made Viceroy of all the new lands, and on top of that awarded 10 percent of any new wealth. After 10 years of pursuing his dream he would accept nothing less, and after all, the enterprise was considered unlikely to produce much. The expedition was not expensive to finance, and the Queen did not need to sell any of her jewels. It is interesting to think that the most important geographical discovery of mankind was serendipitous. It came out of a grant application that was rejected by a scientific commission based on solid evidence that it was flawed and ignored relevant accepted bibliography supporting the opposite rightful theory, that India could not be reached by sailing Westward across an empty sea with available naval technology, but whose decision was overruled due to favoritism by influential politicians. Columbus will always defend against all evidence that he had reached Asia and not a New World. Awful administrator, he was, however, one of the greatest sailors of all times.

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

	action_a = {
		name = "ACTIONNAME24006A" #Send him on his way
		command = { type = wakeleader which = 0127800 } #Cristobal Colon (SPA)
		command = { type = warships which = -1 value = 3 }
		command = { type = treasury value = -30 }
	}
	action_b = {
		name = "ACTIONNAME24006B" #Exile the moron
		command = { type = land value = 100 }
		command = { type = domestic which = land value = 1 }
	}
}

#(1492-1496) The Canaries are finally conquered
#by Fodoron
event = {
	id = 285178
	trigger = {
		owned = { province = 817 data = -1 } #Canary Islands
		control = { province = 817 data = -1 } #Canary Islands
	}
	random = no
	country = SPA
	name = "EVENTNAME285178" #The Canaries are finally conquered
	desc = "EVENTHIST285178"
	#-#In September 1492, Alonso Fernndez de Lugo landed in the island of La Palma with 900 men. Over the next months he subjugated the different tribes, until the last resisting chieftain, Tanaus, was captured by deception. The next year he landed at Tenerife, with over a thousand men, but suffered a great defeat at Acentejo at the hands of the Mencey Bencomo and his brother Tinguaro, losing most of his army. In 1495 he landed again at Tenerife with 1500 men. A plague had weakened the Guanches, and Bencomo made the mistake of presenting battle in the open, at Aguere. Their defeat was complete, and Bencomo and Tinguaro died. By December 1495, all the resistance had ended, and the Canary Islands were finally conquered.

	date = { day = 0 month = january year = 1492 }
	offset = 100
	deathdate = { day = 0 month = january year = 1496 }

	action_a = {
		name = "ACTIONNAME285178A" #All the islands are ours
		command = { type = stability value = 1 }
		command = { type = population which = 817 value = 50 } #Canary Islands
	}
}

#(1492-1511) A New World Has Been Discovered
#modified by Garbon and further by Fodoron
#This event is mainly for changing the AI .txt file for Spain from the war of Granada to exploration
event = {
	id = 285500
	trigger = {
		OR = {
			NOT = { exists = GRA }
			year = 1510
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285500" #A New World Has Been Discovered
	desc = "EVENTHIST285500"
	#-#After the wars of Granada, many veterans chose to enlist for the Italian wars, following Fernando Gonzalez de Cordoba, later named -El Gran Capitan-. But others were atracted by the histories circulating over the Kingdoms about the new land discovered beyond the seas. Columbus had already brought several natives, and as much gold as he had discovered. Not much, indeed, just some personal jewlery from the indians, but enough to excite the imagination of poor hardened soldiers. According to rumors, one just needed a sack, and the indians would fill it with gold, making one's fortune in a day's work. Obviusly not everybody believed those rumors, but there were positions open in the expeditions to the Indias, and one could easily advance his career.

	date = { day = 28 month = december year = 1492 }
	offset = 100
	deathdate = { day = 1 month = january year = 1511 }

	action_a = {
		name = "ACTIONNAME285500A" #A New World awaits us
		command = { type = stability value = 1 }
		#command = { type = AI which = spain_EEP.txt }
		command = { type = naval value = 300 }
		command = { type = treasury value = -50 }
		command = { type = warships which = 443 value = 1 } #Andalusia
		command = { type = transports which = 443 value = 2 } #Andalusia
	}
	action_b = {
		name = "ACTIONNAME285500B" #Let's join the Italian campaigns
		command = { type = stability value = 1 }
		#command = { type = AI which = spain_EEP.txt }
		command = { type = land value = 300 }
		command = { type = treasury value = -50 }
		command = { type = INF which = 396 value = 5000 } #Sicily
		command = { type = CAV which = 396 value = 2000 } #Sicily
	}
}

#-----------------------------------------------------------------------------------------------
#Spanish events dealing with the Aztec Empire and Zapotecs

#(1419-1600) The Conquest of the Zapotecs
event = {
	id = 82008 #triggered by ZAP_82007 A/B
	random = no
	country = SPA
	name = "EVENTNAME82008" #The Conquest of the Zapotecs
	desc = "EVENTHIST82008"
	#-#Sire, our soldiers have conquered the Zapotecs!

	action_a = {
		name = "ACTIONNAME82005A" #Thanks be to God
		command = { type = annex which = ZAP }
	}
}
#(1519-1600) The conquest of Mexico, AI version
#by Fodoron
event = {
	id = 285154
	trigger = {
		ai = yes
		discovered = 29 #Tlaxcala
		exists = AZT
		owned = { province = 29 data = AZT }
	}
	random = no
	country = SPA
	name = "EVENTNAME285154" #Cortes disembarks in Cempoala and burns his ships
	desc = "EVENTHIST285154"
	#-#AI only event representing Cortes landing in Cempoala

	date = { day = 1 month = april year = 1519 }
	offset = 30
	deathdate = { day = 20 month = december year = 1600 }

	action_a = {
		name = "OK"
		command = { type = trigger which = 121010 } #AZT: The Tlaxcalan revolt
	}
}
#(1519-1600) The conquest of Mexico, AI and human
#by AlanC9 - modified by Fodoron
event = {
	id = 285155 #triggered by AZT_82000 or AZT_121010
	random = no
	country = SPA
	name = "EVENTNAME285155" #Tlaxcala goes over to Spain
	desc = "EVENTHIST285155"
	#-#Hernando Cortes expedition was intended to collect tributes and gather information only, as Diego Velazquez was the -adelantado-, with a royal charter to take possession of new lands. But Cortes was going to seize his chance. In the Mexica lands, the Aztec Tlatoani, or Prime Speaker, Motehcuzoma Xocoyotzin (Angry Lord, Junior) had initiated a power concentration process, effectively becoming an emperor of the triple alliance and imposing the supremacy of Tenochtitlan over Texcoco and Tlacopan, and at the same time expanding the borders of the Aztec Empire. Due to his despotic nature he was impopular, but he was also superstitious. He identified certain signs and the presence of the strange men in the coasts, as the predicted return of the expelled god Quetzalcoatl to reclaim his Kingdom. It was unthinkable to receive the mighty Plumed Serpent with hostility, and Motehcuzoma sent great presents to the conquistadores and requested them not to come to Tenochtitlan. By stimulating their greed, his effect was obviously the opposite, and Cortes skillfully obtained from his men the formal request to direct them in a quest for gold, and they promised him 20 percent of the benefits, after the royal 20 percent was deducted. Cortes founded Veracruz, sent an envoy to the King of Spain with letters, and burnt the ships to prevent the men loyal to Diego Velazquez from returning to Cuba with the news that Cortes had stepped to the other side of the law. Now only the triumph could save him. With 1300 Totonacas allies from Cempoala, the 400 Spaniards interned into the jungle, towards Tlaxcala, a nation subjugated by the Aztecs that could be gained to their side, according to the Totonacas. The Tlaxcalans were divided, but the faction hostile to the Spaniards was defeated in battle, and several thousand Tlaxcalan warriors joined Cortes side. The Spaniards were applying the tactics learned at the war of Granada, use the divisions within the enemy to their favor, and capture the enemy leader, deciding later if it was more advantageous to release him, to keep him prisoner, or simply to kill him. The Indians, weakened by the European diseases and bitterly divided, facilitated the conquest of great empires by very few men in what constitutes one of the most amazing pages of history. After a stop at the ceremonial center of Cholula, where a terrible massacre took place, because the Tlaxcalans had several accounts to settle, the capital of the Empire, bigger than any European city of the time, awaited.

	action_a = {
		name = "EXCELLENT"
		command = { type = population which = 29 value = -30000 } #Tlaxcala
		command = { type = INF which = 29 value = 5000 } #Tlaxcala
	}
}
#(1519-1600) The conquest of Mexico, AI version
#by AlanC9 - modified by Fodoron
event = {
	id = 285156
	trigger = {
		ai = yes
		owned = { province = 29 data = -1 } #Tlaxcala
		exists = AZT
		NOT = { war = { country = AZT country = SPA } }
	}
	random = no
	country = SPA
	name = "EVENTNAME285156" #More Tlaxcalans join our army
	desc = "EVENTHIST285156"
	#-#AI only event representing the alliance of Tlaxcala and Hernando Cortes

	date = { day = 1 month = april year = 1519 }
	offset = 30
	deathdate = { day = 20 month = december year = 1600 }

	action_a = {
		name = "OK"
		command = { type = INF which = 29 value = 15000 } #Tlaxcala
		command = { type = CAV which = 29 value = 500 } #Tlaxcala
	}
}
#(1419-1600) The fall of Tenochtitlan
event = {
	id = 285157 #triggered by AZT_82004 A
	random = no
	country = SPA
	name = "EVENTNAME285157" #The fall of Tenochtitlan
	desc = "EVENTHIST285157"
	#-#When Hernando Cortes reached Tenochtitlan with 300 Spaniards and 3000 Tlaxcalans, he was received by Motehcuzoma. The Spaniards were horrified by the volume of the human sacrifices of the Aztecs, and overcome by greed over so much gold. Cortes demands on Motehcuzoma to abandon his pagan gods weakened his position as a god himself. Aware of his precarious position Cortes captured Motehcuzoma, but when news arrived that Panfilo de Narvaez had been sent by Diego Velazquez to capture him, he left Pedro de Alvarado in charge and went back with 80 men to Cempoala, where he half-defeated, half-convinced Narvaez army of 1500 men to join him, and then returned to Tenochtitlan with additional Tlaxcalan reinforcements. But in his absence Alvarado had managed to massacre half of the notables of the city, triggering a rebellion. Cortes exhorted Motehcuzoma to appease his subjects, but these killed him out of rage for being on the Spaniards side. Cortes understood that they had to retreat to Tlaxcala, but the secret nightly escape was discovered and 800 Spaniards and 5,000 Indian allies were killed, while the rest narrowly escaped, Cortes losing two fingers, in what was to be known as the Noche Triste (Sad Night), June 30, 1520. The time for diplomacy was gone. For a year Cortes sought new allies and reorganized and trained a new army, building ships to be transported and mounted in the lake, to siege and attack the water surrounded city, and in June 1521 he was back. In a month and a half the resistance was overcome, the city demolished, and the Empire won. Except for some guerrilla fighting in the mountains, the Aztecs bowed to their new master. When the Consejo de Indias learned of the conquest of the immensely rich empire, they dismissed Diego de Velazquez charges against Cortes.

	action_a = {
		name = "ACTIONNAME285157A" #An Empire is won
		command = { type = annex which = AZT }
	}
}
#(1419-1600) The Zapotecs become our clients
event = {
	id = 82003 #triggered by ZAP_82002 A
	random = no
	country = SPA
	name = "EVENTNAME82003" #The Zapotecs become our clients
	desc = "EVENTHIST82003"
	#-#The Zapotecs have agreed to put themselves under our protection. With our advisers firmly entrenched in their court, we will soon be able to bring them fully under our rule.

	action_a = {
		name = "EXCELLENT"
		command = { type = INF which = 29 value = 15000 } #Tlaxcala
		command = { type = vassal which = ZAP }
		command = { type = relation which = ZAP value = 150 }
		command = { type = alliance which = ZAP }
	}
}
#End of Spanish events dealing with the Aztec Empire and Zapotecs
#-----------------------------------------------------------------------------------------------

#(1492-1493) The Honorable Council of the Mesta
#by Malatesta and Fodoron with the help of the Spanish forum
event = {
	id = 285074
	random = no
	country = SPA
	name = "EVENTNAME285074" #The Honorable Council of the Mesta
	desc = "EVENTHIST285074"
	#-#The Mesta was an association of sheepholders created in Castile in 1273 by Alfonso X the Wise. Its origen was the use of lands near the borders with the Muslims during the Reconquista, as no crops could be grown due to constant hostilities, while sheep flocks could easily be hidden during the algaradas or Muslim attacks. The substitution of the original Churra race of sheeps by the higher quality Merina, introduced in Spain by the Marinid berbers, increased the wealth of the Mesta and the Crown income, and the Kings started a policy of protecting the Mesta at the expense of agriculture and forests. Sheep flocks in Central Spain required summer and winter pastures and free routes between them, and the Mesta herds had the right to drink from any water and eat from any land, paying for that priviledge a quantity decided by the Mesta. They could also cut forests, and no land could be fenced along their routes. This policy reached its peak with the Catholic Kings, when the oldest member of the Royal Council became also the president of the Mesta Council, and when the regulations of 1492 were stablished. The taxes over the rights of pass were reduced, but they were shifted from the local towns directly to the Crown. By then the Mesta controlled 125,000 km of routes and half a million hectares (over a million acres) of productive lands. It had its own judicial system and its own law enforcement agents and was perhaps the most important corporate organization in Medioeval Europe. As is the case with other nomad populations, the shephards of the Mesta were the best soldiers of Spain and constituted the main source of recruits for the elite Tercios. The Mesta was for a long time the main source of wealth for Castile, as its precious wool was exported to the North of Europe, but some consequences could not be foreseen, and the production of cereals started to decline. The Honorable Council of the Mesta will last until 1836, and even today many Mesta routes are protected forever from urban development to be enjoyed no longer by sheeps, but by weekend excursionists. As a curiosity, the word mustang derives from mesteo, or mesta animal.

	date = { day = 10 month = january year = 1492 }
	offset = 300
	deathdate = { day = 10 month = january year = 1493 }

	action_a = {
		name = "ACTIONNAME285074A" #Support the shepherds
		command = { type = provincetax which = 435 value = 1 } #Leon
		command = { type = provincetax which = 436 value = 1 } #Castilla
		command = { type = provincetax which = 439 value = 1 } #Toledo
		command = { type = provincetax which = 440 value = 1 } #Estramadura
		command = { type = domestic which = quality value = 1 }
		command = { type = domestic which = mercantilism value = 1 }
		command = { type = domestic which = aristocracy value = 1 }
		command = { type = land value = 500 }
		command = { type = infra value = -500 }
	}
	action_b = {
		name = "ACTIONNAME285074B" #Support the farmers
		command = { type = population which = 436 value = 500 } #Castilla
		command = { type = population which = 435 value = 500 } #Leon
		command = { type = population which = 439 value = 500 } #Toledo
		command = { type = population which = 440 value = 500 } #Estramadura
		command = { type = domestic which = serfdom value = 1 }
		command = { type = provincemanpower which = 435 value = 1 } #Leon
		command = { type = provincemanpower which = 436 value = 1 } #Castilla
		command = { type = provincemanpower which = 439 value = 1 } #Toledo
		command = { type = provincemanpower which = 440 value = 1 } #Estramadura
		command = { type = trade value = -500 }
		command = { type = merchants value = -3 }
	}
}

#(1492) Expulsion of the Spanish Jews
#by Fodoron
event = {
	id = 285044
	random = no
	country = SPA
	name = "EVENTNAME285044" #Expulsion of the Spanish Jews
	desc = "EVENTHIST285044"
	#-#Medieval Spain was unique in Western Europe for the diversity of its population. In addition to a large segment of Muslims, Spain had the single largest Jewish community in the world, with three hundred thousand souls. In the 14th Century, however, anti-Jewish attitudes were on the rise throughout Europe. In 1290, England expelled its Jews and France followed in 1306. Spain began to experience an increasing anti-Jewish sentiment. It exploded in the summer of 1391 with angry anti-Jewish riots with hundreds of deaths. These riots led to major forced conversions of Jews to Christianity. Unlike the remaining Jews, the converts were welcomed into a full participation in Spanish society and they would soon become leaders in government, science, business and the Church. Over the years the Old Christians saw these converted families as opportunists who secretly maintained the faith of their forefathers. It was a strong mixture of racial prejudice and jealousy against the converts that would stir-up the Spanish Inquisition to prosecute the minority of false-converts. On March 31, 1492, Isabel and Fernando signed the edict of expulsion of all Jews in their Kingdoms by July 31. They were allowed to sell their properties and take their valuables, and money in letters of payment, but no gold or silver. The Kings intended to force the conversion of most of them, and indeed many converted, raising the proportion of Jews converted along the century to two thirds of their original population. But many also chose to leave, their numbers still debated, but probably over 100,000, most of them from Castilla, Toledo, Andalucia, and Murcia. It was a popular measure probably intended to forge a national identity for Spain, and also due to the belief that the Jews were a bad influence to the converts. The Jews that went to Portugal, Navarra, Provence and Morocco, suffered prosecution, violence and new expulsions, and the Kings of Spain allowed the return of those willing to convert until 1499. Those that went to Italy and Constantinople fared better. The economic consequences of the expulsion were negative as the Jews paid increased taxes, lent money to Kings and nobles, and administered properties. Culturally it was an even greater loss.

	date = { day = 29 month = july year = 1492 }

	action_a = {
		name = "ACTIONNAME285044A" #Out with them
		command = { type = population which = 436 value = -1000 } #Castilla
		command = { type = population which = 438 value = -1000 } #Murcia
		command = { type = population which = 439 value = -5000 } #Toledo
		command = { type = population which = 443 value = -5000 } #Andalusia
		command = { type = treasury value = 200 } #Gold and communal properties seized
		command = { type = stability value = 1 }
		command = { type = revoltrisk which = 12 value = -2 }
		command = { type = provincetax which = 439 value = -1 } #Toledo
		command = { type = provincetax which = 443 value = -1 } #Andalusia
		command = { type = loansize which = 100 }
		command = { type = inflation value = 1 }
		command = { type = domestic which = innovative value = -1 }
		command = { type = ADM which = -2 value = 30 }
		command = { type = trade value = -2000 }
		command = { type = merchants value = -6 }
	}
	action_b = {
		name = "ACTIONNAME285044B" #They are beneficial to the country
		command = { type = stability value = -1 }
		command = { type = revoltrisk which = 12 value = 2 }
		command = { type = domestic which = innovative value = 1 }
		command = { type = ADM which = 1 value = 60 }
		command = { type = treasury value = 50 } #Jews offered gold to revert edict
		command = { type = sleepevent which = 260053 } #POR: The Spanish Jews Come to Portugal
		command = { type = sleepevent which = 326040 } #VEN: The Gheto
	}
}

#(1493-1535) The Columbian exchange
#by Fodoron
event = {
	id = 285126
	trigger = {
		OR = {
			owned = { province = 137 data = -1 } #Havana
			owned = { province = 138 data = -1 } #Moron
			owned = { province = 139 data = -1 } #Guantanamo
			owned = { province = 140 data = -1 } #Jamaica
			owned = { province = 142 data = -1 } #Tortuga
			owned = { province = 143 data = -1 } #Barahona
			owned = { province = 144 data = -1 } #Puerto Rico
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285126" #The Columbian exchange
	desc = "EVENTHIST285126"
	#-#Christopher Columbus's 1493 letter from Lisbon announcing the success of his voyage westward across the Atlantic Ocean quickly became one of the earliest 'best sellers' of European publishing. No less than eleven editions were published in 1493! They were issued across western Europe, in Spain, Italy, France, Switzerland, and the Netherlands. Six more editions were published in 1494-97. Everybody was eager to learn about the new lands across the sea, and the letters of Columbus and Amerigo Vespucci, the 1516 'De orbe novo decades' of Pedro Mrtir de Anglera, and the 1535 'Historia general de las Indias' of Gonzalo Fernndez de Oviedo, contributed to change the perception of the world that Europe had. But more profound changes were about to come. Already Columbus brought a pineapple to King Fernando in his first voyage, and they would be followed by maize and potatoes, that with a caloric yield per cultivated surface double to that of wheat, would trigger an unprecedented population growth. The Columbian exchange drastically altered both worlds, but at the time it also greatly contributed to the prestige of the Spanish monarchy, that after unifying two powerful countries, and expelling the Muslims from Western Europe, had discovered a New World.

	date = { day = 1 month = january year = 1493 }
	offset = 150
	deathdate = { day = 1 month = january year = 1535 }

	action_a = {
		name = "ACTIONNAME285126A" #Great reputation
		command = { type = vp value = 50 }
		command = { type = relation which = POR value = -10 }
		command = { type = relation which = VEN value = -10 }
		command = { type = relation which = BAY value = 50 }
		command = { type = relation which = BOH value = 50 }
		command = { type = relation which = BRA value = 50 }
		command = { type = relation which = BRE value = 50 }
		command = { type = relation which = BRI value = 50 }
		command = { type = relation which = BUR value = 50 }
		command = { type = relation which = DAN value = 50 }
		command = { type = relation which = ENG value = 50 }
		command = { type = relation which = FRA value = 50 }
		command = { type = relation which = FRI value = 50 }
		command = { type = relation which = GEL value = 50 }
		command = { type = relation which = GEN value = 50 }
		command = { type = relation which = HAB value = 50 }
		command = { type = relation which = HAU value = 50 }
		command = { type = relation which = HEL value = 50 }
		command = { type = relation which = HES value = 50 }
		command = { type = relation which = KLE value = 50 }
		command = { type = relation which = KOL value = 50 }
		command = { type = relation which = LOR value = 50 }
		command = { type = relation which = LUX value = 50 }
		command = { type = relation which = MAI value = 50 }
		command = { type = relation which = MAN value = 50 }
		command = { type = relation which = MEC value = 50 }
		command = { type = relation which = MLO value = 50 }
		command = { type = relation which = NAP value = 50 }
		command = { type = relation which = NAV value = 50 }
		command = { type = relation which = OLD value = 50 }
		command = { type = relation which = PAP value = 50 }
		command = { type = relation which = PFA value = 50 }
		command = { type = relation which = POM value = 50 }
		command = { type = relation which = HEL value = 50 }
		command = { type = relation which = PRO value = 50 }
		command = { type = relation which = SAC value = 50 }
		command = { type = relation which = SAV value = 50 }
		command = { type = relation which = SCO value = 50 }
		command = { type = relation which = SHL value = 50 }
		command = { type = relation which = STR value = 50 }
		command = { type = relation which = STT value = 50 }
		command = { type = relation which = SWE value = 50 }
		command = { type = relation which = TOS value = 50 }
		command = { type = relation which = TYR value = 50 }
		command = { type = relation which = WUR value = 50 }
		command = { type = badboy value = -2 }
	}
}

#-----------------------------------------------------------------------------------------------
#Spanish events for the conquest of the New World
#designed primarily for helping the AI and guiding the player

#(1493) Admiral of a New World
#by Fodoron
event = {
	id = 285077
	random = no
	country = SPA
	name = "EVENTNAME285077" #Admiral of a New World
	desc = "EVENTHIST285077"
	#-#On his first voyage, Columbus reached the Great Antilles, discovering Cuba and la Hispaniola (divided today in Haiti and Dominican Republic), were the natives were amiables. On December 24, 1492, his biggest ship, la Santa Maria, suffered damages beyond repair in la Hispaniola. Since there was not enough room for everybody to return, they constructed a fort with the ship's wood, called Fort Christmas, and forty men were left behind, with the promise of returning the following year. Columbus took some indians with him, together with fruits, plants, parrots, and gold. But another less innocuous exchange was taking place. The Europeans took with them smallpox and typhus to the New World, and from then on, wherever they went the plagues preceded them. About 50 percent of the natives in the New World died in the following decades, and possibly only 20 percent of the original population levels remained a century later. All the plagues suffered by Europe since the middle ages, concentrated in a single deathly wave that swept the entire continent. In exchange the Europeans brought a new disease to the Old World, syphilis. No women were allowed in the first expedition, and clearly Columbus sailors did not remain idle. Introduced by the Spanish sailors in Seville and Naples, the disease would be spread throughout Italy and the rest of Europe by the French armies of Charles VIII in his failed attempt to conquer Naples, being known in those days as the French disease. Columbus remained ignorant of having changed the history of mankind, and thinking only that he had found a better way to reach India, in his second voyage, he will command a big fleet with enough colonists, farm animals, seeds, and priests to establish a colony in la Hispaniola (Barahona and Tortuga). The first permanent European colony in the New World.

	date = { day = 29 month = may year = 1493 }

	action_a = {
		name = "ACTIONNAME285077A" #Let us colonize all this land
		command = { type = population which = 443 value = -500 } #Andalusia
		command = { type = population which = 393 value = -500 } #Napoli
		command = { type = treasury value = -20 }
		command = { type = colonists value = 3 }
	}
}
#(1501-1620) Able administrator
#by Fodoron
event = {
	id = 285078
	trigger = {
		owned = { province = 143 data = -1 } #Barahona
		NOT = { provincereligion = { province = 143 data = pagan } } #not a TP
	}
	random = no
	country = SPA
	name = "EVENTNAME285078" #Colonization of Barahona
	desc = "EVENTHIST285078"
	#-#The colonization of the New World started in the island of La Hispaniola, where Columbus returned in 1493 to discover that the first settlement, Fort Christmas, had been wiped out by natives. But Christopher and his brothers Diego and Bartolome were very bad administrators and were distrusted by the Spaniards for being foreigners. Quarrels and rebellions abounded, and by 1495 everybody in the colony wanted to return to Spain. The colony was a sink for money, and Columbus, aware that his promises of riches to the Kings have not been fulfilled, insisted in slaving natives and sending them to Seville. This was a legitimate trade for a Genoese, but the Kings influenced by the church had given orders that only natives that raised in arms against Spanish rule could be enslaved. Worried by all this problems, the Kings named Francisco Bobadilla new governor of La Hispaniola in 1500, but he went as far as to put Columbus in chains and send him back to Spain. The Kings, horrified, released him, and named Fray Nicolas de Ovando new governor. Ovando ruthlessly suppressed every rebellion from colonists and natives, killing all the indian caciques (chieftains). He then efficiently administrated the colony, reducing the crown tax to 20 percent, stimulating the productivity and attracting new colonists. Soon the colonist population soared and the island became a good source of income for Spain, and the base for the conquest of the neighboring island of Cuba (Havana, Moron and Guantanamo). By contrast the native population, decimated by diseases and having lost the will to live under European oppression, initiated a decline that will end in their extinction. In 1507, Fernando el Catolico will name Diego Colon, son of Christopher Columbus, new governor of La Hispaniola, in substitution of Ovando.

	date = { day = 13 month = march year = 1501 }
	offset = 1000
	deathdate = { day = 18 month = october year = 1620 }

	action_a = {
		name = "ACTIONNAME285078A" #Our colonies finally thrive
		command = { type = addcore which = 143 } #Barahona
		command = { type = population which = 143 value = 500 } #Barahona
		command = { type = treasury value = 50 }
		command = { type = INF which = 143 value = 1000 } #Barahona
		command = { type = warships which = 143 value = 1 } #Barahona
		command = { type = gainbuilding which = 143 value = bailiff } #Barahona
		command = { type = colonists value = 3 }
	}
}
#(1501-1620) Able administrator
event = {
	id = 285288
	trigger = {
		owned = { province = 142 data = -1 } #Tortuga
		NOT = { provincereligion = { province = 142 data = pagan } } #not a TP
	}
	random = no
	country = SPA
	name = "EVENTNAME285288" #Colonization of Tortuga
	desc = "EVENTHIST285078"
	#-#The colonization of the New World started in the island of La Hispaniola, where Columbus returned in 1493 to discover that the first settlement, Fort Christmas, had been wiped out by natives. But Christopher and his brothers Diego and Bartolome were very bad administrators and were distrusted by the Spaniards for being foreigners. Quarrels and rebellions abounded, and by 1495 everybody in the colony wanted to return to Spain. The colony was a sink for money, and Columbus, aware that his promises of riches to the Kings have not been fulfilled, insisted in slaving natives and sending them to Seville. This was a legitimate trade for a Genoese, but the Kings influenced by the church had given orders that only natives that raised in arms against Spanish rule could be enslaved. Worried by all this problems, the Kings named Francisco Bobadilla new governor of La Hispaniola in 1500, but he went as far as to put Columbus in chains and send him back to Spain. The Kings, horrified, released him, and named Fray Nicolas de Ovando new governor. Ovando ruthlessly suppressed every rebellion from colonists and natives, killing all the indian caciques (chieftains). He then efficiently administrated the colony, reducing the crown tax to 20 percent, stimulating the productivity and attracting new colonists. Soon the colonist population soared and the island became a good source of income for Spain, and the base for the conquest of the neighboring island of Cuba (Havana, Moron and Guantanamo). By contrast the native population, decimated by diseases and having lost the will to live under European oppression, initiated a decline that will end in their extinction. In 1507, Fernando el Catolico will name Diego Colon, son of Christopher Columbus, new governor of La Hispaniola, in substitution of Ovando.

	date = { day = 13 month = march year = 1501 }
	offset = 1000
	deathdate = { day = 18 month = october year = 1620 }

	action_a = {
		name = "ACTIONNAME285078A" #Our colonies finally thrive
		command = { type = addcore which = 142 } #Tortuga
		command = { type = population which = 142 value = 500 } #Tortuga
		command = { type = treasury value = 50 }
		command = { type = INF which = 142 value = 1000 } #Tortuga
		command = { type = warships which = 142 value = 1 } #Tortuga
		command = { type = gainbuilding which = 142 value = bailiff } #Tortuga
		command = { type = colonists value = 3 }
	}
}
#(1508-1820) Settlement of Puerto Rico
event = {
	id = 285313
	trigger = {
		owned = { province = 144 data = -1 }
		control = { province = 144 data = -1 }
		NOT = { provincereligion = { province = 144 data = pagan } } #not a TP
	}
	random = no
	country = SPA
	name = "EVENTNAME285313" #Settlement of Puerto Rico
	desc = "EVENTHIST285313"
	#-#The first colonists arrive at Puerto Rico.

	date = { day = 8 month = august year = 1508 }
	offset = 360
	deathdate = { year = 1820 }

	action_a = {
		name = "EXCELLENT"
		command = { type = addcore which = 144 } #Puerto Rico
		command = { type = population which = 144 value = 500 }
		command = { type = gainbuilding which = 144 value = bailiff } #Puerto Rico
	}
}
#(1510-1620) The pearl of the Caribbe
#by Fodoron
event = {
	id = 285079
	trigger = {
		owned = { province = 137 data = -1 } #Havana
		NOT = { provincereligion = { province = 137 data = pagan } } #not a TP
	}
	random = no
	country = SPA
	name = "EVENTNAME285079" #Colonization of Havana
	desc = "EVENTHIST285079"
	#-#In 1510, Diego Colon, governor of la Hispaniola, gave orders to Diego Velazquez de Cuellar to conquer the island of Cuba. A veteran of the Italian wars, with three hundred men, and accompanied by Fray Bartolome de las Casas, Diego Velazquez soon took possession of the island, founding several cities and becoming the first governor of the island. Under his rule, the island prospered, and would become three hundred years later the richest province of Spain. The prosperity of the colony and its central role in the shipping to Spain, soon will make it the target of the French corsairs. The first settlement in continental America, in 1511 in Darien (Isthmus), would still depart from la Hispaniola, but Cuba quickly took over the central role of exploration and colonization thanks to the capacity and ambition of Diego Velazquez. He ordered the colonization of Puerto Rico, and several exploration expeditions. The most famous of these would be the expedition of Hernando Cortes in 1519 to the coasts of the Gulf of Mexico. But this expedition soon escaped Velazquez control when Cortes decided to disembark in the coasts of Tlaxcala and going beyond his orders, attack the Tlaxcalans, a nation subjugated by the Aztecs.

	date = { day = 15 month = july year = 1510 }
	offset = 1000
	deathdate = { day = 22 month = november year = 1620 }

	action_a = {
		name = "ACTIONNAME285079A" #Our colonies thrive
		command = { type = addcore which = 137 } #Havana
		command = { type = population which = 137 value = 500 } #Havana
		command = { type = treasury value = 35 }
		command = { type = INF which = 137 value = 1000 } #Havana
		command = { type = warships which = 137 value = 1 } #Havana
		command = { type = gainbuilding which = 137 value = bailiff } #Havana
		command = { type = colonists value = 2 }
	}
}
#(1510-1620) The pearl of the Caribbe
event = {
	id = 285289
	trigger = {
		owned = { province = 138 data = -1 } #Moron
		NOT = { provincereligion = { province = 138 data = pagan } } #not a TP
	}
	random = no
	country = SPA
	name = "EVENTNAME285289" #Colonization of Moron
	desc = "EVENTHIST285079"
	#-#In 1510, Diego Colon, governor of la Hispaniola, gave orders to Diego Velazquez de Cuellar to conquer the island of Cuba. A veteran of the Italian wars, with three hundred men, and accompanied by Fray Bartolome de las Casas, Diego Velazquez soon took possession of the island, founding several cities and becoming the first governor of the island. Under his rule, the island prospered, and would become three hundred years later the richest province of Spain. The prosperity of the colony and its central role in the shipping to Spain, soon will make it the target of the French corsairs. The first settlement in continental America, in 1511 in Darien (Isthmus), would still depart from la Hispaniola, but Cuba quickly took over the central role of exploration and colonization thanks to the capacity and ambition of Diego Velazquez. He ordered the colonization of Puerto Rico, and several exploration expeditions. The most famous of these would be the expedition of Hernando Cortes in 1519 to the coasts of the Gulf of Mexico. But this expedition soon escaped Velazquez control when Cortes decided to disembark in the coasts of Tlaxcala and going beyond his orders, attack the Tlaxcalans, a nation subjugated by the Aztecs.

	date = { day = 15 month = july year = 1510 }
	offset = 1000
	deathdate = { day = 22 month = november year = 1620 }

	action_a = {
		name = "ACTIONNAME285079A" #Our colonies thrive
		command = { type = addcore which = 138 } #Moron
		command = { type = population which = 138 value = 500 } #Moron
		command = { type = treasury value = 35 }
		command = { type = INF which = 138 value = 1000 } #Moron
		command = { type = warships which = 138 value = 1 } #Moron
		command = { type = gainbuilding which = 138 value = bailiff } #Moron
		command = { type = colonists value = 2 }
	}
}
#(1510-1620) The pearl of the Caribbe
event = {
	id = 285290
	trigger = {
		owned = { province = 139 data = -1 } #Guantanamo
		NOT = { provincereligion = { province = 139 data = pagan } } #not a TP
	}
	random = no
	country = SPA
	name = "EVENTNAME285290" #Colonization of Guantanamo
	desc = "EVENTHIST285079"
	#-#In 1510, Diego Colon, governor of la Hispaniola, gave orders to Diego Velazquez de Cuellar to conquer the island of Cuba. A veteran of the Italian wars, with three hundred men, and accompanied by Fray Bartolome de las Casas, Diego Velazquez soon took possession of the island, founding several cities and becoming the first governor of the island. Under his rule, the island prospered, and would become three hundred years later the richest province of Spain. The prosperity of the colony and its central role in the shipping to Spain, soon will make it the target of the French corsairs. The first settlement in continental America, in 1511 in Darien (Isthmus), would still depart from la Hispaniola, but Cuba quickly took over the central role of exploration and colonization thanks to the capacity and ambition of Diego Velazquez. He ordered the colonization of Puerto Rico, and several exploration expeditions. The most famous of these would be the expedition of Hernando Cortes in 1519 to the coasts of the Gulf of Mexico. But this expedition soon escaped Velazquez control when Cortes decided to disembark in the coasts of Tlaxcala and going beyond his orders, attack the Tlaxcalans, a nation subjugated by the Aztecs.

	date = { day = 15 month = july year = 1510 }
	offset = 1000
	deathdate = { day = 22 month = november year = 1620 }

	action_a = {
		name = "ACTIONNAME285079A" #Our colonies thrive
		command = { type = addcore which = 139 } #Guantanamo
		command = { type = population which = 139 value = 500 } #Guantanamo
		command = { type = treasury value = 35 }
		command = { type = INF which = 139 value = 1000 } #Guantanamo
		command = { type = warships which = 139 value = 1 } #Guantanamo
		command = { type = gainbuilding which = 139 value = bailiff } #Guantanamo
		command = { type = colonists value = 2 }
	}
}
#(1513-1620) A difficult life in the Isthmus
#by Fodoron
event = {
	id = 285080
	trigger = {
		owned = { province = 39 data = -1 } #Isthmus
		NOT = { provincereligion = { province = 39 data = pagan } } #not a TP
	}
	random = no
	country = SPA
	name = "EVENTNAME285080" #A difficult life in the Isthmus
	desc = "EVENTHIST285080"
	#-#The first attempt at a continental settlement, at the Eastern side of the Gulf of Darien (Cartagena), failed, and Vasco Nuez de Balboa suggested the Western side (Isthmus). From there he took the expedition that discovered the Pacific Ocean in 1513. Balboa was popular, but run into problems with the authorities for expelling the inefficient Major of the city. A new administrator was sent from Spain, Pedro Arias de Avila, a 70 year old veteran commander in the wars of Granada and Africa. Cruel and unscrupulous, he was jealous of Balboa and although initially forced to declare him innocent, he would later bring him again to trial, and without possibility of defense or appeal, condem him and have him executed. The authorities were displeased and named a new governor, but he died on the same day he arrived. Since the living conditions in the Gulf of Darien region were appalling, and the diseases made prey on the colonists, Pedro Arias founded in 1519 the city of Panama, the first port in the Pacific, and moved there the capital in 1524. The colonists of Isthmus had received tales of a fabulous country towards the South, named Biru, with cities made of gold. Two adventurers, Francisco Pizarro and Diego Almagro made plans for the conquest of such place, sailing South from Panama. Pedro Arias bought a share in the society, but having lost confidence in the expedition, due to the initial failures, he sold his part in 1526. The same year he was finally deposed.

	date = { day = 8 month = april year = 1513 }
	offset = 2000
	deathdate = { day = 20 month = december year = 1620 }

	action_a = {
		name = "ACTIONNAME285080A" #This is no place for Christians
		command = { type = addcore which = 39 } #Isthmus
		command = { type = population which = 39 value = -100 } #Isthmus
		command = { type = treasury value = -40 }
		command = { type = warships which = 39 value = 1 } #Isthmus
		command = { type = colonists value = -1 }
	}
}
#End of Spanish events for the conquest of the New World
#-----------------------------------------------------------------------------------------------

#(1493-1520) The treaty of Barcelona (for SPA)
event = {
	id = 7137
	trigger = {
		event = 12145
		NOT = { event = 7136 } #The treaty of Barcelona (for ARG)
		owned = { province = 426 data = FRA }
		NOT = { exists = ARG }
	}
	random = no
	country = SPA
	name = "EVENTNAME7136" #The Treaty of Barcelona
	desc = "EVENTHIST7136"
	#-#During the Civil War, the King Joan II had ceded the Roussillon and Cerdanya to the King of France, in exchange of military help. The treaty established a mortgage of 300.000 ducats for these territories. In 1493, the King Ferran II decided to recover them and to pay the price.

	date = { day = 1 month = march year = 1493 }
	offset = 120
	deathdate = { day = 1 month = march year = 1520 }

	action_a = {
		name = "ACTIONNAME7136A" #Let's recover our lands
		command = { type = treasury value = -300 }
		command = { type = stability value = 1 }
		command = { type = trigger which = 12147 } #FRA: The Treaty of Barcelona
	}
	action_b = {
		name = "ACTIONNAME7136B" #It's not worth the money
		command = { type = stability value = -2 }
	}
}
#(1493-1520) France refuses (for SPA)
event = {
	id = 7139 #triggered by FRA_12147 B
	random = no
	country = SPA
	name = "EVENTNAME7138" #France has refused
	desc = "EVENTHIST7138"
	#-#France has refused our payment for the Roussillon and will not return our lands.

	action_a = {
		name = "ACTIONNAME7138A" #Traitors!!
		command = { type = treasury value = 300 }
		command = { type = casusbelli which = FRA value = 36 }
	}
}

#-----------------------------------------------------------------------------------------------
#North African policy of Spain Sequence

#(1495-1499) Cisneros
#by Fodoron
event = {
	id = 285116
	random = no
	country = SPA
	name = "EVENTNAME285116" #Cardinal Gonzalo Jimnez Cisneros
	desc = "EVENTHIST285116"
	#-#On the recommendation of the powerful Cardinal Mendoza, Franciscan Friar Cisneros was appointed as confessor to Queen Isabel after the conquest of Granada. He soon obtained all her confidence, and in 1495, he was appointed bishop of Toledo at the death of Mendoza. The post included a chancellorship of Castile, that he only accepted under orders of the Pope. He soon became one of the most influential men in the Kingdom, with the capacity to influence royal policies. The Kings had promised the Muslims of Granada that they could keep their religion and opted for a slow conversion process that could take generations. Cisneros had his own ideas about that.

	date = { day = 11 month = january year = 1495 }
	offset = 300
	deathdate = { day = 1 month = january year = 1499 }

	action_a = {
		name = "ACTIONNAME285116A" #Promote him as Chancellor
		command = { type = ADM which = 1 value = 24 }
		command = { type = relation which = PAP value = 50 }
	}
	action_b = {
		name = "ACTIONNAME285116B" #He is not suited
		command = { type = relation which = PAP value = -10 }
		command = { type = sleepevent which = 3150 } #SPA: Forced conversion of the Moors
		command = { type = sleepevent which = 285117 } #SPA: The University of Alcal
	}
}
#(1499-1530) Revolt of the Mudejars
#by Paradox modified by Idontlikeforms, Sturmvogel, Garbon and Fodoron
event = {
	id = 3150
	trigger = {
		owned = { province = 444 data = SPA }
		atwar = no
		provincereligion = { province = 444 data = sunni } #Must be Muslim to revolt
	}
	random = no
	country = SPA
	name = "EVENTNAME3150" #Revolt of the Mudejars
	desc = "EVENTHIST3150"
	#-#With the conquest of Granada, its inhabitants became Mudejars, Muslim subjects of the Kings. By the terms of the peace agreement they were permitted to retain their freedom of worship and their new rulers were permitted to attempt to peaceably convert them. When the Catholic Kings returned to Granada in 1499, they could see that the conversion program was going nowhere, and authorized Cisneros to take charge. He started by confiscating Muslim books and promoting the semi-forced conversion of a subgroup of Muslims, the Helches, descendants of Christians that had been Islamized for generations. By Christmas 1499, the Muslims rebelled in the city and the rebellion quickly spread throughout the province.

	date = { day = 1 month = december year = 1499 }
	offset = 30
	deathdate = { day = 29 month = december year = 1530 }

	action_a = {
		name = "ACTIONNAME3150A" #Attempt to convert the Mudejars
		command = { type = revolt which = 444 } #Granada
		command = { type = revolt which = 444 } #Granada
	}
	action_b = {
		name = "ACTIONNAME3150B" #Leave the Mudejars be
		command = { type = domestic which = INNOVATIVE value = 1 }
		command = { type = domestic which = centralization value = -2 }
		command = { type = stability value = -2 }
		command = { type = sleepevent which = 285219 } #SPA: Forced conversion of the Mudejars
	}
}
#(1499) Universidad de Alcal
#by Fodoron
event = {
	id = 285117
	random = no
	country = SPA
	name = "EVENTNAME285117" #The University of Alcal
	desc = "EVENTHIST285117"
	#-#On April 13, 1499, Pope Alexander VI granted Cisneros the privilege of founding in Alcal a college, that would become the University of Alcal. He soon recruited the best professors available from all over Europe, and started his personal project at his own expense: the creation of the first polyglot Bible, in Hebrew, Greek, Latin and Chaldaic. The work was in six large volumes, the last one made up of dictionaries and grammars for the different languages. Six hundred copies were issued, and found their way to the principal libraries of Europe, where they had considerable influence on subsequent editions of the Bible. Meanwhile, the University and the city around it developed. The University of Alcal (Complutensis, from the Latin name of Alcal, Complutum) would soon become one of the main European universities and the main focus of intellectual activity in Spain.

	date = { day = 12 month = april year = 1499 }

	action_a = {
		name = "GREAT"
		command = { type = domestic which = innovative value = 1 }
		command = { type = infra value = 50 }
	}
}
#(1502-1530) Forced conversion of the Mudejars
#by Sturmvogel, Garbon and Fodoron
event = {
	id = 285219
	trigger = {
		event = 3150
		owned = { province = 444 data = SPA }
		control = { province = 444 data = SPA }
		atwar = no
		provincereligion = { province = 444 data = sunni } #Must be Muslim to convert
	}
	random = no
	country = SPA
	name = "EVENTNAME285219" #Forced conversion of the Mudejars
	desc = "EVENTHIST285219"
	#-#When the rebellion was put down in 1501, the Kings had the excuse to break the peace agreements and declared the forced conversion of all the Mudejars in their Kingdom or exile. Most opted to convert, becoming Moriscos or New Christians. They were allowed to preserve their customs and so peace was restored.

	date = { day = 19 month = april year = 1502 }
	offset = 30
	deathdate = { day = 29 month = december year = 1530 }

	action_a = {
		name = "ACTIONNAME285219A" #Expel all those who won't convert
		command = { type = domestic which = INNOVATIVE value = -1 }
		command = { type = population which = 444 value = -2000 } #Granada
		command = { type = provincereligion which = 444 value = catholic } #Granada
		command = { type = provincereligion which = 445 value = catholic } #Gibraltar
		command = { type = stability value = 1 }
		command = { type = trigger which = 332014 } #TLE: Muslims flee Spain
		command = { type = trigger which = 3654 } #SUS: Moor Refugees from Al-Andalus
		command = { type = trigger which = 3652 } #ALD: Moor Refugees from Al-Andalus
		command = { type = trigger which = 3657 } #MOR: Moor Refugees from Al-Andalus
	}
}
#(1504) The testament of Isabel
#by Fodoron
event = {
	id = 285118
	random = no
	country = SPA
	name = "EVENTNAME285118" #The testament of Isabel
	desc = "EVENTHIST285118"
	#-#On November 26, 1504 Isabel died, after leaving the Kingdom to her daughter Juana, but entrusting the government to her husband Fernando in case she was incapacitated, as she showed mental instability. The Kingdom got split between partisans and opponents of Fernando. The King of Aragon decided to leave Castile, even though the new Kings, Felipe I and Juana, had not arrived yet from Flanders. But when Felipe died soon after his arrival, Cisneros became the Regent of Castile with the goal of obtaining the return of the King. Fernando, King of Aragon, became then Regent of Castile in the name of his now mad daughter, and rewarded Cisneros with the Cardinalate. In her testament, Isabel had asked her heirs not to abandon the conquest of Africa. The Kings of Castile had reclaimed their right to the integration of Mauritania Tingitana (then Fez and Tlemcen) since Alfonso XI because it was part of the Hispanian diocese, and Tangier had been a Visigothic province. Already Melilla had been occupied by the Duke of Medina-Sidonia in 1497. The question was if embarked as she was in the conquest of America and Italy, Spain could afford to conquer also North Africa. Cisneros wanted to pursue Isabel's wishes, while Fernando was more practical.

	date = { day = 12 month = october year = 1504 }
	offset = 10
	deathdate = { day = 26 month = november year = 1504 }

	action_a = {
		name = "ACTIONNAME285118A" #Prioritize America and Italy
		command = { type = land value = 300 } #resources more effective
		command = { type = relation which = PAP value = -10 }
		command = { type = sleepevent which = 285119 } #SPA: The conquest of Mazalquivir and Oran
	}
	action_b = {
		name = "ACTIONNAME285118B" #We can conquer Italy, America and North Africa
		command = { type = land value = 100 }
		command = { type = relation which = PAP value = 50 }
		command = { type = relation which = MOR value = -50 }
		command = { type = relation which = TLE value = -50 }
	}
}
#(1505-1509) The conquest of Mazalquivir and Oran
#by Fodoron
event = {
	id = 285119
	trigger = {
		exists = TLE
		event = 285117 #SPA: The University of Alcal (Cisneros in power)
		NOT = { vassal = { country = SPA country = TLE } }
		NOT = { vassal = { country = TLE country = SPA } }
		}
	random = no
	country = SPA
	name = "EVENTNAME285119" #The conquest of Mazalquivir and Oran
	desc = "EVENTHIST285119"
	#-#Before leaving Castile, Fernando gave Cisneros permission to attack Mazalquivir (Mers-el-Kebir), the port of Oran (Wahran). His motivation was the security of his Italian possessions from Barbary attacks. The Spanish expedition, with the costs advanced by Cisneros and under naval command of Ramn de Cardona, and land command of the Alcaide de los Donceles captured the fortress after a heavy bombardment. But Mazalquivir was difficult to hold, as it lacked water and had to be provisioned by dangerous sorties or by friendly tribes. After the return of Fernando, Cisneros lobbied indefatigably for another expedition to Oran. Fernando, who owned his post as Regent of Castile to him, agreed when Cisneros offered to finance the expedition. Command of the expedition was entrusted to Pedro Navarro, and it was carried out under the direct supervision of Cisneros, and under his personal banner. The Spaniards landed an army of over 20,000 men and besieged the city. Navarro soon blew the walls with his mines and heavy artillery bombardment, and in the assault the Spaniards inflicted 4000 casualties in the enemy, and conquered the city. Cisneros wanted to push the conquest inland, but Navarro, under orders from the King, refused. For almost 300 years, Oran and Mazalquivir would remain in Spanish hands.

	date = { day = 10 month = september year = 1505 }
	offset = 100
	deathdate = { day = 26 month = november year = 1509 }

	action_a = {
		name = "ACTIONNAME285119A" #Free war, send the troops
		command = { type = INF which = 438 value = 8000 }
		command = { type = CAV which = 438 value = 2000 }
		command = { type = ART which = 438 value = 30 }
		command = { type = galleys which = 438 value = 5 }
		command = { type = relation which = PAP value = 25 }
		command = { type = war which = TLE } #Tlemcen
	}
	action_b = {
		name = "ACTIONNAME285119B" #We have got our hands full
		command = { type = relation which = MOR value = 50 }
		command = { type = relation which = TLE value = 50 }
	}
}
#(1509-1551) The conquest of Bugia and Tripoli (Tunis version)
#by Fodoron
event = {
	id = 285120
	trigger = {
		event = 285117 #SPA: The University of Alcal (Cisneros was in power)
		owned = { province = 734 data = -1 } #Orania
		NOT = {
			event = 285121 #SPA: The conquest of Bugia and Tripoli (Tripoli version)
			war = { country = TLE country = SPA }
			vassal = { country = SPA country = TUN }
			vassal = { country = SPA country = TLE }
			vassal = { country = TLE country = SPA }
			exists = TRI
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285120" #The conquest of Bugia and Tripoli
	desc = "EVENTHIST285120"
	#-#While Cisneros was received as a hero in Spain, Pedro Navarro was left on command of Oran, and in the next season he attacked Bugia (Bjaa), in the Eastern side of Tlemcen. Navarro disembarked 5,000 men and a train of artillery, and after defeating a far more numerous Berber army, conquered the city sacking it. Since it was still early in the season, Navarro decided to attack Tripoli. An army of 14,000 men was prepared. The second Duke of Alba, Garca de Toledo, son of the conqueror of Navarre, and father of the famous third Duke of Alba, took command of the expedition. The city, the strongest in the campaign, was taken by assault, with over 5,000 casualties between the defenders. Immediately Navarro and Alba went to Djerba with the intention of capturing the island. After landing, they were ambushed in an oasis and 3,000 soldiers and the Duke of Alba were killed. Navarro returned to Tripoli. The Zayyanid sultan of Tlemcen, Abu Abdallah Muhammad VIII, worried by the continuous defeats decided to become a vassal of Spain in 1510.

	date = { day = 26 month = november year = 1509 }
	offset = 100
	deathdate = { day = 14 month = august year = 1551 }

	action_a = {
		name = "ACTIONNAME285120A" #Conquer North Africa
		command = { type = stability value = 2 }
		command = { type = relation which = PAP value = 50 }
		command = { type = addcore which = 740 } #Tripolitania
		command = { type = vassal which = TLE } #Tlemcen
		command = { type = war which = TUN } #Tunis
		command = { type = trigger which = 332001 } #TLE: The Spaniards are too strong
		command = { type = cedeprovince which = TLE value = 736 } #Aures
		command = { type = cedeprovince which = TLE value = 737 } #Al-Djazar
		command = { type = vp value = 50}
	}
	action_b = {
		name = "ACTIONNAME285120B" #Time to stop
		command = { type = stability value = 1 }
		command = { type = relation which = PAP value = -10 }
		command = { type = vp value = -5}
	}
}
#(1509-1551) The conquest of Bugia and Tripoli (Tripoli version)
#by Fodoron
event = {
	id = 285121
	trigger = {
		event = 285117 #SPA: The University of Alcal (Cisneros was in power)
		owned = { province = 734 data = -1 } #Orania
		exists = TRI
		NOT = {
			event = 285120 #SPA: The conquest of Bugia and Tripoli (Tunis version)
			war = { country = TLE country = SPA }
			vassal = { country = SPA country = TRI }
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285120" #The conquest of Bugia and Tripoli
	desc = "EVENTHIST285120"
	#-#While Cisneros was received as a hero in Spain, Pedro Navarro was left on command of Oran, and in the next season he attacked Bugia (Bjaa), in the Eastern side of Tlemcen. Navarro disembarked 5,000 men and a train of artillery, and after defeating a far more numerous Berber army, conquered the city sacking it. Since it was still early in the season, Navarro decided to attack Tripoli. An army of 14,000 men was prepared. The second Duke of Alba, Garca de Toledo, son of the conqueror of Navarre, and father of the famous third Duke of Alba, took command of the expedition. The city, the strongest in the campaign, was taken by assault, with over 5,000 casualties between the defenders. Immediately Navarro and Alba went to Djerba with the intention of capturing the island. After landing, they were ambushed in an oasis and 3,000 soldiers and the Duke of Alba were killed. Navarro returned to Tripoli. The Zayyanid sultan of Tlemcen, Abu Abdallah Muhammad VIII, worried by the continuous defeats decided to become a vassal of Spain in 1510.

	date = { day = 26 month = november year = 1509 }
	offset = 100
	deathdate = { day = 14 month = august year = 1551 }

	action_a = {
		name = "ACTIONNAME285120A" #Conquer North Africa
		command = { type = stability value = 2 }
		command = { type = relation which = PAP value = 50 }
		command = { type = addcore which = 740 } #Tripolitania
		command = { type = vassal which = TLE } #Tlemcen
		command = { type = war which = TRI } #Tripoli
		command = { type = trigger which = 332001 } #TLE: The Spaniards are too strong
		command = { type = cedeprovince which = TLE value = 736 } #Aures
		command = { type = cedeprovince which = TLE value = 737 } #Al-Djazar
		command = { type = vp value = 50}
	}
	action_b = {
		name = "ACTIONNAME285120B" #Time to stop
		command = { type = stability value = 1 }
		command = { type = relation which = PAP value = -10 }
		command = { type = vp value = -5}
	}
}
#(1510-1543) The Barbarossa
#by Fodoron
event = {
	id = 285122
	trigger = {
		vassal = { country = SPA country = TLE }
		owned = { province = 734 data = -1 } #Orania
		owned = { province = 737 data = TLE } #Al Djazair
		NOT = {
			event = 51024 #TLE: Arudj and Khayr ad-Din Barbarossa
			event = 51025 #TLE: Arudj and Khayr ad-Din Barbarossa
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285122" #The Barbarossa
	desc = "EVENTHIST285122"
	#-#Fernando had agreed to Cisneros's policy of North African expansion to provide an alternative route to Sicily, and to squash piracy in the Barbary coast. However the conquest of isolated presidios (fortresses) in the coast had the exact opposite effect. Under the pressure of Spain, the authority of the Zayyanid rulers of Tlemcen was weakened, and pirates became independent and more active all along the coast. A Turkish pirate of name Aruj, who had become famous, received permission from the Hafsid sultan of Tunis to use the island of Djerba (Gelves) as a base, and he captured Jijelli in 1514 and took over Algiers in 1516 when he defeated the Spaniards. He then killed the local ruler and proclaimed himself sultan. He was known as Baba Aruj, or father Aruj. This was translated by the Spaniards as Barbarroja (Barbarossa in Italian, or Red beard). He became the nightmare of the Spaniards. In 1517 he supported a rebellion in Tlemcen, taking over it, but he was driven out by the Spaniards and killed in 1518. However the balance of power in Tlemcen was shifting towards Algiers, that continued independent under the leadership of Aruj's brother, Khayr ad-Din Barbarossa, who sought the help of the Ottoman Empire.

	date = { day = 1 month = july year = 1510 }
	offset = 100
	deathdate = { day = 1 month = january year = 1543 }

	action_a = {
		name = "ACTIONNAME285122A" #Curse them
		command = { type = stability value = -1 }
		command = { type = trigger which = 51024 } #TLE: Arudj and Khayr ad-Din Barbarossa
		command = { type = relation which = TLE value = 100 }
	}
}
#(1523-1798) Generous offer to the Hospitallers (The Knights don't exist)
#by Fodoron
event = {
	id = 285123
	trigger = {
		owned = { province = 819 data = -1 } #Malta
		control = { province = 819 data = -1 } #Malta
		NOT = { exists = KNI }
	}
	random = no
	country = SPA
	name = "EVENTNAME285123" #Generous offer to the Hospitallers
	desc = "EVENTHIST285123"
	#-#When the Order of St. John was expelled from Rhodes in 1523, it underwent a crisis. Their possessions were being confiscated all over Europe, by both Catholic and Protestant rulers, their income was shrinking and their recruits stopped coming. They desperately needed a base, preferably by reconquering Rhodes, otherwise an island in the Aegean, but no one would help and Venice actively opposed them. Europe was at war and there was no place for their neutrality. The Emperor Carlos however came up with a master idea. He offered Malta to the Hospitallers. Malta was difficult to defend from the growing Ottoman power, but the Knights were a tough breed. They would give their lives defending his shipping lines to Sicily. In 1524 the Hospitallers sent a commission to Malta. Their report was very negative. The island could not sustain itself and the defences were very poor. Then Carlos decided to include Tripoli as part of an all or nothing deal. The Knights thought even less of Tripoli. They did not have the resources to upgrade its defenses. But having no other option, the Chapter General decided in 1527 to accept the offer despite the opposition of the French Langues. They still had hopes of recovering Rhodes, but in 1530 they gave up and moved to Malta, taking possession also of Tripoli. From then on, the Spaniards and the Knights of St. John would fight their battles in North Africa together.

	date = { day = 0 month = january year = 1523 }
	offset = 100
	deathdate = { day = 9 month = june year = 1798 }

	action_a = {
		name = "ACTIONNAME285123A" #They will defend Malta
		command = { type = stability value = 1 }
		command = { type = removecore which = 819 } #Malta
		command = { type = remove_countryculture which = maltese }
		command = { type = independence which = KNI }
		command = { type = badboy value = -2 }
		command = { type = ADM which = 1 value = 48 }
		command = { type = relation which = PAP value = 50 }
		command = { type = relation which = TUR value = -50 }
		command = { type = relation which = VEN value = -25 }
		command = { type = relation which = ALD value = -50 }
	}
	action_b = {
		name = "ACTIONNAME285123B" #We don't need them
		command = { type = fortress which = 819 value = -1 } #Malta is exposed to attacks
	}
}
#(1523-1798) Generous offer to the Hospitallers (donation of Malta)
#by Fodoron
event = {
	id = 285124 #triggered by KNI_201000 A
	trigger = {
		owned = { province = 819 data = -1 } #Malta
		control = { province = 819 data = -1 } #Malta
	}
	random = no
	country = SPA
	name = "EVENTNAME285123" #Generous offer to the Hospitallers
	desc = "EVENTHIST285123"
	#-#When the Order of St. John was expelled from Rhodes in 1523, it underwent a crisis. Their possessions were being confiscated all over Europe, by both Catholic and Protestant rulers, their income was shrinking and their recruits stopped coming. They desperately needed a base, preferably by reconquering Rhodes, otherwise an island in the Aegean, but no one would help and Venice actively opposed them. Europe was at war and there was no place for their neutrality. The Emperor Carlos however came up with a master idea. He offered Malta to the Hospitallers. Malta was difficult to defend from the growing Ottoman power, but the Knights were a tough breed. They would give their lives defending his shipping lines to Sicily. In 1524 the Hospitallers sent a commission to Malta. Their report was very negative. The island could not sustain itself and the defences were very poor. Then Carlos decided to include Tripoli as part of an all or nothing deal. The Knights thought even less of Tripoli. They did not have the resources to upgrade its defenses. But having no other option, the Chapter General decided in 1527 to accept the offer despite the opposition of the French Langues. They still had hopes of recovering Rhodes, but in 1530 they gave up and moved to Malta, taking possession also of Tripoli. From then on, the Spaniards and the Knights of St. John would fight their battles in North Africa together.

	action_a = {
		name = "ACTIONNAME285123A" #They will defend Malta
		command = { type = remove_countryculture which = maltese }
		command = { type = removecore which = 819 } #Malta
		command = { type = cedeprovince which = KNI value = 819 } #Malta
		command = { type = badboy value = -1 }
		command = { type = ADM which = 1 value = 48 }
		command = { type = vassal which = KNI }
		command = { type = trigger which = 24001 } #KNI: The Order of St. John is offered Malta
		command = { type = relation which = PAP value = 50 }
		command = { type = relation which = TUR value = -50 }
		command = { type = relation which = VEN value = -25 }
		command = { type = relation which = ALD value = -50 }
		command = { type = sleepevent which = 285123 } #SPA: Generous offer to the Hospitallers
	}
	action_b = {
		name = "ACTIONNAME285123B" #We don't need them
		command = { type = fortress which = 819 value = -1 } #Malta is exposed to attacks
		command = { type = sleepevent which = 285123 } #SPA: Generous offer to the Hospitallers
	}
}
#(1523-1551) Generous offer to the Hospitallers (donation of Tripoli)
#by Fodoron
event = {
	id = 285125
	trigger = {
		owned = { province = 740 data = -1 } #Tripolitania
		control = { province = 740 data = -1 } #Tripolitania
		exists = KNI
		NOT = { 
			war = { country = KNI country = SPA } 
			core = { province = 819 data = -1 } #Malta donated
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285123" #Generous offer to the Hospitallers
	desc = "EVENTHIST285123"
	#-#When the Order of St. John was expelled from Rhodes in 1523, it underwent a crisis. Their possessions were being confiscated all over Europe, by both Catholic and Protestant rulers, their income was shrinking and their recruits stopped coming. They desperately needed a base, preferably by reconquering Rhodes, otherwise an island in the Aegean, but no one would help and Venice actively opposed them. Europe was at war and there was no place for their neutrality. The Emperor Carlos however came up with a master idea. He offered Malta to the Hospitallers. Malta was difficult to defend from the growing Ottoman power, but the Knights were a tough breed. They would give their lives defending his shipping lines to Sicily. In 1524 the Hospitallers sent a commission to Malta. Their report was very negative. The island could not sustain itself and the defences were very poor. Then Carlos decided to include Tripoli as part of an all or nothing deal. The Knights thought even less of Tripoli. They did not have the resources to upgrade its defenses. But having no other option, the Chapter General decided in 1527 to accept the offer despite the opposition of the French Langues. They still had hopes of recovering Rhodes, but in 1530 they gave up and moved to Malta, taking possession also of Tripoli. From then on, the Spaniards and the Knights of St. John would fight their battles in North Africa together.

	date = { day = 0 month = january year = 1523 }
	offset = 100
	deathdate = { day = 14 month = august year = 1551 }

	action_a = {
		name = "ACTIONNAME285125A" #They will defend Tripoli
		command = { type = removecore_national which = 740 } #Tripolitania
		command = { type = cedeprovince which = KNI value = 740 } #Tripolitania
		command = { type = ADM which = 1 value = 48 }
		command = { type = trigger which = 24003 } #KNI: We take possession of Tripoli
		command = { type = sleepevent which = 285138 } #SPA: Tripoli is lost
		command = { type = sleepevent which = 285268 } #SPA: Tripoli is pacified
	}
	action_b = {
		name = "ACTIONNAME285123B" #We don't need them
		command = { type = province_revoltrisk which = 740 value = 48 } #Tripolitania
	}
}
#(1523-1640) The great siege of Malta
#by Fodoron
event = {
	id = 285127
	trigger = {
		war = { country = KNI country = TUR }
		NOT = { war = { country = KNI country = SPA } }
		NOT = {
			core = { province = 819 data = -1 } #Malta donated
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285127" #The great siege of Malta
	desc = "EVENTHIST285127"
	#-#It was just a matter of time before the Ottomans attacked Malta. In May 1565, a powerful fleet from the Ottomans and their allies the Barbary pirates, arrived to the island and landed an army of 40,000. Against them were 540 knights, 400 Spaniards and 4,000 Maltese. Fort St. Elmo lasted 5 weeks of furious fights until almost all its defenders were killed. By then 600 Spaniards from Sicily had arrived to the city. The fighting continued all summer taking the lives of 5000 defenders with the Turkish loses three times higher, including the famous pirate Dragut. In early September, when the defenders were at their last resistance, help from Spain finally arrived under command of lvaro de Bazn and Garca de Toledo. The Turks, low on morale, panicked and abandoned the island.

	date = { day = 0 month = january year = 1523 }
	offset = 100
	deathdate = { day = 0 month = january year = 1640 }

	action_a = {
		name = "ACTIONNAME285127A" #Help the Knights
		command = { type = trigger which = 201011 } #KNI: Spanish help
		command = { type = trigger which = 285150 } #SPA: Tercios del mar
		command = { type = treasury value = -100 }
	}
	action_b = {
		name = "ACTIONNAME285127B" #They should solve their own problems
		command = { type = trigger which = 201012 } #KNI: Spain refuses to help
		command = { type = relation which = KNI value = -50 }
	}
}
#(1523-1640) Tercios del mar
#by Fodoron
event = {
	id = 285150 #triggered by SPA_285117 A
	random = no
	country = SPA
	name = "EVENTNAME285150" #Tercios del mar
	desc = "EVENTHIST285150"
	#-#Spain was the first nation in the world to create a permanent specific naval infantry unit in 1537. This was the Old Company of the Sea of Naples composed by harquebusiers to fight on board of galleys. In the winter of 1564, spies informed of a powerful Ottoman fleet being readied in Constantinople. On May 18, 1565 their target is revealed when the Janissaries land in Malta. Already two weeks before, lvaro de Bazn had gone from the strait to Barcelona to embark 4,000 soldiers. The Mediterranean galleys of Gil de Andrade joined him at Palams, and 1.500 more soldiers were embarked in Genoa. On July 20, they arrived to Naples to embark more forces, and they were in Messina on August 5, for the final assembly with further auxiliary forces. Finally on August 25, the Viceroy of Sicily, Garca de Toledo, gave the order to depart, arriving to Malta on September 7, forcing the Ottomans to lift their siege on the exact same day they had scheduled their final full out assault on the few defenders left alive. Had they arrived one day later, Malta would have been lost. It was clear to Felipe II that a reaction time of four months was not acceptable, and that Spain could not project her power far away unless a permanent army capable of landing and conducting battles was assigned to the Navy and could be quickly deployed. So in February 1566 he created the Tercio de la Armada del Mar Oceano, or Tercio of the Navy of the Ocean Sea, also known as Tercio de Figueroa for his first Field Marshal, and formed by 6,700 soldiers. harquebusiers from this unit were the first to assault the Sultana, the Ottoman flagship, in the battle of Lepanto, and as a reward, its commander Lope de Figueroa was given the commission to inform the King of the victory.

	action_a = {
		name = "ACTIONNAME285150A" #Send the marines
		command = { type = treasury value = -150 }
		command = { type = domestic which = offensive value = 1 }
		command = { type = domestic which = quality value = 1 }
		command = { type = naval value = 500 }
	}
	action_b = {
		name = "ACTIONNAME285150B" #We don't have the money
		command = { type = vp value = -5 }
	}
}
#(1527-1572) The Pasha of Tunis requests our help
#by Fodoron
event = {
	id = 285128 #triggered by TUN_300001 A
	random = no
	country = SPA
	name = "EVENTNAME285128" #The Pasha of Tunis requests our help
	desc = "EVENTHIST285128"
	#-#Carlos had inherited a North African situation that was turning into a nightmare. The Ottomans were calling to the doors of Vienna, and in Africa they had taken over Egypt, and with the help of the Barbary pirates, they were taking over Kingdom after Kingdom, destroying the policy of alliances that his grandfather Fernando had established. He could not let them reach the strait of Gibraltar. Worse still, they entered an alliance with France, so he was facing a simultaneous war in all fronts. To add to that, the Spanish presidios (fortresses) in Africa were very difficult to defend. When Barbarossa conquered Tunis in 1534, the fleeing Pasha al-Hassan went to the Spanish court and asked for help in exchange for vassalage. Carlos could not let the Ottomans or their allies come any closer to Spain and Italy. A huge armada was assembled and he decided to lead it in person.

	action_a = {
		name = "ACTIONNAME285128A" #Send the fleet if Tunis falls
		command = { type = vassal which = TUN }
		command = { type = relation which = TUN value = 400 }
		command = { type = relation which = TLE value = 100 }
	}
	action_b = {
		name = "ACTIONNAME285128B" #They are a bunch of heathens
		command = { type = relation which = TUN value = -50 }
		command = { type = sleepevent which = 285129 } #SPA: Tunis conquered
		command = { type = sleepevent which = 285130 } #SPA: Tunis conquered
	}
}
#(1527-1572) Tunis conquered by Barbarossa (TUR version)
#by Fodoron
event = {
	id = 285129
	trigger = {
		event = 285128 #SPA: The Pasha of Tunis requests our help
		owned = { province = 739 data = TUR } #Tunisia
		owned = { province = 734 data = -1 } #Orania
		NOT = { exists = TUN }
		NOT = {
			vassal = { country = TUR country = SPA }
			vassal = { country = SPA country = TUR }
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285129" #Tunis conquered by Barbarossa
	desc = "EVENTHIST285129"
	#-#After the fall of Tunis, a huge fleet was assembled in Barcelona, It then proceed to Cagliari. It was composed of 74 galleys and over 300 sail ships. Command of the fleet was given to Andrea Doria, while lvaro de Bazn, commanded the Spanish squadron. The 50,000 troops were under command of the Duke of Alba, while supreme command of the operation was reserved for the emperor. After taking La Goulette, near Carthage, they proceeded to Tunis. The army of Barbarossa presented battle in the open and was routed by the Tercios. Once Tunis was under siege, several thousands of Christian slaves rebelled and took control of the armoury, helping during the final assault. Barbarossa, however, was able to escape.

	date = { day = 0 month = january year = 1527 }
	offset = 100
	deathdate = { day = 0 month = january year = 1572 }

	action_a = {
		name = "ACTIONNAME285129A" #We shall recover it
		command = { type = addcore which = 739 } #Tunisia (temporal to direct energies)
		command = { type = war which = TUR }
	}
}
#(1527-1572) Tunis conquered by Barbarossa (ALD version)
#by Fodoron
event = {
	id = 285130
	trigger = {
		event = 285128 #SPA: The Pasha of Tunis requests our help
		owned = { province = 739 data = ALD } #Tunisia
		NOT = { exists = TUN }
		NOT = {
			vassal = { country = TUR country = SPA }
			vassal = { country = SPA country = TUR }
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285129" #Tunis conquered by Barbarossa
	desc = "EVENTHIST285129"
	#-#After the fall of Tunis, a huge fleet was assembled in Barcelona, It then proceed to Cagliari. It was composed of 74 galleys and over 300 sail ships. Command of the fleet was given to Andrea Doria, while lvaro de Bazn, commanded the Spanish squadron. The 50,000 troops were under command of the Duke of Alba, while supreme command of the operation was reserved for the emperor. After taking La Goulette, near Carthage, they proceeded to Tunis. The army of Barbarossa presented battle in the open and was routed by the Tercios. Once Tunis was under siege, several thousands of Christian slaves rebelled and took control of the armoury, helping during the final assault. Barbarossa, however, was able to escape.

	date = { day = 0 month = january year = 1527 }
	offset = 100
	deathdate = { day = 0 month = january year = 1572 }

	action_a = {
		name = "ACTIONNAME285129A" #We shall recover it
		command = { type = addcore which = 739 } #Tunisia (temporal to direct energies)
		command = { type = war which = ALD }
	}
}
#(1527-1574) Tunis under Spanish control
#by Fodoron
event = {
	id = 285131
	trigger = {
		event = 285128 #SPA: The Pasha of Tunis requests our help
		owned = { province = 739 data = -1 } #Tunisia
		core = { province = 739 data = -1 } #marker for acceptance of request
	}
	random = no
	country = SPA
	name = "EVENTNAME285131" #Tunis under Spanish control
	desc = "EVENTHIST285131"
	#-#After the conquest of Tunis in 1535, Carlos reinstated al-Hassa Ibn Muhammad as Pasha of Tunis. He left a garrison of Spanish soldiers to help him keep control and ensure his loyalty. Tunis continued as a vassal of Spain until 1574, when it was conquered by the Ottoman Empire.

	date = { day = 0 month = january year = 1527 }
	offset = 100
	deathdate = { day = 0 month = january year = 1574 }

	action_a = {
		name = "ACTIONNAME285131A" #We fulfill our promises
		command = { type = removecore which = 739 } #Tunisia
		command = { type = independence which = TUN }
		command = { type = sleepevent which = 285147 } #SPA: Tunis is lost
		command = { type = sleepevent which = 285267 } #SPA: Tunis is pacified
	}
	action_b = {
		name = "ACTIONNAME285131B" #Keep it for ourselves
		command = { type = badboy value = 3 }
		command = { type = revolt which = 739 } #Tunisia
		command = { type = revolt which = 739 } #Tunisia
		command = { type = province_revoltrisk which = 739 value = 8 } #Tunisia
	}
}
#(1534-1540) Barbarossa raids our coasts I
#by Fodoron
event = {
	id = 285135
	trigger = {
		exists = TUR
		leader = 0139318 #Barbarossa (TUR)
		war = { country = SPA country = FRA }
		OR = {
			exists = ALD
			owned = { province = 737 data = TUR } #Al Djazair
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285135" #Barbarossa raids our coasts
	desc = "EVENTHIST285135"
	#-#The alliance against the Holy Roman Emperor, signed by the most Christian King Franois Ier of France and the Sultan Suleiman of the Ottoman Empire, resulted in attacks by the Turks every time France entered war against Spain. The most destructive raid was the one produced after the invasion of Milan by France in 1542. Barbarossa, on command of a huge Ottoman and Barbary fleet, raided the coasts of Italy, joining later a French fleet under command of the Duke of Enghien at Marseilles and both proceeded to attack Nice. At the arrival of Andrea Doria and Alfonso de Avalos, they retreated to Toulon for winter, where the churches were prohibited from ringing their bells, and Christian slaves were openly sold between Turks and pirates. While at Toulon, a fleet was dispatched to sack the coasts of Spain. After the peace of Crepy between France and Spain, Barbarossa returned to Istanbul, pillaging the coasts of Tuscany and Naples in the way.

	date = { day = 0 month = january year = 1534 }
	offset = 300
	deathdate = { day = 0 month = january year = 1540 }

	action_a = {
		name = "ACTIONNAME285135A" #He is the devil
		command = { type = stability value = -1 }
		command = { type = treasury value = -50 }
		command = { type = population which = 396 value = -1000 } #Sicily
		command = { type = population which = 427 value = -1000 } #Gerona
	}
}
#(1535-1557) Spanish hegemony in North Africa
#by Fodoron
event = {
	id = 285132
	trigger = {
		exists = TLE
		exists = TUR
		owned = { province = 734 data = -1 } #Orania
		event = 285128 #SPA: The Pasha of Tunis requests our help
	}
	random = no
	country = SPA
	name = "EVENTNAME285132" #Spanish hegemony in North Africa
	desc = "EVENTHIST285132"
	#-#After the pact between Franois Ier of France and the Ottoman Sultan in 1527, Carlos found his empire in a difficult situation. The Turks usally sent their fleets to ravage his coasts, coinciding and even coordinating with French attacks. To avoid complete Ottoman control of the Mediterranean, he took Tunis in 1535. The new Governor of Oran, Martn Alonso de Cordoba, the Count of Alcaudete, was ordered to lead an expedition against Tlemcen, that was shifting towards the Ottoman side. At Prevesa, in the Albanian coast, the combined fleets of Spain, Venice, Genoa and Papal States under command of imperial admiral Andrea Doria, were defeated by the Ottoman-Barbary fleet under Khayr ad-Din Barbarossa. Although loses were small and mostly Venetian, since Doria refused to fight, its effect was to give supremacy in the Eastern Mediterranean to the Ottomans. Besides the expedition of Alcaudete, something needed to be done to maintain Spanish supremacy, at least in the Western Mediterranean, and so Carlos ordered a naval expedition against Al-Djazar (Algiers).

	date = { day = 0 month = january year = 1535 }
	offset = 100
	deathdate = { day = 0 month = january year = 1557 }

	action_a = {
		name = "ACTIONNAME285132A" #Maintain supremacy
		command = { type = treasury value = -100 }
		command = { type = domestic which = offensive value = 1 }
		command = { type = relation which = GEN value = 50 }
		command = { type = relation which = PAP value = 50 }
		command = { type = relation which = KNI value = 100 }
		command = { type = relation which = TUR value = -50 }
	}
	action_b = {
		name = "ACTIONNAME285132B" #Leave the Mediterranean to the Ottomans
		command = { type = relation which = PAP value = -10 }
		command = { type = relation which = KNI value = -50 }
		command = { type = breakoverlord which = TLE } #Tlemcen
		command = { type = trigger which = 301040} #TUR: Tlemcen submits to the Ottoman Empire
		command = { type = sleepevent which = 332002 } #TLE: Between Spanish and Ottomans
		command = { type = sleepevent which = 332003 } #TLE: Between Spanish and Ottomans
	}
}
#(1535-1557) The first expedition of Alcaudete and the failure at Algiers (TLE not a vassal)
#by Fodoron
event = {
	id = 285133 #triggered by TLE_332002 A
	random = no
	country = SPA
	name = "EVENTNAME285133" #The first expedition of Alcaudete and the failure at Algiers
	desc = "EVENTHIST285133"
	#-#The confrontation between the Holy Roman Emperor and the Sultan of the Ottomans was reaching Tlemcen at a delicate point, when dynastic fights were shaking the Zayyanids. Spanish count of Alcaudete, military governor of Oran, joined in 1535 with tribal chief Ibn Radwan to help Zayyanid prince Abdallah overthrow his older brother Muhammad V. The expedition, including 600 Spanish soldiers, was almost completely wiped out by the Banu Rashid tribe. However, probably because the Spaniards had taken Tunis, Sultan Muhammad agreed to pay tribute to Oran in exchange for Spanish protection. Six years later, the expedition of more than four hundred ships sent against Barbarossa in Algiers, departed too late in the season, and surprised by a storm, lost one fourth of its effectives, having to retreat. Overstretched because of the wars of religion, and the wars against France, Carlos did not have the resources to maintain the hegemony in the Western Mediterranean against the Ottomans.

	action_a = {
		name = "ACTIONNAME285133A" #Disaster
		command = { type = stability value = -1 }
		command = { type = vassal which = TLE } #Tlemcen
		command = { type = desertion which = 734 value = 600 } #Orania
		command = { type = desertion which = -1 value = 5000 }
	}
}
#(1535-1557) The first expedition of Alcaudete and the failure at Algiers (TLE a vassal)
#by Fodoron
event = {
	id = 285134 #triggered by TLE_332003 A
	random = no
	country = SPA
	name = "EVENTNAME285133" #The first expedition of Alcaudete and the failure at Algiers
	desc = "EVENTHIST285133"
	#-#The confrontation between the Holy Roman Emperor and the Sultan of the Ottomans was reaching Tlemcen at a delicate point, when dynastic fights were shaking the Zayyanids. Spanish count of Alcaudete, military governor of Oran, joined in 1535 with tribal chief Ibn Radwan to help Zayyanid prince Abdallah overthrow his older brother Muhammad V. The expedition, including 600 Spanish soldiers, was almost completely wiped out by the Banu Rashid tribe. However, probably because the Spaniards had taken Tunis, Sultan Muhammad agreed to pay tribute to Oran in exchange for Spanish protection. Six years later, the expedition of more than four hundred ships sent against Barbarossa in Algiers, departed too late in the season, and surprised by a storm, lost one fourth of its effectives, having to retreat. Overstretched because of the wars of religion, and the wars against France, Carlos did not have the resources to maintain the hegemony in the Western Mediterranean against the Ottomans.

	action_a = {
		name = "ACTIONNAME285133A" #Disaster
		command = { type = stability value = -1 }
		command = { type = desertion which = 734 value = 600 } #Orania
		command = { type = desertion which = -1 value = 5000 }
	}
}
#(1540-1546) Barbarossa raids our coasts II
#by Fodoron
event = {
	id = 285136
	trigger = {
		exists = TUR
		leader = 0139318 #Barbarossa (TUR)
		war = { country = SPA country = FRA }
		OR = {
			exists = ALD
			owned = { province = 737 data = TUR } #Al Djazair
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285135" #Barbarossa raids our coasts
	desc = "EVENTHIST285135"
	#-#The alliance against the Holy Roman Emperor, signed by the most Christian King Franois Ier of France and the Sultan Suleiman of the Ottoman Empire, resulted in attacks by the Turks every time France entered war against Spain. The most destructive raid was the one produced after the invasion of Milan by France in 1542. Barbarossa, on command of a huge Ottoman and Barbary fleet, raided the coasts of Italy, joining later a French fleet under command of the Duke of Enghien at Marseilles and both proceeded to attack Nice. At the arrival of Andrea Doria and Alfonso de Avalos, they retreated to Toulon for winter, where the churches were prohibited from ringing their bells, and Christian slaves were openly sold between Turks and pirates. While at Toulon, a fleet was dispatched to sack the coasts of Spain. After the peace of Crepy between France and Spain, Barbarossa returned to Istanbul, pillaging the coasts of Tuscany and Naples in the way.

	date = { day = 0 month = january year = 1540 }
	offset = 300
	deathdate = { day = 0 month = january year = 1546 }

	action_a = {
		name = "ACTIONNAME285135A" #He is the devil
		command = { type = stability value = -1 }
		command = { type = treasury value = -50 }
		command = { type = population which = 395 value = -1000 } #Messina
		command = { type = population which = 821 value = -1000 } #The Baleares
	}
}
#(1545-1555) Civil war in Tlemcen
#by Fodoron
event = {
	id = 285137
	trigger = {
		vassal = { country = TUR country = TLE }
		owned = { province = 734 data = -1 } #Orania
	}
	random = no
	country = SPA
	name = "EVENTNAME285137" #Civil war in Tlemcen
	desc = "EVENTHIST285137"
	#-#Taking advantage of the fights between different tribes in Tlemcen, the count of Alcaudete, military governor of Spanish Oran, supported the Banu Rashid to dethrone Muhammad and install his brother Ahmad in 1545. Muhammad sought the help of Hassan Pasha, ruler of Al-Djazar and son of Khayr ad-Din Barbarossa, and was restored with the help of the Turks. Alcaudete attacked in 1547, but was driven back by the Turks. Meanwhile, in Morocco, the pro-Turkish Wattasid sultan Ahmad, was defeated by the Sa'did Muhammad al-Shaykh (al-Mahdi), who then invaded Tlemcen putting and end to 300 years of Zayyanid rule there. The Turkish reaction under agha Hasan Quru however drove them out. Tlemcen was under Turkish control, but disputed by Moroccans and Spanish.

	date = { day = 0 month = january year = 1545 }
	offset = 300
	deathdate = { day = 0 month = january year = 1555 }

	action_a = {
		name = "ACTIONNAME285137A" #Tlemcen should not be Ottoman
		command = { type = treasury value = -50 }
		command = { type = INF which = 734 value = 5000 } #Orania
		command = { type = CAV which = 734 value = 2000 } #Orania
		command = { type = casusbelli which = TLE value = 72 }
		command = { type = relation which = MOR value = 50 }
		command = { type = relation which = TUR value = -50 }
		command = { type = relation which = TLE value = -50 }
	}
	action_b = {
		name = "ACTIONNAME285137B" #Who cares about Tlemcen
		command = { type = vp value = -5}
		command = { type = trigger which = 332005 } #TLE: Tlemcen becomes part of the Ottoman Empire -I-
		command = { type = trigger which = 332018 } #TLE: Tlemcen becomes part of the Ottoman Empire -II-
		command = { type = sleepevent which = 285139 } #SPA: The last expedition of Alcaudete
	}
}
#(1545-1555) The last expedition of Alcaudete
#by Fodoron
event = {
	id = 285139
	trigger = {
		event = 285137 #SPA: Civil war in Tlemcen
		owned = { province = 734 data = -1 } #Orania
	}
	random = no
	country = SPA
	name = "EVENTNAME285139" #The last expedition of Alcaudete
	desc = "EVENTHIST285139"
	#-#The fall of Tlemcen into Ottoman hands in 1551 put Spanish Oran in a mortal danger. Martn Alonso de Cordoba, the count of Alcaudete, military governor of Oran, entered into an alliance with the sultan of Morocco, Muhammad al-Shaykh, to drive the Turks from Tlemcen. However the Ottoman sultan Suleiman dispatched spies that assassinated Muhammad al-Shaykh in 1557. Having lost this ally for an attack on Algiers, Alcaudete marched with an army of 12,000 on Mustaghanim (Mostaganem) the next year. But tribes and the Turkish forces of Hasan Quru totalling over 70,000 men defeated them. Alcaudete was killed, and his son and most of the army were captured. The next year many of them would abjure from their beliefs to escape slavery. Tlemcen disappeared as a country, firmly in the hands of the pashas of Al-Djazar, named by the Ottoman Empire. Tripoli was lost in 1551, Bugia in 1555, and Tunis in 1570. Spain had lost the North African game, but will successfully defend Oran and Melilla from recurrent attacks for centuries.

	date = { day = 0 month = january year = 1545 }
	offset = 20
	deathdate = { day = 0 month = january year = 1555 }

	action_a = {
		name = "ACTIONNAME285139A" #Disaster
		command = { type = stability value = -1 }
		command = { type = desertion which = 734 value = 12000 } #Orania
	}
}
#(1551) Tripoli is lost
#by Fodoron
event = {
	id = 285138
	trigger = {
		NOT = { owned = { province = 740 data = -1 } } #Tripolitania
		core = { province = 740 data = -1 } #Tripolitania
	}
	random = no
	country = SPA
	name = "EVENTNAME285138" #Tripoli is lost
	desc = "EVENTHIST285138"
	#-#The Knights Hospitallers took care of the defense of Tripoli after his cession by Carlos for over 20 years. Provisioned by the Viceroy of Sicily and with the help of a Spanish garrison, the Order even considered moving their see there. However in 1551 they were attacked by a huge Ottoman army under command of Sinan Pasha and Dragut. There were very few Knights in Tripoli, and the Spanish soldiers from Calabria refused to fight, and so Tripoli was surrendered almost without fight. In 1560 the Grand Master Jean Parisot de la Valette enticed the Viceroy of Sicily, Juan de la Cerda, Duke of Medinaceli to attempt its recovery, but the expedition, approved by Felipe II, was a complete failure, since Tripoli had been converted into a stronghold by huge Ottoman defensive works under the direction of Dragut.

	date = { day = 14 month = august year = 1551 }

	action_a = {
		name = "ACTIONNAME285138A" #Outrageous
		command = { type = removecore which = 740 } #Tripolitania
		command = { type = sleepevent which = 285268 } #SPA: Tripoli is pacified
	}
}
#(1556-1577) The battle of Lepanto
#by Fodoron
event = {
	id = 285140
	trigger = { war = { country = TUR country = SPA } }
	random = no
	country = SPA
	name = "EVENTNAME285140" #The battle of Lepanto
	desc = "EVENTHIST285140"
	#-#Felipe II could dedicate very little attention and resources to the Mediterranean, as busy as he was with the rebellion in the Low Countries. However in 1565 his help was required by the Hospitallers to defend Malta against a combined assault by the Ottomans and Barbary pirates. The victory was very important because it put a clear limit to how far would the Ottoman Empire capable of projecting his power. However the Ottoman Empire was at his peak, as the capture of Tunis in 1569 demonstrated. The capture of Cyprus in 1571, triggered the formation of a Holy League, mainly formed by Spain, Venice and Papal States, with the combined fleet under command of Don Juan de Austria. The interests of Venice and Spain were very different: Venice wanted to recover Cyprus, and Spain wanted to recover her North African presidios, and they could only agree in fighting the Ottoman navy. The ensuing battle at Lepanto was the biggest naval battle in modern times with over 32,000 casualties (by comparison Trafalgar had only 3,000), 25,000 of them in the Ottoman side. The Ottoman fleet was almost completely destroyed. News of the victory were extremely well received by the Christians that suffered the Ottoman and Barbary piracy. Although the Ottomans rebuilt their fleet and recaptured Tunis a second time in 1574, their naval supremacy in the Mediterranean was destroyed forever.

	date = { day = 0 month = january year = 1556 }
	offset = 100
	deathdate = { day = 0 month = january year = 1577 }

	action_a = {
		name = "ACTIONNAME285140A" #A great achievement
		command = { type = stability value = 2 }
	}
}
#(1563-1574) The great siege of Oran
#by Fodoron
event = {
	id = 285148
	trigger = {
		owned = { province = 734 data = -1 } #Orania
		control = { province = 734 data = -1 } #Orania
	}
	random = no
	country = SPA
	name = "EVENTNAME285148" #The great siege of Oran
	desc = "EVENTHIST285148"
	#-#After the disaster of Mustaghanim, in 1558, the military governor of Oran was Alonso de Crdoba, the new Conde de Alcaudete. He ransomed his father's body for 2000 ducats and his brother Martn in 1561 for 23,333 ducats that he obtained from a pillaging expedition into Moorish territory. In 1563, after the failure of Medinaceli in Tripoli, and the loss of Djerba, where Dragut made a pyramid with the skulls of the garrison, the Beylerbey Hassan Pasha, son of Barbarossa, decided to attack Oran. The Ottoman fleet had 32 galleys and 3 French round ships. The army was constituted of 1,000 Spahis, 15,000 Janissaries, and over 12,000 Kabyles and Arabs, contributed by the Sultan of Koukou and the Banu-Abba tribe. The assaults started in April on Mazalquivir, defended by Martn de Crdoba and 200 men. Time after time the Muslims were repelled. The son of the Sultan of Koukou died, Hassan was wounded, but their troops reached the walls of the fortification. On the last assault, on June 7, Martn was also wounded. Then news arrived that a powerful Christian fleet under command of Gian Andrea Doria and Francisco de Mendoza was on its way. Hassan Pasha called for an all out assault, but the Janissaries refused, and he had to escape, leaving behind all his artillery, and having lost 4,000 men, four galleys and the three French transports. Only 130 survivors remained in Mazalquivir. Maintenance of Oran, however, was becoming a burden. The Council of State asked for reports to study the possibility of leaving Oran and keeping only Mazalquivir, but without the first, the second was untenable, and so it was decided in 1574 to keep both. A great investment was made to upgrade the fortifications, designed by Antonelli, and the castle of Santa Cruz was built in 1577.

	date = { day = 1 month = april year = 1563 }
	offset = 300
	deathdate = { day = 1 month = april year = 1574 }

	action_a = {
		name = "ACTIONNAME285148A" #Fortify the city
		command = { type = treasury value = -100 }
		command = { type = fortress which = 734 value = 1 } #Orania
	}
	action_b = {
		name = "ACTIONNAME285148B" #Too expensive to keep
		command = { type = cedeprovince which = TUR value = 734 } #Orania
		#Ahistorical
		command = { type = cedeprovince which = TUR value = 735 } #Atlas
		command = { type = cedeprovince which = TUR value = 736 } #Aures
		command = { }
	}
}
#(1574) Tunis is lost
#by Fodoron
event = {
	id = 285147
	trigger = {
		NOT = { owned = { province = 739 data = -1 } } #Tunisia
		core = { province = 739 data = -1 } #Tunisia
		NOT = { event = 285267 } #SPA: Tunis is pacified
	}
	random = no
	country = SPA
	name = "EVENTNAME285147" #Tunis is lost
	desc = "EVENTHIST285131"
	#-#After the conquest of Tunis in 1535, Carlos reinstated al-Hassa Ibn Muhammad as Pasha of Tunis. He left a garrison of Spanish soldiers to help him keep control and ensure his loyalty. Tunis continued as a vassal of Spain until 1574, when it was conquered by the Ottoman Empire.

	date = { day = 0 month = january year = 1574 }
	offset = 300
	deathdate = { day = 0 month = january year = 1575 }

	action_a = {
		name = "ALAS"
		command = { type = removecore which = 739 } #Tunisia
		command = { type = sleepevent which = 285267 } #SPA: Tunis is pacified
	}
}
#(1574) Tunis is pacified - Ahistorical
event = {
	id = 285267
	trigger = {
		owned = { province = 739 data = -1 } #Tunisia
		core = { province = 739 data = -1 } #Tunisia
		NOT = { event = 285147 } #SPA: Tunis is lost
	}
	random = no
	country = SPA
	name = "EVENTNAME285267" #Tunis is pacified
	desc = "EVENTHIST285267"
	#-#After the conquest of Tunis, Tunisia was kept under direct Spanish control. Province is finally pacified but Spain will never be recognized as legitime ruler.

	date = { day = 0 month = january year = 1574 }
	offset = 300
	deathdate = { day = 0 month = january year = 1575 }

	action_a = {
		name = "OK"
		command = { type = removecore which = 739 } #Tunisia
		command = { type = province_revoltrisk which = 739 value = -8 } #Tunisia
		command = { type = sleepevent which = 285147 } #SPA: Tunis is lost
	}
}
#(1577-1581) Peace with the Ottoman empire
#by Fodoron
event = {
	id = 285141
	trigger = {
		OR = {
			owned = { province = 733 data = TUR } #Fez
			owned = { province = 734 data = TUR } #Orania
			owned = { province = 735 data = TUR } #Atlas
			owned = { province = 736 data = TUR } #Aures
			owned = { province = 737 data = TUR } #Al-Djazair
			owned = { province = 738 data = TUR } #Kabilia
			owned = { province = 739 data = TUR } #Tunisia
			owned = { province = 740 data = TUR } #Tripolitania
			owned = { province = 741 data = TUR } #Cyrenaica
			owned = { province = 742 data = TUR } #Quattara
		}
		NOT = {
			war = { country = TUR country = SPA }
		}
		OR = {
			owned = { province = 736 data = -1 } #Aures
			owned = { province = 737 data = -1 } #Al-Djazair
			owned = { province = 738 data = -1 } #Kabilia
			owned = { province = 739 data = -1 } #Tunisia
			owned = { province = 740 data = -1 } #Tripolitania
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285141" #Peace with the Ottoman Empire
	desc = "EVENTHIST285141"
	#-#Felipe II just did not have the money to pursue a North African conquest, but the rebellion of the Moriscos in 1569, at a time when Tunis was conquered for the Ottomans by the famous pirate and beylerbey of Algiers, Uluj Ali, made him painfully aware of the dangers of ignoring that front. With great effort, the Moriscos rebellion was put down, and the Ottoman fleet defeated at Lepanto. But although Tunis was briefly recovered, it was quickly lost again due to lack of resources. But he was not alone in having problems. The Ottomans defeated at Malta and Lepanto found themselves also overstretched due to their taxing conflicts in Persia. Under these circumstances, Felipe II and Murad III negotiated a series of truces between 1577 and 1581. In these truces Felipe II renounced to Spanish former conquests in North Africa, while the Ottoman sultan renounced to Oran, and to lend help to the Moriscos. The peace between Spain and the Ottoman empire would be permanent, and would allow both empires to abandon the Mediterranean, that was left in the hands of the Barbary pirates, periodically checked by the European navies.

	date = { day = 0 month = january year = 1577 }
	offset = 100
	deathdate = { day = 0 month = january year = 1581 }

	action_a = {
		name = "ACTIONNAME285141A" #Sign the truces
		command = { type = stability value = 1 }
		command = { type = relation which = TUR value = 100 }
		command = { type = cedeprovince which = TUR value = 736 } #Aures
		command = { type = cedeprovince which = TUR value = 737 } #Al-Djazair
		command = { type = cedeprovince which = TUR value = 738 } #Kabilia
		command = { type = cedeprovince which = TUR value = 739 } #Tunisia
		command = { type = cedeprovince which = TUR value = 740 } #Tripolitania
		command = { type = removecore which = 740 } #Tripolitania
		command = { type = trigger which = 301044 } #TUR: Peace with Spain
		command = { type = sleepevent which = 285268 } #SPA: Tripoli is pacified
	}
	action_b = {
		name = "ACTIONNAME285141B" #Holy war
		command = { type = stability value = -1 }
		command = { type = relation which = TUR value = -50 }
		command = { type = treasury value = -50 }
	}
}
#(1581-1590) Tripoli is pacified - Ahistorical
event = {
	id = 285268
	trigger = {
		owned = { province = 740 data = -1 } #Tripolitania
		core = { province = 740 data = -1 } #Tripolitania
		NOT = { event = 285138 } #SPA: Tripoli is lost
	}
	random = no
	country = SPA
	name = "EVENTNAME285268" #Tripoli is pacified
	desc = "EVENTHIST285268"
	#-#After the conquest of Tripoli, Tripolitania was kept under direct Spanish control. Province is finally pacified but Spain will never be recognized as legitime ruler.

	date = { day = 0 month = january year = 1577 }
	offset = 1000
	deathdate = { day = 0 month = january year = 1590 }

	action_a = {
		name = "OK"
		command = { type = removecore which = 740 } #Tripolitania
		command = { type = province_revoltrisk which = 740 value = -48 } #Tripolitania
	}
}
#(1600-1708) Banishment to Oran
#by Fodoron
event = {
	id = 285142
	trigger = {
		owned = { province = 734 data = -1 } #Orania
	}
	random = no
	country = SPA
	name = "EVENTNAME285142" #Banishment to Oran
	desc = "EVENTHIST285142"
	#-#Spain did not have penal colonies like England or France. Low class convicts were punished to the rowing gang in the galleys, while high class convicts were sent to one of the presidios in Africa, mainly at Oran. The word presidio, originally meaning fortress thus became to mean prison. However at Oran, exiles were allowed complete freedom, and continued living their lives of luxury, with frequent games, parties and even bullfights, being known as 'Corte Chica' or little court. Famous exiled at Oran were Juan de Colon, third Admiral of the Ocean Sea and grandson of Christopher Columbus, banished for trigamy, Sebastian Cabot, banished after abandoning his expedition, and Alvar Nez Cabeza de Vaca, together with scores of troublesome or out of favor nobles.

	date = { day = 0 month = january year = 1600 }
	offset = 5000
	deathdate = { day = 0 month = january year = 1708 }

	action_a = {
		name = "ACTIONNAME285142A" #Out with the troublemakers
		command = { type = stability value = 1 }
	}
}
#(1708) Loss of Oran
#by Fodoron
event = {
	id = 285143
	trigger = {
		owned = { province = 734 data = -1 } #Orania
		exists = HSP #Habsburg Spain (War of Spanish Succession)
		OR = {
			owned = { province = 733 data = TUR } #Fez
			owned = { province = 735 data = TUR } #Atlas
			owned = { province = 736 data = TUR } #Aures
			owned = { province = 737 data = TUR } #Al Djazair
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285143" #Loss of Oran
	desc = "EVENTHIST285143"
	#-#After his conquest of Gibraltar during the war of Spanish Succession, and to alleviate the French-Spanish attempt to recover it, Prince George of Hesse-Darmstadt, chief commander of the alliance army of Archduke Charles, suggested the bey of Algiers that it was a good time to attack the Spaniards at Oran, given their weakness. Upon learning this, the bey of Algiers ordered the bey of Mascara, Mustapha ben Youssef, to attack it. With Oran under siege, Luis Manuel Fernndez de Crdoba, count of Santa Cruz, was ordered to carry reinforcements to the city. Instead, he deserted to the Archduke Charles Habsburg side and surrendered Cartagena to the English. Without relief, Melchor Avellaneda, governor of Oran, was forced to capitulate to the Ottomans.

	date = { day = 1 month = january year = 1708 }
	offset = 5
	deathdate = { day = 1 month = february year = 1708 }

	action_a = {
		name = "ACTIONNAME285143A" #Damn traitor
		command = { type = cedeprovince which = TUR value = 734 } #Orania
		command = { type = addcore which = 734 } #Orania (temporal, for recovery)
		#Ahistorical
		command = { type = cedeprovince which = TUR value = 735 } #Atlas
		command = { type = cedeprovince which = TUR value = 736 } #Aures
	}
}
#(1732-1820) Reconquest of Oran - ALD exists
#by Fodoron
event = {
	id = 285144
	trigger = {
		owned = { province = 734 data = -1 } #Orania
		core = { province = 734 data = -1 } #Orania
		event = 285143 #SPA: Loss of Oran
		exists = ALD
	}
	random = no
	country = SPA
	name = "EVENTNAME285144" #Reconquest of Oran
	desc = "EVENTHIST285144"
	#-#Once Spain emerged from the war of Succession, and reorganized her armies and navy, an army of 28,000 soldiers, under command of Jos Carrillo, the count of Montemar was sent to recover Oran, lost in 1708. When the expedition landed, they faced an army of 40,000 Muslims under command of Mustapha ben Youssef. Once defeated, the Turks evacuated the city, and for 12 years tried to recover it without success. However, the Spanish found that maintenance of Oran had become a burden, since the local tribes had ceased to deal with the Christians. After reconquering it, they no longer wanted it, but for a question of prestige they kept it.

	date = { day = 15 month = june year = 1732 }
	offset = 100
	deathdate = { year = 1820 }

	action_a = {
		name = "ACTIONNAME285144A" #We will keep it
		command = { type = removecore which = 734 } #Orania
		command = { type = treasury value = -50 }
	}
	action_b = {
		name = "ACTIONNAME285144B" #We don't want it anymore
		command = { type = removecore which = 734 } #Orania
		command = { type = cedeprovince which = ALD value = 734 } #Orania
		#Ahistorical
		command = { type = cedeprovince which = ALD value = 735 } #Atlas
		command = { type = cedeprovince which = ALD value = 736 } #Aures
	}
}
#(1732-1820) Reconquest of Oran - ALD does not exist
#by Fodoron
event = {
	id = 285149
	trigger = {
		owned = { province = 734 data = -1 } #Orania
		core = { province = 734 data = -1 } #Orania
		event = 285143 #SPA: Loss of Oran
		exists = TUR
		NOT = { exists = ALD }
	}
	random = no
	country = SPA
	name = "EVENTNAME285144" #Reconquest of Oran
	desc = "EVENTHIST285144"
	#-#Once Spain emerged from the war of Succession, and reorganized her armies and navy, an army of 28,000 soldiers, under command of Jos Carrillo, the count of Montemar was sent to recover Oran, lost in 1708. When the expedition landed, they faced an army of 40,000 Muslims under command of Mustapha ben Youssef. Once defeated, the Turks evacuated the city, and for 12 years tried to recover it without success. However, the Spanish found that maintenance of Oran had become a burden, since the local tribes had ceased to deal with the Christians. After reconquering it, they no longer wanted it, but for a question of prestige they kept it.

	date = { day = 15 month = june year = 1732 }
	offset = 100
	deathdate = { year = 1820 }

	action_a = {
		name = "ACTIONNAME285144A" #We will keep it
		command = { type = removecore which = 734 } #Orania
		command = { type = treasury value = -50 }
	}
	action_b = {
		name = "ACTIONNAME285144B" #We don't want it anymore
		command = { type = removecore which = 734 } #Orania
		command = { type = cedeprovince which = TUR value = 734 } #Orania
		#Ahistorical
		command = { type = cedeprovince which = TUR value = 735 } #Atlas
		command = { type = cedeprovince which = TUR value = 736 } #Aures
	}
}
#(1791) Loss of Oran
#by Fodoron
event = {
	id = 285145
	trigger = {
		owned = { province = 734 data = -1 } #Orania
		owned = { province = 737 data = ALD } #Al-Djazair
	}
	random = no
	country = SPA
	name = "EVENTNAME285145" #Loss of Oran
	desc = "EVENTHIST285145"
	#-#Spain had lost interest in Oran. Already in 1780 it was offered to England in exchange for Gibraltar. But in 1790 there was a terrible earthquake. It started on the 8th of October with 22 shocks in seven minutes, and continued with aftershocks until the 22nd of November. The entire city and its fortifications were leveled, and one third of the garrison and a great number of the inhabitants perished. Famine and sickness had started to aggravate the situation when the bey of Mascara, Muhammed el-Kebir, appeared before the town with 30,000 men. By a prodigy of courage and in a hand-to-hand combat, the Spanish soldiers under the exhortation of their commander, Joaqun Mayone, count of Cumbre Hermosa, were able to repel the attacks, defeating the bey's army on the 18th September 1791. But their heroic victory was in vain, as on the 12th their government had already offered the city back to Algiers, and on the 22nd of September a treaty was signed between Carlos IV and the dey Muhammad of Algiers for the unconditional surrender of Oran and Mazalquivir.

	date = { day = 21 month = september year = 1791 }

	action_a = {
		name = "ACTIONNAME285145A" #Abandon these ruins
		command = { type = provincereligion which = 734 value = sunni } #Orania
		command = { type = population which = 734 value = -3000 }
		command = { type = cedeprovince which = ALD value = 734 } #Orania
		command = { type = stability value = -1 }
	}
	action_b = {
		name = "ACTIONNAME285145B" #It will remain Spanish
		command = { type = desertion which = 734 value = 10000 } #Orania
		command = { type = provincetax which = 734 value = -3 }
		command = { type = population which = 734 value = -10000 }
		command = { type = treasury value = -200 }
	}
}
#(1791) Loss of Oran
#by Fodoron
event = {
	id = 285146
	trigger = {
		owned = { province = 734 data = -1 } #Orania
		owned = { province = 737 data = TUR } #Al-Djazair
	}
	random = no
	country = SPA
	name = "EVENTNAME285145" #Loss of Oran
	desc = "EVENTHIST285145"
	#-#Spain had lost interest in Oran. Already in 1780 it was offered to England in exchange for Gibraltar. But in 1790 there was a terrible earthquake. It started on the 8th of October with 22 shocks in seven minutes, and continued with aftershocks until the 22nd of November. The entire city and its fortifications were leveled, and one third of the garrison and a great number of the inhabitants perished. Famine and sickness had started to aggravate the situation when the bey of Mascara, Muhammed el-Kebir, appeared before the town with 30,000 men. By a prodigy of courage and in a hand-to-hand combat, the Spanish soldiers under the exhortation of their commander, Joaqun Mayone, count of Cumbre Hermosa, were able to repel the attacks, defeating the bey's army on the 18th September 1791. But their heroic victory was in vain, as on the 12th their government had already offered the city back to Algiers, and on the 22nd of September a treaty was signed between Carlos IV and the dey Muhammad of Algiers for the unconditional surrender of Oran and Mazalquivir.

	date = { day = 21 month = september year = 1791 }

	action_a = {
		name = "ACTIONNAME285145A" #Abandon these ruins
		command = { type = stability value = -1 }
		command = { type = provincereligion which = 734 value = sunni } #Orania
		command = { type = population which = 734 value = -3000 }
		command = { type = cedeprovince which = TUR value = 734 } #Orania
		#Ahistorical
		command = { type = cedeprovince which = TUR value = 735 } #Atlas
		command = { type = cedeprovince which = TUR value = 736 } #Aures
	}
	action_b = {
		name = "ACTIONNAME285145B" #It will remain Spanish
		command = { type = desertion which = 734 value = 10000 } #Orania
		command = { type = provincetax which = 734 value = -3 }
		command = { type = population which = 734 value = -10000 }
		command = { type = treasury value = -200 }
	}
}
#End of North African policy of Spain Sequence
#-----------------------------------------------------------------------------------------------

#(1495-1498) The Anti-French League of Venice
#modified by Bordic
event = {
	id = 12143
	trigger = {
		NOT = { exists = ARG }
		NOT = { event = 12144 }	#ARG: The Anti-French League of Venice
		OR = {
			event = 12022 #NAP: Charles VIII presses claims on Naples
			event = 170040 #FRA: The French King in Naples
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME326035" #The Anti-French League of Venice
	desc = "EVENTHIST170040"
	#-#The presence of Charles VIII of France in the Kingdom of Naples scared the Italian princes, who had in a certain way permitted the French King to achieve his goal of settling there almost undisturbed. Venice and Florence were worried about a French hegemony in the peninsula. French military presence wasn't limited to Southern Italy but also to villages of Tuscany and the Papal States, which previously surrendered to Charles VIII in his march towards Naples, strategically located to grant the French military supply line. The Pope, who previously granted the French King military access through the Papal territories and consented his stay in Rome, felt in jeopardy as much as to refuse Charles VIII being proclaimed King of Naples. Also King Ferdinand of Aragon couldn't accept the French presence in a Kingdom where he instead, in spite of Alfons V's testament which assigned Naples to the other Trastamara branch, could be the one to have claims there. The position of Naples was also important for the Aragonese trading in the Mediterranean. The Duke of Milan, who decisively affected Charles VIII's decision to settle in Naples, was now alarmed by the presence of French reserve troops deployed in the county of Asti, very close to Milan and at the order of the Duke of Orlans, who had dynastical claims to the Milanese throne. So Venice, Milan, the Pope, Spain and even the Holy Roman Empire (so firmly opposed to the French expansionism in Italy as to join any Anti-French alliance available) consequently formed the Anti-French league in Venice on 31 March 1495. Florence preferred to stay out because of her internal problems caused by Charles VIII's passage and decided to support France instead. Having heard about those arrangements and fearing that the confederates would isolate his army in Italy, Charles VIII decided to return to France for reinforcements leaving his regent in Naples. He had to move his army quickly through the Apennines as to reach the Alps and then safety, but the presence of heavy artilleries and carriages transporting the big loot he accumulated across Italy, slowed his march down. Only at Fornovo on the Taro River, in the Po Valley, Charles VIII finally faced the army of the confederates. Despite having lost all the carriages, he managed to reach the Alps gaining from his expedition to Italy nothing but his army decimated by epidemies.

	date = { day = 0 month = January year = 1495 }
	offset = 25
	deathdate = { day = 0 month = April year = 1498 }

	action_a = {
		name = "ACTIONNAME12143A" #Protect our dynasty from French interference
		command = { type = casusbelli which = FRA value = 36 }
		command = { type = vassal which = NAP } #if existing, Ferrandino asked Ferdinand's help
		command = { type = relation which = FRA value = -150 }
		command = { type = relation which = VEN value = 100 }
		command = { type = relation which = MLO value = 100 }
		command = { type = relation which = HAB value = 100 }
		command = { type = relation which = PAP value = 100 }
	}
	action_b = {
		name = "ACTIONNAME12143B" #We cannot stand up to the French
		command = { type = stability value = -1 }
		command = { type = relation which = FRA value = 10 }
		command = { type = relation which = VEN value = -50 }
		command = { type = relation which = MLO value = -50 }
		command = { type = relation which = HAB value = -50 }
		command = { type = relation which = PAP value = -50 }
		command = { type = sleepevent which = 179025 } #HAB: The Anti-French League of Venice
	}
}

#(1496) Political marriages with the Habsburgs
#by Bordic
event = {
	id = 285151 #triggered by BUR_137022
	random = no
	country = SPA
	name = "EVENTNAME285151" #Political marriages with the Habsburgs
	desc = "EVENTHIST137022"
	#-#In 1494 Charles VIII invaded Italy. Maximilian of Habsburg, alarmed at the successful progress of Charles VIII in the Italian peninsula, signed the league of Venice with Spain, Venice and Milan to face the powerful French army in the Kingdom of Naples and in the imperial territories in Northern Italy and, in order to strengthen the ties with the new Spanish ally, at about the same time he arranged a marriage between his children, Marguerite and Philippe, and Juan and Juana, son and daughter of Ferdinand and Isabella, respectively King of Aragon and Queen of Castile.

	action_a = {
		name = "ACTIONNAME285151A" #Let's bind our destiny to the House of Habsburg
		command = { type = stability value = 1 }
		command = { type = dynastic which = BUR }
		command = { type = DIP which = 2 value = 12 }
		command = { type = relation which = FRA value = -50 }
		command = { type = relation which = HAB value = 300 }
	}
}

#(1496-1500) The fate of Naples
#by Bordic
event = {
	id = 285204
	trigger = {
		event = 239027 #NAP: The short and happy life of King Ferrandino
		NOT = { exists = ARG }
	}
	random = no
	country = SPA
	name = "EVENTNAME285204" #The fate of Naples
	desc = "EVENTHIST285204"
	#-#With the French entering Naples, the young King Ferdinando II, also called Ferrandino, had sailed to Sicily to receive the military support of his cousin, Ferdinand II King of Aragon. Starting from his base in Messina he then tried to reconquer his Kingdom with an Aragonese army led by general Gonzalo Fernndez de Crdoba. After an initial defeat against the French in the battle of Seminara, the King organized a fleet and, supported by the local population which was hostile to the presence of French troops, entered Naples retaking the castles which were still in French hands. Although having successfully helped his cousin Ferrandino, Ferdinand of Aragon distrusted Ferrandino's uncle Federico who succeded to the throne because of lack of Ferrandino's direct descendancy. Federico was a weak monarch whose unhappy diplomatic moves to appease France, even acknowledging his realm as a French fief, and to encourage diplomatic relations with the Turk would let the Kingdom be prey of foreign powers. Ferdinand of Aragon, who didn't deny to disconfess Alfons V's testament to keep the crown of Naples separate from those of Aragon and Sicily, feared that the defense of Naples, crucial to the Aragonese trading in the Mediterranean, could no longer be entrusted to his relative. He had to face the difficult choice of either going to war against France or splitting the Kingdom of Naples with them. When Federico refused a marriage between his son Ferrandino, Duke of Calabria, and Ferdinand's niece, Juana de Aragn, King Ferdinand definitively resolved to come to terms with the French King signing the treaty of Granada. The fate of Naples was then written.

	date = { day = 6 month = October year = 1496 }
	offset = 30
	deathdate = { day = 11 month = November year = 1500 }

	action_a = {
		name = "ACTIONNAME285204A" #Naples worths a try
		command = { type = stability value = -1 }
		command = { type = addcore which = 393 } #Napoli
		command = { type = addcore which = 394 } #Apulia
		command = { type = relation which = NAP value = -100 }
		command = { type = sleepevent which = 285105 } #SPA: The Trastamara inheritance of Naples
	}
	action_b = {
		name = "ACTIONNAME285204B" #We shall support our cousin, in any case...
		command = { type = stability value = 1 }
		command = { type = DIP which = 2 value = 24 }
		command = { type = MIL which = 2 value = 24 }
		command = { type = relation which = NAP value = 100 }
	}
}

#-----------------------------------------------------------------------------------------------
#Navarra Sequence

#(1497) The Castilian Protectorate of Navarre
#by Fodoron
event = {
	id = 285041 #triggered by NAV_241027 A
	random = no
	country = SPA
	name = "EVENTNAME285041" #The Castilian protectorate of Navarre
	desc = "EVENTHIST285041"
	#-#The ascension of Fernando to the throne of Castile radically changed the situation in Navarre. Castile had always supported the Beaumonts against Juan and the Gramonts, but Fernando was able to convince his father that Castile could play a role in the pacification of Navarre. Instead of dropping the support of the Beaumonts, Fernando signs with Juan the Treaty of Tudela in 1476, establishing a defensive protectorate of Castile over Navarre. The Castilian protectorate will last thirty years, and although it will not end the war between the Beaumonts and Gramonts, it will greatly abate it. It will also serve as a Spanish counterweight against the French orientation of the House of Foix. At the treaty of Pamplona-Medina del Campo in January 1494, Jean and Catherine accepted the marriage of their heir to the heir of Spain, and the continuation of the Castilian protectorate. This allowed them to defeat Jean of Foix-Narbonne, who renounced to his claim to the crown of Navarre in 1497. But the confrontation between Spain and France that was starting in Italy left no room for a neutral Navarre. Strategically, Navarre could be used as a backdoor to invade the neighboring country, allowing the armies to cross the Pyrenees unmolested. A war between France and Spain over Navarre was in the horizon. This time Navarre seemed to tilt towards Spain.

	action_a = {
		name = "ACTIONNAME285041A" #Establish the Spanish protectorate over Navarre
		command = { type = addcore which = 428 } #Navarra
		command = { type = add_countryculture which = basque }
		command = { type = vassal which = NAV }
		command = { type = sleepevent which = 285280 } #SPA: The fate of the Kingdom of Navarre
	}
}
#(1512) The War of Navarre
#by Fodoron
event = {
	id = 285042 #triggered by NAV_241029 A
	random = no
	country = SPA
	name = "EVENTNAME285042" #The conquest of Navarre
	desc = "EVENTHIST285042"
	#-#The alliance of Jean d'Albret and Louis XII of France in the context of the wars of Italy, precipitated the Spanish invasion of Navarre. The Beaumonts supported the invasion, and surrendered Pamplona to the Old Duke of Alba. The Gramonts were quickly overrun. The French armies under command of the Dauphin made numerous mistakes, ignoring the requests of Jean d'Albret, using the Navarrans and Gascoigners to lead the assaults and abusing the local population. The siege of Pamplona was a complete failure, and with the arrival of the winter they suffered grave loses, retreating back to France in a difficult march across the Pyrenees. By the spring of 1513, the Spaniards had resisted the French attack in the Basque region and were the masters of Navarre. That year, Fernando was crowned King of Navarre, and in 1515, he surprisingly decided to incorporate Navarre to the Kingdom of Castile.

	action_a = {
		name = "ACTIONNAME285042A" #Union with Spain has been achieved
		command = { type = addcore which = 428 } #Navarra
		command = { type = add_countryculture which = basque }
		command = { type = stability value = 1 }
		command = { type = inherit which = NAV }
		command = { type = trigger which = 170157 } #FRA: The war of Navarre
		command = { type = sleepevent which = 285280 } #SPA: The fate of the Kingdom of Navarre
	}
}
#(1517-1820) The fate of the Kingdom of Navarre - Ahistorical
event = {
	id = 285280
	trigger = {
		NOT = {
			exists = NAV
			event = 285041 #SPA: The Castilian protectorate of Navarre
			event = 285042 #SPA: The conquest of Navarre
		}
		owned = { province = 428 data = -1 } #Navarra
		control = { province = 428 data = -1 } #Navarra
		atwar = no
	}
	random = no
	country = SPA
	name = "EVENTNAME285280" #The fate of the Kingdom of Navarre
	desc = "EVENTHIST285280"
	#-#Navarre is incorporated in the Kingdom of Spain.

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

	action_a = {
		name = "ACTIONNAME285042A" #Union with Spain has been achieved
		command = { type = addcore which = 428 } #Navarra
		command = { type = add_countryculture which = basque }
	}
}
#End of Navarre Sequence
#-----------------------------------------------------------------------------------------------

#(1500-1505) The Treaty of Granada
#by Bordic from an event of Toio
event = {
	id = 285103
	trigger = {
		NOT = {
			exists = ARG
			event = 111016 #ARG: The Treaty of Granada
		}
		NOT = {
			alliance = { country = FRA country = NAP }
			vassal = { country = FRA country = NAP }
		}
		OR = {
			NOT = {
				alliance = { country = SPA country = NAP }
				vassal = { country = SPA country = NAP }
			}
			NOT = {
				alliance = { country = ARG country = NAP }
				vassal = { country = ARG country = NAP }
			}
		}
		exists = NAP
		event = 170043 #FRA: The Treaty of Granada
	}
	random = no
	country = SPA
	name = "EVENTNAME170043" #The Treaty of Granada
	desc = "EVENTHIST170043"
	#-#Louis XII of Orlans and King of France, as did as his predecessor Charles VIII, invaded Italy to press his claims to both the Visconti inheritance of Milan and the Angevin inheritance of Naples. This time he sought allies before starting a new military campaign in Italy to avoid being isolated.

	date = { day = 11 month = November year = 1500 }
	offset = 35
	deathdate = { day = 11 month = November year = 1505 }

	action_a = {
		name = "ACTIONNAME285103A" #Accept the French offer
		command = { type = war which = NAP }
		command = { type = addcore which = 393 } #napoli
		command = { type = addcore which = 394 } #apulia
		command = { type = relation which = NAP value = -200 }
		command = { type = trigger which = 170164 } #FRA: A new military expedition to Naples
	}
	action_b = {
		name = "ACTIONNAME285103B" #Naples belongs to the crown of Spain only
		command = { type = relation which = FRA value = -70 }
		command = { type = relation which = NAP value = 25 }
		command = { type = addcore which = 393 } #napoli
		command = { type = addcore which = 394 } #apulia
	}
}

#(1500-1515) The border's dispute in Naples
#by Bordic
event = {
	id = 285104
 	trigger = {
		event = 170044 	#FRA: The conquest of Naples
		NOT = { exists = ARG }
		owned = { province = 394 data = -1 } #apulia
	}
	random = no
	country = SPA
	name = "EVENTNAME285104" #The border's dispute in Naples
	desc = "EVENTHIST239018"
	#-#King Federico III of Naples was unable to oppose much resistance, and the French entered Naples in August 1501. Gonzalo Fernndez de Crdoba met more resistance in the siege of Taranto, defended by Federico's son Ferdinando. Ferdinando surrendered Taranto to Spain on March 1502, and Fernando of Aragon did not keep Cordoba's promise of personal freedom to him, asking Cordoba to send him to Spain. His father King Federico III had already ceded the Kingdom to Louis XII King of France, who in exchange for it, appointed him Duke of Anjou. Federico III will die in 1504 in France. In 1550 with the death of his son Ferdinando, who was taken captive in Spain, the line of the House of Trastamara Naples will be definitely extinct. But the Kings had neglected to properly divide the regions of the Kingdom, leaving the Principati, the Basilicata and the Capitanata between both parts unassigned. The French denied that Capitanata (a land on which both Apulia and Abruzzi depended for food and flock wintering) was part of Apulia arguing recent administrative usage, and refused to allow the commissaries of Spain to collect the tolls on migrating flocks as the treaty stipulated. Soon incidents were taking place and open war broke out in July 1502. But the lack of decision by the French to attack when they had the advantage, the skill of Gonzalo Fernndez de Crdoba and the delays of Louis in bringing reinforcements will see the French expelled from Naples in one year. Completely defeated in Naples by Gonzalo Fernndez de Crdoba, Louis XII of France agreed at Blois in October of 1505 to cede his rights over Naples to his relative Germaine de Foix on her marriage to Fernando of Aragon. After the battle of Cerignola on 28 April 1503 Gonzalo Fernndez will be remembered as el Gran Capitn. He introduced many of the reforms that would change the way battles were fought for centuries, and lead to the creation of the Spanish Tercios, and also trained most of the next generation of Spanish commanders.

	date = { day = 11 month = November year = 1500 }
	offset = 90
	deathdate = { day = 11 month = November year = 1515 }

	action_a = {
		name = "ACTIONNAME285104A" #Naples is part of our Kingdom
		command = { type = INF which = 394 value = 8000 } #apulia
		command = { type = relation which = FRA value = -50 }
		command = { type = sleepevent which = 111017 } #ARG: The border's dispute in Naples
	}
}

#(1501-1526) The Trade Center of Sevilla
event = {
	id = 3153
	trigger = {
		owned = { province = 443 data = SPA } #Andalusia
	}
	random = no
	country = SPA
	name = "EVENTNAME3153" #The Trade Center of Sevilla
	desc = "EVENTHIST3153"
	#-#With the discovery of the New World, Seville entered its greatest period of prosperity. It was the chief port of trade with the new colonies. Quickly the Spanish monarchs let it have the monopoly on freights from the Spanish colonies.

	date = { day = 1 month = january year = 1501 }
	offset = 30
	deathdate = { day = 1 month = january year = 1526 }

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

#(1503) the military reforms of el Gran Capitn
#by Daovir and Fodoron with the help of the Spanish forum
event = {
	id = 285081
	random = no
	country = SPA
	name = "EVENTNAME285081" #The military reforms of el Gran Capitn
	desc = "EVENTHIST285081"
	#-#In 1503, the Catholic Kings reorganized their army introducing a new set of regulations. These regulations were the basis for further reforms introduced that year by two military geniuses. Gonzalo de Ayora realized that the military units of the time were too small for the Renaissance wars, and joined several companies under command of captains into a new type of unit that he called colunela (after Italian colonna or column, later regiment) under command of a new type of officer called colonnelo, and later colonel. At the same time, Gonzalo Fernndez de Cordoba, was using his experiences in the wars of Granada and in the first Italian Campaign (1494-1496) to introduce further reforms. From the moors he had learnt to introduce the terrain into the battle equation. From the Swiss at Seminara he learnt the value of pikers armed with swords. He then added two important contributions, a strong sense of loyalty to the general and the King, carefully cultivated to motivate the troops, and the importance of combined arms and firepower for the infantry. He increased the size of his companies to 500 men, of which 200 where pikers, 200 armed with short sword and buckler for short-range combat against enemy pikers, and 100 arquebusiers. This distribution allowed the companies to quickly change from march to combat order, to respond to attack from all sides, and to be effective at all ranges. He then increased the size of his regiments to 12 companies or 6000 infantry, plus 600 cavalry and 20 pieces of artillery. His army could have one or two regiments, being the size of a modern division. These modifications and others related to lines of supplies, intelligence gathering and dynamic defences at encampments resulted in the Spanish infantry being the most modern army of its time and heralded the end of the medieval cavalry. The victories over the French armies that year were continuous: ambush of Barletta, assault on Ruvo, second battle of Seminara, battle of Cerignola, failure of the French invasion of the Rosell, and battle of Garellano. At the capitulation of Gaeta the first of January, 1504, the Kingdom of Naples was won for Spain by el Gran Capitn.

	date = { day = 15 month = february year = 1503 }

	action_a = {
		name = "ACTIONNAME285081A" #A much better army
		command = { type = treasury value = -100 }
		command = { type = land value = 1000 }
		command = { type = domestic which = land value = 1 }
		command = { type = domestic which = offensive value = 1 }
		command = { type = domestic which = quality value = 2 }
		command = { type = gainbuilding which = 436 value = barrack } #Castilla
		command = { type = gainmanufactory which = 433 value = weapons } #Galicia
	}
}

#(1504-1598) The Trastamara inheritance of Naples
#by Bordic
event = {
	id = 285105
	trigger = {
		NOT = { 
			event = 285103 #SPA: The Treaty of Granada
			event = 239037 #NAP: The Crown of Naples
		}
		NOT = { exists = ARG }
	}
	random = no
	country = SPA
	name = "EVENTNAME285105" #The Trastamara inheritance of Naples
	desc = "EVENTHIST285105"
	#-#When Isabel of Castile died, Ferdinand found himself in the position of being both King of Aragon and Sicily and regent of Castile, so that he could focus more on Aragonese ambitions in the Mediterranean and claims to Southern Italian territories as legacy of the Trastamara King Alfons V. The Pope who traditionally considered himself suzerain of all the Italian territories south of the HRE boundaries, islands of Sardinia, Corsica and Sicily included, has always reserved for himself the right to appoint Kings and Dukes whoever he decided as being trustful and deign of Papal investiture. He would have opposed any external interference in his 'sacred' decisions. After Ferdinand's death in 1516, Charles, King of Spain would continue his grand father's expansionistic policy in Italy.

	date = { day = 26 month = November year = 1504 }
	offset = 30
	deathdate = { day = 13 month = September year = 1598 } #Felipe II's death

	action_a = {
		name = "ACTIONNAME285104A" #Naples is part of our Kingdom
		command = { type = addcore which = 393 } #napoli
		command = { type = addcore which = 394 } #apulia
		command = { type = relation which = PAP value = -25 }
	}
	action_b = {
		name = "ACTIONNAME285105B" #We shall respect Pope's suzerainty
		command = { type = vp value = -5 }
		command = { type = removecore which = 393 } #Napoli 
		command = { type = removecore which = 394 } #Apulia
		command = { type = relation which = PAP value = 25 }
		command = { type = relation which = FRA value = 25 }
		command = { type = sleepevent which = 239037 } #NAP: The Crown of Naples
	}
}

#(1505-1598) The Crown of Naples (event helper for Spanish historical annexation of Naples)
#by Bordic
event = {
	id = 285333 #triggered by NAP_239037
	random = no
	country = SPA
	name = "EVENTNAME285333" #The Crown of Naples
	desc = "EVENTHIST285333"
	#-#In 16th century the Kingdom of Naples was at its most: flourishing economy and Arts, still good trade routes between the Middle East and the rest of Europe. Unfortunately, a powerful economy is not always being represented by a powerful ruler. Expecially the throne of Naples being claimed by two of the most powerful courts in Europe of those times, Spain and France. In his very expensive rush to the leading role of Western Europe still contested by the untamed King of France, the King of Spain eventually made the decision to send troops, officers and insignia to the capital city of the Southern Italian Kingdom in order to press claims on the crown of Naples definitively. Despite Papal firm opposition but in accordance with treaties stipulated with France which stated the definitive Spanish hegemony in the Italian Peninsula, the King of Spain was certain that his move wouldn't have found any local hostility...

	action_a = {
		name = "ACTIONNAME285333A" #We grabbed Naples at last!
		command = { type = addcore which = 393 } #Napoli
		command = { type = addcore which = 394 } #Apulia
		command = { type = inherit which = NAP }
		command = { type = relation which = PAP value = -40 }
		command = { type = relation which = FRA value = -25 }
	}
}

#(1508-1509) The League of Cambrai
#Modified by Isaac Brock
event = {
	id = 17020
	trigger = {
		event = 17017 #VEN: Seeing a Chance in Romagna
		exists = VEN
		NOT = { exists = ARG }
		OR = {
			event = 3107 #FRA: The League of Cambrai
			event = 17023 #FRA: The League of Cambrai (HAB doesn't exists)
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME3107" #The League of Cambrai
	desc = "EVENTHIST3107"
	#-#Since 1495, Venice had been holding the main ports of Apulia despite Aragonese claims to have them back. With the French invasion of Milan, Venice had acquired Milanese territories east of the Adda River, and upon the fall of Cesare Borgia had also acquired Rimini, Faenza and Ravenna, against the will of Pope Julius II. The Venetians also held Veneto and Friuli, on which Maximilian of Habsburg had imperial claims. In late 1507 Maximilian announced his intention to travel to Italy to receive the imperial investiture from the Pope himself, and in early 1508 he assembled a big army to escort him down to Rome. He requested free passage through Venetian territories, but was told that he would be allowed passage only without his army. Enraged at the answer, Maximilian attacked Venice, but this decision proved unwise: Venice not only routed the imperial army but also seized the imperial cities of Trieste, Gorz and Fiume. A second assault by a Tyrolean force several weeks later was an even greater failure, forcing Maximilian to conclude a humiliating three-year truce. With Pope Julius II's assent, Maximilian took the title of 'Emperor-elect', thus breaking the century-old custom that the Holy Roman Emperor had to be crowned by the Pope. Shortly afterward, Venice provided a pretext for war by appointing her own candidate to the vacant bishopric of Vicenza. The Emperor, the King of France and Ferdinand of Aragon gathered in Cambrai in December 1508 to sign a treaty which seemed to be a defensive alliance against the Turk. In reality they meant to form a league to attack Venice and deprive the Serenissima of most of her mainland territories. Pope Julius II, after a renewed Venetian refusal to give the Romagna lands back to the Papacy, ratified the treaty and at the same time proceeded to excommunicate all Venetian citizens. Ferrara and Mantua, each with separate claims to territories held by Venice, joined the league as well. In April 1509 military operations started, and a month later French troops decimated one of the two Venetian armies at the battle of Agnadello. Even though in August 1509 Venice managed to eliminate Mantua from the war, she still faced the collapse of her strategic position and had by February 24, 1510 to accept the papal demands on the cities she had occupied in Romagna. However, Pope Julius II was still not satisfied and demanded that the war be prosecuted until Venice conceded control over their church to the Pope and compensated him for his expenses. The Council of Ten had privately resolved that the terms had been accepted under duress and were therefore invalid, and that Venice should violate them at the earliest opportunity. This opportunity presented itself shortly afterward.

	date = { day = 10 month = December year = 1508 }
	offset = 20
	deathdate = { day = 1 month = April year = 1509 }

	action_a = {
		name = "ACTIONNAME3107A" #Express Support
		command = { type = casusbelli which = VEN value = 36 }
		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 = FRA value = 150 }
		command = { type = relation which = BUR value = 200 }
	}
	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 = 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 = FRA value = -150 }
	}
}

#(1510-1512) Holy League of 1510 Spanish Version
event = {
	id = 17027
	trigger = {
		OR = {
			event = 17024 #PAP: The Holy League against France
			event = 236006 #MUS: The Holy League against France
		}
		NOT = { exists = ARG }
		NOT = { event = 17026 } #ARG: The Holy League against France
	}
	random = no
	country = SPA
	name = "EVENTNAME17024" #The Holy League against France
	desc = "EVENTHIST17024"
	#-#In 1510 Venice submitted to the Pope, thus lessening the league of Cambrai. Conditions were hard for Venice, the Republic had to renounce her traditional power to appoint bishops as well as all jurisdiction over Papal subjects in Venetian territory and was to compensate Pope Julius II for his war expenses needed to recapture the Papal holdings in Romagna, while the Pope accepted the humble request of the Republic for pardon, cancelling the interdict. But the reconciliation between Venice and the Pope did not stop the French to continue the war against Venice with attacks to her cities in Terraferma. Julius II, in the meanwhile, had become increasingly concerned by the growing French presence in Italy and formulated plans, both to chase the French out of the Po Valley and to seize the Duchy of Ferrara, a French ally, with the intention to add the territories of Modena, Reggio and Ferrara to the Papal States. In realizing his plan the Pope immediately excommunicated Alfonso d'Este, Duke of Ferrara, declaring his fief forfeited for his remaining loyal to France, then he gained the military support of Venice, eager to recover her territories lost to the French a armies and hired an army of Swiss mercenaries to attack Milan as to isolate the French armies in Italy. However his plans failed as the French army managed to invade Romagna and occupy the cities of Bologna and Ravenna, supported by the powerful and celebrated artillery of Duke Alfonso d'Este. In addition, in response to Pope's switching sides, Louis XII of France convoked a Schismatic Council at Pisa as to have the 'Warrior Pope' deposed. Pope Julius II, having unsuccessfully pressed the Republic of Florence to refuse hosting the schismatic cardinals, proclaimed the Holy League against France and convoked a Council of his own to meet at the Lateran in Rome. The promise of territorial gains at French expense caused Ferdinand II of Aragon and Emperor Maximilian I to abandon their alliance with the French, and in October 1511, they joined the newly-formed Holy League together with Julius II and the Republic of Venice. In November, Henry VIII of England and the Swiss confederation joined as well.

	date = { day = 10 month = October 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 }
		command = { type = relation which = BUR value = 200 }
	}
	action_b = {
		name = "ACTIONNAME17024B" #Stay neutral
		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 }
	}
}

#(1516) Death of Fernando of Aragon
#by sturmvogel
event = {
	id = 285223
	trigger = {
		OR = {
			monarch = 0127500 #Isabel y Fernando
			monarch = 0127526 #Fernando I
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285223" #Death of Fernando of Aragon
	desc = "EVENTHIST285223"
	#-#The death of King Fernando of Aragon weakened the authority of the Crown of Spain over the separate crowns of Aragon because it now lacked anyone who knew the players and the system well enough to get them to do the royal bidding. The various governments of Aragon took advantage of the inexperienced Burgundians who came with Carlos I to reassert their ancient rights and privileges.

	date = { day = 23 month = january year = 1516 }

	action_a = {
		name = "DAMN"
		command = { type = domestic which = centralization value = -1 }
		command = { type = remove_countryculture which = catalan }
		command = { }
	}
}

#(1517) Spain inherits Burgundy
event = {
	id = 285100 #triggered by BUR_137003 A / BUR_137005
	random = no
	country = SPA
	name = "EVENTNAME285100" #The Burgundian inheritance
	desc = "EVENTHIST285100"
	#-#When Fernando of Aragon died in 1516, Charles who had already inherited Burgundy from his father Philip the Fair in 1506 was heir to the thrones of Castile and Aragon. He set sails for his coronation as King of Spain on September 18th 1517. Although in the first years of his reign the Dutch influence in his empire remained strong, his united possessions became known as Spain.

	action_a = {
		name = "ACTIONNAME285100A" #Charles is master of the world
		command = { type = addcore which = 377 } #Luxembourg
		command = { type = addcore which = 378 } #Brabant
		command = { type = addcore which = 380 } #Flandern
		command = { type = addcore which = 339 } #Holland
		command = { type = addcore which = 340 } #Zeeland
		command = { type = addcore which = 387 } #Franche-Comt
		command = { type = addcore which = 409 } #Bourgogne
		command = { type = addcore which = 379 } #Artois
		command = { type = inherit which = BUR }
		command = { type = add_countryculture which = dutch } #Controversial, but Charles deserves Dutch more than Iberian; should be removed by his abdication
	}
}
#(1517) Charles of Burgundy inherits Spain
event = {
	id = 285101 #triggered by BUR_137003 B
	random = no
	country = SPA
	name = "EVENTNAME285101" #Charles of Burgundy inherits Spain
	desc = "EVENTHIST285101"
	#-#When Fernando of Aragon died in 1516, Charles who had already inherited Burgundy from his father Philip the Fair in 1506 was heir to the thrones of Castile and Aragon. He set sails for his coronation as King of Spain on September 18th 1517. He has decided to make Spain merely a side country and to administrate his empire from Brussels.

	action_a = {
		name = "ACTIONNAME285101A" #Accept Charles' wise decision (End Game)
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = desertion which = -1 value = 5000 }
		command = { type = desertion which = -1 value = 5000 }
		command = { type = desertion which = -1 value = 5000 }
		command = { type = desertion which = -1 value = 5000 }
		command = { type = cedeprovince which = BUR value = 427 } #Gerona
		command = { type = cedeprovince which = BUR value = 429 } #Catalonia
		command = { type = cedeprovince which = BUR value = 430 } #Aragon
		command = { type = cedeprovince which = BUR value = 431 } #Cantabria
		command = { type = cedeprovince which = BUR value = 432 } #Asturias
		command = { type = cedeprovince which = BUR value = 433 } #Galicia
		command = { type = cedeprovince which = BUR value = 435 } #Leon
		command = { type = cedeprovince which = BUR value = 436 } #Castilla
		command = { type = cedeprovince which = BUR value = 437 } #Valencia
		command = { type = cedeprovince which = BUR value = 438 } #Murcia
		#command = { type = cedeprovince which = BUR value = 439 } #Toledo (if capital, CTD)
		command = { type = cedeprovince which = BUR value = 440 } #Estramadura
		command = { type = cedeprovince which = BUR value = 443 } #Andalusia
		command = { type = cedeprovince which = BUR value = 444 } #Granada
		command = { type = cedeprovince which = BUR value = 445 } #Gibraltar
		command = { type = cedeprovince which = BUR value = 817 } #The Canary Islands
		command = { type = cedeprovince which = BUR value = 821 } #The Baleares
		command = { type = cedeprovince which = BUR value = 393 } #Napoli
		command = { type = cedeprovince which = BUR value = 394 } #Apulia
		command = { type = cedeprovince which = BUR value = 395 } #Messina
		command = { type = cedeprovince which = BUR value = 396 } #Sicily
		command = { type = cedeprovince which = BUR value = 397 } #Sardinia
		command = { type = cedeprovince which = BUR value = 426 } #Roussillon
		command = { type = cedeprovince which = BUR value = 428 } #Navarra
		command = { type = trigger which = 137004 } #BUR: Spain unified with Burgundy
	}
	action_b = {
		name = "ACTIONNAME285101B" #Spain cannot accept this
		command = { type = stability value = -3 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
	}
}
#(1517) Spain inherits Burgundy (Burgundy does not exist)
event = {
	id = 285040
	trigger = {
		OR = {
			event = 3178 #HAB: The Habsburg inheritance of Burgundy (1477)
			event = 137012 #BUR: Settlement at Arras (1482-1492)
			event = 137021 #BUR: The new Archduke of Burgundy (1494)
		}
		NOT = {
			exists = BUR
			event = 137003 #BUR: Charles ascends the Spanish throne
			event = 137005 #BUR: Charles ascends the Spanish throne
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285100" #The Burgundian inheritance
	desc = "EVENTHIST285100"
	#-#When Fernando of Aragon died in 1516, Charles who had already inherited Burgundy from his father Philip the Fair in 1506 was heir to the thrones of Castile and Aragon. He set sails for his coronation as King of Spain on September 18th 1517. Although in the first years of his reign the Dutch influence in his empire remained strong, his united possessions became known as Spain.

	date = { day = 19 month = september year = 1517 }

	action_a = {
		name = "ACTIONNAME285040A" #I shall regain the lands of my ancestors
		command = { type = addcore which = 377 } #Luxembourg
		command = { type = addcore which = 378 } #Brabant
		command = { type = addcore which = 380 } #Flandern
		command = { type = addcore which = 339 } #Holland
		command = { type = addcore which = 340 } #Zeeland
		command = { type = addcore which = 387 } #Franche-Comt
		command = { type = addcore which = 409 } #Bourgogne
		command = { type = addcore which = 379 } #Artois
		#Controversial, but Charles deserves Dutch more than Iberian; should be removed by his abdication
		command = { type = add_countryculture which = dutch }
	}
}

#(1517-1519) The Burgundian court
#by Bordic, text by Fodoron
event = {
	id = 285205
	trigger = {
		core = { province = 387 data = -1 } #Franche-Comt (part of the Burgundian inheritance)
	}
	random = no
	country = SPA
	name = "EVENTNAME285205" #The Burgundian court
	desc = "EVENTHIST285205"
	#-#Charles of Ghent, Duke of Burgundy, Carlos I of Spain, Charles V Holy Roman Emperor. By inheritance he was the ruler of a vast European empire. Intelligent and capable, he spoke French, German, Spanish and Italian. He was loyaly served by Flemish, Waloons, Germans, French, Spanish and Italians. From his international armies to his international councils, the Spanish monarchy was no longer only that, it was European.

	date = { day = 21 month = september year = 1517 }
	offset = 1
	deathdate = { day = 0 month = january year = 1519 }

	action_a = {
		name = "ACTIONNAME285205A" #Up the Burgundian King!
		command = { type = flagname which = "Saltire" } #Burgundian Cross
		command = { type = revoltrisk which = 60 value = -5 }
		command = { type = relation which = HAB value = 50 }
		command = { type = relation which = FRA value = -50 }
		command = { type = wakeleader which = 0127852 } #Carlos de Lannoy (SPA)
		command = { type = wakeleader which = 0127878 } #Lamoral Egmont (SPA)
		command = { type = wakeleader which = 0127848 } #Luis de Bette (SPA)
		command = { type = sleepevent which = 137016 } #BUR: Charles' residence and insignia
	}
}

#(1518) The candidate to the imperial crown
event = {
	id = 285251 #triggered by HAB_179088
	random = no
	country = SPA
	name = "EVENTNAME179088" #The candidate to the imperial crown
	desc = "EVENTHIST179088"
	#-#In the same way as his father did for him, at the end of his life Emperor Maximilian made attempts to keep the imperial title amongst the members of the House of Habsburg. But his son Philip died unexpectedly early in 1506, leaving two male heirs, Charles and Ferdinand which were respectively born in 1500 and 1503. Maximilian decided to support Charles, who in 1516 was already Archduke of Burgundy, King of Spain, Sicily and Naples, in his investiture as King of the Romans and future Holy Roman Emperor. But this diplomatic move would have been very expensive. Most of the German princes were already supporting the French candidate, King Franois Ier. Maximilian seemed to successfully convoy the favour of the imperial electors towards the Habsburg cause, by means of granting investitures and making promises of large sums of money with the help of bankers such as the Fuggers and the Welsers. The Pope, who couldn't accept the presence of an Emperor with territorial claims in Italy as it was under the rule of Emperor Frederick II, would have supported a German prince like Friedrich III of Saxony, with no particular interest laying beyond the Alps. Looking for international credit, also Henry VIII King of England took part in the imperial election offering his candidature but withdrew soon after the first consultations.

	action_a = {
		name = "ACTIONNAME285251A" #We have a good chance to get the title
		command = { type = treasury value = -700 }
		command = { type = relation which = PAP value = -30 }
		command = { type = relation which = BAY value = 150 }
		command = { type = relation which = BOH value = 150 }
		command = { type = relation which = BRA value = 150 }
		command = { type = relation which = BRE value = 150 }
		command = { type = relation which = HAB value = 150 }
		command = { type = relation which = HAN value = 150 }
		command = { type = relation which = HES value = 150 }
		command = { type = relation which = KLE value = 150 }
		command = { type = relation which = KOL value = 150 }
		command = { type = relation which = LOR value = 150 }
		command = { type = relation which = MAI value = 150 }
		command = { type = relation which = MEC value = 150 }
		command = { type = relation which = BRG value = 150 }
		command = { type = relation which = OLD value = 150 }
		command = { type = relation which = PFA value = 150 }
		command = { type = relation which = POM value = 150 }
		command = { type = relation which = SEI value = 150 }
		command = { type = relation which = PRU value = 150 }
		command = { type = relation which = ROM value = 150 }
		command = { type = relation which = SAC value = 150 }
		command = { type = relation which = SHL value = 150 }
		command = { type = relation which = STR value = 150 }
		command = { type = relation which = STT value = 150 }
		command = { type = relation which = TYR value = 150 }
		command = { type = relation which = MEI value = 150 }
		command = { type = relation which = WUR value = 150 }
	}
	action_b = {
		name = "ACTIONNAME285251B" #We may have enough chance
		command = { type = treasury value = -300 }
		command = { type = relation which = PAP value = -15 }
		command = { type = relation which = BAY value = 50 }
		command = { type = relation which = BOH value = 50 }
		command = { type = relation which = BRA value = 50 }
		command = { type = relation which = BRE value = 50 }
		command = { type = relation which = HAB value = 50 }
		command = { type = relation which = HAN value = 50 }
		command = { type = relation which = HES value = 50 }
		command = { type = relation which = KLE value = 50 }
		command = { type = relation which = KOL value = 50 }
		command = { type = relation which = LOR value = 50 }
		command = { type = relation which = MAI value = 50 }
		command = { type = relation which = MEC value = 50 }
		command = { type = relation which = BRG value = 50 }
		command = { type = relation which = OLD value = 50 }
		command = { type = relation which = PFA value = 50 }
		command = { type = relation which = POM value = 50 }
		command = { type = relation which = SEI value = 50 }
		command = { type = relation which = PRU value = 50 }
		command = { type = relation which = ROM value = 50 }
		command = { type = relation which = SAC value = 50 }
		command = { type = relation which = SHL value = 50 }
		command = { type = relation which = STR value = 50 }
		command = { type = relation which = STT value = 50 }
		command = { type = relation which = TYR value = 50 }
		command = { type = relation which = MEI value = 50 }
		command = { type = relation which = WUR value = 50 }
	}
	action_c = {
		name = "ACTIONNAME285251C" #We may have little chance
		command = { type = treasury value = -200 }
		command = { type = relation which = BAY value = 25 }
		command = { type = relation which = BOH value = 25 }
		command = { type = relation which = BRA value = 25 }
		command = { type = relation which = BRE value = 25 }
		command = { type = relation which = HAB value = 25 }
		command = { type = relation which = HAN value = 25 }
		command = { type = relation which = HES value = 25 }
		command = { type = relation which = KLE value = 25 }
		command = { type = relation which = KOL value = 25 }
		command = { type = relation which = LOR value = 25 }
		command = { type = relation which = MAI value = 25 }
		command = { type = relation which = MEC value = 25 }
		command = { type = relation which = BRG value = 25 }
		command = { type = relation which = OLD value = 25 }
		command = { type = relation which = PFA value = 25 }
		command = { type = relation which = POM value = 25 }
		command = { type = relation which = SEI value = 25 }
		command = { type = relation which = PRU value = 25 }
		command = { type = relation which = ROM value = 25 }
		command = { type = relation which = SAC value = 25 }
		command = { type = relation which = SHL value = 25 }
		command = { type = relation which = STR value = 25 }
		command = { type = relation which = STT value = 25 }
		command = { type = relation which = TYR value = 25 }
		command = { type = relation which = MEI value = 25 }
		command = { type = relation which = WUR value = 25 }
	}
	action_d = {
		name = "ACTIONNAME285251D" #We have no chance to persuade the electors
		command = { type = stability value = -1 }
		command = { type = DIP which = -2 value = 6 }
		command = { type = relation which = HAB value = -50 }
		command = { type = relation which = FRA value = 50 }
		command = { type = relation which = PAP value = 50 }
		command = { type = vp value = -5 }
	}
}

#(1518-1519) Magellan's Expedition by Bordic
event = {
	id = 285065
	random = no
	country = SPA
	name = "EVENTNAME285065" #Magellan's Expedition
	desc = "EVENTHIST285065"
	#-#In 1519 the King commissioned the Portuguese-born Magellan to reach the Spice Islands by sailing west around South America. After many hardships he succeeded in reaching and then sailing across the Pacific Ocean. Soon thereafter he was killed while trying to subdue the natives on what is now the island of Mactan in the Philippines. After still more hardships, one of his original five ships, Victoria, commanded by J. Sebastin Elcano eventually made it back to Spain. Only 18 out of initial approximatively 260 crew members made return to Spain after 3 years of navigation. Magellan's expedition was the first to circumnavigate the globe definitively proving the roundness of the earth and the first to navigate the strait in South America connecting the Atlantic and Pacific Oceans. Antonio Pigafetta, a wealthy tourist who paid to be on the voyage, kept an accurate journal of the trip and provided the only extant eyewitness account of the events culminating in Magellan's death.

	date = { day = 20 month = february year = 1518 }
	offset = 20
	deathdate = { day = 10 month = august year = 1519 }

	action_a = {
		name = "ACTIONNAME285065A" #The world is round
		command = { type = wakeleader which = 0127812 } #J.Sebastin Elcano (SPA)
		command = { type = wakeleader which = 0127813 } #Fernando Magallanes (SPA)
		command = { type = warships which = -1 value = 3 }
		command = { type = treasury value = -50 }
	}
	action_b = {
		name = "ACTIONNAME285065B" #The world is flat
		command = { type = vp value = -10 }
		command = { type = land value = 100 }
		command = { type = sleepevent which = 326032 } #VEN: Pigafetta's Report
		command = { type = sleepevent which = 285066 } #SPA: Pigafetta's Report
	}
}

#(1519) The Habsburg inheritance
event = {
	id = 285259
	trigger = {
		exists = HAB
		NOT = {
			war = { country = SPA country = HAB }
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285259" #The Habsburg inheritance
	desc = "EVENTHIST285259"
	#-#In 1496, when the King of Aragon Ferdinand and the Queen of Castile Isabella married their heir Joan the Mad to Habsburg heir Philip the Fair, they started the historical union between what would be called the Spanish and the Austria Habsburgs. The son from this marriage, Charles V, would become the emperor of the largest territory in Western Europe, having inherited the lands of Castile, Aragon, Burgundy and Austria. The Habsburgs would pursue this intra-family wedding policy till the end of the 17th century. From which dynastic line should the Habsburg dominions be ruled?

	date = { day = 1 month = january year = 1519 }
	offset = 5
	deathdate = { day = 1 month = january year = 1520 }

	action_a = {
		name = "ACTIONNAME285259A" #The Spanish line will rule
		command = { type = relation which = HAB value = 400 }
		command = { type = dynastic which = HAB }
		command = { type = alliance which = HAB }
		command = { type = treasury value = 500 }
		command = { type = domestic which = ARISTOCRACY value = 2 }
		command = { type = domestic which = CENTRALIZATION value = -1 }
		#Austrian Habsburg dominions
		command = { type = cedeprovince which = HAB value = 350 } #Salzburg
		command = { type = cedeprovince which = HAB value = 351 } #Austria
		command = { type = cedeprovince which = HAB value = 367 } #Krain
		command = { type = cedeprovince which = HAB value = 369 } #Steiermark
		command = { type = cedeprovince which = HAB value = 371 } #Tirol
		command = { type = cedeprovince which = HAB value = 373 } #Baden (Breisgau)
		command = { type = trigger which = 179085 } #HAB: The Habsburg inheritance
	}
	action_b = {
		name = "ACTIONNAME285259B" #The Austrian line will rule
		command = { type = stability value = -1 }
		command = { type = infra value = 500 }
		command = { type = diplomats value = -6 }
		#Austrian Habsburg dominions
		command = { type = cedeprovince which = HAB value = 350 } #Salzburg
		command = { type = cedeprovince which = HAB value = 351 } #Austria
		command = { type = cedeprovince which = HAB value = 367 } #Krain
		command = { type = cedeprovince which = HAB value = 369 } #Steiermark
		command = { type = cedeprovince which = HAB value = 371 } #Tirol
		command = { type = cedeprovince which = HAB value = 373 } #Baden (Breisgau)
		command = { type = trigger which = 179095 } #HAB: The Habsburg inheritance
		command = { type = trigger which = 179138 } #HAB: The Habsburg inheritance (No Spanish Low Countries)
	}
}

#(1519) The Fuggers
#Paradox event modified by Fodoron
event = {
	id = 3154
	random = no
	country = SPA
	name = "EVENTNAME3154" #The Fuggers
	desc = "EVENTHIST3154"
	#-#The Fuggers were a peasant family of weavers from Augsburg during the 15th Century who rose through trade and transactions in money to Bankers of the Habsburgs and the Popes. Jakob Fugger the Rich (1511-1525) controlled European lead, silver and copper production and obtained a monopoly in quicksilver. Anton Fugger (1525-1560) had trading concessions in Chile, Peru and Moscow. However, the company declined by the end of the 16th Century because of state bankruptcies in Spain, family conflicts and lack of interest on the part of the heirs. Financial support from Jakob Fugger allowed young Carlos to win the Imperial crown over a more prestigious Franois Ier, something that the King of France never forgave him. However the rents of Castile were mortgaged for several years to pay back the 850,000 florins loaned by the Fuggers at high interest, and the added taxation greatly increased the unhappiness of the Castilians with their foreign King.

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

	action_a = {
		name = "ACTIONNAME3154A" #Let the Fuggers run our Finances
		command = { type = loansize which = 300 }
		command = { type = treasury value = 100 }
		command = { type = merchants value = 6 }
		command = { type = inflation value = -5 }
		command = { type = province_revoltrisk which = 436 value = 8 } #Castilla
		command = { type = province_revoltrisk which = 435 value = 8 } #Leon
		command = { type = province_revoltrisk which = 439 value = 8 } #Toledo
		command = { type = stability value = -1 }
	}
	action_b = {
		name = "ACTIONNAME3154B" #Turn the Fuggers offer down
		command = { type = treasury value = -100 }
		command = { type = stability value = 1 }
		command = { type = inflation value = 2 }
		command = { type = sleepevent which = 3155 } #SPA: The Comuneros
		command = { type = sleepevent which = 285114 } #SPA: The Comuneros
	}
}

#(1519-1522) The Question of Milan (MLO could not exist)
#by Bordic
event = {
	id = 285221
	trigger = {
		OR = {
			AND = {
				event = 179026 #HAB: The Question of Milan
				emperor = no
			}
			emperor = yes
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME179026" #The Question of Milan
	desc = "EVENTHIST285221"
	#-#After the death of his grandfather the Emperor Maximilian I of Austria on 28 June 1519 Charles, King of Spain and Duke of Burgundy, became Holy Roman Emperor thanks to the money of his bankers (Fuggers and Welsers mainly) in a very expensive struggle with Franois Ier, King of France. Having proclaimed himself as the only legitimate heir of Charlemagne, the first Holy Roman Emperor, Franois Ier had announced his candidature to the imperial election. Commonly all the electors were bribed in order to obtain their much desired vote, but Charles 'bought' the Imperial title by paying the Great Electors and their emissaries the huge sum of 850,000 golden florins (equal to a value of 2,100 kilograms of gold). That money was advanced by his bankers in anticipation of several years worth of Castilian rents. Charles's election was also eased by the Army of the Svevian league, which impressed the doubtful electors when chasing the Duke of Wrttemberg, chief of the pro-French party, out of his duchy. That denied Franois his last remote chance to win the election. Being elected Holy Roman Emperor as Charles V, Charles (Karl in the German world or Carlos in Spain) of the House of Habsburg became suzerain of all the fiefs in the Holy Roman Empire. Amongst them the Duchy of Milan together with its sovereignty over the Republic of Genoa formed the beginning of the so-called 'Spanish Road' a critical route that allowed communication by land between the Habsburgs's dominions.

	date = { day = 15 month = January year = 1519 }
	offset = 15
	deathdate = { day = 26 month = April year = 1522 }

	action_a = {
		name = "ACTIONNAME285221A" #We need Milan to get control over Italy
		command = { type = stability value = 1 }
		command = { type = addcore_national which = 389 } #Lombardia
		command = { type = relation which = FRA value = -30 }
		command = { type = relation which = HAB value = 50 }
		command = { type = relation which = MLO value = 30 }
	}
	action_b = {
		name = "ACTIONNAME285221B" #Too expensive!
		command = { type = vp value = -10 }
		command = { type = independence which = MLO }
		command = { type = cedeprovince which = PAP value = 402 } #Emilia
		command = { type = relation which = FRA value = 30 }
		command = { type = sleepevent which = 179026 } #HAB: The Question of Milan
		command = { type = sleepevent which = 12026 } #SPA: The Spanish Road
		command = { type = sleepevent which = 228030 } #MLO: The allegiance to the Emperor
		command = { type = sleepevent which = 170048 } #FRA: French Encirclement by the Habsburgs
	}
}

#-----------------------------------------------------------------------------------------------
#The Encomiendas Sequence

#(1519-1527) The Encomiendas
#by Fodoron
event = {
	id = 285045
	trigger = {
		OR = {
			owned = { province = 137 data = -1 } #Havana
			owned = { province = 138 data = -1 } #Moron
			owned = { province = 139 data = -1 } #Guantanamo
			owned = { province = 143 data = -1 } #Barahona
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285045" #The Encomiendas
	desc = "EVENTHIST285045"
	#-#With the discovery of the New World, the Spanish had to decide what to do with their new subjects. Unlike the Muslims, that could be enslaved, pagans were seen as not having rejected Christianity, and hence entitled to freedom and religious education. To educate and indoctrinate the indians, a feudal institution was transplanted from Spain to the New World in 1493: the encomienda. Within this system, a group of indians were entrusted to the encomendero, who theoretically had no jurisdiction over them, and had to provide for their instruction and indoctrination and could not mistreat them. In exchange the encomendero was to receive tributes from his indians, in the form of indian products or labor. The system could not work with an ocean between the rulers and the colonists, and soon the encomenderos were taking the land from the indians in their encomienda, and exploiting them cruelly, often to death. Although the production and trade of the colonies increased on the slave work of the indians, soon voices raised against the inhumane treatment of the indians and their likely consequences. Between them, the most ardent advocate of the indians was Fray Bartolome de las Casas, a Dominican priest, that had been an encomendero himself. But the encomenderos were the political force in the colonies, and they were not willing to renounce to the source of their wealth. They claimed that without indian labor the economy of the colonies would collapse. At the same time, the encomiendas served as a great incentive for the conquests of the continent, as the conquistadors granted the conquered land and indians as encomiendas to their soldiers.

	date = { day = 12 month = october year = 1519 }
	offset = 2000
	deathdate = { day = 15 month = march year = 1527 }

	action_a = {
		name = "ACTIONNAME285045A" #We must further investigate the issue
		command = { type = badboy value = 1 }
		command = { type = population which = 137 value = -200 } #Havana
		command = { type = population which = 138 value = -200 } #Moron
		command = { type = population which = 139 value = -200 } #Guantanamo
		command = { type = population which = 141 value = -200 } #Les Cayes
		command = { type = population which = 143 value = -200 } #Barahona
	}
	action_b = {
		name = "ACTIONNAME285045B" #Set the indians free
		command = { type = badboy value = -1 }
		command = { type = provincetax which = 138 value = -1 } #Moron
		command = { type = provincetax which = 139 value = -1 } #Guantanamo
		command = { type = provincetax which = 137 value = -1 } #Havana
		command = { type = provincetax which = 141 value = -1 } #Les Cayes
		command = { type = provincetax which = 143 value = -1 } #Barahona
		command = { type = revolt which = 139 } #Guantanamo
		command = { type = revolt which = 137 } #Havana
		command = { type = revolt which = 143 } #Barahona
		command = { type = sleepevent which = 285046 } #SPA: The New Law
		command = { type = sleepevent which = 285047 } #SPA: The rebellion of the encomenderos
	}
}
#(1542) The New Laws
#by Fodoron
event = {
	id = 285046
	random = no
	country = SPA
	name = "EVENTNAME285046" #The New Law
	desc = "EVENTHIST285046"
	#-#Fray Bartolome de las Casas was not alone in his defense of Indian rights. Many other priests and some officials in the colonies denounced the abuses and atrocities. The Emperor and his court were horrified. After the conquest of New Spain (the Inca), Charles was displeased in the bloody way that it had been conducted by Pizarro and decided to regulate the treatment and rights of the Indians through legislation, according to the advice from Las Casas. The New Laws enacted in 1542 forbade any kind of slavery and forced labor, allowed ownership of land by the Indians, and stated that the Church had no authority over non-Christian natives. They also forbade the stablishment of new encomiendas and reduced the size of existing ones. The New Laws caused quite a stir in the colonies and it was predicted that they would bring ruin to the colonists.

	date = { day = 20 month = november year = 1542 }

	action_a = {
		name = "ACTIONNAME285046A" #We must protect the Indians or there will be no one left to baptize
		command = { type = stability value = -1 }
		command = { type = revoltrisk which = 24 value = 2 }
	}
	action_b = {
		name = "ACTIONNAME285046B" #Who cares about the Indians
		command = { type = population which = 165 value = -500 } #Cajamarca
		command = { type = population which = 166 value = -500 } #Huanuco
		command = { type = population which = 167 value = -500 } #Ayacucho
		command = { type = population which = 168 value = -500 } #Lima
		command = { type = population which = 169 value = -500 } #Cuzco
		command = { type = population which = 170 value = -500 } #Arequipa
		command = { type = population which = 171 value = -500 } #Moquega
		command = { type = population which = 172 value = -500 } #Arica
		command = { type = sleepevent which = 285047 } #SPA: The rebellion of the encomenderos
	}
}
#(1544) The Rebellion of the Encomenderos
#by Fodoron
event = {
	id = 285047
	random = no
	country = SPA
	name = "EVENTNAME285047" #The Rebellion of the Encomenderos
	desc = "EVENTHIST285047"
	#-#With the New Laws that changed the system of encomiendas, the conquistadors believed that the King was depriving them of the just reward for their efforts and suffering. When the intransigent Viceroy Blasco Nuez de Vela arrived to Lima to enforce the New Laws, a rebellion of encomenderos started in Peru, leaded by Gonzalo Pizarro, brother of Francisco. After killing the Viceroy, part of the rebels sailed to Panama, conquering the city. The rebellion lasted for four years, until 1548, when Gonzalo Pizarro was defeated in the battle of Jaquijahuana and beheaded. However the rebellions and protests had two important effects. The New Laws were amended, and although the slavery continued abolished, and the worst abuses prevented, the encomiendas were in fact sanctioned, much to the dismay of Las Casas. Similar systems to the encomiendas were also implemented by Portugal, France and Holland in their colonies. The other important effect was that the Royal Council forbade any new conquest unless the Council of the Indies deemed them esential. This policy was reversed in the 1560s due to the advance of the rival European powers.

	date = { day = 15 month = may year = 1544 }

	action_a = {
		name = "ACTIONNAME285047A" #Put an end to the power of the conquistadores
		command = { type = desertion which = 168 value = 10000 } #Lima
		command = { type = revolt which = 167 } #Ayacucho
		command = { type = revolt which = 168 } #Lima
		command = { type = revolt which = 169 } #Cuzco
		command = { type = revolt which = 170 } #Arequipa
		command = { type = revolt which = 39 } #Isthmus
	}
}
#End of The Encomiendas Sequence
#-----------------------------------------------------------------------------------------------

#(1519-1522) The Spanish Road
#by Bordic
event = {
	id = 12026
	trigger = {
		event = 285221 #SPA: The Question of Milan
		exists = MLO
		OR = {
			event = 228030 #MLO: The allegiance to the Emperor
			MLO = { isvassal = no }
		}
		NOT = {
				vassal = { country = MLO country = SPA }
				exists = ITA
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME12026" #The Spanish Road
	desc = "EVENTHIST12026"
	#-#Being elected Holy Roman Emperor as Charles V, Charles (Karl in the German world or Carlos in Spain) of the House of Habsburg obtained the rights of suzerainty over all the fiefs in the Holy Roman Empire. Amongst them the Duchy of Milan together with its sovereignty of the Republic of Genoa represented an important junction in the Habsburg's dominions, the so-called 'Spanish road'.

	date = { day = 26 month = June year = 1519 }
	offset = 20
	deathdate = { day = 26 month = April year = 1522 }

	action_a = {
		name = "ACTIONNAME12026A" #Milan is now a matter of the Spanish-Habsburgs
		command = { type = vassal which = MLO }
		command = { type = relation which = PAP value = 50 }
		command = { type = relation which = MLO value = 50 }
		command = { type = relation which = HAB value = 50 }
		command = { type = relation which = HEL value = 25 }
		command = { type = relation which = MOD value = -75 }
		command = { type = relation which = FRA value = -75 }
		command = { type = trigger which = 285282 } #SPA: Sforza's allegiance
		command = { type = sleepevent which = 228030 } #MLO: The allegiance to the Emperor
	}
}
#(1519-1522) Sforza's allegiance
#by Bordic
event = {
	id = 285282 #triggered by SPA_12026
	random = no
	country = SPA
	name = "EVENTNAME285282" #Sforza's allegiance
	desc = "EVENTHIST285282"
	#-#Acknowledging il Moro's younger son Francesco Sforza as legitimate ruler in the duchy of Milan, later invested with the ducal title as Francesco II, Carlos I Habsburg obtained decisive military support in a key position against any French threat of expansionism in Italy.

	action_a = {
		name = "GOOD"
		command = { type = alliance which = MLO }
		command = { type = DIP which = 2 value = 6 }
		command = { type = MIL which = 2 value = 6 }
	}
}

#(1520) The Comuneros I
#Paradox event modified by Fodoron
event = {
	id = 3155
	random = no
	country = SPA
	name = "EVENTNAME3155" #The Comuneros
	desc = "EVENTHIST3155"
	#-#The power that the Castilian cities had acquired in 1470 with the Santa Hermandad ended in 1498 when the Kings sided again with the nobility and disbanded it. The nobility continued to erode the cities position during the regency of Cisneros in 1516, so the commons were upset with Carlos delay to come to his realm. When 17 year old Carlos arrived from Burgundy, he illegally took the crown from his mad mother without much opposition, but he also behaved as a foreign King in a conquered country, appointing only Burgundians for government and extorting money from the cities, thus alienating both the nobles and the commons. When the chance to claim the imperial crown presented, Carlos extorted and mortgaged Castile rents to pay the Fuggers before leaving for Germany. The Castilian cities then revolted and formed the Santa Junta, defeating the scarce Royal forces, while the nobility stood aside unwilling to defend a King that had ignored their demands regarding court appointments. The rebels appealed to Juana the mad for support, but she was unwilling or unable to help them. With no other choice they turned to Carlos, ready to accept him if he was willing to return to the country, marry, reform his court, remove the foreigners and lower the taxes.

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

	action_a = {
		name = "ACTIONNAME3155A" #Ignore their demands
		command = { type = stability value = -1 }
		command = { type = revolt which = 435 } #Leon
		command = { type = revolt which = 436 } #Castilla
		command = { type = revolt which = 436 } #Castilla
		command = { type = revolt which = 439 } #Toledo
		command = { type = revolt which = 439 } #Toledo
	}
	action_b = {
		name = "ACTIONNAME3155B" #Make concessions
		command = { type = provincetax which = 435 value = -1 } #Leon
		command = { type = provincetax which = 436 value = -1 } #Castilla
		command = { type = provincetax which = 439 value = -1 } #Toledo
		command = { type = province_revoltrisk which = 436 value = -8 } #Castilla
		command = { type = province_revoltrisk which = 435 value = -8 } #Leon
		command = { type = province_revoltrisk which = 439 value = -8 } #Toledo
		command = { type = domestic which = ARISTOCRACY value = -1 }
		command = { type = sleepevent which = 285114 } #SPA: The Comuneros
	}
}

#(1520) The Germania
#by Fodoron
event = {
	trigger = { event = 3155 } #SPA: The Comuneros
	id = 285111
	random = no
	country = SPA
	name = "EVENTNAME285111" #The Germania
	desc = "EVENTHIST285111"
	#-#In 1519 the artisans guild of Valencia was given permission to form a militia brotherhood (germania), to defend the coastline from Barbary pirates, but the guilds had a hidden agenda to use the Germania against the nobility. The arrival of a new viceroy in April 1520 precipitated the confrontation, and the guilds took control of Valencia. Soon battles erupted between the Germania and the nobles, spreading to Murcia and Mallorca. The Germania had also a marked anti-Muslim component, attacking the moriscos, sometimes forcing them to convert. This also eroded the economical power of the nobility, as the moriscos were their indentured serfs, and once converted they were freed from servitude. The King did not do anything, letting the nobles deal with the Germania. By March 1523 the Germania had been crushed and hundreds executed. The next year Charles issued a General Pardon.

	date = { day = 15 month = june year = 1520 }

	action_a = {
		name = "ACTIONNAME285111A" #Argh! Not now
		command = { type = revolt which = 437 } #Valencia
		command = { type = revolt which = 437 } #Valencia
		command = { type = revolt which = 821 } #Baleares
		command = { type = revolt which = 438 } #Murcia
	}
}

#(1521) The Comuneros II
#by Fodoron
event = {
	id = 285114
	random = no
	country = SPA
	name = "EVENTNAME285114" #The execution of the Comuneros
	desc = "EVENTHIST285114"
	#-#After September 1520, the rebellion spread to the countryside. The Comuneros were quite heterogeneous already, and the rural classes were markedly revolutionary and directed the rebellion against the nobility, that until them was unsympathetic with the King's troubles. It was a fatal mistake. The nobles reacted to the threat negotiating with Carlos the concessions they wanted and then formed a strong army. Although defeated in February 1521, they recovered soon, and on April 23, they crushed the Comuneros army at Villalar executing their leaders the following day. By February 1522, the last Comuneros surrendered and Carlos could afford to be magnanimous and issued a General Pardon to all but the main leaders. Carlos returned to Spain in 1522, married an Iberian woman, Isabel of Portugal, and appointed Spanish nobles to government. These were many of the Comuneros demands, but they were done on Carlos terms, after humbling the cities and restoring his relationships with the nobles.

	date = { day = 23 month = april year = 1521 }

	action_a = {
		name = "ACTIONNAME285114A" #Make concessions to the nobility and crush the rebels
		command = { type = domestic which = ARISTOCRACY value = 1 }
		command = { type = revoltrisk which = 12 value = -6 }
		command = { type = INF which = 428 value = 10000 }
		command = { type = province_revoltrisk which = 436 value = -8 } #Castilla
		command = { type = province_revoltrisk which = 435 value = -8 } #Leon
		command = { type = province_revoltrisk which = 439 value = -8 } #Toledo
	}
	action_b = {
		name = "ACTIONNAME285114B" #Do not accept the demands of the nobility either
		command = { type = province_revoltrisk which = 436 value = -8 } #Castilla
		command = { type = province_revoltrisk which = 435 value = -8 } #Leon
		command = { type = province_revoltrisk which = 439 value = -8 } #Toledo
		command = { type = revoltrisk which = 24 value = 8 }
		command = { type = revolt which = 431 } #Cantabria
		command = { type = revolt which = 432 } #Asturias
		command = { type = revolt which = 438 } #Murcia
		command = { type = revolt which = 443 } #Andalucia
	}
}

#-----------------------------------------------------------------------------------------------
#Settlement events for Central America and Gran Colombia

#(1522-1820) Settlement of Caribe
event = {
	id = 285332
	trigger = {
		owned = { province = 178 data = -1 }
		control = { province = 178 data = -1 }
		NOT = { provincereligion = { province = 178 data = pagan } } #not a TP
	}
	random = no
	country = SPA
	name = "EVENTNAME285332" #Settlement of Caribe
	desc = "EVENTHIST285314"
	#-#The first colonists have arrived.

	date = { day = 8 month = january year = 1522 }
	offset = 10
	deathdate = { year = 1820 }

	action_a = {
		name = "EXCELLENT"
		command = { type = addcore which = 178 } #Caribe
	}
}
#(1522-1820) Settlement of Tehuacan
event = {
	id = 285331
	trigger = {
		owned = { province = 32 data = -1 }
		control = { province = 32 data = -1 }
		NOT = { provincereligion = { province = 32 data = pagan } } #not a TP
	}
	random = no
	country = SPA
	name = "EVENTNAME285331" #Settlement of Tehuacan
	desc = "EVENTHIST285314"
	#-#The first colonists have arrived.

	date = { day = 8 month = january year = 1522 }
	offset = 10
	deathdate = { year = 1820 }

	action_a = {
		name = "EXCELLENT"
		command = { type = addcore which = 32 } #Tehuacan
	}
}
#(1524-1820) Settlement of Guatemala
event = {
	id = 285330
	trigger = {
		owned = { province = 33 data = -1 }
		control = { province = 33 data = -1 }
		NOT = { provincereligion = { province = 33 data = pagan } } #not a TP
	}
	random = no
	country = SPA
	name = "EVENTNAME285330" #Settlement of Guatemala
	desc = "EVENTHIST285314"
	#-#The first colonists have arrived.

	date = { day = 24 month = july year = 1524 }
	offset = 10
	deathdate = { year = 1820 }

	action_a = {
		name = "EXCELLENT"
		command = { type = addcore which = 33 } #Guatamala
	}
}
#(1524-1820) Settlement of Costa Rica
event = {
	id = 285322
	trigger = {
		owned = { province = 822 data = -1 }
		control = { province = 822 data = -1 }
		NOT = { provincereligion = { province = 822 data = pagan } } #not a TP
	}
	random = no
	country = SPA
	name = "EVENTNAME285322" #Settlement of Costa Rica
	desc = "EVENTHIST285314"
	#-#The first colonists have arrived.

	date = { day = 8 month = december year = 1524 }
	offset = 10
	deathdate = { year = 1820 }

	action_a = {
		name = "EXCELLENT"
		command = { type = addcore which = 822 } #Costa Rica
	}
}
#(1525-1820) Settlement of Maracaibo
event = {
	id = 285329
	trigger = {
		owned = { province = 157 data = -1 }
		control = { province = 157 data = -1 }
		NOT = { provincereligion = { province = 157 data = pagan } } #not a TP
	}
	random = no
	country = SPA
	name = "EVENTNAME285329" #Settlement of Maracaibo
	desc = "EVENTHIST285314"
	#-#The first colonists have arrived.

	date = { day = 28 month = july year = 1525 }
	offset = 10
	deathdate = { year = 1820 }

	action_a = {
		name = "EXCELLENT"
		command = { type = addcore which = 157 } #Maracaibo
	}
}
#(1527-1820) Settlement of Tocuvo
event = {
	id = 285328
	trigger = {
		owned = { province = 156 data = -1 }
		control = { province = 156 data = -1 }
		NOT = { provincereligion = { province = 156 data = pagan } } #not a TP
	}
	random = no
	country = SPA
	name = "EVENTNAME285328" #Settlement of Tocuvo
	desc = "EVENTHIST285314"
	#-#The first colonists have arrived.

	date = { day = 24 month = july year = 1527 }
	offset = 10
	deathdate = { year = 1820 }

	action_a = {
		name = "EXCELLENT"
		command = { type = addcore which = 156 } #Tocuvo
	}
}
#(1533-1820) Settlement of Cartagena
event = {
	id = 285327
	trigger = {
		owned = { province = 158 data = -1 }
		control = { province = 158 data = -1 }
		NOT = { provincereligion = { province = 158 data = pagan } } #not a TP
	}
	random = no
	country = SPA
	name = "EVENTNAME285327" #Settlement of Cartagena
	desc = "EVENTHIST285314"
	#-#The first colonists have arrived.

	date = { day = 8 month = january year = 1533 }
	offset = 10
	deathdate = { year = 1820 }

	action_a = {
		name = "EXCELLENT"
		command = { type = addcore which = 158 } #Cartagena
	}
}
#(1536-1820) Settlement of Honduras
event = {
	id = 285326
	trigger = {
		owned = { province = 36 data = -1 }
		control = { province = 36 data = -1 }
		NOT = { provincereligion = { province = 36 data = pagan } } #not a TP
	}
	random = no
	country = SPA
	name = "EVENTNAME285326" #Settlement of Honduras
	desc = "EVENTHIST285314"
	#-#The first colonists have arrived.

	date = { day = 8 month = december year = 1537 }
	offset = 10
	deathdate = { year = 1820 }

	action_a = {
		name = "EXCELLENT"
		command = { type = addcore which = 36 } #Honduras
	}
}
#(1540-1820) Settlement of Campeche
event = {
	id = 285324
	trigger = {
		owned = { province = 34 data = -1 }
		control = { province = 34 data = -1 }
		NOT = { provincereligion = { province = 34 data = pagan } } #not a TP
	}
	random = no
	country = SPA
	name = "EVENTNAME285324" #Settlement of Campeche
	desc = "EVENTHIST285314"
	#-#The first colonists have arrived.

	date = { day = 8 month = january year = 1540 }
	offset = 10
	deathdate = { year = 1820 }

	action_a = {
		name = "EXCELLENT"
		command = { type = addcore which = 34 } #Campeche
	}
}
#(1542-1820) Settlement of Yucatan
event = {
	id = 285325
	trigger = {
		owned = { province = 35 data = -1 }
		control = { province = 35 data = -1 }
		NOT = { provincereligion = { province = 35 data = pagan } } #not a TP
	}
	random = no
	country = SPA
	name = "EVENTNAME285325" #Settlement of Yucatan
	desc = "EVENTHIST285314"
	#-#The first colonists have arrived.

	date = { day = 8 month = january year = 1542 }
	offset = 10
	deathdate = { year = 1820 }

	action_a = {
		name = "EXCELLENT"
		command = { type = addcore which = 35 } #Yucatan
	}
}
#(1563-1820) Settlement of Mosquitos
event = {
	id = 285321
	trigger = {
		owned = { province = 38 data = -1 }
		control = { province = 38 data = -1 }
		NOT = { provincereligion = { province = 38 data = pagan } } #not a TP
	}
	random = no
	country = SPA
	name = "EVENTNAME285321" #Settlement of Mosquitos
	desc = "EVENTHIST285314"
	#-#The first colonists have arrived.

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

	action_a = {
		name = "EXCELLENT"
		command = { type = addcore which = 38 } #Mosquitos
	}
}
#(1567-1820) Settlement of Yaraguay
event = {
	id = 285323
	trigger = {
		owned = { province = 154 data = -1 }
		control = { province = 154 data = -1 }
		NOT = { provincereligion = { province = 154 data = pagan } } #not a TP
	}
	random = no
	country = SPA
	name = "EVENTNAME285323" #Settlement of Yaraguay
	desc = "EVENTHIST285314"
	#-#The first colonists have arrived.

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

	action_a = {
		name = "EXCELLENT"
		command = { type = addcore which = 154 } #Yaraguay
	}
}
#End of Settlement events for Central America and Gran Colombia
#-----------------------------------------------------------------------------------------------

#(1525-1527) The holy league against Spain
#by Bordic
event = {
	id = 285018	#triggered by FRA_12027 A
	random = no
	country = SPA
	name = "EVENTNAME285018" #The holy league against Spain
	desc = "EVENTHIST12027"
	#-#On the 24 of February 1525, in the battle of Pavia, the imperial armies led by Ferdinando Francesco d'Avalos, Marquis of Pescara (also winner at Bicocca in 1522), decimated the French troops led by King Franois Ier. Many French leaders died on the battlefield, such as De la Tremoille, La Palice and Bonnivet. King Franois Ier, instead, fell from his horse shot out under him, and taken captive. Since 24 February was Charles V's 25th birthday, the Valois was the biggest gift he could ever receive. Franois was carted off to Madrid, where he was held six months in prison for ransom, and pressed to renounce his claims in Italy and Flanders, to give Bourgogne back to the Empire and to concede the county of Provence to Charles, Conntable de Bourbon, and now leader of the imperial troops. The Emperor believed that the peace with France had finally been achieved after Franois Ier, agreeing to renounce his claims in Italy, was freed and retaken to France, leaving his sons there as hostages and guarantees for the respect of the treaty. But within two months of his release and in spite of his sons taken as hostages in Spain, Franois Ier got the Parliament of Paris to void all the terms of the Treaty of Madrid because accepted under duress and in 1526 at Cognac he stipulated a holy league bringing into it Pope Clement VII together with Florence, Venice, Henry VIII of England and also the Duke of Milan, who even if previously restored to the throne by Charles V himself, voluntarily joined the alliance made to stop the Spanish hegemony over Italy.

	action_a = {
		name = "ACTIONNAME285018A" #They shall pay for this!
		command = { type = relation which = FRA value = -100 }
		command = { type = relation which = PAP value = -100 }
		command = { type = relation which = MLO value = -100 }
		command = { type = casusbelli which = FRA value = 36 }
		command = { type = casusbelli which = PAP value = 36 }
		command = { type = casusbelli which = MLO value = 36 }
		command = { type = addcore which = 409 } #Bourgogne
	}
}
#(1525-1527) The treaty of Madrid
#by Bordic
event = {
	id = 285014 #triggered by FRA_12027 B
	random = no
	country = SPA
	name = "EVENTNAME285014" #The treaty of Madrid
	desc = "EVENTHIST12027"
	#-#On the 24 of February 1525, in the battle of Pavia, the imperial armies led by Ferdinando Francesco d'Avalos, Marquis of Pescara (also winner at Bicocca in 1522), decimated the French troops led by King Franois Ier. Many French leaders died on the battlefield, such as De la Tremoille, La Palice and Bonnivet. King Franois Ier, instead, fell from his horse shot out under him, and taken captive. Since 24 February was Charles V's 25th birthday, the Valois was the biggest gift he could ever receive. Franois was carted off to Madrid, where he was held six months in prison for ransom, and pressed to renounce his claims in Italy and Flanders, to give Bourgogne back to the Empire and to concede the county of Provence to Charles, Conntable de Bourbon, and now leader of the imperial troops. The Emperor believed that the peace with France had finally been achieved after Franois Ier, agreeing to renounce his claims in Italy, was freed and retaken to France, leaving his sons there as hostages and guarantees for the respect of the treaty. But within two months of his release and in spite of his sons taken as hostages in Spain, Franois Ier got the Parliament of Paris to void all the terms of the Treaty of Madrid because accepted under duress and in 1526 at Cognac he stipulated a holy league bringing into it Pope Clement VII together with Florence, Venice, Henry VIII of England and also the Duke of Milan, who even if previously restored to the throne by Charles V himself, voluntarily joined the alliance made to stop the Spanish hegemony over Italy.

	action_a = {
		name = "ACTIONNAME285014A" #He is a sensible man
		command = { type = relation which = FRA value = 150 }
		command = { type = independence which = GEN }
		command = { type = independence which = SAV }
		command = { type = independence which = MLO }
		command = { type = independence which = MAN }
		command = { type = independence which = MOD }
		command = { type = independence which = TOS }
		command = { type = independence which = SIE }
		command = { type = independence which = PAP }
		command = { type = addcore which = 409 } #Bourgogne
		command = { type = trigger which = 285017 } #SPA: Effects of the Treaty of Madrid
	}
}
#(1525-1527) Effects of the Treaty of Madrid
event = {
	id = 285017 #triggered by SPA_285014
	trigger = {
		OR = {
			AND = {
				OR = {
					owned = { province = 405 data = -1 } #Savoie
					owned = { province = 404 data = -1 } #Piemonte
				}
				exists = SAV
			}
			AND = {
				OR = {
					owned = { province = 402 data = -1 } #Emilia
					owned = { province = 392 data = -1 } #Marche
				}
				exists = PAP
			}
			AND = {
				owned = { province = 398 data = -1 } #Corsica
				exists = GEN
			}
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285017" #Effects of the Treaty of Madrid
	desc = "EVENTHIST285017"
	#-#With that treaty France had to renounce claims to Italy and the Low Countries and cede the duchy of Bourgogne to Carlos I.

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = SAV value = 404 } #Piemonte
		command = { type = cedeprovince which = SAV value = 405 } #Savoie
		command = { type = cedeprovince which = PAP value = 402 } #Emilia
		command = { type = cedeprovince which = PAP value = 392 } #Marche
		command = { type = cedeprovince which = GEN value = 398 } #Corsica
	}
}

#-----------------------------------------------------------------------------------------------
#Spanish events dealing with the Inca

#(1529-1532) Pizarro claims Peru for Spain
#by Captain Krunch modified by Crook, mnorrefeldt and Fodoron
event = {
	id = 285208
	trigger = {
		OR = {
			owned = { province = 175 data = -1 } #Valparaiso
			owned = { province = 161 data = -1 } #Cupica
			owned = { province = 160 data = -1 } #Bogota
			owned = { province = 39 data = -1 } #Isthmus
			owned = { province = 38 data = -1 } #Mosquitos
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285208" #Pizarro claims Peru for Spain
	desc = "EVENTHIST285208"
	#-#Having found the Inca empire, Francisco Pizarro had to assure his rights to conquest it, as he was opposed by the new governor of Panama. He agreed with Diego de Almagro to equally divide the rights and titles, and travelled to the court with the Royal Fifth of all the riches they had previously found. Impressed with the gold, King Carlos I of Spain granted the right of conquest of Peru to him. But Pizarro did not keep his word to Almagro, and kept all the important titles and rights for himself. Accompanied by his brothers Gonzalo, Juan and Hernando he returned to Panama.

	date = { day = 26 month = july year = 1529 }
	offset = 50
	deathdate = { day = 1 month = november year = 1532 }

	action_a = {
		name = "ACTIONNAME285208A" #Name Pizarro Adelantado of New Castile
		command = { type = cav which = 39 value = 1000 } #Isthmus
		command = { type = inf which = 39 value = 5000 } #Isthmus
		command = { type = population which = 39 value = 200 } #Isthmus
		command = { type = wakeleader which = 0127821 } #Francisco Pizarro (SPA)
		command = { type = treasury value = 100 } #the Royal Fifth
	}
	action_b = {
		name = "ACTIONNAME285208B" #Deny Pizarro's Request
		command = { type = sleepleader which = 0127821 } #Francisco Pizarro (SPA)
		command = { type = sleepevent which = 191000 } #INC: Date With Destiny
	}
}
#(1529-1680) The capture of Cuzco
#by Captain Krunch modified by Crook, mnorrefeldt & Fodoron
event = {
	id = 285158 #triggered by INC_191005
	random = no
	country = SPA
	name = "EVENTNAME285158" #The capture of Cuzco
	desc = "EVENTHIST285158"
	#-#After killing Atahuallpa, Pizarro moved quickly to take control of Cuzco. The army of general Apu Kizkiz was easily routed, and the capital was taken without resistance and plundered, but everything of value that could be removed had already been taken and hidden. Many indians were tortured to no avail. Those treasures would never be found. To gain control of the vast masses of indians, the Pizarros installed a puppet monarch. One of the many sons of Huayna Capac, Manco Inca. Although they still did not controlled most of the country, all organized resistance had ended.

	action_a = {
		name = "ACTIONNAME285158A" #We have conquered the Inca
		command = { type = vassal which = INC }
	}
}
#(1532) Santiago! Y a ellos!
#by Captain Krunch modified by Crook, mnorrefeldt & Fodoron
event = {
	id = 285152 #triggered by INC_191000 A / INC_191001 A
	random = no
	country = SPA
	name = "EVENTNAME285152" #Santiago! Y a ellos!
	desc = "EVENTHIST285152"
	#-#When Pizarro arrived to Cajamarca, he found Atahuallpa with an army of 80,000 men. He sent forth an embassy inviting him to an interview the next day. When the emperor showed up with 10,000 unarmed men, Friar Valverde started preaching to him and gave him a Bible. It was impossible for Atahuallpa to understand anything, as it was the first time he saw a book, and the interpreter barely could speak some words of Spanish or Quechua. Irritated, Atahuallpa threw down the Bible and demanded compensation for the plundering of the Spaniards. His act triggered an attack by the Spaniards. 'Santiago! Y a ellos!' Was the war cry that echoed through the great plaza at Cajamarca. Spanish cavalry charged into the courtyard, slashing at Inca flesh. Even unarmed, the Inca opposed determined resistance and hundreds of them were killed. However with the capture of the Emperor, resistance collapsed and the survivors escaped. Atahuallpa, knowing the lust for gold of the strangers, offer them a room filled with gold and silver up to the reach of his hand. The precious metals arrived quickly through the excellent communications of the empire. Atahuallpa's ransom was the highest ever paid.

	action_a = {
		name = "ACTIONNAME285152A" #Atahuallpa has been captured
		command = { type = vp value = 50 }
		command = { type = treasury value = 1500 } #only
		command = { type = inflation value = 3 } #reduced from 10 because it was insane
		command = { type = trigger which = 191003 } #INC: Atahuallpa's ransom
	}
}
#(1533) Death of Atahuallpa
#by Fodoron
event = {
	id = 285153
	trigger = { event = 191003 } #INC: Atahuallpa's ransom
	random = no
	country = SPA
	name = "EVENTNAME285153" #Death of Atahuallpa
	desc = "EVENTHIST285153"
	#-#Pizarro had become a prisoner of his prisoner. Releasing him was out of the question, as he would immediately order the attack by massive armies, and keeping him was becoming more and more dangerous. Atahuallpa had ordered the execution of his brother from his prison, and the Spaniards feared that he could sooner or later order an attack despite the risk to his life. Two sides were split in Pizarro's band of men: while most wanted to kill Atahuallpa, some saw it as dishonorable and unlawful, as Atahuallpa had complied with all their requests. Finally Pizarro took the decision, and a mock trial was set up. Atahuallpa was accused of repeatedly rejecting conversion, incestuous relationship with his sister and killing his brother, all of them true, and sentenced to death. Since he was going to burn at the stake he accepted conversion to avoid a death that would prevent his eternal life, as the one he had given his brother. He was therefore strangled. The King of Spain was highly displeased with the killing of a monarch but it was too late to do anything about it. The decision, however, proved to be strategically correct, as without his emperor the Inca empire collapsed into the hands of the Spaniards.

	date = { day = 26 month = july year = 1533 }

	action_a = {
		name = "ACTIONNAME285153A" #Kill Atahuallpa
		command = { type = badboy value = 1 }
		command = { type = trigger which = 191004 } #INC: Death Of Atahuallpa
		command = { type = war which = INC }
	}
}
#(1533-1700) Unexpected allies
#by Fodoron
event = {
	id = 285188
	trigger = {
		war = { country = SPA country = INC }
		OR = {
			owned = { province = 164 data = -1 } #Guayaquil
			owned = { province = 165 data = -1 } #Cajamarca
			owned = { province = 166 data = -1 } #Huanaco
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285188" #Unexpected allies
	desc = "EVENTHIST285188"
	#-#The Northern part of the Inca domains still carried the scars from its recent incorporation into the Tahuantinsuyo (Inca Empire), followed by its devastating civil war. The Caaris Indians after being defeated and annexed by Huayna Capac, had taken the side of Huascar, and had suffered almost extermination at the hands of Atahuallpa. The Chachapoyas, Cajamarcas, Chimor, Chancas and Huancas also hated the Inca, and they approached Pizarro, together with some of the defeated Huascar Cuzcans. They were all grateful for the killing of the hated Atahuallpa, and their Curacas (noble leaders) offered their alliance to Pizarro. In the way to Cuzco, more Chachapoyas and Caaris that had been forcefully relocated there also joined him. The local help would be instrumental in the quick demise of the Inca.

	date = { day = 1 month = august year = 1533 }
	offset = 20
	deathdate = { day = 0 month = january year = 1700 }

	action_a = {
		name = "ACTIONNAME285188A" #Use Indians against Indians
		command = { type = INF which = 164 value = 5500 } #Guayaquil
		command = { type = INF which = 165 value = 5500 } #Cajamarca
		command = { type = INF which = 166 value = 5500 } #Huanaco
	}
}
#(1535-1680) Foundation of Lima
#by Captain Krunch modified by Crook, mnorrefeldt & Fodoron
event = {
	id = 285159
	trigger = {
		owned = { province = 168 data = -1 } #Lima
	}
	random = no
	country = SPA
	name = "EVENTNAME285159" #Foundation of Lima
	desc = "EVENTHIST285159"
	#-#Historically, after returning from Spain, on January 18, 1535, Pizarro set about building a capital for the new viceroyalty of Peru. Pizarro built a city where none previously existed, the new city, called Lima, came to be known as the 'City Of Kings'. Here is where gold and silver began it's journey to Spain. The wealth of the city caused a massive influx of Spanish colonists, who eventually came to outnumber the natives in the area.

	date = { day = 18 month = january year = 1535 }
	offset = 100
	deathdate = { day = 29 month = march year = 1680 }

	action_a = {
		name = "ACTIONNAME285159A" #Establish A Capital For Our Viceroyalty
		command = { type = colonists value = -3 }
		command = { type = population which = 168 value = 2000 } #Lima
		command = { type = provinceculture which = 168 value = castilian } #Lima
		command = { type = conversion which = 168 } #Lima
		command = { type = INF which = 168 value = 5000 } #Lima
		command = { type = CAV which = 168 value = 2000 } #Lima
	}
}
#(1536-1580) Appeal for help
#by Captain Krunch modified by Crook, mnorrefeldt & Fodoron
event = {
	id = 285160
	trigger = { event = 191006 } #The Empire Strikes Back
	random = no
	country = SPA
	name = "EVENTNAME285160" #Appeal for help
	desc = "EVENTHIST285160"
	#-#The new Emperor Manco Inca, was in fact a prisoner in his own palace, humiliated by the Spaniards. As the atrocities against his people became known to Manco Inca, he began to develop a hatred for them. Hernando Pizarro finally restored Manco Inca's freedom and dignity, but it was too late. Villac Umu counseled Manco Inca to send out secret orders for gathering weapons and large crop plantings in preparation for war with the Spaniards. He made his move around Easter 1536. Having won the trust of Hernando, he was granted permission to attend a ceremony northwest of Cuzco, instead he and Villac Umu convened a war council in the mountains. When Manco Inca did not return, Hernando Pizarro realized the mistake he made by letting him go, an Inca counterattack seemed imminent. Soon an army numbering in the tens of thousands was besieging the Spanish held city of Cuzco, and another Inca army was sighted heading towards the Spanish stronghold of Lima. Manco's warriors annihilated every relief column sent from Lima to Cuzco. An alarmed Francisco Pizarro sent frantic letters to every Spanish possession in the new world asking for reinforcements, and hoping that he could hold back the Inca armies until help arrived...

	date = { day = 21 month = march year = 1536 }
	offset = 30
	deathdate = { day = 1 month = april year = 1580 }

	action_a = {
		name = "ACTIONNAME285160A" #Ask for reinforcements
		command = { type = revolt which = 165 } #Cajamarca
		command = { type = revolt which = 1482 } #Montana
		command = { type = revolt which = 166 } #Huanuco
		command = { type = revolt which = 1483 } #Atalaya
		command = { type = revolt which = 167 } #Ayacucho
		command = { type = revolt which = 169 } #Cuzco
		command = { type = revolt which = 170 } #Arequipa
		command = { type = revolt which = 171 } #Moquega
		command = { type = revolt which = 172 } #Arica
		command = { type = revolt which = 219 } #Tucuman
		command = { type = revolt which = 173 } #Atacama
		command = { type = revolt which = 174 } #Coquimbo
		command = { type = revolt which = 194 } #Potosi
		command = { type = revolt which = 1484 } #Manu
		command = { type = province_revoltrisk which = 165 value = 3 } #Cajamarca
		command = { type = province_revoltrisk which = 1482 value = 3 } #Montana
		command = { type = province_revoltrisk which = 166 value = 3 } #Huanuco
		command = { type = province_revoltrisk which = 1483 value = 3 } #Atalaya
		command = { type = province_revoltrisk which = 167 value = 3 } #Ayacucho
		command = { type = province_revoltrisk which = 169 value = 3 } #Cuzco
		command = { type = province_revoltrisk which = 170 value = 3 } #Arequipa
		command = { type = province_revoltrisk which = 171 value = 3 } #Moquega
		command = { type = province_revoltrisk which = 172 value = 3 } #Arica
		command = { type = province_revoltrisk which = 219 value = 3 } #Tucuman
		command = { type = province_revoltrisk which = 173 value = 3 } #Atacama
		command = { type = province_revoltrisk which = 174 value = 3 } #Coquimbo
		command = { type = province_revoltrisk which = 194 value = 3 } #Potosi
		command = { type = province_revoltrisk which = 1484 value = 3 } #Manu
	}
}
#(1536-1580) Help arrives at last
#by Captain Krunch modified by Crook, mnorrefeldt and Fodoron
event = {
	id = 285161
	trigger = { event = 285160 } #SPA: Appeal For Help
	random = no
	country = SPA
	name = "EVENTNAME285161" #Help arrives at last
	desc = "EVENTHIST285161"
	#-#It took many months, but finally help arrived in the form of reinforcements from Ecuador, Panama, Nicaragua, and the Caribbean. Cortez sent supplies from Mexico, even from Spain the Queen sent 50 arquebusiers and 50 crossbowmen. And from the south, an angry Almagro was returning from his adventure in Chile, upon learning that his share of the Inca empire consisted of deserts and wasteland. This signaled the collapse of Manco's rebellion, who then fled with his followers deeper and deeper into the Amazon rainforest, and waged a low level guerilla war against the Spanish that would continue for decades.

	date = { day = 17 month = july year = 1536 }
	offset = 100
	deathdate = { day = 29 month = november year = 1580 }

	action_a = {
		name = "ACTIONNAME285161A" #Hooray!
		command = { type = province_revoltrisk which = 165 value = -3 } #Cajamarca
		command = { type = province_revoltrisk which = 1482 value = -3 } #Montana
		command = { type = province_revoltrisk which = 166 value = -3 } #Huanuco
		command = { type = province_revoltrisk which = 1483 value = -3 } #Atalaya
		command = { type = province_revoltrisk which = 167 value = -3 } #Ayacucho
		command = { type = province_revoltrisk which = 169 value = -3 } #Cuzco
		command = { type = province_revoltrisk which = 170 value = -3 } #Arequipa
		command = { type = province_revoltrisk which = 171 value = -3 } #Moquega
		command = { type = province_revoltrisk which = 172 value = -3 } #Arica
		command = { type = province_revoltrisk which = 219 value = -3 } #Tucuman
		command = { type = province_revoltrisk which = 173 value = -3 } #Atacama
		command = { type = province_revoltrisk which = 174 value = -3 } #Coquimbo
		command = { type = province_revoltrisk which = 194 value = -3 } #Potosi
		command = { type = province_revoltrisk which = 1484 value = -3 } #Manu
		command = { type = INF which = 162 value = 6000 } #Cali
		command = { type = INF which = 168 value = 10000 } #Lima
		command = { type = CAV which = 168 value = 500 } #Lima
		command = { type = INF which = 170 value = 7000 } #Arequipa
		command = { type = CAV which = 170 value = 500 } #Arequipa
		command = { type = treasury value = -200 }
	}
}
#(1536-1580) The Viceroyalty of Peru
#by Fodoron
event = {
	id = 285162 #triggered by INC_191007 A
	random = no
	country = SPA
	name = "EVENTNAME285162" #The Viceroyalty of Peru
	desc = "EVENTHIST285162"
	#-#Manco Inca was killed by two Spanish desertors, that had decided to change sides again and return with the honor of having killed him. The fight still continued until the last of his successors, Tupac Amaru, lost his capital Vilcabamba (Manu) and was captured and executed in 1572. With his death, the resistance became ineffective, and the Inca Empire was completely absorbed by Spain.

	action_a = {
		name = "GREAT"
		command = { type = annex which = INC }
		command = { type = addcore which = 193 } #Titicaca
		command = { type = addcore which = 192 } #Taqari
		command = { type = addcore which = 163 } #Azuay
		command = { type = addcore which = 164 } #Guayaquil
		command = { type = addcore which = 165 } #Cajamarca
		command = { type = addcore which = 1482 } #Montana
		command = { type = addcore which = 166 } #Huanuco
		command = { type = addcore which = 1483 } #Atalaya
		command = { type = addcore which = 167 } #Ayacucho
		command = { type = addcore which = 169 } #Cuzco
		command = { type = addcore which = 170 } #Arequipa
		command = { type = addcore which = 171 } #Moquega
		command = { type = addcore which = 172 } #Arica
		command = { type = addcore which = 219 } #Tucuman
		command = { type = addcore which = 173 } #Atacama
		command = { type = addcore which = 174 } #Coquimbo
		command = { type = addcore which = 194 } #Potosi
		command = { type = addcore which = 1484 } #Manu
		command = { type = addcore which = 162 } #Cali
		command = { type = addcore which = 168 } #Lima
		command = { type = addcore which = 160 } #Bogota
		command = { type = addcore which = 175 } #Valparaiso
	}
}
#(1573-1700) The Viceroyalty of Peru - Ahistorical
#by YodaMaster
event = {
	id = 285260
	trigger = {
		event = 285158 #SPA: The capture of Cuzco
		vassal = { country = SPA country = INC }
		NOT = { war = { country = SPA country = INC } }
	}
	random = no
	country = SPA
	name = "EVENTNAME285162" #The Viceroyalty of Peru
	desc = "EVENTHIST285260"
	#-#The Inca Empire lost its independence and, without possible resistance, is finally completely absorbed by Spain.

	date = { day = 0 month = january year = 1573 } #after the death of Tupac-Amaru
	offset = 1000
	deathdate = { day = 0 month = january year = 1700 }

	action_a = {
		name = "GREAT"
		command = { type = annex which = INC }
		command = { type = addcore which = 193 } #Titicaca
		command = { type = addcore which = 192 } #Taqari
		command = { type = addcore which = 163 } #Azuay
		command = { type = addcore which = 164 } #Guayaquil
		command = { type = addcore which = 165 } #Cajamarca
		command = { type = addcore which = 1482 } #Montana
		command = { type = addcore which = 166 } #Huanuco
		command = { type = addcore which = 1483 } #Atalaya
		command = { type = addcore which = 167 } #Ayacucho
		command = { type = addcore which = 169 } #Cuzco
		command = { type = addcore which = 170 } #Arequipa
		command = { type = addcore which = 171 } #Moquega
		command = { type = addcore which = 172 } #Arica
		command = { type = addcore which = 219 } #Tucuman
		command = { type = addcore which = 173 } #Atacama
		command = { type = addcore which = 174 } #Coquimbo
		command = { type = addcore which = 194 } #Potosi
		command = { type = addcore which = 1484 } #Manu
		command = { type = addcore which = 162 } #Cali
		command = { type = addcore which = 168 } #Lima
		command = { type = addcore which = 160 } #Bogota
		command = { type = addcore which = 175 } #Valparaiso
	}
}
#End of Spanish events dealing with the Inca
#-----------------------------------------------------------------------------------------------

#-----------------------------------------------------------------------------------------------
#Siena Sequence

#(1524-1526) Sienese request
event = {
	id = 17351 #triggered by SIE_17350 A
	trigger = {
		NOT = {
			vassal = { country = SIE country = SPA }
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME17354" #Sienese request
	desc = "EVENTHIST17351"
	#-#With the Pope interfering in their internal affairs, and a despot just deposed, Siena sought protection from the anarchy of the Italian Wars. In 1524 they requested that Spain protect their republic from external enemies.

	action_a = {
		name = "OK"
		command = { type = vassal which = SIE }
		command = { type = relation which = PAP value = -20 }
		command = { type = alliance which = SIE }
	}
}
#(1552) Tuscany and the revolt in Siena
event = {
	id = 17356 #triggered by SIE_17355 A
	trigger = {
		exists = TOS
		NOT = {
			war = { country = SPA country = TOS }
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME17359" #Tuscany and the revolt in Siena
	desc = "EVENTHIST17356"
	#-#In 1549 after increasing turmoil in Siena, the Spanish representative of the city, Don Diego di Mendoza, decided to build a fortress to ensure Spanish control of the territory. This decision was received with horror by the Sienese who begged with Charles V not to proceed. He refused, and several Sienese citizens in Rome received aid from French agents and collected an army. In 1552, as they marched on Siena the people revolted and threw out the Spanish troops, and an independent Siena took up a pro-French policy. Henri II, King of France, tried to exploit the situation by sending there an army led by Paul de Termes, who was successively substituted by Strozzi when an invasion of Corsica was attempted with the help of the Turkish fleet. On Emperor Charles V's decision to inflict an exemplary punishment upon the rebeling city, Cosimo I Duke of Tuscany responded to his call by invading and pillaging the villages surrounding Siena with the help of Spanish/imperial troops. After a year long siege laid by Medeghino and his Florentine troops, the city of Siena was eventually taken. Should we call on Tuscany to help us against Siena?

	action_a = {
		name = "ACTIONNAME17359A" #Tuscany can help
		command = { type = casusbelli which = SIE value = 12 }
		command = { type = relation which = SIE value = -400 }
		command = { type = relation which = TOS value = 200 }
		command = { type = trigger which = 17357 } #TOS: Revolt in Siena
	}
	action_b = {
		name = "ACTIONNAME17359B" #We can handle it
		command = { type = casusbelli which = SIE value = 12 }
		command = { type = relation which = SIE value = -400 }
	}
}
#(1552) Revolt in Siena
event = {
	id = 285291 #triggered by SIE_17355 A
	trigger = {
		OR = {
			NOT = {	exists = TOS }
			war = { country = SPA country = TOS }
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME17357" #Revolt in Siena
	desc = "EVENTHIST17357"
	#-#In 1549 after increasing turmoil in Siena, the Spanish representative of the city, Don Diego di Mendoza, decided to build a fortress to ensure Spanish control of the territory. This decision was received with horror by the Sienese who begged with Charles V not to proceed. He refused, and several Sienese citizens in Rome received aid from French agents and collected an army. In 1552, as they marched on Siena the people revolted and threw out the Spanish troops, and an independent Siena took up a pro-French policy. Henri II, King of France, tried to exploit the situation by sending there an army led by Paul de Termes, who was successively substituted by Strozzi when an invasion of Corsica was attempted with the help of the Turkish fleet. On Emperor Charles V's decision to inflict an exemplary punishment upon the rebeling city, Cosimo I Duke of Tuscany responded to his call by invading and pillaging the villages surrounding Siena with the help of Spanish/imperial troops. After a year long siege laid by Medeghino and his Florentine troops, the city of Siena was eventually taken.

	action_a = {
		name = "ACTIONNAME17359B" #We can handle it
		command = { type = casusbelli which = SIE value = 12 }
		command = { type = relation which = SIE value = -400 }
	}
}
#End of Siena Sequence
#-----------------------------------------------------------------------------------------------

#(1525-1534) Pigafetta's Report (SPA version)
#by Bordic
event = {
	id = 285066
	random = no
	country = SPA
	name = "EVENTNAME326032" #Pigafetta's Report
	desc = "EVENTHIST326032"
	#-#Antonio Pigafetta belonged to a rich family of Vicenza. In his youth he studied astronomy, geography and cartography. He served on board the galleys of the order of St. John at the beginning of 16th century. In 1519 he accompanied the Papal Nuncio, Monsignor Chieregati, to Spain where he was presented to the Emperor Carlos I (V). There he heard of the trip of Magellan and negotiated to be admitted as a paying passenger, a supernumerary. In spite of initial difficulties with Magellan, he managed to gain his confidence and served as a chronicler and cartographer for him. During the trip, Pigafetta collected information about geography, the climate, the flora, the fauna and the inhabitants of the visited places. His meticulous notes were to serve as invaluable documents to future explorers and cartographers, mainly due to their focus on nautical and linguistic data. In the battle at Mactan, Philippines, in which Magellan was killed, Pigafetta also was hurt. Nevertheless, he managed to recover and was among the 18 on board the Victoria who accompanied Juan Sebastin Elcano in his return to Spain. After reaching port in Sanlcar de Barrameda (Cadiz) in September of 1522, three years after his departure, he recollected his experiences in 'Relations of the First Round-the-world Trip', composed in Italian and published in Venice. After that voyage Pigafetta returned to Italy where he died in his native city in 1534.

	date = { day = 20 month = october year = 1525 }
	offset = 120
	deathdate = { day = 10 month = august year = 1534 }

	action_a = {
		name = "ACTIONNAME326032A" #A very interesting report
		command = { type = naval value = 200 }
	}
}

#(1527) Charles V's Mercenary Army Sacks Rome
#by Isaac Brock
event = {
	id = 17407 #triggered by PAP_17406
	random = no
	country = SPA
	name = "EVENTNAME17406" #Charles V's Mercenary Army Sacks Rome
	desc = "EVENTHIST17408"
	#-#The 14,000 lansquenets, hired by Charles V in the war against the League of Cognac under the command of Georg von Frundsberg, were animated by a violent spirit of crusade against the Pope (Frundsberg was bringing a golden rope with which he insanely meant to hang the Pope and his cardinals!) but also, and most of all, angry for lack of pay. Abandoned by their captains, they begun to plunder villages in search of loots. Soon they were joined by 6,000 Spanish soldiers lead by Charles, Conntable de Bourbon, and by any sort of ruffians of any condition (mercenaries at the Emperor's service, deserting or disbanded troops of the League and common criminals), all of them with the common aim to make the way to Rome, the city of sin, and 'sack' it. On the morning of 6 May 1527, from his headquarters set up on the Gianicolo hill, Captain General Bourbon with his 40,000 soldiers launched a series of attacks on Rome. During one of them, at the Torrione Gate, while leading the assault of the walls, he himself was mortally wounded (Benvenuto Cellini, who took part in the defence of the walls, would boast about having shot the deadly bullet). Instead of being let down, the Spanish troops' confidence was boosted by their commander's sudden death and at the expenses of big losses, managed to break through the city walls and enter the Borgo while the imperial lansquenets broke rushed towards the Holy See. Pope Clement VII and his followers were able to escape into safety, thanks to the 'Passetto', a secret corridor which Pope Alexander VI had built along the top of the wall connecting the Vatican with Castel Sant'Angelo. Across the Sisto bridge the bewildered soldiers fell on the unarmed city and for eight days committed every sort of violence, theft, sacrilege and massacre. The streets were a mixture of drunken soldiers, corpses and heaps of every sort of luxury goods taken from churches, monasteries and palaces. No league army dared to enter the city to drive out the ravaging troops and rescue the Pope, who accepted to pay a huge ransom only six months later. Although the exact role of the emperor in this act is unclear, it hurt his standing internationally, and caused something of a domestic crisis. It was one of the motivations for the alliance between England and France in 1527, and for the war with those countries that followed.

	action_a = {
		name = "OH_WELL"
		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!
	}
}

#(1528-1537) The Genoese Alliance
event = {
	id = 285000
	trigger = {
		event = 174008 #GEN: Rise of Andrea Doria
		exists = GEN
		NOT = {
			war = { country = SPA country = GEN }
			vassal = { country = GEN country = SPA }
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285000" #The Genoese Alliance
	desc = "EVENTHIST285000"
	#-#In 1528 Andrea Doria took power in Genoa through a coup. He asked for Spanish protection, which Carlos I granted.

	date = { day = 1 month = january year = 1528 }
	offset = 60
	deathdate = { day = 29 month = december year = 1537 }

	action_a = {
		name = "EXCELLENT"
		command = { type = vassal which = GEN }
		command = { type = trigger which = 285258 } #SPA: The Genoese allegiance to Spain
		command = { type = sleepevent which = 285010 } #SPA: The Genoese alliance (Genoa does not exist)
		command = { type = sleepevent which = 285283 } #SPA: The Genoese alliance (Genoa does not exist, SPA does not own Liguria)
	}
}
#(1528-1545) The Genoese Alliance (Genoa does not exist)
event = {
	id = 285010
	trigger = {
		NOT = {
			event = 174008 #GEN: Rise of Andrea Doria
			exists = GEN
		}
		owned = { province = 403 data = -1 } #Liguria
	}
	random = no
	country = SPA
	name = "EVENTNAME285000" #The Genoese Alliance
	desc = "EVENTHIST285000"
	#-#In 1528 Andrea Doria took power in Genoa through a coup. He asked for Spanish protection, which Carlos I granted.

	date = { day = 1 month = january year = 1528 }
	offset = 300
	deathdate = { day = 29 month = december year = 1545 }

	action_a = {
		name = "ACTIONNAME285010A" #Accept Doria's offer
		command = { type = independence which = GEN }
		command = { type = trigger which = 285258 } #SPA: The Genoese allegiance to Spain
		command = { type = sleepevent which = 285000 } #SPA: The Genoese alliance
		command = { type = sleepevent which = 285283 } #SPA: The Genoese alliance (Genoa does not exist, SPA does not own Liguria)
	}
	action_b = {
		name = "ACTIONNAME285010B" #Reject Doria's offer
		command = { type = vp value = -2 }
		command = { type = sleepevent which = 285000 } #SPA: The Genoese alliance
		command = { type = sleepevent which = 285283 } #SPA: The Genoese alliance (Genoa does not exist, SPA does not own Liguria)
	}
}
#(1528-1537) The Genoese allegiance to Spain
event = {
	id = 285258 #triggered by SPA_285000 / SPA_285010 A
	random = no
	country = SPA
	name = "EVENTNAME285258" #The Genoese allegiance to Spain
	desc = "EVENTHIST285258"
	#-#For more than 150 years Genoa was one of Spain's most loyal allies, providing a port that allowed Spanish armies to easily enter Northern Italy. Since Andrea Doria was the best Christian admiral of his time, Carlos named him general commander of the Spanish fleet.

	action_a = {
		name = "OK"
		command = { type = alliance which = GEN }
		command = { type = wakeleader which = 0127895 } #Andrea Doria (SPA)
		command = { type = treasury value = -50 } #Payment for Doria
		command = { type = cedeprovince which = GEN value = 398 } #Corsica
	}
}
#(1528-1545) The Genoese Alliance (Genoa does not exist, SPA does not own Liguria)
event = {
	id = 285283
	trigger = {
		NOT = {
			event = 174008 #GEN: Rise of Andrea Doria
			exists = GEN
			owned = { province = 403 data = -1 } #Liguria
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285000" #The Genoese Alliance
	desc = "EVENTHIST285283"
	#-#In 1528 Andrea Doria took power in Genoa through a coup. He asked for Spanish protection, which Carlos I granted. For more than 150 years Genoa was one of Spain's most loyal allies, providing a port that allowed Spanish armies to easily enter Northern Italy. Since Andrea Doria was the best Christian admiral of his time, Carlos named him general commander of the Spanish fleet.

	date = { day = 1 month = january year = 1528 }
	offset = 300
	deathdate = { day = 29 month = december year = 1545 }

	action_a = {
		name = "ACTIONNAME285010A" #Accept Doria's offer
		command = { type = wakeleader which = 0127895 } #Andrea Doria (SPA)
		command = { type = treasury value = -50 } #Payment for Doria
		command = { type = sleepevent which = 285000 } #SPA: The Genoese alliance
		command = { type = sleepevent which = 285010 } #SPA: The Genoese alliance (Genoa does not exist)
	}
	action_b = {
		name = "ACTIONNAME285010B" #Reject Doria's offer
		command = { type = vp value = -2 }
		command = { type = sleepevent which = 285000 } #SPA: The Genoese alliance
		command = { type = sleepevent which = 285010 } #SPA: The Genoese alliance (Genoa does not exist)
	}
}

#-----------------------------------------------------------------------------------------------
#"El Dorado" Sequence

#(1528-1556) Klein-Venedig
#by Fodoron
event = {
	id = 285195
	random = no
	country = SPA
	name = "EVENTNAME285195" #Klein-Venedig
	desc = "EVENTHIST285195"
	#-#In debt with his German bankers, Emperor Carlos decided to grant Bartholomus Welser a concession to exploit Venezuela, or as they called it, Klein-Venedig. Trying to quickly recoup the money, the Welser hired several young Germans to conduct expeditions to find one of those mountains of gold and treasures that the Spaniards were finding everywhere. They were Nikolaus Federmann (Nicols Federman), Georg von Speyer (Jorge de la Espira) and Philipp von Hutten (Felipe de Utre). They conducted several German explorations departing from Santa Ana de Coro (Tocuvo) and became embroiled in the myth of El Dorado, but found no riches, and many of the Germans found death in the jungle. The Welser then turned to squeeze Venezuela as much as possible to try to recover their money, leading to complaints, and a lengthy trial, 1541-56, that ended in the revocking of the concession to the Welser.

	date = { day = 0 month = january year = 1528 }
	offset = 200
	deathdate = { day = 0 month = january year = 1556 }

	action_a = {
		name = "ACTIONNAME285195A" #Give concession to Welser
		command = { type = treasury value = 200 }
		command = { type = wakeleader which = 0127873 } #Nicols Federmann (SPA)
		command = { type = wakeleader which = 0127905 } #Jorge de la Espira (SPA)
		command = { type = wakeleader which = 0127906 } #Felipe de Utre (SPA)
	}
	action_b = {
		name = "ACTIONNAME285195B" #Only for Spaniards
		command = { type = vp value = -5 }
	}
}
#(1534-1560) The legend of El Dorado
#by Fodoron
event = {
	id = 285196
	trigger = {
		owned = { province = 162 data = -1 } #Cali (quito conquered)
	}
	random = no
	country = SPA
	name = "EVENTNAME285196" #The legend of El Dorado
	desc = "EVENTHIST285196"
	#-#The great riches of the Aztecs and Inca excited the imagination of the Spanish conquistadors, that dreamed of finding another of such treasures. Sebastin de Benalczar was one of the captains of Pizarro, in charge of conquering Quito, but when he arrived he found the place burnt to the ground by the Inca general Rumiavi, and no hint of the supposed riches. Rumiavi died without saying a word, but one of the captives spoke of a region towards the North, where a very rich chieftain used to cover himself in gold powder before bathing in a sacred lake to which gold offerings were also thrown. The name of the chieftain was El Dorado, or the gilded one. Soon the name was applied to his supposedly fabulously rich Kingdom, and Benalczar started to prepare his expedition in search of El Dorado.

	date = { day = 0 month = january year = 1534 }
	offset = 100
	deathdate = { day = 0 month = january year = 1560 }

	action_a = {
		name = "ACTIONNAME285196A" #We shall find it
		command = { type = treasury value = -100 }
	}
	action_b = {
		name = "ACTIONNAME285196B" #It is just a myth
		command = { type = vp value = 20 }
		command = { type = sleepevent which = 285197 } #SPA: Chibcha treasure
	}
}
#(1536-1560) Chibcha treasure
#by Fodoron
event = {
	id = 285197
	trigger = {
		discovered = 160 #Bogota
		event = 285196 #SPA: The legend of El Dorado
	}
	random = no
	country = SPA
	name = "EVENTNAME285197" #Chibcha treasure
	desc = "EVENTHIST285197"
	#-#The legend of El Dorado became the personal obsession of Gonzalo Jimnez de Quesada, a lawyer turned into conquistador, that in 1536 departed Santa Marta in the Northern coast of Colombia with 900 men towards the interior. The expedition was epic due to the difficulties found, and finally 178 men under his command reached the valleys inhabited by the Muisca, also called the Chibcha. They were one of the most advanced cultures in Amrica, and extremely rich due to their mining of emeralds, copper and salt, that traded for gold to other tribes. In one year Quesada and his band had conquered the estimated one million Muiscas using the tipical conquistador tactics of using internal divisions and seizing the zipa (ruler) and using him as a puppet before putting him to trial and executing him. The treasure seized was amazing, and third only to the Aztec and Inca treasures. The royal fifth amounted to 70 kg of gold and 576 emeralds. However Quesada, now inmensely rich but with troubles with the authorities due to his mistreatment of the Indians, was convinced that this treasure was only a small part of what he could get if he was capable of finding El Dorado.

	date = { day = 0 month = january year = 1536 }
	offset = 100
	deathdate = { day = 0 month = january year = 1560 }

	action_a = {
		name = "ACTIONNAME285197A" #This is not El Dorado
		command = { type = treasury value = 800 }
	}
}
#(1569) The end of El Dorado
#by Fodoron
event = {
	id = 285198
	trigger = {
		event = 285197 #SPA: Chibcha treasure
	}
	random = no
	country = SPA
	name = "EVENTNAME285198" #The end of El Dorado
	desc = "EVENTHIST285198"
	#-#In search of El Dorado departed Pedro de Ursa from Peru in 1560, down the rivers Maran, Amazon and Orinocco, but he was killed by his second Lope de Aguirre and the expedition went rogue, commiting all kind of crimes until they were all killed in Venezuela. The obsession of Gonzalo Jimnez de Quesada with El Dorado led him to obtain permission for a new expedition in 1569, putting his huge personal fortune in the line to finance it. The expedition departed with 400 Spaniards, 1500 Indians and 8 priests, and returned empty-handed in December 1572 with 64 Spaniards, 4 Indians and 2 priests, being one of the most expensive disasters in the Spanish conquest, almost ruining Quesada. But these two disastrous expeditions did not kill the myth. When it became evident that El Dorado was not to be found in Nueva Granada (Colombia), it was simply moved to the last unexplored part of the continent, the Guiana, where the last person to look for it was Sir Walter Raleigh who conducted two failed expeditions in 1595 and 1616. After that, the myth was finally put to rest, but in 1856, the drainage of the Siecha lake, in Muisca territory, allowed the discovery of a gold boat with ten figures, one of which was a chieftain. The gold boat, now in the Bogot museum, proved that the ceremony that gave origen to the myth was authentic, and that Quesada found El Dorado without knowing it.

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

	action_a = {
		name = "ACTIONNAME285198A" #It was not a myth after all
		command = { type = wakeleader which = 0127907 } #Gonzalo de Quesada (SPA)
	}
}
#End of "El Dorado" Sequence
#-----------------------------------------------------------------------------------------------

#(1529) Maluku belongs to Portugal (Spain's part)
event = {
	id = 285961
	trigger = {
		OR = {
			owned = { province = 713 data = -1 } #Tindore
			owned = { province = 714 data = -1 } #Buru
			owned = { province = 715 data = -1 } #Ceram
		}
		exists = POR
	}
	random = no
	country = SPA
	name = "EVENTNAME285961" #Maluku belongs to Portugal
	desc = "EVENTHIST285961"
	#-#Spain and Portugal had divided the entire world between themselves in 1494. They continued to argue for years over the exact position of the dividing circle. A 1524 conference sponsored by the Pope did not settle matters. In 1529 Kings of Spain and Portugal agreed that Maluku should belong to Portugal, and the Philippines should belong to Spain.

	date = { day = 1 month = january year = 1529 }
	offset = 30
	deathdate = { day = 1 month = january year = 1530 }

	action_a = {
		name = "ACTIONNAME285961A" #Accept the agreement
		command = { type = relation which = POR value = 50 }
		command = { type = relation which = PAP value = 50 }
		command = { type = cedeprovince which = POR value = 713 } #Tindore
		command = { type = cedeprovince which = POR value = 714 } #Buru
		command = { type = cedeprovince which = POR value = 715 } #Ceram
	}
	action_b = {
		name = "ACTIONNAME285961B" #No, Maluku is ours!
		command = { type = relation which = POR value = -50 }
		command = { type = relation which = PAP value = -50 }
		command = { type = trigger which = 260955 } #POR: Maluku belongs to Portugal
	}
}

#(1529) Philippines belong to Spain (Spain's part)
event = {
	id = 285962 #triggered by POR_260956 B
	random = no
	country = SPA
	name = "EVENTNAME285962" #Philippines belong to Spain
	desc = "EVENTHIST285962"
	#-#Spain and Portugal had divided the entire world between themselves in 1494. They continued to argue for years over the exact position of the dividing circle. A 1524 conference sponsored by the Pope did not settle matters. In 1529 Kings of Spain and Portugal agreed that Maluku should belong to Portugal, and the Philippines should belong to Spain.

	action_a = {
		name = "DARN"
		command = { type = casusbelli which = POR value = 60 }
	}
}

#(1529-1535) The Peace of Cambrai
#modified by Bordic
event = {
	id = 285106 #triggered by FRA_12028 A
	random = no
	country = SPA
	name = "EVENTNAME12028" #The Peace of Cambrai
	desc = "EVENTHIST3108"
	#-#Any league to stop Spanish hegemony didn't prove to be a solid alliance against Charles V troops (in fact, The Pope, taken captive by the lansquenets sacking Rome, abandoned the League of Cognac).. Genoa, important for military supply to the French troops fighting in Southern Italy, had turned to Spain thanks to the decisions of Andrea Doria who, dissatisfied by Franois Ier's misbehaviour to the Republic, preferred to offer his services to the Emperor. Since the military campaign in Italy was becoming too expensive for both sides and the political instability in the Empire due to religious conflicts was worsening, Louise of Savoy, Franois Ier's mother and regent of France, together with Margarete of Habsburg, Charles V's aunt and his representative in the administration of the Burgundian dominions, stipulated a peace treaty at Cambrai on 5 august 1529. The so called Ladies' Peace was successful, the signatories were the only ones who could have influence in the political decisions of the two monarchs and managed to induce them to make peace for the wealth of their respective countries. Signing that treaty, France had to renounce her claims to Milan, Asti, Flanders and Artois, while Spain gave up her inheritance rights to the Duchy of Bourgogne, a French fief. Franois Ier had also to withdraw all his troops from Italy and marry Eleanor, Charles's sister, in return for the liberation of his two sons, hostages at the Spanish court because of Franois Ier's disrespect for the treaty of Madrid. At Cambrai France abandoned her plans of expansionism in Italy while all her Italian allies joining an Anti-Spanish league would be now at the Emperor's mercy. The Republic of Florence would experience Charles V's rule.

	action_a = {
		name = "ACTIONNAME285106A" #Accept the Ladies' Peace
		command = { type = relation which = FRA value = 100 }
		command = { type = removecore which = 409 } #Bourgogne
		command = { type = independence which = GEN }
		command = { type = independence which = SAV }
		command = { type = independence which = MAN }
		command = { type = independence which = MOD }
		command = { type = independence which = SIE }
		command = { type = independence which = PAP }
		command = { type = cedeprovince which = FRA value = 385 } #Ile de France - just in case
		command = { type = cedeprovince which = FRA value = 383 } #Picardie
		command = { type = cedeprovince which = FRA value = 376 } #Champagne
		command = { type = cedeprovince which = FRA value = 386 } #Nivernais
		command = { type = cedeprovince which = FRA value = 409 } #Bourgogne
		command = { type = cedeprovince which = PAP value = 392 } #Marche
		command = { type = cedeprovince which = GEN value = 398 } #Corsica
		command = { type = trigger which = 285019 } #SPA: Effects of the Peace of Cambrai
	}
}
#(1529) Effects of the Peace of Cambrai
event = {
	id = 285019	#triggered by SPA_285106
	trigger = {
		OR = {
			owned = { province = 405 data = -1 } #Savoie
			owned = { province = 404 data = -1 } #Piemonte
			owned = { province = 392 data = -1 } #Marche
			owned = { province = 398 data = -1 } #Corsica
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285019" #Effects of the Peace of Cambrai
	desc = "EVENTHIST285019"
	#-#With that treaty France had to renounce claims to Italy and the Low Countries while Carlos I had to acknowledge Franois Ier, King of France, as legitimate liege of the duchy of Bourgogne.

	action_a = {
		name = "OK"
		command = { }
		command = { type = cedeprovince which = SAV value = 404 } #Piemonte
		command = { type = cedeprovince which = SAV value = 405 } #Savoie
		command = { type = cedeprovince which = PAP value = 392 } #Marche
		command = { type = cedeprovince which = GEN value = 398 } #Corsica
	}
}

#(1529) The Treaty of Barcelona
#by Malatesta and Fodoron with the help of the Spanish forum
event = {
	id = 285075
	trigger = {
		event = 17407 #SPA: Charles V's Mercenary Army Sacks Rome
		exists = PAP
	}
	random = no
	country = SPA
	name = "EVENTNAME285075" #The Treaty of Barcelona between the Emperor and the Pope
	desc = "EVENTHIST285075"
	#-#The Emperor believed that peace had finally been achieved with France after Francis I agreed to renounce his claims in Italy. But within two months of his release, Francis had retracted from his word and signed the league of Cognac, bringing into it the Pope, Milan, Florence, Venice and England. But for Giulio de Medici, Pope Clement VII, it was a huge mistake to take sides with France, as Rome was sacked by the Lutheran German mercenaries of Charles under lack of pay. Charles got his army under control, and Clement became his prisoner, and had to pay 300,000 ducats and surrender several fortresses for his release. But in the meantime, the Florentines had raised and expelled the Medici, declaring a Republic, and part of the Papal States also wanted to become independent. Now Clement needed Charles more than the emperor needed the Pope and a deal was struck. Charles agreed to restore the Papal States, to return Florence to Medici rule, to name Clement's illegitimate son from a black slave Alessandro Medici, il Moro, hereditary Duke of Florence and to give him his own illegitimate daughter from a Flemish servant, Margaret of Austria, in marriage. In exchange Clement will crown him as emperor and will become his lifelong ally. The treaty of Barcelona was signed on June 29, 1529, and Clement and Charles will meet at Bologna at the end of the year, with the crowning taking place on February 24, 1530 in the same city. Charles V will be the last Holy Roman Emperor to be crowned by a Pope. A consequence of this alliance will be that Clement will refuse the divorce of Henry VIII from the emperor's aunt, Catalina, even at the cost of driving England into Protestantism.

	date = { day = 29 month = June year = 1529 }

	action_a = {
		name = "ACTIONNAME285075A" #Sign
		command = { type = treasury value = 150 }
		command = { type = dynastic which = PAP }
		command = { type = casusbelli which = TOS value = 60 } #Pope gives it
		command = { type = relation which = PAP value = 100 }
		command = { type = relation which = TOS value = -50 }
		command = { type = trigger which = 251048 } #PAP: the Treaty of Barcelona
	}
	action_b = {
		name = "ACTIONNAME285075B" #Reject
		command = { type = relation which = PAP value = -25 }
		command = { type = sleepevent which = 285107 } #SPA: The coronation of Charles V
	}
}

#(1529-1535) The coronation of Charles V
#by Bordic
event = {
	id = 285107
	trigger = {
		OR = {
			emperor = yes
			AND = {
				event = 179073 #HAB: The coronation of Charles V
				emperor = no
			}
		}
		exists = PAP
		event = 251048 #PAP: The Treaty of Barcelona between the Emperor and the Pope
		NOT = {
			war = { country = PAP country = HAB }
			war = { country = PAP country = SPA }
			war = { country = FRA country = SPA }
		}
		OR = {
			event = 285106 #SPA: The Peace of Cambrai
			OR = {
				alliance = { country = FRA country = HAB }
				alliance = { country = FRA country = SPA }
				NOT = { owned = { province = 393 data = FRA } } #napoli
				NOT = { owned = { province = 389 data = FRA } } #Lombardia
			}
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285107" #The coronation of Charles V
	desc = "EVENTHIST285107"
	#-#In late 1529, according to the treaty stipulated in Barcelona a few months before, Charles V came to Bologna to meet the Pope. Princes and ambassadors of all Italian states came to this encounter with the intention to confirm their allegiance to the Empire. Charles V used his strengthened political influence to definitely settle the Italian balance of powers and the conflicts between the Italian minors that deceitfully used to switch sides between France and the Empire. According to Mercurino da Gattinara's advices Charles V granted independence to all the imperial fiefs and, with the mediation of Pope Clemens VII, even to Francesco Sforza who was reinstated in his duchy in spite of his joining the league of Cognac. Pope Clemens VII instead, receiving the territory of Parma was to renounce his claims to Modena and Ferrara and to promise to arrange for a Concile in the next future to discuss about the Reform of the Church. Settled the political affairs in the peninsula, Charles was crowned by Pope Clement VII King of Italy on 22 February 1530 and Holy Roman Emperor two day later, in two solemn ceremonies arranged in Bologna. The imperial crown was a really big gift for his 30th birthday: Charles V resulted, in facts, the last Holy Roman Emperor in history to be personally crowned by the Pope.

	date = { day = 22 month = October year = 1529 } #Charles V in Bologna
	offset = 30
	deathdate = { day = 22 month = October year = 1535 }

	action_a = {
		name = "ACTIONNAME285107A" #Now we are Emperor by God's will
		command = { type = DIP which = 2 value = 12 }
		command = { type = ADM which = 2 value = 12 }
		command = { type = independence which = MLO }
		command = { type = independence which = MAN }
		command = { type = independence which = MOD }
		command = { type = independence which = SIE }
		command = { type = independence which = GEN }
		command = { type = independence which = SAV }
		#if SAV already exists, it'll receive all its core provinces
		command = { type = cedeprovince which = SAV value = 404 } #Piemonte
		command = { type = cedeprovince which = SAV value = 405 } #Savoie
		command = { type = cedeprovince which = PAP value = 402 } #Emilia
		command = { type = cedeprovince which = PAP value = 401 } #Firenze (to be released as PAP vassal)
		command = { type = trigger which = 251049 } #PAP: The coronation of Charles V
	}
}

#(1534) the Spanish Tercios
#by Daovir and Fodoron with the help of the Spanish forum
event = {
	id = 285082
	random = no
	country = SPA
	name = "EVENTNAME285082" #The Spanish Tercios
	desc = "EVENTHIST285082"
	#-#After the peace of Cambrai, Carlos decided to reorganize his troops in Italy. In his reformation of 1534, he created the Tercios, based on the previous reforms of el Gran Capitn, while modernizing them. Each Tercio was constituted by 3000 men divided in three regiments and 12 companies and was commanded by a Field Marshall. For the first time it included an army command staff that took care of administrative and judicial tasks as well as participating in the military decisions. The elimination of swordsmen allowed an increase in the number of pikers and arquebusiers which carried a sword to fight at close range, resulting in an increase of the Tercios firepower, their main characteristic. The soldiers of the Tercio were all volunteers trained within the regiment giving the units a great cohesion that always allowed them to attack or retreat in good order, greatly increasing their efficiency. The first Tercios formed where those of Naples, Sicily, Sardinia and Lombardy. They were called the old Tercios. Later new Tercios were created, including the Sea Tercios as the first specific units of marines of the world, and the Flandern Tercios in 1567. The reformation was very successful, and over a century the Spanish Tercios were considered invincible. The Tercios will last until 1704 when they were dissolved by Felipe V to adopt a French regiment organization.

	date = { day = 15 month = july year = 1534 }

	action_a = {
		name = "ACTIONNAME285082A" #A better army
		command = { type = land value = 1000 }
		command = { type = domestic which = offensive value = 1 }
		command = { type = domestic which = quality value = 1 }
	}
}

#(1534-1820) Settlement of Jamaica
event = {
	id = 285314
	trigger = {
		NOT = { core = { province = 140 data = -1 } } #Jamaica
		owned = { province = 140 data = -1 }
		control = { province = 140 data = -1 }
		NOT = { provincereligion = { province = 140 data = pagan } } #not a TP
	}
	random = no
	country = SPA
	name = "EVENTNAME285314" #Settlement of Jamaica
	desc = "EVENTHIST285314"
	#-#The first colonists have arrived.

	date = { day = 6 month = august year = 1534 }
	offset = 10
	deathdate = { year = 1820 }

	action_a = {
		name = "EXCELLENT"
		command = { type = addcore which = 140 } #Jamaica
	}
}

#(1535) Milan defies the Empire (MLO independent without France in game)
#by Bordic
event = {
	id = 285334 #triggered by MLO_228031 C
	random = no
	country = SPA
	name = "EVENTNAME285109" #Milan defies the Empire
	desc = "EVENTHIST285334"
	#-#

	action_a = {
		name = "ACTIONNAME285109A" #Milan must be under Imperial rule
		command = { 
			trigger = { emperor = yes }
			type = addcore_claim which = 389 #Lombardia
		}
		command = { type = relation which = MLO value = -200 }
		command = { type = stability value = -1 }
		command = { type = sleepevent which = 285222 } #SPA: The lapsed fief of Milan
		command = { type = sleepevent which = 179074 } #HAB: The lapsed fief of Milan
	}
}

#(1535) The lapsed fief of Milan
#by Bordic
event = {
	id = 285222
	trigger = {
		OR = {
			AND = {
				emperor = yes
				exists = MLO
			}
			AND = {
				event = 179074 #HAB: The lapsed fief of Milan
				emperor = no
			}
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285222" #The lapsed fief of Milan
	desc = "EVENTHIST285222"
	#-#In 1530 during the congress of Bologna Pope Clement VII consecrated Charles V Holy Roman Emperor and convinced him to forgive the misbehaviour of Francesco II Sforza who joined the League of Cognac, as the Pope himself did. The Pope managed to have the Emperor grant Sforza the ducal title on the throne of Milan again, but under the firm condition that, on Sforza's death, the Duchy would have returned definitely to the Empire. A marriage was also agreed between Sforza and Charles V's niece Christine of Denmark.

	date = { day = 0 month = October year = 1535 }
	offset = 1
	deathdate = { day = 29 month = October year = 1535 }

	action_a = {
		name = "ACTIONNAME285222A" #Milan will be part of Spain
		command = { type = addcore which = 389 } #Lombardia
		command = { type = DIP which = 2 value = 12 }
		command = { type = ADM which = 2 value = 12 }
		command = { type = MIL which = 2 value = 12 }
		command = { type = relation which = HAB value = 30 }
	}
}

#(1535) The Reversion of Milan
#by Bordic
event = {
	id = 285108 #triggered by MLO_228031 A
	random = no
	country = SPA
	name = "EVENTNAME285108" #The Reversion of Milan
	desc = "EVENTHIST228031"
	#-#In 1530 during the congress of Bologna Pope Clement VII consecrated Charles V Holy Roman Emperor and convinced him to forgive the misbehaviour of Francesco II Sforza who joined the League of Cognac, as the Pope himself did, having the Emperor confirm him still Duke of Milan. Charles V conceded him the ducal title again but on the firm condition that on Sforza's death the Duchy would have returned definitely to the Empire. A marriage was also agreed between Sforza and Charles V's niece Christine of Denmark. On 2 November 1535 Duke Francesco II died childless and, according to the previous agreements of Bologna, the Duchy reverted to the Empire. As suzerain of those fiefs, Charles V had it administrated by means of life-governors whom he himself appointed. The Emperor's decision strongly displeased Franois Ier of France, whose younger son Charles, in possession of the title of Duke of Orlans and thus with dynastical claims to the Milanese throne, had his candidature rejected, in spite of his assurances of allegiance to the Empire.

	action_a = {
		name = "ACTIONNAME285108A" #Milan is now part of Spain
		command = { type = addcore which = 389 } #Lombardia
		command = { type = inherit which = MLO }
		command = { type = independence which = SIE } #Habsburg regency (see SIE_17350 A)
		command = { type = cedeprovince which = GEN value = 398 } #Corsica
		command = { type = cedeprovince which = PAP value = 392 } #Marche
		command = { type = cedeprovince which = PAP value = 402 } #Emilia (PAR duchy released by PAP)
		command = { type = relation which = FRA value = -25 }
		command = { type = relation which = HAB value = 50 }
		command = { type = sleepevent which = 285222 } #SPA: The lapsed fief of Milan
		command = { type = sleepevent which = 179074 } #HAB: The lapsed fief of Milan
	}
}
#(1535) Milan defies the Empire
#by Bordic
event = {
	id = 285109 #triggered by MLO_228031 B
	random = no
	country = SPA
	name = "EVENTNAME285109" #Milan defies the Empire
	desc = "EVENTHIST170050"
	#-#In 1530 during the congress of Bologna Pope Clement VII consecrated Charles V Holy Roman Emperor and convinced him to forgive the misbehaviour of Francesco II Sforza who joined the League of Cognac, as the Pope himself did, having the Emperor confirm him still Duke of Milan. Charles V conceded him the ducal title again but on the firm condition that on Sforza's death the Duchy would have returned definitely to the Empire. A marriage was also agreed between Sforza and Charles V's niece Christine of Denmark. On 2 November 1535 Duke Francesco II died childless but, in spite of the previous agreements of Bologna, the people of Milan refused Charles V's decision to have the duchy reverted to the Empire and offered the throne to Franois Ier of France instead, who, he and his successors as legitimate Dukes of Orlans, would establish the French line of Visconti-Orlans as the ruling dynasty in Milan, thus removing the imperial eagles from the coat of arms and binding the destiny of the Orlans yellow lilies to that of the Milanese Visconti snake for the times to come.

	action_a = {
		name = "ACTIONNAME285109A" #Milan must be under Imperial rule
		command = { type = addcore which = 389 } #Lombardia
		command = { type = stability value = -1 }
		command = { type = relation which = MLO value = -100 }
		command = { type = sleepevent which = 285222 } #SPA: The lapsed fief of Milan
		command = { type = sleepevent which = 179074 } #HAB: The lapsed fief of Milan
	}
}

#(1538) Cleves inherited Guelders
#by Twoflower
event = {
	id = 75007 #triggered by KLE_75006 A
	random = no
	country = SPA
	name = "EVENTNAME75007" #Cleves inherited Guelders
	desc = "EVENTHIST75007"
	#-#In 1538 Duke Charles of Guelders died without an heir. Once again the estates of Guelders had to choose a successor. They elected the protestant Duke Wilhelm of Kleve who had just unified Kleve and Berg. However, the Habsburgs who had inherited the claim from Burgundy interfered, and after defeating Kleve annexed Guelders.

	action_a = {
		name = "ACTIONNAME75007A" #We must defend our claim
		command = { type = addcore which = 338 } #Geldre
		command = { type = relation which = KLE value = -200 }
		command = { type = casusbelli which = KLE value = 36 }
	}
	action_b = {
		name = "ACTIONNAME75007B" #Accept Guelders's decision
		command = { type = relation which = KLE value = 100 }
		command = { type = removecore which = 338 } #Geldre
	}
}
#(1538) Habsburg inherits Guelders
event = {
	id = 75008 #triggered by GEL_75005 B / GEL_75017 A / KLE_75006 B
	random = no
	country = SPA
	name = "EVENTNAME75008" #Habsburg inherits Guelders
	desc = "EVENTHIST75008"
	#-#In 1538 Duke Charles of Guelders died without an heir. Once again the estates of Guelders had to choose a successor. They elected Emperor Charles V. who had inherited a claim on the country from Charles the Bold and who was always looking to increase his dutch possessions.

	action_a = {
		name = "ACTIONNAME75008A" #Annex Guelders
		command = { type = inherit which = GEL }
		command = { type = addcore which = 338 } #Geldre
	}
}
#(1538) Habsburg claim on Guelders ignored
event = {
	id = 75009 #triggered by GEL_75005 C / GEL_75017 B
	random = no
	country = SPA
	name = "EVENTNAME75009" #Habsburg claim on Guelders ignored
	desc = "EVENTHIST75009"
	#-#In 1538 Duke Charles of Guelders died without an heir. Once again the estates of Guelders had to choose a successor. They elected a local noble, ignoring the claim that Habsburg has inherited from Charles the Bold.

	action_a = {
		name = "ACTIONNAME75007A" #We must defend our claim
		command = { type = addcore which = 338 } #Geldre
		command = { type = relation which = GEL value = -200 }
		command = { type = casusbelli which = GEL value = 36 }
	}
	action_b = {
		name = "ACTIONNAME75007B" #Accept Guelders's decision
		command = { type = relation which = GEL value = 100 }
		command = { type = removecore which = 338 } #Geldre
	}
}

#(1544) The Treaty of Crpy
#by Bordic
event = {
	id = 285110
	trigger = {
		exists = FRA
		NOT = {
			war = { country = FRA country = SPA }
			war = { country = FRA country = HAB }
			alliance = { country = FRA country = SPA }
			alliance = { country = FRA country = HAB }
		}
		event = 301019 #TUR: The alliance with the Infidels
		OR = {
			owned = { province = 409 data = FRA } #Bourgogne
			owned = { province = 404 data = FRA } #Piemonte
		}
		OR = {
			owned = { province = 379 data = SPA } #Picardie
			owned = { province = 383 data = SPA } #Artois
			owned = { province = 389 data = SPA } #Lombardia
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285110" #The Treaty of Crpy
	desc = "EVENTHIST285110"
	#-#At Francesco II Sforza's death, the Duchy of Milan reverted to the Empire and as Charles V newly rejected the French Orlans candidature to the Milanese throne, Franois Ier, King of France, planned a new military campaign in Italy against Charles V, this time with the help of the Turk. At first the French King attacked Savoy, because Duke Charles III refused French military access through his possessions, and annexed it with the assertion he had a dynastical claim to it. Deeply annoyed by this behaviour, Charles V sent an expeditionary force to conquer Provence, once imperial land. The expedition unfortunately failed while the scary Ottoman menace over Italy led Pope Paulus III to warmly invite the two contenders to make peace and form a Christian league in order to face the Turks. In 1538 in Nice a decennial truce was concluded with Papal support. But that cease-fire couldn't last too long. In 1542 Milan had to face a new French attack which resulted in an imperial heavy defeat at Ceresole in Piemonte, but although northern Italy totally fell under French control, at the same time English and Spanish-Imperial troops attacked France from both sides: even Paris was under menace. Lack of supplies and low troops reinforcements brought Charles V to eventually sign a peace treaty with Franois Ier at Crpy in late 1544. With that treaty France was recognized possession of Piemonte, still under French control and in spite of Savoyard legal claims to those lands, instead the Emperor was confirmed suzerainty over the duchy of Milan. That treaty also stated that Franois Ier had to renounce his claims to Naples, Flanders and Artois, while Charles V had to abandon any claim to the duchy of Bourgogne, ancestral Burgundian feud. It was also agreed that a diplomatic marriage had to be arranged between the youngest of Franois's sons, Charles Duke of Orlans and, either the Emperor's daughter (bringing Flanders and Franche-Comt as dowry) or the Emperor's niece and Ferdinand's daughter (bringing Milan as dowry). That would be by Emperor's choice. After two month's thoughts, Charles V decided to concede his daughter as spouse to Charles of Orlans, together with the dowry of Milan. However, in late 1545 the sudden death of Charles of Orlans liberated Charles V from the treaty's obligations and on 5 July 1546 he could invest his son Don Felipe with the Duchy of Milan. With this act, the imperial fief of Milan became definitively direct dominion of the Spanish line of the House of Habsburg.

	date = { day = 18 month = February year = 1542 }
	offset = 30
	deathdate = { day = 18 month = September year = 1544 }

	action_a = {
		name = "ACTIONNAME12037A" #Sign the Treaty
		command = { type = removecore which = 409 } #Bourgogne
		command = { type = removecore which = 386 } #Nivernais
		command = { type = relation which = PAP value = 50 }
		command = { type = relation which = HAB value = 25 }
		command = { type = relation which = ENG value = 50 }
		command = { type = relation which = TUR value = -50 }
		command = { type = trigger which = 170013 } #FRA: The Treaty of Crpy
	}
	action_b = {
		name = "ACTIONNAME12037B" #Refuse to sign it
		command = { type = relation which = FRA value = -50 }
		command = { type = relation which = PAP value = -25 }
	}
}

#(1545-1565) Italian Leaders abandon Spain
event = {
	id = 285011
	trigger = {
		OR = {
			#one of Italy, Parma must exist
			exists = ITA
			exists = PAR
		}
		NOT = { countrysize = 6 } #if they have 6 provinces they get the leaders
		NOT = { #cannot own Madrid plus two of Naples, Catalonia and Andalucia
			AND = {
				owned = { province = 436 data = -1 } #Castilla
				OR = {
					AND = {
						owned = { province = 443 data = -1 } #Andalucia
						owned = { province = 429 data = -1 } #Catalonia
					}
					AND = {
						owned = { province = 443 data = -1 } #Andalucia
						owned = { province = 393 data = -1 } #Napoli
					}
					AND = {
						owned = { province = 429 data = -1 } #Catalonia
						owned = { province = 393 data = -1 } #Napoli
					}
				}
			}
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285011" #Italian Leaders abandon Spain
	desc = "EVENTHIST285011"
	#-#With Spain's failure to become a major player on the European scene, she is no longer an attractive employer for military-minded Europeans. Some Italian generals are no longer available.

	date = { day = 7 month = march year = 1545 }
	offset = 953
	deathdate = { day = 17 month = november year = 1565 }

	action_a = {
		name = "OH_NO"
		command = { type = sleepleader which = 0127834 } #Alessandro Farnese (SPA)
		command = { type = wakeleader which = 0103801 } #Alessandro (PAR)
	}
}

#(1547) the Statutes of Blood Cleanliness
#by Fodoron
event = {
	id = 285051
	random = no
	country = SPA
	name = "EVENTNAME285051" #The Statutes of Blood Cleanliness
	desc = "EVENTHIST285051"
	#-#The massive conversion of Jews and the expulsion of those unwilling to convert did not end the religious and racial tensions in Spain. In fact, due to their higher education and wealth, the converts soon reached positions not available to them before their conversion. The Spanish society of the Old Christians reacted to them with rejection, but the problem was how to identify them. The solution was the Statutes of Blood Cleanliness, that demanded that to achieve a certain position, the candidate was required to demonstrate that his ancestors were Old Christians. They were imposed by the society against the wishes of the Kings and popes starting in Toledo in 1449. Gradually some university colleges, religious orders and military orders were imposing them. Cases of false converts discovered by the Inquisition between friars fueled them, leading to a papal approval in 1496. The priest Juan Martinez Siliceo was named religious educator of prince Felipe by the Emperor Carlos, and was rewarded with the position of Archbishop of Toledo, and later Cardinal. He was an intransigent fanatic, and he was able to impose the Statutes of Blood Cleanliness in the Church in 1547 despite important opposition. Soon they were extended to any position of responsibility, both public and private. The Status were an important factor in the obsession with racial purity and lineage that overtook the Spanish society for 200 years, since it was essential to have a clean lineage to advance in the society.

	date = { day = 15 month = june year = 1547 }

	action_a = {
		name = "ACTIONNAME285051A" #Allow them
		command = { type = stability value = 1 }
		command = { type = domestic which = innovative value = -1 }
	}
	action_b = {
		name = "ACTIONNAME285051B" #Forbid such madness
		command = { type = stability value = -1 }
		command = { type = domestic which = innovative value = 1 }
	}
}

#(1549) The Pragmatic Sanction of 1549, by Archeolooginspe
event = {
	id = 285300
	trigger = {
		OR = {
			owned = { province = 379 data = -1 } #Artois
			owned = { province = 378 data = -1 } #Brabant
			owned = { province = 380 data = -1 } #Flanders
			owned = { province = 337 data = -1 } #Friesen
			owned = { province = 338 data = -1 } #Geldre
			owned = { province = 339 data = -1 } #Holland
			owned = { province = 377 data = -1 } #Luxenbourg
			owned = { province = 340 data = -1 } #Zeeland
		}
		NOT = {	exists = BUR }
		NOT = { #IB added this to avoid both Austria and Spain getting the event
			event = 179303 #HAB: The Pragmatic Sanction of 1549
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285300" #Pragmatic Sanction
	desc = "EVENTHIST285300"
	#-#In 1549, the 'Pragmatic Sanction' added a further link between the XVII provinces and declared them to be an 'indivisible, inseparable whole', subject to the same law of succession.

	date = { day = 1 month = january year = 1549 }
	offset = 360
	deathdate = { day = 1 month = january year = 1550 }

	action_a = {
		name = "ACTIONNAME285300A" #Bring the XVII provinces together
		command = { type = provincetax which = 379 value = 1 } #Artois
		command = { type = provincetax which = 378 value = 1 } #Brabant
		command = { type = provincetax which = 380 value = 1 } #Flandern
		command = { type = provincetax which = 337 value = 1 } #Friesen
		command = { type = provincetax which = 338 value = 1 } #Geldre
		command = { type = provincetax which = 339 value = 1 } #Holland
		command = { type = provincetax which = 377 value = 1 } #Luxembourg
		command = { type = provincetax which = 340 value = 1 } #Zeeland
		command = { type = relation which = FRA value = -50 }
	}
	action_b = {
		name = "ACTIONNAME285300B" #Let them keep their own succesion laws
		command = { type = stability value = 1 }
		command = { type = domestic which = aristocracy value = 1 }
	}
}

#(1552-1565) The Farnese pay homage
event = {
	id = 285113 #triggered by PAR_390019
	random = no
	country = SPA
	name = "EVENTNAME285113" #The Farnese pay homage
	desc = "EVENTHIST285113"
	#-#Founded by the illegitimate son of Pope Paul III, the Farnese ruled the Italian Duchy of Parma. Through blood and marriage they've bound themselves to the Habsburg cause.

	action_a = {
		name = "GREAT"
		command = { type = vassal which = PAR }
		command = { type = vp value = 5 }
	}
}

#-----------------------------------------------------------------------------------------------
#"War of Arauco" Sequence

#(1553-1575) La Araucana
#by Fodoron
event = {
	id = 285193
	trigger = {
		owned = { province = 176 data = -1 } #Talca
	}
	random = no
	country = SPA
	name = "EVENTNAME285193" #La Araucana
	desc = "EVENTHIST285193"
	#-#The Spaniards reacted to the death of Valdivia and the Araucanian offensive with a military response. In 1557 Francisco de Villagra killed the Toqui (war leader) Lautaro, and the next year his successor Caupolicn was killed by the new governor, Garca Hurtado de Mendoza. Although the Spaniards suffered a few setbacks, for the most part of this phase of the war they were victorious and by 1570 the Arauco was apparently pacified by Pedro de Villagra and Rodrigo de Quiroga. One of Garca Hurtado's captains was the poet Alonso de Ercilla, who wrote his masterwork La Araucana based on these events. However the Araucanians were far from pacified but were only taking a respite from plagues and defeats.

	date = { day = 0 month = january year = 1553 }
	offset = 100
	deathdate = { day = 0 month = january year = 1575 }

	action_a = {
		name = "ACTIONNAME285193A" #Pacify the Mapuche
		command = { type = INF which = 176 value = 4000 } #Talca
		command = { type = province_revoltrisk which = 176 value = 3 } #Talca
	}
}
#(1608-1626) Defensive war in Arauco
#by Fodoron
event = {
	id = 285194
	trigger = {
		owned = { province = 176 data = -1 } #Talca
	}
	random = no
	country = SPA
	name = "EVENTNAME285194" #Defensive war in Arauco
	desc = "EVENTHIST285194"
	#-#The strong defensive system of Alonso de Ribera was very effective in limiting the Araucanian attacks, and in 1608 the Araucanian Toqui Pelantaro accepted peace and, as a submission signal, returned the skulls of Valdivia and Garca ez that he used to drink chicha, the local beer. Meanwhile the Jesuits were trying to convince the government that Indian resistance was due to Spanish repressive methods. It was worth trying, so the mystic father Luis de Valdivia was authorized in 1612 to promise the Araucanians peace and Spanish retreat from their lands in exchange for accepting missionaries. Obviously as soon as the military left, the missionaries were cruelly put to death. By 1626, it was clear that the defensive war proposed by the Jesuits was a complete failure and was abandoned. However plagues and racial mixing were slowly reducing the Araucanian resistance.

	date = { day = 0 month = january year = 1608 }
	offset = 100
	deathdate = { day = 0 month = january year = 1626 }

	action_a = {
		name = "ACTIONNAME285194A" #Retreat from Mapuche territory
		command = { type = desertion which = 176 value = 2000 } #Talca
		command = { type = province_revoltrisk which = 176 value = -2 } #Talca
	}
}
#End of "War of Arauco" Sequence
#-----------------------------------------------------------------------------------------------

#(1556) Charles V's retirement
event = {
	id = 285253
	trigger = {
		emperor = yes
		OR = { 
			core_claim = { province = 389 data = -1 } #Lombardia (imperial lapsed fief)
			core_national = { province = 389 data = -1 } #Lombardia
		}
		core = { province = 387 data = -1 } #Franche-Comt (Burgundian inheritance)
		exists = HAB
		OR = { #minimal Spanish presence in the Low Countries
			owned = { province = 340 data = -1 } #Zeeland
			owned = { province = 377 data = -1 } #Luxemburg
			owned = { province = 378 data = -1 } #Brabant
			owned = { province = 379 data = -1 } #Artois
			owned = { province = 380 data = -1 } #Flanders
			owned = { province = 383 data = -1 } #Picardie
		}
		OR = { #minimal Spanish presence in Italy
			owned = { province = 405 data = SPA } #Savoie
			owned = { province = 404 data = SPA } #Piemonte
			owned = { province = 389 data = SPA } #Lombardia
			owned = { province = 401 data = SPA } #Firenze
			owned = { province = 402 data = SPA } #Emilia
			owned = { province = 400 data = SPA } #Siena
			owned = { province = 403 data = SPA } #Liguria
			owned = { province = 390 data = SPA } #Mantua
			owned = { province = 391 data = SPA } #Romagna
			owned = { province = 392 data = SPA } #Marche
			owned = { province = 399 data = SPA } #Roma
			owned = { province = 393 data = SPA } #Napoli
			owned = { province = 394 data = SPA } #Apulia
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285253" #Charles V's retirement
	desc = "EVENTHIST285253"
	#-#In 1556 Emperor Charles decided to abdicate and before his retirement to the monastery of Yuste in Extremadura, he passed his imperial title to his brother Ferdinand, who he already entrusted with the government of the Habsburg hereditary lands in 1521 and supported his election as King of the Romans in 1531, making him his designated heir as Emperor. After Charles's abdication, Ferdinand would have assumed the title of Holy Roman Emperor, Charles seemingly having agreed to exclude his own son Felipe from the succession to the Austrian line of the House of Habsburg, which instead passed to Ferdinand's eldest son Maximilian as much as the imperial title.

	date = { day = 28 month = january year = 1556 }
	offset = 30
	deathdate = { day = 28 month = september year = 1556 }

	action_a = {
		name = "ACTIONNAME285253A" #Support the candidature of Ferdinand of Austria
		command = { type = stability value = 1 }
		command = { type = DIP which = 2 value = 6 }
		command = { type = relation which = HAB value = 50 }
		command = { type = trigger which = 179089 } #HAB: The Empire of the Habsburgs
	}
	action_b = {
		name = "ACTIONNAME285253B" #Support the candidature of Don Felipe instead
		command = { type = stability value = -1 }
		command = { type = treasury value = -300 }
		command = { type = relation which = HAB value = -30 }
		command = { type = relation which = FRA value = -30 }
		command = { type = relation which = BAY value = 25 }
		command = { type = relation which = BOH value = 25 }
		command = { type = relation which = BRA value = 25 }
		command = { type = relation which = BRE value = 25 }
		command = { type = relation which = HAN value = 25 }
		command = { type = relation which = HES value = 25 }
		command = { type = relation which = KLE value = 25 }
		command = { type = relation which = KOL value = 25 }
		command = { type = relation which = LOR value = 25 }
		command = { type = relation which = MAI value = 25 }
		command = { type = relation which = MEC value = 25 }
		command = { type = relation which = BRG value = 25 }
		command = { type = relation which = OLD value = 25 }
		command = { type = relation which = PFA value = 25 }
		command = { type = relation which = POM value = 25 }
		command = { type = relation which = SEI value = 25 }
		command = { type = relation which = PRU value = 25 }
		command = { type = relation which = ROM value = 25 }
		command = { type = relation which = SAC value = 25 }
		command = { type = relation which = SHL value = 25 }
		command = { type = relation which = STR value = 25 }
		command = { type = relation which = STT value = 25 }
		command = { type = relation which = TYR value = 25 }
		command = { type = relation which = MEI value = 25 }
		command = { type = relation which = WUR value = 25 }
	}
}

#(1556) The Abdication of Charles V
event = {
	id = 3157
	trigger = {
		OR = {
			event = 3749 #HAB: The Abdication of Charles V
			event = 179016 #HAB: The Emperor's Abdication
			AND = {
				event = 3178 #HAB: The Habsburg Inheritance of Burgundy (if HAB doesn't exist)
				NOT = { exists = HAB }
			}
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME3157" #The Abdication of Charles V
	desc = "EVENTHIST3157"
	#-#On the twenty-fifth day of October, 1555, the estates of the Netherlands were assembled in the great hall of the palace at Brussels. They had been summoned to be witnesses and the guarantees of the abdication, which Charles V had long before resolved upon, and which he was that day to execute. Charles was a devotee catholic and compassionate with other people, but he could not see why anyone would not come back to the only church there was, the Catholic Church. The incessant strife, both religious and political, within the Holy Roman Empire had worn him down. Therefore he wanted to split the Habsburg Empire between Madrid and Vienna and then withdraw to the calm milieu of his favorite cloister. Let the rash and youthful take care of the problems!

	date = { day = 0 month = october year = 1556 }

	action_a = {
		name = "ACTIONNAME3157A" #Yes Father!
		command = { type = remove_countryculture which = dutch }
		command = { type = relation which = HAB value = 100 }
		command = { type = dynastic which = HAB }
		command = { type = alliance which = HAB }
		command = { type = stability value = 1 }
	}
}

#(1559-1575) The Treaty of Cateau-Cambrsis
#by Bordic
event = {
	id = 285112 #triggered by FRA_12037 A
	random = no
	country = SPA
	name = "EVENTNAME12037" #The Treaty of Cateau-Cambrsis
	desc = "EVENTHIST12037"
	#-#The spread of Calvinism led the King of France to sign the Treaty of Cateau-Cambrsis in 1559, ending the long struggle between France and Spain. After decades of reckless invasions, Henri II agreed to respect Habsburg primacy in Italy and control over Flanders and Franche-Comt. King Felipe II of Spain, in return, promised that Spain would desist in its attempts to weaken the Valois Kings. After signing the treaty, Henri II and Felipe II could now turn their attention to combating Protestantism. In execution of the peace treaty the House of Savoy was granted its ancestral territories in order to form a buffer state between France and Spanish controlled Italy.

	action_a = {
		name = "ACTIONNAME12037A" #Sign the Treaty
		command = { type = removecore which = 409 } #Bourgogne
		command = { type = removecore which = 376 } #Champagne
		command = { type = removecore which = 383 } #Picardie
		command = { type = removecore which = 386 } #Nivernais (in case they are still BUR->SPA cores)
		command = { type = independence which = FRI }
		command = { type = independence which = GEN }
		command = { type = independence which = MAN }
		command = { type = independence which = MOD }
		command = { type = independence which = PAR }
		command = { type = independence which = TOS }
		command = { type = independence which = PAP }
		#All French fiefs
		command = { type = cedeprovince which = FRA value = 376 } #Champagne
		command = { type = cedeprovince which = FRA value = 382 } #Calais
		command = { type = cedeprovince which = FRA value = 383 } #Picardie
		command = { type = cedeprovince which = FRA value = 384 } #Caux
		command = { type = cedeprovince which = FRA value = 385 } #Ile de France
		command = { type = cedeprovince which = FRA value = 386 } #Nivernais
		command = { type = cedeprovince which = FRA value = 406 } #Provence
		command = { type = cedeprovince which = FRA value = 407 } #Dauphin
		command = { type = cedeprovince which = FRA value = 408 } #Lyonnais
		command = { type = cedeprovince which = FRA value = 409 } #Bourgogne
		command = { type = cedeprovince which = FRA value = 410 } #Berri
		command = { type = cedeprovince which = FRA value = 411 } #Orleanais
		command = { type = cedeprovince which = FRA value = 412 } #Maine
		command = { type = cedeprovince which = FRA value = 413 } #Normandie
		command = { type = cedeprovince which = FRA value = 414 } #Armor
		command = { type = cedeprovince which = FRA value = 415 } #Bretagne
		command = { type = cedeprovince which = FRA value = 416 } #Morbihan
		command = { type = cedeprovince which = FRA value = 417 } #Vende
		command = { type = cedeprovince which = FRA value = 418 } #Poitou
		command = { type = cedeprovince which = FRA value = 419 } #Limousin
		command = { type = cedeprovince which = FRA value = 420 } #Auvergne
		command = { type = cedeprovince which = FRA value = 421 } #Cvennes
		command = { type = cedeprovince which = FRA value = 422 } #Languedoc
		command = { type = cedeprovince which = FRA value = 423 } #Guyenne
		command = { type = cedeprovince which = FRA value = 424 } #Gascogne
		command = { type = cedeprovince which = FRA value = 425 } #Barn
		command = { type = cedeprovince which = SAV value = 404 } #Piemonte
		command = { type = cedeprovince which = SAV value = 405 } #Savoie
		command = { type = relation which = FRA value = 300 }
		command = { type = dynastic which = FRA }
		command = { type = trigger which = 285263 } #SPA: Effects of the Treaty of Cateau-Cambrsis in Italy
	}
}
#(1559-1575) Effects of the Treaty of Cateau-Cambrsis in Italy
event = {
	id = 285263	#triggered by SPA_285112
	trigger = {
		OR = {
			AND = {
				owned = { province = 400 data = -1 } #Siena
				exists = TOS
			}
			AND = {
				owned = { province = 392 data = -1 } #Marche
				exists = PAP
			}
			AND = {
				owned = { province = 398 data = -1 } #Corsica
				exists = GEN
			}
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285263" #Effects of the Treaty of Cateau-Cambrsis in Italy
	desc = "EVENTHIST285263"
	#-#With that treaty King Felipe II confirmed the independence of Papal States and of the Republic of Genoa but assigned the administration of the Sienese territory to Cosimo I de' Medici Grand DUke of Tuscany, except for the Sienese coastal cities which constituted the State of Presidi, a strategic territory under direct Spanish military administration.

	action_a = {
		name = "OK"
		command = { }
		command = { type = cedeprovince which = TOS value = 400 } #Siena (historically to Tuscany)
		command = { type = cedeprovince which = PAP value = 392 } #Marche
		command = { type = cedeprovince which = GEN value = 398 } #Corsica
	}
}

#(1559-1575) The Independence of Savoy (SPA event)
#by Bordic
event = {
	id = 285098
	trigger = {
		event = 12037 #FRA: Treaty of Cateau-Cambrsis
		OR = {
			owned = { province = 404 data = -1 } #Piemonte
			owned = { province = 405 data = -1 } #Savoie
		}
		NOT = {
			exists = SAV
			event = 170021 #FRA: The Independence of Savoy
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME170021" #The Independence of Savoy
	desc = "EVENTHIST170021"
	#-#In execution of the treaty of Cateau-Cambrsis between France and Spain, with which King Henry II of France agreed to respect Habsburg primacy in Italy and control over Flanders while King Felipe II of Spain, in return, promised that Spain would desist in its attempts to weaken the Valois Kings, the House of Savoy was granted its territories in order to form a buffer state between France and Italy. The French troops had to abandon the strongholds of Turin, Chieri, Pinerolo, Chivasso and Asti except those in the Marquisate of Saluzzo whose territory was assigned to France. Only in 1575 both French and Spanish troops freed the ducal territory of their presence.

	date = { day = 2 month = April year = 1559 }
	offset = 20
	deathdate = { day = 20 month = October year = 1575 }

	action_a = {
		name = "ACTIONNAME170021A" #Grant independence
		command = { type = independence which = SAV }
		command = { type = sleepevent which = 170021 } #FRA: The Independence of Savoy
		command = { type = trigger which = 170022 } #FRA: French troops abandon Savoy
		command = { type = trigger which = 285099 } #SPA: Spanish troops abandon Savoy
	}
	action_b = {
		name = "ACTIONNAME170021B" #Deny independence
		command = { type = stability value = -1 }
		command = { type = domestic which = serfdom value = 1 }
		command = { type = domestic which = centralization value = -2 }
		command = { type = sleepevent which = 170021 } #FRA: The Independence of Savoy
	}
}
#(1559-1575) Spanish troops abandon Savoy (SPA event)
#by Bordic
event = {
	id = 285099 #triggered by FRA_170021 A / SPA_285098 A
	trigger = {
		exists = SAV
		OR = {
			owned = { province = 404 data = -1 } #Piemonte
			owned = { province = 405 data = -1 } #Savoie
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285099" #Spanish troops abandon Savoy
	desc = "EVENTHIST275013"
	#-#Emmanuel-Philibert of the House of Savoy, also known as Tte de Fer, served in Charles's army during the war against Franois Ier of France, distinguishing himself by capturing Hesdin in July 1553. A month later, he became duke of Savoy on the death of his father, but this was a nearly empty honor, as the vast majority of his hereditary lands had been occupied and administered by the French since 1536. Instead, he continued to serve the Habsburgs in hopes of recovering his lands, and served Philip II as lieutenant general in Flanders. In this capacity he personally led the Spanish invasion of northern France and won a brilliant victory at Saint-Quentin on 10 August 1557. With the Peace of Cateau-Cambrsis between France and Spain, the duchy was restored to Emmanuel-Philibert, who then married Margaret of Valois, sister of Henry II of France.

	action_a = {
		name = "ACTIONNAME170022A" #Let's withdraw our troops
		command = { type = cedeprovince which = SAV value = 404 } #Piemonte
		command = { type = cedeprovince which = SAV value = 405 } #Savoie
	}
}

#(1560-1600) English Aid Arrives in the Dutch Provinces
event = {
	id = 21046 #triggered by ENG_21045 A
	random = no
	country = SPA
	name = "EVENTNAME21046" #English Aid Arrives in the Dutch Provinces
	desc = "EVENTHIST21046"
	#-#As the Duke of Alba continued his campaign against the Dutch rebels, he was soon faced with a new problem. English support for the Dutch, in a variety of fields, began to weigh in against the Spanish effort to suppress the rebels. For Spain, it helped make a bad situation worse.

	action_a = {
		name = "ACTIONNAME21046A" #Damn English!
		command = { type = revolt which = 339 } #Holland
		command = { type = revolt which = 340 } #Zeeland
		command = { type = relation which = ENG value = -50 }
		command = { type = casusbelli which = ENG value = 120 }
	}
}

#(1560-1600) England Again Sides with the Enemies of Spain
event = {
	id = 21049 #triggerred by ENG_21047 A
	random = no
	country = SPA
	name = "EVENTNAME21049" #England Again Sides with the Enemies of Spain
	desc = "EVENTHIST21049"
	#-#England continues its support of the Dutch rebels as the so-called United Provinces declare independance.

	action_a = {
		name = "ACTIONNAME21049A" #The Meddlesome English Will Pay
		command = { type = relation which = ENG value = -50 }
		command = { type = casusbelli which = ENG value = 120 }
	}
}

#(1561-1591) Madrid by mfigueras, edited by barkdreg further modified by Fodoron
event = {
	id = 285015
	trigger = {
		owned = { province = 436 data = -1 }
		control = { province = 436 data = -1 }
		NOT = { event = 111024 } #CAS inherited by ARG
	}
	random = no
	country = SPA
	name = "EVENTNAME285015" #Madrid Capital of Spain
	desc = "EVENTHIST285015"
	#-#Carlos was an absent King, as he spent 31 of his 40 years as King of Spain abroad. He was always considered a foreigner in Spain. But his son Felipe spent all his time in Spain, and from 1541 he was Governor of this Kingdom. When he becomes King in 1556, the Habsburgs finally come to Spain, and they need a palace, a central seat for the government, and a proper burial place for the new dynasty. Felipe will chose a central point in the peninsula to create his new capital, the small city of Madrid. After ordering the construction of the Monastery of El Escorial, Felipe will move his government to Madrid in 1561. Madrid will remain the capital of Spain except for a brief interval between 1601-1606, when the Duke of Lerma, prime minister of King Felipe III, will convince him to move it to Valladolid to escape criticism for his bad government.

	date = { day = 1 month = april year = 1561 }
	offset = 300
	deathdate = { day = 1 month = april year = 1591 }

	action_a = {
		name = "ACTIONNAME285015A" #Move the Capital to Madrid
		command = { type = capital which = 436 } #Castilla
		command = { type = treasury value = -50 }
		command = { type = population which = 436 value = 2500 } #Castilla
		command = { type = provincetax which = 436 value = 2 } #Castilla
		command = { type = population which = 439 value = -2000 } #Toledo
		command = { type = provincetax which = 439 value = -1 } #Toledo
	}
	action_b = {
		name = "ACTIONNAME285015B" #No, we got used to Toledo
		command = { type = provincetax which = 439 value = 1 } #Toledo
		command = { type = population which = 439 value = 500 } #Toledo
		command = { type = vp value = -5 }
		command = { type = sleepevent which = 285700 } #SPA: El Escorial
		command = { type = sleepevent which = 285701 } #SPA: Finally the Escorial is finished
	}
}
#(1561-1591) Madrid by barkdreg, based on event by mfigueras, further modified by Fodoron
event = {
	id = 285016
	trigger = {
		owned = { province = 436 data = -1 }
		control = { province = 436 data = -1 }
		NOT = { event = 142013 } #ARG inherited by CAS
	}
	random = no
	country = SPA
	name = "EVENTNAME285015" #Madrid Capital of Spain
	desc = "EVENTHIST285015"
	#-#Carlos was an absent King, as he spent 31 of his 40 years as King of Spain abroad. He was always considered a foreigner in Spain. But his son Felipe spent all his time in Spain, and from 1541 he was Governor of this Kingdom. When he becomes King in 1556, the Habsburgs finally come to Spain, and they need a palace, a central seat for the government, and a proper burial place for the new dynasty. Felipe will chose a central point in the peninsula to create his new capital, the small city of Madrid. After ordering the construction of the Monastery of El Escorial, Felipe will move his government to Madrid in 1561. Madrid will remain the capital of Spain except for a brief interval between 1601-1606, when the Duke of Lerma, prime minister of King Felipe III, will convince him to move it to Valladolid to escape criticism for his bad government.

	date = { day = 1 month = april year = 1561 }
	offset = 300
	deathdate = { day = 1 month = april year = 1591 }

	action_a = {
		name = "ACTIONNAME285016A" #Move the Capital to Madrid
		command = { type = capital which = 436 } #Castilla
		command = { type = treasury value = -50 }
		command = { type = population which = 436 value = 2500 } #Castilla
		command = { type = provincetax which = 436 value = 2 } #Castilla
		command = { type = population which = 429 value = -2000 } #Catalonia
		command = { type = provincetax which = 429 value = -1 } #Catalonia
	}
	action_b = {
		name = "ACTIONNAME285016B" #No, Barcelona has better weather
		command = { type = provincetax which = 429 value = 1 } #Catalonia
		command = { type = population which = 429 value = 500 } #Catalonia
		command = { type = vp value = -5 }
		command = { type = sleepevent which = 285700 } #SPA: El Escorial
		command = { type = sleepevent which = 285701 } #SPA: Finally the Escorial is finished
	}
}

#-----------------------------------------------------------------------------------------------
#(1562) The Commissioning of El Escorial
#by Bordic
event = {
	id = 285700
	random = no
	country = SPA
	name = "EVENTNAME285700" #El Escorial
	desc = "EVENTHIST285700"
	#-#With Felipe II, the King of Spain finally came to Spain, and he chose a central place for his court, Madrid. But the new capital lacked a Palace, a central Government building and a proper place for the burial of the new Habsburg dynasty - the Spanish Line. Guided by his profound religiousness and a practical sense, Felipe decided to unite everything in the same place, a monastery dedicated to Saint Lawrence to celebrate the victory over the French at Saint-Quentin on August 10, 1557, that Saint's day. The monastery of San Lorenzo del Escorial took 21 years to complete in the form of a severely rectilinear complex, with numerous internal courtyards, modeled on the grill on which Saint Lawrence was martyred (roasted to death). Despite its Habsburg austere religious style, it contained the best library on old manuscripts after the Vatican Library. From the royal chambers surrounding the basilica's main altar, the empire were the sun never set was ruled by the Prudent King.

	date = { day = 1 month = january year = 1562 }
	offset = 10
	deathdate = { day = 1 month = january year = 1563 }

	action_a = {
		name = "ACTIONNAME285700A" #We need it for the Glory of God
		command = { type = treasury value = -300 }
		command = { type = relation which = PAP value = 50 }
		command = { type = relation which = FRA value = -50 }
	}
	action_b = {
		name = "ACTIONNAME285700B" #Useless piece of...
		command = { type = stability value = 1 }
		command = { type = sleepevent which = 285701 } #SPA: Finally the Escorial is finished
	}
}
#(1585) El Escorial stands in Unearthly Glory
event = {
	id = 285701
	trigger = {
		event = 285700 #SPA: El Escorial
	}
	random = no
	country = SPA
	name = "EVENTNAME285701" #Finally the Escorial is finished
	desc = "EVENTHIST285701"
	#-#The works of the monastery of El Escorial still constitutes an expression meaning something of an extraordinary dimension that takes forever to finish. The palace-monastery was finished in 1584, 21 years after it was started. In 1567 its main architect, Juan Bautista de Toledo, died, and was substituted by Juan de Herrera, who gave name to the Herrerian architectonic style characterized by austere straight lines with little ornamentation and the contrast between granite stone walls and black slate roofing. From the monastery of El Escorial, the Spanish Habsburgs ruled their empire. El Escorial lost royal favour when the French Bourbon dynasty, with a more Versaillesc taste, was inaugurated in 1705, but it is still today the royal pantheon.

	date = { day = 1 month = january year = 1585 }
	offset = 30
	deathdate = { day = 1 month = january year = 1586 }

	action_a = {
		name = "ACTIONNAME285701A" #A proper place for our Catholic King!
		command = { type = vp value = 50 }
		command = { type = stability value = 1 }
		command = { type = relation which = PAP value = 50 }
		command = { type = relation which = HAB value = 50 }
		command = { type = relation which = FRA value = -50 }
		command = { type = relation which = ENG value = -50 }
		command = { type = relation which = HOL value = -50 }
		command = { type = DIP which = 2 value = 60 }
		command = { type = domestic which = innovative value = -1 }
		command = { type = infra value = 500 }
	}
}
#-----------------------------------------------------------------------------------------------

#(1564-1567) expedition to Philippines
#by Fodoron
event = {
	id = 285048
	trigger = {
		owned = { province = 24 data = -1 } #Jalisco
		control = { province = 24 data = -1 } #Jalisco
	}
	random = no
	country = SPA
	name = "EVENTNAME285048" #An empire where the sun never sets
	desc = "EVENTHIST285048"
	#-#The Philippines had been discovered by Magellan in 1524, in his expedition around the world. They were given their name in the expedition of Villalobos of 1542, to honor prince Philip, future King of Spain. Andres de Urdaneta, a sailor in that expedition, that had become a friar, claimed that he could find a way of returning from the East Indies to Mexico accross the Pacific, a trip that in 40 years had only been done in the opposite way. His claim raised the interest of the authorities and an expedition was organized. Urdaneta wanted to go to New Guinea, and island discovered by the Spaniards. The expedition was put under command of Miguel Lopez de Legazpi. When they departed from Barra de Navidad (Jalisco) on November 21, 1564, they opened the orders that commanded them to the Philippines and Urdaneta accepted them. After reaching the islands and exploring them, and while Legazpi started the conquest, Urdaneta sailed Northwest until he discovered the current of Kuro Siwo, that took him for the first time, back to America, arriving to Acapulco in October 1565. The return trip was very long and dangerous, taking from 5 to 7 months, but it was very important because it stablished the connexion of the Philippines to the rest of the empire, allowing the viability of its colonization. The conquest of the Philippines led Charles V to declare that in his realms the sun never set, a phrase that became popular for future empires also.

	date = { day = 20 month = november year = 1564 }
	offset = 1
	deathdate = { day = 29 month = june year = 1567 }

	action_a = {
		name = "ACTIONNAME285048A" #Finance the expedition
		command = { type = treasury value = -25 }
		command = { type = warships which = 24 value = 1 } #Jalisco
		command = { type = wakeleader which = 0127908 } #Andrs de Urdaneta (SPA)
	}
	action_b = {
		name = "ACTIONNAME285048B" #The Philippines could be in the Portuguese half of the world
		command = { type = land value = 100 }
		command = { type = relation which = POR value = 25 }
	}
}

#(1565-1820) Manila Galleon
#by Fodoron
event = {
	id = 285049
	trigger = {
		owned = { province = 690 data = -1 } #Luzon
		OR = {
			event = 285048 #SPA: An empire where the sun never sets
			year = 1568
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285049" #The Manila galleon
	desc = "EVENTHIST285049"
	#-#In the Philippines, Spain found herself fighting the expansion of Islam at the other end of the world, the same it had started doing in the Iberian peninsula. The conquest of the Philippines was for Spain the most difficult of all. However it also compensated the effort. In Philippines existed a colony of Chinese traders, and Europe longed for Chinese wares. However China was self-suficcient. The only product that China sought was silver, and Spain produced silver in Mexico and Peru. Additionally, the Eastern route from Philippines to Spain around the Cape of Good Hope was closed by the Dutch, so an indirect trade route was established by a fleet that connected Manila to Acapulco, and then by land to Veracruz, where the fleet of Indias would take the trade to Sevilla. Almost every year, a fleet would depart from Acapulco to Manila loaded with silver, and another would depart from Manila to Acapulco loaded with spices, silkcloths and chinaware. The benefits were enormous, between 300 and 500 percent, and the arrival of the Manila galleon constituted one of the main events in Mexico and Spain, as people were fascinated with their products. Protectionist measures from the traders in Sevilla regulated the number of ships to two merchant galleons plus escorts, and the galleons from Manila became the biggest ships built in their time.

	date = { day = 15 month = march year = 1565 }
	offset = 5000
	deathdate = { year = 1820 }

	action_a = {
		name = "ACTIONNAME285049A" #The Manila galleon has arrived
		command = { type = provincetax which = 690 value = 3 } #Luzon
		command = { type = provincetax which = 30 value = 2 } #Atlixco
		command = { type = provincetax which = 443 value = 1 } #Andalusia
		command = { type = domestic which = mercantilism value = 1 }
	}
}

#(1565-1820) Settlement of Florida
#by sturmvogel
event = {
	id = 285317
	trigger = {
		NOT = { core = { province = 49 data = -1 } } #Seminole
		owned = { province = 49 data = -1 } #Seminole
		control = { province = 49 data = -1 } #Seminole
		NOT = { provincereligion = { province = 49 data = pagan } } #not a TP
	}
	random = no
	country = SPA
	name = "EVENTNAME285317" #Settlement of Florida
	desc = "EVENTHIST285314"
	#-#The first colonists have arrived.

	date = { day = 8 month = september year = 1565 }
	offset = 10
	deathdate = { year = 1820 }

	action_a = {
		name = "EXCELLENT"
		command = { type = addcore which = 49 } #Seminole
	}
}

#(1566-1591) The Purge of the Morisques
event = {
	id = 3160
	trigger = {
		owned = { province = 444 data = SPA } #Granada
	}
	random = no
	country = SPA
	name = "EVENTNAME3160" #The Purge of the Morisques
	desc = "EVENTHIST3160"
	#-#By the mid-16th Century the Morisque population in the former Kingdom of Granada was increasing faster than the Christian population. Coupled with their failure to integrate into the greater Christian society and their nominal allegiance to Christianity they were seen as a threat by the Spanish authorities to the integrity of Christian Spain itself. Their less than covert aid to Muslim raiders and pirates off the coast of Spain only reinforced the fears of the authorities who were already greatly concerned over the rising power of the Muslim Ottoman Turks. Under the leadership of Suleiman the Magnificent the Turks were asserting control over the entire Eastern Mediterranean and threatened Italy and Sicily as well.\n \n For their part the Morisques felt threatened by ever-mounting taxes on the silk trade that furnished the basis for their livelihoods and Spanish challenges to their land titles. They tried to negotiate with the King to resolve their differences, but Felipe II would have nothing to do with their proposals. They responded by revolting on Christmas Eve, 1568. They had a number of early successes, aided by the lack of Spanish troops who'd recently been sent to reinforce the Duke of Alba's forces in the Netherlands as well as aid from their co-religionists in North Africa, but they were eventually overwhelmed by forces led by Don Juan de Austria, half-brother of Felipe II. As punishment the King decreed that they be deported to other provinces of Castile in order to break up the cohesive communities that reinforced their isolation from Christian society. Christian colonists were recruited from Castile to replace the Morisques, although this policy proved to be less than completely successful.

	date = { day = 1 month = january year = 1566 }
	offset = 900
	deathdate = { day = 1 month = january year = 1591 }

	action_a = {
		name = "ACTIONNAME3160A" #Force them to become Good Catholic Spaniards
		command = { type = revolt which = 444 } #Granada
		command = { type = revolt which = 444 } #Granada
		command = { type = population which = 444 value = -1000 } #Granada
		command = { type = provincereligion which = 444 value = catholic } #Granada
		command = { type = provincereligion which = 445 value = catholic } #Gibraltar
		command = { type = provinceculture which = 444 value = castilian } #Granada
		command = { type = provinceculture which = 445 value = castilian } #Gibraltar
		command = { type = stability value = 1 }
		command = { type = domestic which = INNOVATIVE value = -2 }
		command = { type = provincetax which = 444 value = -1 } #Granada
		command = { type = provincetax which = 445 value = -1 } #Gibraltar
		command = { type = treasury value = 100 } #Profits from confiscations, etc.
	}
	action_b = {
		name = "ACTIONNAME3160B" #Let them be as they are needed for the economy
		command = { type = revolt which = 444 } #Granada
		command = { type = revolt which = 444 } #Granada
		command = { type = province_revoltrisk which = 444 value = 2 } #Granada
		command = { type = province_revoltrisk which = 445 value = 2 } #Gibraltar
		command = { type = domestic which = INNOVATIVE value = 2 }
		command = { type = stability value = -2 }
		command = { type = treasury value = 100 } #Donations to leave them be
	}
}

#(1568) The death of prince Carlos
#by Fodoron
event = {
	id = 285052
	random = no
	country = SPA
	name = "EVENTNAME285052" #The mad prince Carlos
	desc = "EVENTHIST285052"
	#-#Felipe II was only married for one year to Maria Manuela of Portugal from whom he had a heir, prince Carlos, before she died. However soon it was evident that Carlos had some mental disease. He was incoherent, sadistic, choleric, and unpredictable, frightening those around him, and filling the court with anxiety about the future of the Kingdom in such hands. His madness was manifested in many ways, but the most famous one was when he tried to run away to the Low Countries to take command of the Protestants against his own father. The situation was unsustainable, especially when he started to attack with knives and swords significant members of the court like the Duke of Alba or his uncle Don Juan. On the night of the 18th of January, 1568, the prince was confined under vigilance in his quarters. Four months later the prince died of unknown causes. The best theory is that his behavior worsened in captivity and it was not unusual for him to fast for days and then stuff himself with his favorite meals, with one of this pantagruelian feasts causing his death. Since no explanation could be given about his death at the time, the many enemies of Felipe II used it to start a black legend about him. The legend was given credit and the mad Carlos was turned into a romantic hero that fought against the oppression of his father. Schiller wrote a theater piece named Don Carlos in 1787, and Verdi turned it into an opera in 1867. In fact, madness was running in the family, starting with Isabel of Portugal, mother of Isabel la Catolica, and following with her granddaughter Juana the Mad, grandmother of Felipe II.

	date = { day = 19 month = january year = 1568 }

	action_a = {
		name = "ACTIONNAME285052A" #It is a disgrace, and we have no heir
		command = { type = stability value = -1 }
	}
}

#(1568) The Execution of Egmont
#by lpelep and Fodoron with the help of the Spanish forum
event = {
	id = 285085
	trigger = {
		flag = [EdictBlood]
		leader = 0127878 #Lamoral Egmont (SPA)
	}
	random = no
	country = SPA
	name = "EVENTNAME285085" #The Execution of Egmont and Hoorn
	desc = "EVENTHIST285085"
	#-#Lamoral, count of Egmont, was a Dutch noble, cousin of the King of Spain. He received military education in Spain. In January 1546 he was invested in the Golden Fleece Order by Charles V at the same time as the Duke of Alba. At the battle of Saint Quentin in 1557 he led the cavalry at the initial charge, contributing decisively to the Spanish victory over the French troops. A year later he commanded the Spanish army at the decisive victory of Gravelines, where he defeated the French troops led by Montmorency and became a national hero. As a reward he was appointed as stadtholder of Flanders by King Felipe. Although a devout Catholic, faithful to his King, he protested the introduction of the Inquisition in Flanders by bishop Granvelle. He nevertheless reconciled with Felipe and pleaded a change of policy in the Netherlands. When the Dutch revolts started and the Duke of Alba was sent to suppress them with the Edict of Blood, William of Orange advised Egmont and Hoorn to flee Brussels with him. But Egmont and Hoorn believed that their loyalty to the King protected them. Alba arrested them under accusation of treason. In vain Egmont pleaded to be judged by his peers of the Golden Fleece Order or having his case taken to the King. They were both condemned and executed on June 5, 1568. Their death led to large protests in the Netherlands, and contributed to the resistance against the Spaniards. Egmont is the main character in a play of the same name by Goethe.

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

	action_a = {
		name = "ACTIONNAME285085A" #Execute them
		command = { type = revolt which = 339 } #Holland
		command = { type = revolt which = 340 } #Zeeland
		command = { type = revolt which = 380 } #Flandern
	}
	action_b = {
		name = "ACTIONNAME285085B" #Pardon them
		command = { type = stability value = -1 }
		command = { type = wakeleader which = 0127879 } #Lamoral Egmont (SPA)
	}
}

#(1569-1576) May Nilad
#by Fodoron
event = {
	id = 285163
	trigger = {
		owned = { province = 690 data = -1 } #Luzon
		control = { province = 690 data = -1 } #Luzon
		NOT = { provincereligion = { province = 690 data = pagan } } #not a TP
	}
	random = no
	country = SPA
	name = "EVENTNAME285163" #Mai Nilad
	desc = "EVENTHIST285163"
	#-#Having established in the West coast of Luzon, Miguel de Legazpi sent an expedition led by his grandson, Juan de Salcedo, to conquer the city of May Nilad in the East coast. After some battles, he conquered the area and founded the Spanish part of the city, called Intramuros, where Legazpi moved in 1571.

	date = { day = 0 month = january year = 1569 }
	offset = 100
	deathdate = { day = 0 month = january year = 1576 }

	action_a = {
		name = "ACTIONNAME285163A" #Found Manila
		command = { type = treasury value = -75 }
		command = { type = warships which = 690 value = 2 } #Luzon
		command = { type = wakeleader which = 0127903 } #Juan de Salcedo (SPA)
		command = { type = INF which = 690 value = 5000 }
		command = { type = population which = 690 value = 500 } #Luzon
	}
	action_b = {
		name = "ACTIONNAME285163B" #Not worth it
		command = { type = vp value = -5 }
	}
}

#(1569-1581) Toledo's reforms
event = {
	id = 285287
	trigger = {
		event = 338260 #ProvinceSpec*169: Conversion of the Incas
		owned = { province = 168 data = -1 } #Lima
		control = { province = 168 data = -1 }
	}
	random = no
	country = SPA
	name = "EVENTNAME285287" #Toledo's reforms
	desc = "EVENTHIST285287"
	#-#On 26 November 1569, Don Francisco de Toledo, Conde de Oropesa was appointed as Viceroy of Peru. During his rule, Toledo took charge of the government and implemented many reforms. He centralized colonial governmental functions and laid the foundation for the future administration of the viceroyalty. He established royal authority and Spanish dominance in the colony. He broke the power of the encomenderos, reducing them to obedient servants of the crown. \n He worked hard to convert the natives and provide them with religious training. Toledo added new laws and royal decrees regarding the Indians and their lands, and he gathered the natives into villages, or reducciones. He promulgated laws that applied to both Indians and Spanish alike. He tried to adapt the political and social structures of the Incas to life in the viceroyalty. He also reduced the old system of mita, or forced native labor. Under his reforms of the mita, no more than one seventh of the male population of a village could be conscripted, they could not be forced to work far from their native villages, and they were entitled to compensation for their labor.

	date = { day = 24 month = november year = 1569 }
	offset = 300
	deathdate = { day = 22 month = september year = 1581 }

	action_a = {
		name = "GREAT"
		command = { type = gainbuilding which = 168 value = cityrights } #Lima
		command = { type = gainbuilding which = 165 value = bailiff } #Cajamarca
		command = { type = gainbuilding which = 167 value = bailiff } #Ayacucho
		command = { type = gainbuilding which = 168 value = bailiff } #Lima
		command = { type = gainbuilding which = 168 value = cityrights } #Lima
		command = { type = gainbuilding which = 169 value = bailiff } #Cuzco
		command = { type = gainbuilding which = 170 value = bailiff } #Arequipa
		command = { type = gainbuilding which = 194 value = bailiff } #Potosi
		command = { }
	}
}

#-----------------------------------------------------------------------------------------------
#Drake's Privateering Sequence
#Created by Johnny Canuck

#(1570) English Privateering
event = {
	id = 21038 #triggered by ENG_21037 A
	random = no
	country = SPA
	name = "EVENTNAME21038" #English Privateering
	desc = "EVENTHIST21038"
	#-#In the later 1500s, English privateering became a serious thorn in the side of the Spanish, diverting significant attention from the problems with the Dutch rebels and denying the Spanish important bullion supplies. This helped hasten conflict with England.

	action_a = {
		name = "ACTIONNAME21038A" #Cursed English Pirates!
		command = { type = stability value = -1 }
	}
}
#(1573) Drake Strikes the Panamanian Silver Train
event = {
	id = 21040 #triggered by ENG_21039
	random = no
	country = SPA
	name = "EVENTNAME21040" #Drake Strikes the Panamanian Silver Train
	desc = "EVENTHIST21040"
	#-#In 1572 and 1573, Sir Francis Drake and a small group of Englishmen, assisted by escaped slaves known as Cimaroons, raided along the Mexican coast and, in a stunning coup, captured a large mule train laden with gold and silver inbound to Nombre de Dios, gaining an incredible amount of treasure.

	action_a = {
		name = "ACTIONNAME21040A" #Damn English Pirates!
		command = { type = relation which = ENG value = -50 }
		command = { type = casusbelli which = ENG value = 60 }
	}
}
#(1580) Drake in the Pacific
event = {
	id = 21042 #triggered by ENG_21041
	random = no
	country = SPA
	name = "EVENTNAME21042" #Drake in the Pacific
	desc = "EVENTHIST21041"
	#-#In 1577, Sir Francis Drake was commissioned to sail to the western coast of the Americas to seek treasure and spices. After passing the Strait of Magellan, he caught the Spanish completely by surprise. For months, Drake sailed up and down the Pacific coast of the Americas, sacking towns like Lima and Valparaiso, and seizing the galleon 'Cacafuego', with its large cargo of treasure. Drake then crossed the Pacific and returned home to England.

	action_a = {
		name = "ACTIONNAME21040A" #Damn English Pirates!
		command = { type = relation which = ENG value = -50 }
		command = { type = casusbelli which = ENG value = 60 }
	}
}
#(1586) Drake Strikes in Spain and the Americas
event = {
	id = 21044 #triggered by ENG_21043
	random = no
	country = SPA
	name = "EVENTNAME21044" #Drake Strikes in Spain and the Americas
	desc = "EVENTHIST21043"
	#-#In 1585 and early 1586, Sir Francis Drake, operating with letters of marque from Elizabeth, conducted a series of operations that electrified England and infuriated Spain. He raided Vigo, the Canaries, and the Cape Verde Islands, then crossed the Atlantic and attacked Hispaniola and Cartagena. He returned to England with a vast amount of plunder.

	action_a = {
		name = "ACTIONNAME21040A" #Damn English Pirates!
		command = { type = relation which = ENG value = -50 }
		command = { type = casusbelli which = ENG value = 60 }
	}
}
#End of Drake's Privateering Sequence
#-----------------------------------------------------------------------------------------------

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

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

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

#-----------------------------------------------------------------------------------------------
#(1573-1647) Spanish Mutinies Events
#by sturmvogel

event = {
	id = 285232
	trigger = {
		atwar = yes
	}
	random = no
	country = SPA
	name = "EVENTNAME285232" #The Spanish Army Mutinies
	desc = "EVENTHIST285232"
	#-#Spain had enormous problems in financing its wars despite the plentiful gold and silver arriving from the New World in the late 16th Century. Sometimes its troops would go as long as three years without being paid. Eventually the regiment or garrison would mutiny in an attempt to get the money that it was rightfully owed. While rarely over 5000 men ever participated in a single mutiny, they had a huge effect on the Spanish war effort as they often derailed Spanish offensives and the payment of the arrears often consumed a major portion of the entire military budget for that year. It took the Spanish until after the Twelve Year Truce ended in 1621 to figure out how to ensure that its troops were paid in a timely manner.

	date = { day = 28 month = july year = 1573 }
	offset = 30
	deathdate = { day = 0 month = january year = 1580 }

	action_a = {
		name = "DAMN"
		command = { type = treasury value = -62 }
		command = { type = desertion which = -1 value = 8200 }
	}
}
event = {
	id = 285233
	trigger = {
		atwar = yes
	}
	random = no
	country = SPA
	name = "EVENTNAME285232" #The Spanish Army Mutinies
	desc = "EVENTHIST285232"
	#-#Spain had enormous problems in financing its wars despite the plentiful gold and silver arriving from the New World in the late 16th Century. Sometimes its troops would go as long as three years without being paid. Eventually the regiment or garrison would mutiny in an attempt to get the money that it was rightfully owed. While rarely over 5000 men ever participated in a single mutiny, they had a huge effect on the Spanish war effort as they often derailed Spanish offensives and the payment of the arrears often consumed a major portion of the entire military budget for that year. It took the Spanish until after the Twelve Year Truce ended in 1621 to figure out how to ensure that its troops were paid in a timely manner.

	date = { day = 7 month = november year = 1574 }
	offset = 30
	deathdate = { day = 0 month = january year = 1589 }

	action_a = {
		name = "DAMN"
		command = { type = treasury value = -7 }
		command = { type = desertion which = -1 value = 3500 }
	}
}
event = {
	id = 285234
	trigger = {
		atwar = yes
	}
	random = no
	country = SPA
	name = "EVENTNAME285232" #The Spanish Army Mutinies
	desc = "EVENTHIST285232"
	#-#Spain had enormous problems in financing its wars despite the plentiful gold and silver arriving from the New World in the late 16th Century. Sometimes its troops would go as long as three years without being paid. Eventually the regiment or garrison would mutiny in an attempt to get the money that it was rightfully owed. While rarely over 5000 men ever participated in a single mutiny, they had a huge effect on the Spanish war effort as they often derailed Spanish offensives and the payment of the arrears often consumed a major portion of the entire military budget for that year. It took the Spanish until after the Twelve Year Truce ended in 1621 to figure out how to ensure that its troops were paid in a timely manner.

	date = { day = 1 month = march year = 1580 }
	offset = 30
	deathdate = { day = 0 month = january year = 1592 }

	action_a = {
		name = "DAMN"
		command = { type = treasury value = -21 }
		command = { type = desertion which = -1 value = 7000 }
	}
}
event = {
	id = 285235
	trigger = {
		atwar = yes
	}
	random = no
	country = SPA
	name = "EVENTNAME285232" #The Spanish Army Mutinies
	desc = "EVENTHIST285232"
	#-#Spain had enormous problems in financing its wars despite the plentiful gold and silver arriving from the New World in the late 16th Century. Sometimes its troops would go as long as three years without being paid. Eventually the regiment or garrison would mutiny in an attempt to get the money that it was rightfully owed. While rarely over 5000 men ever participated in a single mutiny, they had a huge effect on the Spanish war effort as they often derailed Spanish offensives and the payment of the arrears often consumed a major portion of the entire military budget for that year. It took the Spanish until after the Twelve Year Truce ended in 1621 to figure out how to ensure that its troops were paid in a timely manner.

	date = { day = 28 month = august year = 1589 }
	offset = 30
	deathdate = { day = 0 month = january year = 1594 }

	action_a = {
		name = "DAMN"
		command = { type = treasury value = -50 }
		command = { type = desertion which = -1 value = 4800 }
	}
}
event = {
	id = 285236
	trigger = {
		atwar = yes
	}
	random = no
	country = SPA
	name = "EVENTNAME285232" #The Spanish Army Mutinies
	desc = "EVENTHIST285232"
	#-#Spain had enormous problems in financing its wars despite the plentiful gold and silver arriving from the New World in the late 16th Century. Sometimes its troops would go as long as three years without being paid. Eventually the regiment or garrison would mutiny in an attempt to get the money that it was rightfully owed. While rarely over 5000 men ever participated in a single mutiny, they had a huge effect on the Spanish war effort as they often derailed Spanish offensives and the payment of the arrears often consumed a major portion of the entire military budget for that year. It took the Spanish until after the Twelve Year Truce ended in 1621 to figure out how to ensure that its troops were paid in a timely manner.

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

	action_a = {
		name = "DAMN"
		command = { type = treasury value = -106 }
		command = { type = desertion which = -1 value = 2300 }
	}
}
event = {
	id = 285237
	trigger = {
		atwar = yes
	}
	random = no
	country = SPA
	name = "EVENTNAME285232" #The Spanish Army Mutinies
	desc = "EVENTHIST285232"
	#-#Spain had enormous problems in financing its wars despite the plentiful gold and silver arriving from the New World in the late 16th Century. Sometimes its troops would go as long as three years without being paid. Eventually the regiment or garrison would mutiny in an attempt to get the money that it was rightfully owed. While rarely over 5000 men ever participated in a single mutiny, they had a huge effect on the Spanish war effort as they often derailed Spanish offensives and the payment of the arrears often consumed a major portion of the entire military budget for that year. It took the Spanish until after the Twelve Year Truce ended in 1621 to figure out how to ensure that its troops were paid in a timely manner.

	date = { day = 24 month = july year = 1594 }
	offset = 30
	deathdate = { day = 0 month = january year = 1602 }

	action_a = {
		name = "DAMN"
		command = { type = treasury value = -113 }
		command = { type = desertion which = -1 value = 4500 }
	}
}
event = {
	id = 285238
	trigger = {
		atwar = yes
	}
	random = no
	country = SPA
	name = "EVENTNAME285232" #The Spanish Army Mutinies
	desc = "EVENTHIST285232"
	#-#Spain had enormous problems in financing its wars despite the plentiful gold and silver arriving from the New World in the late 16th Century. Sometimes its troops would go as long as three years without being paid. Eventually the regiment or garrison would mutiny in an attempt to get the money that it was rightfully owed. While rarely over 5000 men ever participated in a single mutiny, they had a huge effect on the Spanish war effort as they often derailed Spanish offensives and the payment of the arrears often consumed a major portion of the entire military budget for that year. It took the Spanish until after the Twelve Year Truce ended in 1621 to figure out how to ensure that its troops were paid in a timely manner.

	date = { day = 10 month = october year = 1598 }
	offset = 30
	deathdate = { day = 0 month = january year = 1647 }

	action_a = {
		name = "DAMN"
		command = { type = treasury value = -117 }
		command = { type = desertion which = -1 value = 4700 }
	}
}
event = {
	id = 285239
	trigger = {
		atwar = yes
	}
	random = no
	country = SPA
	name = "EVENTNAME285232" #The Spanish Army Mutinies
	desc = "EVENTHIST285232"
	#-#Spain had enormous problems in financing its wars despite the plentiful gold and silver arriving from the New World in the late 16th Century. Sometimes its troops would go as long as three years without being paid. Eventually the regiment or garrison would mutiny in an attempt to get the money that it was rightfully owed. While rarely over 5000 men ever participated in a single mutiny, they had a huge effect on the Spanish war effort as they often derailed Spanish offensives and the payment of the arrears often consumed a major portion of the entire military budget for that year. It took the Spanish until after the Twelve Year Truce ended in 1621 to figure out how to ensure that its troops were paid in a timely manner.

	date = { day = 1 month = september year = 1602 }
	offset = 30
	deathdate = { day = 0 month = january year = 1647 }

	action_a = {
		name = "DAMN"
		command = { type = treasury value = -210 }
		command = { type = desertion which = -1 value = 7200 }
	}
}
#End of Spanish Mutinies Events
#-----------------------------------------------------------------------------------------------

#(1574-1575) Lin Ah Feng attacks Manila
#by Fodoron
event = {
	id = 285164
	trigger = {
		owned = { province = 690 data = -1 } #Luzon
		event = 285163 #SPA: May Nilad
	}
	random = no
	country = SPA
	name = "EVENTNAME285164" #Lin Ah Feng attacks Manila
	desc = "EVENTHIST285164"
	#-#Right after the death of Legazpi, Lin Ah Feng (Limahon for the Spanish) a powerful chinese pirate and warlord, who was in the most wanted list in China for numerous crimes, showed up in Manila with a fleet. He burned down the city, killing many of its inhabitants, including the governor and the garrison, and left. Juan de Salcedo pursued him with the help of a Chinese delegate, Wang-kao, and burned his fleet killing most of his men. Regretfully Lin Feng was able to escape, although nothing more was heard of him.

	date = { day = 29 month = november year = 1574 }
	offset = 100
	deathdate = { day = 29 month = november year = 1575 }

	action_a = {
		name = "ACTIONNAME285164A" #Damn pirates
		command = { type = desertion which = 690 value = 2000 } #Luzon
		command = { type = population which = 690 value = -300 } #Luzon
		command = { type = relation which = CHI value = 50 }
	}
}

#(1576-1607) The Spanish Fury
event = {
	id = 285252
	trigger = {
		owned = { province = 380 data = -1 } #Flandern
		control = { province = 380 data = -1 }
		OR = {
			event = 337027 #Dutch Nobility demands General Estates for Flandern
			event = 337035 #Edict of Blood for Flandern
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285252" #The Spanish Fury
	desc = "EVENTHIST285252"
	#-#The Spanish government had enormous problems furnishing its troops in the Netherlands with their pay in a timely manner during the first phases of the Dutch rebellion. Taking matters into their own hands one group of unpaid soldiers sacked the towns of Alost and Antwerp in Flanders to get what they felt was rightfully theirs. The barbarity of their conduct earned the incident the nickname ''The Spanish Fury'' and alientated many people in the Netherlands and Europe, Catholic and Protestant alike. It also caused all of the XVII Provinces to sign the Pacification of Ghent that temporarily united the provinces in order to drive the Spanish out of the Netherlands entirely and granted freedom of religion throughout the Netherlands. In the short term many of the survivors fled to north of Amsterdam, the first step of the decline of Antwerp as a trading center.

	date = { day = 25 month = july year = 1576 }
	offset = 120
	deathdate = { day = 0 month = january year = 1607 }

	action_a = {
		name = "ACTIONNAME285252A" #Idiots!
		command = { type = population which = 380 value = -5000 } #Flandern
		command = { type = removecot which = 380 } #Flandern
		command = { type = provincetax which = 380 value = -2 } #Flandern
		command = { type = desertion which = -1 value = 5600 }
		command = { type = relation which = BAY value = -25 }
		command = { type = relation which = BOH value = -25 }
		command = { type = relation which = BRA value = -25 }
		command = { type = relation which = BRE value = -25 }
		command = { type = relation which = BRI value = -25 }
		command = { type = relation which = BUR value = -25 }
		command = { type = relation which = DAN value = -25 }
		command = { type = relation which = ENG value = -25 }
		command = { type = relation which = FRA value = -25 }
		command = { type = relation which = FRI value = -25 }
		command = { type = relation which = GEL value = -25 }
		command = { type = relation which = GEN value = -25 }
		command = { type = relation which = HAB value = -25 }
		command = { type = relation which = HAU value = -25 }
		command = { type = relation which = HEL value = -25 }
		command = { type = relation which = HES value = -25 }
		command = { type = relation which = KLE value = -25 }
		command = { type = relation which = KOL value = -25 }
		command = { type = relation which = LOR value = -25 }
		command = { type = relation which = LUX value = -25 }
		command = { type = relation which = MAI value = -25 }
		command = { type = relation which = MAN value = -25 }
		command = { type = relation which = MEC value = -25 }
		command = { type = relation which = MLO value = -25 }
		command = { type = relation which = NAP value = -25 }
		command = { type = relation which = NAV value = -25 }
		command = { type = relation which = OLD value = -25 }
		command = { type = relation which = PAP value = -25 }
		command = { type = relation which = PFA value = -25 }
		command = { type = relation which = POM value = -25 }
		command = { type = relation which = POR value = -25 }
		command = { type = relation which = HEL value = -25 }
		command = { type = relation which = PRO value = -25 }
		command = { type = relation which = SAC value = -25 }
		command = { type = relation which = SAV value = -25 }
		command = { type = relation which = SCO value = -25 }
		command = { type = relation which = SHL value = -25 }
		command = { type = relation which = STR value = -25 }
		command = { type = relation which = STT value = -25 }
		command = { type = relation which = SWE value = -25 }
		command = { type = relation which = TOS value = -25 }
		command = { type = relation which = TYR value = -25 }
		command = { type = relation which = WUR value = -25 }
		command = { type = relation which = VEN value = -25 }
	}
}

#(1578-1750) War on Islam at Philippines (Brunei owns Palawan)
#by Fodoron
event = {
	id = 285165
	trigger = {
		owned = { province = 690 data = -1 } #Luzon
		control = { province = 690 data = -1 } #Luzon
		NOT = { provincereligion = { province = 690 data = pagan } } #not a TP
		owned = { province = 691 data = -1 } #Mindoro
		owned = { province = 694 data = BEI } #Palawan
		atwar = no
	}
	random = no
	country = SPA
	name = "EVENTNAME285165" #War on Islam at Philippines
	desc = "EVENTHIST285165"
	#-#Spaniards had been fighting Muslims for over eight hundred years and they were currently fighting them in North Africa, the Mediterranean, and in the Alpujarras of Granada. For Spaniards, fighting Muslims was the natural thing to do if they rejected conversion and they had come all the way around the world to find that Muslims were as close here as they were at home. When they landed at Palawan, then under nominal suzeraneity of Brunei, the governor of Manila, Francisco de Sande, sent the following letter to the sultan of Brunei, Seif ul-Rijal: ''What you are to do is to admit preachers of the law of Christ in all security, and allow any person in our land to freely attend and if he wishes so, to become Christian without any ill befalling him. Further, I desire that you do not sent preachers of the sect of Mahoma to any part of these islands or our own island, inasmuch as the doctrine of Mahoma is false and evil law, and the religion of the Christians alone is true, holy and good.'' Conflict was served.

	date = { day = 0 month = january year = 1578 }
	offset = 100
	deathdate = { day = 0 month = january year = 1750 }

	action_a = {
		name = "ACTIONNAME285165A" #Crusade
		command = { type = treasury value = -250 }
		command = { type = warships which = 690 value = 2 } #Luzon
		command = { type = INF which = 690 value = 5000 }
		command = { type = fortress which = 690 value = 1 } #Luzon
		command = { type = fortress which = 691 value = 1 } #Mindoro
		command = { type = war which = BEI }
	}
	action_b = {
		name = "ACTIONNAME285165B" #Not now
		command = { type = vp value = -5 }
	}
}
#(1578-1750) War on Islam at Philippines (Sulu owns Palawan)
#by Fodoron
event = {
	id = 285192
	trigger = {
		owned = { province = 690 data = -1 } #Luzon
		control = { province = 690 data = -1 } #Luzon
		NOT = { provincereligion = { province = 690 data = pagan } } #not a TP
		owned = { province = 691 data = -1 } #Mindoro
		owned = { province = 694 data = SUL } #Palawan
		atwar = no
	}
	random = no
	country = SPA
	name = "EVENTNAME285165" #War on Islam at Philippines
	desc = "EVENTHIST285165"
	#-#Spaniards had been fighting Muslims for over eight hundred years and they were currently fighting them in North Africa, the Mediterranean, and in the Alpujarras of Granada. For Spaniards, fighting Muslims was the natural thing to do if they rejected conversion and they had come all the way around the world to find that Muslims were as close here as they were at home. When they landed at Palawan, then under nominal suzeraneity of Brunei, the governor of Manila, Francisco de Sande, sent the following letter to the sultan of Brunei, Seif ul-Rijal: ''What you are to do is to admit preachers of the law of Christ in all security, and allow any person in our land to freely attend and if he wishes so, to become Christian without any ill befalling him. Further, I desire that you do not sent preachers of the sect of Mahoma to any part of these islands or our own island, inasmuch as the doctrine of Mahoma is false and evil law, and the religion of the Christians alone is true, holy and good.'' Conflict was served.

	date = { day = 0 month = january year = 1578 }
	offset = 100
	deathdate = { day = 0 month = january year = 1750 }

	action_a = {
		name = "ACTIONNAME285165A" #Crusade
		command = { type = treasury value = -250 }
		command = { type = warships which = 690 value = 2 } #Luzon
		command = { type = INF which = 690 value = 5000 }
		command = { type = fortress which = 690 value = 1 } #Luzon
		command = { type = fortress which = 691 value = 1 } #Mindoro
		command = { type = war which = SUL }
	}
	action_b = {
		name = "ACTIONNAME285165B" #Not now
		command = { type = vp value = -5 }
	}
}

#-----------------------------------------------------------------------------------------------
#Moro wars Sequence

#(1578-1750) Moro wars (I)
#by Fodoron
event = {
	id = 285166
	trigger = {
		owned = { province = 690 data = -1 } #Luzon
		owned = { province = 691 data = -1 } #Mindoro
		owned = { province = 693 data = MND } #Mindanao (Magindanao)
		atwar = no
	}
	random = no
	country = SPA
	name = "EVENTNAME285166" #Moro wars (I)
	desc = "EVENTHIST285166"
	#-#When Spain arrived in the Philippines, Islam was spreading from neighboring Brunei. Besides the Sultanate of Sulu in the southern chain of islands, the islands of Mindanao and Palawan were mostly Muslim. In Mindanao several small principalities divided the island while Palawan was under the authority of Brunei. In 1578, the Spaniards made their first move towards conquering the islands. The expedition of Esteban Rodrguez de Figueroa, after the invasion of Brunei, succeeded in temporarily vassalizing Sulu, while a attack on Mindanao was mostly unsuccessful. The Muslims in Philippines were also called Moros, as the Muslims in the North of Africa and the Iberian Peninsula were called because of their relationship to the Roman Mauri. A name that the Muslims of Philippines still carry today. The so-called Moro wars, that would continue into the 21st century, had started.

	date = { day = 0 month = january year = 1578 }
	offset = 100
	deathdate = { day = 0 month = january year = 1599 }

	action_a = {
		name = "ACTIONNAME285166A" #Conquer the Philippines
		command = { type = war which = MND } #Magindanao
		command = { type = stability value = 1 }
	}
	action_b = {
		name = "ACTIONNAME285166B" #Not now
		command = { type = vp value = -5 }
	}
}
#(1599-1609) Moro wars (II)
#by Fodoron
event = {
	id = 285167 #triggered by MND_119000 A
	random = no
	country = SPA
	name = "EVENTNAME285167" #Moro wars (II)
	desc = "EVENTHIST119000"
	#-#The Spaniards were able to get a beachhead in Magindanao and started a program to convert the tribesmen. The attacks on Magindanao weakened and this was used by Magindanao chiefs to launch attacks on the Visayas, the central group of islands, including Samar and Leyte, already under Spanish dominion. The Spaniards responded with new attacks on Sulu and Magindanao.A peace treaty was finally signed in 1609.

	action_a = {
		name = "ACTIONNAME285167A" #How do they dare?
		command = { type = stability value = -1 }
		command = { type = revolt which = 692 } #Samar
	}
}
#(1627-1737) Moro wars (III)
#by Fodoron
event = {
	id = 285168 #triggered by MND_119001 A
	random = no
	country = SPA
	name = "EVENTNAME285168" #Moro wars (III)
	desc = "EVENTHIST119001"
	#-#In response to a diplomatic incident in 1627, the Raja of Sulu attacked Camarines Sur and the Central Visayas. The Spaniards invaded Sulu in response. Sulu and Magindanao allied and jointly invaded the Central Visayas in 1634. War waged until 1644, when the Spaniards opted for abandoning Sulu and signed another peace. However Sulu and Magindanao had been weakened. By then Spain had gotten hold of a large part of Magindanao, and strong immigration by Christian Filipinos was changing the demography of the island. Sulu would continue the wars and rebellions into the North American conquest of the Philippines, but Magindanao came under Spanish control except for the occasional rebellion.

	action_a = {
		name = "ACTIONNAME285167A" #How do they dare?
		command = { type = stability value = -1 }
		command = { type = revolt which = 692 } #Samar
	}
}
#End of Moro wars Sequence
#-----------------------------------------------------------------------------------------------

#-----------------------------------------------------------------------------------------------
#Antonio Perez Sequence

#(1578) Antonio Perez - part 1 (historical)
#by Fodoron
event = {
	id = 285053
	random = no
	country = SPA
	name = "EVENTNAME285053" #Antonio Perez
	desc = "EVENTHIST285053"
	#-#Gonzalo Perez was the best state secretary of Emperor Carlos, but previously he had a son with a married woman while he was a Catholic priest. Despite this outcast origen, Antonio Perez was legitimated as son of Gonzalo, and given the best education that Europe could provide in several countries. He was extraordinarily intelligent and raised to the post of his father with Felipe II, but being disolute and unescrupulous, soon became corrupt. He became the lover of the widow of his former protector, the one-eyed princess of Eboli. Their intrigues lead Antonio Perez to order the killing of the secretary of the King's half brother, Juan de Austria, in March 1578, because he knew too much and was pressuring him. Although initially Felipe II was inclined to protect him, the outcry from the opposite faction was too big, and although the charges for murder were not brought upon him, a long process for corruption, that was to take several years, was initiated.

	date = { day = 23 month = march year = 1578 }

	action_a = {
		name = "ACTIONNAME285053A" #Prosecute him
		command = { type = stability value = 1 }
	}
	action_b = {
		name = "ACTIONNAME285053B" #Let him continue as our secretary
		command = { type = stability value = -1 }
		command = { type = ADM which = -2 value = 60 }
		command = { type = sleepevent which = 285054 } #Antonio Perez - part 2 #SPA: Rebellion in Aragon
		command = { type = sleepevent which = 170034 } #FRA: Antonio Perez induces attacks on Spain
		command = { type = sleepevent which = 164012 } #ENG: Antonio Perez induces attacks on Spain
	}
}
#(1591) Antonio Perez - part 2
#by Fodoron
event = {
	id = 285054
	random = no
	country = SPA
	name = "EVENTNAME285054" #Rebellion in Aragon
	desc = "EVENTHIST285054"
	#-#After many years of process for corruption, Antonio Perez was finally convicted, and also charges for murder were brought against him, but he escaped to Aragon. Once in Zaragoza, he was imprisoned, but he claimed protection from the fueros of Aragon. According to these laws dating to the old Kingdom of Aragon, the King could not prosecute a man from Aragon for a crime committed in Castilla. In a climate of confrontation between Aragon and the King for previous events, the clever Antonio Perez, skillfully managed to convince many, that the King wanted to use his case to abolish the fueros, and the Justice of Aragon decided to protect him. Felipe then resorted to the only tribunal whose jurisdiction reached all the Kingdoms, the Inquisition. Charges of heresy were brought upon Antonio Perez, using also his sacrilegous origen as son of a Catholic priest and a married woman, and the Inquisition ordered his transfer to its own jail in Zaragoza. But, the Justice decided that the fueros were being violated and raised in rebellion, and the Viceroy of Aragon was killed. The army was sent to Zaragoza, where it entered without a shot, as the rebellion dissolved. But by then Antonio Perez had escaped to France. The Justice was executed for high treason, and the royal authority reinforced.

	date = { day = 10 month = november year = 1591 }

	action_a = {
		name = "ACTIONNAME285054A" #Use the Inquisition in Aragon
		command = { type = domestic which = centralization value = 1 }
		command = { type = revolt which = 430 } #Aragon
	}
	action_b = {
		name = "ACTIONNAME285054B" #Let the matter fall
		command = { type = domestic which = centralization value = -2 }
		command = { type = sleepevent which = 170034 } #FRA: Antonio Perez induces attacks on Spain
		command = { type = sleepevent which = 164012 } #ENG: Antonio Perez induces attacks on Spain
	}
}
#(1592) Antonio Perez - part 3
#by Fodoron
event = {
	id = 285055 #triggered by FRA_170034 A
	random = no
	country = SPA
	name = "EVENTNAME285055" #Antonio Perez induces French attacks
	desc = "EVENTHIST285055"
	#-#In France, Antonio Perez was well received. Although France and Spain had been at peace for many years, Henri IV found the opposition from Felipe in his ascent to the crown of France when he was protestant, and desired revenge. Antonio Perez had no problem in treasoning his country, revealing all the information that as a secretary of state he possessed, that Henri used to attack Spain. Henri even gave Antonio Perez a small army to invade Spain. The army was destroyed, but Antonio Perez escaped again.

	action_a = {
		name = "ACTIONNAME285055A" #Damm Antonio Perez
		command = { type = casusbelli which = FRA value = 60 }
	}
}
#(1596) Antonio Perez - part 4
#by Fodoron
event = {
	id = 285056 #triggered by ENG_164012 A
	random = no
	country = SPA
	name = "EVENTNAME285056" #Antonio Perez induces English attacks
	desc = "EVENTHIST285056"
	#-#In England, Antonio Perez was also well received. Elisabeth was continuing her attacks on Spain, and the information provided by Antonio Perez constituted the basis for the attack on Cadiz by Howard in 1596. He continued plotting against the Spanish monarchy. With Henri IV of France he plotted the invasion of Aragon, and with Elisabeth of England the invasion of Naples, but everything failed. Henri was forced to sign the peace of Vervins in 1598, due to the difficult economical situation, and the English suffered a tremendous defeat in their naval attack to the Azores. Antonio Perez lost the favor of foreign monarchs, but continued writing libels against Felipe II, contributing to his black legend. He finally died poor and forgotten in Paris, in 1611.

	action_a = {
		name = "ACTIONNAME285056A" #Damm Antonio Perez
		command = { type = population which = 445 value = -200 } #Gibraltar
		command = { type = casusbelli which = ENG value = 60 }
	}
}
#End of Antonio Perez Sequence
#-----------------------------------------------------------------------------------------------

#(1580) The Portuguese Succession
event = {
	id = 3163
	trigger = {
		owned = { province = 441 data = POR } #Tago
	}
	random = no
	country = SPA
	name = "EVENTNAME3163" #The Portuguese Succession
	desc = "EVENTHIST3163"
	#-#In 1580, a regency council convened in Portugal to settle the succession. With the death of Sebastio I, Portugal was left with no clear heir. In 1580, several people had claims to the throne: Felipe II of Spain, son of D. Isabel (daughter of D. Manuel I) who had a large support of the nobles but lacked peasant support, D. Antonio, despised by the nobles because he was an ilegitimate son of D. Luis (son of D. Manuel I) but had great support from the lower classes, and finally, D. Catarina, the Duchess of Bragana. She was the legitimate daughter of D. Duarte (son of D. Manuel I). Although Catarina's claim was the strongest, the Portuguese were not happy with the idea of an independent Queen. Felipe II had long desired to add the Portuguese Kingdom to his empire and this was a perfect opportunity.

	date = { day = 29 month = january year = 1580 }
	offset = 10
	deathdate = { day = 1 month = december year = 1580 }

	action_a = {
		name = "ACTIONNAME3163A" #Press our claim
		command = { type = addcore which = 441 } #Tago
		command = { type = relation which = POR value = -200 }
		command = { type = casusbelli which = POR value = 24 }
		command = { type = sleepevent which = 18015 } #POR: Triumph of Aviz
		command = { type = trigger which = 3274 } #POR: Filipe II's Claim to the Throne
		command = { type = sleepevent which = 285276 } #SPA: The Portuguese Succession - alternate
	}
	action_b = {
		name = "ACTIONNAME3163B" #There are more pressing matters
		command = { type = relation which = POR value = 50 }
		command = { type = sleepevent which = 260087 } #POR: Filipe I in Lisbon
		command = { type = sleepevent which = 285276 } #SPA: The Portuguese Succession - alternate
	}
}

#(1580) The Portuguese Succession - alternate
event = {
	id = 285276
	trigger = {
		exists = POR
		NOT = { owned = { province = 441 data = POR } } #Tago
	}
	random = no
	country = SPA
	name = "EVENTNAME3163" #The Portuguese Succession
	desc = "EVENTHIST285276"
	#-#In 1580, a regency council convened in Portugal to settle the succession. With the death of Sebastio I, Portugal was left with no clear heir. In 1580, several people had claims to the throne: Felipe II of Spain, son of D. Isabel (daughter of D. Manuel I) who had a large support of the nobles but lacked peasant support, D. Antonio, despised by the nobles because he was an ilegitimate son of D. Luis (son of D. Manuel I) but had great support from the lower classes, and finally, D. Catarina, the Duchess of Bragana. She was the legitimate daughter of D. Duarte (son of D. Manuel I). Although Catarina's claim was the strongest, the Portuguese were not happy with the idea of an independent Queen. The weakness of the Portuguese state all but ensured that was Felipe to press his claim, the Kingdom would be his.

	date = { day = 29 month = january year = 1580 }
	offset = 10
	deathdate = { day = 1 month = december year = 1580 }

	action_a = {
		name = "ACTIONNAME3163A" #Press our claim
		command = { type = addcore which = 441 } #Tago
		command = { type = relation which = POR value = -200 }
		command = { type = casusbelli which = POR value = 24 }
		command = { type = sleepevent which = 18015 } #POR: Triumph of Aviz
		command = { type = sleepevent which = 260087 } #POR: Filipe I in Lisbon
		command = { type = sleepevent which = 3163 } #SPA: The Portuguese Succession
		command = { type = trigger which = 260091 } #POR: Filipe II's Claim to the Throne - alternate
	}
	action_b = {
		name = "ACTIONNAME3163B" #There are more pressing matters
		command = { type = relation which = POR value = 50 }
		command = { type = sleepevent which = 3163 } #SPA: The Portuguese Succession
		command = { type = sleepevent which = 260087 } #POR: Filipe I in Lisbon
	}
}

#(1580-1598) The Portuguese Crown
event = {
	id = 3162 #triggered by POR_260087 / POR_260091
	random = no
	country = SPA
	name = "EVENTNAME3162" #The Portuguese Crown
	desc = "EVENTHIST3162"
	#-#Felipe II of Spain arrived in Portugal and was accepted as King (1580-98) by the Cortes held at Tomar (1581). He undertook to preserve Portuguese autonomy, to consider the union as a personal one like that of Aragon and Castile under Ferdinand and Isabella, to appoint only Portuguese to the administration, to summon Cortes frequently, and to be accompanied by a Portuguese council in Madrid.

	action_a = {
		name = "ACTIONNAME3162A" #One King, Two Kingdoms
		command = { type = vassal which = POR }
		command = { type = dynastic which = POR }
		command = { type = stability value = 1 }
		command = { type = removecore which = 441 } #Tago
		command = { type = relation which = POR value = 200 }
		command = { Type = alliance which = POR }
	}
}

#(1580-1820) Gobernacin del Ro de la Plata
event = {
	id = 285315
	trigger = {
		owned = { province = 223 data = -1 }
		control = { province = 223 data = -1 }
		NOT = { provincereligion = { province = 223 data = pagan } } #not a TP
	}
	random = no
	country = SPA
	name = "EVENTNAME285315" #Gobernacin del Ro de la Plata
	desc = "EVENTHIST285315"
	#-#The re-foundation of what would later be called Buenos Aires by Juan de Garay in 1580 solidified Spanish control over the lands west of the Ro de la Plata.

	date = { day = 10 month = july year = 1580 }
	offset = 30
	deathdate = { year = 1820 }

	action_a = {
		name = "EXCELLENT"
		command = { type = addcore which = 223 } #Aires
		command = { type = addcore which = 222 } #Rosario
		command = { type = addcore which = 221 } #Corrientes
		command = { type = addcore which = 220 } #Jujuy
		command = { type = addcore which = 1485 } #Pampas del Norte
	}
}

#(1581-1598) The Portuguese Kingdom
event = {
	id = 285262
	random = no
	trigger = {
		NOT = { war = { country = SPA country = POR } }
		event = 3162 #SPA: The Portuguese Crown
		exists = POR
		OR = {
			owned = { province = 733 data = -1 } #Fez
			owned = { province = 806 data = -1 } #Sahara
			owned = { province = 804 data = -1 } #Tassaret
			owned = { province = 1595 data = -1 } #Anti Atlas
			owned = { province = 1596 data = -1 } #Mdennan
			owned = { province = 1597 data = -1 } #Azaouad
			owned = { province = 823 data = -1 } #The Azores
			owned = { province = 434 data = -1 } #Oporto
			owned = { province = 441 data = -1 } #Tago
			owned = { province = 442 data = -1 } #Algarve
		}
	}
	country = SPA
	name = "EVENTNAME285262" #The Portuguese Kingdom
	desc = "EVENTHIST285262"
	#-#As a stipulation in the agreement made at the Cortes of 1581 in Tomar, the freedoms, privileges, uses and customs of the Portuguese monarchy were to be respected and Portugal was to remain a cohesive Kingdom. To do so, Spain ceded to Portugal all of the lands associated with that Kingdom. All lands in Morocco were also to be handed over as that had long been considered the project of the Portuguese monarch.

	date = { day = 1 month = january year = 1581 }
	offset = 1
	deathdate = { day = 12 month = september year = 1598 }

	action_a = {
		name = "ACTIONNAME285262A" #Render unto them that which is theirs
		command = { type = relation which = POR value = 200 }
		command = { type = cedeprovince which = POR value = 733 } #Fez
		command = { type = cedeprovince which = POR value = 806 } #Toubkal
		command = { type = cedeprovince which = POR value = 805 } #Sahara
		command = { type = cedeprovince which = POR value = 804 } #Tassaret
		command = { type = cedeprovince which = POR value = 1595 } #Anti Atlas
		command = { type = cedeprovince which = POR value = 1596 } #Mdennan
		command = { type = cedeprovince which = POR value = 1597 } #Azaouad
		command = { type = cedeprovince which = POR value = 823 } #The Azores
		command = { type = cedeprovince which = POR value = 434 } #Oporto
		command = { type = cedeprovince which = POR value = 441 } #Tago
		command = { type = cedeprovince which = POR value = 442 } #Algarve
	}
}

#(1581-1648) The Oath of Abjuration
event = {
	id = 285281
	trigger = {
		OR = {
			owned = { province = 337 data = -1 } #Friesen
			owned = { province = 338 data = -1 } #Geldre
			owned = { province = 339 data = -1 } #Holland
			owned = { province = 340 data = -1 } #Zeeland
		}
		NOT = {
			exists = HOL
			#The Netherlands own Holland at some point
			event = 186011 #HOL: Wartime devastation of Holland
		}
		OR = {
			AND = {
				control = { province = 337 data = REB } #Friesen
				owned = { province = 337 data = -1 } #Friesen
			}
			NOT = {
				owned = { province = 337 data = -1 } #Friesen
			}
		}
		OR = {
			AND = {
				control = { province = 338 data = REB } #Geldre
				owned = { province = 338 data = -1 } #Geldre
			}
			NOT = {
				owned = { province = 338 data = -1 } #Geldre
			}
		}
		OR = {
			AND = {
				control = { province = 339 data = REB } #Holland
				owned = { province = 339 data = -1 } #Holland
			}
			NOT = {
				owned = { province = 339 data = -1 } #Holland
			}
		}
		OR = {
			AND = {
				control = { province = 340 data = REB } #Zeeland
				owned = { province = 340 data = -1 } #Zeeland
			}
			NOT = {
				owned = { province = 340 data = -1 } #Zeeland
			}
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285281" #The Oath of Abjuration
	desc = "EVENTHIST285281"
	#-#The Oath of Abjuration or Plakkaat van Verlatinghe, signed on July 26, 1581, was the formal declaration of independence of the northern Low Countries from the Spanish King, Philip II. This act followed the Union of Utrecht. The Oath of Abjuration meant a climax in the Dutch Revolt, a point of no return, in which the Low Countries asserted they were no longer loyal to their King. Sometimes, the oath is interpreted as an act of secession from Spain, but this is strictly speaking incorrect, as the provinces were never legally incorporated into the Spanish Kingdoms, but were only bound to them by the looser tie of personal union. Legally, the oath deposed the provinces' current ruler, Philip of Habsburg - who, by dynastic coincidence, was also King of Spain. Philip's attempts to unify his various realms under a more centralized government based in Madrid were the major drivers behind the oath. Philip used troops from Spain and other areas loyal to him (such as Wallonia and Italy) to fight the rebels. In the Oath, the Staten-Generaal (the General Estates, a sort of federal parliament) assert that a King is a servant of his people and should respect their laws and traditions. When he no longer does this, the people have the right to choose another ruler.

	date = { day = 26 month = july year = 1581 }
	offset = 30
	deathdate = { day = 1 month = january year = 1648 }

	action_a = {
		name = "ACTIONNAME285281A" #The Spanish lose Dutch sovereignty
		command = { type = independence which = HOL }
		command = { type = trigger which = 186057 } #HOL: The Oath of Abjuration
	}
}

#(1582-1614) The Expulsion of the Morisques
event = {
	id = 3167
	trigger = {
		event = 3160
		atwar = no
	}
	random = no
	country = SPA
	name = "EVENTNAME3167" #The Expulsion of the Morisques
	desc = "EVENTHIST3167"
	#-#Felipe II had made plans to expell the Morisques from Spain only a decade after the Alpujarras Revolt was crushed, but the wars against the Dutch and English prevented him from massing the necessary troops and ships. On the day that the 12 Year Truce was signed with the Dutch in 1609 he issued the order for the expulsion. It took some time to gather the necessary resources, but they began later that year. The order fell hardest on Aragon, Valencia and Murcia because they had large numbers of unassimilated Morisques from the earlier stages of the Reconquista. Valencia lost almost a third of its population and Aragon almost a fifth. But Felipe III and his advisors thought this was a cheap price to pay for cleansing Spain of its hated minority and to reassert the power and prestige of the Crown, both badly damaged by its defeats by the Protestant heretics.

	date = { day = 1 month = january year = 1582 }
	offset = 360
	deathdate = { day = 1 month = january year = 1614 }

	action_a = {
		name = "ACTIONNAME3167A" #Expel the Infidels!
		command = { type = domestic which = INNOVATIVE value = -2 }
		command = { type = population which = 440 value = -1000 } #Estramadura
		command = { type = population which = 437 value = -11000 } #Valencia
		command = { type = population which = 430 value = -6000 } #Aragon
		command = { type = population which = 436 value = -1000 } #Castilla
		command = { type = population which = 443 value = -3000 } #Andalusia
		command = { type = population which = 439 value = -1000 } #Toledo
		command = { type = population which = 444 value = -500 } #Granada
		command = { type = population which = 438 value = -1500 } #Murcia
		command = { type = population which = 435 value = -1000 } #Leon
		command = { type = provinceculture which = 444 value = castilian } #Granada
		command = { type = provinceculture which = 445 value = castilian } #Gibraltar
		command = { type = province_revoltrisk which = 444 value = -2 } #Granada
		command = { type = province_revoltrisk which = 445 value = -2 } #Gibraltar
		command = { type = revolt which = 437 } #Valencia
		command = { type = revolt which = 437 } #Valencia
		command = { type = stability value = 2 }
		command = { type = provincetax which = 438 value = -1 } #Murcia
		command = { type = provincetax which = 430 value = -2 } #Aragon
		command = { type = provincetax which = 437 value = -3 } #Valencia
	}
	action_b = {
		name = "ACTIONNAME3167B" #Let them be as they are needed for the economy
		#no RR -2 in this case for Granada and Gibraltar - wad
		command = { type = domestic which = MERCANTILISM value = -2 }
		command = { type = domestic which = INNOVATIVE value = 2 }
		command = { type = sleepevent which = 338167 } #ProvinceSpec*805: Morisque Refugees from Al-Andalus
		command = { type = sleepevent which = 338168 } #ProvinceSpec*806: Morisque Refugees from Al-Andalus
		command = { type = sleepevent which = 338169 } #ProvinceSpec*732: Morisque Refugees from Al-Andalus
		command = { type = sleepevent which = 338170 } #ProvinceSpec*733: Morisque Refugees from Al-Andalus
		command = { type = sleepevent which = 338171 } #ProvinceSpec*734: Morisque Refugees from Al-Andalus
		command = { type = sleepevent which = 338172 } #ProvinceSpec*737: Morisque Refugees from Al-Andalus
	}
}

#-----------------------------------------------------------------------------------------------
#First wave of Spanish Caribbean fortifications
#by sturmvogel

#(1587-1598) Fortification of the Spanish Main
#by sturmvogel
event = {
	id = 285292
	trigger = {
		domestic = { type = offensive value = 3 }
		event = 21038 #SPA: English Privateering
 	}
	random = no
	country = SPA
	name = "EVENTNAME285292" #Fortification of the Spanish Main
	desc = "EVENTHIST285292"
	#-#In 1586 Felipe II ordered General Juan de Tejeda and Bautista Antonelli to make an inspection of the Caribbean fortifications that had failed to stop attacks on Spanish holdings and to prepare recommendations for preventing further attacks. Upon their return they advised fortifying only the ports used by the treasure fleets as they were the most likely to be attacked. In November 1588 Felipe accepted their recommendations. Havana was the first port to benefit from the plans drawn up by Antonelli although it would be decades before the new forts were completed.

	date = { day = 1 month = september year = 1587 }
	offset = 400
	deathdate = { day = 1 month = january year = 1598 }

	action_a = {
		name = "ACTIONNAME285292A" #Fortify the Spanish Main
		command = { type = domestic which = offensive value = -1 }
	}
	action_b = {
		name = "ACTIONNAME285292B" #We are content with the existing fortifications
		command = { }
	}
}
#(1587-1623) Puerto Rico fortified
event = {
	id = 285037
	trigger = {
		event = 285292 #SPA: Fortification of the Spanish Main
		NOT = { provincereligion = { province = 144 data = pagan } } #not a TP
		owned = { province = 144 data = -1 } #Puerto Rico
		control = { province = 144 data = -1 }
		ai = yes
	}
	random = no
	country = SPA
	name = "EVENTNAME285037" #San Juan fortified
	desc = "EVENTHIST285036"
	#-#After the 1585-6 raids by Protestant privateers graphically illustrated the weaknesses of the Spanish possessions in the Caribbean the Spanish began a massive fortification program in response. When they returned the Spanish were ready for them.

	date = { day = 1 month = september year = 1587 }
	offset = 180
	deathdate = { day = 0 month = january year = 1623 }

	action_a = {
		name = "ACTIONNAME285036A" #Build fort
		command = { type = fortress which = 144 value = -1 } #destroy any existing fort
		command = { type = treasury value = -100 }
		command = { type = fortress which = 144 value = 1 } #Puerto Rico
	}
	action_b = {
		name = "ACTIONNAME285036B" #We don't have enough money
		command = { }
	}
}
#(1587-1623) Panama fortified
event = {
	id = 285038
	trigger = {
		event = 285292 #SPA: Fortification of the Spanish Main
		NOT = { provincereligion = { province = 39 data = pagan } } #not a TP
		owned = { province = 39 data = -1 } #Panama
		control = { province = 39 data = -1 }
		ai = yes
	}
	random = no
	country = SPA
	name = "EVENTNAME285038" #Portobello fortified
	desc = "EVENTHIST285036"
	#-#After the 1585-6 raids by Protestant privateers graphically illustrated the weaknesses of the Spanish possessions in the Caribbean the Spanish began a massive fortification program in response. When they returned the Spanish were ready for them.

	date = { day = 1 month = september year = 1587 }
	offset = 180
	deathdate = { day = 0 month = january year = 1623 }

	action_a = {
		name = "ACTIONNAME285036A" #Build fort
		command = { type = fortress which = 39 value = -1 } #destroy any existing fort
		command = { type = treasury value = -100 }
		command = { type = fortress which = 39 value = 1 } #PPanama
	}
	action_b = {
		name = "ACTIONNAME285036B" #We don't have enough money
		command = { }
	}
}
#(1590-1623) Vera Cruz fortified
event = {
	id = 285036
	trigger = {
		event = 285292 #SPA: Fortification of the Spanish Main
		NOT = { provincereligion = { province = 211 data = pagan } } #not a TP
		owned = { province = 29 data = -1 } #Tlaxcala
		control = { province = 29 data = -1 }
		ai = yes
	}
	random = no
	country = SPA
	name = "EVENTNAME285036" #Fort at San Juan de Ulloa
	desc = "EVENTHIST285036"
	#-#After the 1585-6 raids by Protestant privateers graphically illustrated the weaknesses of the Spanish possessions in the Caribbean the Spanish began a massive fortification program in response. When they returned the Spanish were ready for them.

	date = { day = 0 month = january year = 1590 }
	offset = 180
	deathdate = { day = 0 month = january year = 1623 }

	action_a = {
		name = "ACTIONNAME285036A" #Build fort
		command = { type = fortress which = 29 value = -1 } #destroy any existing fort
		command = { type = treasury value = -100 }
		command = { type = fortress which = 29 value = 1 } #Tlaxcala
	}
	action_b = {
		name = "ACTIONNAME285036B" #We don't have enough money
		command = { }
	}
}
#(1595-1623) Caribe fortified
event = {
	id = 285209
	trigger = {
		event = 285292 #SPA: Fortification of the Spanish Main
		NOT = { provincereligion = { province = 178 data = pagan } } #not a TP
		owned = { province = 178 data = -1 } #Caribe
		control = { province = 178 data = -1 }
		ai = yes
	}
	random = no
	country = SPA
	name = "EVENTNAME285209" #Caribe fortified
	desc = "EVENTHIST285036"
	#-#After the 1585-6 raids by Protestant privateers graphically illustrated the weaknesses of the Spanish possessions in the Caribbean the Spanish began a massive fortification program in response. When they returned the Spanish were ready for them.

	date = { day = 0 month = january year = 1595 }
	offset = 180
	deathdate = { day = 0 month = january year = 1623 }

	action_a = {
		name = "ACTIONNAME285036A" #Build fort
		command = { type = fortress which = 178 value = -1 } #destroy any existing fort
		command = { type = treasury value = -100 }
		command = { type = fortress which = 178 value = 1 } #Cartagena
	}
	action_b = {
		name = "ACTIONNAME285036B" #We don't have enough money
		command = { }
	}
}
#(1597-1623) Havana fortified
event = {
	id = 285039
	trigger = {
		event = 285292 #SPA: Fortification of the Spanish Main
		NOT = { provincereligion = { province = 137 data = pagan } } #not a TP
		owned = { province = 137 data = -1 } #Puerto Rico
		control = { province = 137 data = -1 }
		ai = yes
	}
	random = no
	country = SPA
	name = "EVENTNAME285039" #Havana fortified
	desc = "EVENTHIST285036"
	#-#After the 1585-6 raids by Protestant privateers graphically illustrated the weaknesses of the Spanish possessions in the Caribbean the Spanish began a massive fortification program in response. When they returned the Spanish were ready for them.

	date = { day = 0 month = january year = 1597 }
	offset = 180
	deathdate = { day = 0 month = january year = 1623 }

	action_a = {
		name = "ACTIONNAME285036A" #Build fort
		command = { type = fortress which = 137 value = -1 } #destroy any existing fort
		command = { type = treasury value = -100 }
		command = { type = fortress which = 137 value = 1 } #Havana
	}
	action_b = {
		name = "ACTIONNAME285036B" #We don't have enough money
		command = { }
	}
}
#(1597-1623) Cartagena fortified
event = {
	id = 285175
	trigger = {
		event = 285292 #SPA: Fortification of the Spanish Main
		NOT = { provincereligion = { province = 158 data = pagan } } #not a TP
		owned = { province = 158 data = -1 } #Cartagena
		control = { province = 158 data = -1 }
		ai = yes
	}
	random = no
	country = SPA
	name = "EVENTNAME285175" #Cartagena fortified
	desc = "EVENTHIST285036"
	#-#After the 1585-6 raids by Protestant privateers graphically illustrated the weaknesses of the Spanish possessions in the Caribbean the Spanish began a massive fortification program in response. When they returned the Spanish were ready for them.

	date = { day = 0 month = january year = 1597 }
	offset = 180
	deathdate = { day = 0 month = january year = 1623 }

	action_a = {
		name = "ACTIONNAME285036A" #Build fort
		command = { type = fortress which = 158 value = -1 } #destroy any existing fort
		command = { type = treasury value = -100 }
		command = { type = fortress which = 158 value = 1 } #Cartagena
	}
	action_b = {
		name = "ACTIONNAME285036B" #We don't have enough money
		command = { }
	}
}
#End of First wave of Spanish Caribbean fortifications
#-----------------------------------------------------------------------------------------------

#(1587-1603) 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 data = 0 } }
	}
	random = no
	country = SPA
	name = "EVENTNAME21053" #Spain Tires of England's Interference
	desc = "EVENTHIST21053"
	#-#Years of England's privateering in the Spanish Main pushed Spain to the brink of war with England.

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

	action_a = {
		name = "ACTIONNAME21053A" #It Is Time To Exact Revenge!
		command = { type = relation which = ENG value = -75 }
		command = { type = casusbelli which = ENG value = 24 }
		command = { type = stability value = 1 }
		command = { type = warships which = 433 value = 15 }
		command = { type = INF which = 433 value = 10000 } #Galicia
		command = { type = CAV which = 433 value = 5000 } #Galicia
		command = { type = manpower value = 10 }
		command = { type = treasury value = 100 }
	}
	action_b = {
		name = "ACTIONNAME21053B" #The English Do Not Concern Us
		command = { type = stability value = -1 }
	}
}

#(1588) The Spanish Armada
#by Fodoron
event = {
	id = 285057
	trigger = {
		OR = {
			AND = {
				event = 21040 #SPA: Drake Strikes the Panamanian Silver Train
				event = 21042 #SPA: Drake in the Pacific
			}
			event = 21044 #SPA: Drake Strikes in Spain and the Americas
			event = 21046 #SPA: English Aid Arrives in the Dutch Provinces
		}
		NOT = { relation = { country = ENG data = 0 } }
	}
	random = no
	country = SPA
	name = "EVENTNAME285057" #The Spanish Armada
	desc = "EVENTHIST285057"
	#-#Following the undeclared war that Elizabeth, Queen of England, was waging against Spain, attacking her fleets, coastal cities and colonies, and supporting the Dutch protestants at war against Spain, Felipe decided to attack England, and gave orders to prepare a huge fleet to lead an invasion. But the problems started before the fleet was assembled, when Alvaro de Bazan, the Marquis of Santa Cruz, hero of many naval battles, died. The operation was put under the command of Alonso Guzman, the Duke of Medina-Sidonia, who was a great organizer and contributed financially, but was no seaman. 130 ships with 30,000 men departed Lisbon, but of them only 20 were big galleons, and most of the ships were merchant ships of many classes refitted with cannons and some Mediterranean galleases. Bad leadership, terrible storms and superior English naval tactics and cannons, turned the expedition into a disaster. The crucial point of the expedition, the embarkment of the Tercios of Alessandro Farnese, the Duke of Parma, near Calais, could not be achieved. The return trip was a nightmare due to bad weather, and in total 60 ships and 20,000 men were lost, 85 percent of them in the coasts of Ireland. The news were badly received in Spain, little used to serious defeats, but a lesson was learned. The crown understood that it needed a permanent royal navy, and that the ships and cannons had to be improved. As a consequence the Spanish navy was improved, corsair attacks diminished, the colonies were safer and the fleet of Indias arrived with regularity. Spain continued ruling the seas until the next century, when the Dutch achieved naval superiority over the then decadent Spanish empire.

	date = { day = 29 month = july year = 1588 }

	action_a = {
		name = "ACTIONNAME285057A" #God was not on our side
		command = { type = treasury value = -250 }
		command = { type = desertion which = -1 value = 5000 }
		command = { type = stability value = -1 }
		command = { type = naval value = 500 } #Fleet improvement afterwards
	}
}

#(1589) Parma's Intervention in France
#by Count Six
event = {
	id = 285202 #triggered by FUC_172002
	trigger = {
		war = { country = FUC country = FRA }
		NOT = { war = { country = FUC country = SPA } }
		NOT = { vassal = { country = FUC country = SPA } } #no chance but to be sure
	}
	random = no
	country = SPA
	name = "EVENTNAME285202" #Farnese's Intervention in France
	desc = "EVENTHIST172002"
	#-#During a siege of Paris using the combined forces of Henri III and Henri of Navarre, a Catholic monk assassinated Henri III. The King's bodyguards immediately threw themselves at Henri of Navarre's feet and swore fealty to him. The Catholic League responded by proclaiming Cardinal de Bourbon the true King of France. But Henri surprised everyone by abjuring Protestantism. Paris soon surrendered and his legitimacy soared. The Catholic League suffered continued defeats and eventually dispersed.

	action_a = {
		name = "ACTIONNAME285202A" #Defeat the heretics!
		command = { type = casusbelli which = FRA value = 60 }
		command = { type = relation which = FRA value = -200 }
		command = { type = vassal which = FUC }
	}
}

#(1590-1648) Capture of the Spanish treasure fleet
#by Malatesta and Fodoron with the help of the Spanish forum
event = {
	id = 285068 #triggered by HOL_186027
	random = no
	country = SPA
	name = "EVENTNAME186027" #Piet Heyn captures the Spanish treasure fleet
	desc = "EVENTHIST186027"
	#-#The Netherlands used the twelve years truce with Spain to strenghen their naval supremacy and expand their colonial empire at the expense of Spain and Portugal. A few years after the renewal of hostilities, in 1628, Vice-Admiral Piet Heyn at the service of the Dutch West Indies Company, commanded the fleet that captured the Spanish treasure fleet at Matanzas, Cuba. It was the only time in 300 years of yearly shipments of silver and luxury goods, that the treasure fleet was lost with all its cargo, and it meant the loss of a significant part of the Spanish Crown income at a difficult time. Piet Heyn was made Liutenant-Admiral of the Dutch navy, but he died the following year fighting the Spanish corsairs with base in Dunkirk.

	action_a = {
		name = "DARN"
		command = { type = treasury value = -150 }
		command = { type = trade value = -100 }
		command = { type = merchants value = -2 }
	}
}

#(1592-1598) State Bankruptcy
event = {
	id = 3158
	trigger = {
		OR = {
			owned = { province = 24 data = -1 } #Jalisco
			owned = { province = 27 data = -1 } #Zacatecas
			owned = { province = 160 data = -1 } #Bogota
		}
		OR = {
			owned = { province = 25 data = -1 } #Saltillo
			owned = { province = 162 data = -1 } #Cali
			owned = { province = 170 data = -1 } #Arequipa
		}
		OR = {
			owned = { province = 26 data = -1 } #Michoacan
			owned = { province = 194 data = -1 } #Potosi
			owned = { province = 169 data = -1 } #Cuzco
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME3158" #State Bankruptcy
	desc = "EVENTHIST3158"
	#-#In 1557, on the very first year as Spanish King, Philip II was forced to declare the country bankrupt. Spain had for many years undercut its tax base and what was worse, had no control of the price-fluctuations from the inflow of American silver and gold. It was impossible for the Spanish minister of finance to forecast any repayments as all costs fluctuated volatile. The spending was based on the planned budget, but the inflow was irregular at best which made Spain spend more than it actually had, thus the Great Bankruptcies of 1557 and 1596.

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

	action_a = {
		name = "ACTIONNAME3158A" #Declare State Bankruptcy
		command = { type = treasury value = -500 }
		command = { type = loansize which = 100 }
		command = { type = inflation value = 10 }
		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 = 9892 }
		command = { type = desertion which = -1 value = 5841 }
		command = { type = desertion which = -1 value = 5613 }
	}
}

#(1593-1613) Cambodia asks for aid
#by Chanda "Philip V" Choun
event = {
	id = 65149 #triggered by CAM_140008 A
	random = no
	country = SPA
	name = "EVENTNAME65149" #Cambodia asks for aid
	desc = "EVENTHIST65149"
	#-#Hard-pressed by the Thai, King Sattha (1576-94) of Cambodia surrounded himself with a personal guard of Spanish and Portuguese mercenaries, and in 1593 asked the Spanish governor of the Phillipines for aid. Attracted by the prospects of establishing a Spanish protectorate in Cambodia and of converting the monarch to Christianity, the governor sent a force of 120 men.

	action_a = {
		name = "ACTIONNAME65149A" #Send them aid and make them our protectorate
		command = { type = treasury value = -30 }
		command = { type = casusbelli which = AYU value = 60 }
		command = { type = relation which = AYU value = -100 }
		command = { type = vassal which = CAM }
		command = { type = trigger which = 140009 } #CAM: Spanish Intervention
	}
	action_b = {
		name = "ACTIONNAME65149B" #We don't want to make a risky commitment
		command = { type = DIP which = -2 value = 6 }
		command = { type = relation which = CAM value = -50 }
		command = { type = trigger which = 140010 } #CAM: Spanish Refusal
	}
}
#(1593-1613) Lovek is captured
event = {
	id = 65150 #triggered by CAM_140011
	trigger = {
		event = 140009 #CAM: Spanish Intervention
	}
	random = no
	country = SPA
	name = "EVENTNAME65150" #Lovek is Captured
	desc = "EVENTHIST65150"
	#-#The Spanish could not prevent the Thai capture of Lovek.

	action_a = {
		name = "ACTIONNAME65150A" #We have failed
		command = { type = relation which = CAM value = -15 }
		command = { type = diplomats value = -1 }
	}
}

#(1596-1603) Plague
event = {
	id = 285013
	random = no
	country = SPA
	name = "EVENTNAME285013" #Plague
	desc = "EVENTHIST285013"
	#-#The reoccuring epidemics that struck Castile between 1596 and 1602 greatly disrupted civic life as citizens fled to the countryside. While unintentionally helpful the toll was fearful regardless. Over 10 percent of the population died during these epidemics.

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

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

#(1596) The Death of Drake
#by Fodoron
event = {
	id = 285058
	trigger = { event = 164013 } #ENG: The English Armada
	random = no
	country = SPA
	name = "EVENTNAME285058" #The death of Drake
	desc = "EVENTHIST285058"
	#-#Following the defeat of the Spanish Armada, England quickly organized a large fleet to attack the Atlantic fleet that was largely intact and under repair at the Northern ports of Spain. But for England it was difficult to quickly obtain financing for such an expensive enterprise, and so the goals were expanded to attract new investors. The fleet was to destroy the Spanish ships under repair, to invade Portugal to trigger a rebellion and instate a Portuguese claimant on the throne, to capture the Azores, and to capture also the Spanish treasure fleet to compensate the expenses for a financially troubled England. Francis Drake and John Norris were put in command, but the expedition resulted in a disaster of a similar magnitude to the Spanish armada. Nothing of substance was achieved, and a military defeat at Lisbon, diseases and storms, decimated the fleet, that it is said to have lost 10,000 men. Thanks to it, the Spanish fleet recovered and in the next decade dominated again the seas, shipping three times more gold than the previous decades, while England suffered a chain of defeats. The most important of them was the disastrous raid to Puerto Rico and Panama in 1595, also with great loss of lives, including those of the hated corsairs Hawkins and Drake. The Spanish colonial empire was safe. As a result of these defeats and the financial troubles of England, James I would seek peace with Spain in the same terms offered by Felipe II prior to the Spanish Armada, but by then the war in the Low Countries had already been lost.

	date = { day = 27 month = january year = 1596 }

	action_a = {
		name = "ACTIONNAME285058A" #Our colonies and treasure are safe
		command = { type = stability value = 1 }
	}
}

#(1597) The Martyrs of Nagasaki
#by Fodoron
event = {
	id = 285059
	trigger = {
		owned = { province = 690 data = -1 } #Luzon
		exists = NIP
	}
	random = no
	country = SPA
	name = "EVENTNAME285059" #The martyrs of Nagasaki
	desc = "EVENTHIST285059"
	#-#The Jesuits that arrived to Japan in the XVI century were well received. However the daimyo (military chief) Toyotomi Hideyoshi was going to end the religious tolerance. After unifying the country, he started an expansionistic policy, invading Korea. He sent a menacing letter to the Spanish governor of the Philippines demanding their submission to Japan in 1591. Governor Dasmarias sent a peace embassy formed by several Franciscans and leaded by Fray Pedro Bautista in 1593. The embassy was successful, and Hideyoshi allowed them to stay in Kyoto. Their work was fruitful between the oppressed Japanese lower classes, and soon they expanded to Nagasaki and Osaka. But all that changed when a Spanish galleon from Manila in route to Acapulco shipwrecked in the island of Sikoku, loaded with a treasure in luxury merchandise from China, India, and the Philippines. The samurai of Sikoku and Hideyoshi representatives started to dispute over the cargo, but a ship's officer reclaimed its ownership by Spain. To further his demands he showed a map with all the lands owned by Spain to be compared with the size of Japan. He was asked how so many lands could be conquered when in their ships so few soldiers were carried. -We first send the priests- was his imprudent answer. Hideyoshi reacted to this words by ordering the crucifixion of all the Franciscans. Six Spanish and seventeen Japanese Franciscan friars, together with 3 Jesuits thrown in the lot were tortured and crucified. It was only the beginning of the repression, and after the expulsion of the Jesuits in 1613, the country was closed to Europeans for 284 years from 1637, and Christianity eradicated by mass executions. The Philippines governor was in no condition to respond, and so the route of the Manila galleon was changed from the Kuro Siwo current to the Equatorial Counter Current, to protect its cargo.

	date = { day = 6 month = february year = 1597 }

	action_a = {
		name = "ACTIONNAME285059A" #Not very friendly these Japanese
		command = { type = treasury value = -25 }
		command = { type = relation which = NIP value = -100 }
		command = { type = casusbelli which = NIP value = 120 }
	}
}

#(1598-1601) Peace of Vervins
event = {
	id = 285277
	trigger = {
		exists = FRA
		event = 170113 #FRA: Edict of Nantes
		NOT = { war = { country = FRA country = SPA } }
		OR = {
			owned = { province = 407 data = -1 } #Dauphin
			owned = { province = 408 data = -1 } #Lyonnais
			owned = { province = 417 data = -1 } #Vende
			owned = { province = 418 data = -1 } #Poitou
			owned = { province = 419 data = -1 } #Limousin
			owned = { province = 421 data = -1 } #Cvennes
			owned = { province = 423 data = -1 } #Guyenne
			owned = { province = 424 data = -1 } #Gascogne
		}
		OR = {
			event = 170104 #FRA: The Wars of Religion
			event = 170148 #FRA: Surprise de Meaux
			event = 170107 #FRA: Saint Bartholomew's Day Massacre
			event = 170176 #FRA: Saint Bartholomew's Day Massacre - Alternate
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285277" #Peace of Vervins
	desc = "EVENTHIST285277"
	#-#The Peace of Vervins was signed between the representatives of Henri IV of France and Felipe II of Spain on 2 May 1598, at the small town of Vervins. Henry had recently promulgated the Edict of Nantes, on 13 April. This treaty brought the Wars of Religion in France to a practical end. Felipe recognized the formerly Protestant Henri as King of France and withdrew his forces from the French territory they still occupied, depriving the remnants of the Catholic League of their support.

	date = { day = 2 month = may year = 1598 }
	offset = 20
	deathdate = { day = 20 month = october year = 1601 }

	action_a = {
		name = "ACTIONNAME285277A" #Sign the Treaty
		command = { type = cedeprovince which = FRA value = 417 } #Vende
		command = { type = cedeprovince which = FRA value = 418 } #Poitou
		command = { type = cedeprovince which = FRA value = 419 } #Limousin
		command = { type = cedeprovince which = FRA value = 423 } #Guyenne
		command = { type = cedeprovince which = FRA value = 421 } #Cvennes
		command = { type = cedeprovince which = FRA value = 408 } #Lyonnais
		command = { type = cedeprovince which = FRA value = 407 } #Dauphin
		command = { type = cedeprovince which = FRA value = 376 } #Champagne
		command = { type = cedeprovince which = FRA value = 383 } #Picardie
		command = { type = cedeprovince which = FRA value = 384 } #Caux
		command = { type = cedeprovince which = FRA value = 386 } #Nivernais
		command = { type = cedeprovince which = FRA value = 424 } #Gascogne
		command = { type = cedeprovince which = FRA value = 420 } #Auvergne
		command = { type = cedeprovince which = FRA value = 422 } #Languedoc
		command = { type = cedeprovince which = FRA value = 406 } #Provence
		command = { type = badboy value = -7 }
		command = { type = trigger which = 170239 } #FRA: Peace of Vervins
	}
	action_b = {
		name = "ACTIONNAME285277B" #We'll never agree to that!
		command = { type = war which = FRA }
		command = { type = stability value = -1 }
		command = { type = INF which = 417 value = 3000 } #Vende
		command = { type = INF which = 418 value = 3000 } #Poitou
		command = { type = INF which = 419 value = 3000 } #Limousin
		command = { type = INF which = 423 value = 3000 } #Guyenne
		command = { type = INF which = 421 value = 3000 } #Cvennes
		command = { type = INF which = 408 value = 3000 } #Lyonnais
		command = { type = INF which = 407 value = 3000 } #Dauphin
		command = { type = INF which = 424 value = 3000 } #Gascogne
		command = { type = cedeprovince which = FRA value = 417 } #Vende
		command = { type = cedeprovince which = FRA value = 418 } #Poitou
		command = { type = cedeprovince which = FRA value = 419 } #Limousin
		command = { type = cedeprovince which = FRA value = 423 } #Guyenne
		command = { type = cedeprovince which = FRA value = 421 } #Cvennes
		command = { type = cedeprovince which = FRA value = 408 } #Lyonnais
		command = { type = cedeprovince which = FRA value = 407 } #Dauphin
		command = { type = cedeprovince which = FRA value = 424 } #Gascogne
		command = { type = cedeprovince which = FRA value = 420 } #Auvergne
		command = { type = cedeprovince which = FRA value = 422 } #Languedoc
		command = { type = cedeprovince which = FRA value = 406 } #Provence
		command = { type = trigger which = 170240 } #FRA: Failure at Vervins
	}
}

#(1598-1641) Portugal is beyond our reach
event = {
	id = 285261
	trigger = {
		event = 3163 #SPA: The Portuguese Succession
		NOT = {
			event = 3162 #SPA: The Portuguese Crown
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285261" #Portugal is beyond our reach
	desc = "EVENTHIST285261"
	#-#With the death of Philip II, Spain's claim to the Portuguese throne was disregarded by most of Europe.

	date = { day = 12 month = september year = 1598 }
	offset = 5
	deathdate = { day = 29 month = january year = 1641 }

	action_a = {
		name = "ACTIONNAME285261A" #Our claims fall on deaf ears...
		command = { type = removecore which = 441 } #Tago
	}
}

#-----------------------------------------------------------------------------------------------
#"Irish Tercios" Sequence

#(1600-1602) The Spanish landing in Ireland
#by Fodoron
event = {
	id = 285090
	trigger = {
		event = 21000 #ENG: the Irish plantations
		OR = {
			religion = catholic
			religion = counterreform
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285090" #The Spanish landing in Ireland
	desc = "EVENTHIST285090"
	#-#When the Tudor decided to recover control of Ireland they met with stern resistance. The solution applied by Queen Elizabeth I was the establishment of the Plantations, depriving the Irish from their land and giving it to English settlers. When the plantations reached Ulster, Hugh O'Neill, the great Earl of Tyrone rose in rebellion and asked the King of Spain for help. Felipe III considered that it was a good opportunity to tie up English resources and sent a small army under command of Don Juan de Aguila that landed near Cork on October 2, 1601. The landing at the South of the Island when the rebels were at the North, lack of coordination, and lack of Irish experience in pitched battles, contributed to their defeat at the hands of the English army of Lord Mountjoy on January 3, 1602 (December 24, 1601 for the English Julian calendar) at Kinsale. The Spaniards embarked and left Ireland, but Felipe continued supporting the rebels with money. The rebellion was finally suppressed by the English scorched earth strategy, and O'Neill surrendered in March 1603. However the Irish rebellion nearly bankrupted England and contributed to the signing of peace between England and Spain. The Irish did not forget the help received from Spain even if insufficient.

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

	action_a = {
		name = "ACTIONNAME285090A" #Help the Irish Catholics
		command = { type = treasury value = -50 }
		command = { type = relation which = ENG value = -25 }
		command = { type = relation which = LEI value = 25 }
		command = { type = relation which = ULS value = 25 }
		command = { type = relation which = CON value = 25 }
		command = { type = relation which = DES value = 25 }
	}
	action_b = {
		name = "ACTIONNAME285090B" #Do not get involved in Ireland
		command = { type = relation which = ENG value = 25 }
		command = { type = relation which = LEI value = -25 }
		command = { type = relation which = ULS value = -25 }
		command = { type = relation which = CON value = -25 }
		command = { type = relation which = DES value = -25 }
		command = { type = sleepevent which = 285091 } #SPA: The Irish Tercios
	}
}
#(1605-1606) The Irish Tercios
#by Fodoron
event = {
	id = 285091
	trigger = {
		event = 285090 #SPA: The Spanish landing in Ireland
		OR = {
			religion = catholic
			religion = counterreform
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285091" #The Irish Tercios
	desc = "EVENTHIST285091"
	#-#After the Irish rebellion was defeated, many Irishmen left the island and entered the service of Spain, leading to the creation of several Irish Tercios (regiments) that participated in the wars in Netherlands. Their two best commanders were Thomas Preston and Owen Roe O'Neill. Owen Roe (Red) was a nephew of Hugh O'Neill, the great Earl of Tyrone (Ulster) that left Ireland in the Flight of the Earls. He joined the King's army in 1603, when the Irish rebels surrendered, and by 1605 he was already captain. He distinguished himself in many battles, and became famous after his defence of Arras for two months with only 1500 men against 90,000 French soldiers. Thomas Preston was from Meath (Leinster), and entered service with 2,000 Irish soldiers under his command in 1605. He is famous for his defence of Leuven. Both commanders actively recruited Irish soldiers for the Spanish army, and participated in the famous conquest of Breda immortalized by Velazquez. However as good Irish, they were separated by bitter rivalry. After the Irish rebellion of 1641, they both abandoned the service of Spain to join the Irish rebels. Preston was made commander of the Leinster forces and met with mixed results. O'Neill became the commander in chief of the Ulster forces and had great success against the English, until the dissensions between the Confederates paved the way for the Irish defeat and the terrible massacres of Cromwell. Preston would be created Viscount Tara by King Charles II in exile in 1650.

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

	action_a = {
		name = "ACTIONNAME285091A" #Welcome the Irish volunteers
		command = { type = inf which = 379 value = 2000 } #Irish volunteers in Artois
		command = { type = inf which = 380 value = 2000 } #Irish volunteers in Flandern
		command = { type = inf which = 378 value = 2000 } #Irish volunteers in Brabant
		command = { type = inf which = 377 value = 2000 } #Irish volunteers in Luxembourg
		command = { type = wakeleader which = 0127880 } #Thomas Preston (SPA)
		command = { type = wakeleader which = 0127881 } #Owen O'Neill (SPA)
	}
}
#End of "Irish Tercios" Sequence
#-----------------------------------------------------------------------------------------------

#(1605) Cervantes publishes 'Don Quixote' - Flavor
event = {
	id = 5250
	random = no
	country = SPA
	name = "EVENTNAME5250" #Cervantes publishes 'Don Quixote'
	desc = "EVENTHIST5250"
	#-#Miguel de Cervantes was a Spanish novelist playwright and poet the creator of Don Quixote and the most important and celebrated figure in Spanish literature. Don Quixote has been translated in full or in part into more than 60 languages. Editions continue regularly to be printed and critical discussion of the work has proceeded unabated since the 18th century.

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

	action_a = {
		name = "OK"
		command = { type = stability value = 1 }
	}
}

#(1607-1609) The Catholic League
event = {
	id = 3166
	trigger = {
		OR = {
			religion = catholic
			religion = counterreform
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME3192" #The Catholic League
	desc = "EVENTHIST3192"
	#-#The German Catholic states felt threatened by the 1608 creation of the Evangelic Union of their northern Protestant neighbors, following the Donauwerth exclusion from the Empire. Feeling the urge to unite, they regrouped into a Catholic League that same year. The stage was set for the Thirty Years War.

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

	action_a = {
		name = "ACTIONNAME3192A" #Prepare to Join
		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 } #Bayreuth
		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 = {
		name = "ACTIONNAME3192B" #Stay Neutral
		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 } #Bayreuth
		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 }
	}
}

#-----------------------------------------------------------------------------------------------
#"War in Ternate" Sequence

#(1606-1663) Invasion of Ternate (Ternate exists)
#by Fodoron
event = {
	id = 285169
	trigger = {
		owned = { province = 690 data = -1 } #Luzon
		event = 3162 #SPA: The Portuguese Crown
		atwar = no
		exists = TER #Ternate
	}
	random = no
	country = SPA
	name = "EVENTNAME285169" #Invasion of Ternate
	desc = "EVENTHIST285169"
	#-#When Felipe II became also the King of Portugal, orders were given to the military governor of the Philippines to support the Portuguese in the area, specially in the Spice Islands, as the Portuguese had just been expelled from Ternate. In 1606, an expedition led by governor Pedro de Acua captured the island of Ternate, deporting the sultan to Manila. They also militarily occupied Tidore, whose sultan supported Spain as his vassal. The Ternatans sought help from the Dutch Indian company (VOC), starting a war between VOC and Ternate against Spain and Tidore.

	date = { day = 0 month = january year = 1606 }
	offset = 100
	deathdate = { day = 0 month = january year = 1663 }

	action_a = {
		name = "ACTIONNAME285169A" #Conquer Ternate
		command = { type = war which = TER } #Ternate
		command = { type = stability value = 1 }
		command = { type = sleepevent which = 285170 } #SPA: Invasion of Ternate
	}
	action_b = {
		name = "ACTIONNAME285169B" #Not now
		command = { type = vp value = -5 }
	}
}
#(1606-1663) Invasion of Ternate (Ternate in other hands)
#by Fodoron
event = {
	id = 285170
	trigger = {
		owned = { province = 690 data = -1 } #Luzon
		event = 3162 #SPA: The Portuguese Crown
		atwar = no
		NOT = {
			exists = TER #Ternate
			owned = { province = 713 data = POR } #Tindore
			owned = { province = 713 data = -1 } #Tindore
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285169" #Invasion of Ternate
	desc = "EVENTHIST285169"
	#-#When Felipe II became also the King of Portugal, orders were given to the military governor of the Philippines to support the Portuguese in the area, specially in the Spice Islands, as the Portuguese had just been expelled from Ternate. In 1606, an expedition led by governor Pedro de Acua captured the island of Ternate, deporting the sultan to Manila. They also militarily occupied Tidore, whose sultan supported Spain as his vassal. The Ternatans sought help from the Dutch Indian company (VOC), starting a war between VOC and Ternate against Spain and Tidore.

	date = { day = 0 month = january year = 1606 }
	offset = 100
	deathdate = { day = 0 month = january year = 1663 }

	action_a = {
		name = "ACTIONNAME285169A" #Conquer Ternate
		command = { type = sleepevent which = 285169 } #SPA: Invasion of Ternate
		command = { type = addcore which = 713 } #temporal, gives casus belli against owner
	}
	action_b = {
		name = "ACTIONNAME285169B" #Not now
		command = { type = vp value = -5 }
	}
}
#(1606-1663) War in Ternate
#by Fodoron
event = {
	id = 285171
	trigger = {
		owned = { province = 713 data = -1 } #Tindore
		core = { province = 713 data = -1 }
		exists = HOL
		event = 3503 #HOL: Veerinigte Oostindische Companie
	}
	random = no
	country = SPA
	name = "EVENTNAME285171" #War in Ternate
	desc = "EVENTHIST285171"
	#-#For 57 years the Spaniards fought a difficult war in Ternate. The Dutch had sea superiority and the garrisons fought a defensive war often under shortage of food, supplies and ammunitions, that were brought by yearly shipments from Philippines that not always arrived. Despite these difficulties, they held control of Tidore and most of Ternate, although they lost the small islands. Due to the war, no crops could be raised in Ternate.

	date = { day = 0 month = january year = 1606 }
	offset = 100
	deathdate = { day = 0 month = january year = 1663 }

	action_a = {
		name = "ACTIONNAME285171A" #Damn Dutch
		command = { type = province_revoltrisk which = 713 value = 10 } #Tindore
		command = { type = provincetax which = 713 value = -3 }
		command = { type = desertion which = 713 value = 2000 }
	}
}
#(1663) Retreat from Moluccas
#by Fodoron
event = {
	id = 285172
	trigger = {
		core = { province = 713 data = -1 } #Tindore
	}
	random = no
	country = SPA
	name = "EVENTNAME285172" #Retreat from Moluccas
	desc = "EVENTHIST285172"
	#-#After 57 years of difficult fights in Ternate, and once the Portuguese had gone their way, Spain found no reason to continue fighting in the Moluccas. In 1663, Manrique de Lara, governor of the Philippines, gave the order to abandon Ternate and Tidore.

	date = { day = 0 month = january year = 1663 }
	offset = 100
	deathdate = { day = 0 month = january year = 1664 }

	action_a = {
		name = "ACTIONNAME285172A" #Not worth the effort
		command = { type = removecore which = 713 }
		command = { type = provincetax which = 713 value = 3 } #original value
		command = { type = desertion which = 713 value = 2000 }
	}
}
#End of "War in Ternate" Sequence
#-----------------------------------------------------------------------------------------------

#-----------------------------------------------------------------------------------------------
#"Jesuit missions of Paraguay" Sequence

#(1608-1760) Jesuits in Paraguay
#by Fodoron
event = {
	id = 285180
	trigger = {
		owned = { province = 217 data = -1 } #Parana
		NOT = { provincereligion = { province = 217 data = pagan } } #not a TP
		OR = {
			AND = {
				owned = { province = 221 data = -1 } #Corrientes
				NOT = { provincereligion = { province = 221 data = pagan } } #not a TP
			}
			AND = {
				owned = { province = 218 data = -1 } #Neembucu
				NOT = { provincereligion = { province = 218 data = pagan } } #not a TP
			}
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285180" #Jesuits in Paraguay
	desc = "EVENTHIST285180"
	#-#In 1608, by royal charter, the Jesuits were asked to take the task of colonizing and converting the Guarani and Guaycuru Indians in a huge area including Paraguay, Uruguay, North of Argentina and South of Brazil. The Jesuits created a system of missions, called Reductions, because they reduced the dispersion of the natives. About half of the natives joined the Jesuit system. The Jesuits allowed the natives to maintain their culture and language, posession of the land and self-government, in exchange for abandoning polygamy and embracing Christianity and organized work. The system was very successful, and the 60 missions established greatly increased the wealth of the area. However the jesuit system also had enemies in the Indians that rejected any pact with the white men, the hacienda owners with whom the system competed, and the Portuguese slave traders. 23 Jesuits paid with their lives their missionary work, but not one of them was killed by the indians that voluntarily entered the Reductions system.

	date = { day = 0 month = january year = 1608 }
	offset = 100
	deathdate = { day = 0 month = january year = 1760 }

	action_a = {
		name = "ACTIONNAME285180A" #Send the soldiers of Christ
		command = { type = population which = 217 value = 300 } #Parana
		command = { type = population which = 218 value = 300 } #Neembucu
		command = { type = population which = 216 value = 300 } #Artigas
		command = { type = population which = 221 value = 300 } #Corrientes
		command = { type = provincetax which = 217 value = 2 } #Parana
		command = { type = provincetax which = 218 value = 2 } #Neembucu
		command = { type = provincetax which = 216 value = 2 } #Artigas
		command = { type = provincetax which = 221 value = 2 } #Corrientes
	}
	action_b = {
		name = "ACTIONNAME285180B" #They will bring trouble
		command = { type = vp value = -5 }
		command = { type = sleepevent which = 285181 } #SPA: Bandeirantes
	}
}
#(1628-1641) Bandeirantes
#by Fodoron
event = {
	id = 285181
	trigger = {
		event = 285180 #SPA: Jesuits in Paraguay
		event = 3162 #SPA: The Portuguese crown
	}
	random = no
	country = SPA
	name = "EVENTNAME285181" #Bandeirantes
	desc = "EVENTHIST285181"
	#-#The Bandeiras were armed expeditions privately funded by the Portuguese of Brazil to make incursions beyond the Treaty of Tordesillas line. Usually they went into the jungle and enslaved any Indian they could capture. With the union of the crowns of Spain and Portugal, the Bandeirantes started to attack also the Spanish possessions north of the Rio de la Plata, knowing that as an internal problem, the King would be more lenient. When the Dutch disrupted navigation in the coasts of Brazil during and after the 20 years truce with Spain, the slave traffic from Africa to the Brazilian plantations stopped. Suddenly the Bandeiras became much more profitable. The missions that the Jesuits had established in Paraguay had attracted tens of thousands of indians and owned hundreds of thousands of cattle and were an easy target. Between 1628 and 1638 the Bandeirantes destroyed ten missions, killing thousands of indians and taking over 25,000 captives of which only one quarter would reach Sao Paulo alive. The entire region of Guayr was desolated. In 1638 the Superior of the Jesuits, Father Ruiz Montoya, travelled to Spain and submitted 12 petitions to Felipe IV to allow the Indians to be armed with firearms for their defense. Concerns about the safety of Rio de la Plata and Peru if Paraguay fell to the Portuguese, finally moved Felipe to agree. The military instruction of the Indians under three Jesuit ex-soldiers, and 11 Spaniards from Buenos Aires started that same year, and a Bandeirada was defeated at Caazapaguaz, but upon their surrender the Bandeirantes were allowed to retire. Their return to Sao Paulo coincided with the arrival of envoys with royal charters and Papal Bulls against the enslaving of Indians and caused much indignation. The municipal chamber (city council) expelled the Jesuits of Sao Paulo and organized an expedition of 450 Bandeirantes and 2700 Indians under command of Manuel Pires. Father Pedro Romero, the Jesuit commander, had 4200 Guaranies and 300 arquebuses. The Bandeirantes were coming down the River Uruguay and were surprised at the river bend at Mboror on March 11, 1641. The fight was favorable to the Indians, who had also fortified both shores. The Bandeirantes retreated and dug in, and tried to surrender, but the Indians had had enough, and for days they pursued the fleeing Bandeirantes through the jungle. Few made it back to Sao Paulo. Slowly, the destroyed missions were rebuilt.

	date = { day = 0 month = january year = 1628 }
	offset = 100
	deathdate = { day = 0 month = january year = 1641 }

	action_a = {
		name = "ACTIONNAME285181A" #Give permission to arm the indians
		command = { type = population which = 217 value = -200 } #Parana
		command = { type = population which = 216 value = -200 } #Artigas
		command = { type = provincetax which = 217 value = -1 } #Parana
		command = { type = provincetax which = 216 value = -1 } #Artigas
		command = { type = INF which = 217 value = 3000 } #Parana
	}
	action_b = {
		name = "ACTIONNAME285181B" #No indians with guns
		command = { type = population which = 217 value = -400 } #Parana
		command = { type = population which = 216 value = -400 } #Artigas
		command = { type = provincetax which = 217 value = -2 } #Parana
		command = { type = provincetax which = 216 value = -2 } #Artigas
		command = { type = sleepevent which = 285184 } #SPA: The Jesuit Republic
	}
}
#(1680-1750) The colony of Sacramento
#by Fodoron
event = {
	id = 285182
	trigger = {
		owned = { province = 217 data = -1 } #Parana
		owned = { province = 213 data = POR } #Curitiba (Tordesillas line trespassed)
	}
	random = no
	country = SPA
	name = "EVENTNAME285182" #The colony of Sacramento
	desc = "EVENTHIST285182"
	#-#The Portuguese had little respect for the Treaty of Tordesillas, and in 1680 the Governor of Rio, Manuel Lobo established the Nova Colnia del Santssimo Sacramento just in front of Buenos Aires at the Northern shore of the Rio de la Plata in what is today Uruguay. This fragrant intrusion in the Spanish area was not kindly taken, specially since Sacramento engaged in a most damaging contraband against the Spanish monopoly through Lima. The Governor of Buenos Aires, Jos de Garro quickly seized the colony with the help of Guarani Indians and captured Lobo, but the colony was returned the next year by the Provisional Treaty of Lisbon of 1681. When Portugal entered the War of Spanish Succesion in 1705, the Governor of Buenos Aires, Valdez de Incln, captured again Sacramento with Guarani soldiers, but it had to be returned to Portugal once more under the Peace of Utrecht in 1715. In 1724 the Portuguese started to expand in the area, leading the Governor of Buenos Aires, Mauricio de Zabala, to found San Felipe y Santiago de Montevideo in 1726, strongly increasing Spanish control over the Banda Oriental region, or eastern shore of the Rio de la Plata.

	date = { day = 0 month = january year = 1680 }
	offset = 100
	deathdate = { day = 0 month = january year = 1750 }

	action_a = {
		name = "ACTIONNAME285182A" #Found Montevideo
		command = { type = population which = 215 value = 200 } #Uruguay
		command = { type = casusbelli which = POR value = 72 }
	}
}
#(1750) Treaty of Madrid
#by Fodoron
event = {
	id = 285183
	trigger = {
		owned = { province = 217 data = -1 } #Parana
		owned = { province = 213 data = POR } #Curitiba (Tordesillas line trespassed)
	}
	random = no
	country = SPA
	name = "EVENTNAME285183" #Treaty of Madrid
	desc = "EVENTHIST285183"
	#-#After the Anglo-Spanish war of 1739-1748, known in England as War of Jenkin's ear, and in Spain as Guerra del Asiento, the Spanish King feared an English attack in the Rio de la Plata possessions. With a desire to solve the confrontation with Portugal over Sacramento, and on the advice of his Portuguese wife, Barbara de Bragana, he signed in 1750 an agreement to hand over all the lands East of the river Uruguay and North of the river Negro to Portugal in exchange for the colony of Sacramento. The vast region that was to become Portuguese was known as Seven Villages, for the seven Jesuit Reductions that exploited the area. The Jesuit Order obeyed, and the Indians were told to abandon their lands or become slaves to the Portuguese.

	date = { day = 11 month = january year = 1750 }

	action_a = {
		name = "ACTIONNAME285183A" #Sign the agreement
		command = { type = population which = 216 value = -200 } #Artigas
		command = { type = provincetax which = 216 value = -1 } #Artigas
		command = { type = relation which = POR value = 100 }
	}
	action_b = {
		name = "ACTIONNAME285183B" #It is a foolish pact
		command = { type = relation which = POR value = -50 }
		command = { type = sleepevent which = 285184 } #SPA: The Jesuit Republic
	}
}
#(1752-1756) The Jesuit Republic
#by Fodoron
event = {
	id = 285184
	trigger = {
		event = 285183 #SPA: Treaty of Madrid
	}
	random = no
	country = SPA
	name = "EVENTNAME285184" #The Jesuit Republic
	desc = "EVENTHIST285184"
	#-#When by the Treaty of Madrid, the Guarani Indians were told by their Jesuit fathers to evacuate their lands or become Portuguese slaves, they refused and took the arms to resist. They were leaded by Jos Sep Tiaray. Against them a Spanish army under Gaspar de Monive, Marquis of Valdelirios, and a Portuguese army under Gomes Freire de Andrade. For two years both armies conducted an inefectual war against the guerrilla tactics of the Indians. Finally in 1756, both armies joined forces, and after the killing of Jos Sep, they slaughtered 1300 Indians at Caibat, suffering four casualties. Soon they took control of the region with a final death toll of about 6000 Indians. These events are narrated in the movie ''The Mission.'' After the campaign, Freire and Valdelirios, wrote letters blaming the Jesuit order for instigating the Indians, and arrested 11 fathers. The matters were investigated by the new Governor of Buenos Aires, Pedro de Ceballos, and by the Jesuit order, whose General Ignazio Visconti had given orders, under penalty of mortal sin, expulsion, and excommunication, of colaborating with the authorities. The investigations did not find any evidence to substantiate the accusations, and the case was superseded to the indignation of Freire and the Marquis of Pombal, Masons and enemies of the order. The Marquis of Pombal took matters into his own hands and wrote a pamphlet entitled ''Brief account of the Jesuit Republic and its war against Spain and Portugal.'' These events undermined the reputation of the Jesuits in Europe, laying the ground for their expulsion.

	date = { day = 0 month = january year = 1752 }
	offset = 100
	deathdate = { day = 0 month = january year = 1756 }

	action_a = {
		name = "ACTIONNAME285184A" #The Indians refuse to abandon their lands
		command = { type = revolt which = 216 } #Artigas
		command = { type = revolt which = 217 } #Parana
		command = { type = revolt which = 218 } #Neembucu
	}
}
#(1767-1777) The ruin of the Reductions of Paraguay
#by Fodoron
event = {
	id = 285185
	trigger = {
		event = 285183 #SPA: Treaty of Madrid
		event = 285072 #SPA: The Esquilache riots
		OR = {
			owned = { province = 221 data = -1 } #Corrientes
			owned = { province = 218 data = -1 } #Neembucu
			owned = { province = 217 data = -1 } #Parana
			owned = { province = 216 data = -1 } #Artigas
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285185" #The ruin of the Reductions of Paraguay
	desc = "EVENTHIST285185"
	#-#After the violent expulsion of the Guarani, in 1756, the Portuguese started occupaying the area awarded to them by the Treaty of Madrid, but they never surrendered Colonia de Sacramento to the Spaniards. When Fernando VI died in 1759, the new King, Carlos III, immediately rejected the Treaty as very detrimental for Spanish interests, as Spain had surrendered a big territory for a small settlement that was never paid. In 1761, he obtained from Portugal the annulment of the Treaty. But the next year Spain was forced to enter the Seven Years War in support of France against England. Since Portugal was allied to England, Pedro Ceballos once more conquered Colonia de Sacramento. However since France and Spain lost the war, at the Treaty of Paris in 1763, for the third time Sacramento had to be returned to Portugal, although the area of Seven Villages was recovered. The Indians once more started to return to their lands, but the prosperity of the region had been greatly affected. The final straw was the expulsion of the Jesuits in 1767. Although an attempt was made to preserve their system, the Crown administrators proved less capable and more corrupt than the Jesuits, and had troubles with the Indians, leading to the ruin of the former Jesuit Reductions system in Paraguay.

	date = { day = 0 month = january year = 1767 }
	offset = 100
	deathdate = { day = 0 month = january year = 1777 }

	action_a = {
		name = "ACTIONNAME285185A" #A pity
		command = { type = provincetax which = 217 value = -1 } #Parana
		command = { type = provincetax which = 218 value = -1 } #Neembucu
		command = { type = provincetax which = 216 value = -1 } #Artigas
		command = { type = provincetax which = 221 value = -1 } #Corrientes
		command = { type = addcore which = 216 } #Artigas
		command = { type = addcore which = 217 } #Parana
		command = { type = addcore which = 218 } #Neembucu
	}
}
#(1777) An exchange between two continents
#by Fodoron
event = {
	id = 285186 #triggered by POR_260017 A
	random = no
	country = SPA
	name = "EVENTNAME285186" #An exchange between two continents
	desc = "EVENTHIST285186"
	#-#The return to the Status Quo Ante situation in the region between Rio de la Plata and Brazil imposed by the Treaty of Paris of 1763 was unsatisfactory to both parts. Colonia de Sacramento continuous contraband was a thorn in Spanish colonial monopoly, and Portugal ambitioned the San Pedro region, not recognizing the Spanish right to it. Spain blockaded Sacramento to reduce contraband, further infuriating the Luso-Brazilians. In 1767 they attacked Rio Grande de San Pedro, expelling the Spaniards from the area. Tensions mounted for several years as the Portuguese established numerous ranches in the seized area with stock stolen from the mission estancias. This lead to military build up in the region. But while Spain was trying to reach a diplomatic agreement, the Marquis of Pombal was betting on a military victory. While negotiations were being conducted in 1776, the Portuguese attacked and further pushed the Spaniards South at the disputed border. This deception was the last straw for Spain. A great fleet was assembled, formed by 116 ships and 19,000 men, under command of Pedro Ceballos. To better cope with Portuguese ambitions, the Viceroyalty of La Plata was created, and Pedro Ceballos named first Viceroy. The Ceballos campaign of 1777 was a complete success. He soon conquered the island of Santa Catalina and Colonia de Sacramento, where the Portuguese bastion was leveled. He was going to continue with the conquest of San Pedro when orders arrived from Madrid to stop the offensive. With the death of Jos I of Portugal, his daughter Mara had fired the Marquis of Pombal, and desired peace with her uncle, King Carlos III of Spain. The Spanish prime minister, Floridablanca, also wanted a free hand to take advantage of the American Revolution, so a peace treaty was signed at San Ildefonso on October 1, 1777, and confirmed in the Treaty of El Pardo in 1778. Portugal ceded Colonia del Sacramento to Spain, but retained Santa Catalina and San Pedro in exchange for the African island of Fernando Po (now Bioko) and full commercial rights in the African coast between the Niger and Ogoue rivers. Furthermore, for the first time since the separation of Portugal, relations between the Iberians became excellent until Napoleon interfered.

	action_a = {
		name = "ACTIONNAME285186A" #Sign the agreement
		command = { type = cedeprovince which = POR value = 212 } #Araxa
		command = { type = cedeprovince which = POR value = 213 } #Curitiba
		command = { type = cedeprovince which = POR value = 214 } #Cangucu
		command = { type = relation which = POR value = 100 }
		command = { type = addcore which = 215 } #Uruguay
	}
	action_b = {
		name = "ACTIONNAME285186B" #Reject the agreement
		command = { type = cedeprovince which = POR value = 816 } #Fernando Po
		command = { type = relation which = POR value = -100 }
		command = { type = war which = POR }
		command = { type = trigger which = 260018 } #POR: Spain refuses a peaceful solution over Brazil-La Plata
	}
}
#(1777) Portugal refuses a peaceful solution over Brazil-La Plata
#by Fodoron
event = {
	id = 285187 #triggered by POR_260017 B
	random = no
	country = SPA
	name = "EVENTNAME285187" #Portugal refuses a peaceful solution over Brazil-La Plata
	desc = "EVENTHIST285187"
	#-#The return to the Status Quo Ante situation in the region between Rio de la Plata and Brazil imposed by the Treaty of Paris of 1763 was unsatisfactory to both parts. Colonia de Sacramento continuous contraband was a thorn in Spanish colonial monopoly, and Portugal ambitioned the San Pedro region, not recognizing the Spanish right to it. Spain blockaded Sacramento to reduce contraband, further infuriating the Luso-Brazilians. In 1767 they attacked Rio Grande de San Pedro, expelling the Spaniards from the area. Tensions mounted for several years as the Portuguese established numerous ranches in the seized area with stock stolen from the mission estancias. This lead to military build up in the region. But while Spain was trying to reach a diplomatic agreement, the Marquis of Pombal was betting on a military victory. While negotiations were being conducted in 1776, the Portuguese attacked and further pushed the Spaniards South at the disputed border. The deception was the last straw for Spain. A great fleet was assembled, formed by 116 ships and 19,000 men, under command of Pedro Ceballos. To better cope with Portuguese ambitions, the Viceroyalty of La Plata was created, and Pedro Ceballos named first Viceroy. The Ceballos campaign of 1777 was a complete success. He soon conquered the island of Santa Catalina and Colonia de Sacramento, where the Portuguese bastion was leveled. He was going to continue with the conquest of San Pedro when orders arrived from Madrid to stop the offensive. With the death of Jos I of Portugal, his daughter Mara had fired the Marquis of Pombal, and desired peace with her uncle, King Carlos III of Spain. The Spanish prime minister, Floridablanca, also wanted a free hand to take advantage of the American revolution, so a peace treaty was signed at San Ildefonso on October 1, 1777, and confirmed in the Treaty of El Pardo in 1778. But this time Portugal has refused a peaceful solution. Let's retake what it is ours by force.

	action_a = {
		name = "ACTIONNAME285187A" #Continue military operations in the region
		command = { type = INF which = 223 value = 10000 } #Aires
	}
}
#End of "Jesuit missions of Paraguay" Sequence
#-----------------------------------------------------------------------------------------------

#-----------------------------------------------------------------------------------------------
#"Duke of Osuna" Sequence

#(1616-1617) the private war of the Duke of Osuna
#by Fodoron
event = {
	id = 285088
	trigger = {
		owned = { province = 393 data = -1 } #Napoli
		exists = VEN
	}
	random = no
	country = SPA
	name = "EVENTNAME285088" #The private war of the Duke of Osuna
	desc = "EVENTHIST285088"
	#-#Don Pedro Tllez Girn, third Duke of Osuna, was married to a granddaughter of Hernando Corts. He was made Viceroy of Sicily in 1606, after good military services in Flanders. He was in this post for 10 years, winning the appreciation of the Sicilians for ending the reign of the bandits in the island, and creating a very efficient naval squadron that halted the attacks by Ottoman and Barbary coast pirates, assaulting in several occasions their nests. His protegee, the immortal writer Francisco de Quevedo, acted as his agent in the court of Madrid, and as his spy in Italy. In 1616 he was named Viceroy of Naples. By then, his naval squadron, partly financed from his own money and partly from the corso, and commanded by Francisco de Ribera was extremely efficient, as demonstrated by defeating a much larger Ottoman fleet at the battle of Cape Khelidonia in Antalya. This battle is remembered as the first clash between a fleet of only galleons (Ribera's 6 warships) against a fleet of only galleys (the Ottoman's 55 galleys). In total Osuna had at his service 20 galleys, 20 galleons and 30 smaller ships, that did not cost Spain a single ducat. The previous year, Venice had started the war of Gradisca, also known as Uskok war, against the Austrian Habsburgs, and was also supporting with troops the attempt of the Duke of Savoy at seizing the Marquisate of Mantua and Montferrat from the Gonzaga, allies of Spain. Don Pedro de Toledo, Marquis of Villafranca and Viceroy of Milan, defeated Charles Emmanuel of Savoy with the help of Osuna and the peace of January 1617 restored the original situation, but Osuna wanted to punish Venice for her anti-Spanish stance, and requested from the King of Spain permission to send his naval squadron to the Adriatic. In December 1616, Felipe III authorised the action on the condition of secrecy, and the flag displayed was Osuna's personal flag. During the 1617 season, Osuna's fleet plundered the Venetian traffic and raided the islands in the Adriatic. The Venetians, unable to stop him, loudly protested in Madrid, but although the King publicly repudiated the Viceroy's acts, he did nothing to end the attacks. With the end of the season, the fleet returned to Naples.

	date = { day = 12 month = november year = 1616 }
	offset = 60
	deathdate = { day = 29 month = february year = 1617 }

	action_a = {
		name = "ACTIONNAME285088A" #Authorise covert operations against Venice
		command = { type = galleys which = 393 value = 10 } #Napoli
		command = { type = warships which = 393 value = 5 } #Napoli
		command = { type = relation which = VEN value = -50 }
		command = { type = relation which = HAB value = 25 }
		command = { type = casusbelli which = VEN value = 24 } #from VEN behavior
		command = { type = MIL which = 1 value = 24 }
	}
	action_b = {
		name = "ACTIONNAME285088B" #Forbid any attacks on Venice
		command = { type = relation which = VEN value = 25 }
		command = { type = sleepevent which = 17010 } #VEN: The Spanish conspiracy
		command = { type = sleepevent which = 285089 } #SPA: The fall of Osuna
	}
}
#(1620) the fall of Osuna
#by Fodoron
event = {
	id = 285089
	trigger = { event = 285088 } #SPA: the private war of the Duke of Osuna
	random = no
	country = SPA
	name = "EVENTNAME285089" #The fall of Osuna
	desc = "EVENTHIST285089"
	#-#In 1618, Osuna was accused of being behind an attempt of overthrowing the Venetian government. Three hundred French and Spaniards at the service of Venice were abruptly executed without explanation, and a rumor started that the Spaniards were trying to take over the Republic. A hunt for foreigners overtook the city, and Quevedo narrowly escaped disguised as a beggar. The Spanish ambassador, Alonso de la Cueva, Marquis of Bedmar, had to leave Venice. Whether the conspiracy was true or an invention of the Council of Ten, the feared security agency of Venice, is still debated, as no convincing evidence was produced. In any case the star of Osuna was declining, and was going to drag Quevedo with him. His political enemies in Naples recruited the help of St. Lawrence of Brindisi, who spoke to the King of Spain against him, and caused Osuna to lose the royal favor. When he was substituted and recalled to Madrid in March 1620, he obeyed. He was then accused of many charges, some of them ridiculous for a Great of Spain, and his vigorous defence had a good chance of having his charges dismissed if not being reinstated as Viceroy, when Felipe III died. The new government of Felipe IV prosecuted the followers of previous minister Lerma, and Osuna died in confinement in September 1624 without having been proven guilty of any crime. Francisco de Quevedo also suffered from prison and exile for his relation with Osuna, but he never abandoned him, and wrote many warm verses about his achievements, including his epitaph. It was not long before Naples and Sicily were again infested by Barbary coast pirates.

	date = { day = 28 month = march year = 1620 }

	action_a = {
		name = "ACTIONNAME285089A" #End his Viceroyalty
		command = { type = relation which = VEN value = 25 }
		command = { type = MIL which = -2 value = 12 }
	}
	action_b = {
		name = "ACTIONNAME285089B" #Reinstate him as Viceroy
		command = { type = relation which = VEN value = -25 }
	}
}
#End of "Duke of Osuna" Sequence
#-----------------------------------------------------------------------------------------------

#(1621-1641) State Bankruptcy
event = {
	id = 3164
	trigger = {
		OR = {
			owned = { province = 24 data = -1 } #Jalisco
			owned = { province = 27 data = -1 } #Zacatecas
			owned = { province = 160 data = -1 } #Bogota
		}
		OR = {
			owned = { province = 25 data = -1 } #Saltillo
			owned = { province = 162 data = -1 } #Cali
			owned = { province = 170 data = -1 } #Arequipa
		}
		OR = {
			owned = { province = 26 data = -1 } #Michoacan
			owned = { province = 194 data = -1 } #Potosi
			owned = { province = 169 data = -1 } #Cuzco
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME3164" #State Bankruptcy
	desc = "EVENTHIST3164"
	#-#In 1596, a couple of years after the disastrous defeat of the Armada, Philip II were again forced to declare the country bankrupt. Spain had for many years undercut its tax base and what was worse, had no control of the price-fluctuations from the inflow of American silver and gold. It was impossible for the Spanish minister of finance to forecast any repayments as all costs fluctuated volatile. The spending was based on the planned budget, but the inflow was irregular at best which made Spain spend more than it actually had, thus the Great Bankruptcies of 1557 and 1596.

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

	action_a = {
		name = "ACTIONNAME3164A" #Declare State Bankruptcy
		command = { type = treasury value = -1000 }
		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 }
	}
}

#(1621) Olivares
event = {
	id = 3711
	random = no
	country = SPA
	name = "EVENTNAME3711" #Olivares
	desc = "EVENTHIST3711"
	#-#The Duke of Olivares led the Spanish government between 1621 and 1643, under King Philip IV (1621-1665) whom he was enjoying the favor. He was devious and cunning leader, he involved Spain in the Thirty Years War alongside the Imperials and had the war with Holland renewed. This proved disastrous and precipitated Spanish decline, with secession of both Catalonia (reunited 1652) and Portugal in 1640. Under his governments, poetry, literature (Calderon) and painting (El Greco, Velasquez, and Murillo) prospered and Spanish modes and customs spread across Europe.

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

	action_a = {
		name = "ACTIONNAME3711A" #An Excellent Minister!
		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 }
	}
}

#(1621-1626) Olivares Invests in the Fleet
#by sturmvogel
event = {
	id = 285231
	random = no
	country = SPA
	name = "EVENTNAME285231" #Olivares Invests in the Fleet
	desc = "EVENTHIST285231"
	#-#The impending end of the Twelve Year's Truce with the Dutch meant that more attacks could be anticipated against Spanish colonies and even the treasure fleet. The royal favorite Olivares therefore decided to reinvigorate the long-neglected navy to beat off any such attacks and even possibly to launch equivalent raids against Protestant colonies and fleets. He decided upon a general policy to return the favor to the Dutch that the Spanish had so long enjoyed by destroying the Dutch fishing fleets and attacking Dutch shipping by commissioning privateers, primarily from the port of Dunquerque in Flanders. While the new ships were moderately successful, the ''guerre de course'' was spectacularly successful. Records are fragmentary, but between 1629 and 1638 Dunkirker privateers averaged almost 200 Dutch ships captured each year.

	date = { day = 2 month = april year = 1621 }
	offset = 180
	deathdate = { day = 28 month = december year = 1626 }

	action_a = {
		name = "ACTIONNAME285231A" #Let us invest in the fleet
		command = { type = warships which = 380 value = 5 } #Flandern
		command = { type = warships which = 431 value = 5 } #Cantabria
		command = { type = domestic which = land value = -2 }
		command = { type = treasury value = -100 }
	}
	action_b = {
		name = "ACTIONNAME285231B" #What foolishness!
		command = { type = land value = 200 }
	}
}

#(1625) Expedition to Formosa
#by Fodoron
event = {
	id = 285173
	random = no
	country = SPA
	name = "EVENTNAME285173" #Expedition to Formosa
	desc = "EVENTHIST285173"
	#-#Already in the last decade of the 16th century, Spain had become interested in Formosa (Taiwan). When Japanese ruler Hideyoshi menaced with an invasion of the Philippines, Formosa was considered as a defensive position, and also as an advanced base for commerce with China. The first expedition was sent in 1593, but it wrecked. Dutch presence in the island, and piracy, moved the governor of Philippines to send another expedition under command of Antonio Carreo Valds in 1626. They founded two forts at Tamsui and Keelung in the Northern part of the island. But their missionary and military work came to an end when the new governor of Philippines decided, in 1635, to stop supporting the colony. The governor of Formosa, Gonzalo Portillo, decided to stay despite lack of support, but diseases and confrontations with natives reduced the size of the colony, and in 1638 Tamsui had to be abandoned. The Dutch governor, Paulus Traudenius, conscious of their weakness, showed up with an army at Keelung in 1642, and the remaining Spaniards and Philippinos agreed to leave.

	date = { day = 7 month = may year = 1625 }

	action_a = {
		name = "ACTIONNAME285173A" #Interesting idea
		command = { type = colonists value = 1 }
		command = { type = missionaries value = 1 }
	}
}

#-----------------------------------------------------------------------------------------------
#The Union of Arms Sequence
#by sturmvogel

#(1625-1649) The Union of Arms
event = {
	id = 285224
	random = no
	country = SPA
	name = "EVENTNAME285224" #The Union of Arms
	desc = "EVENTHIST285224"
	#-#From the outset of the formation of Spain, Castile was to shoulder the principal burden of the Crown's finances. This in large part was due to the mistrusting nature of the other kingdoms of the monarchy, who were keen to protect their traditional customs and privileges. The other kingdoms had legitimate fears that the Castilian dominated government wished to abolish their traditional laws leading the to be wary of providing financial assistance to the Crown's schemes. By the time of Flipe IV, the Castilian economy was in dire straits and was unable to provide the money and manpower so badly needed by the Crown. Conde Duque Olivares envisioned a strong monarchy that would abolish provincial laws and liberties to establish a unified state. Olivares recognized that such a state could not be achieved in a day but believed small steps should be taken to set the process in motion. In 1624, he proposed a sort of military cooperation between the different provinces, by which the defense of the Spanish Empire would be spread equally amongst the kingdoms. Unfortunately, the Cortes of Aragon, Valencia, and Catalonia, held in the spring of 1626 were even more unenthusiastic about the scheme that Olivares had feared. The Catalans saw the proposal as yet another move in the long standing Castilian conspiracy to steal their liberties. Olivares's scheme was not without small success, as although they rejected his military proposal, the Cortes of Aragon and Valencia were convinced to make annual financial contributions to the Crown.

	date = { day = 1 month = october year = 1625 }
	offset = 400
	deathdate = { day = 1 month = january year = 1649 }

	action_a = {
		name = "ACTIONNAME285224A" #Implement it!
		command = { type = domestic which = CENTRALIZATION value = 1 }
		command = { type = stability value = -1 }
		command = { type = provincetax which = 437 value = 1 } #Valencia
		command = { type = provincetax which = 430 value = 1 } #Aragon
		command = { type = provincetax which = 428 value = 1 } #Navarre
		#Eternal RR - wad
		command = { type = province_revoltrisk which = 434 value = 1 } #Oporto
		command = { type = province_revoltrisk which = 441 value = 1 } #Tago
		command = { type = province_revoltrisk which = 442 value = 1 } #Algarve
		command = { type = province_revoltrisk which = 429 value = 1 } #Catalonia
		command = { type = province_revoltrisk which = 427 value = 1 } #Gerona
		command = { type = province_revoltrisk which = 426 value = 1 } #Rousillon
		command = { type = setflag which = [Olivares_UoA] }
	}
	action_b = {
		name = "ACTIONNAME285224B" #Do nothing
		command = { }
	}
}
#End of The Union of Arms Sequence
#-----------------------------------------------------------------------------------------------

#(1627) Nevers succeeds to Mantua
#by Aylo1
event = {
	id = 285273 #triggered by MAN_220031 A
	random = no
	country = SPA
	name = "EVENTNAME285273" #Guastalla Denied
	desc = "EVENTHIST285273"
	#-#Since the death of Vicente II, rival Duques' - Carlo I di Nevers and Ferrante II di Guastalla claimed his patrimony. Fernando II of Austria backed Guastalla and another contender Duque Carlo Emanauele I de Saboya (who wanted Montferrat). To preserve Habsburg hegemony, Felipe IV listened to El Conde-Duque Olivares and helped his cousin capture Montferrat and Mantua. Arrival of the French forced de Saboya to withdraw (Peace of Susa Apr 1630), while developments in Germany induced the Habsburgs to sign the Peace of Regensburg (Oct 1630) - reducing Habsburg forces in Italy. Olivares called it 'little better than a surrender'. Yet France didn't accept the terms and continued warring in Italy until the Treaty of Cherasco (1631) satisfied all parties.

	action_a = {
		name = "ACTIONNAME285273A" #This cannot stand
		command = { type = casusbelli which = FRA value = 36 }
		command = { type = casusbelli which = MAN value = 36 }
		command = { type = casusbelli which = VEN value = 36 }
		command = { type = casusbelli which = PAP value = 36 }
		command = { type = relation which = MAN value = -150 }
		command = { type = relation which = FRA value = -150 }
		command = { type = relation which = VEN value = -100 }
		command = { type = relation which = PAP value = -100 }
		command = { type = relation which = HAB value = 100 }
		command = { type = relation which = SAV value = 100 }
		command = { type = alliance which = HAB }
		command = { type = alliance which = SAV }
		command = { type = stability value = 1 }
	}
}
#(1631) Treaty of Cherasco
#by Aylo1
event = {
	id = 285274 #triggered by HAB_179120
	random = no
	country = SPA
	name = "EVENTNAME179120" #Treaty of Cherasco (1631)
	desc = "EVENTHIST179120"
	#-#After Habsburg troops sacked Mantua (1629) and Savoyard troops occupied Montferrato, French intervention neutralized Savoy at Susa (Apr 1630). Unfavourable terms for France in the Peace of Regensburg (Oct 1630) prolonged the war, but developments in Germany helped restore peace at Cherasco (6 April 1631). Gonzagas's testimony was revised whereby Mayenne's father, Herzog von Nevers received Mantua. Guastalla gained lands Luzzara and Reggiolo whilst Savoy got parts of Montferrat. France renounced all Italian conquests for territories in the Piedmont. The Habsburgs retained their Italian hegemony but at a reduced military presence.

	action_a = {
		name = "OK"
		command = { type = independence which = MAN } #in case
		command = { type = relation which = MAN value = -25 }
		command = { type = relation which = FRA value = -25 }
		command = { type = relation which = VEN value = -25 }
		command = { type = relation which = PAP value = -25 }
		command = { type = relation which = HAB value = 25 } #already high
		command = { type = relation which = SAV value = 25 }
		command = { type = desertion which = 389 value = 5000 } #Lombardia
		command = { type = stability value = 2 }
		command = { type = trigger which = 170226 } #FRA: Treaty of Cherasco
	}
}
#(1631) Treaty of Cherasco - Ahistorical
#by Aylo1
event = {
	id = 285275
	trigger = {
		event = 220031 #MAN: Succession of Vincenzo II
		event = 170225 #FRA: Nevers Denied
		NOT = {
			war = { country = HAB country = FRA }
			war = { country = SPA country = FRA }
		}
		NOT = {
			owned = { province = 390 data = FRA } #Mantua
			control = { province = 390 data = FRA } #Mantua
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME179120" #Treaty of Cherasco (1631)
	desc = "EVENTHIST285275"
	#-#After Imperial troops sacked Mantua (1629) and Savoy occupied Montferrato, French intervention ended Savoyard ambitions at Susa (Apr 1630). Although preliminary peace was achieved at Regensburg (Oct 1630), France continued to interfere. Fortunately a timely rebellion of French Huguenots under Enrique - Duque di Rohan (funded by Spanish gold) succeeded in drawing Richelieu's attentions from Italy, allowing Habsburg forces to retake Mantua and dictate the Treaty of Cherasco (1631). Gonzaga-Nevers was expelled from Italy whilst the senior Gonzaga heiress Maria now wed Guastalla's heir - who became the new Herzog von Mantua and vassal of the Emperador. Montferrat was partitioned between Savoy and Spain, thereby securing the southern frontier shortly before the incursion of Gustavus II Adolphus in Germany.

	date = { day = 6 month = april year = 1631 }
	offset = 10
	deathdate = { day = 19 month = june year = 1631 } #conflicting dates

	action_a = {
		name = "SPLENDID"
		command = { type = independence which = MAN } #in case
		command = { type = relation which = HAB value = 50 }
		command = { type = relation which = MAN value = 25 }
		command = { type = relation which = SAV value = 25 }
		command = { type = relation which = FRA value = -100 }
		command = { type = relation which = VEN value = -25 }
		command = { type = relation which = PAP value = -25 }
		command = { type = treasury value = -75 } #fund Huguenots
		command = { type = stability value = 2 }
		command = { type = trigger which = 179121 } #HAB: Treaty of Cherasco
	}
}

#(1633) Military and Naval Reforms of Felipe IV
#by sturmvogel
event = {
	id = 285230
	random = no
	country = SPA
	name = "EVENTNAME285230" #The Military and Naval Reforms of Felipe IV
	desc = "EVENTHIST285230"
	#-#Humiliated by their failures during the War of the Mantuan Succession, Felipe IV and his favorite Olivares laid down new ordenazas (regulations) for both the army and the navy to increase their effectiveness and to make both types of forces easier to raise and sustain. It is hard to say exactly how effective these were, but it is hard to deny that they didn't make some contribution to the Spanish victories in Southern Germany the following year and to the ability of the Spanish to raise enormous fleets for action against the French and Dutch later in the decade.

	date = { day = 1 month = february year = 1633 }
	offset = 180
	deathdate = { day = 28 month = december year = 1633 }

	action_a = {
		name = "ACTIONNAME285230A" #Issue the regulations
		command = { type = naval value = 500 }
		command = { type = land value = 500 }
	}
}

#(1634) Margaret of Savoy -I-
event = {
	id = 285299
	trigger = {
		OR = {
			event = 260091 #POR: Filipe II's Claim to the Throne - alternate
			event = 260087 #POR: Filipe I in Lisbon
		}
		exists = POR
	}
	random = no
	country = SPA
	name = "EVENTNAME285299" #Margaret of Savoy
	desc = "EVENTHIST285299"
	#-#Olivares believed that Catalonia and Portugal were the two wealthiest States on the peninsula and decided that the two must be induced to play a part commensurate with their presumed resources. He decided to appoint Princess Margaret of Savoy, as Governess of Portugal and instructed her to obtain an annual levy of 500,000 cruzados via new taxes. Margaret's appointment was to serve a double role, as her presence would silence Portuguese complaints of royal neglect.

	date = { day = 1 month = january year = 1634 }
	offset = 50
	deathdate = { day = 1 month = december year = 1634 }

	action_a = {
		name = "ACTIONNAME285299A" #Appoint her Governess of Portugal
		command = { type = relation which = POR value = 50 }
		command = { type = treasury value = -50 }
		command = { type = trigger which = 260158 } #POR: Margaret of Savoy
		command = { type = sleepevent which = 285301 } #SPA: Margaret of Savoy -II-
	}
	action_b = {
		name = "ACTIONNAME285299B" #We can raise taxes from Madrid!
		command = { type = relation which = POR value = -25 }
		command = { type = trigger which = 260159 } #POR: Castile wants more money
		command = { type = sleepevent which = 285301 } #SPA: Margaret of Savoy -II-
	}
	action_c = {
		name = "ACTIONNAME285299C" #We've no need of funds from Portugal
		command = { type = sleepevent which = 285301 } #SPA: Margaret of Savoy -II-
	}
}
#(1634) Margaret of Savoy - alternate
event = {
	id = 285301
	trigger = {
		OR = {
			event = 260091 #POR: Filipe II's Claim to the Throne - alternate
			event = 260087 #POR: Filipe I in Lisbon
		}
		OR = {
			owned = { province = 434 data = -1 } #Oporto
			owned = { province = 441 data = -1 } #Tago
			owned = { province = 442 data = -1 } #Algarve
		}
		NOT = { exists = POR }
	}
	random = no
	country = SPA
	name = "EVENTNAME285299" #Margaret of Savoy
	desc = "EVENTHIST285299"
	#-#Olivares believed that Catalonia and Portugal were the two wealthiest States on the peninsula and decided that the two must be induced to play a part commensurate with their presumed resources. He decided to appoint Princess Margaret of Savoy, as Governess of Portugal and instructed her to obtain an annual levy of 500,000 cruzados via new taxes. Margaret's appointment was to serve a double role, as her presence would silence Portuguese complaints of royal neglect.

	date = { day = 1 month = january year = 1634 }
	offset = 50
	deathdate = { day = 1 month = december year = 1634 }

	action_a = {
		name = "ACTIONNAME285299A" #Appoint her Governess of Portugal
		command = { type = treasury value = -50 }
		command = { type = provincetax which = 434 value = 1 } #Oporto
		command = { type = provincetax which = 441 value = 1 } #Tago
		command = { type = provincetax which = 442 value = 1 } #Algarve
		command = { type = trigger which = 285302 } #SPA: Margaret of Savoy in Portugal
		command = { type = sleepevent which = 285299 } #SPA: Margaret of Savoy -I-
	}
	action_b = {
		name = "ACTIONNAME285299B" #We can raise taxes from Madrid!
		command = { type = provincetax which = 434 value = 1 } #Oporto
		command = { type = provincetax which = 441 value = 1 } #Tago
		command = { type = provincetax which = 442 value = 1 } #Algarve
		command = { type = trigger which = 285225 } #SPA: Consequences of raising taxes from Madrid
		command = { type = sleepevent which = 285299 } #SPA: Margaret of Savoy -I-
	}
	action_c = {
		name = "ACTIONNAME285299C" #We've no need of funds from Portugal
		command = { type = sleepevent which = 285299 } #SPA: Margaret of Savoy -I-
	}
}
#(1634) Margaret of Savoy in Portugal
event = {
	id = 285302 #triggered by SPA_285301 A
	random = no
	country = SPA
	name = "EVENTNAME285302" #Margaret of Savoy in Portugal
	desc = "EVENTHIST285302"
	#-#Unfortunately, under Margaret of Savoy's tenure, more Castilians found their way into the Portuguese government as advisors to Margaret. The court quickly divided into two factions which made effective government and subsequent tax reforms, all but impossible.

	action_a = {
		name = "DRATS"
		command = { type = provincetax which = 434 value = -1 } #Oporto
		command = { type = provincetax which = 441 value = -1 } #Tago
		command = { type = provincetax which = 442 value = -1 } #Algarve
	}
}
#(1634) Consequence of raising taxes from Madrid
event = {
	id = 285225 #triggered by SPA_285301 B
	random = no
	country = SPA
	name = "EVENTNAME285225" #Consequence of raising taxes from Madrid
	desc = "EVENTHIST285225"
	#-#In 1634, Olivares sent orders to the viceroy of Portugal to raise taxes. Disgruntled by perceived royal neglect, a mob in Lisbon took to rioting.

	action_a = {
		name = "DRATS"
		command = { type = provincetax which = 441 value = -1 } #Tago
		command = { type = revolt which = 441 } #Tago
	}
}

#(1635) French Encirclement by the Habsburgs
event = {
	id = 12067 #triggered by FRA_12062 A
	random = no
	country = SPA
	name = "EVENTNAME12062" #French Encirclement by the Habsburgs
	desc = "EVENTHIST12062"
	#-#Until 1635, France had played a minimal part in the Thirty Years War, limiting her involvements in diplomatic and political measures: financially supporting the Protestant cause against the Habsburg party in order to weaken his authority in the Empire or making short-lived military interventions in Northern Italy as to interrupt the military supply line between the Habsburg dominions of Spain and Austria. But in 1635 the Emperor and the German princes stipulated a peace treaty in Prague, with which the Protestant rulers were allowed to retain secularized bishoprics held by them in 1627, the enforcement of the Edict of Restitution was delayed for 40 years, the armies of the Emperor and of the German states were reunited to one imperial army and the German princes were forbidden to have alliances between them or with foreign powers. Since this treaty acknowledged the authority of the Habsburg party in the Empire and subsequently it renewed the threat for France of being surrounded at her borders, Cardinal Richelieu decided it was the moment for France to enter a preventive war against Spain and Austria. The religious character of the early war lost any real significance, from now on a struggle for the hegemony in Europe would take place.

	action_a = {
		name = "ACTIONNAME12066A" #Interfering Cardinal
		command = { type = casusbelli which = FRA value = 48 }
		command = { type = relation which = FRA value = -100 }
	}
	action_b = {
		name = "ACTIONNAME12066B" #Ignore the Threat
		command = { type = relation which = FRA value = 10 }
	}
}

#(1637) Revolt in Evora
event = {
	id = 285228 #triggered by POR_260160
	random = no
	country = SPA
	name = "EVENTNAME260160" #Revolt in Evora
	desc = "EVENTHIST260160"
	#-#The new taxes by Olivares did little to win him the trust of the Portuguese people. In 1637 tired of paying taxes the populace of Evora and surrounding towns took up the banner of revolt. Forunately of Olivares the riot failed to flare up into a nation-wide revolution, but it was an ominous portent for the future.

	action_a = {
		name = "CURSES"
		command = { type = relation which = POR value = -25 }
	}
}

#(1639-1642) The Catalonian Front
event = {
	id = 285294
	trigger = {
		flag = [Olivares_UoA]
		OR = {
			AND = {
				owned = { province = 429 data = -1 } #Catalonia
				control = { province = 429 data = -1 } #Catalonia
			}
			AND = {
				owned = { province = 427 data = -1 } #Gerona
				control = { province = 427 data = -1 } #Gerona
			}
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285294" #The Catalonian Front
	desc = "EVENTHIST285294"
	#-#By the closing years of the 1630s, Olivares had become convinced that the continuance of the Spanish monarchy was dependent on income and manpower from Catalonia and Portugal. Unfortunately, the Catalans had proven intractable since the publishing of the Union of Arms, as they viewed Castilian imperial designs as quite unfavorable. Having exhausted direct methods, Olivares decided to make Catalonia a base for military operations. He hoped that the Catalans would acquiesce to his wishes when they realized that they were now threatened by invasion from hostile foreign powers.

	date = { day = 1 month = january year = 1639 }
	offset = 10
	deathdate = { day = 1 month = january year = 1642 }

	action_a = {
		name = "ACTIONNAME285294A" #Raise the troops!
		command = { type = INF which = 429 value = 5000 } #Catalonia
		command = { type = INF which = 427 value = 5000 } #Gerona
		command = { type = provincetax which = 429 value = 1 } #Catalonia
		command = { type = provincetax which = 427 value = 1 } #Gerona
		command = { type = setflag which = [Pau_Claris] }
	}
	action_b = {
		name = "ACTIONNAME285294B" #We don't need the troops!
		command = { type = manpower value = -10 }
		command = { type = losebuilding which = 429 value = bailiff } #Catalonia
		command = { type = losebuilding which = 427 value = bailiff } #Gerona
		command = { type = domestic which = CENTRALIZATION value = -1 }
		command = { type = setflag which = [Broke_UoA] }
	}
}

#(1639-1642) Unrest in Catalonia
event = {
	id = 285295
	trigger = {
		flag = [Pau_Claris]
		OR = {
			AND = {
				owned = { province = 429 data = -1 } #Catalonia
				OR = {
					control = { province = 429 data = -1 } #Catalonia
					control = { province = 429 data = REB } #Catalonia
				}
			}
			AND = {
				owned = { province = 427 data = -1 } #Gerona
				OR = {
					control = { province = 427 data = -1 } #Gerona
					control = { province = 427 data = REB } #Gerona
				}
			}
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285295" #Unrest in Catalonia
	desc = "EVENTHIST285295"
	#-#Although Olivares's scheming met with some success, the people of Catalonia were quickly becoming disgruntled with his policies. Facing foul conditions, a great number of Catalan and non-Catalan soldiers deserted their posts in Catalonia. In response, Olivares instructed the ministers of the province to ignore the constituions of Catalonia wherever they conflicted with the best interests of the army. Always wary of Castilian attempts to limit their autonomy, the populace become explosively angry as they were demanded to provide more and more support for the army. By 1640, the Principality was increasingly receptive to the appeals of its clergy to hold onto its historic liberties. Under the leadership of a vigorous cleric, Pau Claris, Catalonia revolted against the monarchy.

	date = { day = 1 month = january year = 1639 }
	offset = 100
	deathdate = { day = 1 month = january year = 1642 }

	action_a = {
		name = "DAMN"
		command = { type = desertion which = 429 value = 5000 } #Catalonia
		command = { type = revolt which = 429 } #Catalonia
		command = { type = province_revoltrisk which = 429 value = 20 } #Catalonia
		command = { type = province_revoltrisk which = 427 value = 15 } #Gerona
	}
}
#(1639-1643) The Cortes of Aragon and Valenica renege on the Union of Arms
event = {
	id = 285297
	trigger = {
		flag = [Broke_UoA]
		OR = {
			AND = {
				owned = { province = 430 data = -1 } #Aragon
				control = { province = 430 data = -1 } #Aragon
			}
			AND = {
				owned = { province = 437 data = -1 } #Valencia
				control = { province = 437 data = -1 } #Valencia
			}
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285297" #The Cortes of Aragon and Valenica renege on the Union of Arms
	desc = "EVENTHIST285297"
	#-#Having witnessed the relative laxity with which Olivares promoted the Union of Arms in Catalonia, the Cortes of Aragon and Valencia no longer found it necessary to remit payment to Madrid, either.

	date = { day = 1 month = january year = 1639 }
	offset = 60
	deathdate = { day = 1 month = january year = 1643 }

	action_a = {
		name = "DRATS"
		command = { type = provincetax which = 437 value = -1 } #Valencia
		command = { type = provincetax which = 430 value = -1 } #Aragon
		command = { type = provincetax which = 428 value = -1 } #Navarre
		command = { type = domestic which = CENTRALIZATION value = -1 }
	}
}

#(1639-1750) Quinine begins to be used as antimalarian - Flavor
#by mfigueras
event = {
	id = 285199
	trigger = {
		OR = {
			owned = { province = 163 data = -1 }
			owned = { province = 1482 data = -1 }
			owned = { province = 1483 data = -1 }
			owned = { province = 167 data = -1 }
			owned = { province = 169 data = -1 }
			owned = { province = 193 data = -1 }
			owned = { province = 194 data = -1 }
			owned = { province = 1484 data = -1 }
			owned = { province = 165 data = -1 }
			owned = { province = 168 data = -1 }
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285199" #The quina and the quinine
	desc = "EVENTHIST285199"
	#-#Cinchona or quinine bark (cinchona officinalis) is one of the rainforest's most famous plants and most important discoveries. Legend has it that the name cinchona came from the countess of Chinchn, the wife of the viceroy of Per, who was cured of a malarial fever by using the bark of the cinchona tree in 1638. It was supposedly introduced to european medicine in 1640 by the countess of Chinchn, even before botanists had identified and named the species of tree. Quinine bark was used by the jesuits in South America very early in its history and due to the influence of the Company of Jesus, the newly named 'Jesuit's powder' became known all over Europe. Throughout the mid-1600s to mid-1800s quinine bark was the primary treatment for malaria and evidenced remarkable results.

	date = { day = 12 month = june year = 1639 }
	offset = 3600
	deathdate = { day = 12 month = june year = 1750 }

	action_a = {
		name = "ACTIONNAME285199A" #Great news!
		command = { type = population which = 163 value = 1000 } #Azuay
		command = { type = population which = 168 value = 1000 } #Lima
		command = { type = population which = 164 value = 500 } #Guayaquil
		command = { type = population which = 169 value = 600 } #Cuzco
		command = { type = population which = 165 value = 500 } #Cajamarca
		command = { type = population which = 170 value = 700 } #Arequipa
		command = { type = population which = 194 value = 800 } #Potosi
		command = { type = population which = 166 value = 300 } #Huanuco
		command = { type = population which = 171 value = 500 } #Moquega
		command = { type = population which = 1482 value = 300 } #Montana
		command = { type = population which = 1483 value = 300 } #Atalaya
		command = { type = population which = 167 value = 300 } #Ayacucho
		command = { type = population which = 193 value = 300 } #Titicaca
		command = { type = population which = 1484 value = 300 } #Manu

	}
}

#(1640-1645) Duke of Bragana as King of Portugal
event = {
	id = 285227
	trigger = {
		OR = {
			owned = { province = 434 data = -1 } #Oporto
			owned = { province = 441 data = -1 } #Tago
			owned = { province = 442 data = -1 } #Algarve
		}
		OR = {
			event = 285295 #SPA: Unrest in Catalonia
			event = 285302 #SPA: Margaret of Savoy in Portugal
			event = 285225 #SPA: Consequence of raising taxes from Madrid
			event = 260160 #POR: Revolt in Evora
		}
		NOT = { exists = POR }
	}
	random = no
	country = SPA
	name = "EVENTNAME285227" #Duke of Bragana claims Kingdom of Portugal
	desc = "EVENTHIST285227"
	#-#By the 1640s, the nobility of Portugal were more than just annoyed with their Spanish captivity. None of the supposed benefits of the union with Spain had come to pass. Despite Felipe II's assurances that Spain would respect the Portuguese constitution and its customes, by the time of Felipe IV, taxes were imposed and most all key posts in the government were held by Castilians. Portugal's colonial possessions were also under attack with Spain's enemies, the English and the Dutch. Frustrated by a union that had out lived its usefulness, a group of conspirators began to meet regularly and chose the Duke of Bragana to be their future sovereign. Although a mild-mannered man, the conspiring nobles chose the duke as he had the best claim to throne. Additionally, his confidence was bolstered by his wife, the scheming Luisa de Guzman, daughter of the Spanish Duke of Medina Sidonia. Having orchestrated their rebellion perfectly, the nobles quickly took the palace and the people of Lisbon took control of the city. News of the succesful revolt rapidly spread and one by one the Portuguese defeated the Spanish garrisons. On December 15th of 1640, the Duke and Duchess of Bragana were crowned King and Queen of Portugal.

	date = { day = 13 month = december year = 1640 }
	offset = 1
	deathdate = { day = 1 month = january year = 1645 }

	action_a = {
		name = "ACTIONNAME285227A" #Put it down!
		command = { type = independence which = POR }
		command = { type = stability value = -2 }
		command = { type = trigger which = 260163 } #POR: War of Acclamation -III-
	}
}
#(1640) Duke of Bragana revolts in Portugal
event = {
	id = 285303 #triggered by POR_260162
	random = no
	country = SPA
	name = "EVENTNAME285303" #Duke of Bragana revolts in Portugal
	desc = "EVENTHIST285227"
	#-#By the 1640s, the nobility of Portugal were more than just annoyed with their Spanish captivity. None of the supposed benefits of the union with Spain had come to pass. Despite Felipe II's assurances that Spain would respect the Portuguese constitution and its customes, by the time of Felipe IV, taxes were imposed and most all key posts in the government were held by Castilians. Portugal's colonial possessions were also under attack with Spain's enemies, the English and the Dutch. Frustrated by a union that had out lived its usefulness, a group of conspirators began to meet regularly and chose the Duke of Bragana to be their future sovereign. Although a mild-mannered man, the conspiring nobles chose the duke as he had the best claim to throne. Additionally, his confidence was bolstered by his wife, the scheming Luisa de Guzman, daughter of the Spanish Duke of Medina Sidonia. Having orchestrated their rebellion perfectly, the nobles quickly took the palace and the people of Lisbon took control of the city. News of the succesful revolt rapidly spread and one by one the Portuguese defeated the Spanish garrisons. On December 15th of 1640, the Duke and Duchess of Bragana were crowned King and Queen of Portugal.

	action_a = {
		name = "DRATS"
		command = { type = cedeprovince which = POR value = 441 } #Tago
		command = { type = cedeprovince which = POR value = 442 } #Algarve
		command = { type = cedeprovince which = POR value = 434 } #Oporto
		command = { type = stability value = -2 }
	}
}
#(1640) Portugal rallies behind the Duke of Bragana
event = {
	id = 285226 #triggered by POR_260163
	random = no
	country = SPA
	name = "EVENTNAME285226" #Portugal rallies behind the Duke of Bragana
	desc = "EVENTHIST285227"
	#-#By the 1640s, the nobility of Portugal were more than just annoyed with their Spanish captivity. None of the supposed benefits of the union with Spain had come to pass. Despite Felipe II's assurances that Spain would respect the Portuguese constitution and its customes, by the time of Felipe IV, taxes were imposed and most all key posts in the government were held by Castilians. Portugal's colonial possessions were also under attack with Spain's enemies, the English and the Dutch. Frustrated by a union that had out lived its usefulness, a group of conspirators began to meet regularly and chose the Duke of Bragana to be their future sovereign. Although a mild-mannered man, the conspiring nobles chose the duke as he had the best claim to throne. Additionally, his confidence was bolstered by his wife, the scheming Luisa de Guzman, daughter of the Spanish Duke of Medina Sidonia. Having orchestrated their rebellion perfectly, the nobles quickly took the palace and the people of Lisbon took control of the city. News of the succesful revolt rapidly spread and one by one the Portuguese defeated the Spanish garrisons. On December 15th of 1640, the Duke and Duchess of Bragana were crowned King and Queen of Portugal.

	action_a = {
		name = "DRATS"
		command = { type = stability value = -2 }
	}
}

#(1640) Christmas Eve in Barcelona
event = {
	id = 285296
	trigger = {
		event = 285295 #SPA: Unrest in Catalonia
		owned = { province = 429 data = -1 } #Catalonia
		OR = {
			control = { province = 429 data = -1 } #Catalonia
			control = { province = 429 data = REB } #Catalonia
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285296" #Christmas Eve in Barcelona
	desc = "EVENTHIST285296"
	#-#Enraged by the royal decision to send an army under the command of the Marquis of los Vlez to deal with the rebellion in Catalonia, the populace rioted in Barcelona to hunt down ''traitors.'' The savage spectacle on Christmas Eve would lead shortly to a Catalonian annoucement of independence.

	date = { day = 22 month = december year = 1640 }
	offset = 1
	deathdate = { day = 24 month = december year = 1640 }

	action_a = {
		name = "CURSES"
		command = { type = revolt which = 429 } #Catalonia
		command = { type = revolt which = 429 } #Catalonia
		command = { type = population which = 429 value = -500 } #Catalonia
		command = { type = desertion which = 429 value = 2500 } #Catalonia
		command = { type = provincetax which = 429 value = -1 } #Catalonia
		command = { type = province_revoltrisk which = 429 value = 10 } #Catalonia
		command = { type = province_revoltrisk which = 427 value = 5 } #Gerona
	}
}

#(1643-1659) The end of the Spanish military domination
#by Fodoron
event = {
	id = 285083
	trigger = {
		OR = {
			owned = { province = 377 data = -1 } #Luxenburg
			owned = { province = 378 data = -1 } #Brabant
			owned = { province = 379 data = -1 } #Artois
			owned = { province = 380 data = -1 } #Flanders
			owned = { province = 337 data = -1 } #Friesen
			owned = { province = 338 data = -1 } #Geldre
			owned = { province = 339 data = -1 } #Holland
			owned = { province = 340 data = -1 } #Zeeland
			owned = { province = 387 data = -1 } #Franche-Comte
		}
		atwar = no
	}
	random = no
	country = SPA
	name = "EVENTNAME285083" #The end of the Spanish military domination
	desc = "EVENTHIST285083"
	#-#The battle of Rocroi in 1643 marks a psychological turning point in European history. For the first time in 150 years, Spain was unable to defeat her enemies in the field of battle. Spain, a small, poor country had been able to build and defend a huge empire. Basing her military success in the army reforms introduced during the war of Granada and the wars of Italy, and financing her never ending wars with the apparently unlimited precious metals from her American conquests, Spain was able to expand in Italy, and defend the troublesome inheritance of the Spanish Habsburgs. But by mid-seventeen century, the Spanish demography simply gave up. The wool crisis affected the shepherds, the main source of soldiers. The exhausted fields of Spain, ineffectually laboured by impoverished serfs, resulted in continuous crop failures, recurrent famines and terrible pestilences from the beginning of the century, that together with the expulsion of the Moors, significantly reduced the size of the population. The scarcity of soldiers was such that anybody taller than 150 cm was accepted, when previously nobody shorter than 170 cm could form in the famous Tercios. The Spanish empire was also weighed down by mismanagement, due to the lack of an educated middleclass to provide competent administrators, as a result of the obsession of the Spanish society with racial purity which glorified the idle nobility, while dismissing merchants and artisans. Spain would be forced to concede defeat in the peace of the Pyrenees, and to accept the independence of Portugal and the Netherlands. France was acknowledged as the new continental power. Instead of reacting to correct the root of her problems, Spain would entrench in defending her diminishing empire, entering a decline that will culminate in the loss of her European possessions after the war of the Spanish succession.

	date = { day = 19 month = may year = 1643 }
	offset = 150
	deathdate = { day = 7 month = november year = 1659 }

	action_a = {
		name = "ACTIONNAME285083A" #We must cling to our possessions
		command = { type = stability value = -1 }
		command = { type = land value = -5000 }
		command = { type = naval value = -500 }
		command = { type = domestic which = OFFENSIVE value = -3 }
		command = { type = domestic which = INNOVATIVE value = -1 }
		command = { type = domestic which = QUALITY value = -3 }
		command = { type = provincemanpower which = 428 value = -1 } #Navarra
		command = { type = provincemanpower which = 429 value = -1 } #Catalonia
		command = { type = provincemanpower which = 430 value = -1 } #Aragon
		command = { type = provincemanpower which = 435 value = -1 } #Leon
		command = { type = provincemanpower which = 436 value = -1 } #Castilla
		command = { type = provincemanpower which = 437 value = -1 } #Valencia
		command = { type = provincemanpower which = 439 value = -1 } #Toledo
		command = { type = provincemanpower which = 440 value = -1 } #Estramadura
		command = { type = provincemanpower which = 443 value = -1 } #Andalusia
		command = { type = provincemanpower which = 444 value = -1 } #Granada
		command = { type = losebuilding which = 436 value = barrack } #Castilla
	}
	action_b = {
		name = "ACTIONNAME285083B" #We must completely reform our empire and abandon the European possessions
		command = { type = independence which = HOL }
		command = { type = independence which = POR }
		command = { type = independence which = HEL }
		command = { type = independence which = SAV }
		command = { type = independence which = PAR }
		command = { type = independence which = MOD }
		command = { type = independence which = VEN }
		command = { type = independence which = MAN }
		command = { type = independence which = GEN }
		command = { type = independence which = TOS }
		command = { type = independence which = PAP }
		command = { type = domestic which = INNOVATIVE value = 1 }
		command = { type = domestic which = QUALITY value = 1 }
		command = { type = domestic which = OFFENSIVE value = 1 }
		command = { type = land value = 3000 }
		command = { type = ADM which = -3 value = 120 }
		command = { type = MIL which = 1 value = 120 }
		command = { type = revoltrisk which = 120 value = 5 }
		command = { type = stability value = -4 }
		command = { type = treasury value = -500 }
		command = { type = manpower value = -50 }
		command = { type = desertion which = -1 value = 5000 } #Mercenaries leave
		command = { type = desertion which = -1 value = 5000 }
		command = { type = desertion which = -1 value = 5000 }
		command = { type = desertion which = -1 value = 5000 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -2 }
		command = { type = revolt which = -2 }
		command = { type = trigger which = 285084 } #SPA: Restitution for a new Europe
	}
}
#(1643-1659) The end of the Spanish military domination II. Restitution
#by Fodoron
event = {
	id = 285084 #triggered by SPA_285084 B
	random = no
	country = SPA
	name = "EVENTNAME285084" #Restitution for a new Europe
	desc = "EVENTHIST285084"
	#-#Spain has accepted that she cannot impose her rule and religion in Europe. The Spanish troops abandon the Low Countries and the North of Italy. The habsburg inheritance has been forfaited. A new order based on the equilibrium between nations is developing in Europe.

	action_a = {
		name = "ACTIONNAME285084A" #We are returning the disputed provinces
		command = { type = cedeprovince which = HOL value = 337 } #Friesen
		command = { type = cedeprovince which = HOL value = 338 } #Geldre
		command = { type = cedeprovince which = HOL value = 340 } #Zeeland
		command = { type = cedeprovince which = HAB value = 377 } #Luxembourg
		command = { type = cedeprovince which = HAB value = 378 } #Brabant
		command = { type = cedeprovince which = HAB value = 380 } #Flandern
		command = { type = cedeprovince which = HAB value = 389 } #Lombardia
		command = { type = cedeprovince which = FRA value = 379 } #Artois
		command = { type = cedeprovince which = FRA value = 387 } #Franche-Comt
		command = { type = cedeprovince which = FRA value = 426 } #Roussillon
		#Other French fiefs
		command = { type = cedeprovince which = FRA value = 376 } #Champagne
		command = { type = cedeprovince which = FRA value = 382 } #Calais
		command = { type = cedeprovince which = FRA value = 383 } #Picardie
		command = { type = cedeprovince which = FRA value = 384 } #Caux
		command = { type = cedeprovince which = FRA value = 385 } #Ile de France
		command = { type = cedeprovince which = FRA value = 386 } #Nivernais
		command = { type = cedeprovince which = FRA value = 406 } #Provence
		command = { type = cedeprovince which = FRA value = 407 } #Dauphin
		command = { type = cedeprovince which = FRA value = 408 } #Lyonnais
		command = { type = cedeprovince which = FRA value = 409 } #Bourgogne
		command = { type = cedeprovince which = FRA value = 410 } #Berri
		command = { type = cedeprovince which = FRA value = 411 } #Orleanais
		command = { type = cedeprovince which = FRA value = 412 } #Maine
		command = { type = cedeprovince which = FRA value = 413 } #Normandie
		command = { type = cedeprovince which = FRA value = 414 } #Armor
		command = { type = cedeprovince which = FRA value = 415 } #Bretagne
		command = { type = cedeprovince which = FRA value = 416 } #Morbihan
		command = { type = cedeprovince which = FRA value = 417 } #Vende
		command = { type = cedeprovince which = FRA value = 418 } #Poitou
		command = { type = cedeprovince which = FRA value = 419 } #Limousin
		command = { type = cedeprovince which = FRA value = 420 } #Auvergne
		command = { type = cedeprovince which = FRA value = 421 } #Cvennes
		command = { type = cedeprovince which = FRA value = 422 } #Languedoc
		command = { type = cedeprovince which = FRA value = 423 } #Guyenne
		command = { type = cedeprovince which = FRA value = 424 } #Gascogne
		command = { type = cedeprovince which = FRA value = 425 } #Barn
		command = { type = cedeprovince which = HEL value = 388 } #Bern
		command = { type = cedeprovince which = HEL value = 1612} #Schwyz
		command = { type = cedeprovince which = SAV value = 404 } #Piemonte
		command = { type = cedeprovince which = SAV value = 405 } #Savoie
		command = { type = cedeprovince which = POR value = 823 } #The Azores
		command = { type = cedeprovince which = POR value = 199 } #Para
		command = { type = cedeprovince which = POR value = 200 } #Tiracambu
		command = { type = cedeprovince which = POR value = 201 } #Maranhao
		command = { type = cedeprovince which = POR value = 202 } #Parnaiba
		command = { type = cedeprovince which = POR value = 203 } #Recife
		command = { type = cedeprovince which = POR value = 204 } #Iguatu
		command = { type = cedeprovince which = POR value = 205 } #Pernambuc
		command = { type = cedeprovince which = POR value = 206 } #Alagoas
		command = { type = cedeprovince which = POR value = 207 } #Diamentina
		command = { type = cedeprovince which = POR value = 208 } #Minas Gerais
		command = { type = cedeprovince which = POR value = 209 } #Salvador
		command = { type = cedeprovince which = POR value = 210 } #Itaimas
		command = { type = cedeprovince which = POR value = 211 } #Niteroi
		command = { type = cedeprovince which = POR value = 212 } #Araxa
		command = { type = cedeprovince which = POR value = 213 } #Curitiba
		command = { type = cedeprovince which = POR value = 214 } #Cangucu
		command = { type = cedeprovince which = GEN value = 398 } #Corsica
		command = { type = cedeprovince which = PAP value = 392 } #Marche
		command = { type = cedeprovince which = TOS value = 400 } #Siena
		command = { type = removecore which = 339 } #Holland
		command = { type = removecore which = 337 } #Friesen
		command = { type = removecore which = 338 } #Geldre
		command = { type = removecore which = 340 } #Zeeland
		command = { type = removecore which = 378 } #Brabant
		command = { type = removecore which = 379 } #Artois
		command = { type = removecore which = 380 } #Flandern
		command = { type = removecore which = 426 } #Roussillon
		command = { type = removecore which = 389 } #Lombardia
		command = { type = removecore which = 397 } #Sardinia
	}
}

#(1645-1820) End of 1640 rebellion in Catalonia
event = {
	id = 285298
	trigger = {
		event = 285295 #SPA: Unrest in Catalonia
		OR = {
			AND = {
				owned = { province = 429 data = -1 } #Catalonia
				control = { province = 429 data = -1 } #Catalonia
				owned = { province = 427 data = -1 } #Gerona
				control = { province = 427 data = -1 } #Gerona
			}
			AND = {
				owned = { province = 427 data = -1 } #Gerona
				control = { province = 427 data = -1 } #Gerona
				NOT = { owned = { province = 429 data = -1 } } #Catalonia
			}
			AND = {
				owned = { province = 429 data = -1 } #Catalonia
				control = { province = 429 data = -1 } #Catalonia
				NOT = { owned = { province = 427 data = -1 } } #Gerona
			}
		}
		NOT = { exists = CAT }
	}
	random = no
	country = SPA
	name = "EVENTNAME285298" #End of 1640 rebellion in Catalonia
	desc = "EVENTHIST285298"
	#-#Eventually the rebellions against the unpopular policies of Olivares peetered out.

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

	action_a = {
		name = "AT_LAST"
		command = { type = domestic which = CENTRALIZATION value = 1 }
		command = { type = province_revoltrisk which = 429 value = -30 } #Catalonia
		command = { type = province_revoltrisk which = 427 value = -20 } #Gerona
	}
}

#(1647) Masaniello's Revolt
event = {
	id = 285002
	trigger = {
		NOT = { exists = NAP }
		owned = { province = 393 data = -1 } #Napoli
		OR = {
			event = 260161 #POR: War of Acclamation -I-
			event = 260162 #POR: War of Acclamation -II-
			event = 260163 #POR: War of Acclamation -III-
			event = 285295 #SPA: Unrest in Catalonia
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285002" #Masaniello's Revolt
	desc = "EVENTHIST285002"
	#-#Neapolitan revolutionist, whose original name was Tommaso Aniello. A fisherman, he led a revolt of the lower classes, burdened by high taxes, against the Spanish rulers of Naples. Tumults broke out in 1647 and soon became so serious that the Spanish viceroy came to terms with Masaniello, promised the reforms demanded, and recognized him as captain general. Demented by his sudden success, Masaniello was killed shortly afterward either by agents of the Spanish viceroy or by his own disillusioned supporters. The revolution was soon repressed.

	date = { day = 1 month = january year = 1647 }
	offset = 360
	deathdate = { day = 1 month = january year = 1648 }

	action_a = {
		name = "ACTIONNAME285002A" #Promise reforms and kill their leader!
		command = { type = stability value = -2 }
		command = { type = revolt which = 393 } #Napoli
		command = { type = domestic which = serfdom value = 1 }
	}
	action_b = {
		name = "ACTIONNAME285002B" #Promise reforms and make their leader Captain of the people!
		command = { type = stability value = -1 }
		command = { type = revolt which = 393 } #Napoli
		command = { type = treasury value = -25 }
		command = { type = domestic which = aristocracy value = 1 }
	}
	action_c = {
		name = "ACTIONNAME285002C" #Make Naples independent
		command = { type = stability value = -1 }
		command = { type = independence which = NAP }
		command = { type = trigger which = 239005 } #NAP: Independence
	}
	action_d = {
		name = "ACTIONNAME285002D" #Don't act
		command = { type = revolt which = 393 } #Napoli
		command = { type = revolt which = 393 } #Napoli
		command = { type = revolt which = 394 } #Apulia
		command = { type = revoltrisk which = 36 value = 2 }
		command = { type = domestic which = innovative value = -1 }
	}
}

#(1647) Revolt in Palermo
event = {
	id = 285304
	trigger = {
		owned = { province = 395 data = -1 } #Messina
		OR = {
			event = 260161 #POR: War of Acclamation -I-
			event = 260162 #POR: War of Acclamation -II-
			event = 260163 #POR: War of Acclamation -III-
			event = 285295 #SPA: Unrest in Catalonia
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285304" #Revolt in Palermo
	desc = "EVENTHIST285304"
	#-#In 1647, in an effort to raise money for Spanish troops, a tax was levied on fruit in the city of Palermo. Having recently experienced a bad harvest, the starving masses were in no mood to countenance taxes on basic necessities. The mob demolished the taxes offices and opened in the prisions. In response, the Viceroy abolished the hated tax. The rebellion only further underscored the Crown's continual failure to control its non-Castilian possesions.

	date = { day = 1 month = may year = 1647 }
	offset = 25
	deathdate = { day = 29 month = may year = 1647 }

	action_a = {
		name = "DARN"
		command = { type = revolt which = 395 } #Messina
		command = { type = losebuilding which = 395 value = bailiff } #Messina
	}
}


#(1648-1661) Treaty of Mnster - removes cores if you failed to defeat the revolt
#Adapted by Isaac Brock from work by Alkar
event = {
	id = 285008
	trigger = {
		event = 3900 #Dutch Independence - HOL existed at some point
		flag = [DutGenEst] #SPA had one of the revolt events
		core = { province = 339 data = SPA } #No cores then no event
		NOT = {
			owned = { province = 337 data = -1 } #Friesen
			owned = { province = 338 data = -1 } #Geldre
			owned = { province = 339 data = -1 } #Holland
			owned = { province = 340 data = -1 } #Zeeland
		} #If Spain holds no provinces in the Northern Netherlands by 1648, she loses all claims
		OR = { #if they don't have the cores they don't need the event
			core = { province = 337 data = -1 } #Friesen
			core = { province = 338 data = -1 } #Geldre
			core = { province = 339 data = -1 } #Holland
			core = { province = 340 data = -1 } #Zeeland
		}
		NOT = { 
			war = { country = HOL country = SPA }
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285008" #The peace treaty of Mnster
	desc = "EVENTHIST285008"
	#-#In 1648 the peace of Mnster was signed between Spain and the Netherlands ending the 80 Years War. In the treaty Spain acknowledged the republic of United Provinces as a free and independent state and affirmed the status quo that has been in existence for the past decade. This meant that Spain accepted the loss of ownership over the northern Netherlands.

	date = { day = 15 month = may year = 1648 }
	offset = 23
	deathdate = { day = 1 month = march year = 1661 }

	action_a = {
		name = "ACTIONNAME285008A" #We acknowledge the Dutch Republic
		command = { type = removecore which = 337 } #Friesen
		command = { type = removecore which = 338 } #Geldre
		command = { type = removecore which = 339 } #Holland
		command = { type = removecore which = 340 } #Zeeland
		command = { type = relation which = HOL value = 50 }
	}
}
#(1648-1661) Treaty of Mnster
event = {
	id = 285009
	trigger = {
		event = 285008 #SPA: Treaty of Mnster Northern Netherlands
		NOT = {
			owned = { province = 377 data = -1 } #Luxembourg
			owned = { province = 378 data = -1 } #Brabant
			owned = { province = 379 data = -1 } #Artois
			owned = { province = 380 data = -1 } #Flandern
		} #If Spain failed to hold onto the southern Netherlands as well, she should also lose these claims as well
		OR = { #if they don't have the cores they don't need the event
			core = { province = 377 data = -1 } #Luxembourg
			core = { province = 378 data = -1 } #Brabant
			core = { province = 379 data = -1 } #Artois
			core = { province = 380 data = -1 } #Flandres
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285009" #The Low Countries are a lost cause
	desc = "EVENTHIST285009"
	#-#Having lost control of the southern Netherlands, Spain is forced to abandon her dynastic claims on these regions as well.

	date = { day = 18 month = may year = 1648 }
	offset = 23
	deathdate = { day = 1 month = march year = 1661 }

	action_a = {
		name = "ACTIONNAME285009A" #We abandon our claims in the south as well
		command = { type = removecore which = 377 } #Luxembourg
		command = { type = removecore which = 378 } #Brabant
		command = { type = removecore which = 379 } #Artois
		command = { type = removecore which = 380 } #Flandern
		command = { type = addcore_claim which = 377 } #Luxembourg
		command = { type = addcore_claim which = 378 } #Brabant
		command = { type = addcore_claim which = 379 } #Artois
		command = { type = addcore_claim which = 380 } #Flandern
		command = { type = relation which = HOL value = 50 }
		command = { type = relation which = FRA value = 50 }
	}
}

#(1650-1820) Conversion of Mindanao
#by Fodoron
event = {
	id = 285174
	trigger = {
		owned = { province = 693 data = -1 } #Mindanao
	}
	random = no
	country = SPA
	name = "EVENTNAME285174" #Conversion of Mindanao
	desc = "EVENTHIST285174"
	#-#Unable to convert the conquered Moros in Mindanao, The Spanish decided to change the demography of the island. Through immigration and deportation, they brought tens of thousands of Christian Philippinos to the island, while constant losses in the Moro wars kept the Muslim population from growing. Also the Christians benefited from economical and agricultural development that allowed them to expand faster. Soon the majority of the population in the island was Christian.

	date = { day = 0 month = january year = 1650 }
	offset = 5000
	deathdate = { year = 1820 }

	action_a = {
		name = "ACTIONNAME285174A" #Dilute the heathens
		command = { type = treasury value = -200 }
		command = { type = provincereligion which = 693 value = catholic } #Mindanao
	}
	action_b = {
		name = "ACTIONNAME285174B" #Religious freedom
		command = { type = provincereligion which = 693 value = sunni } #Mindanao
	}
}

#(1654-1680) Spain Reacts to Cromwell's Western Design
#by sturmvogel
event = {
	id = 285248 #triggered by ENG_164094 A
	random = no
	country = SPA
	name = "EVENTNAME285248" #Spain Reacts to Cromwell's Western Design
	desc = "EVENTHIST285248"
	#-#When they discovered Cromwell's Western Design, the Spanish dispatched the Conde de Pealeva with reinforcements for Santo Domingo.

	action_a = {
		name = "ACTIONNAME285248A" #Dispatch the reinforcements
		command = { type = INF which = 142 value = 5000 } #Tortuga
		command = { type = treasury value = -50 }
	}
	action_b = {
		name = "ACTIONNAME285036B" #We don't have enough money
		command = { type = removecore which = 140 } #Jamaica
		command = { type = cedeprovince which = ENG value = 140 } #Jamaica
		command = { type = vp value = -5 }
		command = { type = sleepevent which = 285269 } #SPA: Jamaica is lost
		command = { type = sleepevent which = 285270 } #SPA: Jamaica is worthless
	}
}
#(1654-1680) Jamaica is lost
event = {
	id = 285269
	trigger = {
		event = 285248 #SPA: Spain Reacts to Cromwell's Western Design
		owned = { province = 140 data = -1 } #Jamaica
		atwar = yes
		exists = ENG
		NOT = {
			vassal = { country = SPA country = ENG }
			vassal = { country = ENG country = SPA }
			alliance = { country = SPA country = ENG }
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285269" #Jamaica is lost
	desc = "EVENTHIST285269"
	#-#For hundred years Spanish Jamaica was subject to many pirate attacks, the final attack left the island in the hands of the English. The English were also subject to pirate raids after they began their occupation of the island.

	date = { day = 1 month = august year = 1654 }
	offset = 180
	deathdate = { day = 1 month = january year = 1680 }

	action_a = {
		name = "ACTIONNAME285269A" #Let the English deal with pirates
		command = { type = removecore which = 140 } #Jamaica
		command = { type = cedeprovince which = ENG value = 140 } #Jamaica
		command = { type = sleepevent which = 285270 } #SPA: Jamaica is worthless
	}
	action_b = {
		name = "ACTIONNAME285269B" #Jamaica is ours
		command = { type = revolt which = 140 } #Jamaica
		command = { type = revolt which = 140 } #Jamaica
	}
}
#(1654-1680) Jamaica is worthless - Ahistorical
event = {
	id = 285270
	trigger = {
		owned = { province = 140 data = -1 } #Jamaica
		OR = {
			vassal = { country = SPA country = ENG }
			vassal = { country = ENG country = SPA }
			alliance = { country = SPA country = ENG }
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285270" #Jamaica is worthless
	desc = "EVENTHIST285270"
	#-#For hundred years Spanish Jamaica was subject to many pirate attacks. By this time, the island was of little significance to the Spanish crown, and accordingly, very little was done to defend it against the pirates.

	date = { day = 1 month = august year = 1654 }
	offset = 180
	deathdate = { day = 1 month = january year = 1680 }

	action_a = {
		name = "ACTIONNAME285269A" #Let the English deal with pirates
		command = { type = cedeprovince which = ENG value = 140 } #Jamaica
		command = { type = sleepevent which = 285269 } #SPA: Jamaica is lost
	}
	action_b = {
		name = "ACTIONNAME285269B" #Jamaica is ours
		command = { type = revolt which = 140 } #Jamaica
		command = { type = revolt which = 140 } #Jamaica
	}
}

#(1659-1820) The loss of the Rosell
#by Fodoron
event = {
	id = 285220
	trigger = {
		OR = {
			owned = { province = 426 data = FRA } #Roussillon
			AND = {
				owned = { province = 426 data = -1 } #Roussillon
				control = { province = 426 data = FRA } #Roussillon
				NOT = {
					owned = { province = 423 data = -1 } #Guyenne
					owned = { province = 424 data = -1 } #Gascogne
					owned = { province = 422 data = -1 } #Languedoc
				}
			}
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285220" #The loss of the Rosell
	desc = "EVENTHIST285220"
	#-#The counties of Rosell and Cerdanya had always been a part of the Catalonian counties, then Aragon, and finally Spain. However they were always desired by the French Kings for being North of the Pyrenees. Louis XIV declared war to Spain, and pretending to support Catalonian separatists, conquered them, and at the peace of the Pyrenees imposed Felipe IV their surrender to France. An attempt was made to recover them during the war of the Convention in 1793, but it failed.

	date = { day = 0 month = january year = 1659 }
	offset = 300
	deathdate = { year = 1820 }

	action_a = {
		name = "ACTIONNAME285220A" #We could not defend it
		command = { type = removecore which = 426 } #Roussillon
		command = { type = cedeprovince which = FRA value = 426 } #Roussillon
	}
}

#-----------------------------------------------------------------------------------------------
#Colonial events in America
#by mfigueras

#(1660-1690) Sale of offices in the colonies
event = {
	id = 285024
	trigger = {
		domestic = { type = centralization value = 3 }
		OR = {
			owned = { province = 29 data = -1 }
			owned = { province = 32 data = -1 }
			owned = { province = 26 data = -1 }
			owned = { province = 27 data = -1 }
			owned = { province = 158 data = -1 }
			owned = { province = 163 data = -1 }
			owned = { province = 160 data = -1 }
			owned = { province = 159 data = -1 }
			owned = { province = 157 data = -1 }
			owned = { province = 168 data = -1 }
			owned = { province = 167 data = -1 }
			owned = { province = 169 data = -1 }
			owned = { province = 223 data = -1 }
			owned = { province = 215 data = -1 }
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285024" #The sale of administrative offices
	desc = "EVENTHIST285024"
	#-#The demand for a representation of the Creoles in the administration, besides the governments need for income, was solved by the sale of public offices. Since 1630, inhabitants of the colonies had the possibility to obtain positions by money. The crown began to sell positions in the treasury in 1622, in the corregimientos in 1678 and in courts in 1687. Many Creoles took these opportunities. The purchase of an office gained them a certain influence and independence within the administration. For the crown, it meant additional income, but also less authority in the colonies.

	date = { day = 16 month = march year = 1660 }
	offset = 3600
	deathdate = { day = 1 month = december year = 1690 }

	action_a = {
		name = "ACTIONNAME285024A" #We need the money
		command = { type = treasury value = 400 }
		command = { type = inflation value = 2 } #corrupcin local
		command = { type = provincetax which = 168 value = -1 } #Audiencias: Lima #Lima
		command = { type = provincetax which = 171 value = -1 } #Chuquisaca #Moquega
		command = { type = provincetax which = 223 value = -1 } #La Plata #Aires
		command = { type = provincetax which = 163 value = -1 } #Quito #Azuay
		command = { type = provincetax which = 160 value = -1 } #Bogot #Bogota
		command = { type = provincetax which = 27 value = -1 } #Nueva Espaa #Zacatecas
	}
	action_b = {
		name = "ACTIONNAME285024B" #The King will continue to appoint officials
		command = { type = stability value = -2 }
		command = { type = domestic which = centralization value = 1 }
		command = { type = ADM which = 2 value = 96 }
		command = { type = sleepevent which = 285025 } #SPA: The sale of offices and the beginning of separatism in the colonies
	}
}
#(1700-1708) Migration from the Canaries to Venezuela
event = {
	id = 285026
	trigger = {
		owned = { province = 817 data = -1 } #Canarias
		OR = {
			owned = { province = 154 data = -1 } #prov venezolanas
			owned = { province = 155 data = -1 }
			owned = { province = 156 data = -1 }
			owned = { province = 157 data = -1 }
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285026" #Canarian immigration to Venezuela
	desc = "EVENTHIST285026"
	#-#Since 1680 many people from the Canaries emigrated to Venezuela. On the one hand the Canarian islands experienced a difficult period: demographic growth, economic and agricultural problems, bad climatic conditions etc. On the other hand Venezuela was rapidly developing its great potential and needed more agricultural workers. Besides the fact that it was the American colony nearest to the Canaries favoured the migratory flow.

	date = { day = 23 month = march year = 1700 }
	offset = 1200
	deathdate = { day = 23 month = march year = 1708 }

	action_a = {
		name = "OK"
		command = { type = population which = 817 value = -1000 } #The Canary Islands
		command = { type = population which = 155 value = 300 } #Apure
		command = { type = population which = 154 value = 300 } #Yaraguay
		command = { type = population which = 156 value = 300 } #Tocuvo
	}
}
#(1705-1725) Sale of offices in the colonies (II)
event = {
	id = 285025
	trigger = {
		domestic = { type = centralization value = 3 }
		OR = {
			owned = { province = 27 data = -1 }
			owned = { province = 158 data = -1 }
			owned = { province = 163 data = -1 }
			owned = { province = 160 data = -1 }
			owned = { province = 159 data = -1 }
			owned = { province = 157 data = -1 }
			owned = { province = 168 data = -1 }
			owned = { province = 167 data = -1 }
			owned = { province = 169 data = -1 }
			owned = { province = 223 data = -1 }
			owned = { province = 215 data = -1 }
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285025" #The sale of offices and the beginning of separatism in the colonies
	desc = "EVENTHIST285025"
	#-#When in 1687 the Crown began to sell positions in the courts, the Creoles did not miss the opportunity. Slowly, they started to consider the districts of their 'audiencia' as their homeland and to affirm that, considering their aptidude for the office, they were supposed to occupy all offices within their districts. By 1750 many audiencias were already almost completely dominated by the local Creole elites, especially in Lima, Charcas and Quito. Although they did not yet even think of seceding from the Empire, this situation contributed in the creation and enhancement of a certain local identity and determined the later centres of the wars of independence.

	date = { day = 16 month = march year = 1705 }
	offset = 3600
	deathdate = { day = 1 month = december year = 1725 }

	action_a = {
		name = "ACTIONNAME285025A" #The system works well, maintain it
		command = { type = treasury value = 200 }
		command = { type = inflation value = 1 } #corrupcin local
		command = { type = province_revoltrisk which = 168 value = 1 } #Audiencias: Lima #Lima
		command = { type = province_revoltrisk which = 171 value = 1 } #Chuquisaca #Moquega
		command = { type = province_revoltrisk which = 223 value = 1 } #La Plata #Aires
		command = { type = province_revoltrisk which = 163 value = 1 } #Quito #Azuay
		command = { type = province_revoltrisk which = 160 value = 1 } #Bogot #Bogota
		command = { type = province_revoltrisk which = 27 value = 1 } #Nueva Espaa #Zacatecas
	}
	action_b = {
		name = "ACTIONNAME285025B" #This may not be, reestablish royal control
		command = { type = stability value = -2 }
		command = { type = inflation value = -1 }
		command = { type = ADM which = 2 value = 96 }
	}
}
#(1718-1720) Comuneros de Paraguay
event = {
	id = 285020
	trigger = {
		owned = { province = 216 data = -1 }
		domestic = { type = serfdom value = 4 }
		domestic = { type = centralization value = 4 }
		NOT = { domestic = { type = serfdom value = 9 } }
	}
	random = no
	country = SPA
	name = "EVENTNAME285020" #The 'comuneros' of Paraguay
	desc = "EVENTHIST285020"
	#-#The revolt of the 'comuneros' of Paraguay in 1718 was a reaction of creoles and spaniards against the governor of Asuncin, who supported the jesuit missions. These Jesuit missions were accused by creoles and spaniards of holding the best lands and of reducing manpower because of the reduced labour hours they imposed on the natives. In real history the revolt lasted until 1735, when a native army under the command of the Jesuits defeated the 'comuneros'.

	date = { day = 1 month = march year = 1718 }
	offset = 60
	deathdate = { day = 1 month = march year = 1720 }

	action_a = {
		name = "DAMN"
		command = { type = revolt which = 216 } #Artigas
		command = { type = revolt which = 216 } #Artigas
	}
}
#(1749-1750) La rebelin en Venezuela
event = {
	id = 285021
	trigger = {
		owned = { province = 154 data = -1 }
		domestic = { type = serfdom value = 3 }
		domestic = { type = centralization value = 4 }
	}
	random = no
	country = SPA
	name = "EVENTNAME285021" #The revolt of Venezuela in 1749
	desc = "EVENTHIST285021"
	#-#The revolt of Venezuela in 1749 was targeted against the 'Compaa Guipuzcoana de Caracas', a monopolistic company created in 1728 for trading with Venezuelan cacao, leather and tobacco. The leader of the revolt was Juan Francisco de Len and united some thousand farmers against the company's traders. The revolters captured Caracas, but the revolt was finally crushed.

	date = { day = 1 month = march year = 1749 }
	offset = 60
	deathdate = { day = 1 month = march year = 1750 }

	action_a = {
		name = "ACTIONNAME285021A" #Crush the revolters
		command = { type = revolt which = 154 } #Yaraguay
		command = { type = revolt which = 154 } #Yaraguay
		command = { type = provincetax which = 154 value = 1 } #state monopoly #Yaraguay
	}
	action_b = {
		name = "ACTIONNAME285021B" #Allow free trade in Venezuela
		command = { type = domestic which = mercantilism value = -1 } #free trade
		command = { type = province_revoltrisk which = 154 value = -1 } #Yaraguay
	}
}
#(1760-1806) The American Colonial Policy (general)
event = {
	id = 285027
	trigger = {
		domestic = { type = centralization value = 2 }
		NOT = { domestic = { type = innovative value = 9 } }
		OR = {
			owned = { province = 29 data = -1 }
			owned = { province = 30 data = -1 }
		 	owned = { province = 31 data = -1 }
			owned = { province = 32 data = -1 }
			owned = { province = 26 data = -1 }
			owned = { province = 27 data = -1 }
			owned = { province = 158 data = -1 }
			owned = { province = 39 data = -1 }
			owned = { province = 161 data = -1 }
			owned = { province = 162 data = -1 }
			owned = { province = 160 data = -1 }
			owned = { province = 159 data = -1 }
			owned = { province = 157 data = -1 }
			owned = { province = 156 data = -1 }
			owned = { province = 168 data = -1 }
			owned = { province = 167 data = -1 }
			owned = { province = 1484 data = -1 }
			owned = { province = 169 data = -1 }
			owned = { province = 170 data = -1 }
			owned = { province = 193 data = -1 }
			owned = { province = 194 data = -1 }
			owned = { province = 223 data = -1 }
			owned = { province = 222 data = -1 }
			owned = { province = 217 data = -1 }
			owned = { province = 215 data = -1 }
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285027" #The American colonial policy
	desc = "EVENTHIST285027"
	#-#In the 18th century the Crown intended to improve the situation of the American colonies, creating a greater productivity and more commercial dynamism. This required a better control of the government over the colonies and a more efficient administration. The reforms did not have the expected success, and the increased control provoked protest from Creoles and natives.

	date = { day = 25 month = june year = 1760 }
	offset = 100
	deathdate = { day = 1 month = august year = 1806 }

	action_a = {
		name = "ACTIONNAME3176A" #Govern through Spanish Governors
		command = { type = province_revoltrisk which = 24 value = 4 } #Jalisco
		command = { type = province_revoltrisk which = 25 value = 4 } #Saltillo
		command = { type = province_revoltrisk which = 26 value = 4 } #Michoacn
		command = { type = province_revoltrisk which = 27 value = 4 } #Zacatecas
		command = { type = province_revoltrisk which = 28 value = 4 } #Tampico
		command = { type = province_revoltrisk which = 29 value = 4 } #Tlaxcala
		command = { type = province_revoltrisk which = 30 value = 4 } #Atlixco
		command = { type = province_revoltrisk which = 223 value = 4 } #Aires
		command = { type = province_revoltrisk which = 222 value = 4 } #Rosario
		command = { type = province_revoltrisk which = 1485 value = 4 } #Pampas del Norte
		command = { type = province_revoltrisk which = 1486 value = 4 } #Pampas del Sur
		command = { type = province_revoltrisk which = 218 value = 4 } #Neembucu
		command = { type = province_revoltrisk which = 217 value = 4 } #Parana
		command = { type = province_revoltrisk which = 224 value = 4 } #Copetonas
		command = { type = province_revoltrisk which = 158 value = 4 } #Cartagena
		command = { type = province_revoltrisk which = 160 value = 4 } #Bogota
		command = { type = province_revoltrisk which = 161 value = 4 } #Cupica
		command = { type = province_revoltrisk which = 162 value = 4 } #Cali
		command = { type = province_revoltrisk which = 163 value = 4 } #Azuay
		command = { type = province_revoltrisk which = 164 value = 4 } #Guayaquil
		command = { type = province_revoltrisk which = 165 value = 4 } #Cajamarca
		command = { type = province_revoltrisk which = 166 value = 4 } #Huanuco
		command = { type = province_revoltrisk which = 167 value = 4 } #Ayacucho
		command = { type = province_revoltrisk which = 168 value = 4 } #Lima
		command = { type = stability value = 1 }
		command = { type = relation which = USA value = -50 }
	}
	action_b = {
		name = "ACTIONNAME3176B" #Govern from Madrid
		command = { type = province_revoltrisk which = 24 value = 8 } #Jalisco
		command = { type = province_revoltrisk which = 25 value = 8 } #Saltillo
		command = { type = province_revoltrisk which = 26 value = 8 } #Michoacn
		command = { type = province_revoltrisk which = 27 value = 8 } #Zacatecas
		command = { type = province_revoltrisk which = 28 value = 8 } #Tampico
		command = { type = province_revoltrisk which = 29 value = 8 } #Tlaxcala
		command = { type = province_revoltrisk which = 30 value = 8 } #Atlixco
		command = { type = province_revoltrisk which = 223 value = 8 } #Aires
		command = { type = province_revoltrisk which = 222 value = 8 } #Rosario
		command = { type = province_revoltrisk which = 1485 value = 8 } #Pampas del Norte
		command = { type = province_revoltrisk which = 1486 value = 8 } #Pampas del Sur
		command = { type = province_revoltrisk which = 218 value = 8 } #Neembucu
		command = { type = province_revoltrisk which = 217 value = 8 } #Parana
		command = { type = province_revoltrisk which = 224 value = 8 } #Copetonas
		command = { type = province_revoltrisk which = 158 value = 8 } #Cartagena
		command = { type = province_revoltrisk which = 160 value = 8 } #Bogota
		command = { type = province_revoltrisk which = 161 value = 8 } #Cupica
		command = { type = province_revoltrisk which = 162 value = 8 } #Cali
		command = { type = province_revoltrisk which = 163 value = 8 } #Azuay
		command = { type = province_revoltrisk which = 164 value = 8 } #Guayaquil
		command = { type = province_revoltrisk which = 165 value = 8 } #Cajamarca
		command = { type = province_revoltrisk which = 166 value = 8 } #Huanuco
		command = { type = province_revoltrisk which = 167 value = 8 } #Ayacucho
		command = { type = province_revoltrisk which = 168 value = 8 } #Lima
		command = { type = stability value = 3 }
		command = { type = relation which = USA value = -150 }
	}
	action_c = {
		name = "ACTIONNAME3176C" #Franchised Citizenship
		command = { type = province_revoltrisk which = 24 value = 1 } #Jalisco
		command = { type = province_revoltrisk which = 25 value = 1 } #Saltillo
		command = { type = province_revoltrisk which = 26 value = 1 } #Michoacn
		command = { type = province_revoltrisk which = 27 value = 1 } #Zacatecas
		command = { type = province_revoltrisk which = 28 value = 1 } #Tampico
		command = { type = province_revoltrisk which = 29 value = 1 } #Tlaxcala
		command = { type = province_revoltrisk which = 30 value = 1 } #Atlixco
		command = { type = province_revoltrisk which = 223 value = 1 } #Aires
		command = { type = province_revoltrisk which = 222 value = 1 } #Rosario
		command = { type = province_revoltrisk which = 1485 value = 1 } #Pampas del Norte
		command = { type = province_revoltrisk which = 1486 value = 1 } #Pampas del Sur
		command = { type = province_revoltrisk which = 218 value = 1 } #Neembucu
		command = { type = province_revoltrisk which = 217 value = 1 } #Parana
		command = { type = province_revoltrisk which = 224 value = 1 } #Copetonas
		command = { type = province_revoltrisk which = 158 value = 1 } #Cartagena
		command = { type = province_revoltrisk which = 160 value = 1 } #Bogota
		command = { type = province_revoltrisk which = 161 value = 1 } #Cupica
		command = { type = province_revoltrisk which = 162 value = 1 } #Cali
		command = { type = province_revoltrisk which = 163 value = 1 } #Azuay
		command = { type = province_revoltrisk which = 164 value = 1 } #Guayaquil
		command = { type = province_revoltrisk which = 165 value = 1 } #Cajamarca
		command = { type = province_revoltrisk which = 166 value = 1 } #Huanuco
		command = { type = province_revoltrisk which = 167 value = 1 } #Ayacucho
		command = { type = province_revoltrisk which = 168 value = 1 } #Lima
		command = { type = stability value = -2 }
		command = { type = relation which = USA value = 100 }
	}
}
#(1778-1780) American trade
event = {
	id = 285023
	trigger = {
		owned = { province = 443 data = -1 }
		OR = {
			owned = { province = 437 data = -1 }
			owned = { province = 429 data = -1 }
			owned = { province = 433 data = -1 }
			owned = { province = 431 data = -1 }
		}
		OR = {
			owned = { province = 158 data = -1 }
			owned = { province = 164 data = -1 }
			owned = { province = 168 data = -1 }
			owned = { province = 223 data = -1 }
			owned = { province = 139 data = -1 }
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285023" #American trade
	desc = "EVENTHIST285023"
	#-#In 1778 Carlos III of Spain allowed trade with the american colonies from any spanish harbour, and not only from the Cdiz harbour, which until then had the monopoly (and which Sevilla had until 1717). This fact stimulated many mediterranean and cantabric traders to begin their colonial trading adventures and allowing goods and money to arrive to those cities that embraced enthusiastically the new policies.

	date = { day = 1 month = march year = 1778 }
	offset = 20
	deathdate = { day = 20 month = september year = 1780 }

	action_a = {
		name = "ACTIONNAME285023A" #Allow trade from all peninsular harbours
		command = { type = provincetax which = 437 value = 1 } #Valencia
		command = { type = provincetax which = 429 value = 1 } #Catalonia
		command = { type = provincetax which = 433 value = 1 } #Galicia
		command = { type = provincetax which = 429 value = 1 } #Catalonia
		command = { type = provincetax which = 443 value = -2 } #Andalusia
		command = { type = trade value = 150 }
	}
	action_b = {
		name = "ACTIONNAME285023B" #Cdiz will maintain the monopoly
		command = { type = provincetax which = 443 value = 1 } #Andalusia
	}
}
#(1780-1781) Tupac Amaru
event = {
	id = 285022
	trigger = {
		owned = { province = 169 data = -1 }
		OR = {
			owned = { province = 170 data = -1 }
			owned = { province = 193 data = -1 }
			owned = { province = 194 data = -1 }
		}
		domestic = { type = serfdom value = 3 }
		domestic = { type = centralization value = 4 }
	}
	random = no
	country = SPA
	name = "EVENTNAME285022" #Tupac Amaru's revolt
	desc = "EVENTHIST285022"
	#-#In november 1780 Jos Gabriel Condorcanqui, best known as Tupac Amaru, rallied all the Peruvian natives in a never-seen revolt against the governors. The cause of the revolt were impositions of the governor and the 'corregidores', abuses and bad policies. Among the demands of Tupac Amaru there were the abolition of customs, the abolition of the 'corregidores' and the appointment of native mayors in native-populated provinces and towns.

	date = { day = 4 month = november year = 1780 }
	offset = 10
	deathdate = { day = 1 month = march year = 1781 }

	action_a = {
		name = "ACTIONNAME285022A" #Crush the revolt
		command = { type = revolt which = 169 } #Cuzco
		command = { type = revolt which = 169 } #Cuzco
		command = { type = revolt which = 170 } #Arequipa
		command = { type = revolt which = 193 } #Titicaca
		command = { type = revolt which = 194 } #Potosi
		command = { type = revolt which = 167 } #Ayacucho
	}
	action_b = {
		name = "ACTIONNAME285022B" #Accept Tupac Amaru's demands
		command = { type = domestic which = centralization value = -2 }
		command = { type = provincetax which = 169 value = -1 } #customs suppressed #Cuzco
		command = { type = stability value = -1 }
	}
}
#(1788-1795) Project of the count of Aranda - completo
event = {
	id = 285028
	trigger = {
		exists = USA
		owned = { province = 29 data = -1 }
		owned = { province = 30 data = -1 }
		owned = { province = 31 data = -1 }
		owned = { province = 32 data = -1 }
		owned = { province = 26 data = -1 }
		owned = { province = 27 data = -1 } #Mexico
		owned = { province = 158 data = -1 }
		owned = { province = 39 data = -1 }
		owned = { province = 161 data = -1 }
		owned = { province = 162 data = -1 }
		owned = { province = 160 data = -1 }
		owned = { province = 159 data = -1 }
		owned = { province = 157 data = -1 }
		owned = { province = 156 data = -1 } #Nueva Granada / Tierra Firme
		owned = { province = 168 data = -1 }
		owned = { province = 167 data = -1 }
		owned = { province = 1484 data = -1 }
		owned = { province = 169 data = -1 }
		owned = { province = 170 data = -1 }
		owned = { province = 193 data = -1 }
		owned = { province = 194 data = -1 } #Per
		NOT = {
			exists = MEX
			exists = COL
			exists = LAP
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285028" #The project of the count of Aranda
	desc = "EVENTHIST285028"
	#-#After the secession of the thirteen English colonies in North America and several revolts in the Spanish colonies, the Court was particularly worried about the situation in the colonies. In 1783 the count of Aranda, Secretary of Carlos IV, proposed a bold plan: turning the colonial viceroyalties into independent vassal Kingdoms of Spain ruled by members of the Spanish royal family. Carlos would have become King of Spain and Emperor of 'India'. The suggested new Kingdoms were: Mexico (the viceroyalty of New Spain), Tierra Firme (viceroyalty of New Granada) and Per (viceroyalty of Per and La Plata). In fact the project was never realised, and less than 20 years later the definite secession of Spain's American colonies began.

	date = { day = 1 month = march year = 1788 }
	offset = 10
	deathdate = { day = 1 month = august year = 1795 }

	action_a = {
		name = "ACTIONNAME285028A" #Maintain the viceroyalties as they are
		command = { type = revoltrisk value = 6 }
		command = { type = colonialrevolt which = -1 }
		command = { type = colonialrevolt which = -1 }
		command = { type = colonialrevolt which = -1 }
		command = { type = colonialrevolt which = -1 }
		command = { type = colonialrevolt which = -3 }
		command = { type = relation which = USA value = -60 }
		command = { type = relation which = ENG value = 60 }
		command = { type = sleepevent which = 285029 } #SPA: The project of the count of Aranda for Mexico
		command = { type = sleepevent which = 285030 } #SPA: The project of the count of Aranda for Tierra Firme
		command = { type = sleepevent which = 285031 } #SPA: The project of the count of Aranda for Per
	}
	action_b = {
		name = "ACTIONNAME285028B" #Realise this fascinating project
		command = { type = independence which = MEX }
		command = { type = trigger which = 224000 } #MEX: The project of the count of Aranda
		command = { type = independence which = COL }
		command = { type = trigger which = 149000 } #COL: The project of the count of Aranda
		command = { type = independence which = LAP }
		command = { type = trigger which = 208000 } #LAP: The project of the count of Aranda
		command = { type = trigger which = 285032 } #SPA: Aranda's project is realised
		command = { type = stability value = -1 }
		command = { type = relation which = USA value = 90 }
		command = { type = relation which = ENG value = -60 }
		command = { type = relation which = -1 value = 25 }
		command = { type = relation which = -1 value = 25 }
		command = { type = relation which = -1 value = 25 }
		command = { type = vp value = 90 }
		command = { type = sleepevent which = 285029 } #SPA: The project of the count of Aranda for Mexico
		command = { type = sleepevent which = 285030 } #SPA: The project of the count of Aranda for Tierra Firme
		command = { type = sleepevent which = 285031 } #SPA: The project of the count of Aranda for Per
	}
	action_c = {
		name = "ACTIONNAME285028C" #Grant more autonomy to the colonies
		command = { type = revoltrisk value = -1 }
		command = { type = colonialrevolt which = -1 }
		command = { type = colonialrevolt which = -1 }
		command = { type = domestic which = centralization value = -3 }
		command = { type = relation which = USA value = 30 }
		command = { type = sleepevent which = 285029 } #SPA: The project of the count of Aranda for Mexico
		command = { type = sleepevent which = 285030 } #SPA: The project of the count of Aranda for Tierra Firme
		command = { type = sleepevent which = 285031 } #SPA: The project of the count of Aranda for Per
	}
}
#(1788-1795) Project of the count of Aranda - Only MEX
event = {
	id = 285029
	trigger = {
		exists = USA
		owned = { province = 29 data = -1 }
		owned = { province = 30 data = -1 }
		owned = { province = 31 data = -1 }
		owned = { province = 32 data = -1 }
		owned = { province = 26 data = -1 }
		owned = { province = 27 data = -1 } #Mexico
		NOT = { exists = MEX }
		NOT = { event = 285028 }
	}
	random = no
	country = SPA
	name = "EVENTNAME285029" #The project of the count of Aranda for Mexico
	desc = "EVENTHIST285028"
	#-#After the secession of the thirteen English colonies in North America and several revolts in the Spanish colonies, the Court was particularly worried about the situation in the colonies. In 1783 the count of Aranda, Secretary of Carlos IV, proposed a bold plan: turning the colonial viceroyalties into independent vassal Kingdoms of Spain ruled by members of the Spanish royal family. Carlos would have become King of Spain and Emperor of 'India'. The suggested new Kingdoms were: Mexico (the viceroyalty of New Spain), Tierra Firme (viceroyalty of New Granada) and Per (viceroyalty of Per and La Plata). In fact the project was never realised, and less than 20 years later the definite secession of Spain's American colonies began.

	date = { day = 15 month = march year = 1788 }
	offset = 10
	deathdate = { day = 1 month = august year = 1795 }

	action_a = {
		name = "ACTIONNAME285028A" #Maintain the viceroyalties as they are
		command = { type = revoltrisk value = 2 }
		command = { type = colonialrevolt which = -1 }
		command = { type = colonialrevolt which = -1 }
		command = { type = colonialrevolt which = -3 }
		command = { type = relation which = USA value = -20 }
		command = { type = relation which = ENG value = 20 }
		command = { type = sleepevent which = 285028 } #SPA: The project of the count of Aranda
	}
	action_b = {
		name = "ACTIONNAME285028B" #Realise this fascinating project
		command = { type = independence which = MEX }
		command = { type = trigger which = 224000 } #MEX: The project of the count of Aranda
		command = { type = trigger which = 285033 } #SPA: Aranda's project is realised
		command = { type = stability value = -1 }
		command = { type = relation which = USA value = 30 }
		command = { type = relation which = ENG value = -20 }
		command = { type = relation which = -1 value = 25 }
		command = { type = vp value = 30 }
		command = { type = sleepevent which = 285028 } #SPA: The project of the count of Aranda
	}
	action_c = {
		name = "ACTIONNAME285028C" #Grant more autonomy to the colonies
		command = { type = revoltrisk value = -1 }
		command = { type = domestic which = centralization value = -1 }
		command = { type = relation which = USA value = 10 }
		command = { type = sleepevent which = 285028 } #SPA: The project of the count of Aranda
	}
}
#(1788-1795) Project of the count of Aranda - Only Colombia
event = {
	id = 285030
	trigger = {
		exists = USA
		owned = { province = 158 data = -1 }
		owned = { province = 39 data = -1 }
		owned = { province = 161 data = -1 }
		owned = { province = 162 data = -1 }
		owned = { province = 160 data = -1 }
		owned = { province = 159 data = -1 }
		owned = { province = 157 data = -1 }
		owned = { province = 156 data = -1 } #Nueva Granada / Tierra Firme
		NOT = { exists = COL }
		NOT = { event = 285028 }
	}
	random = no
	country = SPA
	name = "EVENTNAME285030" #The project of the count of Aranda for Tierra Firme
	desc = "EVENTHIST285028"
	#-#After the secession of the thirteen English colonies in North America and several revolts in the Spanish colonies, the Court was particularly worried about the situation in the colonies. In 1783 the count of Aranda, Secretary of Carlos IV, proposed a bold plan: turning the colonial viceroyalties into independent vassal Kingdoms of Spain ruled by members of the Spanish royal family. Carlos would have become King of Spain and Emperor of 'India'. The suggested new Kingdoms were: Mexico (the viceroyalty of New Spain), Tierra Firme (viceroyalty of New Granada) and Per (viceroyalty of Per and La Plata). In fact the project was never realised, and less than 20 years later the definite secession of Spain's American colonies began.

	date = { day = 15 month = march year = 1788 }
	offset = 10
	deathdate = { day = 1 month = august year = 1795 }

	action_a = {
		name = "ACTIONNAME285028A" #Maintain the viceroyalties as they are
		command = { type = revoltrisk value = 2 }
		command = { type = colonialrevolt which = -1 }
		command = { type = colonialrevolt which = -1 }
		command = { type = colonialrevolt which = -3 }
		command = { type = relation which = USA value = -20 }
		command = { type = relation which = ENG value = 20 }
		command = { type = sleepevent which = 285028 } #SPA: The project of the count of Aranda
	}
	action_b = {
		name = "ACTIONNAME285028B" #Realise this fascinating project
		command = { type = independence which = COL }
		command = { type = trigger which = 149000 } #COL: The project of the count of Aranda
		command = { type = trigger which = 285034 } #SPA: Aranda's project is realised
		command = { type = relation which = USA value = 30 }
		command = { type = relation which = ENG value = -20 }
		command = { type = relation which = -1 value = 25 }
		command = { type = vp value = 30 }
		command = { type = sleepevent which = 285028 } #SPA: The project of the count of Aranda
	}
	action_c = {
		name = "ACTIONNAME285028C" #Grant more autonomy to the colonies
		command = { type = domestic which = centralization value = -1 }
		command = { type = relation which = USA value = 10 }
		command = { type = sleepevent which = 285028 } #SPA: The project of the count of Aranda
	}
}
#(1788-1795) Project of the count of Aranda - Only Per
event = {
	id = 285031
	trigger = {
		exists = USA
		owned = { province = 168 data = -1 }
		owned = { province = 167 data = -1 }
		owned = { province = 1484 data = -1 }
		owned = { province = 169 data = -1 }
		owned = { province = 170 data = -1 }
		owned = { province = 193 data = -1 }
		owned = { province = 194 data = -1 } #Per
		NOT = { exists = LAP }
		NOT = { event = 285028 }
	}
	random = no
	country = SPA
	name = "EVENTNAME285031" #The project of the count of Aranda for Per
	desc = "EVENTHIST285028"
	#-#After the secession of the thirteen English colonies in North America and several revolts in the Spanish colonies, the Court was particularly worried about the situation in the colonies. In 1783 the count of Aranda, Secretary of Carlos IV, proposed a bold plan: turning the colonial viceroyalties into independent vassal Kingdoms of Spain ruled by members of the Spanish royal family. Carlos would have become King of Spain and Emperor of 'India'. The suggested new Kingdoms were: Mexico (the viceroyalty of New Spain), Tierra Firme (viceroyalty of New Granada) and Per (viceroyalty of Per and La Plata). In fact the project was never realised, and less than 20 years later the definite secession of Spain's American colonies began.

	date = { day = 1 month = march year = 1788 }
	offset = 10
	deathdate = { day = 1 month = august year = 1795 }

	action_a = {
		name = "ACTIONNAME285028A" #Maintain the viceroyalties as they are
		command = { type = revoltrisk value = 2 }
		command = { type = colonialrevolt which = -1 }
		command = { type = colonialrevolt which = -1 }
		command = { type = colonialrevolt which = -3 }
		command = { type = relation which = USA value = -20 }
		command = { type = relation which = ENG value = 20 }
		command = { type = sleepevent which = 285028 } #SPA: The project of the count of Aranda
	}
	action_b = {
		name = "ACTIONNAME285028B" #Realise this fascinating project
		command = { type = independence which = LAP }
		command = { type = trigger which = 208000 } #LAP: The project of the count of Aranda
		command = { type = trigger which = 285035 } #SPA: Aranda's project is realised
		command = { type = relation which = USA value = 30 }
		command = { type = relation which = ENG value = -20 }
		command = { type = relation which = -1 value = 25 }
		command = { type = vp value = 30 }
		command = { type = sleepevent which = 285028 } #SPA: The project of the count of Aranda
	}
	action_c = {
		name = "ACTIONNAME285028C" #Grant more autonomy to the colonies
		command = { type = domestic which = centralization value = -1 }
		command = { type = relation which = USA value = 10 }
		command = { type = sleepevent which = 285028 } #SPA: The project of the count of Aranda
	}
}
#(1788-1795) Aranda's project is realised
event = {
	id = 285032 #triggered by SPA_285028 B
	random = no
	country = SPA
	name = "EVENTNAME285032" #Aranda's project is realised
	desc = "EVENTHIST285032"
	#-#The project is being realised. Our new vassal Kingdoms will receive all territories promised to them.

	action_a = {
		name = "ACTIONNAME285032A" #Cede the territories
		command = { type = dynastic which = MEX }
		command = { type = cedeprovince which = MEX value = 24 } #prov. a aadir a MEX #Jalisco
		command = { type = cedeprovince which = MEX value = 25 } #Saltillo
		command = { type = cedeprovince which = MEX value = 28 } #Tampico
		command = { type = cedeprovince which = MEX value = 21 } #Mazatlan
		command = { type = cedeprovince which = MEX value = 20 } #Chihuahua
		command = { type = cedeprovince which = MEX value = 23 } #Coahuilha
		command = { type = cedeprovince which = MEX value = 40 } #Pecos
		command = { type = cedeprovince which = MEX value = 41 } #Rio Grande
		command = { type = cedeprovince which = MEX value = 42 } #Concho
		command = { type = cedeprovince which = MEX value = 43 } #Matagorda
		command = { type = cedeprovince which = MEX value = 33 } #Guatemala
		command = { type = cedeprovince which = MEX value = 34 } #Campeche
		command = { type = cedeprovince which = MEX value = 35 } #Yucatan
		command = { type = cedeprovince which = MEX value = 36 } #Honduras
		command = { type = cedeprovince which = MEX value = 37 } #Nicaragua
		command = { type = cedeprovince which = MEX value = 822 } #Costa Rica
		command = { type = cedeprovince which = MEX value = 44 } #Wichita
		command = { type = cedeprovince which = MEX value = 45 } #Bayou
		command = { type = cedeprovince which = MEX value = 51 } #Arkansas
		command = { type = cedeprovince which = MEX value = 22 } #El Paso
		command = { type = cedeprovince which = MEX value = 19 } #Pinalero
		command = { type = cedeprovince which = MEX value = 18 } #Arizona
		command = { type = cedeprovince which = MEX value = 17 } #Empalme
		command = { type = cedeprovince which = MEX value = 16 } #Canyon
		command = { type = cedeprovince which = MEX value = 15 } #Altar
		command = { type = cedeprovince which = MEX value = 14 } #Salton
		command = { type = cedeprovince which = MEX value = 13 } #Baya
		command = { type = cedeprovince which = MEX value = 12 } #Ensenada
		command = { type = cedeprovince which = MEX value = 11 } #San Bernardino
		command = { type = cedeprovince which = MEX value = 10 } #Sierra Madre
		command = { type = cedeprovince which = MEX value = 9 } #Monterey
		command = { type = cedeprovince which = MEX value = 8 } #Sacramento
		command = { type = dynastic which = COL }
		command = { type = cedeprovince which = COL value = 38 } #prov. a aadir a COL #Mosquitos
		command = { type = cedeprovince which = COL value = 163 } #Azuay
		command = { type = cedeprovince which = COL value = 164 } #Guayaquil
		command = { type = cedeprovince which = COL value = 155 } #Apure
		command = { type = cedeprovince which = COL value = 154 } #Yaraguay
		command = { type = cedeprovince which = COL value = 156 } #Tocuvo
		command = { type = cedeprovince which = COL value = 157 } #Maracaibo
		command = { type = cedeprovince which = COL value = 178 } #Caribe
		command = { type = cedeprovince which = COL value = 187 } #Pastaza
		command = { type = dynastic which = LAP }
		command = { type = cedeprovince which = LAP value = 165 } #prov. a aadir a Per #Cajamarca
		command = { type = cedeprovince which = LAP value = 1482 } #Montana
		command = { type = cedeprovince which = LAP value = 1483 } #Atalaya
		command = { type = cedeprovince which = LAP value = 166 } #Huanuco
		command = { type = cedeprovince which = LAP value = 171 } #Moquega
		command = { type = cedeprovince which = LAP value = 168 } #Lima
		command = { type = cedeprovince which = LAP value = 167 } #Ayacucho
		command = { type = cedeprovince which = LAP value = 1484 } #Manu
		command = { type = cedeprovince which = LAP value = 169 } #Cuzco
		command = { type = cedeprovince which = LAP value = 170 } #Arequipa
		command = { type = cedeprovince which = LAP value = 193 } #Titicaca
		command = { type = cedeprovince which = LAP value = 194 } #Potosi
		command = { type = cedeprovince which = LAP value = 216 } #Artigas
		command = { type = cedeprovince which = LAP value = 221 } #Corrientes
		command = { type = cedeprovince which = LAP value = 220 } #Jujuy
		command = { type = cedeprovince which = LAP value = 219 } #Tucuman
		command = { type = cedeprovince which = LAP value = 172 } #Arica
		command = { type = cedeprovince which = LAP value = 173 } #Atacama
		command = { type = cedeprovince which = LAP value = 174 } #Coquimbo
		command = { type = cedeprovince which = LAP value = 175 } #Valparaiso
		command = { type = cedeprovince which = LAP value = 176 } #Talca
		command = { type = cedeprovince which = LAP value = 117 } #Isle Royale
		command = { type = cedeprovince which = LAP value = 225 } #San Matias
		command = { type = cedeprovince which = LAP value = 226 } #Chubut
		command = { type = cedeprovince which = LAP value = 227 } #Santa Cruz
		command = { type = cedeprovince which = LAP value = 228 } #Magallanes
		command = { type = cedeprovince which = LAP value = 229 } #Tierra del Fuego
		command = { type = cedeprovince which = LAP value = 177 } #Aisen
		command = { type = cedeprovince which = LAP value = 192 } #Taqari
		command = { type = alliance which = MEX }
		command = { type = alliance which = LAP }
		command = { type = alliance which = COL }
	}
}
#(1788-1795) Aranda's project is realised
event = {
	id = 285033 #triggered by SPA_285029 B
	random = no
	country = SPA
	name = "EVENTNAME285032" #Aranda's project is realised
	desc = "EVENTHIST285032"
	#-#The project is being realised. Our new vassal Kingdoms will receive all territories promised to them.

	action_a = {
		name = "ACTIONNAME285032A" #Cede the territories
		command = { type = dynastic which = MEX }
		command = { type = cedeprovince which = MEX value = 24 } #prov. a aadir a MEX #Jalisco
		command = { type = cedeprovince which = MEX value = 25 } #Saltillo
		command = { type = cedeprovince which = MEX value = 28 } #Tampico
		command = { type = cedeprovince which = MEX value = 21 } #Mazatlan
		command = { type = cedeprovince which = MEX value = 20 } #Chihuahua
		command = { type = cedeprovince which = MEX value = 23 } #Coahuilha
		command = { type = cedeprovince which = MEX value = 40 } #Pecos
		command = { type = cedeprovince which = MEX value = 41 } #Rio Grande
		command = { type = cedeprovince which = MEX value = 42 } #Concho
		command = { type = cedeprovince which = MEX value = 43 } #Matagorda
		command = { type = cedeprovince which = MEX value = 33 } #Guatemala
		command = { type = cedeprovince which = MEX value = 34 } #Campeche
		command = { type = cedeprovince which = MEX value = 35 } #Yucatan
		command = { type = cedeprovince which = MEX value = 36 } #Honduras
		command = { type = cedeprovince which = MEX value = 37 } #Nicaragua
		command = { type = cedeprovince which = MEX value = 822 } #Costa Rica
		command = { type = cedeprovince which = MEX value = 44 } #Wichita
		command = { type = cedeprovince which = MEX value = 45 } #Bayou
		command = { type = cedeprovince which = MEX value = 51 } #Arkansas
		command = { type = cedeprovince which = MEX value = 22 } #El Paso
		command = { type = cedeprovince which = MEX value = 19 } #Pinalero
		command = { type = cedeprovince which = MEX value = 18 } #Arizona
		command = { type = cedeprovince which = MEX value = 17 } #Empalme
		command = { type = cedeprovince which = MEX value = 16 } #Canyon
		command = { type = cedeprovince which = MEX value = 15 } #Altar
		command = { type = cedeprovince which = MEX value = 14 } #Salton
		command = { type = cedeprovince which = MEX value = 13 } #Baya
		command = { type = cedeprovince which = MEX value = 12 } #Ensenada
		command = { type = cedeprovince which = MEX value = 11 } #San Bernardino
		command = { type = cedeprovince which = MEX value = 10 } #Sierra Madre
		command = { type = cedeprovince which = MEX value = 9 } #Monterey
		command = { type = cedeprovince which = MEX value = 8 } #Sacramento
		command = { type = alliance which = MEX }
	}
}
#(1788-1795) Aranda's project is realised
event = {
	id = 285034 #triggered by SPA_285030 B
	random = no
	country = SPA
	name = "EVENTNAME285032" #Aranda's project is realised
	desc = "EVENTHIST285032"
	#-#The project is being realised. Our new vassal Kingdoms will receive all territories promised to them.

	action_a = {
		name = "ACTIONNAME285032A" #Cede the territories
		command = { type = dynastic which = COL }
		command = { type = cedeprovince which = COL value = 38 } #prov. a aadir a COL #Mosquitos
		command = { type = cedeprovince which = COL value = 163 } #Azuay
		command = { type = cedeprovince which = COL value = 164 } #Guayaquil
		command = { type = cedeprovince which = COL value = 155 } #Apure
		command = { type = cedeprovince which = COL value = 154 } #Yaraguay
		command = { type = cedeprovince which = COL value = 156 } #Tocuvo
		command = { type = cedeprovince which = COL value = 157 } #Maracaibo
		command = { type = cedeprovince which = COL value = 178 } #Caribe
		command = { type = cedeprovince which = COL value = 187 } #Pastaza
		command = { type = alliance which = COL }
	}
}
#(1788-1795) Aranda's project is realised
event = {
	id = 285035 #triggered by SPA_285031 B
	random = no
	country = SPA
	name = "EVENTNAME285032" #Aranda's project is realised
	desc = "EVENTHIST285032"
	#-#The project is being realised. Our new vassal Kingdoms will receive all territories promised to them.

	action_a = {
		name = "ACTIONNAME285032A" #Cede the territories
		command = { type = dynastic which = LAP }
		command = { type = cedeprovince which = LAP value = 165 } #prov. a aadir a Per #Cajamarca
		command = { type = cedeprovince which = LAP value = 1482 } #Montana
		command = { type = cedeprovince which = LAP value = 1483 } #Atalaya
		command = { type = cedeprovince which = LAP value = 166 } #Huanuco
		command = { type = cedeprovince which = LAP value = 171 } #Moquega
		command = { type = cedeprovince which = LAP value = 168 } #Lima
		command = { type = cedeprovince which = LAP value = 167 } #Ayacucho
		command = { type = cedeprovince which = LAP value = 1484 } #Manu
		command = { type = cedeprovince which = LAP value = 169 } #Cuzco
		command = { type = cedeprovince which = LAP value = 170 } #Arequipa
		command = { type = cedeprovince which = LAP value = 193 } #Titicaca
		command = { type = cedeprovince which = LAP value = 194 } #Potosi
		command = { type = cedeprovince which = LAP value = 216 } #Artigas
		command = { type = cedeprovince which = LAP value = 221 } #Corrientes
		command = { type = cedeprovince which = LAP value = 220 } #Jujuy
		command = { type = cedeprovince which = LAP value = 219 } #Tucuman
		command = { type = cedeprovince which = LAP value = 172 } #Arica
		command = { type = cedeprovince which = LAP value = 173 } #Atacama
		command = { type = cedeprovince which = LAP value = 174 } #Coquimbo
		command = { type = cedeprovince which = LAP value = 175 } #Valparaiso
		command = { type = cedeprovince which = LAP value = 176 } #Talca
		command = { type = cedeprovince which = LAP value = 117 } #Isle Royale
		command = { type = cedeprovince which = LAP value = 225 } #San Matias
		command = { type = cedeprovince which = LAP value = 226 } #Chubut
		command = { type = cedeprovince which = LAP value = 227 } #Santa Cruz
		command = { type = cedeprovince which = LAP value = 228 } #Magallanes
		command = { type = cedeprovince which = LAP value = 229 } #Tierra del Fuego
		command = { type = cedeprovince which = LAP value = 177 } #Aisen
		command = { type = cedeprovince which = LAP value = 192 } #Taqari
		command = { type = alliance which = LAP }
	}
}
#(1788-1795) The project of the count of Aranda - Mexico
event = {
	id = 224000 #triggered by SPA_285029 B
	random = no
	country = MEX
	name = "EVENTNAME285028" #The project of the count of Aranda
	desc = "EVENTHIST149000"
	#-#Spain has granted us independence. From now on we rule ourselves as vassals of the wise King of Spain and Emperor of the Indies

	action_a = {
		name = "ACTIONNAME149000A" #Perfecto !
		command = { type = INF which = -2 value = 6000 }
		command = { type = CAV which = -2 value = 2000 }
		command = { type = ART which = -2 value = 20 }
	}
}
#(1788-1795) The project of the count of Aranda - Colombia
event = {
	id = 149000 #triggered by SPA_285030 B
	random = no
	country = COL
	name = "EVENTNAME285028" #The project of the count of Aranda
	desc = "EVENTHIST149000"
	#-#Spain has granted us independence. From now on we rule ourselves as vassals of the wise King of Spain and Emperor of the Indies

	action_a = {
		name = "ACTIONNAME149000A" #Perfecto !
		command = { type = INF which = -2 value = 6000 }
		command = { type = CAV which = -2 value = 2000 }
		command = { type = ART which = -2 value = 20 }
	}
}
#(1788-1795) The project of the count of Aranda - Peru
event = {
	id = 208000 #triggered by SPA_285031 B
	random = no
	country = LAP
	name = "EVENTNAME285028" #The project of the count of Aranda
	desc = "EVENTHIST149000"
	#-#Spain has granted us independence. From now on we rule ourselves as vassals of the wise King of Spain and Emperor of the Indies

	action_a = {
		name = "ACTIONNAME149000A" #Perfecto !
		command = { type = INF which = -2 value = 6000 }
		command = { type = CAV which = -2 value = 2000 }
		command = { type = ART which = -2 value = 20 }
	}
}
#End of Colonial events in America
#-----------------------------------------------------------------------------------------------

#(1676-1681) France opens Chambers of Reunion
event = {
	id = 3172 #triggered by FRA_3127 A
	trigger = {
		event = 285205 #SPA: The Burgundian court
	}
	random = no
	country = SPA
	name = "EVENTNAME3172" #France opens Chambers of Reunion
	desc = "EVENTHIST3172"
	#-#Under Louis XIV, France relentlessly pursued expansionism. Spain was under no situation to defend those lands desired by Louis, and one by one they were taken by force of arms. Carlos II was forced to accept the inevitable, and surrendered the claims to Artois and Franco Condado that for 150 years had been part of Spain. Spanish troops also abandoned Luxembourg.

	action_a = {
		name = "ACTIONNAME3172A" #Surrender Burgundian claims to French expansionism
		command = { type = removecore which = 379 } #Artois
		command = { type = removecore which = 387 } #Franche-Comt
		command = { type = removecore which = 377 } #Luxembourg
		command = { type = stability value = 1 }
		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 } #Bayreuth
	}
	action_b = {
		name = "ACTIONNAME3172B" #Not a garden will be taken from us
		command = { type = revolt which = 379 } # Artois
		command = { type = revolt which = 379 } # Artois
		command = { type = revolt which = 387 } # Franche-Comt
		command = { type = revolt which = 387 } # Franche-Comt
		command = { type = stability value = -1 }
		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 } #Bayreuth
	}
}

#(1680-1688) Pueblo revolt
#by Fodoron
event = {
	id = 285189
	trigger = {
		OR = {
			AND = {
				owned = { province = 18 data = -1 } #Arizona
				provincereligion = { province = 18 data = catholic } #Arizona
			}
			AND = {
				owned = { province = 19 data = -1 } #Pinalero
				provincereligion = { province = 19 data = catholic } #Pinalero
			}
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285189" #Pueblo revolt
	desc = "EVENTHIST285189"
	#-#The Pueblo people of New Mexico had accepted Spanish domination because of the protection they awarded against nomadic Navajo and Apache raids. However there was religious friction due to Franciscan pressure to the Pueblo to abandon their Pagan beliefs. In 1670, a great drought brought famine and Apache attacks on such a scale that the Spanish soldiers could not cope. Unsatisfied with the Spanish inability to feed and protect them, the Pueblo Indians turned to their old gods, provoking a repressive wave from the Franciscans. In 1675, 47 medicine-men were arrested on charges of witchcraft, and three of them were hanged. The Pueblo uproar for the events coincided with most of the soldiers being away fighting the Apache, so the rest of the medicine-men had to be released, between them one named Pop. Later, when fugitive from murder accusations, Pop took refuge in Taos and prepared a revolt. On August 10, 1680 Pop directed the uprising of the Pueblo, killing 18 Franciscan priests, and over 380 Spaniards between men, women and children. The survivors took refuge in Santa Fe, and when besieged, escaped to El Paso. Until his death in 1688, Pop ruled the Pueblo with an iron fist, trying to erase any sign of Europeans. Under penalty of death, the Pueblo Indians had to destroy all signs of Catholic religion and Spanish culture, including the killing of Spanish imported livestock and burning of fruit trees, and they were forbidden from growing barley or wheat.

	date = { day = 0 month = january year = 1680 }
	offset = 200
	deathdate = { day = 0 month = january year = 1688 }

	action_a = {
		name = "ACTIONNAME285189A" #Argh
		command = { type = provincereligion which = 1478 value = pagan } #Moab
		command = { type = provincereligion which = 16 value = pagan } #Canyon
		command = { type = provincereligion which = 18 value = pagan } #Arizona
		command = { type = provincereligion which = 19 value = pagan } #Pinalero
		command = { type = religiousrevolt which = 1478 } #Moab
		command = { type = religiousrevolt which = 16 } #Canyon
		command = { type = religiousrevolt which = 18 } #Arizona
		command = { type = religiousrevolt which = 19 } #Pinalero
		command = { type = province_revoltrisk which = 1478 value = 5 } #Moab
		command = { type = province_revoltrisk which = 16 value = 5 } #Canyon
		command = { type = province_revoltrisk which = 18 value = 5 } #Arizona
		command = { type = province_revoltrisk which = 19 value = 5 } #Pinalero
		command = { type = population which = 1478 value = -200 } #Moab
		command = { type = population which = 16 value = -200 } #Canyon
		command = { type = population which = 18 value = -200 } #Arizona
		command = { type = population which = 19 value = -200 } #Pinalero
	}
}

#-----------------------------------------------------------------------------------------------
#The Novatores Sequence

#(1680-1685) The Novatores
#by mfigueras
event = {
	id = 5252
	trigger = {
		stability = 0
		domestic = { type = innovative value = 3 }
	}
	random = no
	country = SPA
	name = "EVENTNAME5252" #The 'novatores'
	desc = "EVENTHIST5252"
	#-#The 'novatores' were a group of spanish scientists that, at the end of the 17th century, warned against the backwardness in which spanish science had fallen and against the indifference with which the new ideas were welcomed. They tried to improve this situation and to introduce the latest european ideas and advancements in Spain.

	date = { day = 1 month = june year = 1680 }
	offset = 720
	deathdate = { day = 1 month = august year = 1685 }

	action_a = {
		name = "ACTIONNAME5252A" #They are right, but we can do nothing
		command = { type = infra value = 50 }
		command = { type = sleepevent which = 5253 } #SPA: The 'novatores' bring their fruits
	}
	action_b = {
		name = "ACTIONNAME5252B" #They are right, let's give them a royal funding
		command = { type = treasury value = -75 }
		command = { type = infra value = 100 }
	}
}
#(1710-1715) Consequences of the royal-funded novatores
event = {
	id = 5253
	trigger = {
		stability = 0
		domestic = { type = innovative value = 3 }
		event = 5252 #SPA: The 'novatores'
	}
	random = no
	country = SPA
	name = "EVENTNAME5253" #The 'novatores' bring their fruits
	desc = "EVENTHIST5253"
	#-#The royal funding of the 'novatores' gives its fruits: the new science and philosophy begins to be cultivated in our country.

	date = { day = 1 month = june year = 1710 }
	offset = 720
	deathdate = { day = 1 month = august year = 1715 }

	action_a = {
		name = "ACTIONNAME5253A" #The funding was the right thing to do
		command = { type = infra value = 150 }
		command = { type = ADM which = 2 value = 12 }
		command = { type = domestic which = innovative value = 1 }
	}
}
#End of The Novatores Sequence
#-----------------------------------------------------------------------------------------------

#(1683) The colonization of California
#by Fodoron
event = {
	id = 285092
	random = no
	country = SPA
	name = "EVENTNAME285092" #The colonization of California
	desc = "EVENTHIST285092"
	#-#Several attempts were done at the colonization of California between 1534 and 1697, but the difficulties and inaccessibility of the territory made them all fail. Besides nobody believed there was anything of value there except the pearls in the Sea of Cortes that were regularly fished by expeditions. In 1677, Carlos II ordered a new expedition that, under command of Isidoro Atondo, departed Sinaloa (Mazatlan) in 1683. In the expedition were three Jesuits, one of them Father Eusebio Francisco Kino from Trent. After three years the expedition returned. Father Kino then convinced Father Juan Mara de Salvatierra to return and they obtained permission from the Viceroy in 1697. They founded the mission of Loreto, now La Paz, in the Southern tip of the peninsula. The new King, Felipe V ordered in 1703 the establishment of military forts to protect the growing number of Jesuit missions in Baja California that in 1766 reached the number of fourteen with the last one near the border between Baja and Alta California. However, life in the missions was difficult, and they were sustained by donations from Mexico, as they received very little official help. Meanwhile Father Kino founded numerous missions in Sonora and Arizona.

	date = { day = 18 month = march year = 1683 }

	action_a = {
		name = "ACTIONNAME285092A" #Send the priests
		command = { type = colonists value = 3 }
		command = { type = treasury value = 80 } #donations to fund missions
	}
}

#-----------------------------------------------------------------------------------------------
#2nd wave of Spanish Caribbean fortifications
#by sturmvogel

#(1647-1680) Tortuga fortified
event = {
	id = 285249
	trigger = {
		NOT = { provincereligion = { province = 142 data = pagan } } #not a TP
		owned = { province = 142 data = -1 } #Tortuga
		control = { province = 142 data = -1 }
		ai = yes
	}
	random = no
	country = SPA
	name = "EVENTNAME285249" #Santo Domingo Fortified
	desc = "EVENTHIST285249"
	#-#After Drake plundered the city in 1586 it was virtually abandoned for over thirty years. The Spanish finally reoccupied it, but didn't fortify the city for another thirty years.

	date = { day = 0 month = january year = 1647 }
	offset = 1800
	deathdate = { day = 0 month = january year = 1680 }

	action_a = {
		name = "ACTIONNAME285036A" #Build fort
		command = { type = fortress which = 142 value = -1 } #destroy any existing fort
		command = { type = treasury value = -100 }
		command = { type = fortress which = 142 value = 1 } #Tortuga
	}
	action_b = {
		name = "ACTIONNAME285036B" #We don't have enough money
		command = { }
	}
}
#(1663-1780) Santiago fortified
event = {
	id = 285244
	trigger = {
		NOT = { provincereligion = { province = 139 data = pagan } } #not a TP
		owned = { province = 139 data = -1 } #Guantanamo
		control = { province = 139 data = -1 }
		ai = yes
	}
	random = no
	country = SPA
	name = "EVENTNAME285244" #Santiago Fortified
	desc = "EVENTHIST285244"
	#-#After British forces plundered the city in 1662 the Spanish finally began to fortify the city.

	date = { day = 0 month = january year = 1686 }
	offset = 3600
	deathdate = { day = 0 month = january year = 1780 }

	action_a = {
		name = "ACTIONNAME285036A" #Build fort
		command = { type = fortress which = 139 value = -1 } #destroy any existing fort
		command = { type = treasury value = -100 }
		command = { type = fortress which = 139 value = 1 } #Guantanamo
	}
	action_b = {
		name = "ACTIONNAME285036B" #We don't have enough money
		command = { }
	}
}
#(1672-1820) Seminole Fortified
event = {
	id = 285255
	random = no
	trigger = {
		NOT = { provincereligion = { province = 49 data = pagan } } #not a TP
		owned = { province = 49 data = -1 } #Seminole
		control = { province = 49 data = -1 }
		ai = yes
	}
	country = SPA
	name = "AI_EVENT"
	desc = ""

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

	action_a = {
		name = "OK"
		command = { type = fortress which = 49 value = -1 } #destroy any existing fort
		command = { type = treasury value = -100 }
		command = { type = fortress which = 49 value = 1 } #Seminole
	}
}
#(1685-1800) Vera Cruz's Fortifications Reinforced
event = {
	id = 285229
	trigger = {
		NOT = { provincereligion = { province = 29 data = pagan } } #not a TP
		owned = { province = 29 data = -1 } #Tlaxcala
		control = { province = 29 data = -1 }
	}
	random = no
	country = SPA
	name = "EVENTNAME285229" #Vera Cruz's Fortifications Reinforced
	desc = "EVENTHIST285229"
	#-#The 1683 sacking of the city by the Dutch pirate Laurens de Graff persuaded the Spanish government that the defenses of Vera Cruz were inadequate to defend the city.

	date = { day = 0 month = january year = 1685 }
	offset = 7200
	deathdate = { day = 0 month = january year = 1800 }

	action_a = {
		name = "ACTIONNAME285036A" #Build fort
		command = { type = treasury value = -300 }
		command = { type = fortress which = 29 value = 1 } #Tlaxcala
	}
	action_b = {
		name = "ACTIONNAME285036B" #We don't have enough money
		command = { }
	}
}
#(1686-1780) Campeche fortified
event = {
	id = 285242
	trigger = {
		NOT = { provincereligion = { province = 34 data = pagan } } #not a TP
		owned = { province = 34 data = -1 } #Campeche
		control = { province = 34 data = -1 }
		ai = yes
	}
	random = no
	country = SPA
	name = "EVENTNAME285242" #Campeche Fortified
	desc = "EVENTHIST285242"
	#-#The 1685 sacking of the city by the Dutch pirate Laurens de Graff finally provoked the Spanish government to fortify the city of Campeche.

	date = { day = 0 month = january year = 1686 }
	offset = 5400
	deathdate = { day = 0 month = january year = 1780 }

	action_a = {
		name = "ACTIONNAME285036A" #Build fort
		command = { type = fortress which = 34 value = -1 } #destroy any existing fort
		command = { type = treasury value = -100 }
		command = { type = fortress which = 34 value = 1 } #Campeche
	}
	action_b = {
		name = "ACTIONNAME285036B" #We don't have enough money
		command = { }
	}
}
#(1732-1820) Yaraguay Fortified
event = {
	id = 285256
	random = no
	trigger = {
		NOT = { provincereligion = { province = 154 data = pagan } } #not a TP
		owned = { province = 154 data = -1 } #Yaraguay
		control = { province = 154 data = -1 }
		ai = yes
	}
	country = SPA
	name = "AI_EVENT"
	desc = ""

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

	action_a = {
		name = "OK"
		command = { type = fortress which = 154 value = -1 } #destroy any existing fort
		command = { type = treasury value = -100 }
		command = { type = fortress which = 154 value = 1 } #Yaraguay
	}
}
#(1738-1780) Cienfuegos and Matanzas Fortified
event = {
	id = 285246
	trigger = {
		NOT = { provincereligion = { province = 139 data = pagan } } #not a TP
		owned = { province = 139 data = -1 } #Matanzas
		control = { province = 139 data = -1 }
		ai = yes
	}
	random = no
	country = SPA
	name = "EVENTNAME285246" #Cienfuegos and Matanzas Fortified
	desc = "EVENTHIST285246"
	#-#The Spanish built several fortresses to defend the approaches to the town of Matanzas and to prevent pirates from using the Bahia de Cienfuegos on the southern coast.

	date = { day = 0 month = january year = 1738 }
	offset = 2500
	deathdate = { day = 0 month = january year = 1780 }

	action_a = {
		name = "ACTIONNAME285036A" #Build fort
		command = { type = fortress which = 140 value = -1 } #destroy any existing fort
		command = { type = treasury value = -100 }
		command = { type = fortress which = 140 value = 1 } #Matanzas
	}
	action_b = {
		name = "ACTIONNAME285036B" #We don't have enough money
		command = { }
	}
}
#(1761-1800) Panama's Fortifications Reinforced
event = {
	id = 285250
	trigger = {
		NOT = { provincereligion = { province = 39 data = pagan } } #not a TP
		owned = { province = 39 data = -1 } #Isthmus
		control = { province = 39 data = -1 }
	}
	random = no
	country = SPA
	name = "EVENTNAME285250" #Panama's Fortifications Reinforced
	desc = "EVENTHIST285250"
	#-#20-odd years after Portobelo was captured by the British during the War of Jenkin's Ear, the Spanish finally decided to rebuild and expand their fortifications in Panama.

	date = { day = 0 month = january year = 1761 }
	offset = 2900
	deathdate = { day = 0 month = january year = 1800 }

	action_a = {
		name = "ACTIONNAME285036A" #Build fort
		command = { type = treasury value = -300 }
		command = { type = fortress which = 39 value = 1 } #Isthmus
	}
	action_b = {
		name = "ACTIONNAME285036B" #We don't have enough money
		command = { }
	}
}
#(1763-1820) Havana's Fortifications Reinforced
event = {
	id = 285245
	trigger = {
		NOT = { provincereligion = { province = 137 data = pagan } } #not a TP
		owned = { province = 137 data = -1 } #Havana
		control = { province = 137 data = -1 }
	}
	random = no
	country = SPA
	name = "EVENTNAME285245" #Havana's Fortifications Reinforced
	desc = "EVENTHIST285245"
	#-#The Spanish defenses of Havana were virtually impregnable from the sea, but they had neglected its landward defenses. A weakness that the British exploited when they captured the city in 1762. After the end of the war the Spanish began to remedy that weakness with an extensive series of fortifications covering the landward approaches.

	date = { day = 4 month = november year = 1763 }
	offset = 3600
	deathdate = { day = 0 month = january year = 1800 }

	action_a = {
		name = "ACTIONNAME285036A" #Build fort
		command = { type = treasury value = -300 }
		command = { type = fortress which = 137 value = 1 } #Havana
	}
	action_b = {
		name = "ACTIONNAME285036B" #We don't have enough money
		command = { }
	}
}
#(1765-1820) San Juan's Fortifications Reinforced
event = {
	id = 285247
	trigger = {
		NOT = { provincereligion = { province = 144 data = pagan } } #not a TP
		owned = { province = 144 data = -1 } #Puerto Rico
		control = { province = 144 data = -1 }
	}
	random = no
	country = SPA
	name = "EVENTNAME285247" #San Juan's Fortifications Reinforced
	desc = "EVENTHIST285247"
	#-#The capture of Havana from the land shocked the Spanish authorities who realized that San Juan, Puerto Rico was also vulnerable in the same way. Construction began in 1765 of the Castillo de San Cristbal to protect the city's landward approaches. It successfully repelled an attacking British force of some 13,000 men in 1797.

	date = { day = 4 month = november year = 1765 }
	offset = 6400
	deathdate = { day = 0 month = january year = 1800 }

	action_a = {
		name = "ACTIONNAME285036A" #Build fort
		command = { type = treasury value = -300 }
		#Puerto Rico fortress +2
		command = { type = fortress which = 144 value = 1 } #Puerto Rico
		command = { type = fortress which = 144 value = 1 } #Puerto Rico
	}
	action_b = {
		name = "ACTIONNAME285036B" #We don't have enough money
		command = { }
	}
}
#(1770-1800) Yaraguay's Fortifications Reinforced
event = {
	id = 285257
	trigger = {
		NOT = { provincereligion = { province = 154 data = pagan } } #not a TP
		owned = { province = 154 data = -1 } #Yaraguay
		control = { province = 154 data = -1 }
	}
	random = no
	country = SPA
	name = "EVENTNAME285257" #Yaraguay's Fortifications Reinforced
	desc = "EVENTHIST285257"
	#-#Prompted by the Seven Year's War, the Spanish reinforced the fortifications of Caracas and Puerto Cabello.

	date = { day = 0 month = january year = 1770 }
	offset = 2900
	deathdate = { day = 0 month = january year = 1800 }

	action_a = {
		name = "ACTIONNAME285036A" #Build fort
		command = { type = treasury value = -300 }
		command = { type = fortress which = 154 value = 1 } #Yaraguay
	}
	action_b = {
		name = "ACTIONNAME285036B" #We don't have enough money
		command = { }
	}
}
#(1781-1820) Campeche fortified
event = {
	id = 285243
	trigger = {
		owned = { province = 34 data = -1 } #Campeche
		control = { province = 34 data = -1 }
	}
	random = no
	country = SPA
	name = "EVENTNAME285242" #Campeche Fortified
	desc = "EVENTHIST285243"
	#-#Spanish support for the American War of Independence threatened all of their vulnerable possessions in the New World. The Borbon dynasty began an extensive, and expensive, program to improve the fortifications of their most valuable colonies.

	date = { day = 0 month = january year = 1781 }
	offset = 3600
	deathdate = { year = 1820 }

	action_a = {
		name = "ACTIONNAME285036A" #Build fort
		command = { type = treasury value = -300 }
		command = { type = fortress which = 34 value = 1 } #Campeche
	}
	action_b = {
		name = "ACTIONNAME285036B" #We don't have enough money
		command = { }
	}
}
#End of 2nd wave of Spanish Caribbean fortifications
#-----------------------------------------------------------------------------------------------

#(1692-1820) Bloodless reconquest of New Mexico
#by Fodoron
event = {
	id = 285190
	trigger = {
		event = 285189 #SPA: Pueblo revolt
	}
	random = no
	country = SPA
	name = "EVENTNAME285190" #Bloodless reconquest of New Mexico
	desc = "EVENTHIST285190"
	#-#After the death of Pueblo leader Pop, the different Pueblos quarreled over who should rule them. This power struggle plus a prolonged drought and increased Apache attacks weakened the Pueblo and prepared the stage for the Spanish return. In July 1692, Diego de Vargas Zapata, recently appointed Governor of New Mexico, arrived with less than 50 soldiers. Through skillful diplomacy, he was able to entice the far more numerous and fortified Pueblo Indians in Santa Fe to surrender without firing a shot. The Spanish conceded a measure of freedom of religion and culture to the Pueblo Indians, granting large portions of land to the different Pueblos and appointing public defenders to protect the Indian rights at Spanish courts. A second uprising in 1696 that resulted in the death of 5 missionaries and 21 Spaniards had to be put down with more violence, but New Mexico was essentially reconquered by the end of the century.

	date = { day = 0 month = january year = 1692 }
	offset = 100
	deathdate = { year = 1820 }

	action_a = {
		name = "ACTIONNAME285190A" #Well done
		command = { type = provincereligion which = 1478 value = catholic } #Moab
		command = { type = provincereligion which = 16 value = catholic } #Canyon
		command = { type = provincereligion which = 18 value = catholic } #Arizona
		command = { type = provincereligion which = 19 value = catholic } #Pinalero
		command = { type = province_revoltrisk which = 1478 value = -5 } #Moab
		command = { type = province_revoltrisk which = 16 value = -5 } #Canyon
		command = { type = province_revoltrisk which = 18 value = -5 } #Arizona
		command = { type = province_revoltrisk which = 19 value = -5 } #Pinalero
	}
}

#-----------------------------------------------------------------------------------------------
#"Gulf Coast provinces settlement" events

#(1696-1820) Settlement of Pensacola
#by sturmvogel
event = {
	id = 285320
	trigger = {
		NOT = { core = { province = 48 data = -1 } }
		owned = { province = 48 data = -1 }
		control = { province = 48 data = -1 }
		NOT = { provincereligion = { province = 48 data = pagan } } #not a TP
	}
	random = no
	country = SPA
	name = "EVENTNAME285320" #Settlement of Pensacola
	desc = "EVENTHIST285314"
	#-#The first colonists have arrived.

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

	action_a = {
		name = "EXCELLENT"
		command = { type = addcore which = 48 } #Tallahassee
	}
}
#(1731-1820) Settlement of San Antonio
#by sturmvogel
event = {
	id = 285318
	trigger = {
		NOT = { core = { province = 40 data = -1 } }
		owned = { province = 40 data = -1 }
		control = { province = 40 data = -1 }
		NOT = { provincereligion = { province = 40 data = pagan } } #not a TP
	}
	random = no
	country = SPA
	name = "EVENTNAME285318" #Settlement of San Antonio
	desc = "EVENTHIST285314"
	#-#The first colonists have arrived.

	date = { day = 9 month = march year = 1731 }
	offset = 10
	deathdate = { year = 1820 }

	action_a = {
		name = "EXCELLENT"
		command = { type = addcore which = 40 } #Pecos
	}
}
#(1779-1820) Settlement of Nacogdoches
#by sturmvogel
event = {
	id = 285319
	trigger = {
		NOT = { core = { province = 44 data = -1 } }
		owned = { province = 44 data = -1 }
		control = { province = 44 data = -1 }
		NOT = { provincereligion = { province = 44 data = pagan } } #not a TP
	}
	random = no
	country = SPA
	name = "EVENTNAME285319" #Settlement of Nacogdoches
	desc = "EVENTHIST285314"
	#-#The first colonists have arrived.

	date = { day = 0 month = july year = 1779 }
	offset = 90
	deathdate = { year = 1820 }

	action_a = {
		name = "EXCELLENT"
		command = { type = addcore which = 44 } #Wichita
	}
}
#End of "Gulf Coast provinces settlement" events
#-----------------------------------------------------------------------------------------------

#-----------------------------------------------------------------------------------------------
#"War of Spanish succession" Sequence

#(1700) The will of Carlos II -I-
#by Fodoron
event = {
	id = 285210
	trigger = {
		neighbour = FRA
		exists = HAB
		NOT = {
			vassal = { country = FRA country = HAB }
			vassal = { country = SPA country = HAB }
		}
		event = 285205 #SPA: The Burgundian court
	}
	random = no
	country = SPA
	name = "EVENTNAME285210" #The will of Carlos II
	desc = "EVENTHIST285210"
	#-#For years Europe has been preparing for the death of childless Carlos II of Spain. He was related to several royal families in Europe, but after the death of the designated heir, Joseph Ferdinand Wittelbach of Bavaria, at the age of six, the royal houses of Austria and France had a similar claim, although according to the Spanish laws of succession the right of the French Dauphin preceded that of the Habsburg. But both nations were too powerful, and the addition of the Spanish empire would make any of them unstoppable, and so candidates not destined to their thrones, Philip of Anjou and Charles Habsburg, were discussed as heirs to Carlos, and several partition agreements were negotiated. That is precisely what everybody wanted to prevent in Spain. Despite the bigger influence from the Austracist party led by the mother of Carlos, historically there was an undisputable fact: France had 300,000 soldiers next to Spain and the Spanish Netherlands, and so represented the only opportunity, albeit small, to keep the empire together. A will was redacted and the agonizing Carlos signed it. It bequeathed the Kingdom to Philip Anjou, but it contained two crucial clauses, the condition that the crowns of France and Spain should never be held by the same person, and the condition that if any partition took place, then the crown of Spain should go to Charles Habsburg. Austria, of course, rejected it, starting the war in Italy, but the rest of Europe seemed to agree, as the equilibrium was not broken. But, could Louis XIV resist the temptation?

	date = { day = 2 month = november year = 1700 }

	action_a = {
		name = "ACTIONNAME285210A" #Let it be!
		command = { type = flagname which = "Bourbon" }
		command = { type = breakvassal which = HAB }
		command = { type = breakvassal which = ENG }
		command = { type = breakvassal which = HOL }
		command = { type = dynastic which = FRA }
		command = { type = relation which = FRA value = 200 }
		command = { type = removecore which = 379 } #Artois
		command = { type = removecore which = 387 } #Franche-Comt
		command = { type = removecore which = 409 } #Bourgogne
		command = { type = removecore which = 426 } #Roussillon
		command = { type = cedeprovince which = FRA value = 376 } #Champagne
		command = { type = cedeprovince which = FRA value = 379 } #Artois
		command = { type = cedeprovince which = FRA value = 382 } #Calais
		command = { type = cedeprovince which = FRA value = 383 } #Picardie
		command = { type = cedeprovince which = FRA value = 384 } #Caux
		command = { type = cedeprovince which = FRA value = 385 } #Ile-de-France
		command = { type = cedeprovince which = FRA value = 386 } #Nivernais
		command = { type = cedeprovince which = FRA value = 387 } #Franche-Comt
		command = { type = cedeprovince which = FRA value = 406 } #Provence
		command = { type = cedeprovince which = FRA value = 407 } #Dauphin
		command = { type = cedeprovince which = FRA value = 408 } #Lyonnais
		command = { type = cedeprovince which = FRA value = 409 } #Bourgogne
		command = { type = cedeprovince which = FRA value = 410 } #Berri
		command = { type = cedeprovince which = FRA value = 411 } #Orlanais
		command = { type = cedeprovince which = FRA value = 412 } #Maine
		command = { type = cedeprovince which = FRA value = 413 } #Normandie
		command = { type = cedeprovince which = FRA value = 414 } #Armor
		command = { type = cedeprovince which = FRA value = 415 } #Bretagne
		command = { type = cedeprovince which = FRA value = 416 } #Morbihan
		command = { type = cedeprovince which = FRA value = 417 } #Vende
		command = { type = cedeprovince which = FRA value = 418 } #Poitou
		command = { type = cedeprovince which = FRA value = 419 } #Auvergne
		command = { type = cedeprovince which = FRA value = 420 } #Limousin
		command = { type = cedeprovince which = FRA value = 421 } #Cvennes
		command = { type = cedeprovince which = FRA value = 422 } #Languedoc
		command = { type = cedeprovince which = FRA value = 423 } #Guyenne
		command = { type = cedeprovince which = FRA value = 424 } #Gascogne
		command = { type = cedeprovince which = FRA value = 425 } #Barn
		command = { type = cedeprovince which = FRA value = 426 } #Roussillon
		command = { type = trigger which = 179080 } #HAB: The will of Carlos II
		command = { type = trigger which = 170052 } #FRA: The will of Carlos II
		command = { type = trigger which = 170188 } #FRA: The will of Carlos II (FRA vassal to SPA)
		command = { type = sleepevent which = 285284 } #SPA: The will of Carlos II -II-
		command = { type = sleepevent which = 285285 } #SPA: The will of Carlos II -III-
	}
}
#(1700) The will of Carlos II -II- France not neighbour of Spain
event = {
	id = 285284
	trigger = {
		NOT = { neighbour = FRA }
		exists = FRA
		exists = HAB
		NOT = {
			vassal = { country = FRA country = HAB }
			vassal = { country = SPA country = HAB }
		}
		event = 285205 #SPA: The Burgundian court
	}
	random = no
	country = SPA
	name = "EVENTNAME285210" #The will of Carlos II
	desc = "EVENTHIST285210"
	#-#For years Europe has been preparing for the death of childless Carlos II of Spain. He was related to several royal families in Europe, but after the death of the designated heir, Joseph Ferdinand Wittelbach of Bavaria, at the age of six, the royal houses of Austria and France had a similar claim, although according to the Spanish laws of succession the right of the French Dauphin preceded that of the Habsburg. But both nations were too powerful, and the addition of the Spanish empire would make any of them unstoppable, and so candidates not destined to their thrones, Philip of Anjou and Charles Habsburg, were discussed as heirs to Carlos, and several partition agreements were negotiated. That is precisely what everybody wanted to prevent in Spain. Despite the bigger influence from the Austracist party led by the mother of Carlos, historically there was an undisputable fact: France had 300,000 soldiers next to Spain and the Spanish Netherlands, and so represented the only opportunity, albeit small, to keep the empire together. A will was redacted and the agonizing Carlos signed it. It bequeathed the Kingdom to Philip Anjou, but it contained two crucial clauses, the condition that the crowns of France and Spain should never be held by the same person, and the condition that if any partition took place, then the crown of Spain should go to Charles Habsburg. Austria, of course, rejected it, starting the war in Italy, but the rest of Europe seemed to agree, as the equilibrium was not broken. But, could Louis XIV resist the temptation?

	date = { day = 2 month = november year = 1700 }

	action_a = {
		name = "ACTIONNAME285210A" #Let it be!
		command = { type = flagname which = "Bourbon" }
		command = { type = breakvassal which = HAB }
		command = { type = breakvassal which = ENG }
		command = { type = breakvassal which = HOL }
		command = { type = dynastic which = FRA }
		command = { type = relation which = FRA value = 200 }
		command = { type = cedeprovince which = FRA value = 376 } #Champagne
		command = { type = cedeprovince which = FRA value = 382 } #Calais
		command = { type = cedeprovince which = FRA value = 383 } #Picardie
		command = { type = cedeprovince which = FRA value = 384 } #Caux
		command = { type = cedeprovince which = FRA value = 385 } #Ile-de-France
		command = { type = cedeprovince which = FRA value = 386 } #Nivernais
		command = { type = cedeprovince which = FRA value = 406 } #Provence
		command = { type = cedeprovince which = FRA value = 407 } #Dauphin
		command = { type = cedeprovince which = FRA value = 408 } #Lyonnais
		command = { type = cedeprovince which = FRA value = 409 } #Bourgogne
		command = { type = cedeprovince which = FRA value = 410 } #Berri
		command = { type = cedeprovince which = FRA value = 411 } #Orlanais
		command = { type = cedeprovince which = FRA value = 412 } #Maine
		command = { type = cedeprovince which = FRA value = 413 } #Normandie
		command = { type = cedeprovince which = FRA value = 414 } #Armor
		command = { type = cedeprovince which = FRA value = 415 } #Bretagne
		command = { type = cedeprovince which = FRA value = 416 } #Morbihan
		command = { type = cedeprovince which = FRA value = 417 } #Vende
		command = { type = cedeprovince which = FRA value = 418 } #Poitou
		command = { type = cedeprovince which = FRA value = 419 } #Auvergne
		command = { type = cedeprovince which = FRA value = 420 } #Limousin
		command = { type = cedeprovince which = FRA value = 421 } #Cvennes
		command = { type = cedeprovince which = FRA value = 422 } #Languedoc
		command = { type = cedeprovince which = FRA value = 423 } #Guyenne
		command = { type = cedeprovince which = FRA value = 424 } #Gascogne
		command = { type = cedeprovince which = FRA value = 425 } #Barn
		command = { type = trigger which = 179080 } #HAB: The will of Carlos II
		command = { type = trigger which = 170052 } #FRA: The will of Carlos II
		command = { type = trigger which = 170188 } #FRA: The will of Carlos II (FRA vassal to SPA)
		command = { type = sleepevent which = 285210 } #SPA: The will of Carlos II -I-
		command = { type = sleepevent which = 285285 } #SPA: The will of Carlos II -III-
	}
}
#(1700) The will of Carlos II -III- no France
event = {
	id = 285285
	trigger = {
		NOT = { exists = FRA }
		exists = HAB
		event = 285205 #SPA: The Burgundian court
	}
	random = no
	country = SPA
	name = "EVENTNAME285210" #The will of Carlos II
	desc = "EVENTHIST285285"
	#-#For years Europe has been preparing for the death of childless Carlos II of Spain. He was related to several royal families in Europe, but after the death of the designated heir, Joseph Ferdinand Wittelbach of Bavaria, at the age of six, the royal houses of Austria and France had a similar claim, although according to the Spanish laws of succession the right of the French Dauphin preceded that of the Habsburg. But the Habsburgs were too powerful, and the addition of the Spanish empire would make any of them unstoppable, and so candidates not destined to their thrones, Philip of Anjou and Charles Habsburg, were discussed as heirs to Carlos, and several partition agreements were negotiated. That is precisely what everybody wanted to prevent in Spain. A will was redacted and the agonizing Carlos signed it. It bequeathed the Kingdom to Charles of Habsburg, but it contained two crucial clauses, the condition that the crowns of France and Spain should never be held by the same person, and the condition that if any partition took place, then the crown of Spain should go to Charles Habsburg. Austria, of course, accepted it, gaining the now austrian netherlands and Italy, but the rest of Europe seemed to agree, as the equilibrium was not broken. The Austrian line of the House of Habsburg will rule over the Low Countries and the duchy of Milan.

	date = { day = 2 month = november year = 1700 }

	action_a = {
		name = "ACTIONNAME285210A" #Let it be!
		command = { type = flagname which = "Bourbon" }
		command = { type = breakvassal which = HAB }
		command = { type = breakvassal which = ENG }
		command = { type = breakvassal which = HOL }
		command = { type = dynastic which = HAB }
		command = { type = relation which = HAB value = 200 }
		command = { type = removecore which = 379 } #Artois
		command = { type = removecore which = 387 } #Franche-Comt
		command = { type = cedeprovince which = HAB value = 379 } #Artois
		command = { type = cedeprovince which = HAB value = 387 } #Franche-Comt
		command = { type = stability value = 2 }
		command = { type = capital which = 436 } #Castilla
		command = { type = cedeprovince which = HAB value = 337 } #Friesen
		command = { type = cedeprovince which = HAB value = 338 } #Geldre
		command = { type = cedeprovince which = HAB value = 339 } #Holland
		command = { type = cedeprovince which = HAB value = 340 } #Zeeland
		command = { type = cedeprovince which = HAB value = 377 } #Luxembourg
		command = { type = cedeprovince which = HAB value = 378 } #Brabant
		command = { type = cedeprovince which = HAB value = 380 } #Flandern
		command = { type = cedeprovince which = HAB value = 389 } #Lombardia
		command = { type = cedeprovince which = HAB value = 390 } #Mantua #same effect as in SPA_285264
		command = { type = trigger which = 179145 } #HAB: The will of Carlos II
		command = { type = sleepevent which = 285210 } #SPA: The will of Carlos II -I-
		command = { type = sleepevent which = 285284 } #SPA: The will of Carlos II -II-
		command = { type = independence which = FRA }
	}
}
#(1705) Charles conquers Catalonia
#by Fodoron
event = {
	id = 285211
	trigger = {
		event = 179081 #HAB: Charles crowned King of Spain in Viena
		NOT = { exists = CAT }
		owned = { province = 429 data = -1 } #Catalonia
	}
	random = no
	country = SPA
	name = "EVENTNAME285211" #Charles conquers Catalonia
	desc = "EVENTHIST285211"
	#-#Felipe V was well accepted in all of Spain, and recognized as King by all the parliaments. However with the start of the war and the arrival of the French troops, and with the proclamation of Charles Habsburg as King in Vienna, his supporters (Austracists), were ready to change sides. Although there were supporters for both monarchs in all regions of Spain, the disenchantment with the Habsburg rule and the admiration for the French centralized model was higher in the former Kingdom of Castile, while in the former Kingdom of Aragon, besides the opposite sentiment, there was a profound hatred of the French for the loss of the Rosell and the bombardment of Barcelona by the French fleet a few years before. The arrival of the Archduke to the coasts of Valencia raised most of the province in his favor, and after the conquest of Barcelona by the English troops, and with the Archduke Charles in the city, most of Catalonia declared her support for him, and he was proclaimed King by the parliament on November 7, 1705. Soon the parliament of Valencia took the same decision. The European war of Spanish succession had just become a civil war in Spain.

	date = { day = 9 month = october year = 1705 }

	action_a = {
		name = "DAMN"
		command = { type = stability value = -1 }
		command = { type = desertion which = 429 value = 20000 } #Catalonia
		command = { type = desertion which = 427 value = 20000 } #Gerona
		command = { type = desertion which = 437 value = 20000 } #Valencia
		command = { type = independence which = HSP }
		command = { type = casusbelli which = HSP value = 108 }
		command = { type = revoltrisk which = 108 value = 4 }
		command = { type = trigger which = 187000 } #HSP: The parliament of Barcelona declares Charles King
		command = { type = sleepevent which = 285298 } #SPA: End of 1640 rebellion in Catalonia
	}
}
#(1706) The loss of Aragon and Baleares
#by Fodoron
event = {
	id = 285212
	trigger = {
		event = 187000 #HSP: war of Spanish succession
		OR = {
			owned = { province = 430 data = -1 } #Aragon
			owned = { province = 821 data = -1 } #Baleares
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285212" #The loss of Aragon and Baleares
	desc = "EVENTHIST285212"
	#-#The counterattack by Felipe on Barcelona had to be suspended when he ran the risk of being caught between two fronts with the invasion of Extremadura by an Anglo-Portuguese expedition. Charles proceeded from Barcelona with an Austro-English army and Catalan troops reaching Madrid. At that point it seemed that he was going to win the war and the parliaments of Aragon and Baleares also recognized him as King of Spain on June 29, 1706. However the support for Felipe was still strong in Castile, Extremadura and Andaluca.

	date = { day = 29 month = june year = 1706 }

	action_a = {
		name = "DAMN"
		command = { type = stability value = -1 }
		command = { type = desertion which = 821 value = 20000 } #The Baleares
		command = { type = cedeprovince which = HSP value = 430 } #Aragon
		command = { type = cedeprovince which = HSP value = 821 } #The Baleares
	}
}
#(1706-1711) Bourbonist defeat
#by Fodoron
event = {
	id = 285213 #triggered by HSP_187001
	random = no
	country = SPA
	name = "EVENTNAME285213" #Bourbonist defeat in war of Spanish succession
	desc = "EVENTHIST285213"
	#-#A victory has been achieved by the Austracist party. Charles Habsburg has been accepted as King of Spain as Carlos III. The Habsburgs will continue ruling Spain. Philippe d'Anjou has left the Kingdom and gone back to France, where he has been named Dauphin of France.

	action_a = {
		name = "ACTIONNAME285213A" #The Habsburg dynasty will continue ruling our country
		command = { type = flagname which = "Saltire" }
		command = { type = setflag which = [Austracists_won] } #needed for specific events
		command = { type = inherit which = HSP }
		command = { type = badboy value = -2 }
		command = { type = remove_countryculture which = italian }
		command = { type = removecore which = 338 } #Geldre
		command = { type = removecore which = 339 } #Holland
		command = { type = removecore which = 340 } #Zeeland
		command = { type = removecore which = 377 } #Luxembourg
		command = { type = removecore which = 378 } #Brabant
		command = { type = removecore which = 379 } #Artois
		command = { type = removecore which = 380 } #Flandern
		command = { type = removecore which = 387 } #Franche-Comt
		command = { type = removecore which = 389 } #Lombardia
		command = { type = relation which = HAB value = 400 }
		command = { type = relation which = FRA value = -100 }
		command = { type = breakvassal which = FRA }
		command = { type = dynastic which = HAB }
		command = { type = stability value = 2 }
		command = { type = wakemonarch which = 0127506 } #Carlos III 
		command = { type = wakemonarch which = 0127507 } #Mara Teresa 
		command = { type = wakemonarch which = 0127508 } #Jos 
		command = { type = wakemonarch which = 0127509 } #Leopoldo 
		command = { type = wakemonarch which = 0127510 } #Fernando VI 
		command = { type = sleepmonarch which = 0127511 } #Felipe V
		command = { type = sleepmonarch which = 0127512 } #Luis I
		command = { type = sleepmonarch which = 0127513 } #Felipe V - 2nd Reign
		command = { type = sleepmonarch which = 0127514 } #Fernando VI
		command = { type = sleepmonarch which = 0127515 } #Carlos III
		command = { type = sleepmonarch which = 0127516 } #Carlos IV
		command = { type = sleepmonarch which = 0127517 } #Fernando VII
		command = { type = sleepevent which = 179082 } #HAB: Charles VI elected Holy Roman Emperor
		command = { type = sleepevent which = 179083 } #HAB: The peace of Utrecht
		command = { type = sleepevent which = 285215 } #SPA: The peace of Utrecht
		command = { type = sleepevent which = 170055 } #FRA: The peace of Utrecht
		command = { type = sleepevent which = 164017 } #ENG: The peace of Utrecht
	}
}
#(1706-1711) Austrian rulers in Spain (HSP reunited Spain)
event = {
	id = 285265
	trigger = {
		event = 187005 #HSP: Austrian rulers in Spain
		ai = no
	}
	random = no
	country = SPA
	name = "EVENTNAME187005" #Austrian rulers in Spain
	desc = "EVENTHIST285265"
	#-#The Austrian line of the Habsburg dynasty has now established her court in Spain.

	date = { day = 9 month = october year = 1706 }
	offset = 50
	deathdate = { day = 17 month = april year = 1711 }

	action_a = {
		name = "OK"
		command = { type = flagname which = "Saltire" }
		command = { type = setflag which = [Austracists_won] } #needed for specific events
		command = { type = add_countryculture which = basque }
		command = { type = relation which = HAB value = 400 }
		command = { type = relation which = FRA value = -100 }
		command = { type = dynastic which = HAB }
		command = { type = wakemonarch which = 0127506 } #Carlos III 
		command = { type = wakemonarch which = 0127507 } #Mara Teresa 
		command = { type = wakemonarch which = 0127508 } #Jos 
		command = { type = wakemonarch which = 0127509 } #Leopoldo 
		command = { type = wakemonarch which = 0127510 } #Fernando VI 
		command = { type = sleepmonarch which = 0127511 } #Felipe V
		command = { type = sleepmonarch which = 0127512 } #Luis I
		command = { type = sleepmonarch which = 0127513 } #Felipe V - 2nd Reign
		command = { type = sleepmonarch which = 0127514 } #Fernando VI
		command = { type = sleepmonarch which = 0127515 } #Carlos III
		command = { type = sleepmonarch which = 0127516 } #Carlos IV
		command = { type = sleepmonarch which = 0127517 } #Fernando VII
	}
}
#(1706-1740) Effects of the Austrian rule
#by Bordic
event = {
	id = 285264 #triggered by HAB_179099
	random = no
	country = SPA
	name = "EVENTNAME285264" #Effects of the Austrian rule
	desc = "EVENTHIST285264"
	#-#The Austrian line of the House of Habsburg will rule over the Low Countries and the duchy of Milan.

	action_a = {
		name = "ALAS"
		command = { type = breakvassal which = HAB }
		command = { type = stability value = 2 }
		command = { type = dynastic which = HAB }
		command = { type = relation which = HAB value = 100 }
		command = { type = capital which = 436 } #Castilla
		command = { type = cedeprovince which = HAB value = 337 } #Friesen
		command = { type = cedeprovince which = HAB value = 338 } #Geldre
		command = { type = cedeprovince which = HAB value = 339 } #Holland
		command = { type = cedeprovince which = HAB value = 340 } #Zeeland
		command = { type = cedeprovince which = HAB value = 377 } #Luxembourg
		command = { type = cedeprovince which = HAB value = 378 } #Brabant
		command = { type = cedeprovince which = HAB value = 379 } #Artois
		command = { type = cedeprovince which = HAB value = 380 } #Flandern
		command = { type = cedeprovince which = HAB value = 387 } #Franche-Comt
		command = { type = cedeprovince which = HAB value = 389 } #Lombardia
		command = { type = cedeprovince which = HAB value = 390 } #Mantua
	}
}
#(1707-1716) The decrees of Nueva Planta in Aragon and Valencia
#by Fodoron
event = {
	id = 285217
	trigger = {
		monarch = 0127511 #Felipe V
		owned = { province = 430 data = SPA } #Aragon
		owned = { province = 437 data = SPA } #Valencia
	}
	random = no
	country = SPA
	name = "EVENTNAME285217" #The decrees of Nueva Planta in Aragon and Valencia
	desc = "EVENTHIST285217"
	#-#The Spanish Habsburgs, kept the medieval system of Spanish Kingdoms. Each Kingdom, as well as other regions and cities, kept different laws and taxation system. The old Kingdom of Castile was the one that allowed more control to the King, and was the one that in a larger measure paid the price of maintaining the Spanish empire against its enemies. Less than a year after Felipe V was crowned King of Spain, Austria, England, and Holland decided to contest his succession. The ArchDuke Charles Habsburg, the candidate of the coalition, offered the former Kingdom of Aragon to swear and maintain their privileges. That, together with the hatred of the French for the loss of Rousillon, took first Valencia and Catalonia and later the rest of the Crown of Aragon to rise against their King and proclaim Charles as the new King. For the Spaniards it was a civil war between two models of state, the centralized France and the decentralized Austria. Even before the civil war was over, Felipe issued in the already recovered regions of Aragon and Valencia the decrees of Nueva Planta in 1707. The decrees suppressed the medieval kingdoms by abolishing their special laws and parliaments. This move towards centralization allowed for the imposition of a uniform tax system that greatly increased the Crown revenue. The Castilian language was also made official as the Spanish language. Other regions of Spain that kept their loyalty to the King were allowed to keep their privileges. The Catalans saw what was awaiting for them if they were defeated, increasing their determination to fight till the end.

	date = { day = 29 month = june year = 1707 }
	offset = 30
	deathdate = { day = 16 month = january year = 1716 }

	action_a = {
		name = "ACTIONNAME285217A" #Issue them
		command = { type = stability value = -1 }
		command = { type = domestic which = aristocracy value = -1 }
		command = { type = domestic which = centralization value = 1 }
		command = { type = provincetax which = 430 value = 2 } #Aragon
		command = { type = provincetax which = 437 value = 2 } #Valencia
	}
	action_b = {
		name = "ACTIONNAME285217B" #Reject them
		command = { type = stability value = 1 }
		command = { type = domestic which = aristocracy value = 1 }
		command = { type = domestic which = centralization value = -1 }
	}
}
#(1711) Charles VI elected Emperor of the Romans (SPA version)
#by Fodoron
event = {
	id = 285214 #triggered by HAB_179082
	random = no
	country = SPA
	name = "EVENTNAME179082" #Charles VI elected Emperor of the Romans
	desc = "EVENTHIST179082"
	#-#The war of Spanish succession seemed about to be won by the Grand Alliance in 1709, with France completely defeated in all fronts. Only the war in Spain seemed favorable to the Bourbons, but Louis XIV was ready to abandon his grandson in exchange for peace. But the allies were frustrated by their inability to impose the Archduke on the Spaniards, and surprised by their stern resistance, and went too far in their conditions demanding that Louis should remove his own grandson from the throne of Spain by force. This was a humiliation too big to endure, and Louis understood that he was negotiating from a position of weakness and decided to break the negotiations and renew the fight. Time would prove him right, as dissensions were already dividing the allies as the French threat receded. The Dutch and the Austrians were already at odds over the Spanish Netherlands, and the Austrians were seeing as not doing their part, occupied with the Hungarian revolt. The turning point was the unexpected death of Emperor Joseph I, at 33 years of age in April 1711. While Charles left Spain and went to Vienna to be elected emperor, the allies were not ready to reconstruct the empire of Charles V, and England immediately started peace negotiations with France without informing the Dutch or Austria.

	action_a = {
		name = "ACTIONNAME285214A" #Our chance to win the war
		command = { type = stability value = 1 }
		command = { type = DIP which = 2 value = 24 }
	}
}
#(1713) The Peace of Utrecht (SPA version)
#by Fodoron
event = {
	id = 285215
	trigger = {
		monarch = 0127511 #Felipe V
		event = 179081 #HAB: Charles crowned King of Spain in Vienna
	}
	random = no
	country = SPA
	name = "EVENTNAME285215" #The Peace of Utrecht
	desc = "EVENTHIST285215"
	#-#The Spanish war of succession was also slow to end. Since Spain and Austria had not settled the issue and it was impossible to reach an agreement between all participants, it was decided that separate peace treaties between the parties would end the war. This decision was very damaging to Spain that was left with very little negotiating power once France left the war, and that was left at the hands of a foreign King whose main interest was to win the crown of Spain and had little interest in maintaining the Spanish possessions. The series of treaties received the name of Peace of Utrecht. Spain signed a treaty with England on July 13, ceding Gibraltar and Minorca, and a monopoly on slave trade for the next 30 years. The treaty with Savoy on August 13 ceded the island of Sicily, later exchanged by Sardinia with Austria, in exchange for the renunciation of Victor Amadeus II to any right to the crown of Spain. The peace treaty with the United provinces had to wait until June 26, 1714, and that with Portugal to February 1715, but both had little consequence. However the war against Austria, now favorable to Spain, continued with the reconquest of Sardinia in 1717 and an attack on Sicily in 1718, until a quadruple alliance was formed by France, England, Netherlands and Austria forcing Spain to accept the loss of Naples, Sicily, Sardinia and Parma at the treaty of the Hague on February 17, 1720 sealing the peace between Austria and Spain. At the Peace of Utrecht, Felipe, as King of Spain, renounced his right to the crown of France, and Charles renounced the crown of Spain. During the war of Polish succession, Felipe will finally be able to recover Naples and Sicily from Austria.

	date = { day = 5 month = july year = 1713 }

	action_a = {
		name = "ACTIONNAME285215A" #The Spanish empire will never be the same...
		command = { type = remove_countryculture which = italian }
		command = { type = removecore which = 377 } #Luxembourg
		command = { type = removecore which = 378 } #Brabant
		command = { type = removecore which = 380 } #Flandern
		command = { type = removecore which = 338 } #Geldre
		command = { type = removecore which = 339 } #Holland
		command = { type = removecore which = 340 } #Zeeland
		command = { type = removecore which = 389 } #Lombardia
		command = { type = removecore which = 397 } #Sardinia
		command = { type = relation which = HAB value = 25 }
		command = { type = relation which = ENG value = 25 }
		command = { type = relation which = HOL value = 25 }
		command = { type = relation which = POR value = 25 }
		command = { type = relation which = SAV value = 25 }
		command = { type = stability value = 4 }
		command = { type = vassal which = CAT } #they'll be on their own
	}
}
#(1715) Felipe wins the crown of Spain
#by Fodoron
event = {
	id = 285216
	trigger = {
		monarch = 0127511 #Felipe V
		event = 187000 #HSP: war of Spanish succession
	}
	random = no
	country = SPA
	name = "EVENTNAME285216" #Felipe wins the crown of Spain
	desc = "EVENTHIST285216"
	#-#Charles left Spain in 1711 to take possession of the imperial crown, leaving his wife, Elizabeth Christine Brunswick, as regent. But in 1713 the situation had become untenable. A string of defeats had the Franco-Spanish armies at the doors of Barcelona, and the English had left the war. In March the empress left Barcelona, leaving Stahrenberg to reach an agreement with Felipe, and after surrendering Tarragona, the Austrians left. On the 9th of July 1713, with the Bourbon armies surrounding Barcelona, the three arms of the Barcelona courts voted on what to do. The military and ecclesiastic branches voted at first to come to terms, but in the popular arm, representing the third state, war was decided by 78 to 45 votes, forcing a turn of the tide for an all-out resistance. With numerous casualties on both sides, the Bourbon armies reconquered Barcelona on September 11, 1714. But the war would not end until June 13, 1715, when the 1000 Austrian garrison surrendered the island of Mallorca. Felipe V became the first King of Spain, instead of King of Castile and Aragon. Since his triumph was due to the loyalty of the Castilians, the coat of arms of Castile and the numbering of her Kings became those of Spain.

	date = { day = 13 month = june year = 1715 }

	action_a = {
		name = "ACTIONNAME285216A" #Spain is mine
		command = { type = inherit which = CAT }
		command = { type = badboy value = -2 }
		command = { type = breakvassal which = FRA } #death of Louis XIV
		command = { type = stability value = 2 }
		command = { type = remove_countryculture which = catalan }
		command = { type = add_countryculture which = catalan }
	}
}
#(1713-1716) The decrees of Nueva Planta in Catalonia and Baleares
#by Fodoron
event = {
	id = 285218
	trigger = {
		monarch = 0127511 #Felipe V
		atwar = no
		NOT = { exists = CAT }
		NOT = { exists = HSP }
		owned = { province = 429 data = -1 } #Catalonia
		control = { province = 429 data = -1 } #Catalonia
		owned = { province = 821 data = -1 } #The Baleares
		control = { province = 821 data = -1 } #The Baleares
	}
	random = no
	country = SPA
	name = "EVENTNAME285218" #The decrees of Nueva Planta in Catalonia and Baleares
	desc = "EVENTHIST285218"
	#-#Upon assuming full political control over Barcelona and the Baleares, King Felipe was able to issue the decrees of Nueva Planta on these territories. The decrees suppressed the medieval kingdoms by abolishing their special laws and parliaments. This move towards centralization allowed for the imposition of a uniform tax system that greatly increased the Crown revenue. The Castilian language was also made official as the Spanish language. The decree of the Baleares was signed in 1715, and the decree of Catalonia in 1716.

	date = { day = 29 month = june year = 1713 }
	offset = 60
	deathdate = { day = 16 month = january year = 1716 }

	action_a = {
		name = "ACTIONNAME285218A" #Issue them
		command = { type = stability value = -1 }
		command = { type = domestic which = aristocracy value = -1 }
		command = { type = domestic which = centralization value = 1 }
		command = { type = remove_countryculture which = catalan }
		command = { type = add_countryculture which = catalan }
		command = { type = provincetax which = 429 value = 2 } #Catalonia
		command = { type = provincetax which = 427 value = 2 } #Gerona
		command = { type = provincetax which = 821 value = 2 } #The Baleares
		command = { type = provincetax which = 426 value = 2 } #Roussillon
		#Eternal RR - wad
		command = { type = province_revoltrisk which = 429 value = 2 } #Catalonia
		command = { type = province_revoltrisk which = 427 value = 2 } #Gerona
	}
	action_b = {
		name = "ACTIONNAME285218B" #Reject them
		command = { type = stability value = 1 }
		command = { type = domestic which = aristocracy value = 1 }
		command = { type = domestic which = centralization value = -1 }
	}
}
#End of "War of Spanish succession" Sequence
#-----------------------------------------------------------------------------------------------

#(1701) Alberoni
event = {
	id = 3712
	random = no
	country = SPA
	name = "EVENTNAME3712" #Alberoni
	desc = "EVENTHIST3712"
	#-#Born in 1664 the son of a gardener in Fiorenzuela (near Placentia, Italy), Giulio Alberoni owes his political career and success to the Duke of Vendme, the French general he served in Italy, France and Spain. Agent of the Duke of Parma, he managed the wedding of Philip V of Spain with Elizabeth Farnese and become a Cardinal in 1717. His bellicose policy in Spain has him expelled in 1719. He was cunning and sly, but Spain did not have the resources needed to fulfill his ambitious plan. The Age of Spanish Supremacy was long gone.

	date = { day = 1 month = january year = 1701 }
	offset = 10
	deathdate = { day = 29 month = december year = 1701 }

	action_a = {
		name = "ACTIONNAME3712A" #An Excellent Minister!
		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 }
	}
}

#(1714-1752) Royal Academies
#by Gauna and Fodoron with the help of the Spanish Forum
event = {
	id = 285069
	trigger = {
		atwar = no
		OR = {
			monarch = 0127511 #Felipe V
			monarch = 0127512 #Luis I
			monarch = 0127513 #Felipe V - 2nd Reign
			monarch = 0127514 #Fernando VI
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285069" #Royal Academies
	desc = "EVENTHIST285069"
	#-#First created in Italy in the Renaissance, the Academies were organized centers to develop literature, arts or sciences. In the XVII century they were introduced in France where they acquired their character of national centers of promotion and authority in their subjects, under Government protection. But it is in the next century, when Enlightenment spreads all over Europe, that the rest of the countries will introduce them. In Spain, the Royal Library that would later become the National Library, was created in 1712 by Felipe V. The first Academy instituted was the Royal Academy of Spanish Language and Literature in 1714. It was followed in 1735 by the Royal Academy of History, and in 1752 by the Royal Academy of Fine Arts of San Fernando, that included Arts and Mathematics. In those years, the Royal Botanical Garden, the Astronomical Observatory, and the Natural History Royal Cabinet were also created. Constituted initially by the enlightened nobility, their members will be progresively recruited more and more from the bourgeoisie with liberal professions.

	date = { day = 3 month = october year = 1714 }
	offset = 300
	deathdate = { day = 12 month = april year = 1752 }

	action_a = {
		name = "ACTIONNAME285069A" #We need them
		command = { type = treasury value = -50 } #they were cheap
		command = { type = domestic which = innovative value = 1 }
	}
	action_b = {
		name = "ACTIONNAME285069B" #It is a waste
		command = { type = vp value = -5 }
	}
}

#(1724) Luis I of Spain
#by Fodoron
event = {
	id = 285060
	trigger = { monarch = 0127512 } #Luis I
	random = no
	country = SPA
	name = "EVENTNAME285060" #Luis I the Well-Beloved
	desc = "EVENTHIST285060"
	#-#In many lists of Spanish Kings one is missing. On the tenth of January 1724, Felipe V unexpectedly decided to abdicate. He alleged a desire to dedicate to religious works, but the death in the previous month of the Duke of Orleans, regent and heir to the throne of France had opened his possibility of inheriting the Kingdom of France from his sickly nephew, as he was the grandson of Louis XIV. By virtue of the will of Carlos II and the Peace of Utrecht, he could not rule both France and Spain, but he had not abdicated of his personal rights to the crown of France. A month later, on the 9th of February, his son Louis was crowned as King of Spain. He was 17 years old and childish, despite being already married. His court in Madrid was supervised by his father from the palace of La Granja de San Ildefonso, not far from the capital. But his rule was not to bear any consequence and was called the lightning rule, as he soon fell sick of smallpox, the same disease that exterminated the family of his cousin Louis XV of France. Luis died the 31 of August, 1724, seven months after becoming King. He was called the Well-Beloved because his very young wife cared for him during his disease despite the considerable risk to her own life. His brother Fernando was his heir, but his father Felipe illegally retook the crown, given that Louis XV of France recovered and that his second wife Isabel de Farnesio wanted to be Queen, and nobody disputed his right. But the second rule of Felipe V was worse than the first, as he was affected by a progressive mental disease, and his wife, Duchess and heir of Parma, involved Spain in the recovery of the Italian territories for her sons. Felipe V renounced to his rights to the French throne in 1725.

	date = { day = 29 month = august year = 1724 }

	action_a = {
		name = "ACTIONNAME285060A" #The King is dead. Long life the King
		command = { type = stability value = -1 }
		command = { type = ADM which = -2 value = 131 }
		command = { type = DIP which = -2 value = 262 }
	}
}

#(1733) The Polish Succession of 1733
event = {
	id = 285271
	trigger = {
		monarch = 0127513 #Felipe V - 2nd Reign
		event = 3136 #FRA: The Polish Succession of 1733
		NOT = {
			war = { country = FRA country = SPA }
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME3495" #The Polish Succession of 1733
	desc = "EVENTHIST285271"
	#-#In 1733, the death of August II prompted a new election for the Polish monarch. Due to the permanent practice of Liberum Veto and the ensuing constant bribery, the Polish Sejm was unable to agree between the French Candidate, Stanislaw Leszczynski and his opponent, August III of Saxony, supported by Austria and Russia. The Sejm finally agreed on Stanislas, but this was rejected by Austria and Russia starting the war of Polish Succession. The war ended with August III on the Polish throne. All members of the House of the Bourbons are requested to stay tight against the Habsburg threat.

	date = { day = 13 month = september year = 1733 }
	offset = 10
	deathdate = { day = 29 month = december year = 1733 }

	action_a = {
		name = "ACTIONNAME285271A" #Risk Local War in Italy
		command = { type = casusbelli which = HAB value = 24 }
		command = { type = relation which = POL value = 100 }
		command = { type = relation which = RUS value = -100 }
		command = { type = relation which = HAB value = -100 }
		command = { type = relation which = SAC value = -150 }
		command = { type = relation which = PRU value = 100 }
		command = { type = relation which = SWE value = 100 }
		command = { type = relation which = FRA value = 100 }
		command = { type = stability value = 1 }
	}
	action_b = {
		name = "ACTIONNAME285271B" #Risk Major War in Europe
		command = { type = casusbelli which = RUS value = 24 }
		command = { type = casusbelli which = HAB value = 24 }
		command = { type = casusbelli which = SAC value = 24 }
		command = { type = relation which = POL value = 150 }
		command = { type = relation which = RUS value = -150 }
		command = { type = relation which = HAB value = -150 }
		command = { type = relation which = SAC value = -150 }
		command = { type = relation which = PRU value = 150 }
		command = { type = relation which = SWE value = 150 }
		command = { type = relation which = FRA value = 150 }
		command = { type = stability value = -1 }
	}
}

#(1734-1790) The Kingdom of Naples and Sicily
#by Bordic
event = {
	id = 285096
	trigger = {
		OR = {
			event = 3495 #POL: The Polish Succession of 1733 -I-
			event = 258086 #POL: The Polish Succession of 1733 -II-
		}
		OR = {
			monarch = 0127513 #Felipe V - 2nd Reign
			monarch = 0127514 #Fernando VI
			monarch = 0127515 #Carlos III
			monarch = 0127516 #Carlos IV
		}
		atwar = no
		NOT = { exists = NAP }
		NOT = { exists = SIC }
		owned = { province = 393 data = -1 } #Napoli
		OR = {
			owned = { province = 396 data = -1 } #Sicily
			owned = { province = 395 data = -1 } #Messina
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285096" #The Kingdom of Naples and Sicily
	desc = "EVENTHIST285096"
	#-#In the war of Polish succession Felipe V of Spain supported France in her fight against Austria and Russia in order to make the French candidate to be elected as King of Poland. He hoped in this way to secure Mantua for the elder son, Don Carlos, who, already Duke of Parma as Carlo I, had also the expectation of Tuscany and to give the Kingdoms of Naples and Sicily to the younger son, Don Felipe. Since Austria was fighting on several fronts on the Rhine against France and on Lombardia against Savoy, Spain easily conquered Naples and Sicily which Austria had previously occupied during the war of Spanish succession. In 1735 the peace treaty that followed the war of Polish succession established that Felipe's son Carlos (later Charles III of Spain) should give up the duchy of Parma, which he had inherited in 1731 as descent of the Farnese family through his mother, Elisabetta Farnese, Queen of Spain and any claim to Tuscany, given to the Duke of Lorraine after Gian Gastone, the last of the Medicis, died. In exchange for that, Don Carlos was confirmed the possession of his conquests in Southern Italy. On 3 October 1735 Don Carlos, named Carlo VII King of Naples and Carlo V King of Sicily, established the cadet line of the Spanish House of Bourbons in the Kingdoms of Naples and Sicily (renamed Kingdom of Two Sicilies after 1815).

	date = { day = 3 month = july year = 1734 }
	offset = 360
	deathdate = { day = 0 month = january year = 1790 }

	action_a = {
		name = "ACTIONNAME285096A" #Establish the Bourbon-Naples dynasty
		command = { type = remove_countryculture which = italian }
		command = { type = domestic which = centralization value = 1 }
		command = { type = independence which = NAP }
		command = { type = independence which = SIC }
		command = { type = removecore which = 393 } #Napoli
		command = { type = removecore which = 394 } #Apulia
		command = { type = removecore which = 395 } #Messina
		command = { type = removecore which = 396 } #Sicily
		command = { type = relation which = PAP value = 50 }
		command = { type = relation which = HAB value = 50 }
		command = { type = relation which = SAV value = 50 }
		command = { type = trigger which = 239015 } #NAP: The Kingdom of Naples and Sicily
	}
	action_b = {
		name = "ACTIONNAME285096B" #Naples and Sicily are parts of Spain
		command = { type = remove_countryculture which = italian }
		command = { type = stability value = -2 }
		command = { type = domestic which = serfdom value = -1 }
		command = { type = domestic which = centralization value = -2 }
		command = { type = infra value = -1000 }
		command = { type = relation which = PAP value = -50 }
		command = { type = relation which = HAB value = -100 }
		command = { type = relation which = SAV value = -50 }
	}
}

#(1734-1759) The independence of Sicily
#by Bordic
event = {
	id = 285206 #triggered by NAP_239025
	random = no
	country = SPA
	name = "EVENTNAME285206" #The independence of Sicily
	desc = "EVENTHIST239025"
	#-#The diplomatic handlings which followed the war of Polish succession established that Don Carlos, son from the second marriage of King Felipe V with Elisabetta Farnese and current duke of Parma and legitimate successor to the Medici dynasty in the Grand Duchy of Tuscany, would be assigned the Kingdom of Naples and Sicily if he had renounced both his ducal titles. Don Carlos, named Carlo VII King of Naples and Carlo V King of Sicily would establish the cadet line of the Spanish House of Bourbons in the Kingdoms of Naples and Sicily.

	action_a = {
		name = "ACTIONNAME285206A" #Concede Sicily to Don Carlos
		command = { type = remove_countryculture which = italian }
		command = { type = dynastic which = NAP }
		command = { type = removecore which = 393 } #Napoli
		command = { type = removecore which = 394 } #Apulia
		command = { type = removecore which = 395 } #Messina
		command = { type = removecore which = 396 } #Sicily
		command = { type = cedeprovince which = NAP value = 393 } #Napoli
		command = { type = cedeprovince which = NAP value = 394 } #Apulia
		command = { type = cedeprovince which = NAP value = 395 } #Messina
		command = { type = cedeprovince which = NAP value = 396 } #Sicily
		command = { type = relation which = PAP value = 50 }
		command = { type = relation which = HAB value = 50 }
		command = { type = sleepevent which = 285096 } #SPA: The Kingdom of Naples and Sicily
	}
	action_b = {
		name = "ACTIONNAME285206B" #Sicily is still part of Spain
		command = { type = remove_countryculture which = italian }
		command = { type = stability value = -1 }
		command = { type = domestic which = centralization value = -1 }
		command = { type = infra value = -1000 }
		command = { type = badboy value = 5 }
		command = { type = relation which = HAB value = -50 }
		command = { type = relation which = PAP value = -50 }
		command = { type = relation which = NAP value = -50 }
		#in case NAP already exists either in Napoli or in Apulia
		command = { type = cedeprovince which = NAP value = 393 } #Napoli
		command = { type = cedeprovince which = NAP value = 394 } #Apulia
	}
}

#(1741) The Effects of the Pragmatic Sanction
event = {
	id = 3174
	trigger = {
		monarch = 0127513 #Felipe V - 2nd Reign
		event = 3138 #FRA: The Effects of the Pragmatic Sanction
		NOT = {
			war = { country = FRA country = SPA }
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME3205" #The Effects of the Pragmatic Sanction
	desc = "EVENTHIST3205"
	#-#The Pragmatic Sanction, solemnly rendered by Emperor Charles VI on 19th April 1713, established the indivisibility of the Habsburg patrimony, and ruled the order of succession by order of first born child, even to a woman. This made Maria-Theresa, born in 1717, the heir of the Empire. The Pragmatic Sanction was recognized by Spain in 1725 (confirmed in 1731), Russia in 1726, Prussia in 1728, the United Provinces in 1731, Hanover in 1732, the Heiliges Reich (except Bavaria) in 1732 and France in 1738 only. Bavarian refusal would lead to the War of the Austrian Succession. After her elder son Don Carlos succeeded in being proclaimed King of Naples and Sicily, Elizabeth Farnese, Queen of Spain, could exploit the critical political situation in the Empire in her favour trying to retake the duchy of Parma (an old Farnese family possession which, as clause of the peace treaty that followed the War of Polish Succession in 1735, was ceded to Austria in exchange of the Kingdoms of Naples and Sicily) and assign it to her younger son Don Felipe.

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

	action_a = {
		name = "ACTIONNAME3616A" #Anti-Habsburg
		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 }
		command = { type = trigger which = 285272 } #SPA: Queen Elizabeth's ambitions
	}
	action_b = {
		name = "ACTIONNAME3616B" #Neutral
		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 }
	}
}
#(1741) Queen Elizabeth's ambitions
#by Bordic
event = {
	id = 285272 #triggered by SPA_3174 A
	trigger = {
		event = 285271 #SPA: The Polish Succession of 1733
	}
	random = no
	country = SPA
	name = "EVENTNAME285272" #Queen Elizabeth's ambitions
	desc = "EVENTHIST285272"
	#-#After her elder son Don Carlos succeeded in being proclaimed King of Naples and Sicily, Elizabeth Farnese, Queen of Spain, could exploit the critical political situation in the Empire in her favour trying to retake the duchy of Parma (an old Farnese family possession which, as clause of the peace treaty that followed the War of Polish Succession in 1735, was ceded to Austria in exchange of the Kingdoms of Naples and Sicily) and assign it to her younger son Don Felipe.

	action_a = {
		name = "GOOD"
		command = { type = addcore which = 402 } #Emilia
	}
}

#(1748-1802) Bourbon Restoration in Parma
#by Bordic - tweaked by Aylo1
event = {
	id = 285097
	trigger = {
		core = { province = 402 data = -1 } #Emilia
		owned = { province = 402 data = -1 } #Emilia
		NOT = { exists = PAR }
		atwar = no
	}
	random = no
	country = SPA
	name = "EVENTNAME285097" #Bourbon Restoration in Parma
	desc = "EVENTHIST285097"
	#-#A Farnese on his mother's side Don Carlo di Borbon succeeded his great-uncle Antonio Farnese in 1731, becoming Carlo I of Parma. In 1735 Parma was ceded to Emperor Charles VI for the Two Sicilies. It remained in Habsburg hands till the Treaty of Aix-la-Chapelle in 1748, when it was ceded back to Don Carlo's brother, Don Filippo. His line (Bourbon-Parma) governed the Duchy till being displaced by Napolon in 1802. In 1814 the Congress of Vienna granted Parma to Napolon's Austrian wife Marie-Louise, who ruled as Duchess till her death in 1847, when it was restored again to the Bourbons.

	date = { day = 18 month = october year = 1748 }
	offset = 250
	deathdate = { day = 1 month = january year = 1802 }

	action_a = {
		name = "ACTIONNAME285097A" #Reestablish the Bourbon-Parma line
		command = { type = independence which = PAR }
		command = { type = removecore which = 402 } #Emilia
		command = { type = relation which = NAP value = 25 }
		command = { type = relation which = SIC value = 25 }
	}
	action_b = {
		name = "ACTIONNAME285097B" #Keep it for ourselves
		command = { type = domestic which = serfdom value = 1 }
		command = { type = domestic which = centralization value = -1 }
		command = { type = addcore which = 402 } #Emilia
		command = { type = badboy value = 5 }
	}
}

#(1748) The naval reforms of Ensenada
#by Invernalia and Fodoron with the help of the Spanish Forum
event = {
	id = 285067
	random = no
	country = SPA
	name = "EVENTNAME285067" #The naval reforms of Ensenada
	desc = "EVENTHIST285067"
	#-#Zenon Somodevilla, marquis of Ensenada, was a minister of the King of Spain, who realized that the Spanish navy was falling behind those of other nations. He started a program of naval reformation by studying the naval technologies of every country in Northern Europe, from England to Russia, even resorting to industrial spionage. He then hired English shipbuilders, and constructed what would become Spanish modern shipyards at Ferrol (Corua), Cartagena (Murcia) and Cadiz. His reforms were very succesful and allowed the Spanish navy to remain competitive until the Napoleonic wars. Over the seventeen century, sediments had covered the bottom of the Guadalquivir river, and Sevilla lost her famous port.

	date = { day = 15 month = march year = 1748 }

	action_a = {
		name = "ACTIONNAME285067A" #Reform the Navy
		command = { type = treasury value = -200 }
		command = { type = naval value = 1000 }
		command = { type = domestic which = LAND value = -1 }
		command = { type = domestic which = mercantilism value = 1 }
		command = { type = warships which = -1 value = 5 }
		command = { type = gainbuilding which = 433 value = shipyard } #Galicia
		command = { type = losebuilding which = 443 value = shipyard } #Andalusia
	}
	action_b = {
		name = "ACTIONNAME285067B" #Reform the Army instead
		command = { type = treasury value = -100 }
		command = { type = land value = 1000 }
		command = { type = domestic which = LAND value = 1 }
		command = { type = inf which = -1 value = 5000 }
	}
}

#(1749) The great Gypsy round-up
#by Fodoron
event = {
	id = 285087
	random = no
	country = SPA
	name = "EVENTNAME285087" #The great Gypsy round-up
	desc = "EVENTHIST285087"
	#-#Linguistic and genetic analysis indicates that Romanies or Gypsies are probably the descendants of a small group of Punjab or Sindh mercenaries at the service of Yamin ul-Dawlah Mahmud, Turkish ruler of Ghazni, who carried out seventeen invasions of India between the years 1001-1026. With the end of the Ghaznavid empire, the Romanies were pushed Westward through Turkish lands while growing in numbers, arriving to the Byzantine empire in the XII century. Soon the Ottomans pushed them further West and they entered the Balkans during the XIV century, were large numbers established. Many continued further West arriving to Western Europe at the beginning of the XV century. In Spain they are first recorded in 1420. As a curiosity, four Gypsies accompanied Columbus on his third voyage to the New World. Despite their European migration, and due to their own ignorance about their origins, they were though to come from Egypt, and they were called Gypsies (from Egyptians). Their nomadic ways were not well received, and they were prosecuted in every country, with specific laws that limited their movement, confined them to certain places, forced them to labor or even expelled them and in some cases executed them. Spain was not an exception in the repression of the Romanies, and one episode was especially terrible. In July 30, 1749, a great inquiry was started to identify the 'bad' Gypsies under the auspices of the marquis of Ensenada, minister of war, and Bishop Gaspar Vzquez Tablada, head of the Royal Council. 12,000 men, women and children were captured over the next days by the army, with the complicity of the Church which had retired the Gypsies the right to Holy Asylum two years before. They were separated, and some men taken to galleys, but most of them went to work as slaves in the shipyards of Cadiz, Cartagena and Ferrol, while the women were confined with their children in Valencia, Zaragoza and Sevilla, and forced to work in manufactories to support themselves, while their properties were seized and sold to reward those that participated in the prosecution. Some voices rose against the measure, and the government started releasing the old and the widows the same year. But it will not be until June 16, 1763 when the King will issue an indult, although the last ones will not be released until 1766, after having spent 17 years in confinement, ruined, their families broken. In Bizet's opera Carmen, the Romani works in a tobacco manufactory, a reminiscence of the great Gypsy round-up.

	date = { day = 29 month = july year = 1749 }

	action_a = {
		name = "ACTIONNAME285087A" #Repress them
		command = { type = domestic which = innovative value = -1 }
		command = { type = treasury value = 50 }
	}
	action_b = {
		name = "ACTIONNAME285087B" #Leave them alone
		command = { type = domestic which = innovative value = 1 }
	}
}

#(1750-1751) The expedition of La Condamine (for SPA) - Flavor
#by mfigueras
event = {
	id = 285200
	trigger = { event = 170118 } #FRA: The true sphericity of the Earth
	random = no
	country = SPA
	name = "EVENTNAME170118" #The true sphericity of the Earth
	desc = "EVENTHIST170118"
	#-#In the 1730s the french physicist Pierre de Maupertuis proposed the organization of two scientific expeditions in order to test whether the Earth was flattened at the poles (as predicted by Newton) or flattened at the equator (as predicted by Descartes). One expedition, with Maupertuis and Clairaut, travelled to Laponia and the other, with La Condamine and Antonio de Ulloa, to the vice-royalty of Peru, near Quito. Both expeditions measured a certain fraction of degree of the Earth's sphere and compared the longitudes obtained. The results showed the correctness of Newton's hypothesis. These two expedition were one of the first true international scientific enterprises, involving, among others, french, swedish, spanish and ecuadorian scientists.

	date = { day = 1 month = january year = 1750 }
	offset = 360
	deathdate = { day = 1 month = december year = 1751 }

	action_a = {
		name = "ACTIONNAME285200A" #An interesting expedition
		command = { type = infra value = 25 }
		command = { type = naval value = 25 }
	}
}

#(1753) Submission of the national Church
#by Gauna and Fodoron with the help of the Spanish forum
event = {
	id = 285095
	trigger = {
		monarch = 0127514 #Fernando VI
	}
	random = no
	country = SPA
	name = "EVENTNAME285095" #Submission of the national Church
	desc = "EVENTHIST285095"
	#-#It was a constant for Catholic monarchs to attempt to reduce the power of Rome in their countries. The justification for this struggle was the belief that the right to rule as monarch emanated directly from God, cornerstone of the Feudal system, but it was a fight for power and money. The means to achieve this independence from Rome were the regalias extracted from the Pope when the King was in a position of strength. The main regalias were the Royal patronage and the Royal exequatur. The exequatur allowed Kings to intervene in the application of Pontifical decisions, while the patronage gave them the right to decide in the distribution of Church money and fill vacant positions with their candidates. Fernando the Catholic, after a long struggle, obtained the control of the Church of the Americas, while Carlos I and Felipe II obtained important regalias. With Felipe V, the pro-Habsburg Church and the Bourbon King clashed to the point of reaching a suspension of relations in 1709. But the papacy of the eighteenth century was in no position to contest the growing independence of the temporal powers, while the revival of Spain under the Bourbons rendered hopeless any struggle against the resolve of the monarchs to regulate the internal affairs of the Kingdom. On January 11, 1753, Fernando VI and Pope Benedict XIV signed a concordat re-establishing relations. The Concordat of 1753 awarded the King of Spain Universal Royal Patronage, and reserved for the Pope the right to name only 52 ecclesiastical positions in the Spanish empire, none outside of Spain. The high-ranking Churchmen knew very well to whom they owed allegiance from then on.

	date = { day = 11 month = january year = 1753 }

	action_a = {
		name = "ACTIONNAME285095A" #This Concordat is a victory
		command = { type = domestic which = innovative value = 1 }
		command = { type = relation which = PAP value = 25 } #re-establishment
		command = { type = provincetax which = -1 value = 1 } #diezmos from Church to Crown
		command = { type = provincetax which = -1 value = 1 }
		command = { type = provincetax which = -1 value = 1 }
		command = { type = provincetax which = -1 value = 1 }
	}
	action_b = {
		name = "ACTIONNAME285095B" #The Pope should rule the Church
		command = { type = domestic which = innovative value = -1 }
		command = { type = relation which = PAP value = 200 }
	}
}

#(1753-1772) The family pact
#by Bordic
event = {
	id = 285203
	trigger = {
		event = 170120 #FRA: The Diplomatic Revolution
		NOT = { war = { country = FRA country = SPA }
			war = { country = HAB country = SPA }
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285203" #The family pact
	desc = "EVENTHIST179053"
	#-#In 1740s the problem of Maria Theresia's succession to the Austrian throne and to the Habsburg inheritance caused a big instability in the European balance of powers which led to the War of Austrian succession. The peace that followed the conflict, provoked by the foreign opposition to the Pragmatic Sanction stated by the former Emperor Charles VI and ended with the Treaty of Aix-la-Chapelle in 1748, resulted in a well defined rivalry between major European powers forming essentially two main political formations: the alliance of the socalled 'Bourbon family pact' (France, Spain, Naples and the latest Parma, all with members of the same House of Bourbons) with Prussia and the alliance between Austria, Russia and England. Disappointed by England's interested approaches to the emerging power of Prussia wich led to the Convention of Westminster, a treaty with which both countries would avoid any foreign military presence or access in the German territories, Austria strengthened her political ties with Saxony, Russia and Sweden and started new diplomatic handlings with France, traditionally an arch-enemy of the Habsburgs since the old dispute over the Burgundian inheritance but for sure the most powerful antagonist to the rising British colonial empire. And an alliance with France would also mean the support of Spain and the Bourbon Italian monarchies. That diplomatic move would lead to a huge world conflict fought in the years between 1756 and 1763: the socalled 'Seven Years War'.

	date = { day = 1 month = January year = 1753 }
	offset = 20
	deathdate = { day = 0 month = january year = 1772 }

	action_a = {
		name = "ACTIONNAME170120A" #Side with the Habsburgs
		command = { type = casusbelli which = PRU value = 36 }
		command = { type = casusbelli which = ENG value = 36 }
		command = { type = relation which = FRA value = 150 }
		command = { type = relation which = HAB value = 150 }
		command = { type = relation which = RUS value = 150 }
		command = { type = relation which = SWE value = 150 }
		command = { type = relation which = SAC value = 150 }
		command = { type = relation which = ENG value = -150 }
		command = { type = relation which = PRU value = -150 }
	}
	action_b = {
		name = "ACTIONNAME285203B" #Maintain old alliances
		command = { type = stability value = -1 }
		command = { type = casusbelli which = HAB value = 36 }
		command = { type = relation which = FRA value = 50 }
		command = { type = relation which = HAB value = -75 }
		command = { type = relation which = RUS value = 25 }
		command = { type = relation which = SWE value = 25 }
		command = { type = relation which = SAC value = 25 }
		command = { type = relation which = ENG value = 25 }
		command = { type = relation which = PRU value = 25 }
	}
}

#(1766) Enlightenment reforms of Carlos III
#by Fodoron with the help of the Spanish Forum
event = {
	id = 285071
	trigger = { monarch = 0127515 } #Carlos III
	random = no
	country = SPA
	name = "EVENTNAME285071" #Enlightenment reforms of Carlos III
	desc = "EVENTHIST285071"
	#-#Carlos III was King of Naples when he became King of Spain at the death of his half-brother Fernando VI, and he brought with him several Italian administrators. Sicilian Leopoldo Gregorio, marquis of Squillace (in Calabria), was his favorite minister. Carlos, after 30 years of absence from Spain did not identify himself with the country, and was a reformist, clear example of enlightened absolutism. The Government of Esquilache, as he was known in Spain, introduced very needed economic reforms, but was defeated in its attempts to tax the nobility. However the creation of the Royal Lottery increased the state revenues, and the economical power of the Church was limited. Other important measures were the banning of private weapons, and the night lighting and organization of trash cleaning in Madrid, considered the dirtiest city in Europe.

	date = { day = 23 month = march year = 1766 }

	action_a = {
		name = "ACTIONNAME285071A" #Introduce reforms
		command = { type = treasury value = 50 } #Lottery
		command = { type = domestic which = innovative value = 1 }
		command = { type = trigger which = 285072 } #SPA: The Esquilache riots
	}
	action_b = {
		name = "ACTIONNAME285071B" #Reject reforms
		command = { type = domestic which = innovative value = -1 } #triumph of anti-reformists
	}
}
#(1766) The Esquilache riots
#by Fodoron with the help of the Spanish Forum
event = {
	id = 285072 #triggered by SPA_285071
	random = no
	country = SPA
	name = "EVENTNAME285072" #The Esquilache riots
	desc = "EVENTHIST285072"
	#-#The reforms introduced by Esquilache were badly needed, however, the precarious economic situation suggested a more cautious approach. The liberalization of grain prices in a context of several bad crops produced a sharp increase in bread prices provoking the discontent in the lower classes. Esquilache, still impetuous and against advice by other counselors, published a decree banning the long cloaks and wide rim hats in use, because of security reasons. Indeed brigands were using the cloaks to hide weapons, and the hats to hide their identity. But for the populace of Madrid, it was the last straw from the hated Italian ministers, made responsible for the price crisis, and they riotted destroying the street lamps recently installed. They requested from the King the reduction of bread price and the expulsion of Esquilache. The King, surprised by the revolt, but seeing that his authority was not questioned, agreed to their demands. Esquilache went back to Sicily, and was years later named ambassador in Venice. However the King used the change of administration to introduce the Spanish reformists and oust the anti-reformists. Pedro Pablo Abarca, count of Aranda, became the Spanish prime minister. Aranda, took a different approach to the problem. He convinced the nobility to change their outfit, and decreed that the official executioner would dress a long cloak and wide rim hat, and soon everybody stopped using them.

	action_a = {
		name = "ACTIONNAME285072A" #Uneducated masses are not so easy to handle
		command = { type = stability value = -1 }
		command = { type = revolt which = -2 }
		command = { type = ADM which = -2 value = 6 }
	}
}

#(1767) Expulsion of the Jesuits
#by Fodoron with the help of the Spanish Forum
event = {
	id = 285073
	trigger = { event = 285072 } #SPA: The Esquilache riots
	random = no
	country = SPA
	name = "EVENTNAME285073" #Expulsion of the Jesuits
	desc = "EVENTHIST285073"
	#-#After the Esquilache riots, a comission was formed to investigate their instigators. It was considered that the populace could not produce the ellaborate pamphlets that had inflamated the masses. Probably the nobility was behind them, since they hated Esquilache for his fiscal policies of taxing the rich. However the comission found a more convenient scapegoat, the Society of Jesus. Already at a low point after their expulsion from Portugal in 1758, and France in 1764, the Jesuits were seeing as being more affect to the Pope than to the King, and had a fame of regicides after the assesination attempt at Jose I of Portugal of which they were accused of having prior knowledge. Secret orders were distributed to be opened at midnight on the first of April, and in the next morning, 6000 Jesuits were marched like convicts to the coast and embarked towards Papal States. The Spanish and Italian Bourbons, then used all their influence to have the order suppressed by the next Pope in 1673. The properties of the Jesuits in Spain and all her territories were seized, and the important void that the Jesuits left in higher education was used to reform it.

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

	action_a = {
		name = "ACTIONNAME285073A" #Expell them
		command = { type = treasury value = 100 }
		command = { type = domestic which = innovative value = 1 }
		command = { type = relation which = PAP value = -25 }
	}
	action_b = {
		name = "ACTIONNAME285073B" #Do not expell them
		command = { type = relation which = PAP value = 25 }
		command = { type = sleepevent which = 285093 } #SPA: Fray Junpero Serra
		command = { type = sleepevent which = 285185 } #SPA: The ruin of the Reductions of Paraguay
	}
}

#(1768) The colonization of California II
#by Fodoron
event = {
	id = 285093
	trigger = { event = 285073 } #SPA: The expulsion of the Jesuits
	random = no
	country = SPA
	name = "EVENTNAME285093" #Fray Junpero Serra
	desc = "EVENTHIST285093"
	#-#The expulsion of the Jesuits decreed by Carlos III reached their missions in California in February 1768, when Gaspar de Portol arrived with 16 Franciscan friars directed by Fray Junpero Serra, to replace the 16 Jesuits. In 70 years the Jesuits had created 20 villages and 18 missions, although four were closed due to plagues. The Franciscans arrived with the idea of expanding north, and unlike the Jesuits, had full support of the Crown, because there was news of the arrival of the Russians to the coasts of California. Fray Junpero founded the mission of San Diego the next year, Monterrey in 1770, and San Francisco in 1776. Soon there were nine Franciscan missions in Alta California thanks to the untiring priests, incorporating a big territory to the crown of Spain. Around the missions soon cities started to grow, and colonists from Spain arrived.

	date = { day = 3 month = february year = 1768 }

	action_a = {
		name = "ACTIONNAME285093A" #Send the priests
		command = { type = colonists value = 3 }
		command = { type = wakeleader which = 0127883 } #Friar Junpero Serra (SPA)
	}
}
#(1769) Jos Monino's Reforms
event = {
	id = 3094
	trigger = {
		event = 285093 #SPA: Fray Junpero Serra
	}
	random = no
	country = SPA
	name = "EVENTNAME3094" #Jos Monino's Reforms
	desc = "EVENTHIST3094"
	#-#After the expulsion of the Jesuits from Spain (1767), he was sent to Rome as ambassador to obtain the papal suppression of the Society of Jesus. He was ennobled (1773) for the success of his mission. In 1776 Charles III appointed him chief minister. Under Florida Blanca, Spanish enlightened despotism reached its peak, but his internal reforms, notably in finance, He made peace and concluded economic treaties with the Ottoman Empire and with Morocco and reached agreement with Portugal.

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

	action_a = {
		name = "ACTIONNAME3094A" #Reform
		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 = {
		name = "ACTIONNAME3094B" #Do not reform
		command = { type = stability value = 2 }
		command = { type = treasury value = 300 }
	}
}

#(1771) The end of the galleys
#by Daovir and Fodoron with the help of the Spanish forum
event = {
	id = 285094
	random = no
	country = SPA
	name = "EVENTNAME285094" #The end of the galleys
	desc = "EVENTHIST285094"
	#-#The prestige gained at Lepanto, allowed the Mediterranean galley fleets of Spain to survive past their usefulness. To man them, the Spanish Justice automatically exchanged the death penalty for 10 years as a galley conscript forming part of the chusma (rowing gang). Both penalties were equivalent, as nobody could survive ten years as a galley oarsman due to the appalling conditions. Lesser crimes could net the offender with a minimum of two years service. Already in mid 1600s, the Navy High Command started to reject the use of galleys in combat as they simply could not face a ship of the line and survive. However the Justice Department demanded their use as floating labor prisons for their supposed deterrent effect on crime. When the decadent Spanish Navy was reorganized by the Marquis of Ensenada and converted back into a first rate Navy, it was clear that the remaining galleys had to be disposed of, and in the Royal decree of March 12, 1771 it was ordered that the punishment in galleys had to be exchanged by forced labor in the Shipyards. But the Justice Department would still have it their way, and the decree was suspended in 1785 with the galley conscription restored. The Navy then decided to stop maintaining the existing galleys and did not build any new one, so in a few years they were all decommissioned, and a new Royal decree on December 30, 1803 finally abolished the galley punishment for lack of galleys. After more than three thousand years reigning in the Mediterranean, the galleys were finally gone.

	date = { day = 12 month = march year = 1771 }

	action_a = {
		name = "ACTIONNAME285094A" #About time
		command = { type = naval value = 5000 }
	}
}

#(1773-1783) The American Revolution
#by Bordic
event = {
	id = 285240
	trigger = {
		monarch = 0127515 #Carlos III
		exists = USA
		war = { country = USA country = ENG }
		NOT = {
			war = { country = USA country = SPA }
			war = { country = FRA country = SPA }
			alliance = { country = ENG country = SPA }
			event = 4983 #ENG: The Treaty of Paris (USA has won)
			event = 4984 #ENG: The Treaty of Paris (ENG has lost territories)
			event = 4985 #ENG: The Destruction of the Tax Revolt (ENG has won, no USA)
			event = 3052 #ENG: The North American Union (no USA, FRA radical republic)
			event = 4987 #ENG: Colonial dissatisfaction cools (no USA, patch event reducing RR)
			neighbour = USA #Spain shouldn't own any of the potentially rebelling provinces
		}
		event = 3049 #ENG: The American Revolution
		event = 12099 #FRA: The American Revolution
	}
	random = no
	country = SPA
	name = "EVENTNAME12099" #The American Revolution
	desc = "EVENTHIST285240"
	#-#To the Spanish monarchy, the American war of independence was an opportunity to recover the losses to Britain in the Seven Years War. However opposition to the war within the government and concerns in supporting a colonial rebellion, delayed the entrance of Spain in the war. Cautiously, Spain decided to support the rebels under cover, providing guns, supplies and money. The money was provided through the French government, who conveniently forgot to inform about its origin to the rebels. Meanwhile, preparations for a likely war proceed and Bernardo de Glvez assembled an army in Louisiana.

	date = { day = 1 month = january year = 1774 }
	offset = 30
	deathdate = { day = 1 month = september year = 1783 }

	action_a = {
		name = "ACTIONNAME12099A" #Support the United States
		command = { type = treasury value = -500 }
		command = { type = relation which = USA value = 150 }
		command = { type = relation which = FRA value = 100 }
		command = { type = relation which = ENG value = -150 }
		command = { type = setflag which = [support_US] }
		command = { type = province_revoltrisk which = 54 value = -70 } #Savannah
		command = { type = province_revoltrisk which = 62 value = -70 } #Carolina
		command = { type = province_revoltrisk which = 63 value = -70 } #Santee
		command = { type = province_revoltrisk which = 64 value = -70 } #Roanoke
		command = { type = province_revoltrisk which = 68 value = -70 } #Chesapeake
		command = { type = province_revoltrisk which = 85 value = -70 } #Susquehanna
		command = { type = province_revoltrisk which = 86 value = -70 } #Delaware
		command = { type = province_revoltrisk which = 87 value = -70 } #Manhattan
		command = { type = province_revoltrisk which = 88 value = -70 } #Catskill
		command = { type = province_revoltrisk which = 100 value = -70 } #Adirondak
		command = { type = province_revoltrisk which = 101 value = -70 } #Sebago
		command = { type = province_revoltrisk which = 102 value = -70 } #Connecticut
		command = { type = province_revoltrisk which = 103 value = -70 } #Massachusetts
		command = { type = province_revoltrisk which = 104 value = -70 } #Penobscot
	}
	action_b = {
		name = "ACTIONNAME12099B" #Live and Let Die
		command = { type = relation which = USA value = -100 }
		command = { type = relation which = FRA value = -100 }
		command = { type = relation which = ENG value = 50 }
		command = { type = sleepevent which = 285241 } #SPA: A good opportunity in North America
	}
}

#(1776-1782) Creation of the Viceroyalty of Rio de La Plata
event = {
	id = 3176
	trigger = {
		owned = { province = 223 data = -1 }
		owned = { province = 222 data = -1 }
		owned = { province = 217 data = -1 }
		owned = { province = 215 data = -1 } #conjunt mnim
		domestic = { type = innovative value = 2 }
		NOT = { domestic = { type = innovative value = 9 } }
		NOT = { exists = LAP }
	}
	random = no
	country = SPA
	name = "EVENTNAME3176" #Creation of the viceroyalty of Ro de La Plata
	desc = "EVENTHIST3176"
	#-#In the late 18th century Spain was far from its former power and glory. However the creation of the Viceroyalty of Rio de la Plata 1776 to get a better rule of the colonial areas as well as manage a better defense of its colonial areas quickly made a big difference in revenues by tripling the income to the Spanish government. Of course not all subjects in the colony areas liked the stricter colony areas liked the stricter control and thus higher taxes.

	date = { day = 1 month = march year = 1776 }
	offset = 10
	deathdate = { day = 1 month = august year = 1782 }

	action_a = { name = "ACTIONNAME3176A" #Govern through Spanish Governors
		command = { type = stability value = -1 }
		command = { type = treasury value = -100 }
		command = { type = province_revoltrisk which = 223 value = 4 } #Aires
		command = { type = province_revoltrisk which = 222 value = 4 } #Rosario
		command = { type = province_revoltrisk which = 217 value = 4 } #Parana
		command = { type = province_revoltrisk which = 215 value = 4 } #Uruguay
		command = { type = province_revoltrisk which = 216 value = 4 } #Artigas
		command = { type = province_revoltrisk which = 214 value = 2 } #Cangucu
		command = { type = province_revoltrisk which = 213 value = 4 } #Curitiba
		command = { type = province_revoltrisk which = 218 value = 4 } #Neembucu
		command = { type = province_revoltrisk which = 221 value = 4 } #Corrientes
		command = { type = province_revoltrisk which = 1485 value = 4 } #Pampas del Norte
		command = { type = province_revoltrisk which = 1486 value = 4 } #Pampas del Sur
		command = { type = province_revoltrisk which = 220 value = 2 } #Jujuy
		command = { type = province_revoltrisk which = 219 value = 2 } #Tucuman
		command = { type = province_revoltrisk which = 171 value = 4 } #Moquega
		command = { type = province_revoltrisk which = 225 value = 4 } #San Matias
		command = { type = province_revoltrisk which = 224 value = 4 } #Copetonas
		command = { type = provincetax which = 223 value = 1 } #Aires
		command = { type = provincetax which = 222 value = 1 } #Rosario
		command = { type = provincetax which = 217 value = 1 } #Parana
		command = { type = provincetax which = 215 value = 1 } #Uruguay
		command = { type = provincetax which = 216 value = 1 } #Artigas
		command = { type = provincetax which = 213 value = 1 } #Curitiba
		command = { type = provincetax which = 218 value = 1 } #Neembucu
		command = { type = provincetax which = 221 value = 1 } #Corrientes
		command = { type = provincetax which = 1485 value = 1 } #Pampas del Norte
		command = { type = provincetax which = 1486 value = 1 } #Pampas del Sur
		command = { type = provincetax which = 171 value = 1 } #Moquega
		command = { type = provincetax which = 225 value = 1 } #San Matias
		command = { type = provincetax which = 224 value = 1 } #Copetonas
	}
	action_b = { name = "ACTIONNAME3176B" #Govern from Madrid
		command = { type = stability value = 1 }
		command = { type = domestic which = mercantilism value = -1 } #less state control
	}
}

#(1779-1820) Cuerno Verde
#by Fodoron
event = {
	id = 285191
	trigger = {
		OR = {
			owned = { province = 1479 data = -1 } #Colorado
			owned = { province = 1480 data = -1 } #Llano Estacado
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285191" #Cuerno Verde
	desc = "EVENTHIST285191"
	#-#Starting in 1719, a new Indian nation appeared in the plains bordering New Mexico. They were a branch of the Shoshone, and were the first native nation to use extensively the horse that made the buffalo culture possible. Besides hunting and trading, they also depredated all the rest of the Indian tribes and Spaniards, driving the Apache southward and the Ute westward. They mounted regular large scale raids that stole just about every horse and mule in New Mexico and Northern Mexico, and put a good dent in the available supply in Texas. They also captured women and children as slaves. When the Spaniards inquired about their name to the Ute, the answer was Kohmahts (those who are against us), interpreted by the Spaniards as Comanche. In the 1770s the Jupe Comanche were leaded by a charismatic chieftain, Cuerno Verde (Greenhorn), and his attacks put the Spanish frontier at the brink of collapse. Juan Bautista de Anza, had been made Governor of New Mexico after his famous land expedition to Monterey (California), and he understood that peace with the Comanche could not be achieved unless Cuerno Verde was defeated. He led an expedition in 1779 with 600 soldiers, militia and Pueblo Indians. He was later joined by 200 Ute and Apache against the common enemy. After a surprise attack from the North, the Spaniards killed Cuerno Verde and 50 comanche warriors. With his death the Comanche were ready to sign a peace with Spain, but were still at war with the Ute. Anza mediated between the Ute and the Comanche and finally achieved a permanent peace treaty between the Comanche and Spain and the Ute in 1786. This peace treaty would last until the end of the Spanish presence in North America.

	date = { day = 0 month = january year = 1779 }
	offset = 200
	deathdate = { year = 1820 }

	action_a = {
		name = "ACTIONNAME285191A" #Pacify the Comanche
		command = { type = revolt which = 1479 } #Colorado
		command = { type = revolt which = 1480 } #Llano Estacado
	}
}

#(1779-1820) Beginning of the Conquest of Patagonia
event = {
	id = 285316
	trigger = {
		owned = { province = 224 data = -1 } #Copetonas
		control = { province = 224 data = -1 } #Copetonas
		NOT = { provincereligion = { province = 224 data = pagan } } #not a TP
	}
	random = no
	country = SPA
	name = "EVENTNAME285316" #Beginning of the Conquest of Patagonia
	desc = "EVENTHIST285316"
	#-#Francisco de Viedma y Narvez founded the city of Carmen de Patagones at the mouth of the Ri Negro in 1779. This was the first major step towards the conquest of Patagonia.

	date = { day = 21 month = april year = 1779 }
	offset = 30
	deathdate = { year = 1820 }

	action_a = {
		name = "EXCELLENT"
		command = { type = addcore which = 224 } #Copetonas
	}
}

#(1779-1783) A good opportunity in North America
#by Bordic
event = {
	id = 285241
	trigger = {
		event = 285240 #SPA: The American Revolution
		monarch = 0127515 #Carlos III
		exists = USA
		war = { country = USA country = ENG }
		war = { country = FRA country = ENG }
		NOT = {
			war = { country = USA country = SPA }
			war = { country = FRA country = SPA }
			alliance = { country = ENG country = SPA }
			event = 4983 #ENG: The Treaty of Paris (USA has won)
			event = 4984 #ENG: The Treaty of Paris (ENG has lost territories)
			event = 4985 #ENG: The Destruction of the Tax Revolt (ENG has won, no USA)
			event = 3052 #ENG: The North American Union (no USA, FRA radical republic)
			event = 4987 #ENG: Colonial dissatisfaction cools (no USA, patch event reducing RR)
			neighbour = USA #Spain shouldn't own any of the potentially rebelling provinces
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285241" #A good opportunity in North America
	desc = "EVENTHIST285241"
	#-#The United States of America declared their independence from Britain in 1776. After some years of supporting the American Patriots under cover, the Spanish monarchy formally declared war to the King of England. One of the greatest impacts of the Spanish navy in that war was keeping the British in the Caribbean and Gulf of Mexico from reinforcing their land troops. Unlike France, however, Spain refused to recognize the independence of the United States. Spain was not keen on encouraging similar anti-colonial rebellions in the Spanish Empire.

	date = { day = 21 month = june year = 1779 }
	offset = 30
	deathdate = { day = 2 month = september year = 1783 }

	action_a = {
		name = "OK"
		command = { type = relation which = USA value = 100 }
		command = { type = casusbelli which = ENG value = 24 }
		command = { type = warships which = -1002 value = 15 } #America (continent 2)
		command = { type = INF which = -1002 value = 10000 } #America (continent 2)
		command = { type = CAV which = -3 value = 5000 } #in the same province as above for INF
		command = { type = ART which = -3 value = 5 }
		command = { type = trigger which = 324003 } #USA: Spanish Assistance
	}
}

#(1782) Public Bank
#by Daovir and Fodoron with the help of the Spanish forum
event = {
	id = 285086
	random = no
	country = SPA
	name = "EVENTNAME285086" #The national bank of San Carlos
	desc = "EVENTHIST285086"
	#-#During the war against England of 1779-1783, and due to the war expenses and the reduction in the American trade from the English blockade, the Spanish government incurred in a large debt. The emission of letters of payment was unsuccessful due to lack of confidence, and thus Francisco Cabarrus, presented the project for a national bank to the Count of Floridablanca, following the example of other countries. By Royal decree, on June 2, 1782, the national bank of San Carlos was created. The bank was successful in dealing with the situation, and was even capable of surviving the Napoleonic war of independence, being converted in 1829 into the bank of San Fernando, that in 1856 will become the Spanish national bank.

	date = { day = 2 month = june year = 1782 }

	action_a = {
		name = "ACTIONNAME285086A" #Show me the money
		command = { type = treasury value = 200 }
		command = { type = ADM which = 1 value = 24 }
		command = { type = inflation value = -5 }
		command = { type = loansize which = 200 }
	}
}

#(1785) Modern Flag
#by Fodoron
#Many thanks to Kaigon and Jarl Birger for their graphics
event = {
	id = 285076
	trigger = {
		monarch = 0127515 #Carlos III
	}
	random = no
	country = SPA
	name = "EVENTNAME285076" #The modern flag of Spain
	desc = "EVENTHIST285076"
	#-#The Spanish naval flag was white with the arms of the Bourbons, and this created problems to distinguish national ships from ships belonging to other countries also with white flags, and specially from those also ruled by Bourbons (France, Parma, Tuscany and Two-Sicilies). Carlos III decided to change the naval flag, and he was presented with 12 designs selected by Antonio Valdes, minister of the navy, from a contest. They were two color combinations of red, yellow, white and blue, having only in common the fact that they could be easily distinguished from far away. His choice was a flag with two horizontal red stripes separated by a yellow stripe, but the King decided to further modify it and make the yellow stripe twice as wide, making it even more characteristic. In 1843, under the rule of Isabel II, it was decided that the naval flag would constitute the national flag of Spain.

	date = { day = 21 month = may year = 1785 }

	action_a = {
		name = "ACTIONNAME285076A" #Change the flag of both naval and land units
		command = { type = treasury value = -5 }
		command = { type = flagname which = "Modern" }
	}
	action_b = {
		name = "ACTIONNAME285076B" #Keep the old flag of both naval and land units
		command = { type = vp value = -5 }
	}
}

#(1788-1795) Malaspina's scientific expedition - Flavor
#by mfigueras
event = {
	id = 285201
	trigger = {
		stability = -1
		domestic = { type = innovative value = 3 }
	}
	random = no
	country = SPA
	name = "EVENTNAME285201" #The scientific expedition of Malaspina
	desc = "EVENTHIST285201"
	#-#In 1789 Alejandro Malaspina organized a great scientific expedition to all the spanish colonies. The results of the expedition were awesome, with a great amount of new geographical, biological and anthropological discoveries, as well as a much better cartography of poorly known remote regions. Unfortunately, at his arrival back in Spain, the political situation didn't allow a proper recognition of his achievements.

	date = { day = 20 month = june year = 1788 }
	offset = 30
	deathdate = { day = 29 month = december year = 1795 }

	action_a = {
		name = "ACTIONNAME285201A" #Fund the expedition
		command = { type = treasury value = -100 }
		command = { type = naval value = 500 }
		command = { type = infra value = 100 }
		command = { type = ADM which = 2 value = 12 }
		command = { type = vp value = 5 }
	}
	action_b = {
		name = "ACTIONNAME285201B" #It's not worth the money
		command = { type = infra value = -100 }
		command = { type = domestic which = innovative value = -1 }
	}
}

#(1790-1820) French Refugees in the Caribbean
event = {
	id = 285254
	trigger = {
		owned = { province = 151 data = -1 } #Tobago & Trinidad
		OR = {
			event = 3342 #FRA: French Revolution: Radical Republic
			event = 3779 #FRA: French Revolution: Republican Monarchy
		}
		NOT = {
			event = 3785
			event = 3786
			event = 3787
			event = 3788
			event = 3789
		} #FRA: The Restoration of the Monarchy (in France)
		OR = { #Any Caribbean province owned by France but not Tobago & Trinidad
			AND = {
				owned = { province = 137 data = FRA } #Havana
				NOT = { provincereligion = { province = 137 data = pagan } } #not a TP
			}
			AND = {
				owned = { province = 138 data = FRA } #Moron
				NOT = { provincereligion = { province = 138 data = pagan } } #not a TP
			}
			AND = {
				owned = { province = 139 data = FRA } #Guantanamo
				NOT = { provincereligion = { province = 139 data = pagan } } #not a TP
			}
			AND = {
				owned = { province = 140 data = FRA } #Jamaica
				NOT = { provincereligion = { province = 140 data = pagan } } #not a TP
			}
			AND = {
				owned = { province = 141 data = FRA } #Les Cayes
				NOT = { provincereligion = { province = 141 data = pagan } } #not a TP
			}
			AND = {
				owned = { province = 142 data = FRA } #Tortuga
				NOT = { provincereligion = { province = 142 data = pagan } } #not a TP
			}
			AND = {
				owned = { province = 143 data = FRA } #Barahona
				NOT = { provincereligion = { province = 143 data = pagan } } #not a TP
			}
			AND = {
				owned = { province = 144 data = FRA } #Puerto Rico
				NOT = { provincereligion = { province = 144 data = pagan } } #not a TP
			}
			AND = {
				owned = { province = 145 data = FRA } #St. Thomas
				NOT = { provincereligion = { province = 145 data = pagan } } #not a TP
			}
			AND = {
				owned = { province = 146 data = FRA } #St. Martin
				NOT = { provincereligion = { province = 146 data = pagan } } #not a TP
			}
			AND = {
				owned = { province = 147 data = FRA } #Antigua
				NOT = { provincereligion = { province = 147 data = pagan } } #not a TP
			}
			AND = {
				owned = { province = 148 data = FRA } #Dominica
				NOT = { provincereligion = { province = 137 data = pagan } } #not a TP
			}
			AND = {
				owned = { province = 149 data = FRA } #Guadeloupe
				NOT = { provincereligion = { province = 149 data = pagan } } #not a TP
			}
			AND = {
				owned = { province = 150 data = FRA } #Martinique
				NOT = { provincereligion = { province = 150 data = pagan } } #not a TP
			}
			AND = {
				owned = { province = 152 data = FRA } #Barbados
				NOT = { provincereligion = { province = 152 data = pagan } } #not a TP
			}
			AND = {
				owned = { province = 153 data = FRA } #Curacao
				NOT = { provincereligion = { province = 153 data = pagan } } #not a TP
			}
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285254" #French Refugees in the Caribbean
	desc = "EVENTHIST285254"
	#-#Royalist refugees from the French possessions in the Caribbean fled to Trinidad to take advantage of the Spanish King's order to accept any and all settlers provided that they were Catholic and would swear an oath to himself. They were followed in short order by radical Jacobins fleeing the backlash for their earlier excesses and refugees from the slave revolt in Haiti. These Frenchmen outnumbered the Spanish and English settler together as late as 1803. They remained French at heart and were ready to deliver Trinidad to the French crown if war broke out. However the British garrison proved large enough to intimidate them into inaction.

	date = { day = 0 month = january year = 1790 }
	offset = 300
	deathdate = { year = 1820 }

	action_a = {
		name = "EXCELLENT"
		command = { type = population which = 151 value = 2000 } #Tobago & Trinidad
		command = { type = provinceculture which = 151 value = french } #Tobago & Trinidad
		command = { type = provincetax which = 151 value = 2 } #Tobago & Trinidad
	}
}

#(1792) The French Revolutionary Wars
event = {
	id = 12116 #triggered by FRA_12114 A
	random = no
	country = SPA
	name = "EVENTNAME12114" #The French Revolutionary Wars
	desc = "EVENTHIST12114"
	#-#With the creation of a Legislative Assembly to limit the monarchic power, several reasons pushed France towards war in 1792. Internally, the republican party of the Girondins were calling for a war to rid Europe of monarchy and despotism but also to rid France of any internal reactions. Externally, the nobility, the socalled emigrs, fleeing to Austria and Prussia requested that those powers intervene to restore the French monarchy. Louis XVI, King of the French, saw in a war failure the possibility to restore absolutism. But the dissolution of the Ancien Rgime in France alarmed all the European royal courts fearing that the French Jacobinism would have spread in the whole continent and provoked deep destabilization inside their own absolutist government systems.

	action_a = {
		name = "ACTIONNAME12114A" #Rattle Our Sabres
		command = { type = casusbelli which = FRA value = 80 }
		command = { type = relation which = ENG value = 150 }
		command = { type = relation which = SAV value = 150 }
		command = { type = relation which = HAB value = 150 }
		command = { type = relation which = PRU value = 150 }
		command = { type = relation which = RUS value = 150 }
		command = { type = relation which = SWE value = 150 }
	}
	action_b = {
		name = "ACTIONNAME12114B" #Temporize
		command = { type = stability value = -1 }
	}
}

#(1792-1793) Reaction to the French revolution -I-
#by Gauna and Fodoron with the help of the Spanish Forum
event = {
	id = 285070
	trigger = {
		OR = {
			event = 3342 #FRA: The French Revolution: Radical Republic
			event = 3779 #FRA: The French Revolution: Republican Monarchy
		}
		NOT = { event = 285115 } #SPA: Reaction to the French revolution
		NOT = { vassal = { country = FRA country = SPA } }
	}
	random = no
	country = SPA
	name = "EVENTNAME285070" #Reaction to the French revolution
	desc = "EVENTHIST285070"
	#-#The French revolution in France coincided with a change of monarch in Spain. The Spanish monarchy, as those of other European countries, was horrified by the events, and blamed the enlightenment and liberalism of the previous decades. The French revolution was considered an infectious disease that had to be stopped before it spreaded. Internally, the borders with France were closed, and all the reformation programs were stopped. Censorship and repression were instaurated and left in the hands of the Inquisition, that will prosecute the main reformists. Cabarrus was imprisoned, Jovellanos exiled, and Campomanes ousted. Externally, the prime minister Floridablanca was given the job of saving the life of Louis XVI of France, cousin of the Spanish King, and when he failed, the traditional alliance with France was broken and an alliance was sought with Great Britain, Holland, Austria, Portugal and Prussia, forming the First Coalition.

	date = { day = 10 month = august year = 1792 }
	offset = 100
	deathdate = { day = 7 month = march year = 1793 }

	action_a = {
		name = "ACTIONNAME285070A" #Damn Jacobins!
		command = { type = domestic which = innovative value = -2 }
		command = { type = domestic which = aristocracy value = 1 }
		command = { type = relation which = FRA value = -100 }
		command = { type = relation which = ENG value = 50 }
		command = { type = relation which = HOL value = 50 }
		command = { type = relation which = HAB value = 50 }
		command = { type = relation which = POR value = 50 }
		command = { type = relation which = PRU value = 50 }
	}
	action_b = {
		name = "ACTIONNAME285070B" #It is none of our business
		command = { type = stability value = -2 }
		command = { type = domestic which = aristocracy value = -1 }
		command = { type = relation which = FRA value = 50 }
		command = { type = relation which = ENG value = -25 }
		command = { type = relation which = HOL value = -25 }
		command = { type = relation which = HAB value = -25 }
		command = { type = relation which = POR value = -25 }
		command = { type = relation which = PRU value = -25 }
	}
}
#(1792-1793) Reaction to the French revolution -II- (if Spain is still a French vassal since 1700)
#by Gauna and Fodoron with the help of the Spanish Forum
event = {
	id = 285115
	trigger = {
		OR = {
			event = 3342 #FRA: The French Revolution: Radical Republic
			event = 3779 #FRA: The French Revolution: Republican Monarchy
		}
		NOT = { event = 285070 } #SPA: Reaction to the French revolution
		vassal = { country = FRA country = SPA }
	}
	random = no
	country = SPA
	name = "EVENTNAME285070" #Reaction to the French revolution
	desc = "EVENTHIST285070"
	#-#The French revolution in France coincided with a change of monarch in Spain. The Spanish monarchy, as those of other European countries, was horrified by the events, and blamed the enlightenment and liberalism of the previous decades. The French revolution was considered an infectious disease that had to be stopped before it spreaded. Internally, the borders with France were closed, and all the reformation programs were stopped. Censorship and repression were instaurated and left in the hands of the Inquisition, that will prosecute the main reformists. Cabarrus was imprisoned, Jovellanos exiled, and Campomanes ousted. Externally, the prime minister Floridablanca was given the job of saving the life of Louis XVI of France, cousin of the Spanish King, and when he failed, the traditional alliance with France was broken and an alliance was sought with Great Britain, Holland, Austria, Portugal and Prussia, forming the First Coalition.

	date = { day = 10 month = august year = 1792 }
	offset = 100
	deathdate = { day = 7 month = march year = 1793 }

	action_a = {
		name = "ACTIONNAME285070A" #Damn Jacobins!
		command = { type = breakvassal which = FRA }
		command = { type = stability value = 2 }
		command = { type = domestic which = innovative value = -2 }
		command = { type = domestic which = aristocracy value = 1 }
		command = { type = relation which = FRA value = -100 }
		command = { type = relation which = ENG value = 50 }
		command = { type = relation which = HOL value = 50 }
		command = { type = relation which = HAB value = 50 }
		command = { type = relation which = POR value = 50 }
		command = { type = relation which = PRU value = 50 }
	}
	action_b = {
		name = "ACTIONNAME285070B" #It is none of our business
		command = { type = stability value = -2 }
		command = { type = domestic which = aristocracy value = -1 }
		command = { type = relation which = FRA value = 50 }
		command = { type = relation which = ENG value = -25 }
		command = { type = relation which = HOL value = -25 }
		command = { type = relation which = HAB value = -25 }
		command = { type = relation which = POR value = -25 }
		command = { type = relation which = PRU value = -25 }
	}
}

#(1792) Godoy
#by Fodoron with the help of the Spanish Forum
event = {
	id = 285061
	trigger = { monarch = 0127516 } #Carlos IV
	random = no
	country = SPA
	name = "EVENTNAME285061" #Manuel Godoy, Prince of Peace
	desc = "EVENTHIST285061"
	#-#Manuel Godoy was an army officer that raised to power through his affairs with the Queen of Spain, Maria Luisa de Parma. He became prime minister just prior to the declaration of war by Revolutionary France to Spain, after the reaction of Carlos IV to his cousin Louis XVI execution. After initial Spanish successes, the previous prime minister, the Count of Aranda, defended peace negotiations, but the war was popular and Godoy persisted until it turned into a disaster. At the peace of Basilea in 1795, Spain ceded the island of Santo Domingo to France and Godoy was given the title of Prince of Peace. At the first treaty of San Ildefonso in 1796 between France and Spain, Godoy turned the Spanish foreign policy into French hands, leading to a permanent confrontation with England of catastrophic consequences. Despite his efforts he failed to improve the economy. Finally his submission to Napolon will lead to the invasion of Spain, and the forced abdication of Carlos IV. He was exiled by Fernando VII, and rehabilitated by Isabel II in 1847, a few years before his death in Paris.

	date = { day = 15 month = november year = 1792 }

	action_a = {
		name = "ACTIONNAME285061A" #An incompetent minister
		command = { type = DIP which = -2 value = 60 }
		command = { type = MIL which = -2 value = 60 }
		command = { type = stability value = -1 }
	}
}

#(1793-1820) Parliaments of Los Canoas and Negrete
#by sturmvogel
event = {
	id = 285312
	trigger = {
		owned = { province = 176 data = -1 } #Talca
	}
	random = no
	country = SPA
	name = "EVENTNAME285312" #Parliaments of Los Canoas and Negrete
	desc = "EVENTHIST285312"
	#-#Intermarriage with the Spanish and the gradual spread of Spanish influence, culture and Catholicism in the vicinity of Valdivia eventually caused many Mapuche and Huilliche tribesmen to become reconciled to Spanish rule. The colonial government convened several Parliaments to negotiate with the tribes after putting down a rebellion the previous year. The tribes acknowledged the sovereignty of the Spanish Crown and were allowed to retain their lands and social structure. They were also meant to defend the land against Spain's enemies and the Spanish to defend them from hostile tribes. This generally pacified the province, but the last resistance to Spanish and Chilean authority wasn't broken for almost another century.

	date = { day = 0 month = january year = 1793 }
	offset = 300
	deathdate = { year = 1820 }

	action_a = {
		name = "ACTIONNAME285312A" #Negotiate with the Mapuche and Huilliche
		command = { type = province_revoltrisk which = 176 value = -7 } #Talca
		command = { type = addcore which = 176 } #Talca
	}
}

#(1798) The disentailment of Godoy
#by Fodoron with the help of the Spanish Forum
event = {
	id = 285062
	random = no
	country = SPA
	name = "EVENTNAME285062" #The disentailment of Godoy
	desc = "EVENTHIST285062"
	#-#Over centuries, Spain had become a very improductive country. Its economy was mainly based in agriculture, yet a great deal of its land were in dead hands: nobles that did not pay taxes and could not afford to cultivate them, and the Church. Also many urban properties were in the hands of conventual orders. As a result, tax income was low. The liberals proposed a disentailment of these improductive properties, and the acute need for money during the war with Britain forced the approval of the measure. However it was a missed opportunity. The impoverished peasants could not afford the disentailed properties, and their communal lands were also taken out of their hands and sold. It only profited the bourgeoisie and rich nobles that bought the properties at a reduced price, and even the State was shortchanged by the corruption and by the subsidies that it had to pay to the Church as compensation. It also produced the irrecoverable loss of many books and cultural goods property of the Church. In the end the Spanish disentailments turned out to be another good idea with a bad implementation. Their social and economic effects were negligible, although they provided short term money for the state treasury.

	date = { day = 15 month = july year = 1798 }

	action_a = {
		name = "ACTIONNAME285062A" #We need money, and the Church can provide it
		command = { type = treasury value = 200 }
		command = { type = inflation value = -1 } #reduction of debt
		command = { type = domestic which = innovative value = 1 }
		command = { type = domestic which = aristocracy value = -1 }
	}
}

#(1800) The second treaty of San Ildefonso
#by Fodoron with the help of the Spanish Forum
event = {
	id = 285063 #triggered by FRA_170035 A
	random = no
	country = SPA
	name = "EVENTNAME285063" #The second treaty of San Ildefonso
	desc = "EVENTHIST285063"
	#-#After the first treaty of San Ildefonso, Spain became a reliable ally for France in her wars with England, however Spain suffered the worse part. Her navy was seriously damaged, and her vital commerce with her American colonies was interrupted, strangling her economy, and she was finally forced to sue for peace. This situation left Napolon's navy in a complete inferiority in the peninsula, as the British navy could use the ports in Portugal, her traditional ally. Napolon needed Spanish collaboration to win the war at sea, however Spain, now at peace with England wanted to remain neutral. To Napolon, Spanish collaboration was vital, not only to prevent shipping to England from Spanish ports, but also to enforce the blockade in Portugal. Spanish prime minister, Manuel Godoy, was given no choice, either with France or against France, and he vowed to Napolon demands. England used the treaty as a justification to declare war to Spain.

	action_a = {
		name = "ACTIONNAME285063A" #Bow to Napolon demands
		command = { type = relation which = ENG value = -25 }
		command = { type = relation which = POR value = -25 }
		command = { type = trigger which = 164014 } #ENG: The second treaty of San Ildefonso
	}
	action_b = {
		name = "ACTIONNAME285063B" #Stand up to Napolon
		command = { type = relation which = FRA value = -75 }
		command = { type = trigger which = 170036 } #FRA: Spain refuses to sign the treaty
	}
}

#(1801) War of the oranges
#by DBM and Fodoron with the help of the Spanish Forum - modified by mandead
event = {
	id = 285064
	trigger = {
		monarch = 0127516 #Carlos IV
		event = 164014 #ENG: treaty of San Ildefonso ratified
	}
	random = no
	country = SPA
	name = "EVENTNAME285064" #War of the oranges
	desc = "EVENTHIST285064"
	#-#After the signing of the second treaty of San Ildefonso, France started to pressure Spain to collaborate in an invasion of Portugal to dislodge her from her alliance with England. Carlos IV was the father-in-law of Joao VI, prince of Brazil and regent of Portugal, and did not desire a conflict, but French pressure was too strong. Joao could not accept Napolon's demands of ceding a quarter of his territory to Spain as a guarantee, and so the war became inevitable. On May 20, 1801, Godoy invaded Portugal from three points, and in nine days completely defeated the Portuguese army, before the French army sent to participate in the campaign could cross Spain. Godoy sent a branch of an orange tree from the moat of Elvas to his Queen and lover, and hence the name of the war. But Carlos IV had no intention of leaving Portugal in the hands of Napolon, and against his instructions, signed the treaty of Badajoz with Joao. It was a very favorable treaty for Portugal, who had to pay indemnities to France, close her ports to British ships, cede a small part of the Guiana to France, and the small town of Olivenza to Spain. The treaty was signed on the 8th of June, but dated on the 6th, so Carlos could ignore Napolon's instructions received on the 7th. Napolon was furious and did not ratify the treaty until the 29th of September.

	date = { day = 8 month = june year = 1801 }

	action_a = {
		name = "ACTIONNAME285064A" #Collaborate with Napolon but trick him
		command = { type = relation which = FRA value = -25 }
		command = { type = relation which = POR value = -25 }
		command = { type = treasury value = 25 }
		command = { type = trigger which = 170037 } #FRA: War of the oranges
		command = { type = trigger which = 260063 } #POR: War of the oranges
	}
	action_b = {
		name = "ACTIONNAME285064B" #Leave the fate of Portugal in French hands
		command = { type = relation which = FRA value = 25 }
		command = { type = relation which = POR value = -100 }
	}
	action_c = {
		name = "ACTIONNAME285064C" #Refuse to help the French
		command = { type = relation which = FRA value = -100 }
		command = { type = relation which = POR value = 25 }
		command = { type = sleepevent which = 285305 } #SPA: Mutiny of Aranjuez
	}
}

#(1803) The Napoleonic Wars
event = {
	id = 12128 #triggered by FRA_12125 A
	random = no
	country = SPA
	name = "EVENTNAME12125" #The Napoleonic Wars
	desc = "EVENTHIST12128"
	#-#Napolon argued that he wanted to build a federation of free peoples in a Europe united under a liberal government. But if this was indeed his goal, he intended to achieve it by taking power into his own hands. He supposedly intended to grant constitutions, introduce laws, abolished feudalism, create efficient governments and foster education, science, literature and the arts. The other powers of Europe looked on with alarm at an expansionist France, bringing its revolutionary ideals and fervour abroad in the wake of Napolon's military might.

	action_a = {
		name = "WAR"
		command = { type = casusbelli which = FRA value = 192 }
		command = { type = relation which = ENG value = 150 }
		command = { type = relation which = SAV value = 150 }
		command = { type = relation which = HAB value = 150 }
		command = { type = relation which = PRU value = 150 }
		command = { type = relation which = RUS value = 150 }
		command = { type = relation which = NAP value = 150 }
		command = { type = relation which = POR value = 150 }
	}
	action_b = {
		name = "PEACE"
		command = { type = stability value = -1 }
	}
}

#(1803-1807) The royal expedition for the smallpox vaccination
event = {
	id = 5254
	trigger = {
		event = 5060 #Jenner
	}
	random = no
	country = SPA
	name = "EVENTNAME5254" #The Royal Expedition for smallpox vaccination
	desc = "EVENTHIST5254"
	#-#In 1803, after the generalization of the vaccination in Europe, the spansih government decided to organize a scientific expedition to the american colonies in order to introduce there the new techniques and to begin a more or less general programme of vaccination in those provinces. The expedition, called 'Real Expedicin Filantrpica de la Vacuna', was directed by Francisco Javier Balmis.

	date = { day = 1 month = april year = 1803 }
	offset = 60
	deathdate = { day = 29 month = september year = 1807 }

	action_a = {
		name = "ACTIONNAME5254A" #Let's organize the expedition
		command = { type = treasury value = -100 }
		command = { type = infra value = 150 }
		command = { type = population which = 27 value = 1000 } #Zacatecas
		command = { type = population which = 29 value = 800 } #Tlaxcala
		command = { type = population which = 33 value = 1000 } #Guatemala
		command = { type = population which = 137 value = 800 } #Havana
		command = { type = population which = 139 value = 1000 } #Guantanamo
		command = { type = population which = 158 value = 1000 } #Cartagena
		command = { type = population which = 160 value = 500 } #Bogota
		command = { type = population which = 163 value = 1000 } #Azuay
		command = { type = population which = 169 value = 1000 } #Cuzco
	}
	action_b = {
		name = "ACTIONNAME5254B" #We have more important things to do
		command = { type = ADM which = -2 value = 15 }
		command = { type = population which = 29 value = -1000 } #Tlaxcala
		command = { type = population which = 33 value = -800 } #Guatemala
		command = { type = population which = 139 value = -500 } #Guantanamo
		command = { type = population which = 158 value = -200 } #Cartagena
		command = { type = population which = 169 value = -1000 } #Cuzco
	}
}

#(1808) Mutiny of Aranjuez
event = {
	id = 285305
	trigger = {
		monarch = 0127516 #Carlos IV
		exists = FRA
		event = 170126 #FRA: Napolon's ambitions 
	}
	random = no
	country = SPA
	name = "EVENTNAME285305" #Mutiny of Aranjuez
	desc = "EVENTHIST285305"
	#-#The Mutiny of Aranjuez was an early nineteenth century popular uprising against King Charles IV, which managed to overthrow him and place his son, Ferdinand VII, on the throne. Although it is generally considered to be the first directly political act of the Spanish people, it is known that many of Ferdinand's supporters took part in inciting the revolt. The mutiny was initially directed towards the Prime Minister, Manuel de Godoy. Godoy, a former member of the Royal Guard, was highly unpopular with both the Spanish peasants and the nobles. The people were upset at his ambitious nature, his flirting with many women of the court, and his willingness to sign nationally detrimental treaties with France against Great Britain. The nobles were also annoyed at the fact that Godoy had attained enormous power without belonging to their social stratum. Another important factor was the economic crisis that was affecting the country, heightened after Spain lost the core of its navy at Trafalgar in 1805, all but crippling its trade with the American colonies. This caused food shortages and damaged industrial production. Ultimately, the King and Godoy had allowed Napolon's troops to cross Spain in order to attack Portugal, which wouldn't adhere to the Emperor's embargo on Great Britain. This move was extremely unpopular with the Spanish people, who saw the entry as an invasion, which it would soon become. The French troops rapidly occupied important cities like San Sebastin, Pamplona and Barcelona, thus causing a strong sentiment against the French and Godoy. The uprising itself occurred on March 17th, 1808 in the town of Aranjuez, about 48 km south of Madrid. Members of popular classes, soldiers and peasants assaulted Godoy's residence and captured him, and the King was forced to dismiss him. Two days later, the court forced Charles IV to abdicate and give the throne to his son and rival, Ferdinand VII.

	date = { day = 17 month = march year = 1808 }

	action_a = {
		name = "ACTIONNAME285305A" #God save the King!
		command = { type = wakemonarch which = 0127529 } #Fernando VII
		command = { type = domestic which = centralization value = -1 }
		command = { type = domestic which = aristocracy value = 1 }
		command = { type = revolt which = -2 }
		command = { type = revolt which = -2 }
		command = { type = revoltrisk which = 12 value = 4 }
		command = { type = stability value = -1 }
	}
	action_b = {
		name = "ACTIONNAME285305B" #I am God's anointed!
		command = { type = domestic which = centralization value = 1 }
		command = { type = domestic which = aristocracy value = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -2 }
		command = { type = revolt which = -2 }
		command = { type = revoltrisk which = 24 value = 6 }
		command = { type = stability value = -3 }
		command = { type = sleepevent which = 285306 } #SPA: Abdications of Bayonne
	}
}

#(1808) Abdications of Bayonne
event = {
	id = 285306
	trigger = {
		exists = FRA
		event = 285305 #SPA: Mutiny of Aranjuez
	}
	random = no
	country = SPA
	name = "EVENTNAME285306" #Abdications of Bayonne
	desc = "EVENTHIST285306"
	#-#Following the national unrest caused by Aranjuez, Napolon found the overall situation of great interest with regards to his own political machinations, in particular the subjugation of Spain with as few French casualties as possible. Thus, under the false pretence of solving the problem, the Emperor invited both Charles IV and Ferdinand VII to Bayonne in the south of France. Both monarchs were afraid of the Emperor's power and thought it prudent to accept the invitation. However, once in Bayonne, Napolon forced both Charles and Ferdinand to renounce the throne of Spain and grant it to himself. The Emperor then named his brother Joseph as King of Spain and dispatched him to Madrid at the head of a large French army, in order to establish the new dynasty and invade Portugal. Joseph would, however, leave Spain for good in May 1812, leaving his few remaining supporters, the ''afrancesados,'' to their fate. This episode is known as the Abdications of Bayonne, and paved the way for five years of sporadic, impractical and highly disputed Napoleonic rule in Spain.

	date = { day = 3 month = may year = 1808 }
	offset = 0
	deathdate = { day = 15 month = may year = 1808 }

	action_a = {
		name = "ACTIONNAME285306A" #We must submit to the Emperor
		command = { type = domestic which = centralization value = -3 }
		command = { type = domestic which = aristocracy value = 2 }
		command = { type = domestic which = quality value = -2 }
		command = { type = revolt which = -2 }
		command = { type = revolt which = -2 }
		command = { type = revoltrisk which = 12 value = 4 }
		command = { type = stability value = -3 }
		command = { type = trigger which = 170323 } #FRA: Napolon and the Crown of Spain -I-
	}
	action_b = {
		name = "ACTIONNAME285306B" #Never! We will fight 'till the end!
		command = { type = domestic which = centralization value = 1 }
		command = { type = domestic which = aristocracy value = -1 }
		command = { type = domestic which = quality value = 1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -2 }
		command = { type = revolt which = -2 }
		command = { type = revolt which = -3 }
		command = { type = revolt which = -3 }
		command = { type = revolt which = -3 }
		command = { type = revolt which = -3 }
		command = { type = revolt which = -3 }
		command = { type = revolt which = -3 }
		command = { type = relation which = ENG value = 100 }
		command = { type = relation which = PRU value = 100 }
		command = { type = relation which = RUS value = 100 }
		command = { type = relation which = HAB value = 100 }
		command = { type = revoltrisk which = 12 value = 8 }
		command = { type = stability value = -6 }
		command = { type = trigger which = 170324 } #FRA: Napolon and the Crown of Spain -II- Ahistorical
	}
}
#(1808) Pepe Botella
event = {
	id = 285307 #triggered by FRA_170323
	random = no
	country = SPA
	name = "EVENTNAME285307" #Pepe Botella
	desc = "EVENTHIST285307"
	#-#

	action_a = {
		name = "ACTIONNAME285307A" #Napolon, King of Spain
		command = { type = flagname which = "Bonaparte" }
		command = { type = wakemonarch which = 0127527 } #Napolon
		command = { type = wakemonarch which = 0127528 } #Jos
		command = { type = sleepmonarch which = 0127517 } #Fernando VII
		command = { type = wakeleader which = 0127912 } #Jos (SPA)
		#Imperial Spanish provinces
		command = { type = cedeprovince which = FRA value = 425 } #Bearn
		command = { type = cedeprovince which = FRA value = 426 } #Roussillon
		command = { type = cedeprovince which = FRA value = 427 } #Gerona
		command = { type = cedeprovince which = FRA value = 429 } #Catalonia
		command = { type = INF which = -2 value = 30000 }
		command = { type = CAV which = -2 value = 5000 }
		command = { type = ART which = -2 value = 50 }
		command = { type = relation which = POR value = -100 }
		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 = RUS value = -100 }
		command = { type = treasury value = -500 } #to France
		command = { type = badboy value = 5 }
		command = { type = stability value = 1 }
		command = { type = vp value = 25 }
	}
}

#-----------------------------------------------------------------------------------------------
#"The Counter-Revolution" Sequence

#(1808-1809) The Counter-Revolution
event = {
	id = 285308
	trigger = {
		monarch = 0127528 #Jos
		NOT = {
			stability = 2
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285308" #The Counter-Revolution
	desc = "EVENTHIST285308"
	#-#

	date = { day = 6 month = may year = 1808 }
	offset = 10
	deathdate = { day = 29 month = december year = 1809 }

	action_a = {
		name = "DAMN"
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = desertion which = -1 value = 5000 }
		command = { type = desertion which = -1 value = 5000 }
		command = { type = desertion which = -1 value = 5000 }
		command = { type = desertion which = -1 value = 5000 }
		command = { type = revoltrisk which = 12 value = 25 }
		command = { type = treasury value = -200 }
		command = { type = badboy value = 1 }
		command = { type = stability value = -2 }
	}
}
#(1810-1811) Further Counter-Revolutionary Feeling
event = {
	id = 285309
	trigger = {
		monarch = 0127528 #Jos
		NOT = {
			stability = 2
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285309" #Further Counter-Revolutionary Feeling
	desc = "EVENTHIST285309"
	#-#

	date = { day = 1 month = january year = 1810 }
	offset = 10
	deathdate = { day = 29 month = december year = 1811 }

	action_a = {
		name = "DAMN"
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = desertion which = -1 value = 5000 }
		command = { type = desertion which = -1 value = 5000 }
		command = { type = desertion which = -1 value = 5000 }
		command = { type = desertion which = -1 value = 5000 }
		command = { type = revoltrisk which = 12 value = 25 }
		command = { type = treasury value = -200 }
		command = { type = badboy value = 1 }
		command = { type = stability value = -2 }
	}
}
#(1812-1815) The Height of the Counter-Revolution
event = {
	id = 285310
	trigger = {
		monarch = 0127528 #Jos
		NOT = {
			stability = 2
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285310" #The Height of the Counter-Revolution
	desc = "EVENTHIST285310"
	#-#

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

	action_a = {
		name = "DAMN"
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = desertion which = -1 value = 5000 }
		command = { type = desertion which = -1 value = 5000 }
		command = { type = desertion which = -1 value = 5000 }
		command = { type = desertion which = -1 value = 5000 }
		command = { type = revoltrisk which = 12 value = 25 }
		command = { type = treasury value = -200 }
		command = { type = badboy value = 1 }
		command = { type = stability value = -2 }
	}
}
#End of "The Counter-Revolution" Sequence
#-----------------------------------------------------------------------------------------------

#(1809-1820) The Restoration of the French Monarchy
event = {
	id = 3177 #triggered by FRA_3786
	random = no
	country = SPA
	name = "EVENTNAME3177" #The Restoration of the French Monarchy
	desc = "EVENTHIST3177"
	#-#Many countries had view the French revolution with neutral mistrust or eager interest, but with the Reign of Terror and the Execution of King Louis most countries became abhorred. The New Republic and its ideas undermined the 'Old Order' that existed in most European countries. Those several alliances were set up to restore the Bourbons to the French Throne, crush the revolution and get Europe back to normal again. This succeeded in 1814 and again in 1815 when foreign armies brought Louis XVIII on the throne. Louis XVIII was the brother of the Executed King Louis of France and in early life was known as the Comte de Provence. He remained in Paris after the outbreak of the French Revolution in 1789 but escaped to Belgium two years later. After King Louis' execution in 1793 he proclaimed himself regent, and after the death of his brother's heir in 1795, he took the title Louis XVIII. He lived as an exile in various European countries until he became King after Napolon's first abdication in 1814. On Napolon's return to power in 1815, however, Louis again fled to Belgium

	action_a = {
		name = "ACTIONNAME3177A" #The Bourbons are reinstalled
		command = { type = vp value = 500 }
		command = { type = treasury value = 500 }
		command = { type = relation which = FRA value = 200 }
		command = { type = stability value = 3 }
	}
}

#(1809-1820) The Restoration of the Spanish Monarchy
event = {
	id = 285311
	trigger = {
		monarch = 0127528 #Jos
		OR = {
			AND = {
				OR = {
					event = 3785 #FRA: The Restoration of the French Monarchy
					event = 3786 #FRA: The Restoration of the French Monarchy
					event = 3787 #FRA: The Restoration of the French Monarchy
					event = 3788 #FRA: The Restoration of the French Monarchy
					event = 3789 #FRA: The Restoration of the French Monarchy
				}
				NOT = {
					AND = {
						event = 3791 #FRA: The Return of Napolon
						NOT = {
							event = 170274 #FRA: Waterloo
						}
					}
				}
			}
			AND = {
				NOT = {
					AND = {
						control = { province = 430 data = -1 } #Aragon
						control = { province = 435 data = -1 } #Leon
						control = { province = 436 data = -1 } #Castilla
						control = { province = 439 data = -1 } #Toledo
					}
				}
				AND = {
					OR = {
						NOT = {
							event = 3790 #FRA: The French Gamble for Supremacy
						}
						AND = {
							event = 3791 #FRA: The Return of Napolon
							event = 170274 #FRA: Waterloo
						}
					}
				}
			}
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285311" #The Restoration of the Spanish Monarchy
	desc = "EVENTHIST285311"
	#-#

	date = { day = 1 month = january year = 1809 }
	offset = 60
	deathdate = { day = 29 month = december year = 1820 }

	action_a = {
		name = "ACTIONNAME285311A" #King Fernando VII
		command = { type = flagname which = "Modern" }
		command = { type = wakemonarch which = 0127530 } #Fernando VII
		command = { type = domestic which = ARISTOCRACY value = 1 }
		command = { type = domestic which = SERFDOM value = 1 }
		command = { type = domestic which = INNOVATIVE value = -1 }
		command = { type = domestic which = OFFENSIVE value = -2 }
		command = { type = relation which = POR value = 200 }
		command = { type = relation which = FRA value = 200 }
		command = { type = relation which = ENG value = 200 }
		command = { type = relation which = HAB value = 200 }
		command = { type = relation which = PRU value = 200 }
		command = { type = relation which = RUS value = 200 }
		command = { type = treasury value = 200 }
		command = { type = badboy value = -5 }
		command = { type = stability value = 1 }
	}
}

#(1812) The Constitution of 1812
event = {
	id = 3095
	trigger = {
		event = 12128 #SPA: The Napoleonic Wars
	}
	random = no
	country = SPA
	name = "EVENTNAME3095" #The Constitution of 1812
	desc = "EVENTHIST3095"
	#-#The Cortes, when it met at Cadiz in 1810, was dominated by liberals who wished to go beyond the mere support of the war effort and establish a constitution that would make impossible the revival of rule by a favorite like Godoy. The Constitution of Cadiz gave Spain a strictly limited monarchy (the King must work through his responsible ministers), a single-chamber Parliament with no special representation for the church or the nobility, and a modern centralized administrative system based on provinces and municipalities.

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

	action_a = {
		name = "ACTIONNAME3095A" #The Cortes has enacted it already
		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 }
	}
}

#(1813) The Reaction of 1813
event = {
	id = 3096
	trigger = {
		event = 3095 #SPA: The Constitution of 1812
	}
	random = no
	country = SPA
	name = "EVENTNAME3096" #The Reaction of 1813
	desc = "EVENTHIST3096"
	#-#The internal situation of Spain, with the struggle between absolutists and liberals, contributed to the independence of the colonies. The deathblow to Spain's ability to keep her American colonies happened in 1820, when the troops, commanded by General Riego, prepared to go overseas, revolted in Cadiz (Spain) in favor of the Constitution of 1812, ending provisionally the absolutist regime.

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

	action_a = {
		name = "ACTIONNAME3096A" #Introduce a regime of reaction
		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 = {
		name = "ACTIONNAME3096B" #Let the liberal constitution stay put
		command = { type = stability value = -1 }
		command = { type = treasury value = -200 }
	}
}

#(1819) The Sale of Florida to the United States
event = {
	id = 3090
	trigger = {
		exists = USA
		OR = {
			owned = { province = 46 data = -1 } #Biloxi
			owned = { province = 47 data = -1 } #Mobile
			owned = { province = 48 data = -1 } #Talahassee
			owned = { province = 49 data = -1 } #Seminole
			owned = { province = 50 data = -1 } #Everglades
		}
		NOT = {
			AND = {
				owned = { province = 54 data = -1 } #Savannah
				owned = { province = 62 data = -1 } #Carolina
			}
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME3090" #The Sale of Florida to the United States
	desc = "EVENTHIST3090"
	#-#England received Florida in return for Havana in 1763 and replaced its military government with civilian officials. During the U.S. War of Independence, the area was used as a base for attacks on colonial coastal cities. Three decades of instability followed Florida's return to Spain after the war. General Andrew Jackson's capture of Pensacola led to the cession of Florida to the United States in a treaty signed in 1819.

	date = { day = 1 month = january year = 1819 }
	offset = 120
	deathdate = { day = 2 month = may year = 1819 }

	action_a = {
		name = "ACTIONNAME3090A" #Offer Florida for 500 ducats
		command = { type = trigger which = 3067 } #USA: Adam-Ons Treaty
	}
	action_b = {
		name = "ACTIONNAME3090B" #Offer them nothing
		command = { type = relation which = USA value = -100 }
		command = { type = stability value = -1 }
	}
}
#(1819) Adam-Ons Treaty
event = {
	id = 3091 #triggered by USA_3067 A
	random = no
	country = SPA
	name = "EVENTNAME3091" #Adam-Ons Treaty
	desc = "EVENTHIST3091"
	#-#Adams-Ons Treaty, or Purchase of Florida, accord between the United States and Spain that divided their North American claims along a line from the southeastern corner of what is now Louisiana, north and west to what is now Wyoming, thence west along the latitude 42 N to the Pacific. Thus Spain ceded Florida and renounced the Oregon Country in exchange for recognition of Spanish sovereignty over Texas.

	action_a = {
		name = "OK"
		command = { type = treasury value = 500 }
		command = { type = stability value = 2 }
		command = { type = relation which = USA value = 100 }
		command = { type = removecore which = 48 } #Talahassee
		command = { type = removecore which = 46 } #Biloxi
		command = { type = removecore which = 47 } #Mobile
		command = { type = removecore which = 49 } #Seminole
		command = { type = cedeprovince which = USA value = 46 } #Biloxi
		command = { type = cedeprovince which = USA value = 47 } #Mobile
		command = { type = cedeprovince which = USA value = 48 } #Talahassee
		command = { type = cedeprovince which = USA value = 49 } #Seminole
		command = { type = cedeprovince which = USA value = 50 } #Everglades
		command = { type = cedeprovince which = USA value = 54 } #Savannah
	}
}
#(1819) The United States declined the offer of Florida
event = {
	id = 3092 #triggered by USA_3067 B
	random = no
	country = SPA
	name = "EVENTNAME3092" #The United States declined the offer of Florida
	desc = "EVENTHIST3092"
	#-#In 1810 American frontiersmen in the Baton Rouge section rebelled against Spanish control, and the remainder was soon included in the Mississippi Territory. In the Transcontinental (Adams-Ons) Treaty of 1819, Spain ceded all claim to West Florida, which came under official U.S. jurisdiction two years later.

	action_a = {
		name = "OK"
		command = { type = relation which = USA value = -100 }
	}
}

#-----------------------------------------------------------------------------------------------
#Colonization boost events - by Fodoron
#-----------------------------------------------------------------------------------------------

#-----------------------------------------------------------------------------------------------
#Part I Semiannual generic events without Zacatecas, Cuzco, or Lesser Antillas

#(1495-1534) Signing of Capitulaciones for colonization
event = {
	id = 285501
	trigger = {
		domestic = { type = aristocracy value = 5 }
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 27 data = SPA } #Zacatecas
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = january year = 1495 }
	offset = 90
	deathdate = { day = 29 month = july year = 1495 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 80 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285502
	trigger = {
		ai = yes
		domestic = { type = aristocracy value = 5 }
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 27 data = SPA } #Zacatecas
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = august year = 1495 }
	offset = 90
	deathdate = { day = 29 month = december year = 1495 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 80 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285503
	trigger = {
		domestic = { type = aristocracy value = 5 }
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 27 data = SPA } #Zacatecas
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = january year = 1496 }
	offset = 90
	deathdate = { day = 29 month = july year = 1496 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 80 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285504
	trigger = {
		ai = yes
		domestic = { type = aristocracy value = 5 }
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 27 data = SPA } #Zacatecas
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = august year = 1496 }
	offset = 90
	deathdate = { day = 29 month = december year = 1496 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 80 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285505
	trigger = {
		domestic = { type = aristocracy value = 5 }
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 27 data = SPA } #Zacatecas
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = january year = 1497 }
	offset = 90
	deathdate = { day = 29 month = july year = 1497 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 80 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285506
	trigger = {
		ai = yes
		domestic = { type = aristocracy value = 5 }
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 27 data = SPA } #Zacatecas
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = august year = 1497 }
	offset = 90
	deathdate = { day = 29 month = december year = 1497 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 80 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285507
	trigger = {
		domestic = { type = aristocracy value = 5 }
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 27 data = SPA } #Zacatecas
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = january year = 1498 }
	offset = 90
	deathdate = { day = 29 month = july year = 1498 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 80 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285508
	trigger = {
		ai = yes
		domestic = { type = aristocracy value = 5 }
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 27 data = SPA } #Zacatecas
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = august year = 1498 }
	offset = 90
	deathdate = { day = 29 month = december year = 1498 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 80 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285509
	trigger = {
		domestic = { type = aristocracy value = 5 }
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 27 data = SPA } #Zacatecas
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = january year = 1499 }
	offset = 90
	deathdate = { day = 29 month = july year = 1499 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 80 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285510
	trigger = {
		ai = yes
		domestic = { type = aristocracy value = 5 }
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 27 data = SPA } #Zacatecas
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = august year = 1499 }
	offset = 90
	deathdate = { day = 29 month = december year = 1499 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 80 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285511
	trigger = {
		domestic = { type = aristocracy value = 5 }
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 27 data = SPA } #Zacatecas
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = january year = 1500 }
	offset = 90
	deathdate = { day = 29 month = july year = 1500 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 80 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285512
	trigger = {
		ai = yes
		domestic = { type = aristocracy value = 5 }
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 27 data = SPA } #Zacatecas
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = august year = 1500 }
	offset = 90
	deathdate = { day = 29 month = december year = 1500 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 80 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285513
	trigger = {
		domestic = { type = aristocracy value = 5 }
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 27 data = SPA } #Zacatecas
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = january year = 1501 }
	offset = 90
	deathdate = { day = 29 month = july year = 1501 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 80 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285514
	trigger = {
		ai = yes
		domestic = { type = aristocracy value = 5 }
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 27 data = SPA } #Zacatecas
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = august year = 1501 }
	offset = 90
	deathdate = { day = 29 month = december year = 1501 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 80 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285515
	trigger = {
		domestic = { type = aristocracy value = 5 }
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 27 data = SPA } #Zacatecas
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = january year = 1502 }
	offset = 90
	deathdate = { day = 29 month = july year = 1502 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 80 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285516
	trigger = {
		ai = yes
		domestic = { type = aristocracy value = 5 }
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 27 data = SPA } #Zacatecas
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = august year = 1502 }
	offset = 90
	deathdate = { day = 29 month = december year = 1502 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 80 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285517
	trigger = {
		domestic = { type = aristocracy value = 5 }
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 27 data = SPA } #Zacatecas
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = january year = 1503 }
	offset = 90
	deathdate = { day = 29 month = july year = 1503 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 80 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285518
	trigger = {
		ai = yes
		domestic = { type = aristocracy value = 5 }
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 27 data = SPA } #Zacatecas
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = august year = 1503 }
	offset = 90
	deathdate = { day = 29 month = december year = 1503 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 80 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285519
	trigger = {
		domestic = { type = aristocracy value = 5 }
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 27 data = SPA } #Zacatecas
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = january year = 1504 }
	offset = 90
	deathdate = { day = 29 month = july year = 1504 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 80 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285520
	trigger = {
		ai = yes
		domestic = { type = aristocracy value = 5 }
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 27 data = SPA } #Zacatecas
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = august year = 1504 }
	offset = 90
	deathdate = { day = 29 month = december year = 1504 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 80 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285521
	trigger = {
		domestic = { type = aristocracy value = 5 }
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 27 data = SPA } #Zacatecas
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = january year = 1505 }
	offset = 90
	deathdate = { day = 29 month = july year = 1505 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 80 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285522
	trigger = {
		ai = yes
		domestic = { type = aristocracy value = 5 }
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 27 data = SPA } #Zacatecas
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = august year = 1505 }
	offset = 90
	deathdate = { day = 29 month = december year = 1505 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 80 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285523
	trigger = {
		domestic = { type = aristocracy value = 5 }
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 27 data = SPA } #Zacatecas
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = january year = 1506 }
	offset = 90
	deathdate = { day = 29 month = july year = 1506 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 80 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285524
	trigger = {
		ai = yes
		domestic = { type = aristocracy value = 5 }
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 27 data = SPA } #Zacatecas
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = august year = 1506 }
	offset = 90
	deathdate = { day = 29 month = december year = 1506 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 80 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285525
	trigger = {
		domestic = { type = aristocracy value = 5 }
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 27 data = SPA } #Zacatecas
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = january year = 1507 }
	offset = 90
	deathdate = { day = 29 month = july year = 1507 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 80 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285526
	trigger = {
		ai = yes
		domestic = { type = aristocracy value = 5 }
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 27 data = SPA } #Zacatecas
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = august year = 1507 }
	offset = 90
	deathdate = { day = 29 month = december year = 1507 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 80 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285527
	trigger = {
		domestic = { type = aristocracy value = 5 }
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 27 data = SPA } #Zacatecas
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = january year = 1508 }
	offset = 90
	deathdate = { day = 29 month = july year = 1508 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 80 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285528
	trigger = {
		ai = yes
		domestic = { type = aristocracy value = 5 }
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 27 data = SPA } #Zacatecas
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = august year = 1508 }
	offset = 90
	deathdate = { day = 29 month = december year = 1508 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 80 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285529
	trigger = {
		domestic = { type = aristocracy value = 5 }
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 27 data = SPA } #Zacatecas
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = january year = 1509 }
	offset = 90
	deathdate = { day = 29 month = july year = 1509 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 80 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285530
	trigger = {
		ai = yes
		domestic = { type = aristocracy value = 5 }
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 27 data = SPA } #Zacatecas
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = august year = 1509 }
	offset = 90
	deathdate = { day = 29 month = december year = 1509 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 80 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285531
	trigger = {
		domestic = { type = aristocracy value = 5 }
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 27 data = SPA } #Zacatecas
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = january year = 1510 }
	offset = 90
	deathdate = { day = 29 month = july year = 1510 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 80 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285532
	trigger = {
		ai = yes
		domestic = { type = aristocracy value = 5 }
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 27 data = SPA } #Zacatecas
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = august year = 1510 }
	offset = 90
	deathdate = { day = 29 month = december year = 1510 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 80 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285533
	trigger = {
		domestic = { type = aristocracy value = 5 }
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 27 data = SPA } #Zacatecas
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = january year = 1511 }
	offset = 90
	deathdate = { day = 29 month = july year = 1511 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 80 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285534
	trigger = {
		ai = yes
		domestic = { type = aristocracy value = 5 }
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 27 data = SPA } #Zacatecas
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = august year = 1511 }
	offset = 90
	deathdate = { day = 29 month = december year = 1511 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 80 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285535
	trigger = {
		domestic = { type = aristocracy value = 5 }
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 27 data = SPA } #Zacatecas
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = january year = 1512 }
	offset = 90
	deathdate = { day = 29 month = july year = 1512 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 80 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285536
	trigger = {
		ai = yes
		domestic = { type = aristocracy value = 5 }
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 27 data = SPA } #Zacatecas
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = august year = 1512 }
	offset = 90
	deathdate = { day = 29 month = december year = 1512 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 80 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285537
	trigger = {
		domestic = { type = aristocracy value = 5 }
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 27 data = SPA } #Zacatecas
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = january year = 1513 }
	offset = 90
	deathdate = { day = 29 month = july year = 1513 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 80 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285538
	trigger = {
		ai = yes
		domestic = { type = aristocracy value = 5 }
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 27 data = SPA } #Zacatecas
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = august year = 1513 }
	offset = 90
	deathdate = { day = 29 month = december year = 1513 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 80 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285539
	trigger = {
		domestic = { type = aristocracy value = 5 }
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 27 data = SPA } #Zacatecas
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = january year = 1514 }
	offset = 90
	deathdate = { day = 29 month = july year = 1514 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 80 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285540
	trigger = {
		ai = yes
		domestic = { type = aristocracy value = 5 }
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 27 data = SPA } #Zacatecas
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = august year = 1514 }
	offset = 90
	deathdate = { day = 29 month = december year = 1514 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 80 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285541
	trigger = {
		domestic = { type = aristocracy value = 5 }
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 27 data = SPA } #Zacatecas
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = january year = 1515 }
	offset = 90
	deathdate = { day = 29 month = july year = 1515 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 80 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285542
	trigger = {
		ai = yes
		domestic = { type = aristocracy value = 5 }
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 27 data = SPA } #Zacatecas
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = august year = 1515 }
	offset = 90
	deathdate = { day = 29 month = december year = 1515 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 80 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285543
	trigger = {
		domestic = { type = aristocracy value = 5 }
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 27 data = SPA } #Zacatecas
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = january year = 1516 }
	offset = 90
	deathdate = { day = 29 month = july year = 1516 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 80 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285544
	trigger = {
		ai = yes
		domestic = { type = aristocracy value = 5 }
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 27 data = SPA } #Zacatecas
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = august year = 1516 }
	offset = 90
	deathdate = { day = 29 month = december year = 1516 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 80 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285545
	trigger = {
		domestic = { type = aristocracy value = 5 }
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 27 data = SPA } #Zacatecas
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = january year = 1517 }
	offset = 90
	deathdate = { day = 29 month = july year = 1517 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 80 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285546
	trigger = {
		ai = yes
		domestic = { type = aristocracy value = 5 }
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 27 data = SPA } #Zacatecas
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = august year = 1517 }
	offset = 90
	deathdate = { day = 29 month = december year = 1517 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 80 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285547
	trigger = {
		domestic = { type = aristocracy value = 5 }
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 27 data = SPA } #Zacatecas
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = january year = 1518 }
	offset = 90
	deathdate = { day = 29 month = july year = 1518 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 80 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285548
	trigger = {
		ai = yes
		domestic = { type = aristocracy value = 5 }
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 27 data = SPA } #Zacatecas
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = august year = 1518 }
	offset = 90
	deathdate = { day = 29 month = december year = 1518 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 80 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285727
	trigger = {
		domestic = { type = aristocracy value = 5 }
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 27 data = SPA } #Zacatecas
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = january year = 1519 }
	offset = 90
	deathdate = { day = 29 month = july year = 1519 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 80 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285549
	trigger = {
		ai = yes
		domestic = { type = aristocracy value = 5 }
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 27 data = SPA } #Zacatecas
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = august year = 1519 }
	offset = 90
	deathdate = { day = 29 month = december year = 1519 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 80 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285550
	trigger = {
		domestic = { type = aristocracy value = 5 }
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 27 data = SPA } #Zacatecas
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

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

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 80 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285551
	trigger = {
		ai = yes
		domestic = { type = aristocracy value = 5 }
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 27 data = SPA } #Zacatecas
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = august year = 1520 }
	offset = 90
	deathdate = { day = 29 month = december year = 1520 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 80 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285552
	trigger = {
		domestic = { type = aristocracy value = 5 }
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 27 data = SPA } #Zacatecas
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = january year = 1521 }
	offset = 90
	deathdate = { day = 29 month = july year = 1521 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 80 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285553
	trigger = {
		ai = yes
		domestic = { type = aristocracy value = 5 }
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 27 data = SPA } #Zacatecas
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = august year = 1521 }
	offset = 90
	deathdate = { day = 29 month = december year = 1521 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 80 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285554
	trigger = {
		domestic = { type = aristocracy value = 5 }
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 27 data = SPA } #Zacatecas
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = january year = 1522 }
	offset = 90
	deathdate = { day = 29 month = july year = 1522 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 80 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285555
	trigger = {
		ai = yes
		domestic = { type = aristocracy value = 5 }
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 27 data = SPA } #Zacatecas
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = august year = 1522 }
	offset = 90
	deathdate = { day = 29 month = december year = 1522 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 80 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285556
	trigger = {
		domestic = { type = aristocracy value = 5 }
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 27 data = SPA } #Zacatecas
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = january year = 1523 }
	offset = 90
	deathdate = { day = 29 month = july year = 1523 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 80 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285557
	trigger = {
		ai = yes
		domestic = { type = aristocracy value = 5 }
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 27 data = SPA } #Zacatecas
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = august year = 1523 }
	offset = 90
	deathdate = { day = 29 month = december year = 1523 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 80 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285558
	trigger = {
		domestic = { type = aristocracy value = 5 }
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 27 data = SPA } #Zacatecas
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = january year = 1524 }
	offset = 90
	deathdate = { day = 29 month = july year = 1524 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 80 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285559
	trigger = {
		ai = yes
		domestic = { type = aristocracy value = 5 }
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 27 data = SPA } #Zacatecas
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = august year = 1524 }
	offset = 90
	deathdate = { day = 29 month = december year = 1524 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 80 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285560
	trigger = {
		domestic = { type = aristocracy value = 5 }
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 27 data = SPA } #Zacatecas
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = january year = 1525 }
	offset = 90
	deathdate = { day = 29 month = july year = 1525 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 80 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285561
	trigger = {
		ai = yes
		domestic = { type = aristocracy value = 5 }
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 27 data = SPA } #Zacatecas
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = august year = 1525 }
	offset = 90
	deathdate = { day = 29 month = december year = 1525 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 80 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285562
	trigger = {
		domestic = { type = aristocracy value = 5 }
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 27 data = SPA } #Zacatecas
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = january year = 1526 }
	offset = 90
	deathdate = { day = 29 month = july year = 1526 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 80 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285563
	trigger = {
		ai = yes
		domestic = { type = aristocracy value = 5 }
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 27 data = SPA } #Zacatecas
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = august year = 1526 }
	offset = 90
	deathdate = { day = 29 month = december year = 1526 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 80 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285564
	trigger = {
		domestic = { type = aristocracy value = 5 }
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 27 data = SPA } #Zacatecas
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = january year = 1527 }
	offset = 90
	deathdate = { day = 29 month = july year = 1527 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 80 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285565
	trigger = {
		ai = yes
		domestic = { type = aristocracy value = 5 }
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 27 data = SPA } #Zacatecas
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = august year = 1527 }
	offset = 90
	deathdate = { day = 29 month = december year = 1527 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 80 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285566
	trigger = {
		domestic = { type = aristocracy value = 5 }
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 27 data = SPA } #Zacatecas
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = january year = 1528 }
	offset = 90
	deathdate = { day = 29 month = july year = 1528 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 80 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285567
	trigger = {
		ai = yes
		domestic = { type = aristocracy value = 5 }
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 27 data = SPA } #Zacatecas
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = august year = 1528 }
	offset = 90
	deathdate = { day = 29 month = december year = 1528 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 80 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285568
	trigger = {
		domestic = { type = aristocracy value = 5 }
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 27 data = SPA } #Zacatecas
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = january year = 1529 }
	offset = 90
	deathdate = { day = 29 month = july year = 1529 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 80 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285569
	trigger = {
		ai = yes
		domestic = { type = aristocracy value = 5 }
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 27 data = SPA } #Zacatecas
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = august year = 1529 }
	offset = 90
	deathdate = { day = 29 month = december year = 1529 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 80 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285570
	trigger = {
		domestic = { type = aristocracy value = 5 }
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 27 data = SPA } #Zacatecas
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = january year = 1530 }
	offset = 90
	deathdate = { day = 29 month = july year = 1530 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 80 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285571
	trigger = {
		ai = yes
		domestic = { type = aristocracy value = 5 }
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 27 data = SPA } #Zacatecas
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = august year = 1530 }
	offset = 90
	deathdate = { day = 29 month = december year = 1530 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 80 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285572
	trigger = {
		domestic = { type = aristocracy value = 5 }
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 27 data = SPA } #Zacatecas
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = january year = 1531 }
	offset = 90
	deathdate = { day = 29 month = july year = 1531 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 80 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285573
	trigger = {
		ai = yes
		domestic = { type = aristocracy value = 5 }
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 27 data = SPA } #Zacatecas
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = august year = 1531 }
	offset = 90
	deathdate = { day = 29 month = december year = 1531 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 80 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285574
	trigger = {
		domestic = { type = aristocracy value = 5 }
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 27 data = SPA } #Zacatecas
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = january year = 1532 }
	offset = 90
	deathdate = { day = 29 month = july year = 1532 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 80 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285575
	trigger = {
		ai = yes
		domestic = { type = aristocracy value = 5 }
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 27 data = SPA } #Zacatecas
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = august year = 1532 }
	offset = 90
	deathdate = { day = 29 month = december year = 1532 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 80 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285576
	trigger = {
		domestic = { type = aristocracy value = 5 }
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 27 data = SPA } #Zacatecas
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = january year = 1533 }
	offset = 90
	deathdate = { day = 29 month = july year = 1533 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 80 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285577
	trigger = {
		ai = yes
		domestic = { type = aristocracy value = 5 }
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 27 data = SPA } #Zacatecas
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = august year = 1533 }
	offset = 90
	deathdate = { day = 29 month = december year = 1533 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 80 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285578
	trigger = {
		domestic = { type = aristocracy value = 5 }
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 27 data = SPA } #Zacatecas
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = january year = 1534 }
	offset = 90
	deathdate = { day = 29 month = july year = 1534 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 80 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285579
	trigger = {
		ai = yes
		domestic = { type = aristocracy value = 5 }
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 27 data = SPA } #Zacatecas
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = august year = 1534 }
	offset = 90
	deathdate = { day = 29 month = december year = 1534 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 80 }
		command = { type = colonists value = 3 }
	}
}
#End of Part I Semiannual generic events without Zacatecas, Cuzco, or Lesser Antillas
#-----------------------------------------------------------------------------------------------

#-----------------------------------------------------------------------------------------------
#Part II Semiannual generic events with Zacatecas, but without Cuzco, or Lesser Antillas

#(1519-1573) Signing of Capitulaciones for colonization
event = {
	id = 285580
	trigger = {
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = january year = 1519 }
	offset = 90
	deathdate = { day = 29 month = july year = 1519 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 40 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285581
	trigger = {
		ai = yes
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = august year = 1519 }
	offset = 90
	deathdate = { day = 29 month = december year = 1519 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 40 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285582
	trigger = {
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

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

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 40 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285583
	trigger = {
		ai = yes
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = august year = 1520 }
	offset = 90
	deathdate = { day = 29 month = december year = 1520 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 40 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285584
	trigger = {
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = january year = 1521 }
	offset = 90
	deathdate = { day = 29 month = july year = 1521 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 40 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285585
	trigger = {
		ai = yes
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = august year = 1521 }
	offset = 90
	deathdate = { day = 29 month = december year = 1521 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 40 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285586
	trigger = {
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = january year = 1522 }
	offset = 90
	deathdate = { day = 29 month = july year = 1522 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 40 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285587
	trigger = {
		ai = yes
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = august year = 1522 }
	offset = 90
	deathdate = { day = 29 month = december year = 1522 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 40 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285588
	trigger = {
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = january year = 1523 }
	offset = 90
	deathdate = { day = 29 month = july year = 1523 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 40 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285589
	trigger = {
		ai = yes
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = august year = 1523 }
	offset = 90
	deathdate = { day = 29 month = december year = 1523 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 40 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285590
	trigger = {
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = january year = 1524 }
	offset = 90
	deathdate = { day = 29 month = july year = 1524 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 40 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285591
	trigger = {
		ai = yes
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = august year = 1524 }
	offset = 90
	deathdate = { day = 29 month = december year = 1524 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 40 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285592
	trigger = {
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = january year = 1525 }
	offset = 90
	deathdate = { day = 29 month = july year = 1525 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 40 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285593
	trigger = {
		ai = yes
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = august year = 1525 }
	offset = 90
	deathdate = { day = 29 month = december year = 1525 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 40 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285594
	trigger = {
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = january year = 1526 }
	offset = 90
	deathdate = { day = 29 month = july year = 1526 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 40 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285595
	trigger = {
		ai = yes
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = august year = 1526 }
	offset = 90
	deathdate = { day = 29 month = december year = 1526 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 40 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285596
	trigger = {
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = january year = 1527 }
	offset = 90
	deathdate = { day = 29 month = july year = 1527 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 40 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285597
	trigger = {
		ai = yes
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = august year = 1527 }
	offset = 90
	deathdate = { day = 29 month = december year = 1527 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 40 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285598
	trigger = {
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = january year = 1528 }
	offset = 90
	deathdate = { day = 29 month = july year = 1528 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 40 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285599
	trigger = {
		ai = yes
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = august year = 1528 }
	offset = 90
	deathdate = { day = 29 month = december year = 1528 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 40 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285600
	trigger = {
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = january year = 1529 }
	offset = 90
	deathdate = { day = 29 month = july year = 1529 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 40 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285601
	trigger = {
		ai = yes
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = august year = 1529 }
	offset = 90
	deathdate = { day = 29 month = december year = 1529 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 40 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285602
	trigger = {
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = january year = 1530 }
	offset = 90
	deathdate = { day = 29 month = july year = 1530 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 40 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285603
	trigger = {
		ai = yes
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = august year = 1530 }
	offset = 90
	deathdate = { day = 29 month = december year = 1530 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 40 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285604
	trigger = {
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = january year = 1531 }
	offset = 90
	deathdate = { day = 29 month = july year = 1531 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 40 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285605
	trigger = {
		ai = yes
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = august year = 1531 }
	offset = 90
	deathdate = { day = 29 month = december year = 1531 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 40 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285606
	trigger = {
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = january year = 1532 }
	offset = 90
	deathdate = { day = 29 month = july year = 1532 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 40 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285607
	trigger = {
		ai = yes
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = august year = 1532 }
	offset = 90
	deathdate = { day = 29 month = december year = 1532 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 40 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285608
	trigger = {
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = january year = 1533 }
	offset = 90
	deathdate = { day = 29 month = july year = 1533 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 40 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285609
	trigger = {
		ai = yes
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = august year = 1533 }
	offset = 90
	deathdate = { day = 29 month = december year = 1533 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 40 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285610
	trigger = {
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = january year = 1534 }
	offset = 90
	deathdate = { day = 29 month = july year = 1534 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 40 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285611
	trigger = {
		ai = yes
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = august year = 1534 }
	offset = 90
	deathdate = { day = 29 month = december year = 1534 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 40 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285612
	trigger = {
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = january year = 1535 }
	offset = 90
	deathdate = { day = 29 month = july year = 1535 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 40 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285613
	trigger = {
		ai = yes
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = august year = 1535 }
	offset = 90
	deathdate = { day = 29 month = december year = 1535 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 40 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285614
	trigger = {
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = january year = 1536 }
	offset = 90
	deathdate = { day = 29 month = july year = 1536 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 40 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285615
	trigger = {
		ai = yes
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = august year = 1536 }
	offset = 90
	deathdate = { day = 29 month = december year = 1536 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 40 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285616
	trigger = {
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = january year = 1537 }
	offset = 90
	deathdate = { day = 29 month = july year = 1537 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 40 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285617
	trigger = {
		ai = yes
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = august year = 1537 }
	offset = 90
	deathdate = { day = 29 month = december year = 1537 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 40 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285618
	trigger = {
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = january year = 1538 }
	offset = 90
	deathdate = { day = 29 month = july year = 1538 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 40 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285619
	trigger = {
		ai = yes
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = august year = 1538 }
	offset = 90
	deathdate = { day = 29 month = december year = 1538 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 40 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285620
	trigger = {
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = january year = 1539 }
	offset = 90
	deathdate = { day = 29 month = july year = 1539 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 40 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285621
	trigger = {
		ai = yes
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = august year = 1539 }
	offset = 90
	deathdate = { day = 29 month = december year = 1539 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 40 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285622
	trigger = {
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = january year = 1540 }
	offset = 90
	deathdate = { day = 29 month = july year = 1540 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 40 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285623
	trigger = {
		ai = yes
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = august year = 1540 }
	offset = 90
	deathdate = { day = 29 month = december year = 1540 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 40 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285624
	trigger = {
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = january year = 1541 }
	offset = 90
	deathdate = { day = 29 month = july year = 1541 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 40 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285625
	trigger = {
		ai = yes
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = august year = 1541 }
	offset = 90
	deathdate = { day = 29 month = december year = 1541 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 40 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285626
	trigger = {
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = january year = 1542 }
	offset = 90
	deathdate = { day = 29 month = july year = 1542 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 40 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285627
	trigger = {
		ai = yes
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = august year = 1542 }
	offset = 90
	deathdate = { day = 29 month = december year = 1542 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 40 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285628
	trigger = {
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = january year = 1543 }
	offset = 90
	deathdate = { day = 29 month = july year = 1543 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 40 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285629
	trigger = {
		ai = yes
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = august year = 1543 }
	offset = 90
	deathdate = { day = 29 month = december year = 1543 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 40 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285630
	trigger = {
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = january year = 1544 }
	offset = 90
	deathdate = { day = 29 month = july year = 1544 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 40 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285631
	trigger = {
		ai = yes
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = august year = 1544 }
	offset = 90
	deathdate = { day = 29 month = december year = 1544 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 40 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285632
	trigger = {
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = january year = 1545 }
	offset = 90
	deathdate = { day = 29 month = july year = 1545 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 40 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285633
	trigger = {
		ai = yes
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = august year = 1545 }
	offset = 90
	deathdate = { day = 29 month = december year = 1545 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 40 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285634
	trigger = {
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = january year = 1546 }
	offset = 90
	deathdate = { day = 29 month = july year = 1546 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 40 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285635
	trigger = {
		ai = yes
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = august year = 1546 }
	offset = 90
	deathdate = { day = 29 month = december year = 1546 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 40 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285636
	trigger = {
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = january year = 1547 }
	offset = 90
	deathdate = { day = 29 month = july year = 1547 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 40 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285637
	trigger = {
		ai = yes
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = august year = 1547 }
	offset = 90
	deathdate = { day = 29 month = december year = 1547 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 40 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285638
	trigger = {
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = january year = 1548 }
	offset = 90
	deathdate = { day = 29 month = july year = 1548 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 40 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285639
	trigger = {
		ai = yes
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = august year = 1548 }
	offset = 90
	deathdate = { day = 29 month = december year = 1548 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 40 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285640
	trigger = {
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = january year = 1549 }
	offset = 90
	deathdate = { day = 29 month = july year = 1549 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 40 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285641
	trigger = {
		ai = yes
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = august year = 1549 }
	offset = 90
	deathdate = { day = 29 month = december year = 1549 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 40 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285642
	trigger = {
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = january year = 1550 }
	offset = 90
	deathdate = { day = 29 month = july year = 1550 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 40 }
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285643
	trigger = {
		ai = yes
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 169 data = SPA } #Cuzco
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = august year = 1550 }
	offset = 90
	deathdate = { day = 29 month = december year = 1550 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = treasury value = 40 }
		command = { type = colonists value = 3 }
	}
}
#End of Part II Semiannual generic events with Zacatecas, but without Cuzco, or Lesser Antillas
#-----------------------------------------------------------------------------------------------

#-----------------------------------------------------------------------------------------------
#Part III Semiannual generic events with Zacatecas or Cuzco, but without Lesser Antillas

event = {
	id = 285644
	trigger = {
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		owned = { province = 169 data = SPA } #Cuzco
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = january year = 1532 }
	offset = 90
	deathdate = { day = 29 month = july year = 1532 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285645
	trigger = {
		ai = yes
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		owned = { province = 169 data = SPA } #Cuzco
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = august year = 1532 }
	offset = 90
	deathdate = { day = 29 month = december year = 1532 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285646
	trigger = {
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		owned = { province = 169 data = SPA } #Cuzco
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = january year = 1533 }
	offset = 90
	deathdate = { day = 29 month = july year = 1533 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285647
	trigger = {
		ai = yes
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		owned = { province = 169 data = SPA } #Cuzco
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = august year = 1533 }
	offset = 90
	deathdate = { day = 29 month = december year = 1533 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285648
	trigger = {
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		owned = { province = 169 data = SPA } #Cuzco
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = january year = 1534 }
	offset = 90
	deathdate = { day = 29 month = july year = 1534 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285649
	trigger = {
		ai = yes
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		owned = { province = 169 data = SPA } #Cuzco
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = august year = 1534 }
	offset = 90
	deathdate = { day = 29 month = december year = 1534 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285650
	trigger = {
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		owned = { province = 169 data = SPA } #Cuzco
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = january year = 1535 }
	offset = 90
	deathdate = { day = 29 month = july year = 1535 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285651
	trigger = {
		ai = yes
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		owned = { province = 169 data = SPA } #Cuzco
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = august year = 1535 }
	offset = 90
	deathdate = { day = 29 month = december year = 1535 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285652
	trigger = {
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		owned = { province = 169 data = SPA } #Cuzco
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = january year = 1536 }
	offset = 90
	deathdate = { day = 29 month = july year = 1536 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285653
	trigger = {
		ai = yes
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		owned = { province = 169 data = SPA } #Cuzco
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = august year = 1536 }
	offset = 90
	deathdate = { day = 29 month = december year = 1536 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285654
	trigger = {
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		owned = { province = 169 data = SPA } #Cuzco
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = january year = 1537 }
	offset = 90
	deathdate = { day = 29 month = july year = 1537 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285655
	trigger = {
		ai = yes
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		owned = { province = 169 data = SPA } #Cuzco
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = august year = 1537 }
	offset = 90
	deathdate = { day = 29 month = december year = 1537 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285656
	trigger = {
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		owned = { province = 169 data = SPA } #Cuzco
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = january year = 1538 }
	offset = 90
	deathdate = { day = 29 month = july year = 1538 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285657
	trigger = {
		ai = yes
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		owned = { province = 169 data = SPA } #Cuzco
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = august year = 1538 }
	offset = 90
	deathdate = { day = 29 month = december year = 1538 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285658
	trigger = {
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		owned = { province = 169 data = SPA } #Cuzco
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = january year = 1539 }
	offset = 90
	deathdate = { day = 29 month = july year = 1539 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285659
	trigger = {
		ai = yes
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		owned = { province = 169 data = SPA } #Cuzco
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = august year = 1539 }
	offset = 90
	deathdate = { day = 29 month = december year = 1539 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285660
	trigger = {
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		owned = { province = 169 data = SPA } #Cuzco
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = january year = 1540 }
	offset = 90
	deathdate = { day = 29 month = july year = 1540 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285661
	trigger = {
		ai = yes
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		owned = { province = 169 data = SPA } #Cuzco
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = august year = 1540 }
	offset = 90
	deathdate = { day = 29 month = december year = 1540 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285662
	trigger = {
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		owned = { province = 169 data = SPA } #Cuzco
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = january year = 1541 }
	offset = 90
	deathdate = { day = 29 month = july year = 1541 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285663
	trigger = {
		ai = yes
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		owned = { province = 169 data = SPA } #Cuzco
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = august year = 1541 }
	offset = 90
	deathdate = { day = 29 month = december year = 1541 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285664
	trigger = {
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		owned = { province = 169 data = SPA } #Cuzco
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = january year = 1542 }
	offset = 90
	deathdate = { day = 29 month = july year = 1542 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285665
	trigger = {
		ai = yes
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		owned = { province = 169 data = SPA } #Cuzco
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = august year = 1542 }
	offset = 90
	deathdate = { day = 29 month = december year = 1542 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285666
	trigger = {
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		owned = { province = 169 data = SPA } #Cuzco
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = january year = 1543 }
	offset = 90
	deathdate = { day = 29 month = july year = 1543 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285667
	trigger = {
		ai = yes
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		owned = { province = 169 data = SPA } #Cuzco
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = august year = 1543 }
	offset = 90
	deathdate = { day = 29 month = december year = 1543 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285668
	trigger = {
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		owned = { province = 169 data = SPA } #Cuzco
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = january year = 1544 }
	offset = 90
	deathdate = { day = 29 month = july year = 1544 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285669
	trigger = {
		ai = yes
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		owned = { province = 169 data = SPA } #Cuzco
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = august year = 1544 }
	offset = 90
	deathdate = { day = 29 month = december year = 1544 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285670
	trigger = {
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		owned = { province = 169 data = SPA } #Cuzco
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = january year = 1545 }
	offset = 90
	deathdate = { day = 29 month = july year = 1545 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285671
	trigger = {
		ai = yes
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		owned = { province = 169 data = SPA } #Cuzco
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = august year = 1545 }
	offset = 90
	deathdate = { day = 29 month = december year = 1545 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285672
	trigger = {
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		owned = { province = 169 data = SPA } #Cuzco
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = january year = 1546 }
	offset = 90
	deathdate = { day = 29 month = july year = 1546 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285673
	trigger = {
		ai = yes
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		owned = { province = 169 data = SPA } #Cuzco
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = august year = 1546 }
	offset = 90
	deathdate = { day = 29 month = december year = 1546 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285674
	trigger = {
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		owned = { province = 169 data = SPA } #Cuzco
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = january year = 1547 }
	offset = 90
	deathdate = { day = 29 month = july year = 1547 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285675
	trigger = {
		ai = yes
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		owned = { province = 169 data = SPA } #Cuzco
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = august year = 1547 }
	offset = 90
	deathdate = { day = 29 month = december year = 1547 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285676
	trigger = {
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		owned = { province = 169 data = SPA } #Cuzco
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = january year = 1548 }
	offset = 90
	deathdate = { day = 29 month = july year = 1548 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285677
	trigger = {
		ai = yes
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		owned = { province = 169 data = SPA } #Cuzco
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = august year = 1548 }
	offset = 90
	deathdate = { day = 29 month = december year = 1548 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285678
	trigger = {
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		owned = { province = 169 data = SPA } #Cuzco
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = january year = 1549 }
	offset = 90
	deathdate = { day = 29 month = july year = 1549 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285679
	trigger = {
		ai = yes
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		owned = { province = 169 data = SPA } #Cuzco
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = august year = 1549 }
	offset = 90
	deathdate = { day = 29 month = december year = 1549 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285680
	trigger = {
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		owned = { province = 169 data = SPA } #Cuzco
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = january year = 1550 }
	offset = 90
	deathdate = { day = 29 month = july year = 1550 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285681
	trigger = {
		ai = yes
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		owned = { province = 169 data = SPA } #Cuzco
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = august year = 1550 }
	offset = 90
	deathdate = { day = 29 month = december year = 1550 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285682
	trigger = {
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		owned = { province = 169 data = SPA } #Cuzco
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = january year = 1551 }
	offset = 90
	deathdate = { day = 29 month = july year = 1551 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285683
	trigger = {
		ai = yes
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		owned = { province = 169 data = SPA } #Cuzco
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = august year = 1551 }
	offset = 90
	deathdate = { day = 29 month = december year = 1551 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285684
	trigger = {
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		owned = { province = 169 data = SPA } #Cuzco
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = january year = 1552 }
	offset = 90
	deathdate = { day = 29 month = july year = 1552 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285685
	trigger = {
		ai = yes
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		owned = { province = 169 data = SPA } #Cuzco
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = august year = 1552 }
	offset = 90
	deathdate = { day = 29 month = december year = 1552 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285686
	trigger = {
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		owned = { province = 169 data = SPA } #Cuzco
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = january year = 1553 }
	offset = 90
	deathdate = { day = 29 month = july year = 1553 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285687
	trigger = {
		ai = yes
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		owned = { province = 169 data = SPA } #Cuzco
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = august year = 1553 }
	offset = 90
	deathdate = { day = 29 month = december year = 1553 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285688
	trigger = {
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		owned = { province = 169 data = SPA } #Cuzco
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = january year = 1554 }
	offset = 90
	deathdate = { day = 29 month = july year = 1554 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285689
	trigger = {
		ai = yes
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		owned = { province = 169 data = SPA } #Cuzco
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = august year = 1554 }
	offset = 90
	deathdate = { day = 29 month = december year = 1554 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285690
	trigger = {
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		owned = { province = 169 data = SPA } #Cuzco
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = january year = 1555 }
	offset = 90
	deathdate = { day = 29 month = july year = 1555 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285691
	trigger = {
		ai = yes
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		owned = { province = 169 data = SPA } #Cuzco
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = august year = 1555 }
	offset = 90
	deathdate = { day = 29 month = december year = 1555 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285692
	trigger = {
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		owned = { province = 169 data = SPA } #Cuzco
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = january year = 1556 }
	offset = 90
	deathdate = { day = 29 month = july year = 1556 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285693
	trigger = {
		ai = yes
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		owned = { province = 169 data = SPA } #Cuzco
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = august year = 1556 }
	offset = 90
	deathdate = { day = 29 month = december year = 1556 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285694
	trigger = {
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		owned = { province = 169 data = SPA } #Cuzco
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = january year = 1557 }
	offset = 90
	deathdate = { day = 29 month = july year = 1557 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285695
	trigger = {
		ai = yes
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		owned = { province = 169 data = SPA } #Cuzco
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = august year = 1557 }
	offset = 90
	deathdate = { day = 29 month = december year = 1557 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285696
	trigger = {
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		owned = { province = 169 data = SPA } #Cuzco
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = january year = 1558 }
	offset = 90
	deathdate = { day = 29 month = july year = 1558 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285697
	trigger = {
		ai = yes
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		owned = { province = 169 data = SPA } #Cuzco
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = august year = 1558 }
	offset = 90
	deathdate = { day = 29 month = december year = 1558 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285698
	trigger = {
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		owned = { province = 169 data = SPA } #Cuzco
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = january year = 1559 }
	offset = 90
	deathdate = { day = 29 month = july year = 1559 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285699
	trigger = {
		ai = yes
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		owned = { province = 169 data = SPA } #Cuzco
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = august year = 1559 }
	offset = 90
	deathdate = { day = 29 month = december year = 1559 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285728
	trigger = {
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		owned = { province = 169 data = SPA } #Cuzco
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = january year = 1560 }
	offset = 90
	deathdate = { day = 29 month = july year = 1560 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285729
	trigger = {
		ai = yes
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		owned = { province = 169 data = SPA } #Cuzco
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = august year = 1560 }
	offset = 90
	deathdate = { day = 29 month = december year = 1560 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285702
	trigger = {
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		owned = { province = 169 data = SPA } #Cuzco
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = january year = 1561 }
	offset = 90
	deathdate = { day = 29 month = july year = 1561 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285703
	trigger = {
		ai = yes
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		owned = { province = 169 data = SPA } #Cuzco
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = august year = 1561 }
	offset = 90
	deathdate = { day = 29 month = december year = 1561 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285704
	trigger = {
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		owned = { province = 169 data = SPA } #Cuzco
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = january year = 1562 }
	offset = 90
	deathdate = { day = 29 month = july year = 1562 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285705
	trigger = {
		ai = yes
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		owned = { province = 169 data = SPA } #Cuzco
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = august year = 1562 }
	offset = 90
	deathdate = { day = 29 month = december year = 1562 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285706
	trigger = {
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		owned = { province = 169 data = SPA } #Cuzco
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = january year = 1563 }
	offset = 90
	deathdate = { day = 29 month = july year = 1563 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285707
	trigger = {
		ai = yes
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		owned = { province = 169 data = SPA } #Cuzco
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = august year = 1563 }
	offset = 90
	deathdate = { day = 29 month = december year = 1563 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285708
	trigger = {
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		owned = { province = 169 data = SPA } #Cuzco
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = january year = 1564 }
	offset = 90
	deathdate = { day = 29 month = july year = 1564 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285709
	trigger = {
		ai = yes
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		owned = { province = 169 data = SPA } #Cuzco
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = august year = 1564 }
	offset = 90
	deathdate = { day = 29 month = december year = 1564 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285710
	trigger = {
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		owned = { province = 169 data = SPA } #Cuzco
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = january year = 1565 }
	offset = 90
	deathdate = { day = 29 month = july year = 1565 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285711
	trigger = {
		ai = yes
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		owned = { province = 169 data = SPA } #Cuzco
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = august year = 1565 }
	offset = 90
	deathdate = { day = 29 month = december year = 1565 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285712
	trigger = {
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		owned = { province = 169 data = SPA } #Cuzco
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = january year = 1566 }
	offset = 90
	deathdate = { day = 29 month = july year = 1566 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285713
	trigger = {
		ai = yes
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		owned = { province = 169 data = SPA } #Cuzco
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = august year = 1566 }
	offset = 90
	deathdate = { day = 29 month = december year = 1566 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285714
	trigger = {
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		owned = { province = 169 data = SPA } #Cuzco
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = january year = 1567 }
	offset = 90
	deathdate = { day = 29 month = july year = 1567 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285715
	trigger = {
		ai = yes
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		owned = { province = 169 data = SPA } #Cuzco
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = august year = 1567 }
	offset = 90
	deathdate = { day = 29 month = december year = 1567 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285716
	trigger = {
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		owned = { province = 169 data = SPA } #Cuzco
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = january year = 1568 }
	offset = 90
	deathdate = { day = 29 month = july year = 1568 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285717
	trigger = {
		ai = yes
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		owned = { province = 169 data = SPA } #Cuzco
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = august year = 1568 }
	offset = 90
	deathdate = { day = 29 month = december year = 1568 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285718
	trigger = {
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		owned = { province = 169 data = SPA } #Cuzco
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = january year = 1569 }
	offset = 90
	deathdate = { day = 29 month = july year = 1569 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285719
	trigger = {
		ai = yes
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		owned = { province = 169 data = SPA } #Cuzco
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = august year = 1569 }
	offset = 90
	deathdate = { day = 29 month = december year = 1569 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285720
	trigger = {
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		owned = { province = 169 data = SPA } #Cuzco
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = january year = 1570 }
	offset = 90
	deathdate = { day = 29 month = july year = 1570 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285721
	trigger = {
		ai = yes
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		owned = { province = 169 data = SPA } #Cuzco
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = august year = 1570 }
	offset = 90
	deathdate = { day = 29 month = december year = 1570 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285722
	trigger = {
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		owned = { province = 169 data = SPA } #Cuzco
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = january year = 1571 }
	offset = 90
	deathdate = { day = 29 month = july year = 1571 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285723
	trigger = {
		ai = yes
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		owned = { province = 169 data = SPA } #Cuzco
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = august year = 1571 }
	offset = 90
	deathdate = { day = 29 month = december year = 1571 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285724
	trigger = {
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		owned = { province = 169 data = SPA } #Cuzco
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = january year = 1572 }
	offset = 90
	deathdate = { day = 29 month = july year = 1572 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = colonists value = 3 }
	}
}
event = {
	id = 285725
	trigger = {
		ai = yes
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		owned = { province = 169 data = SPA } #Cuzco
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285501"
	desc = "EVENTHIST285501"

	date = { day = 1 month = august year = 1572 }
	offset = 90
	deathdate = { day = 29 month = december year = 1572 }

	action_a = {
		name = "ACTIONNAME285501A"
		command = { type = colonists value = 3 }
	}
}
#End of Part III Semiannual generic events with Zacatecas or Cuzco, but without Lesser Antillas
#-----------------------------------------------------------------------------------------------

#(1573) Colonization Regulations of 1573
event = {
	id = 285726
	trigger = {
		domestic = { type = aristocracy value = 5 }
		owned = { province = 27 data = SPA } #Zacatecas
		owned = { province = 169 data = SPA } #Cuzco
		NOT = {
			domestic = { type = innovative value = 6 }
			owned = { province = 145 data = SPA } #St. Thomas
			owned = { province = 146 data = SPA } #St. Martin
			owned = { province = 147 data = SPA } #Antigua
			owned = { province = 148 data = SPA } #Dominica
			owned = { province = 149 data = SPA } #Guadeloupe
			owned = { province = 150 data = SPA } #Martinique
			owned = { province = 152 data = SPA } #Barbados
			owned = { province = 153 data = SPA } #Curacao
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285726" #Colonization Regulations of 1573
	desc = "EVENTHIST285726"
	#-#The Colonization Regulations of 1573, introduced by Felipe II, meant a change in the colonization model of Spain, that became tightly regulated by the Crown, putting an end to the wild expansion of the first decades. Capitulaciones became unfrequent, and few private enterprises, like the one of New Mexico, were authorised, while Jesuits were entrusted with the colonization of Paraguay and California in the following century.

	date = { day = 1 month = january year = 1573 }
	offset = 90
	deathdate = { day = 29 month = july year = 1573 }

	action_a = {
		name = "ACTIONNAME285726A" #No more Capitulations
		command = { type = colonists value = 3 }
	}
}

#-----------------------------------------------------------------------------------------------
#(1575-1780) Capitulaciones and private enterprises for colonization

event = {
	id = 285730
	trigger = {
		owned = { province = 27 data = -1 } #Zacatecas
		NOT = {
			exists = AZT
			exists = ZAP
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285730"
	desc = "EVENTHIST285730"

	date = { day = 1 month = january year = 1575 }
	offset = 1000
	deathdate = { day = 1 month = january year = 1580 }

	action_a = {
		name = "OK"
		command = { type = treasury value = 20 }
		command = { type = colonists value = 4 }
	}
}
event = {
	id = 285731
	trigger = {
		ai = yes
		owned = { province = 27 data = -1 } #Zacatecas
		NOT = {
			exists = AZT
			exists = ZAP
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285730"
	desc = "EVENTHIST285730"

	date = { day = 1 month = january year = 1580 }
	offset = 1000
	deathdate = { day = 1 month = january year = 1585 }

	action_a = {
		name = "OK"
		command = { type = treasury value = 20 }
		command = { type = colonists value = 4 }
	}
}
event = {
	id = 285732
	trigger = {
		ai = yes
		owned = { province = 27 data = -1 } #Zacatecas
		NOT = {
			exists = AZT
			exists = ZAP
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285730"
	desc = "EVENTHIST285730"

	date = { day = 1 month = august year = 1585 }
	offset = 1000
	deathdate = { day = 1 month = january year = 1590 }

	action_a = {
		name = "OK"
		command = { type = treasury value = 20 }
		command = { type = colonists value = 4 }
	}
}
event = {
	id = 285733
	trigger = {
		ai = yes
		owned = { province = 27 data = -1 } #Zacatecas
		NOT = {
			exists = AZT
			exists = ZAP
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285730"
	desc = "EVENTHIST285730"

	date = { day = 1 month = august year = 1590 }
	offset = 1000
	deathdate = { day = 1 month = january year = 1595 }

	action_a = {
		name = "OK"
		command = { type = treasury value = 20 }
		command = { type = colonists value = 4 }
	}
}
event = {
	id = 285734
	trigger = {
		owned = { province = 27 data = -1 } #Zacatecas
		NOT = {
			exists = AZT
			exists = ZAP
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285730"
	desc = "EVENTHIST285730"

	date = { day = 1 month = august year = 1595 }
	offset = 1000
	deathdate = { day = 1 month = january year = 1600 }

	action_a = {
		name = "OK"
		command = { type = treasury value = 20 }
		command = { type = colonists value = 4 }
	}
}
event = {
	id = 285735
	trigger = {
		ai = yes
		owned = { province = 27 data = -1 } #Zacatecas
		NOT = {
			exists = AZT
			exists = ZAP
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285730"
	desc = "EVENTHIST285730"

	date = { day = 1 month = august year = 1600 }
	offset = 1000
	deathdate = { day = 1 month = january year = 1605 }

	action_a = {
		name = "OK"
		command = { type = treasury value = 20 }
		command = { type = colonists value = 4 }
	}
}
event = {
	id = 285736
	trigger = {
		ai = yes
		owned = { province = 27 data = -1 } #Zacatecas
		NOT = {
			exists = AZT
			exists = ZAP
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285730"
	desc = "EVENTHIST285730"

	date = { day = 1 month = august year = 1605 }
	offset = 1000
	deathdate = { day = 1 month = january year = 1610 }

	action_a = {
		name = "OK"
		command = { type = treasury value = 20 }
		command = { type = colonists value = 4 }
	}
}
event = {
	id = 285737
	trigger = {
		ai = yes
		owned = { province = 27 data = -1 } #Zacatecas
		NOT = {
			exists = AZT
			exists = ZAP
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285730"
	desc = "EVENTHIST285730"

	date = { day = 1 month = august year = 1610 }
	offset = 1000
	deathdate = { day = 1 month = january year = 1615 }

	action_a = {
		name = "OK"
		command = { type = treasury value = 20 }
		command = { type = colonists value = 4 }
	}
}
event = {
	id = 285738
	trigger = {
		owned = { province = 27 data = -1 } #Zacatecas
		NOT = {
			exists = AZT
			exists = ZAP
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285730"
	desc = "EVENTHIST285730"

	date = { day = 1 month = august year = 1615 }
	offset = 1000
	deathdate = { day = 1 month = january year = 1620 }

	action_a = {
		name = "OK"
		command = { type = treasury value = 20 }
		command = { type = colonists value = 4 }
	}
}
event = {
	id = 285739
	trigger = {
		ai = yes
		owned = { province = 27 data = -1 } #Zacatecas
		NOT = {
			exists = AZT
			exists = ZAP
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285730"
	desc = "EVENTHIST285730"

	date = { day = 1 month = august year = 1620 }
	offset = 1000
	deathdate = { day = 1 month = january year = 1625 }

	action_a = {
		name = "OK"
		command = { type = treasury value = 20 }
		command = { type = colonists value = 4 }
	}
}
event = {
	id = 285740
	trigger = {
		ai = yes
		owned = { province = 27 data = -1 } #Zacatecas
		NOT = {
			exists = AZT
			exists = ZAP
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285730"
	desc = "EVENTHIST285730"

	date = { day = 1 month = august year = 1625 }
	offset = 1000
	deathdate = { day = 1 month = january year = 1630 }

	action_a = {
		name = "OK"
		command = { type = treasury value = 20 }
		command = { type = colonists value = 4 }
	}
}
event = {
	id = 285741
	trigger = {
		ai = yes
		owned = { province = 27 data = -1 } #Zacatecas
		NOT = {
			exists = AZT
			exists = ZAP
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285730"
	desc = "EVENTHIST285730"

	date = { day = 1 month = august year = 1630 }
	offset = 1000
	deathdate = { day = 1 month = january year = 1635 }

	action_a = {
		name = "OK"
		command = { type = treasury value = 20 }
		command = { type = colonists value = 4 }
	}
}
event = {
	id = 285742
	trigger = {
		owned = { province = 27 data = -1 } #Zacatecas
		NOT = {
			exists = AZT
			exists = ZAP
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285730"
	desc = "EVENTHIST285730"

	date = { day = 1 month = august year = 1635 }
	offset = 1000
	deathdate = { day = 1 month = january year = 1640 }

	action_a = {
		name = "OK"
		command = { type = treasury value = 20 }
		command = { type = colonists value = 4 }
	}
}
event = {
	id = 285743
	trigger = {
		ai = yes
		owned = { province = 27 data = -1 } #Zacatecas
		NOT = {
			exists = AZT
			exists = ZAP
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285730"
	desc = "EVENTHIST285730"

	date = { day = 1 month = august year = 1640 }
	offset = 1000
	deathdate = { day = 1 month = january year = 1645 }

	action_a = {
		name = "OK"
		command = { type = treasury value = 20 }
		command = { type = colonists value = 4 }
	}
}
event = {
	id = 285744
	trigger = {
		ai = yes
		owned = { province = 27 data = -1 } #Zacatecas
		NOT = {
			exists = AZT
			exists = ZAP
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285730"
	desc = "EVENTHIST285730"

	date = { day = 1 month = august year = 1645 }
	offset = 1000
	deathdate = { day = 1 month = january year = 1650 }

	action_a = {
		name = "OK"
		command = { type = treasury value = 20 }
		command = { type = colonists value = 4 }
	}
}
event = {
	id = 285745
	trigger = {
		ai = yes
		owned = { province = 27 data = -1 } #Zacatecas
		NOT = {
			exists = AZT
			exists = ZAP
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285730"
	desc = "EVENTHIST285730"

	date = { day = 1 month = august year = 1650 }
	offset = 1000
	deathdate = { day = 1 month = january year = 1655 }

	action_a = {
		name = "OK"
		command = { type = treasury value = 20 }
		command = { type = colonists value = 4 }
	}
}
event = {
	id = 285746
	trigger = {
		owned = { province = 27 data = -1 } #Zacatecas
		NOT = {
			exists = AZT
			exists = ZAP
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285730"
	desc = "EVENTHIST285730"

	date = { day = 1 month = august year = 1655 }
	offset = 1000
	deathdate = { day = 1 month = january year = 1660 }

	action_a = {
		name = "OK"
		command = { type = treasury value = 20 }
		command = { type = colonists value = 4 }
	}
}
event = {
	id = 285747
	trigger = {
		ai = yes
		owned = { province = 27 data = -1 } #Zacatecas
		NOT = {
			exists = AZT
			exists = ZAP
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285730"
	desc = "EVENTHIST285730"

	date = { day = 1 month = august year = 1660 }
	offset = 1000
	deathdate = { day = 1 month = january year = 1665 }

	action_a = {
		name = "OK"
		command = { type = treasury value = 20 }
		command = { type = colonists value = 4 }
	}
}
event = {
	id = 285748
	trigger = {
		ai = yes
		owned = { province = 27 data = -1 } #Zacatecas
		NOT = {
			exists = AZT
			exists = ZAP
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285730"
	desc = "EVENTHIST285730"

	date = { day = 1 month = august year = 1665 }
	offset = 1000
	deathdate = { day = 1 month = january year = 1670 }

	action_a = {
		name = "OK"
		command = { type = treasury value = 20 }
		command = { type = colonists value = 4 }
	}
}
event = {
	id = 285749
	trigger = {
		ai = yes
		owned = { province = 27 data = -1 } #Zacatecas
		NOT = {
			exists = AZT
			exists = ZAP
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285730"
	desc = "EVENTHIST285730"

	date = { day = 1 month = august year = 1670 }
	offset = 1000
	deathdate = { day = 1 month = january year = 1675 }

	action_a = {
		name = "OK"
		command = { type = treasury value = 20 }
		command = { type = colonists value = 4 }
	}
}
event = {
	id = 285750
	trigger = {
		owned = { province = 27 data = -1 } #Zacatecas
		NOT = {
			exists = AZT
			exists = ZAP
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285730"
	desc = "EVENTHIST285730"

	date = { day = 1 month = august year = 1675 }
	offset = 1000
	deathdate = { day = 1 month = january year = 1680 }

	action_a = {
		name = "OK"
		command = { type = treasury value = 20 }
		command = { type = colonists value = 4 }
	}
}
event = {
	id = 285751
	trigger = {
		ai = yes
		owned = { province = 27 data = -1 } #Zacatecas
		NOT = {
			exists = AZT
			exists = ZAP
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285730"
	desc = "EVENTHIST285730"

	date = { day = 1 month = august year = 1680 }
	offset = 1000
	deathdate = { day = 1 month = january year = 1685 }

	action_a = {
		name = "OK"
		command = { type = treasury value = 20 }
		command = { type = colonists value = 4 }
	}
}
event = {
	id = 285752
	trigger = {
		ai = yes
		owned = { province = 27 data = -1 } #Zacatecas
		NOT = {
			exists = AZT
			exists = ZAP
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285730"
	desc = "EVENTHIST285730"

	date = { day = 1 month = august year = 1685 }
	offset = 1000
	deathdate = { day = 1 month = january year = 1690 }

	action_a = {
		name = "OK"
		command = { type = treasury value = 20 }
		command = { type = colonists value = 4 }
	}
}
event = {
	id = 285753
	trigger = {
		ai = yes
		owned = { province = 27 data = -1 } #Zacatecas
		NOT = {
			exists = AZT
			exists = ZAP
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285730"
	desc = "EVENTHIST285730"

	date = { day = 1 month = august year = 1690 }
	offset = 1000
	deathdate = { day = 1 month = january year = 1695 }

	action_a = {
		name = "OK"
		command = { type = treasury value = 20 }
		command = { type = colonists value = 4 }
	}
}
event = {
	id = 285754
	trigger = {
		owned = { province = 27 data = -1 } #Zacatecas
		NOT = {
			exists = AZT
			exists = ZAP
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285730"
	desc = "EVENTHIST285730"

	date = { day = 1 month = august year = 1695 }
	offset = 1000
	deathdate = { day = 1 month = january year = 1700 }

	action_a = {
		name = "OK"
		command = { type = treasury value = 20 }
		command = { type = colonists value = 4 }
	}
}
event = {
	id = 285755
	trigger = {
		ai = yes
		owned = { province = 27 data = -1 } #Zacatecas
		NOT = {
			exists = AZT
			exists = ZAP
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285730"
	desc = "EVENTHIST285730"

	date = { day = 1 month = august year = 1700 }
	offset = 1000
	deathdate = { day = 1 month = january year = 1705 }

	action_a = {
		name = "OK"
		command = { type = treasury value = 20 }
		command = { type = colonists value = 4 }
	}
}
event = {
	id = 285756
	trigger = {
		ai = yes
		owned = { province = 27 data = -1 } #Zacatecas
		NOT = {
			exists = AZT
			exists = ZAP
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285730"
	desc = "EVENTHIST285730"

	date = { day = 1 month = august year = 1705 }
	offset = 1000
	deathdate = { day = 1 month = january year = 1710 }

	action_a = {
		name = "OK"
		command = { type = treasury value = 20 }
		command = { type = colonists value = 4 }
	}
}
event = {
	id = 285757
	trigger = {
		ai = yes
		owned = { province = 27 data = -1 } #Zacatecas
		NOT = {
			exists = AZT
			exists = ZAP
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285730"
	desc = "EVENTHIST285730"

	date = { day = 1 month = august year = 1710 }
	offset = 1000
	deathdate = { day = 1 month = january year = 1715 }

	action_a = {
		name = "OK"
		command = { type = treasury value = 20 }
		command = { type = colonists value = 4 }
	}
}
event = {
	id = 285758
	trigger = {
		owned = { province = 27 data = -1 } #Zacatecas
		NOT = {
			exists = AZT
			exists = ZAP
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285730"
	desc = "EVENTHIST285730"

	date = { day = 1 month = august year = 1715 }
	offset = 1000
	deathdate = { day = 1 month = january year = 1720 }

	action_a = {
		name = "OK"
		command = { type = treasury value = 20 }
		command = { type = colonists value = 4 }
	}
}
event = {
	id = 285759
	trigger = {
		ai = yes
		owned = { province = 27 data = -1 } #Zacatecas
		NOT = {
			exists = AZT
			exists = ZAP
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285730"
	desc = "EVENTHIST285730"

	date = { day = 1 month = august year = 1720 }
	offset = 1000
	deathdate = { day = 1 month = january year = 1725 }

	action_a = {
		name = "OK"
		command = { type = treasury value = 20 }
		command = { type = colonists value = 4 }
	}
}
event = {
	id = 285760
	trigger = {
		ai = yes
		owned = { province = 27 data = -1 } #Zacatecas
		NOT = {
			exists = AZT
			exists = ZAP
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285730"
	desc = "EVENTHIST285730"

	date = { day = 1 month = august year = 1725 }
	offset = 1000
	deathdate = { day = 1 month = january year = 1730 }

	action_a = {
		name = "OK"
		command = { type = treasury value = 20 }
		command = { type = colonists value = 4 }
	}
}
event = {
	id = 285761
	trigger = {
		ai = yes
		owned = { province = 27 data = -1 } #Zacatecas
		NOT = {
			exists = AZT
			exists = ZAP
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285730"
	desc = "EVENTHIST285730"

	date = { day = 1 month = august year = 1730 }
	offset = 1000
	deathdate = { day = 1 month = january year = 1735 }

	action_a = {
		name = "OK"
		command = { type = treasury value = 20 }
		command = { type = colonists value = 4 }
	}
}
event = {
	id = 285762
	trigger = {
		owned = { province = 27 data = -1 } #Zacatecas
		NOT = {
			exists = AZT
			exists = ZAP
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285730"
	desc = "EVENTHIST285730"

	date = { day = 1 month = august year = 1735 }
	offset = 1000
	deathdate = { day = 1 month = january year = 1740 }

	action_a = {
		name = "OK"
		command = { type = treasury value = 20 }
		command = { type = colonists value = 4 }
	}
}
event = {
	id = 285763
	trigger = {
		ai = yes
		owned = { province = 27 data = -1 } #Zacatecas
		NOT = {
			exists = AZT
			exists = ZAP
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285730"
	desc = "EVENTHIST285730"

	date = { day = 1 month = august year = 1740 }
	offset = 1000
	deathdate = { day = 1 month = january year = 1745 }

	action_a = {
		name = "OK"
		command = { type = treasury value = 20 }
		command = { type = colonists value = 4 }
	}
}
event = {
	id = 285764
	trigger = {
		ai = yes
		owned = { province = 27 data = -1 } #Zacatecas
		NOT = {
			exists = AZT
			exists = ZAP
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285730"
	desc = "EVENTHIST285730"

	date = { day = 1 month = august year = 1745 }
	offset = 1000
	deathdate = { day = 1 month = january year = 1750 }

	action_a = {
		name = "OK"
		command = { type = treasury value = 20 }
		command = { type = colonists value = 4 }
	}
}
event = {
	id = 285765
	trigger = {
		ai = yes
		owned = { province = 27 data = -1 } #Zacatecas
		NOT = {
			exists = AZT
			exists = ZAP
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285730"
	desc = "EVENTHIST285730"

	date = { day = 1 month = august year = 1750 }
	offset = 1000
	deathdate = { day = 1 month = january year = 1755 }

	action_a = {
		name = "OK"
		command = { type = treasury value = 20 }
		command = { type = colonists value = 4 }
	}
}
event = {
	id = 285766
	trigger = {
		owned = { province = 27 data = -1 } #Zacatecas
		NOT = {
			exists = AZT
			exists = ZAP
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285730"
	desc = "EVENTHIST285730"

	date = { day = 1 month = august year = 1755 }
	offset = 1000
	deathdate = { day = 1 month = january year = 1760 }

	action_a = {
		name = "OK"
		command = { type = treasury value = 20 }
		command = { type = colonists value = 4 }
	}
}
event = {
	id = 285767
	trigger = {
		ai = yes
		owned = { province = 27 data = -1 } #Zacatecas
		NOT = {
			exists = AZT
			exists = ZAP
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285730"
	desc = "EVENTHIST285730"

	date = { day = 1 month = august year = 1760 }
	offset = 1000
	deathdate = { day = 1 month = january year = 1765 }

	action_a = {
		name = "OK"
		command = { type = treasury value = 20 }
		command = { type = colonists value = 4 }
	}
}
event = {
	id = 285768
	trigger = {
		ai = yes
		owned = { province = 27 data = -1 } #Zacatecas
		NOT = {
			exists = AZT
			exists = ZAP
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285730"
	desc = "EVENTHIST285730"

	date = { day = 1 month = august year = 1765 }
	offset = 1000
	deathdate = { day = 1 month = january year = 1770 }

	action_a = {
		name = "OK"
		command = { type = treasury value = 20 }
		command = { type = colonists value = 4 }
	}
}
event = {
	id = 285769
	trigger = {
		ai = yes
		owned = { province = 27 data = -1 } #Zacatecas
		NOT = {
			exists = AZT
			exists = ZAP
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285730"
	desc = "EVENTHIST285730"

	date = { day = 1 month = august year = 1770 }
	offset = 1000
	deathdate = { day = 1 month = january year = 1775 }

	action_a = {
		name = "OK"
		command = { type = treasury value = 20 }
		command = { type = colonists value = 4 }
	}
}
event = {
	id = 285770
	trigger = {
		owned = { province = 27 data = -1 } #Zacatecas
		NOT = {
			exists = AZT
			exists = ZAP
		}
	}
	random = no
	country = SPA
	name = "EVENTNAME285730"
	desc = "EVENTHIST285730"

	date = { day = 1 month = august year = 1775 }
	offset = 1000
	deathdate = { day = 1 month = january year = 1780 }

	action_a = {
		name = "OK"
		command = { type = treasury value = 20 }
		command = { type = colonists value = 4 }
	}
}

#(1733-1736) The independence of Sicily (event to remove cores if PAR Don Carlos gets Naples and Sicily)
event = {
	id = 285335 #triggered by PAR_390025
	random = no
	country = SPA
	name = "EVENTNAME285096" #The Kingdom of Naples and Sicily
	desc = "EVENTHIST285096"
	#-#In the war of Polish succession Felipe V of Spain supported France in her fight against Austria and Russia in order to make the French candidate to be elected as King of Poland. He hoped in this way to secure Mantua for the elder son, Don Carlos, who, already Duke of Parma as Carlo I, had also the expectation of Tuscany and to give the Kingdoms of Naples and Sicily to the younger son, Don Felipe. Since Austria was fighting on several fronts on the Rhine against France and on Lombardia against Savoy, Spain easily conquered Naples and Sicily which Austria had previously occupied during the war of Spanish succession. In 1735 the peace treaty that followed the war of Polish succession established that Felipe's son Carlos (later Charles III of Spain) should give up the duchy of Parma, which he had inherited in 1731 as descent of the Farnese family through his mother, Elisabetta Farnese, Queen of Spain and any claim to Tuscany, given to the Duke of Lorraine after Gian Gastone, the last of the Medicis, died. In exchange for that, Don Carlos was confirmed the possession of his conquests in Southern Italy. On 3 October 1735 Don Carlos, named Carlo VII King of Naples and Carlo V King of Sicily, established the cadet line of the Spanish House of Bourbons in the Kingdoms of Naples and Sicily (renamed Kingdom of Two Sicilies after 1815).

	action_a = {
		name = "GOOD" 
		command = { type = remove_countryculture which = italian }
		command = { type = dynastic which = NAP }
		command = { type = removecore which = 393 } #Napoli
		command = { type = removecore which = 394 } #Apulia
		command = { type = removecore which = 395 } #Messina
		command = { type = removecore which = 396 } #Sicily
		command = { type = removecore which = 819 } #Malta, just in case
		command = { type = cedeprovince which = NAP value = 393 } #Napoli
		command = { type = cedeprovince which = NAP value = 394 } #Apulia
		command = { type = cedeprovince which = NAP value = 395 } #Messina
		command = { type = cedeprovince which = NAP value = 396 } #Sicily
		command = { type = relation which = PAP value = 50 }
		command = { type = relation which = HAB value = 50 }
	}
}

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

#First free id: 285336
