#The Castilian Civil War of 1475 - Alternative
#An opportunity for a different Iberian Peninsula

#See AGCEEP_Alt_Crusader.txt for other KNI Alternative events
#See AGCEEP_Alt_Crusader.txt for other ENG Alternative events

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

#(1475) Defending the rights of Juana of Castilla
event = {
	id = 260999
	trigger = {
		exists = CAS
	}
	random = no
	country = POR
	name = "EVENTNAME260999" #Defending the rights of Juana of Castilla
	desc = "EVENTHIST260999"
	#-#At the death of Enrique IV the impotent, Castile was split between supporters of Juana, daughter of the King's wife, Isabel of Portugal, and those of Isabel Trastamara, daughter of the second marriage of Juan II. Alfonso V of Portugal saw a chance of becoming King of Castile and married his niece Juana, immediately sending his armies to invade Castile in support of Juana's side. The Castilian civil war lasted for four years and ended with the Treaty of Alcacovas of 1479 after the complete victory of Isabel. But if Alfonso and his son Joao had been able to gain control of all of peninsular Castile, Juana would have become Queen of Castile, and probably Joao would have married Juana after the annulment of Alfonso's marriage by the Pope, becoming King of Portugal and Castile.

	date = { day = 1 month = may year = 1475 }

	action_a = {
		name = "ACTIONNAME260999A" #War #It is our chance to gain Castile
		command = { type = war which = CAS }
		command = { type = trigger which = 142999 } #CAS: Castilian Civil War
		command = { type = INF which = 434 value = 5000 } #Oporto
		command = { type = INF which = 442 value = 5000 } #Algarve
	}
	action_b = {
		name = "ACTIONNAME260999B" #Peace #Castile is not our business
		command = { type = stability value = 1 }
		command = { type = relation which = CAS value = 200 }
		command = { type = sleepevent which = 260998 } #POR: Portuguese total victory
	}
}
#(1475) Castilian Civil War
event = {
	id = 142999 #triggered by POR_260999 A
	random = no
	country = CAS
	name = "EVENTNAME142999" #Castilian Civil War
	desc = "EVENTHIST142999"
	#-#At the death of Enrique IV the impotent, Castile was split between supporters of Juana, daughter of the King's wife, Isabel of Portugal, and those of Isabel Trastamara, daughter of the second marriage of Juan II. Alfonso of Portugal saw a chance of becoming King of Castile and married his niece Juana, immediately sending his armies to invade Castile in support of Juana's side. Isabel answered by claiming the crown of Portugal. After all, as Queen of Castile she was the legitimate heir of the old Visigothic Kings, and thus of their Hispanic Kingdom. The union of Castile and Portugal had supporters in both Kingdoms, and if Isabel and Fernando were capable of gaining control of all of peninsular Portugal, Isabel could become Queen of Portugal also.

	action_a = {
		name = "ACTIONNAME142999A" #Defend #I have no interest in the crown of Portugal
		command = { type = stability value = 1 }
		command = { type = revolt which = 433 } #Galicia
		command = { type = revolt which = 440 } #Estramadura
		command = { type = revolt which = 443 } #Andalusia
		command = { type = INF which = 439 value = 5000 } #Toledo
		command = { type = INF which = 436 value = 5000 } #Castilla
		command = { type = sleepevent which = 142998 } #CAS: Castilian total victory
		command = { type = relation which = POR value = 50 }
	}
	action_b = {
		name = "ACTIONNAME142999B" #Counterattack #It is our chance to gain Portugal
		command = { type = stability value = -1 }
		command = { type = revolt which = 433 } #Galicia
		command = { type = revolt which = 440 } #Estramadura
		command = { type = revolt which = 443 } #Andalusia
		command = { type = relation which = POR value = -50 }
	}
}

#-----------------------------------------------------------------------------------------------
#Portuguese victory
#-----------------------------------------------------------------------------------------------

#(1475-1479) Portuguese total victory
event = {
	id = 260998
	trigger = {
		NOT = { exists = SPA }
		OR = {
			control = { province = 431 data = -1 } #Cantabria
			NOT = { owned = { province = 431 data = CAS } } #Cantabria
		}
		OR = {
			control = { province = 432 data = -1 } #Asturias
			NOT = { owned = { province = 432 data = CAS } } #Asturias
		}
		OR = {
			control = { province = 433 data = -1 } #Galicia
			NOT = { owned = { province = 433 data = CAS } } #Galicia
		}
		OR = {
			control = { province = 435 data = -1 } #Leon
			NOT = { owned = { province = 435 data = CAS } } #Leon
		}
		OR = {
			control = { province = 436 data = -1 } #Castilla
			NOT = { owned = { province = 436 data = CAS } } #Castilla
		}
		OR = {
			control = { province = 438 data = -1 } #Murcia
			NOT = { owned = { province = 438 data = CAS } } #Murcia
		}
		OR = {
			control = { province = 439 data = -1 } #Toledo
			NOT = { owned = { province = 439 data = CAS } } #Toledo
		}
		OR = {
			control = { province = 440 data = -1 } #Estramadura
			NOT = { owned = { province = 440 data = CAS } } #Estramadura
		}
		OR = {
			control = { province = 443 data = -1 } #Andalusia
			NOT = { owned = { province = 443 data = CAS } } #Andalusia
		}
	}
	random = no
	country = POR
	name = "EVENTNAME260998" #Portuguese total victory
	desc = "EVENTHIST260998"
	#-#After their complete victory over Isabel, Juana and Joo can claim the crown of Castile. While Joo prefers a bigger Portugal that continues expanding towards the East Indies around Africa, Juana prefers a new entity, Spain, to conquer Granada and explore the Western Ocean. A third path, to spread the Word of God in all the new territories, also is an enticing prospect (receive Spanish leaders and colonial events). We will have a later choice to inherit or fight for Aragon.

	date = { day = 1 month = june year = 1475 }
	offset = 15
	deathdate = { day = 29 month = august year = 1479 }

	action_a = {
		name = "ACTIONNAME260998A" #Become Spain
		command = { type = inherit which = CAS }
		command = { type = add_countryculture which = castilian }
		command = { type = remove_countryculture which = portuguese } #to order them properly
		command = { type = add_countryculture which = portuguese }
		command = { type = addcore which = 431 } #Cantabria
		command = { type = addcore which = 432 } #Asturias
		command = { type = addcore which = 433 } #Galicia
		command = { type = addcore which = 435 } #Leon
		command = { type = addcore which = 436 } #Castilla
		command = { type = addcore which = 438 } #Murcia
		command = { type = addcore which = 439 } #Toledo
		command = { type = addcore which = 440 } #Estramadura
		command = { type = addcore which = 443 } #Andalusia
		command = { type = addcore which = 444 } #Granada
		command = { type = addcore which = 445 } #Gibraltar
		command = { type = addcore which = 817 } #The Canary Islands
		command = { type = addcore which = 427 } #Gerona
		command = { type = addcore which = 429 } #Catalonia
		command = { type = addcore which = 430 } #Aragon
		command = { type = addcore which = 437 } #Valencia
		command = { type = addcore which = 821 } #The Baleares
		command = { type = addcore which = 428 } #Navarra
		command = { type = flagname which = "" }
		command = { type = country which = SPA }
		command = { type = domestic which = centralization value = -1 }
		command = { type = relation which = ARG value = -200 } #Fernando and Isabella are hostile
		command = { type = trigger which = 285998 } #SPA: Portugal becomes Spain
		command = { type = sleepevent which = 285259 } #SPA: The Habsburg inheritance
		command = { type = sleepevent which = 3155 } #SPA: The Communeros
		command = { type = sleepevent which = 3157 } #SPA: The Abdication of Charles V
		command = { type = sleepevent which = 3157 } #SPA: The Abdication of Charles V
		command = { type = sleepevent which = 12067 } #SPA: French Encirclement by the Habsburgs
		command = { type = sleepevent which = 17407 } #SPA: Charles V's Mercenary Army Sacks Rome
		command = { type = sleepevent which = 75007 } #SPA: Cleves inherited Guelders
		command = { type = sleepevent which = 75008 } #SPA: Habsburg inherits Guelders
		command = { type = sleepevent which = 75009 } #SPA: Habsburg claim on Guelders ignored
		command = { type = sleepevent which = 285062 } #SPA: The disentailment of Godoy
		command = { type = sleepevent which = 285100 } #SPA: The Burgundian inheritance
		command = { type = sleepevent which = 285040 } #SPA: The Burgundian inheritance
		command = { type = sleepevent which = 285101 } #SPA: Charles of Burgundy inherits Spain
		command = { type = sleepevent which = 285300 } #SPA: Pragmatic Sanction of 1549
	}
action_b = {
		name = "ACTIONNAME260998B" #remain as Portugal #Portugal is enough, thanks
		command = { type = inherit which = CAS }
		command = { type = add_countryculture which = castilian }
		command = { type = addcore which = 431 } #Cantabria
		command = { type = addcore which = 432 } #Asturias
		command = { type = addcore which = 433 } #Galicia
		command = { type = addcore which = 435 } #Leon
		command = { type = addcore which = 436 } #Castilla
		command = { type = addcore which = 438 } #Murcia
		command = { type = addcore which = 439 } #Toledo
		command = { type = addcore which = 440 } #Estramadura
		command = { type = addcore which = 443 } #Andalusia
		command = { type = addcore which = 444 } #Granada
		command = { type = addcore which = 445 } #Gibraltar
		command = { type = addcore which = 817 } #The Canary Islands
		command = { type = domestic which = centralization value = -1 }
		command = { type = sleepevent which = 3274 } #POR: Felipe II Claim to the throne
		command = { type = sleepevent which = 260003 } #POR: Treaty of Alcacovas with Spain
		command = { type = sleepevent which = 260005 } #POR: Treaty of Alcacovas with Castile
		command = { type = sleepevent which = 111025 } #ARG: The formation of Spain by Aragon
		command = { type = sleepevent which = 111026 } #ARG: Orphan Kingdom of Aragon
		command = { type = sleepevent which = 18015 } #POR: Triumph of Aviz
		command = { type = sleepevent which = 260097 } #POR: Catarina Bragana
		command = { type = sleepevent which = 260040 } #POR: Joo II centralizes power
		command = { type = sleepmonarch which = 0110509 } #Felipe I/II
		command = { type = sleepmonarch which = 0110510 } #Felipe II/III
		command = { type = sleepmonarch which = 0110511 } #Felipe III/IV
		command = { type = sleepmonarch which = 0110512 } #historic dates for Joo IV
		command = { type = wakemonarch which = 0110522 } #Catarina I
		command = { type = wakemonarch which = 0110523 } #Teodosio I
		command = { type = wakemonarch which = 0110524 } #Joo IV
		command = { type = sleepleader which = 0110828 } #Count Lippe (POR)
		command = { type = sleepleader which = 0110822 } #von Schonberg (POR)
		command = { type = wakeleader which = 0110886 } #Duque de Alba (POR)
		command = { type = wakeleader which = 0110894 } #Francisco de Orozco (POR)
		command = { type = wakeleader which = 0110893 } #Fadrique de Toledo (POR)
		command = { type = wakeleader which = 0110894 } #Francisco de Orozco (POR)
		command = { type = wakeleader which = 0110895 } #Blas de Lezo (POR)
		command = { type = wakeleader which = 0110896 } #Jos Carrillo (POR)
		command = { type = wakeleader which = 0110904 } #Federico Gravina (POR)
		command = { type = wakeleader which = 0110905 } #Javier Castaos (POR)
		command = { type = relation which = ARG value = -200 } #Fernando and Isabella are hostile
		command = { type = flagname which = "Iberia" }
	}
	action_c = {
		name = "ACTIONNAME260998C" #Remain as Portugal, but let us spread the Word of God among the infidels!
		command = { type = inherit which = CAS }
		command = { type = add_countryculture which = castilian }
		command = { type = trigger which = 260980 } #POR: Spread the Word of God Among the Infidels
		command = { type = addcore which = 431 } #Cantabria
		command = { type = addcore which = 432 } #Asturias
		command = { type = addcore which = 433 } #Galicia
		command = { type = addcore which = 435 } #Leon
		command = { type = addcore which = 436 } #Castilla
		command = { type = addcore which = 438 } #Murcia
		command = { type = addcore which = 439 } #Toledo
		command = { type = addcore which = 440 } #Estramadura
		command = { type = addcore which = 443 } #Andalusia
		command = { type = addcore which = 444 } #Granada
		command = { type = addcore which = 445 } #Gibraltar
		command = { type = addcore which = 817 } #The Canary Islands
		command = { type = domestic which = centralization value = -1 }
		command = { type = sleepevent which = 260003 } #POR: Treaty of Alcacovas
		command = { type = sleepevent which = 111025 } #ARG: The formation of Spain by Aragon
		command = { type = sleepevent which = 111026 } #ARG: Orphan Kingdom of Aragon
		command = { type = sleepevent which = 18015 } #POR: Triumph of Aviz
		command = { type = sleepevent which = 260097 } #POR: Catarina Bragana
		command = { type = sleepevent which = 260040 } #POR: Joo II centralizes power
		command = { type = sleepmonarch which = 0110509 } #Felipe I/II
		command = { type = sleepmonarch which = 0110510 } #Felipe II/III
		command = { type = sleepmonarch which = 0110511 } #Felipe III/IV
		command = { type = sleepmonarch which = 0110512 } #historic dates for Joo IV
		command = { type = wakemonarch which = 0110522 } #Catarina I
		command = { type = wakemonarch which = 0110523 } #Teodosio I
		command = { type = wakemonarch which = 0110524 } #Joo IV
		command = { type = relation which = ARG value = -200 } #Fernando and Isabella are hostile
		command = { type = casusbelli which = AZT value = 720 } #to match Spanish CB
		command = { type = casusbelli which = ZAP value = 720 }
		command = { type = casusbelli which = MAA value = 720 }
		command = { type = casusbelli which = CHM value = 840 }
		command = { type = casusbelli which = INC value = 840 }
		command = { type = flagname which = "Iberia" }
	}
}
#(1475-1479) Portugal becomes Spain
event = {
	id = 285998 #triggered by POR_260998 A
	random = no
	country = SPA
	name = "EVENTNAME285998" #Portugal becomes Spain
	desc = "EVENTHIST285998"
	#-#Conquer Granada and explore the Western Ocean then...

	action_a = {
		name = "ACTIONNAME285998A" #Long live the King!
		command = { type = sleepmonarch which = 0127500 } #Isabel y Fernando
		command = { type = sleepmonarch which = 0127501 } #Carlos I
		command = { type = sleepmonarch which = 0127502 } #Felipe II
		command = { type = wakemonarch which = 0127518 } #Afonso V
		command = { type = wakemonarch which = 0127519 } #Joo II
		command = { type = wakemonarch which = 0127520 } #Manuel I
		command = { type = wakemonarch which = 0127521 } #Joo III
		command = { type = wakemonarch which = 0127522 } #Sebastio I
		command = { type = wakemonarch which = 0127523 } #Filipe I
		command = { type = sleepleader which = 0127833 } #D. Juan de Austria - admiral (SPA)
		command = { type = sleepleader which = 0127835 } #D. Juan de Austria general (SPA)
		command = { type = sleepleader which = 0127845 } #Fernando de Austria (SPA)
		command = { type = sleepleader which = 0127850 } #Juan Jos de Austria (SPA)
	}
}
#(1475-1479) Spread the Word of God Among the Infidels
event = {
	id = 260980 #triggered by POR_260998 C
	random = no
	country = POR
	name = "EVENTNAME260980" #Spread the Word of God Among the Infidels
	desc = "EVENTHIST260980"
	#-#We decided to turn our back on Europe and look outward to the uncivilized world. God has granted us this opportunity to spread His word among the infidels and heathen. We must not fail to include our new subjects in God's work!

	action_a = {
		name = "ACTIONNAME260980A" #Let us spread the Word of God among the infidels!
		command = { type = sleepleader which = 0110828 } #Count Lippe (POR)
		command = { type = sleepleader which = 0110822 } #von Schonberg (POR)
		command = { type = sleepleader which = 0110812 } #Gaspar de Corte-Real (POR)
		command = { type = sleepleader which = 0110802 } #Gonalo Coelho (POR)
		command = { type = sleepleader which = 0110810 } #Pedro lvares Cabral (POR)
		command = { type = sleepleader which = 0110813 } #Joo Fernandes (POR)
		command = { type = wakeleader which = 0110852 } #Fadrique de Alba (POR)
		command = { type = wakeleader which = 0110856 } #Antonio de Leiva (POR)
		command = { type = wakeleader which = 0110858 } #B. de Mendoza (POR)
		command = { type = wakeleader which = 0110859 } #lvaro de Bazn (POR)
		command = { type = wakeleader which = 0110861 } #J. Ponce de Len (POR)
		command = { type = wakeleader which = 0110862 } #Vasco de Balboa (POR)
		command = { type = wakeleader which = 0110863 } #Pnfilo de Narvez (POR)
		command = { type = wakeleader which = 0110864 } #Pedro Vial (POR)
		command = { type = wakeleader which = 0110865 } #Hernn Corts (POR)
		command = { type = wakeleader which = 0110867 } #F. de Crdoba (POR)
		command = { type = wakeleader which = 0110868 } #Pedro de Alvarado (POR)
		command = { type = wakeleader which = 0110869 } #Francisco Pizarro (POR)
		command = { type = wakeleader which = 0110870 } #Diego de Almagro (POR)
		command = { type = wakeleader which = 0110872 } #Francisco Montejo (POR)
		command = { type = wakeleader which = 0110873 } #A. Cabeza de Vaca (POR)
		command = { type = wakeleader which = 0110874 } #lvaro de Saavedra (POR)
		command = { type = wakeleader which = 0110875 } #Nuo Beltrn (POR)
		command = { type = wakeleader which = 0110876 } #Pedro de Mendoza (POR)
		command = { type = wakeleader which = 0110877 } #S. de Belalczar (POR)
		command = { type = wakeleader which = 0110879 } #Hernando de Soto (POR)
		command = { type = wakeleader which = 0110880 } #Francisco Coronado (POR)
		command = { type = wakeleader which = 0110881 } #Pedro de Valdivia (POR)
		command = { type = wakeleader which = 0110882 } #Juan Cabrillo (POR)
		command = { type = wakeleader which = 0110883 } #F. Montejo el joven (POR)
		command = { type = wakeleader which = 0110884 } #Galcern Requesens (POR)
		command = { type = wakeleader which = 0110885 } #el Gran Capitn (POR)
		command = { type = wakeleader which = 0110886 } #Duque de Alba (POR)
		command = { type = wakeleader which = 0110887 } #Pedro de Avils (POR)
		command = { type = wakeleader which = 0110888 } #M. de Santa Cruz (POR)
		command = { type = wakeleader which = 0110889 } #Pedro Enrquez (POR)
		command = { type = wakeleader which = 0110890 } #Luis Fajardo (POR)
		command = { type = wakeleader which = 0110891 } #Antonio de Oquendo (POR)
		command = { type = wakeleader which = 0110892 } #Gmez de Figueroa (POR)
		command = { type = wakeleader which = 0110893 } #Fadrique de Toledo (POR)
		command = { type = wakeleader which = 0110894 } #Francisco de Orozco (POR)
		command = { type = wakeleader which = 0110895 } #Blas de Lezo (POR)
		command = { type = wakeleader which = 0110896 } #Jos Carrillo (POR)
		command = { type = wakeleader which = 0110897 } #Juan Navarro (POR)
		command = { type = wakeleader which = 0110898 } #Luis de Crdoba (POR)
		command = { type = wakeleader which = 0110899 } #Antonio Barcel (POR)
		command = { type = wakeleader which = 0110900 } #Antonio Ricardos (POR)
		command = { type = wakeleader which = 0110901 } #Bernardo de Glvez (POR)
		command = { type = wakeleader which = 0110902 } #Juan de Langara (POR)
		command = { type = wakeleader which = 0110903 } #Ventura Caro (POR)
		command = { type = wakeleader which = 0110904 } #Federico Gravina (POR)
		command = { type = wakeleader which = 0110905 } #Javier Castaos (POR)
		command = { type = wakeleader which = 0110906 } #G. de la Cuesta (POR)
		command = { type = wakeleader which = 0110907 } #Joaqun Blake (POR)
		command = { type = wakeleader which = 0110909 } #Francisco Villagra (POR)
		command = { type = wakeleader which = 0110911 } #Miguel Legazpi (POR)
		command = { type = wakeleader which = 0110914 } #Juan de Garay (POR)
		command = { type = wakeleader which = 0110915 } #Fernandes Queiroz (POR)
		command = { type = wakeleader which = 0110916 } #Juan de Oate (POR)
		command = { type = wakeleader which = 0110917 } #Father Kino (POR)
		command = { type = wakeleader which = 0110918 } #Friar Serra (POR)
		command = { type = wakeleader which = 0110919 } #Gaspar de Portol (POR)
		command = { type = wakeleader which = 0110920 } #Juan de Anza (POR)
	}
}

#(1478-1481) Purchase of Canary Islands rights
#by Fodoron
event = {
	id = 260986
	trigger = {
		owned = { province = 817 data = -1 } #Canary Islands
		NOT = { event = 285176 } #SPA: Purchase of Canary Islands rights
	}
	random = no
	country = POR
	name = "EVENTNAME285176" #Purchase of Canary Islands rights
	desc = "EVENTHIST260986"
	#-#Coming out of the civil war, and seeing that the Canary Islands could not be conquered by the Peraza, Afonso V ordered an expedition in 1478. The Peraza protested that they had all the legal rights. To avoid legal problems, the King bought back the rights to Gran Canaria, La Palma and Tenerife, which became royal islands, while the remaining islands continued under feudal status for the Peraza family. In 1580 the King sent Pedro de Vera to conquer the islands, who using all available means, including war dogs, conquered Gran Canaria by 1483.

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

#(1485-1520) Sugar in the Canaries
#by Fodoron
event = {
	id = 260993
	trigger = {
		owned = { province = 817 data = -1 } #Canary Islands
		control = { province = 817 data = -1 } #Canary Islands
		event = 260980 #POR: Spread the Word of God Among the Infidels
	}
	random = no
	country = POR
	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 }
	}
}

#(1485-1488) Wars of Granada II (First in Granada folder)
#modified by Garbon and further by Fodoron
event = {
	id = 260992
	trigger = {
		exists = GRA
		atwar = no
		event = 260980 #POR: Spread the Word of God Among the Infidels
	}
	random = no
	country = POR
	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 = -3 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 }
	}
}

#(1488) The rebellion of Gomera
#by Fodoron
event = {
	id = 260991
	trigger = {
		owned = { province = 817 data = -1 } #Canary Islands
		event = 260980 #POR: Spread the Word of God Among the Infidels
	}
	random = no
	country = POR
	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-1492) Wars of Granada III (First in Granada folder)
#modified by Garbon and further by Fodoron
event = {
	id = 260990
	trigger = {
		exists = GRA
		atwar = no
		event = 260980 #POR: Spread the Word of God Among the Infidels
	}
	random = no
	country = POR
	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 = 1492 }

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

#(1491-1493) Columbus
event = {
	id = 260989
	trigger = {
		event = 260980 #POR: Spread the Word of God Among the Infidels
	}
	random = no
	country = POR
	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 = 0110908 } #Cristobal Colon (POR)
		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 = 260988
	trigger = {
		owned = { province = 817 data = -1 } #Canary Islands
		control = { province = 817 data = -1 } #Canary Islands
		event = 260980 #POR: Spread the Word of God Among the Infidels
	}
	random = no
	country = POR
	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 = "GREAT"
		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
event = {
	id = 260987
	trigger = {
		OR = {
			NOT = { exists = GRA }
			year = 1510
		}
		event = 260980 #POR: Spread the Word of God Among the Infidels
	}
	random = no
	country = POR
	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 = naval value = 300 }
		command = { type = treasury value = -50 }
		command = { type = warships which = 443 value = 1 } #Andalusia
		command = { type = transports which = 443 value = 2 } #Andalusia
	}
}

#-----------------------------------------------------------------------------------------------
#Portuguese events for the conquest of the New World

#(1493) Admiral of a New World
#by Fodoron
event = {
	id = 260967
	trigger = {
		event = 260980 #POR: Spread the Word of God Among the Infidels
		}
	random = no
	country = POR
	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 = 260948
	trigger = {
		NOT = { event = 285078 } #SPA: Colonization of Barahona
		owned = { province = 143 data = -1 } #Barahona
		NOT = { provincereligion = { province = 143 data = pagan } } #not a TP
	}
	random = no
	country = POR
	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 = 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 = 260873
	trigger = {
		NOT = { event = 285288 } #SPA: Colonization of Tortuga
		owned = { province = 142 data = -1 } #Tortuga
		NOT = { provincereligion = { province = 142 data = pagan } } #not a TP
	}
	random = no
	country = POR
	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 = 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 }
	}
}
#(1510-1620) The pearl of the Caribbe
#by Fodoron
event = {
	id = 260952
	trigger = {
		NOT = { event = 285079 } #SPA: Colonization of Havana
		owned = { province = 137 data = -1 } #Havana
		NOT = { provincereligion = { province = 137 data = pagan } } #not a TP
	}
	random = no
	country = POR
	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 = population which = 137 value = 500 } #Havana
		command = { type = population which = 138 value = 500 } #Moron
		command = { type = population which = 139 value = 500 } #Guantanamo
		command = { type = treasury value = 100 }
		command = { type = INF which = 137 value = 1000 } #Havana
		command = { type = INF which = 138 value = 1000 } #Moron
		command = { type = INF which = 139 value = 1000 } #Guantanamo
		command = { type = warships which = 137 value = 1 } #Havana
		command = { type = warships which = 138 value = 1 } #Moron
		command = { type = warships which = 139 value = 1 } #Guantanamo
		command = { type = gainbuilding which = 137 value = bailiff } #Havana
		command = { type = gainbuilding which = 138 value = bailiff } #Moron
		command = { type = gainbuilding which = 139 value = bailiff } #Guantanamo
	}
}
#(1510-1620) The pearl of the Caribbe
event = {
	id = 260872
	trigger = {
		NOT = { event = 285289 } #SPA: Colonization of Moron
		owned = { province = 138 data = -1 } #Moron
		NOT = { provincereligion = { province = 138 data = pagan } } #not a TP
	}
	random = no
	country = POR
	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 = 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 = 260871
	trigger = {
		NOT = { event = 285290 } #SPA: Colonization of Guantanamo
		owned = { province = 139 data = -1 } #Guantanamo
		NOT = { provincereligion = { province = 139 data = pagan } } #not a TP
	}
	random = no
	country = POR
	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 = 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-1526) A difficult life in the Isthmus
#by Fodoron
event = {
	id = 260949
	trigger = {
		NOT = { event = 285080 } #SPA: A difficult life in the Isthmus
		owned = { province = 39 data = -1 } #Isthmus
		NOT = { provincereligion = { province = 39 data = pagan } } #not a TP
	}
	random = no
	country = POR
	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 = 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 Portuguese events for the conquest of the New World
#-----------------------------------------------------------------------------------------------

#(1495-1499) Cisneros
#by Fodoron
event = {
	id = 260985
	trigger = {
		event = 260980 #POR: Spread the Word of God Among the Infidels
	}
	random = no
	country = POR
	name = "EVENTNAME285116" #Cardinal Gonzalo Jimnez Cisneros
	desc = "EVENTHIST260985"
	#-#On the recommendation of the powerful Cardinal Mendoza, Franciscan Friar Cisneros was appointed as confessor to King Joo II after the conquest of Granada. He soon obtained all his 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 King 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
		command = { type = sleepevent which = 260983 } #POR: The University of Alcal
	}
}

#(1495) Afonso VI succeeds Joo II
event = {
	id = 260997
	random = no
	country = POR
	name = "EVENTNAME260997" #Afonso VI succeeds Joo II
	desc = "EVENTHIST260997"
	#-#We now have a choice to find out what might happened if Afonso VI didn't die in a riding accident in July 1491 after marrying the Infanta Isabel of Spain, eldest child and eventual heir of Isabel and Fernando of Spain or not. What is our decision?

	date = { day = 0 month = july year = 1491 }

	action_a = {
		name = "ACTIONNAME260997A" #Leave history alone
		command = { type = sleepevent which = 260996 } #POR: Inherit Spain and Aragon
		command = { type = sleepevent which = 260979 } #POR: Inherit Aragon
	}
	action_b = {
		name = "ACTIONNAME260997B" #Long live the King!
		command = { type = sleepevent which = 3272 } #POR: King Sebastio's Expedition to North Africa
		command = { type = sleepmonarch which = 0110504 } #Manuel I
		command = { type = sleepmonarch which = 0110505 } #Joo III
		command = { type = sleepmonarch which = 0110506 } #Sebastio I
		command = { type = sleepmonarch which = 0110508 } #Henrique o Cardeal-Rei
		command = { type = sleepmonarch which = 0110510 } #Felipe II
		command = { type = sleepmonarch which = 0110511 } #Felipe III
		command = { type = sleepmonarch which = 0110512 } #Joo IV
		command = { type = sleepmonarch which = 0110513 } #Afonso VI
		command = { type = sleepmonarch which = 0110514 } #Pedro II
		command = { type = sleepmonarch which = 0110515 } #Joo V
		command = { type = sleepmonarch which = 0110516 } #Jos I
		command = { type = sleepmonarch which = 0110517 } #Maria I
		command = { type = sleepmonarch which = 0110518 } #Joo VI
		command = { type = sleepmonarch which = 0110522 } #Catarina I
		command = { type = sleepmonarch which = 0110523 } #Teodosio I
		command = { type = sleepmonarch which = 0110524 } #Joo IV
		command = { type = wakemonarch which = 0110526 } #Afonso VI
		command = { type = wakemonarch which = 0110527 } #Ferno I
		command = { type = wakemonarch which = 0110528 } #Afonso VII
		command = { type = wakemonarch which = 0110529 } #Duarte II
		command = { type = wakemonarch which = 0110530 } #Pedro II
		command = { type = wakemonarch which = 0110531 } #Joo III
		command = { type = wakemonarch which = 0110532 } #Afonso VII
		command = { type = wakemonarch which = 0110533 } #Joo IV
		command = { type = wakemonarch which = 0110534 } #Joo V
		command = { type = wakemonarch which = 0110535 } #Ferno II
		command = { type = wakemonarch which = 0110536 } #Pedro III
		command = { type = wakemonarch which = 0110537 } #Ferno III
		command = { type = wakemonarch which = 0110538 } #Afonso VIII
		command = { type = wakemonarch which = 0110539 } #Isabel I
	}
}

#(1499-1530) Revolt of the Mudejars
#by Paradox modified by Idontlikeforms, Sturmvogel, Garbon and Fodoron
event = {
	id = 260984
	trigger = {
		owned = { province = 444 data = -1 }
		atwar = no
		provincereligion = { province = 444 data = sunni } #Must be muslim to revolt
		OR = {
			event = 260980 #POR: Spread the Word of God Among the Infidels
			event = 260997 #POR: Afonso VI succeeds Joo II
		}
	}
	random = no
	country = POR
	name = "EVENTNAME3150" #Revolt of the Mudejars
	desc = "EVENTHIST260984"
	#-#With the conquest of Granada, its inhabitants became Mudejars, Muslim subjects of the Crown. 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 King Manuel returned to Granada in 1499, he 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 = 260982 } #POR: Forced conversion of the Mudejars
	}
}

#(1499) Universidad de Alcal
#by Fodoron
event = {
	id = 260983
	trigger = {
		event = 260980 #POR: Spread the Word of God Among the Infidels
	}
	random = no
	country = POR
	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 = 260982
	trigger = {
		event = 260984 #POR: Revolt of the Mudejars
		owned = { province = 444 data = POR }
		control = { province = 444 data = POR }
		atwar = no
		provincereligion = { province = 444 data = sunni } #Must be muslim to convert
		OR = {
			event = 260980 #POR: Spread the Word of God Among the Infidels
			event = 260997 #POR: Afonso VI succeeds Joo II
		}
	}
	random = no
	country = POR
	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 = 1560 }

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

#(1501-1526) Controlling the Trade with the Americas
event = {
	id = 260981
	trigger = {
		event = 260980 #POR: Spread the Word of God Among the Infidels
	}
	random = no
	country = POR
	name = "EVENTNAME260981" #Controlling the Trade with the Americas
	desc = "EVENTHIST260981"
	#-#With the discovery of the New World, we face the issue of how to control the trade with the Americas. The Lisbonese merchants have been quick to avow that all trade should be funnelled through Lisbon. However, the Andalusian merchants have financed most of the expeditions to the Americas thus far and are willing to shoulder most of the costs of any subsequent expeditions. Furthermore it might be useful to show an even-handedness to our Spanish subjects by not denying them access to any trade with the Americas.

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

	action_a = {
		name = "ACTIONNAME260981A" #Let Seville Control the Trade with the Americas
		command = { type = cot which = 443 } #Andalusia
		command = { type = gainbuilding which = 433 value = shipyard } #Galicia
		command = { type = merchants value = 3 }
		command = { type = treasury value = 200 }
	}
	action_b = {
		name = "ACTIONNAME260981B" #Control All Trade Through Lisbon
		command = { type = stability value = -1 }
	}
}

#(1516) Inherit Spain
event = {
	id = 260996
	trigger = {
		exists = SPA
	}
	random = no
	country = POR
	name = "EVENTNAME260996" #Inherit Spain
	desc = "EVENTHIST260996"
	#-#With the death of Isabel's father Fernando of Aragon, Afonso VI and Isabel now control all of Iberia plus the Kingdom of Naples.

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

	action_a = {
		name = "ACTIONNAME260996A" #Inherit Spain
		command = { type = inherit which = SPA }
		command = { type = add_countryculture which = castilian }
		command = { type = add_countryculture which = italian }
		command = { type = add_countryculture which = catalan }
		command = { type = add_countryculture which = maltese }
		command = { type = sleepevent which = 260915 } #POR: Aragonese Civil War
		command = { type = sleepevent which = 260097 } #POR: Catarina Bragana
		command = { type = addcore which = 393 } #Napoli
		command = { type = addcore which = 394 } #Apulia
		command = { type = addcore which = 395 } #Messina
		command = { type = addcore which = 396 } #Sicily
		command = { type = addcore which = 397 } #Sardinia
		command = { type = addcore which = 426 } #Roussillon
		command = { type = addcore which = 427 } #Gerona
		command = { type = addcore which = 428 } #Navarra
		command = { type = addcore which = 429 } #Catalonia
		command = { type = addcore which = 430 } #Aragon
		command = { type = addcore which = 431 } #Cantabria
		command = { type = addcore which = 432 } #Asturias
		command = { type = addcore which = 433 } #Galicia
		command = { type = addcore which = 435 } #Leon
		command = { type = addcore which = 436 } #Castilla
		command = { type = addcore which = 437 } #Valencia
		command = { type = addcore which = 438 } #Murcia
		command = { type = addcore which = 439 } #Toledo
		command = { type = addcore which = 440 } #Estramadura
		command = { type = addcore which = 443 } #Andalusia
		command = { type = addcore which = 444 } #Granada
		command = { type = addcore which = 445 } #Gibraltar
		command = { type = addcore which = 817 } #The Canary Islands
		command = { type = addcore which = 821 } #The Baleares
		command = { type = addcore which = 819 } #Malta
		command = { type = stability value = 1 }
		command = { type = domestic which = centralization value = -4 }
		command = { type = wakeleader which = 0110851 } #Prospero Colonna (POR)
		command = { type = wakeleader which = 0110852 } #Fadrique de Alba (POR)
		command = { type = wakeleader which = 0110853 } #Hugo de Moncada (POR)
		command = { type = wakeleader which = 0110854 } #Ramn de Cardona (POR)
		command = { type = wakeleader which = 0110855 } #Fernando de valos (POR)
		command = { type = wakeleader which = 0110856 } #Antonio de Leiva (POR)
		command = { type = wakeleader which = 0110857 } #Alfonso de valos (POR)
		command = { type = wakeleader which = 0110858 } #B. de Mendoza (POR)
		command = { type = wakeleader which = 0110859 } #lvaro de Bazn (POR)
		command = { type = wakeleader which = 0110860 } #Rodrigo de Bastidas (POR)
		command = { type = wakeleader which = 0110861 } #J. Ponce de Len (POR)
		command = { type = wakeleader which = 0110862 } #Vasco de Balboa (POR)
		command = { type = wakeleader which = 0110863 } #Pnfilo de Narvez (POR)
		command = { type = wakeleader which = 0110865 } #Hernn Corts (POR)
		command = { type = wakeleader which = 0110866 } #Lucas de Aylln (POR)
		command = { type = wakeleader which = 0110867 } #F. de Crdoba (POR)
		command = { type = wakeleader which = 0110868 } #Pedro de Alvarado (POR)
		command = { type = wakeleader which = 0110869 } #Francisco Pizarro (POR)
		command = { type = wakeleader which = 0110870 } #Diego de Almagro (POR)
		command = { type = wakeleader which = 0110872 } #Francisco Montejo (POR)
		command = { type = wakeleader which = 0110873 } #A. Cabeza de Vaca (POR)
		command = { type = wakeleader which = 0110874 } #lvaro de Saavedra (POR)
		command = { type = wakeleader which = 0110875 } #Nuo Beltrn (POR)
		command = { type = wakeleader which = 0110876 } #Pedro de Mendoza (POR)
		command = { type = wakeleader which = 0110877 } #S. de Belalczar (POR)
		command = { type = wakeleader which = 0110878 } #Gonzalo de Quesada (POR)
		command = { type = wakeleader which = 0110879 } #Hernando de Soto (POR)
		command = { type = wakeleader which = 0110880 } #Francisco Coronado (POR)
		command = { type = wakeleader which = 0110881 } #Pedro de Valdivia (POR)
		command = { type = wakeleader which = 0110882 } #Juan Cabrillo (POR)
		command = { type = wakeleader which = 0110883 } #F. Montejo el joven (POR)
		command = { type = wakeleader which = 0110886 } #Duque de Alba (POR)
		command = { type = wakeleader which = 0110887 } #Pedro de Avils (POR)
		command = { type = wakeleader which = 0110888 } #M. de Santa Cruz (POR)
		command = { type = wakeleader which = 0110889 } #Pedro Enrquez (POR)
		command = { type = wakeleader which = 0110890 } #Luis Fajardo (POR)
		command = { type = wakeleader which = 0110891 } #Antonio de Oquendo (POR)
		command = { type = wakeleader which = 0110892 } #Gmez de Figueroa (POR)
		command = { type = wakeleader which = 0110893 } #Fadrique de Toledo (POR)
		command = { type = wakeleader which = 0110894 } #Francisco de Orozco (POR)
		command = { type = wakeleader which = 0110895 } #Blas de Lezo (POR)
		command = { type = wakeleader which = 0110896 } #Jos Carrillo (POR)
		command = { type = wakeleader which = 0110897 } #Juan Navarro (POR)
		command = { type = wakeleader which = 0110898 } #Luis de Crdoba (POR)
		command = { type = wakeleader which = 0110899 } #Antonio Barcel (POR)
		command = { type = wakeleader which = 0110900 } #Antonio Ricardos (POR)
		command = { type = wakeleader which = 0110901 } #Bernardo de Glvez (POR)
		command = { type = wakeleader which = 0110902 } #Juan de Langara (POR)
		command = { type = wakeleader which = 0110903 } #Ventura Caro (POR)
		command = { type = wakeleader which = 0110904 } #Federico Gravina (POR)
		command = { type = wakeleader which = 0110905 } #Javier Castaos (POR)
		command = { type = wakeleader which = 0110906 } #G. de la Cuesta (POR)
		command = { type = wakeleader which = 0110907 } #Joaqun Blake (POR)
		command = { type = wakeleader which = 0110909 } #Francisco Villagra (POR)
		command = { type = wakeleader which = 0110911 } #Miguel Legazpi (POR)
		command = { type = wakeleader which = 0110914 } #Juan de Garay (POR)
		command = { type = wakeleader which = 0110915 } #Fernandes Queiroz (POR)
		command = { type = wakeleader which = 0110916 } #Juan de Oate (POR)
		command = { type = wakeleader which = 0110917 } #Father Kino (POR)
		command = { type = wakeleader which = 0110918 } #Friar Serra (POR)
		command = { type = wakeleader which = 0110919 } #Gaspar de Portol (POR)
		command = { type = wakeleader which = 0110920 } #Juan de Anza (POR)
		command = { type = sleepleader which = 0110828 } #Count Lippe (POR)
		command = { type = sleepleader which = 0110822 } #von Schonberg (POR)
		command = { type = casusbelli which = AZT value = 240 } #to match Spanish CB
		command = { type = casusbelli which = INC value = 360 }
	}
}
#(1516) Inherit Aragon
event = {
	id = 260979
	trigger = {
		exists = ARG
		event = 260997 #POR: Afonso VI succeeds Joo II
		event = 260998 #POR: Portuguese total victory
	}
	random = no
	country = POR
	name = "EVENTNAME260979" #Inherit Aragon
	desc = "EVENTHIST260996"
	#-#At the death of Fernando II, Afonso VI and Isabel now control all of Iberia plus the Kingdom of Naples.

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

	action_a = {
		name = "ACTIONNAME260979A" #Inherit Aragon
		command = { type = inherit which = ARG }
		command = { type = add_countryculture which = italian }
		command = { type = add_countryculture which = maltese }
		command = { type = add_countryculture which = catalan }
		command = { type = sleepevent which = 260915 } #POR: Aragonese Civil War
		command = { type = domestic which = centralization value = -3 }
		command = { type = addcore which = 427 } #Gerona
		command = { type = addcore which = 429 } #Catalonia
		command = { type = addcore which = 430 } #Aragon
		command = { type = addcore which = 437 } #Valencia
		command = { type = addcore which = 821 } #The Baleares
		command = { type = addcore which = 428 } #Navarra
		command = { type = addcore which = 426 } #Roussillon
		command = { type = addcore which = 393 } #Napoli
		command = { type = addcore which = 394 } #Apulia
		command = { type = addcore which = 395 } #Messina
		command = { type = addcore which = 396 } #Sicily
		command = { type = addcore which = 397 } #Sardinia
		command = { type = addcore which = 819 } #Malta
		command = { type = wakeleader which = 0110851 } #Prospero Colonna (POR)
		command = { type = wakeleader which = 0110853 } #Hugo de Moncada (POR)
		command = { type = wakeleader which = 0110854 } #Ramn de Cardona (POR)
		command = { type = wakeleader which = 0110855 } #Fernando de valos (POR)
		command = { type = wakeleader which = 0110857 } #Alfonso de valos (POR)
	}
}

#(1516-1820) Spain inherits Aragon's core on Corsica
#by sturmvogel
event = {
	id = 260864
	trigger = {
		event = 111038 #ARG: Gain of core on Corsica
		NOT = {
			event = 111002 #ARG: Aragon loses claim to Corsica
		}
		event = 260980 #POR: Spread the Word of God Among the Infidels
		OR = {
			event = 260914 #POR: Portuguese total victory
			event = 260979 #POR: Inherit Aragon
		}
 	}
	random = no
	country = SPA
	name = "EVENTNAME260864" #Portugal inherits Aragon's core on Corsica
	desc = "EVENTHIST260864"
	#-#Portugal inherited Aragon's claim on Corsica.

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

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

#-----------------------------------------------------------------------------------------------
#Aragonese Civil War Sequence

#(1516) Claiming the Crown of Aragon
event = {
	id = 260915
	trigger = {
		exists = ARG
	}
	random = no
	country = POR
	name = "EVENTNAME260915" #Claiming the Crown of Aragon
	desc = "EVENTHIST260915"
	#-#Both Manuel I and his wife Maria were great-grandchildren of Ferdinand I of Aragon. While Maria was the only third daughter of Isabel and Fernando they felt that they could use their Aragonese blood to legitimate their desire to unite all of Iberia under their sway. Maria's older sister, Juana, commonly called La Loca (The Crazy), wasn't fit to rule, but her child Enric was and had been taught by his grandfather Fernando. When Fernando died on 23 January 1516 the Portuguese rulers made their bid for the throne. They sent emissaries to many Aragonese and Catalan nobles and city councils to persuade them to their side. They emphasized that Enric was young, untried and liable to be easily manipulated by the enemies of whoever they were talking to. They promised to respect the ancient privileges and rights of those who aided them, but made no promises what so ever about those who fought against them. Many preferred Enric, a native-born Catalan, and precisely because they thought they could easily manipulate him, but the sheer power of Portugal and Castile persuaded many to try and sit on the fence.

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

	action_a = {
		name = "ACTIONNAME260915A" #It is our chance to gain Aragon
		command = { type = war which = ARG }
		command = { type = trigger which = 111999 } #ARG: Aragonese Civil War
		command = { type = INF which = 431 value = 5000 } #Cantabria
		command = { type = INF which = 436 value = 5000 } #Castilla
		command = { type = INF which = 438 value = 5000 } #Murcia
	}
	action_b = {
		name = "ACTIONNAME260915B" #Aragon is not our business
		command = { type = stability value = 1 }
		command = { type = relation which = ARG value = 200 }
	}
}
#(1516-1556) Portuguese total victory
event = {
	id = 260914
	trigger = {
		event = 260915 #POR: Aragonese Civil War
		OR = {
			control = { province = 427 data = -1 } #Gerona
			NOT = { owned = { province = 427 data = ARG } } #Gerona
		}
		OR = {
			control = { province = 429 data = -1 } #Catalonia
			NOT = { owned = { province = 429 data = ARG } } #Catalonia
		}
		OR = {
			control = { province = 430 data = -1 } #Aragon
			NOT = { owned = { province = 430 data = ARG } } #Aragon
		}
		OR = {
			control = { province = 428 data = -1 } #Navarra
			NOT = { owned = { province = 428 data = ARG } } #Navarra
		}
		OR = {
			control = { province = 426 data = -1 } #Roussillon
			NOT = { owned = { province = 426 data = ARG } } #Roussilon
		}
		OR = {
			control = { province = 821 data = -1 } #The Baleares
			NOT = { owned = { province = 821 data = ARG } } #The Baleares
		}
		OR = {
			control = { province = 397 data = -1 } #Sardinia
			NOT = { owned = { province = 397 data = ARG } } #Sardinia
		}
		OR = {
			control = { province = 395 data = -1 } #Messina
			NOT = { owned = { province = 395 data = ARG } } #Messina
		}
		OR = {
			control = { province = 396 data = -1 } #Sicily
			NOT = { owned = { province = 396 data = ARG } } #Sicily
		}
	}
	random = no
	country = POR
	name = "EVENTNAME260998" #Portuguese total victory
	desc = "EVENTHIST260914"
	#-#After their complete victory over Enric, Manuel and Maria can dispose of the Kingdom of Aragon as they wish. What say you?

	date = { day = 23 month = january year = 1516 }
	offset = 15
	deathdate = { day = 29 month = december year = 1556 }

	action_a = {
		name = "ACTIONNAME260914A" #Gain a crown
		command = { type = inherit which = ARG }
		command = { type = add_countryculture which = italian }
		command = { type = add_countryculture which = maltese }
		command = { type = add_countryculture which = catalan }
		command = { type = domestic which = centralization value = -2 } #Manuel doesn't respect all of the ancient privleges
		command = { type = addcore which = 427 } #Gerona
		command = { type = addcore which = 429 } #Catalonia
		command = { type = addcore which = 430 } #Aragon
		command = { type = addcore which = 437 } #Valencia
		command = { type = addcore which = 821 } #The Baleares
		command = { type = addcore which = 428 } #Navarra
		command = { type = addcore which = 426 } #Roussillon
		command = { type = addcore which = 393 } #Napoli
		command = { type = addcore which = 394 } #Apulia
		command = { type = addcore which = 395 } #Messina
		command = { type = addcore which = 396 } #Sicily
		command = { type = addcore which = 397 } #Sardinia
	}
	action_b = {
		name = "ACTIONNAME260914B" #Be generous and gain a vassal
		command = { type = vassal which = ARG }
		command = { type = relation which = ARG value = 200 }
		command = { type = dynastic which = ARG }
	}
}
#End of Aragonese Civil War Sequence
#-----------------------------------------------------------------------------------------------

#(1517-1820) The Fate of Navarre
event = {
	id = 260874
	trigger = {
		NOT = {
			exists = NAV
		}
		owned = { province = 428 data = -1 } #Navarra
		control = { province = 428 data = -1 } #Navarra
		atwar = no
	}
	random = no
	country = POR
	name = "EVENTNAME260874" #The Fate of Navarre
	desc = "EVENTHIST260874"
	#-#We have inherited Fernando's claim to Navarre.

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

	action_a = {
		name = "GREAT"
		command = { type = add_countryculture which = basque }
	}
}

#(1518-1519) Magellan's Expedition
#by Bordic
event = {
	id = 260995
	random = no
	country = POR
	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 = 0110850 } #Juan Sebastin Elcano
		command = { type = wakeleader which = 0110849 } #Ferno de Magalhes
		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
		command = { type = sleepevent which = 260994 } #POR: Pigafetta's Report
	}
}

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

#(1519-1527) The Rncomiendas
#by Fodoron
event = {
	id = 260944
	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 = POR
	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 = 260943 } #POR: The New Law
		command = { type = sleepevent which = 260942 } #POR: The rebellion of the encomenderos
	}
}
#(1542) The New Laws
#by Fodoron
event = {
	id = 260943
	random = no
	country = POR
	name = "EVENTNAME260943" #The New Laws
	desc = "EVENTHIST260943"
	#-#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 King and his court were displeased in the bloody way that the conquest of New Spain (the Incas) had been conducted by Pizarro and decided to regulate the treatment and rights of the Indians through legislation, according to the advice of 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 establishment 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 = 260942 } #POR: The rebellion of the encomenderos
	}
}
#(1544) The rebellion of the Encomenderos
#by Fodoron
event = {
	id = 260942
	random = no
	country = POR
	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
#-----------------------------------------------------------------------------------------------

#(1523-1640) The great siege of Malta
#by Fodoron
event = {
	id = 260913
	trigger = {
		war = { country = KNI country = TUR }
		NOT = { war = { country = KNI country = POR } }
		NOT = {
			core = { province = 819 data = -1 } #Malta donated
		}
	}
	random = no
	country = POR
	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 = 201999 } #KNI: Spanish help
		command = { type = trigger which = 260912 } #POR: Tercios del mar
		command = { type = treasury value = -100 }
	}
	action_b = {
		name = "ACTIONNAME285127B" #They should solve their own problems
		command = { type = trigger which = 201998 } #KNI: Portugal refuses to help
		command = { type = relation which = KNI value = -50 }
	}
}
#(1523-1640) Tercios del mar
#by Fodoron
event = {
	id = 260912 #triggered by POR_260912 A
	random = no
	country = POR
	name = "EVENTNAME285150" #Tercios del mar
	desc = "EVENTHIST260912"
	#-#Portugal 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 galleys. In the winter of 1564 spies told of a powerful Ottoman fleet being readied in Constantinople. On May 18, 1565 their target was revealed when the Janissaries landed in Malta. From the beginning of May Aragon had been gathering her force. Finally, on August 25, the Viceroy of Sicily, Garca de Toledo, gave the order to depart, arriving at 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 surviving defenders. Had they arrived one day later, Malta would have been lost. It was clear that a reaction time of four months was not acceptable and that Portugal could not project her power far away unless a permanent force capable of landing and conducting battles that could be quickly deployed was assigned to the Navy. So in February 1566 the Tercio de la Armada del Mar Oceano, or Tercio of the Navy of the Ocean Sea, also known as Tercio de Figueroa for its first commander, was created with 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 }
	}
}

#(1525-1534) Pigafetta's Report
#by Bordic
event = {
	id = 260994
	random = no
	country = POR
	name = "EVENTNAME326032" #Pigafetta's Report
	desc = "EVENTHIST260994"
	#-#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 Portual, where he was presented to the Kings. In Sevilla, 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-1572) The Pasha of Tunis requests our help
#by Fodoron
event = {
	id = 260911 #triggered by TUN_300001 A
	trigger = {
		NOT = { exists = SPA }
		NOT = { exists = ARG }
	}
	random = no
	country = POR
	name = "EVENTNAME285128" #The Pasha of Tunis requests our help
	desc = "EVENTHIST260911"
	#-#The Portuguese 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 the King's grandfather Fernando had established. He could not let them reach the Straits of Gibraltar. Worse still, they entered an alliance with France, so he was facing war simultaneously in all fronts. To add to that, the Portuguese presidios (fortresses) in Africa were very difficult to defend. When Barbarossa conquered Tunis in 1534, the fleeing Pasha al-Hassan went to the Portuguese court and asked for help in exchange for vassalage. The King could not let the Ottomans or their allies come any closer to Portugal 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 = 260910 } #POR: Tunis conquered
		command = { type = sleepevent which = 260909 } #POR: Tunis conquered
	}
}
#(1527-1572) Tunis conquered by Barbarossa (TUR version)
#by Fodoron
event = {
	id = 260910
	trigger = {
		event = 260911 #POR: 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 = POR }
			vassal = { country = POR country = TUR }
		}
	}
	random = no
	country = POR
	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 (temporary to direct energies)
		command = { type = war which = TUR }
	}
}
#(1527-1572) Tunis conquered by Barbarossa (ALD version)
#by Fodoron
event = {
	id = 260909
	trigger = {
		event = 260911 #POR: The Pasha of Tunis requests our help
		owned = { province = 739 data = ALD } #Tunisia
		NOT = { exists = TUN }
		NOT = {
			vassal = { country = TUR country = POR }
			vassal = { country = POR country = TUR }
		}
	}
	random = no
	country = POR
	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 (temporary to direct energies)
		command = { type = war which = ALD }
	}
}

#(1527-1574) Tunis under Portuguese control
#by Fodoron
event = {
	id = 260908
	trigger = {
		event = 260911 #POR: 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 = POR
	name = "EVENTNAME260908" #Tunis under Portuguese control
	desc = "EVENTHIST260908"
	#-#After the conquest of Tunis in 1535, the Portuguese reinstated al-Hassa Ibn Muhammad as Pasha of Tunis. A garrison of Portuguese soldiers was left to help him keep control and ensure his loyalty. Tunis continued as a vassal of Portugal 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 }
	}
}

#-----------------------------------------------------------------------------------------------
#Inca sequence
#(1529-1532) Pizarro claims Peru for Portugal
#by Captain Krunch modified by Crook, mnorrefeldt and Fodoron
event = {
	id = 260941
	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 = POR
	name = "EVENTNAME260941" #Pizarro claims Peru for Portugal
	desc = "EVENTHIST260941"
	#-#Having found the Inca empire, Francisco Pizarro had to guarantee his right to conquer it, as he was opposed by the new governor of Panama. He agreed with Diego de Almagro to divide the rights and titles equally, and travelled to the court with the royal fifth of all the riches they had already found. Impressed with the gold, the King 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 = 0110871 } #Francisco Pizarro (POR)
		command = { type = treasury value = 100 } #the royal fifth
	}
	action_b = {
		name = "ACTIONNAME285208B" #Deny Pizarro's Request
		command = { type = sleepevent which = 191000 } #INC: Date With Destiny
	}
}
#(1529-1680) The capture of Cuzco
#by Captain Krunch modified by Crook, mnorrefeldt and Fodoron
event = {
	id = 260940 #triggered by INC_191999
	random = no
	country = POR
	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 }
		command = { type = fortress which = 169 value = 1 } #Cuzco
	}
}
#(1532) Santiago! Y a ellos!
#by Captain Krunch modified by Crook, mnorrefeldt and Fodoron
event = {
	id = 260939 #triggered by INC_191998 A / INC_191997 A
	random = no
	country = POR
	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 = 191996 } #INC: Atahuallpa's ransom
	}
}
#(1533) Death of Atahuallpa
#by Fodoron
event = {
	id = 260938
	trigger = { event = 191996 } #INC: Atahuallpa's ransom
	random = no
	country = POR
	name = "EVENTNAME285153" #Death of Atahuallpa
	desc = "EVENTHIST260938"
	#-#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 Portuguese 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, an 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 Portugal was highly displeased with the killing of a fellow monarch but it was too late to do anything about it. The decision, however, proved to be strategically correct, as without its Emperor the Inca Empire collapsed into the hands of the Portuguese.

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

	action_a = {
		name = "ACTIONNAME285153A" #Kill Atahuallpa
		command = { type = badboy value = 1 }
		command = { type = trigger which = 191994 } #INC: Death Of Atahuallpa
		command = { type = war which = INC }
	}
}
#(1533-1700) Unexpected allies
#by Fodoron
event = {
	id = 260937
	trigger = {
		war = { country = POR country = INC }
		OR = {
			owned = { province = 164 data = -1 } #Guayaquil
			owned = { province = 165 data = -1 } #Cajamarca
			owned = { province = 166 data = -1 } #Huanaco
		}
	}
	random = no
	country = POR
	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 and Fodoron
event = {
	id = 260936
	trigger = {
		owned = { province = 168 data = -1 } #Lima
	}
	random = no
	country = POR
	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 = fortress which = 168 value = 1 } #Lima
		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 and Fodoron
event = {
	id = 260935
	trigger = { event = 191993 } #The Empire Strikes Back
	random = no
	country = POR
	name = "EVENTNAME285160" #Appeal for help
	desc = "EVENTHIST260935"
	#-#The new Emperor Manco Inca, was in fact a prisoner in his own palace, humiliated by the Portuguese. As the atrocities against his people became known to Manco Inca, he began to develop a hatred for his captors. 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 to gather weapons and large crop plantings in preparation for war with the Portuguese. 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 and an Inca counterattack seemed imminent. Soon an army numbering in the tens of thousands was besieging the Portuguese-held city of Cuzco, and another Inca army was sighted heading towards the Portuguese stronghold of Lima. Manco's warriors annihilated every relief column sent from Lima to Cuzco. An alarmed Francisco Pizarro sent frantic letters to every Portuguese 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 = 260934
	trigger = { event = 260935 } #POR: Appeal For Help
	random = no
	country = POR
	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 = 260933 #triggered by INC_191991 A
	random = no
	country = POR
	name = "EVENTNAME285162" #The Viceroyalty of Peru
	desc = "EVENTHIST260933"
	#-#Manco Inca was killed by two Portuguese deserters, who 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 Incan Empire was completely absorbed by Portugal.

	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 the Inca sequence
#-----------------------------------------------------------------------------------------------

#(1534-1540) Barbarossa raids our coasts I
#by Fodoron
event = {
	id = 260904
	trigger = {
		exists = TUR
		leader = 0139318 #Barbarossa (TUR)
		war = { country = POR country = FRA }
		OR = {
			exists = ALD
			owned = { province = 737 data = TUR } #Al Djazair
		}
	}
	random = no
	country = POR
	name = "EVENTNAME285135" #Barbarossa raids our coasts
	desc = "EVENTHIST260904"
	#-#The alliance against the Portuguese, 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 fought against Aragon. 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 Portugal. After the peace of Crpy between France and Portugal, 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
	}
}

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

#(1534-1560) The legend of El Dorado
#by Fodoron
event = {
	id = 260973
	trigger = {
		owned = { province = 162 data = -1 } #Cali (Quito conquered)
	}
	random = no
	country = POR
	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
		command = { type = sleepevent which = 260972 } #POR: Chibcha treasure
	}
}
#(1536-1560) Chibcha treasure
#by Fodoron
event = {
	id = 260972
	trigger = {
		discovered = 160 #Bogota
		event = 260973 #POR: The legend of El Dorado
	}
	random = no
	country = POR
	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 = 260971
	trigger = {
		event = 260972 #POR: Chibcha treasure
	}
	random = no
	country = POR
	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 = 0110913 } #Gonzalo de Quesada (POR)
	}
}
#End of "El Dorado" Sequence
#-----------------------------------------------------------------------------------------------

#(1535-1557) Portuguese hegemony in North Africa
#by Fodoron
event = {
	id = 260907
	trigger = {
		exists = TLE
		exists = TUR
		owned = { province = 734 data = -1 } #Orania
		event = 260911 #POR: The Pasha of Tunis requests our help
	}
	random = no
	country = POR
	name = "EVENTNAME260907" #Portuguese Hegemony in North Africa
	desc = "EVENTHIST260907"
	#-#After the pact between Franois Ier of France and the Ottoman Sultan in 1527, the Portuguese found their empire in a difficult situation. The Turks usally sent their fleets to ravage their coasts, coinciding and even coordinating with French attacks. To avoid complete Ottoman control of the Mediterranean, they took Tunis in 1535. The new Governor of Oran, Martn Alonso de Cordoba, the Conde de Alcaudete, was ordered to lead an expedition against Tlemcen which was shifting towards the Ottoman side. At Prevesa, in the Albanian coast, the combined fleets of Portugal, Venice, Genoa and Papal States, under command of Andrea Doria, were defeated by the Ottoman-Barbary fleet under Khayr ad-Din Barbarossa. Although losses 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 Portuguese supremacy, at least in the Western Mediterranean, and so a naval expedition against Al-Djazar (Algiers) was prepared.

	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 = 332999 } #TLE: Between the Portuguese and the Ottomans
		command = { type = sleepevent which = 332998 } #TLE: Between the Portuguese and the Ottomans
	}
}
#(1535-1557) The first expedition of Alcaudete and the failure at Algiers (TLE not a vassal)
#by Fodoron
event = {
	id = 260906 #triggered by TLE_332999 A
	random = no
	country = POR
	name = "EVENTNAME285133" #The first expedition of Alcaudete and the failure at Algiers
	desc = "EVENTHIST260906"
	#-#The confrontation between Portugal and the Sultan of the Ottomans reached Tlemcen at a delicate point, when dynastic fights were shaking the Zayyanids. The Conde de 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 Portuguese soldiers, was almost completely wiped out by the Banu Rashid tribe. However, probably because the Portuguese had taken Tunis, Sultan Muhammad agreed to pay tribute to Oran in exchange for Portuguese 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 and had to retreat. Overstretched because of the wars against France the Portuguese did not have the resources to maintain their 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 = 260905 #triggered by TLE_332998 A
	random = no
	country = POR
	name = "EVENTNAME285133" #The first expedition of Alcaudete and the failure at Algiers
	desc = "EVENTHIST260906"
	#-#The confrontation between Portugal and the Sultan of the Ottomans reached Tlemcen at a delicate point, when dynastic fights were shaking the Zayyanids. The Conde de 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 Portuguese soldiers, was almost completely wiped out by the Banu Rashid tribe. However, probably because the Portuguese had taken Tunis, Sultan Muhammad agreed to pay tribute to Oran in exchange for Portuguese 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 and had to retreat. Overstretched because of the wars against France the Portuguese did not have the resources to maintain their 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 = 260903
	trigger = {
		exists = TUR
		leader = 0139318 #Barbarossa (TUR)
		war = { country = POR country = FRA }
		OR = {
			exists = ALD
			owned = { province = 737 data = TUR } #Al Djazair
		}
	}
	random = no
	country = POR
	name = "EVENTNAME285135" #Barbarossa raids our coasts
	desc = "EVENTHIST260904"
	#-#The alliance against the Portuguese, 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 fought against Aragon. 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 Portugal. After the peace of Crpy between France and Portugal, 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 = 260902
	trigger = {
		vassal = { country = TUR country = TLE }
		owned = { province = 734 data = -1 } #Orania
	}
	random = no
	country = POR
	name = "EVENTNAME285137" #Civil war in Tlemcen
	desc = "EVENTHIST260902"
	#-#Taking advantage of the fights between different tribes in Tlemcen, the Conde de Alcaudete, military governor of Portuguese 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 an 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 the Portuguese.

	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 = 332017 } #TLE: Tlemcen becomes part of the Ottoman Empire -II-
		command = { type = sleepevent which = 111054 } #POR: The last expedition of Alcaudete
	}
}

#(1545-1555) The last expedition of Alcaudete
#by Fodoron
event = {
	id = 260901
	trigger = {
		event = 111053 #POR: Civil war in Tlemcen
		owned = { province = 734 data = -1 } #Orania
	}
	random = no
	country = POR
	name = "EVENTNAME285139" #The last expedition of Alcaudete
	desc = "EVENTHIST260901"
	#-#The fall of Tlemcen into Ottoman hands in 1551 put Portuguese Oran in a mortal danger. Martn Alonso de Cordoba, Conde de 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 who were named by the Ottoman Empire. Tripoli was lost in 1551, Bugia in 1555, and Tunis in 1570. Portugal had lost the North African game, but would 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) The fall of Tripoli (to prevent Portugal from keeping a core in Tripoli)
#by Fodoron
event = {
	id = 260900
	trigger = {
		core = { province = 740 data = -1 } #Tripolitania
	}
	random = no
	country = POR
	name = "EVENTNAME285138" #The fall of Tripoli
	desc = "EVENTHIST260900"
	#-#The Knights Hospitallers took care of the defense of Tripoli after its cession by Portugal for over 20 years. Provisioned by the Viceroy of Sicily and with the help of a Portuguese 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 Portuguese 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 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
	}
}

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

#(1553-1575) La Araucana
#by Fodoron
event = {
	id = 260932
	trigger = {
		owned = { province = 176 data = -1 } #Talca
	}
	random = no
	country = POR
	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 = 260931
	trigger = {
		owned = { province = 176 data = -1 } #Talca
	}
	random = no
	country = POR
	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-1577) The battle of Lepanto
#by Fodoron
event = {
	id = 260899
	trigger = { war = { country = TUR country = POR } }
	random = no
	country = POR
	name = "EVENTNAME285140" #The battle of Lepanto
	desc = "EVENTHIST260899"
	#-#In 1565 the help of the Portuguese 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 could the Ottoman Empire project its power. However the Ottoman Empire was at its 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 Portugal, Venice and Papal States, with the combined fleet under command of Don Juan de Austria. The interests of Venice and Portugal were very different: Venice wanted to recover Cyprus, and Portugal 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 on the Ottoman side which was almost completely destroyed. News of the victory were extremely well received by the Christians that had suffered from 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 }
	}
}

#(1561) Madrid from Lisbon
#by Fodoron
event = {
	id = 285999
	trigger = {
		owned = { province = 436 data = -1 }
		control = { province = 436 data = -1 }
		event = 260998 #POR absolute winner
		NOT = { exists = POR }
	}
	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 = february year = 1561 }

	action_a = {
		name = "ACTIONNAME285999A" #Move the capital to Madrid
		command = { type = sleepevent which = 285015 } #Madrid from Toledo #SPA: Madrid Capital of Spain
		command = { type = sleepevent which = 285016 } #Madrid from Barcelona #SPA: Madrid Capital of Spain
		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 = 441 value = -2000 } #Tago
		command = { type = provincetax which = 441 value = -1 } #Tago
	}
	action_b = {
		name = "ACTIONNAME285999B" #Lisbon is a better place
		command = { type = sleepevent which = 285015 } #Madrid from Toledo #SPA: Madrid Capital of Spain
		command = { type = sleepevent which = 285016 } #Madrid from Barcelona #SPA: Madrid Capital of Spain
		command = { type = provincetax which = 441 value = 1 } #Tago
		command = { type = population which = 441 value = 500 } #Tago
		command = { type = vp value = -5 }
		command = { type = sleepevent which = 285700 } #SPA: El Escorial
		command = { type = sleepevent which = 285701 } #SPA: Finally the Escorial is finished
	}
}

#(1563) The great siege of Oran
#by Fodoron
event = {
	id = 260898
	trigger = {
		owned = { province = 734 data = -1 } #Orania
	}
	random = no
	country = POR
	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
	}
}

#(1564) expedition to Philippines
#by Fodoron
event = {
	id = 260977
	trigger = {
		owned = { province = 24 data = -1 } #Jalisco
	}
	random = no
	country = POR
	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 = 21 month = november year = 1564 }

	action_a = {
		name = "ACTIONNAME285048A" #Finance the expedition
		command = { type = treasury value = -25 }
		command = { type = warships which = 24 value = 1 } #Jalisco
		command = { type = wakeleader which = 0110910 } #Andrs de Urdaneta (POR)
	}
	action_b = {
		name = "ACTIONNAME285048B" #We cannot afford it
		command = { type = land value = 100 }
		command = { type = vp value = -5 }
	}
}

#(1565-1820) Manila Galleon
#by Fodoron
event = {
	id = 260976
	trigger = {
		owned = { province = 690 data = -1 } #Luzon
	}
	random = no
	country = POR
	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 }
	}
}

#(1566-1591) The Purge of the Morisques
#modified by sturmvogel with assistance by Fodoron
event = {
	id = 260918
	trigger = {
		event = 260984
		OR = {
			owned = { province = 445 data = POR }
			owned = { province = 444 data = POR }
			}
		}
	random = no
	country = POR
	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" #Try and assimilate the Morisques
		command = { type = revolt which = 444 } #Granada
		command = { type = revolt which = 444 } #Granada
		command = { type = domestic which = INNOVATIVE value = -2 }
		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 = 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" #Leave them be
		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
	}
}

#(1569-1576) May Nilad
#by Fodoron
event = {
	id = 260975
	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 = POR
	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 = 0110912 } #Juan de Salcedo (POR)
		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 = 260875
	trigger = {
		event = 338260 #ProvinceSpec*169: Conversion of the Incas
		owned = { province = 168 data = -1 } #Lima
		control = { province = 168 data = -1 }
	}
	random = no
	country = POR
	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 = 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 = { }
	}
}

#(1574) Tunis is lost (safety to remove core if not played)
#by Fodoron
event = {
	id = 260897
	trigger = {
		core = { province = 739 data = -1 } #Tunisia
	}
	random = no
	country = POR
	name = "EVENTNAME285147" #Tunis is lost
	desc = "EVENTHIST260908"
	#-#After the conquest of Tunis in 1535, the Portuguese reinstated al-Hassa Ibn Muhammad as Pasha of Tunis. A garrison of Portuguese soldiers was left to help him keep control and ensure his loyalty. Tunis continued as a vassal of Portugal until 1574, when it was conquered by the Ottoman Empire.

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

	action_a = {
		name = "ALAS"
		command = { type = removecore which = 740 } #Tunisia
	}
}

#(1574-1575) Lin Ah Feng attacks Manila
#by Fodoron
event = {
	id = 260921
	trigger = {
		owned = { province = 690 data = -1 } #Luzon
		event = 260975 #POR: May Nilad
	}
	random = no
	country = POR
	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 }
		command = { type = population which = 690 value = -300 } #Luzon
		command = { type = relation which = CHI value = 50 }
	}
}

#(1577-1581) Peace with the Ottoman empire
#by Fodoron
event = {
	id = 260896
	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 = POR }
		}
		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 = POR
	name = "EVENTNAME285141" #Peace with the Ottoman Empire
	desc = "EVENTHIST260896"
	#-#The Portuguese just did not have the money to pursue North African conquests, but the rebellion of the Moriscos in 1569, at a time when Tunis was conquered by the Ottomans by the famous pirate and Beylerbey of Algiers, Uluj Ali, made them 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 they was not alone in having problems. The Ottomans, defeated at Malta and Lepanto, found themselves also overstretched due to the demand of their conflicts with Persia. Under these circumstances, the Portuguese and Murad III negotiated a series of truces between 1577 and 1581. In these truces they renounced the former Portuguese conquests in North Africa, while the Ottoman sultan renounced Oran and would not lend help to the Moriscos. The peace between Portugal and the Ottoman Empire would be permanent, and would allow both empires to abandon the Mediterranean, which was left in the hands of the Barbary pirates, periodically checked by the European navies.

	date = { day = 0 month = january year = 1577 }
	offset = 300
	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 = trigger which = 301044 } #TUR: Peace with Portugal
	}
	action_b = {
		name = "ACTIONNAME285141B" #Holy war
		command = { type = stability value = -1 }
		command = { type = relation which = TUR value = -50 }
		command = { type = treasury value = -50 }
	}
}

#(1578-1750) War on Islam at Philippines (Brunei owns Palawan)
#by Fodoron
event = {
	id = 260920
	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 = POR
	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 = casusbelli which = BEI value = 2064 }
	}
	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 = 260919
	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 = POR
	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 = casusbelli which = SUL value = 2064 }
	}
	action_b = {
		name = "ACTIONNAME285165B" #Not now
		command = { type = vp value = -5 }
	}
}

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

#(1578-1750) Moro wars (I)
#by Fodoron
event = {
	id = 260924
	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 = POR
	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 = casusbelli which = MND value = 240 }
	}
	action_b = {
		name = "ACTIONNAME285166B" #Not now
		command = { type = vp value = -5 }
	}
}
#(1599-1609) Moro wars (II)
#by Fodoron
event = {
	id = 260923 #triggered by MND_119999 A
	random = no
	country = POR
	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 = 260922 #triggered by MND_119998 A
	random = no
	country = POR
	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
#-----------------------------------------------------------------------------------------------

#(1578) Expedition to North Africa
event = {
	id = 260916
	random = no
	trigger = {
		event = 260997 #POR: Afonso VI succeeds Joo II
		OR = {
			exists = MOR
			exists = SUS
			exists = ALD
		}
	}
	country = POR
	name = "EVENTNAME260916" #Expedition to North Africa
	desc = "EVENTHIST260916"
	#-#Our nobles are eager to win fame and glory for the greater name of God in North Africa! This might be a chance to get rid of some of the more troublesome nobles. What say you?

	date = { day = 4 month = august year = 1578 }

	action_a = {
		name = "ACTIONNAME3272A" #A Crusade against the Heretics in Africa
		command = { type = casusbelli which = MOR value = 12 }
		command = { type = casusbelli which = SUS value = 12 }
		command = { type = casusbelli which = ALD value = 12 }
		command = { type = treasury value = 300 }
		command = { type = INF which = -1 value = 10000 }
		command = { type = CAV which = -3 value = 5000 }
		command = { type = ART which = -3 value = 10 }
		command = { type = stability value = 1 }
		command = { type = domestic which = CENTRALIZATION value = 1 }
		command = { type = domestic which = ARISTOCRACY value = -1 }
	}
	action_b = {
		name = "ACTIONNAME260916B" #We have enough on our plate right now
		command = { type = trade value = 800 }
		command = { type = naval value = 800 }
		command = { type = domestic which = CENTRALIZATION value = -1 }
		command = { type = domestic which = ARISTOCRACY value = 1 }
	}
}

#(1587-1598) Fortification of the Caribbean
#by sturmvogel
event = {
	id = 260866
	trigger = {
		domestic = { type = offensive value = 3 }
		event = 260870 #POR: English Privateering
 	}
	random = no
	country = POR
	name = "EVENTNAME260866" #Fortification of the Caribbean
	desc = "EVENTHIST260866"
	#-#In 1586 General Juan de Tejeda and Bautista Antonelli were ordered to make an inspection of the Caribbean fortifications that had failed to stop Protestant attacks on Portuguese holdings and to prepare recommendations for preventing further attacks. Upon their return they advised fortifying the ports used by the treasure fleets as they were the most likely to be attacked. 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 = "ACTIONNAME260866A" #Fortify the Caribbean
		command = { type = domestic which = offensive value = -1 }
	}
	action_b = {
		name = "ACTIONNAME285292B" #We are content with the existing fortifications
		command = { }
	}
}

#(1593-1613) Cambodia asks for aid
#by Chanda "Philip V" Choun
event = {
	id = 260950 #triggered by CAM_140999 A
	random = no
	country = POR
	name = "EVENTNAME65149" #Cambodia asks for aid
	desc = "EVENTHIST260950"
	#-#Hard-pressed by the Thai, King Sattha of Cambodia surrounded himself with a personal guard of Portuguese mercenaries and asked the Portuguese governor of the Philippines for aid in 1593. Attracted by the prospects of establishing a Portuguese 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 = 140998 } #CAM: Portuguese Intervention
		command = { type = sleepevent which = 140011 } #CAM: Lovek is captured
	}
	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 = 140997 } #CAM: Portuguese Refusal
		command = { type = sleepevent which = 140011 } #CAM: Lovek is captured
	}
}
#(1593-1613) Lovek is captured
event = {
	id = 260880 #triggered by CAM_140996
	random = no
	country = POR
	name = "EVENTNAME65150" #Lovek is Captured
	desc = "EVENTHIST260880"
	#-#The Portuguese 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 }
	}
}

#(1587-1603) Portugal Tires of England's Interference
event = {
	id = 260865
	trigger = {
		event = 260870 #POR: English Privateering
		event = 260869 #POR: Drake Strikes the Panamanian Silver Train
		event = 260868 #POR: Drake in the Pacific
		NOT = { relation = { country = ENG data = 0 } }
	}
	random = no
	country = POR
	name = "EVENTNAME260865" #Portugal Tires of England's Interference
	desc = "EVENTHIST260865"
	#-#Years of England's privateering in the Caribbean pushed Portugal 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 }
	}
}

#(1600-1612) The Expulsion of the Morisques
#modified by sturmvogel with assistance by Fodoron
event = {
	id = 260917
	trigger = {
		event = 260918 #POR: The Purge of the Morisques
		atwar = no
		OR = {
			owned = { province = 444 data = POR }
			owned = { province = 445 data = POR }
		}
	}
	random = no
	country = POR
	name = "EVENTNAME3167" #The Expulsion of the Morisques
	desc = "EVENTHIST260917"
	#-#Plans had been made to expell the Morisques from Portugal only a decade after the Alpujarras Revolt was crushed, but the wars against the Dutch and English prevented the Portuguese from massing the necessary troops and ships. It took some time to gather the necessary resources, but they began once peace was declared. 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 Kings of Portugal and their advisors thought this was a cheap price to pay for cleansing POrtugal 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 = revolt which = 437 } #Valencia
		command = { type = revolt which = 437 } #Valencia
		command = { type = province_revoltrisk which = 444 value = -2 } #Granada
		command = { type = province_revoltrisk which = 445 value = -2 } #Gibraltar
		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
		command = { type = stability value = -4 }
		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
	}
}

#(1643-1659) Decline of the Portuguese Military, Part II
event = {
	id = 260895
	trigger = {
		event = 260021 #POR: Decline of the Portuguese military
	}
	random = no
	country = POR
	name = "EVENTNAME260895" #Decline of the Portuguese Military, Part II
	desc = "EVENTHIST260895"
	#-#Even the combined resources of Portugal and Castile weren't up to the task of colonizing two entire continents plus innumerable islands round the world. The population in Iberia declined steeply during the 17th Century as people left to seek their fortunes abroad or died of the plagues that repeatedly swept the Peninsula during that time.

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

	action_a = {
		name = "ACTIONNAME260021A" #Our military is in decline
		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
	}
}

#-----------------------------------------------------------------------------------------------
#Aztecs and Zapotecs Sequence

#(1419-1600) The Conquest of the Zapotecs
event = {
	id = 260978 #triggered by ZAP_334998 A
	random = no
	country = POR
	name = "EVENTNAME82008" #The Conquest of the Zapotecs
	desc = "EVENTHIST82008"
	#-#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 and human
#by AlanC9 - modified by Fodoron
event = {
	id = 260970 #triggered by AZT_121998
	random = no
	country = POR
	name = "EVENTNAME260970" #Tlaxcala goes over to Portugal
	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 burned 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
	}
}
#(1419-1600) The fall of Tenochtitlan
event = {
	id = 260969 #triggered by AZT_121999 A
	random = no
	country = POR
	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 = 260968 #triggered by ZAP_334999 A
	random = no
	country = POR
	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 Aztecs and Zapotecs Sequence
#-----------------------------------------------------------------------------------------------

#-----------------------------------------------------------------------------------------------
#Settlement events

#(1508-1820) Settlement of Puerto Rico
event = {
	id = 260885
	trigger = {
		owned = { province = 144 data = -1 }
		control = { province = 144 data = -1 }
		NOT = { provincereligion = { province = 144 data = pagan } } #not a TP
	}
	random = no
	country = POR
	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
	}
}
#(1512-1820) Settlement of Panama
event = {
	id = 260883
	trigger = {
		owned = { province = 39 data = -1 }
		control = { province = 39 data = -1 }
		NOT = { provincereligion = { province = 39 data = pagan } } #not a TP
	}
	random = no
	province = 39 #Panama
	name = "EVENTNAME260883" #Settlement of Panama
	desc = "EVENTHIST285314"
	#-#The first colonists have arrived.

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

	action_a = {
		name = "EXCELLENT"
		command = { type = addcore which = 39 } #Panama
		command = { type = population which = 39 value = 500 }
		command = { type = gainbuilding which = 39 value = bailiff } #Panama
	}
}
#(1522-1820) Settlement of Caribe
event = {
	id = 260884
	trigger = {
		owned = { province = 178 data = -1 }
		control = { province = 178 data = -1 }
		NOT = { provincereligion = { province = 178 data = pagan } } #not a TP
	}
	random = no
	country = POR
	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
		command = { type = population which = 178 value = 500 }
		command = { type = gainbuilding which = 178 value = bailiff } #Caribe
	}
}
#(1522-1820) Settlement of Tehuacan
event = {
	id = 260893
	trigger = {
		owned = { province = 32 data = -1 }
		control = { province = 32 data = -1 }
		NOT = { provincereligion = { province = 32 data = pagan } } #not a TP
	}
	random = no
	country = POR
	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
		command = { type = population which = 32 value = 500 }
		command = { type = gainbuilding which = 32 value = bailiff } #Tehuacan
	}
}
#(1524-1820) Settlement of Guatemala
event = {
	id = 260881
	trigger = {
		owned = { province = 33 data = -1 }
		control = { province = 33 data = -1 }
		NOT = { provincereligion = { province = 33 data = pagan } } #not a TP
	}
	random = no
	country = POR
	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 } #Guatemala
		command = { type = population which = 33 value = 500 }
		command = { type = gainbuilding which = 33 value = bailiff } #Guatemala
	}
}
#(1524-1820) Settlement of Costa Rica
event = {
	id = 260878
	trigger = {
		owned = { province = 822 data = -1 }
		control = { province = 822 data = -1 }
		NOT = { provincereligion = { province = 822 data = pagan } } #not a TP
	}
	random = no
	country = POR
	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
		command = { type = population which = 822 value = 500 }
		command = { type = gainbuilding which = 822 value = bailiff } #Costa Rica
	}
}
#(1525-1820) Settlement of Maracaibo
event = {
	id = 260882
	trigger = {
		owned = { province = 157 data = -1 }
		control = { province = 157 data = -1 }
		NOT = { provincereligion = { province = 157 data = pagan } } #not a TP
	}
	random = no
	country = POR
	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
		command = { type = population which = 157 value = 500 }
		command = { type = gainbuilding which = 157 value = bailiff } #Maracaibo
	}
}
#(1527-1820) Settlement of Tocuvo
event = {
	id = 260894
	trigger = {
		owned = { province = 156 data = -1 }
		control = { province = 156 data = -1 }
		NOT = { provincereligion = { province = 156 data = pagan } } #not a TP
	}
	random = no
	country = POR
	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
		command = { type = population which = 156 value = 500 }
		command = { type = gainbuilding which = 156 value = bailiff } #Tocuvo
	}
}
#(1533-1820) Settlement of Cartagena
event = {
	id = 260890
	trigger = {
		owned = { province = 158 data = -1 }
		control = { province = 158 data = -1 }
		NOT = { provincereligion = { province = 158 data = pagan } } #not a TP
	}
	random = no
	country = POR
	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
		command = { type = population which = 158 value = 500 }
		command = { type = gainbuilding which = 158 value = bailiff } #Cartagena
	}
}
#(1534-1820) Settlement of Jamaica
event = {
	id = 260886
	trigger = {
		owned = { province = 140 data = -1 }
		control = { province = 140 data = -1 }
		NOT = { provincereligion = { province = 140 data = pagan } } #not a TP
	}
	random = no
	country = POR
	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
		command = { type = population which = 140 value = 500 }
		command = { type = gainbuilding which = 140 value = bailiff } #Jamaica
	}
}
#(1536-1820) Settlement of Honduras
event = {
	id = 260889
	trigger = {
		owned = { province = 36 data = -1 }
		control = { province = 36 data = -1 }
		NOT = { provincereligion = { province = 36 data = pagan } } #not a TP
	}
	random = no
	country = POR
	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
		command = { type = population which = 36 value = 500 }
		command = { type = gainbuilding which = 36 value = bailiff } #Honduras
	}
}
#(1538-1820) Settlement of Valparaiso
event = {
	id = 260887
	trigger = {
		owned = { province = 175 data = -1 }
		control = { province = 175 data = -1 }
		NOT = { provincereligion = { province = 175 data = pagan } } #not a TP
	}
	random = no
	country = POR
	name = "EVENTNAME260887" #Settlement of Valparaiso
	desc = "EVENTHIST285314"
	#-#The first colonists have arrived.

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

	action_a = {
		name = "EXCELLENT"
		command = { type = addcore which = 175 } #Valparaiso
		command = { type = population which = 175 value = 500 }
		command = { type = gainbuilding which = 175 value = bailiff } #Valparaiso
	}
}
#(1538-1820) Settlement of Bogota
event = {
	id = 260888
	trigger = {
		owned = { province = 160 data = -1 }
		control = { province = 160 data = -1 }
		NOT = { provincereligion = { province = 160 data = pagan } } #not a TP
	}
	random = no
	country = POR
	name = "EVENTNAME260888" #Settlement of Bogota
	desc = "EVENTHIST285314"
	#-#The first colonists have arrived.

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

	action_a = {
		name = "EXCELLENT"
		command = { type = addcore which = 160 } #Bogota
		command = { type = population which = 160 value = 500 }
		command = { type = gainbuilding which = 160 value = bailiff } #Bogota
	}
}
#(1540-1820) Settlement of Campeche
event = {
	id = 260892
	trigger = {
		owned = { province = 34 data = -1 }
		control = { province = 34 data = -1 }
		NOT = { provincereligion = { province = 34 data = pagan } } #not a TP
	}
	random = no
	country = POR
	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
		command = { type = population which = 34 value = 500 }
		command = { type = gainbuilding which = 34 value = bailiff } #Campeche
	}
}
#(1542-1820) Settlement of Yucatan
event = {
	id = 260891
	trigger = {
		owned = { province = 35 data = -1 }
		control = { province = 35 data = -1 }
		NOT = { provincereligion = { province = 35 data = pagan } } #not a TP
	}
	random = no
	country = POR
	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
		command = { type = population which = 35 value = 500 }
		command = { type = gainbuilding which = 35 value = bailiff } #Yucatan
	}
}
#(1563-1820) Settlement of Mosquitos
event = {
	id = 260879
	trigger = {
		owned = { province = 38 data = -1 }
		control = { province = 38 data = -1 }
		NOT = { provincereligion = { province = 38 data = pagan } } #not a TP
	}
	random = no
	country = POR
	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
		command = { type = population which = 38 value = 500 }
		command = { type = gainbuilding which = 38 value = bailiff } #Mosquitos
	}
}
#(1565-1820) Settlement of Seminole
event = {
	id = 260876
	trigger = {
		owned = { province = 49 data = -1 }
		control = { province = 49 data = -1 }
		NOT = { provincereligion = { province = 49 data = pagan } } #not a TP
	}
	random = no
	country = POR
	name = "EVENTNAME260876" #Settlement of Seminole
	desc = "EVENTHIST285314"
	#-#The first colonists have arrived.

	date = { day = 27 month = august year = 1565 }
	offset = 10
	deathdate = { year = 1820 }

	action_a = {
		name = "EXCELLENT"
		command = { type = addcore which = 49 } #Seminole
		command = { type = population which = 49 value = 500 }
		command = { type = gainbuilding which = 49 value = bailiff } #Seminole
	}
}
#(1567-1820) Settlement of Yaraguay
event = {
	id = 260877
	trigger = {
		owned = { province = 154 data = -1 }
		control = { province = 154 data = -1 }
		NOT = { provincereligion = { province = 154 data = pagan } } #not a TP
	}
	random = no
	country = POR
	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
		command = { type = population which = 154 value = 500 }
		command = { type = gainbuilding which = 154 value = bailiff } #Yaraguay
	}
}
#(1696-1820) Settlement of Pensacola
#by sturmvogel
event = {
	id = 260960
	trigger = {
		owned = { province = 48 data = -1 }
		control = { province = 48 data = -1 }
		NOT = { provincereligion = { province = 48 data = pagan } } #not a TP
	}
	random = no
	country = POR
	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 = 260957
	trigger = {
		owned = { province = 40 data = -1 }
		control = { province = 40 data = -1 }
		NOT = { provincereligion = { province = 40 data = pagan } } #not a TP
	}
	random = no
	country = POR
	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 = 260863
	trigger = {
		owned = { province = 44 data = -1 }
		control = { province = 44 data = -1 }
		NOT = { provincereligion = { province = 44 data = pagan } } #not a TP
	}
	random = no
	country = POR
	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 Settlement events
#-----------------------------------------------------------------------------------------------

#-----------------------------------------------------------------------------------------------
#Aragon (ARG)

#(1516) Aragonese Civil War
event = {
	id = 111999 #triggered by POR_260915 A
	random = no
	country = ARG
	name = "EVENTNAME111999" #Aragonese Civil War
	desc = "EVENTHIST111999"
	#-#After the death of Ferran II ''el Catolico'' (The Catholic), Aragon was split between supporters of Enric, son of Juana la Loca, second daughter of Ferran II, and Maria of Aragon, wife to Manuel I, King of Portugal. Manuel and Maria immediately sent their armies to invade Aragon which was disrupted by supporters of the rival claimants.

	action_a = {
		name = "ACTIONNAME111999A" #We must defend ourselves!
		command = { type = stability value = -1 }
		command = { type = revolt which = 430 } #Aragon
		command = { type = revolt which = 437 } #Valencia
		command = { type = revolt which = -1 }
		command = { type = INF which = 429 value = 5000 } #Catalonia
		command = { type = INF which = 427 value = 5000 } #Gerona
	}
}

#-----------------------------------------------------------------------------------------------
#Aztecs (AZT)

#(1419-1600) The Fall of Tenochtitlan
#by AlanC9 - modified by Fodoron
event = {
	id = 121999
	trigger = {
		control = { province = 27 data = POR }
		NOT = { event = 82004 } #AZT: The Fall of Tenochtitlan
	}
	random = no
	country = AZT
	name = "EVENTNAME82004" #The Fall of Tenochtitlan
	desc = "EVENTHIST82004"
	#-#The foreign invaders have taken our capital. Our soldiers cannot withstand their magical weapons! What will we do?

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

	action_a = {
		name = "ACTIONNAME82004A" #Reject Christianity and be burned at the stake (End Game)
		command = { type = trigger which = 260969 } #POR: The fall of Tenochtitlan
		command = { type = sleepevent which = 82004 } #AZT: The Fall of Tenochtitlan
	}
	action_b = {
		name = "ACTIONNAME82004B" #Escape disguised as a scullery maid
		command = { type = stability value = -2 }
		command = { type = manpower value = -10 }
		command = { type = treasury value = -1000 }
		command = { type = sleepevent which = 82004 } #AZT: The Fall of Tenochtitlan
	}
}

#(1519-1600) The Tlaxcalan Revolt
#by AlanC9
event = {
	id = 121998
	trigger = {
		owned = { province = 29 data = -1 }
		control = { province = 29 data = POR }
		NOT = { event = 82000 } #AZT: The Tlaxcalan Revolt
	}
	random = no
	country = AZT
	name = "EVENTNAME82000" #The Tlaxcalan Revolt
	desc = "EVENTHIST82000"
	#-#The people of Tlaxcala have gone over to the strangers from the sea! Others of our subjects are willing to side with them as well. (Perhaps we shouldn't have sacrificed and eaten so many of them).

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

	action_a = {
		name = "DAMN"
		command = { type = cedeprovince which = POR value = 29 } #Tlaxcala
		command = { type = stability value = -6 }
		command = { type = trigger which = 260970 } #POR: Tlaxcala goes over to Portugal
		command = { type = sleepevent which = 82000 } #AZT: The Tlaxcalan Revolt
	}
}

#-----------------------------------------------------------------------------------------------
#Magindanao (MND)

#(1599-1609) Moro wars (II)
#by Fodoron
event = {
	id = 119999
	trigger = {
		event = 260924 #POR: Moro wars (I)
		atwar = no
		exists = POR
	}
	random = no
	country = MND
	name = "EVENTNAME119000" #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.

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

	action_a = {
		name = "ACTIONNAME119000A" #Attack the invaders
		command = { type = war which = POR }
		command = { type = stability value = 1 }
		command = { type = trigger which = 260923 } #POR: Moro wars (II)
	}
	action_b = {
		name = "ACTIONNAME119000B" #Not now
		command = { type = vp value = -5 }
	}
}

#(1627-1737) Moro wars (III)
#by Fodoron
event = {
	id = 119998
	trigger = {
		event = 119999 #MND: Moro wars (II)
		atwar = no
		exists = POR
	}
	random = no
	country = MND
	name = "EVENTNAME119001" #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.

	date = { day = 0 month = january year = 1627 }
	offset = 100
	deathdate = { day = 0 month = january year = 1737 }

	action_a = {
		name = "ACTIONNAME119000A" #Attack the invaders
		command = { type = war which = POR }
		command = { type = stability value = 1 }
		command = { type = trigger which = 260922 } #POR: Moro wars (III)
	}
	action_b = {
		name = "ACTIONNAME119000B" #Not now
		command = { type = vp value = -5 }
	}
}

#-----------------------------------------------------------------------------------------------
#Brunei (BEI)

#(1578-1820) The loss of Palawan
#by Fodoron
event = {
	id = 126999
	trigger = {
		owned = { province = 694 data = -1 } #Palawan
		control = { province = 694 data = POR } #Palawan
		event = 260920 #POR: War on Islam at Philippines
	}
	random = no
	country = BEI
	name = "EVENTNAME126001" #The loss of Palawan
	desc = "EVENTHIST126001"
	#-#At the height of his power, the authority of the sultan of Brunei had been recognized at the island of Palawan in the Philippines. With the arrival of the Spaniards, these had started attacking the island, and installed themselves in the Northern part of the island. In 1578 Francisco de Sande invaded Brunei and conquered the capital after destroying the fleet, although he then had to leave due to a beriberi outbreak that decimated his army. The Spanish advances in Palawan over the next decades, and the lack of help from Brunei, ended the authority of the sultan there. In 1749, the sultanate of Brunei formally recognized what had been a fact for a long time, and ceded Palawan to Spain.

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

	action_a = {
		name = "ACTIONNAME126001A" #Damn Christians
		command = { type = cedeprovince which = POR value = 694 } #Palawan
		command = { type = stability value = -1 }
	}
}

#(1593-1613) Thai Threat
event = {
	id = 140999
	trigger = {
		OR = {
			owned = { province = 690 data = POR } #Luzon
			owned = { province = 691 data = POR } #Mindoro
		}
		NOT = { war = { country = CAM country = POR } }
		NOT = { exists = SPA }
		NOT = { event = 140008 } #CAM: Thai Threat
	}
	random = no
	country = CAM
	name = "EVENTNAME65132" #Thai Threat
	desc = "EVENTHIST140999"
	#-#Hard-pressed by the Thai, King Sattha surrounded himself with a personal guard of Portuguese mercenaries and asked the Portuguese governor of the Philippines for aid in 1593.

	date = { day = 1 month = april year = 1593 }
	offset = 20
	deathdate = { day = 18 month = june year = 1613 }

	action_a = {
		name = "ACTIONNAME140999A" #Ask for Portuguese aid
		command = { type = DIP which = 2 value = 12 }
		command = { type = trigger which = 260950 } #POR: Cambodia asks for aid
		command = { type = sleepevent which = 140008 } #CAM: Thai Threat
	}
	action_b = {
		name = "ACTIONNAME65132B" #We can fight the Thai ourselves
		command = { type = inf which = -1 value = 3000 }
		command = { type = stability value = -1 }
		command = { type = sleepevent which = 140008 } #CAM: Thai Threat
	}
}
#(1593-1613) Portuguese Intervention
event = {
	id = 140998 #triggered by POR_260950 A
	random = no
	country = CAM
	name = "EVENTNAME140998" #Portuguese Intervention
	desc = "EVENTHIST140998"
	#-#With Portuguese aid came concessions. The Khmer were forced to become a protectorate of Portugal.

	action_a = {
		name = "ACTIONNAME65133A" #We are powerless
		command = { type = stability value = -2 }
		command = { type = inf which = -1 value = 1000 } #Portuguese military help
	}
}
#(1593-1613) Portuguese Refusal
event = {
	id = 140997 #triggered by POR_260950 B
	random = no
	country = CAM
	name = "EVENTNAME140997" #Portuguese Refusal
	desc = "EVENTHIST140997"
	#-#The Portuguese refuse to send aid.

	action_a = {
		name = "ACTIONNAME65134A" #We're on our own
		command = { type = stability value = -2 }
		command = { type = desertion which = -1 value = 1000 }
	}
}

#(1593-1613) Lovek is captured
event = {
	id = 140996
	trigger = {
		NOT = { control = { province = 667 data = CAM } }
		event = 140999 #CAM: Thai Threat
	}
	random = no
	country = CAM
	name = "EVENTNAME65143" #Lovek is Captured
	desc = "EVENTHIST65135"
	#-#The Thai have dealt a fatal blow to Cambodian independence by capturing Lovek. With the posting of a Thai military governor in the city, a degree of foriegn political control was established over the Kingdom for the first time. Cambodian chronicles decribe the fall of Lovek as a catastrophe from which the nation never fully recovered.

	date = { day = 1 month = april year = 1593 }
	offset = 10
	deathdate = { day = 18 month = june year = 1613 }

	action_a = {
		name = "ACTIONNAME65135A" #We must submit to our new Thai masters
		command = { type = domestic which = centralization value = -2 }
		command = { type = population which = 667 value = -2000 } #Khmer
		command = { type = provincemanpower which = 667 value = -1 } #Khmer
		command = { type = provincetax which = 667 value = -1 } #Khmer
		command = { type = infra value = -250 }
		command = { type = trade value = -250 }
		command = { type = stability value = -3 }
		command = { type = treasury value = -300 }
		command = { type = breakvassal which = POR }
		command = { type = trigger which = 260880 } #POR: Lovek is Captured
	}
}

#-----------------------------------------------------------------------------------------------
#Incas (INC)

#(1529-1680) The loss of Cuzco
#by Captain Krunch modified by Crook, mnorrefeldt and Fodoron
event = {
	id = 191999
	trigger = {
		control = { province = 169 data = POR } #Cuzco
		NOT = { event = 191005 } #INC: The loss of Cuzco
	}
	random = no
	country = INC
	name = "EVENTNAME191005" #The loss of Cuzco
	desc = "EVENTHIST191005"
	#-#The army of general Apu Kizkiz was also easily routed, and the capital Cuzco 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.

	date = { day = 26 month = july year = 1529 }
	offset = 7
	deathdate = { day = 29 month = march year = 1680 }

	action_a = {
		name = "ACTIONNAME191005A" #We have lost our capital!
		command = { type = relation which = SPA value = 400 }
		command = { type = capital which = 1484 } #Manu
		command = { type = population which = 1484 value = 5000 } #Manu
		command = { type = fortress which = 169 value = -3 } #Cuzco
		command = { type = fortress which = 169 value = 1 } #Cuzco
		command = { type = cedeprovince which = POR value = 162 } #Cali
		command = { type = cedeprovince which = POR value = 164 } #Guayaquil
		command = { type = cedeprovince which = POR value = 163 } #Azuay
		command = { type = cedeprovince which = POR value = 165 } #Cajamarca
		command = { type = cedeprovince which = POR value = 1482 } #Montana
		command = { type = cedeprovince which = POR value = 166 } #Huanuco
		command = { type = cedeprovince which = POR value = 1483 } #Atalaya
		command = { type = cedeprovince which = POR value = 167 } #Ayacucho
		command = { type = cedeprovince which = POR value = 168 } #Lima
		command = { type = cedeprovince which = POR value = 169 } #Cuzco
		command = { type = cedeprovince which = POR value = 170 } #Arequipa
		command = { type = cedeprovince which = POR value = 171 } #Moquega
		command = { type = cedeprovince which = POR value = 172 } #Arica
		command = { type = cedeprovince which = POR value = 219 } #Tucuman
		command = { type = cedeprovince which = POR value = 173 } #Atacama
		command = { type = cedeprovince which = POR value = 174 } #Coquimbo
		command = { type = cedeprovince which = POR value = 194 } #Potosi
		command = { type = trigger which = 260940 } #POR: The capture of Cuzco
		command = { type = wakemonarch which = 063014 } #Manco
		command = { type = sleepevent which = 191005 } #INC: The loss of Cuzco
	}
}

#(1532) Date with destiny
#by Captain Krunch modified by Crook, mnorrefeldt and Fodoron
event = {
	id = 191998
	trigger = {
		leader = 0110871 #Late Pizarro still active
	}
	random = no
	country = INC
	name = "EVENTNAME191000" #Date with destiny
	desc = "EVENTHIST191000"
	#-#Pizarro first encountered the Inca army, 80,000 men strong, at Cajamarca. He realized that he was outmatched and devised a scheme to kidnap the emperor. He sent forth an embassy of twenty riders under the command of Hernando de Soto, to impress the Emperor Atahuallpa and to invite him to an interview at Cajamarca. Will the emperor accept his invitation?

	date = { day = 15 month = november year = 1532 }

	action_a = {
		name = "ACTIONNAME191000A" #Accept the invitation
		command = { type = DIP which = -2 value = 12 }
		command = { type = trigger which = 260939 } #POR: Santiago! Y a ellos!
	}
	action_b = {
		name = "ACTIONNAME191000B" #Meet under our own terms
		command = { type = DIP which = 1 value = 12 }
		command = { type = trigger which = 191997 } #INC: The Emperor's escort
	}
}
#(1532) The Emperor's escort
#by Fodoron
event = {
	id = 191997 #triggered by INC_191998 B
	random = no
	country = INC
	name = "EVENTNAME191001" #The Emperor's escort
	desc = "EVENTHIST191001"
	#-#Surrounded by a huge army and up against only a handful of Spaniards, the all powerful Emperor of the Inca had nothing to fear and so he went the next day to meet the bearded devils that had plundered his subjects. He went accompanied by 10,000 of his soldiers, but as a sign of confidence and lack of fear to the strangers he chose to have them unarmed.

	action_a = {
		name = "ACTIONNAME191001A" #Show confidence and go unarmed
		command = { type = relation which = POR value = 25 }
		command = { type = trigger which = 260939 } #POR: Santiago! Y a ellos!
	}
	action_b = {
		name = "ACTIONNAME191001B" #Show prudence and arm to the teeth
		command = { type = relation which = POR value = -25 }
		command = { type = trigger which = 191995 } #INC: Battle at Cajamarca
	}
}
#(1532) Atahuallpa's ransom
#by Fodoron
event = {
	id = 191996 #triggered by POR_260939
	random = no
	country = INC
	name = "EVENTNAME191003" #Atahuallpa's ransom
	desc = "EVENTHIST191003"
	#-#When Atahuallpa 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 = "ACTIONNAME191003A" #Give them all our gold
		command = { type = vp value = -50 }
		command = { type = treasury value = -1500 }
		command = { type = inflation value = -3 }
	}
}
#(1532) Battle at Cajamarca
#by Fodoron
event = {
	id = 191995 #triggered by INC_191997 B
	random = no
	country = INC
	name = "EVENTNAME191002" #Battle at Cajamarca
	desc = "EVENTHIST191002"
	#-#Atahuallpa's distrust was well founded. When he throw away the Bible from Friar Valverde and demanded compensation for the Spaniards plundering, they treacherously attacked him. Luckily his men were well armed and were a hundred to one. All the bearded devils were cut to pieces, but regretfully Atahuallpa was seriously wounded. Immediately, preparations were made to kill any stranger on sight.

	action_a = {
		name = "ACTIONNAME191002A" #War to the demons
		command = { type = war which = POR }
	}
}

#(1533) Death of Atahuallpa
#by Captain Krunch modified by Crook, mnorrefeldt and Fodoron
event = {
	id = 191994 #triggered by POR_260938
	random = no
	country = INC
	name = "EVENTNAME191004" #Death of Atahuallpa
	desc = "EVENTHIST191004"
	#-#Without the emperor to rule, the Inca Empire was in anarchy. As indians plundered the military warehouses, the entire military structure collapsed and most soldiers went home. The Spaniards defeated Inca general Ramiahui at Quito without much problem and approached the capital. Cuzco was evacuated. The Inca empire had disintegrated.

	action_a = {
		name = "ACTIONNAME191004A" #Our world has come to an end
		command = { type = sleepmonarch which = 063005 } #Atahuallpa
		command = { type = wakemonarch which = 063013 } #Tupac-Huallpa
		command = { type = stability value = -6 }
		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 = relation which = POR value = -400 }
		command = { type = domestic which = CENTRALIZATION value = -3 }
		command = { type = cedeprovince which = POR value = 162 } #Cali
		command = { type = cedeprovince which = POR value = 163 } #Azuay
		command = { type = cedeprovince which = POR value = 164 } #Guayaquil
		command = { type = cedeprovince which = POR value = 165 } #Cajamarca
		command = { type = cedeprovince which = POR value = 166 } #Huanaco
		command = { type = cedeprovince which = POR value = 167 } #Ayacucho
		command = { type = cedeprovince which = POR value = 168 } #Lima
		command = { type = cedeprovince which = POR value = 170 } #Arequipa
		command = { type = cedeprovince which = POR value = 187 } #Pastaza
		command = { type = cedeprovince which = POR value = 1482 } #Montana
		command = { type = cedeprovince which = POR value = 1483 } #Atalaya
		command = { type = stability value = -6 }
		command = { type = population which = 169 value = -40000 } #Cuzco
		command = { type = fortress which = 169 value = -2 } #Cuzco
	}
}

#(1536-1580) The Empire strikes back
#by Captain Krunch modified by Crook, mnorrefeldt and Fodoron
event = {
	id = 191993
	trigger = {
		event = 191994 #INC: Death of Atahuallpa
	}
	random = no
	country = INC
	name = "EVENTNAME191006" #The Empire strikes back
	desc = "EVENTHIST191993"
	#-#The new Emperor, Manco Inca, was in fact a prisoner in his own palace, humiliated by the Portuguese. As the atrocities against his people became known to Manco Inca, he began to develop a hatred for them. Hernando Pizarro eventually restored Manco Inca's freedom and dignity, but it was too late. Villac Umu counseled Manco Inca to send out secret orders to gather weapons and plant a lot of crops in preparation for war with the Portuguese. 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. Ultimately, however, hatred of the Incas among the natives was stronger than that of the Portuguese and many natives rallied to the Portuguese cause. But during this period, the Portuguese were very nearly driven into the sea...

	date = { day = 21 month = march year = 1536 }
	offset = 7
	deathdate = { day = 29 month = march year = 1580 }

	action_a = {
		name = "ACTIONNAME191006A" #Reclaim What Is Ours!
		command = { type = breakvassal which = POR }
		command = { type = war which = POR }
		command = { type = INF which = 1484 value = 20000 } #Manu
	}
	action_b = {
		name = "ACTIONNAME191993B" #The Portuguese And The Traitors Are Too Powerful
		command = { type = vp value = -20 }
		command = { type = relation which = POR value = 100 }
		command = { type = sleepevent which = 260935 } #POR: Appeal For Help
		command = { type = sleepevent which = 191990 } #INC: Cuzco Is Ours Once Again
		command = { type = sleepevent which = 191992 } #INC: Reclaim Lima
	}
}

#(1536-1820) Reclaim Lima
event = {
	id = 191992
	trigger = {
		owned = { province = 168 data = INC } #Lima
		event = 191993 #INC: The Empire Strikes Back
	}
	random = no
	country = INC
	name = "EVENTNAME81026" #Reclaim Lima
	desc = "EVENTHIST191992"
	#-#After recapturing Lima, the question was raised about what to do with the Portuguese foreigners who remained in Lima. Resentment of the Portuguese, and their atrocities against our people, makes simply killing them off a popular choice. But perhaps if we allow them to live, we can learn the secret of their advanced weaponry...

	date = { day = 21 month = march year = 1536 }
	offset = 10
	deathdate = { year = 1820 }

	action_a = {
		name = "ACTIONNAME81026A" #Kill The White Invaders!
		command = { type = population which = 168 value = -2000 } #Lima
		command = { type = provinceculture which = 168 value = andean } #Lima
		command = { type = provincereligion which = 168 value = pagan } #Lima
		command = { type = revolt which = 168 } #Lima
		command = { type = relation which = POR value = -50 }
		command = { type = stability value = 1 }
	}
	action_b = {
		name = "ACTIONNAME81026B" #They Can Stay, If They Adopt Our Ways
		command = { type = provinceculture which = 168 value = andean } #Lima
		command = { type = provincereligion which = 168 value = pagan } #Lima
		command = { type = provincetax which = 168 value = 1 } #Lima
		command = { type = land value = 500 }
		command = { type = infra value = 500 }
		command = { type = stability value = -2 }
	}
	action_c = {
		name = "ACTIONNAME81026C" #We Can Learn Much From Them If We Let Them Be
		command = { type = technology which = asian }
		command = { type = domestic which = innovative value = 2 }
		command = { type = relation which = POR value = 50 }
		command = { type = province_revoltrisk which = 168 value = -1 } #Lima
		command = { type = provincetax which = 168 value = 4 } #Lima
		command = { type = land value = 500 }
		command = { type = infra value = 500 }
		command = { type = stability value = -10 }
	}
}

#(1536-1580) The death of the last Inca
#by Fodoron
event = {
	id = 191991
	trigger = {
		event = 260935 #POR: Appeal for help
		control = { province = 192 data = POR } #Taqari
	}
	random = no
	country = INC
	name = "EVENTNAME191007" #The death of the last Inca
	desc = "EVENTHIST191991"
	#-#Manco Inca was killed by two Portuguese deserters who 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 Portugal.

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

	action_a = {
		name = "ACTIONNAME191007A" #We surrender (End Game)
		command = { type = vp value = -5 }
		command = { type = trigger which = 260933 } #POR: The Viceroyalty of Peru
	}
	action_b = {
		name = "ACTIONNAME191007B" #We fight until the bitter end
		command = { type = stability value = -3 }
	}
}
#(1540-1820) Cuzco Is Ours Once Again
event = {
	id = 191990
	trigger = {
		owned = { province = 169 data = INC } #Cuzco
		control = { province = 169 data = INC } #Cuzco
		event = 191993 #INC: The Empire Strikes Back
	}
	random = no
	country = INC
	name = "EVENTNAME81025" #Cuzco Is Ours Once Again
	desc = "EVENTHIST81025"
	#-#The siege of Sacsahuaman was difficult, so let us be certain that, we won't lose this great city ever again.

	date = { day = 1 month = april year = 1540 }
	offset = 10
	deathdate = { year = 1820 }

	action_a = {
		name = "ACTIONNAME81025A" #Reclaim The Capital
		command = { type = capital which = 169 } #Cuzco
		command = { type = stability value = 2 }
	}
	action_b = {
		name = "ACTIONNAME81025B" #I Prefer Vitcos As Capital
		command = { type = stability value = 1 }
	}
}

#-----------------------------------------------------------------------------------------------
#Order of St. John (KNI)

#(1523-1640) Portuguese help
#by Fodoron
event = {
	id = 201999 #triggered by POR_260913 A
	random = no
	country = KNI
	name = "EVENTNAME285127" #Spanish help
	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.

	action_a = {
		name = "ACTIONNAME201011A" #Not too late
		command = { type = treasury value = 50 }
		command = { type = INF which = 819 value = 10000 } #Malta
		command = { type = CAV which = 819 value = 4000 } #Malta
		command = { type = ART which = 819 value = 40 } #Malta
		command = { type = galleys which = 819 value = 10 } #Malta
		command = { type = relation which = POR value = 400 }
	}
}
#(1523-1640) Portugal refuses to help
#by Fodoron
event = {
	id = 201998 #triggered by POR_260913 B
	random = no
	country = KNI
	name = "EVENTNAME201012" #Spain refuses to help
	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.

	action_a = {
		name = "ACTIONNAME201012A" #To hell with them
		command = { type = relation which = POR value = -50 }
		command = { type = breakvassal which = POR } #no problem
	}
}

#-----------------------------------------------------------------------------------------------
#Tlemcen (TLE)

#(1535-1557) Between the Portuguese and the Ottomans (not vassal of Portugal)
#by Fodoron
event = {
	id = 332999
	trigger = {
		event = 260907 #POR: Portuguese hegemony in North Africa
		exists = TUR
		NOT = {
			event = 332998 #TLE: Between the Portuguese and the Ottomans
		}
		NOT = {
			event = 332002 #TLE: Between Spanish and Ottomans
		}
		NOT = {
			event = 332003 #TLE: Between Spanish and Ottomans
		}
		NOT = {
			vassal = { country = POR country = TLE }
			vassal = { country = TUR country = TLE }
		}
	}
	random = no
	country = TLE
	name = "EVENTNAME332999" #Between the Portuguese and the Ottomans
	desc = "EVENTHIST332999"
	#-#The confrontation between the Portuguese and the Sultan of the Ottomans reached Tlemcen at a delicate point, when dynastic fights were shaking the Zayyanids. The Conde de 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 Portuguese soldiers, was almost completely wiped out by the Banu Rashid tribe. However, probably because the Portuguese had taken Tunis, Sultan Muhammad agreed to pay tribute to Oran in exchange for Portuguese protection. The Zayyanid dynasty, weakened by the emergence of Al-Djazar, and the loss of Oran, and neighbour to a strong Morocco, was too weak to survive alone.

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

	action_a = {
		name = "ACTIONNAME332999A" #The Portuguese are the strongest
		command = { type = stability value = -1 }
		command = { type = relation which = POR value = 400 }
		command = { type = trigger which = 260906 } #POR: The first expedition of Alcaudete and the failure at Algiers
		command = { type = sleepevent which = 332998 } #TLE: Between the Portuguese and the Ottomans
		command = { type = sleepevent which = 332002 } #TLE: Between Spanish and Ottomans
		command = { type = sleepevent which = 332003 } #TLE: Between Spanish and Ottomans
	}
	action_b = {
		name = "ACTIONNAME332002B" #The Ottomans are the strongest
		command = { type = stability value = -1 }
		command = { type = relation which = TUR value = 400 }
		command = { type = trigger which = 301042 } #TUR: Tlemcen submits to the Ottoman Empire
		command = { type = sleepevent which = 332998 } #TLE: Between the Portuguese and the Ottomans
		command = { type = sleepevent which = 332002 } #TLE: Between Spanish and Ottomans
		command = { type = sleepevent which = 332003 } #TLE: Between Spanish and Ottomans
	}
}
#(1535-1557) Between the Portuguese and the Ottomans (vassal of Portugal)
#by Fodoron
event = {
	id = 332998
	trigger = {
		event = 260907 #POR: Portuguese hegemony in North Africa
		exists = TUR
		vassal = { country = POR country = TLE }
		NOT = {
			event = 332999 #TLE: Between the Portuguese and the Ottomans
		}
		NOT = {
			event = 332002 #TLE: Between Spanish and Ottomans
		}
		NOT = {
			event = 332003 #TLE: Between Spanish and Ottomans
		}
	}
	random = no
	country = TLE
	name = "EVENTNAME332999" #Between the Portuguese and the Ottomans
	desc = "EVENTHIST332999"
	#-#The confrontation between the Portuguese and the Sultan of the Ottomans reached Tlemcen at a delicate point, when dynastic fights were shaking the Zayyanids. The Conde de 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 Portuguese soldiers, was almost completely wiped out by the Banu Rashid tribe. However, probably because the Portuguese had taken Tunis, Sultan Muhammad agreed to pay tribute to Oran in exchange for Portuguese protection. The Zayyanid dynasty, weakened by the emergence of Al-Djazar, and the loss of Oran, and neighbour to a strong Morocco, was too weak to survive alone.

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

	action_a = {
		name = "ACTIONNAME332999A" #The Portuguese are the strongest
		command = { type = stability value = -1 }
		command = { type = relation which = POR value = 400 }
		command = { type = trigger which = 260905 } #POR: The first expedition of Alcaudete and the failure at Algiers
		command = { type = sleepevent which = 332999 } #TLE: Between the Portuguese and the Ottomans
		command = { type = sleepevent which = 332002 } #TLE: Between Spanish and Ottomans
		command = { type = sleepevent which = 332003 } #TLE: Between Spanish and Ottomans
	}
	action_b = {
		name = "ACTIONNAME332002B" #The Ottomans are the strongest
		command = { type = breakvassal which = POR }
		command = { type = relation which = TUR value = 400 }
		command = { type = trigger which = 301042 } #TUR: Tlemcen submits to the Ottoman Empire
		command = { type = sleepevent which = 332999 } #TLE: Between the Portuguese and the Ottomans
		command = { type = sleepevent which = 332002 } #TLE: Between Spanish and Ottomans
		command = { type = sleepevent which = 332003 } #TLE: Between Spanish and Ottomans
	}
}

#-----------------------------------------------------------------------------------------------
#Zapotecs (ZAP)

#(1419-1600) The Zapotecs ally with Portugal
event = {
	id = 334999
	trigger = {
		war = { country = POR country = AZT }
		NOT = { relation = { country = AZT data = -100 } }
		war = { country = ZAP country = AZT }
		OR = {
			owned = { province = 29 data = -1 }
			owned = { province = 29 data = POR }
		}
		NOT = { war = { country = ZAP country = POR } }
		NOT = { event = 82002 } #ZAP: The Alliance with Spain
	}
	random = no
	country = ZAP
	name = "EVENTNAME334999" #The Alliance with Portugal
	desc = "EVENTHIST334999"
	#-#The Portuguese wish to aid us against our enemies. All we must do is grant them a base from which to operate, and swear fealty to their King -- whatever that might mean.

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

	action_a = {
		name = "ACTIONNAME82002A" #Let us crush our enemies together
		command = { type = cedeprovince which = POR value = 29 } #Tlaxcala
		command = { type = religion which = catholic }
		command = { type = stability value = 2 }
		command = { type = trigger which = 260968 } #POR: The Zapotecs become our clients
		command = { type = sleepevent which = 82002 } #ZAP: The Alliance with Spain
	}
	action_b = {
		name = "ACTIONNAME82002B" #Are you mad? The foreigners are more dangerous than any of our neighbors
		command = { type = stability value = -1 }
		command = { type = sleepevent which = 82002 } #ZAP: The Alliance with Spain
	}
}

#(1419-1600) The Fall of Atlixco
event = {
	id = 334998
	trigger = {
		control = { province = 30 data = POR }
		NOT = { event = 82007 } #ZAP: The Fall of Atlixco
	}
	random = no
	country = ZAP
	name = "EVENTNAME82007" #The Fall of Atlixco
	desc = "EVENTHIST82007"
	#-#The foreign invaders have taken our capital. Our soldiers cannot withstand their magical weapons! What will we do?

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

	action_a = {
		name = "ACTIONNAME82007A" #Reject Christianity and be burned at the stake (End Game)
		command = { }
		command = { type = trigger which = 260978 } #POR: The Conquest of the Zapotecs
		command = { type = sleepevent which = 82007 } #ZAP: The Fall of Atlixco
	}
	action_b = {
		name = "ACTIONNAME82007B" #Escape disguised as a scullery maid
		command = { type = stability value = -2 }
		command = { type = manpower value = -10 }
		command = { type = treasury value = -1000 }
		command = { type = sleepevent which = 82007 } #ZAP: The Fall of Atlixco
	}
}

#-----------------------------------------------------------------------------------------------
#Castilian victory
#-----------------------------------------------------------------------------------------------

#(1475-1479) Castilian total victory
event = {
	id = 142998
	trigger = {
		control = { province = 434 data = -1 } #Porto
		control = { province = 441 data = -1 } #Tago
		control = { province = 442 data = -1 } #Algarve
	}
	random = no
	country = CAS
	name = "EVENTNAME142998" #Castilian total victory
	desc = "EVENTHIST142998"
	#-#After her complete victory over Alfonso, Isabel can claim the crown of Portugal. As heir to the Visigothic Kingdom, reborn in the mountains of Asturias after the Arab invasion, she thinks she is entitled to it. However, as the daughter of a Portuguese noblewoman and a firm believer in the diplomacy of royal marriages, she is prepared to be generous with Joao, the son of Alfonso and real ruler of Portugal in the last years of his father.

	date = { day = 1 month = june year = 1475 }
	offset = 15
	deathdate = { day = 29 month = august year = 1479 }

	action_a = {
		name = "ACTIONNAME142998A" #Be generous #Gain a vassal
		command = { type = vassal which = POR }
		command = { type = relation which = POR value = 200 }
		command = { type = dynastic which = POR }
	}
	action_b = {
		name = "ACTIONNAME142998B" #Take it all #Gain a crown
		command = { type = inherit which = POR }
		command = { type = add_countryculture which = portuguese }
		command = { type = domestic which = centralization value = -1 }
		command = { type = addcore which = 434 } #Oporto
		command = { type = addcore which = 441 } #Tago
		command = { type = addcore which = 442 } #Algarve
		command = { type = addcore which = 823 } #The Azores
	}
}

#(1482-1660) Settlement of El Mina (Spanish version)
event = {
	id = 285997
	trigger = {
		owned = { province = 795 data = -1 } #Leone
		control = { province = 795 data = -1 }
		provincereligion = { province = 795 data = catholic }
		event = 142998 #CAS: Castilian total victory
		NOT = { event = 260998 } #POR: Portuguese total victory
		NOT = { event = 260048 } #POR: Settlement of El Mina
	}
	random = no
	country = SPA
	name = "EVENTNAME260048" #Settlement of El Mina
	desc = "EVENTHIST285997"
	#-#The Castilians had long been jealous of the profits that the Portuguese had extracted from West Africa and were determined to take advantage themselves as soon as they could. In 1481 Isabel and Fernando held a meeting with their council to decide whether or not to build a fort on the Mina coast to secure the trade of gold in this region.

	date = { day = 1 month = january year = 1482 }
	offset = 60
	deathdate = { day = 1 month = january year = 1660 }

	action_a = {
		name = "ACTIONNAME260048A" #Build the fort
		command = { type = population which = 795 value = 300 } #Leone
		command = { type = wakeleader which = 0127911 } #Diogo da Azambuja (SPA)
		command = { type = treasury value = -10 }
		command = { type = fortress which = 795 value = 1 } #Leone
		command = { type = trade value = 150 }
		command = { type = mine which = 795 value = 20 } #Leone
	}
	action_b = {
		name = "ACTIONNAME260048B" #We have more pressing issues at the moment
		command = { type = merchants value = 6 }
		command = { type = infra value = 100 }
		command = { type = land value = 100 }
	}
}

#-----------------------------------------------------------------------------------------------
#Drake's Privateering Sequence
#modified by sturmvogel

#(1570-1577) Elizabeth's Support of the Privateering of Sir Francis Drake
event = {
	id = 164994
	trigger = {
		exists = POR
		NOT = {
			alliance = { country = ENG country = POR }
			vassal = { country = ENG country = POR }
			vassal = { country = POR country = ENG }
		}
		OR = {
			NOT = { religion = catholic }
			war = { country = ENG country = POR }
		}
		OR = {
			owned = { province = 24 data = POR }
			owned = { province = 25 data = POR }
			owned = { province = 26 data = POR }
			owned = { province = 27 data = POR }
			owned = { province = 159 data = POR }
			owned = { province = 163 data = POR }
			owned = { province = 167 data = POR }
			owned = { province = 169 data = POR }
			owned = { province = 180 data = POR }
			owned = { province = 194 data = POR }
			owned = { province = 195 data = POR }
			owned = { province = 219 data = POR }
		}
		OR = {
			event = 260998 #Portuguese total victory
			event = 260979 #Inherit Aragon
		}
	}
	random = no
	country = ENG
	name = "EVENTNAME21037" #Elizabeth's Support for the Privateering of Sir Francis Drake
	desc = "EVENTHIST21037"
	#-#As England and Spain became rivals, England turned to privateering as a means of damaging Spain. The most prominent among these privateers was Sir Francis Drake. England can choose to support his privateering adventures, balancing occasional infusions of cash from plundered Spanish galleons with earning the enmity of Spain. On the other hand, England can employ Drake as an explorer instead.

	date = { day = 1 month = january year = 1570 }
	offset = 30
	deathdate = { day = 29 month = december year = 1577 }

	action_a = {
		name = "ACTIONNAME21037A" #Employ Drake as a Privateer
		command = { type = wakeleader which = 046331 } #Drake (ENG)
		command = { type = trigger which = 260870 } #POR: English Privateering
		command = { type = relation which = POR value = -50 }
	}
	action_b = {
		name = "ACTIONNAME21037B" #Employ Drake as an Explorer
		command = { type = wakeleader which = 046330 } #Drake (ENG)
		command = { type = sleepevent which = 164993 } #ENG: The Panamanian Silver Train
		command = { type = sleepevent which = 164992 } #ENG: Drake's Circumnavigation
		command = { type = sleepevent which = 164991 } #ENG: Drake's Triumphs
	}
}
#(1573) The Panamanian Silver Train
event = {
	id = 164993
	trigger = { event = 164994 }
	random = no
	country = ENG
	name = "EVENTNAME21039" #The Panamanian Silver Train
	desc = "EVENTHIST21039"
	#-#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. In a stunning coup, they captured a large mule train laden with gold and silver inbound to Nombre de Dios, and gained an incredible amount of treasure.

	date = { day = 9 month = august year = 1573 }

	action_a = {
		name = "ACTIONNAME21039A" #Plunder? What Plunder?
		command = { type = treasury value = 200 }
		command = { type = trigger which = 260869 } #POR: Drake Strikes the Panamanian Silver Train
	}
}
#(1580) Drake's Circumnavigation
event = {
	id = 164992
	trigger = { event = 164994 }
	random = no
	country = ENG
	name = "EVENTNAME21041" #Drake's Circumnavigation
	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.

	date = { day = 28 month = september year = 1580 }

	action_a = {
		name = "ACTIONNAME21039A" #Plunder? What Plunder?
		command = { type = treasury value = 250 }
		command = { type = trigger which = 260868 } #POR: Drake in the Pacific
	}
}
#(1586) Drake's Triumphs
event = {
	id = 164991
	trigger = { event = 164994 }
	random = no
	country = ENG
	name = "EVENTNAME21043" #Drake's Triumphs
	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.

	date = { day = 1 month = july year = 1586 }

	action_a = {
		name = "ACTIONNAME21039A" #Plunder? What Plunder?
		command = { type = treasury value = 300 }
		command = { type = trigger which = 260867 } #POR: Drake Strikes in Spain and the Americas
	}
}
#-----------------------------------------------------------------------------------------------
#(1570) English Privateering
event = {
	id = 260870 #triggered by ENG_164994 A
	random = no
	country = POR
	name = "EVENTNAME21038" #English Privateering
	desc = "EVENTHIST260870"
	#-#In the later 1500s, English privateering became a serious thorn in the side of the Portuguese, diverting significant attention from the problems with the Dutch rebels and denying the Portuguese 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 = 260869 #triggered by ENG_164993
	random = no
	country = POR
	name = "EVENTNAME21040" #Drake Strikes the Panamanian Silver Train
	desc = "EVENTHIST260869"
	#-#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 = 260868 #triggered by ENG_164992
	random = no
	country = POR
	name = "EVENTNAME21042" #Drake in the Pacific
	desc = "EVENTHIST260868"
	#-#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 Portuguese 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 = 260867 #triggered by ENG_164991
	random = no
	country = POR
	name = "EVENTNAME21044" #Drake Strikes in Spain and the Americas
	desc = "EVENTHIST260867"
	#-#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 Portugal. 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
#-----------------------------------------------------------------------------------------------

#First free id - ARG: 111998
#First free id - MND: 119997
#First free id - AZT: 121997
#First free id - BEI: 126998
#First free id - CAM: 140995
#First free id - CAS: 142997
#First free id - ENG: see AGCEEP_HYWvictory_England.txt
#First free id - INC: 191989
#First free id - KNI: 201989
#First free id - POR: 260862
#First free id - SPA: 285996
#First free id - TLE: 332997
#First free id - ZAP: 334997

