#Portugal (POR)

#See AGCEEP_Alt_Iberia.txt for Alternative events

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

#(1419-1433) The Social Revolution of Joo I
event = {
	id = 3265
	random = no
	country = POR
	name = "EVENTNAME3265" #The Social Revolution of Joo I
	desc = "EVENTHIST3265"
	#-#Joo I was chosen by the people to rule in Portugal in 1385. He was also much loved throughout his reign and made a lot of changes to the benefit of both the people and to strengthen the Portuguese trade as well as ability to explore the new world. Of course there were powerful noblemen not happy about these changes since it meant losing some of the power they had before.

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

	action_a = {
		name = "ACTIONNAME3265A" #Support the King
		command = { type = domestic which = centralization value = 3 }
		command = { type = domestic which = ARISTOCRACY value = -2 }
		command = { type = domestic which = SERFDOM value = -1 }
		command = { type = trade value = 250 }
		command = { type = revoltrisk value = 3 }
	}
	action_b = {
		name = "ACTIONNAME3265B" #Support the Aristocracy
		command = { type = domestic which = ARISTOCRACY value = 1 }
		command = { type = domestic which = QUALITY value = 1 }
		command = { type = land value = 250 }
	}
}

#(1419-1420) Enrique the Navigator
event = {
	id = 18001
	random = no
	country = POR
	name = "EVENTNAME18001" #Enrique the Navigator
	desc = "EVENTHIST18001"
	#-#The Infante Dom Henrique left court and went to Sagres, Portugal's Lands End. This place, a promontory on the edge of the open ocean, had an otherworldly reputation, and had been called the Sacred Promontory by Marinus and Ptolomy (from which the name Sagres derives). Prince Henry made his base for sea exploration, making it a centre for cartography, navigation and shipbuilding. The Catalan Jew from Majorca, Jehuda Cresques, son of the cartographer Abraham Cresques, was brought to Sagres to supervise the collation of geographic facts brought back by Henry's explorers, who were encouraged and later required to keep detailed logs of their voyages. Muslims and Arabs, Italians from Genoa and Venice, Germans and Scandinavians came to Sagres. This community developed navigational instruments such as the quadrant, and new mathematical tables to aid in determining latitude. The local port of Lagos saw the development of a new type of ship, the caravel.

	date = { day = 9 month = january year = 1419 }
	offset = 100
	deathdate = { day = 9 month = january year = 1420 }

	action_a = {
		name = "ACTIONNAME18001A" #Fund Enrique
		command = { type = treasury value = -200 }
		command = { type = naval value = 800 }
		command = { type = gainmanufactory which = 442 value = navalequipment } #Algarve
	}
	action_b = {
		name = "ACTIONNAME18001B" #Invest in Known Trade Routes
		command = { type = treasury value = -200 }
		command = { type = gainmanufactory which = 434 value = refinery } #Oporto
		command = { type = trade value = 800 }
		command = { type = domestic which = MERCANTILISM value = 2 }
		command = { type = merchants value = 6 }
	}
	action_c = {
		name = "ACTIONNAME18001C" #Back the Reconquista
		command = { type = treasury value = -200 }
		command = { type = land value = 500 }
		command = { type = infra value = 250 }
		command = { type = domestic which = land value = 2 }
		command = { type = domestic which = offensive value = 1 }
		command = { type = domestic which = quality value = 1 }
		command = { type = INF which = -1 value = 5000 }
		command = { type = CAV which = -3 value = 1000 }
	}
}

#(1432) Cape Bojador
event = {
	id = 18002
	trigger = {
		NOT = {
			domestic = { type = land value = 4 }
		}
	}
	random = no
	country = POR
	name = "EVENTNAME18002" #Cape Bojador
	desc = "EVENTHIST18002"
	#-#Cape Bojador, located south of the Canaries, was previously thought to have water too shallow, and currents too strong for ships to navigate. It was also a popular belief that the sun was too hot to support life south of the cape. Many regarded it as the edge of the world. At the urging of Prince Henry, one of his captains, Gil Eannes, finally passed Cape Bojador in 1434. Further improvements in Caravel design also promoted the exploration of the African Coast. Henceforth, a series of expedtions in Portuguese caravels sailed south with the red Templar cross emblazoned upon their sails, bringing back ivory, gold, slaves, and other strange flora and fauna to Lisbon.

	date = { day = 25 month = december year = 1432 }

	action_a = {
		name = "ACTIONNAME18002A" #Explore African Coast
		command = { type = wakeleader which = 0110801 } #Gil Eanes (POR)
		command = { type = naval value = 250 }
		command = { type = treasury value = -25 }
	}
}

#-----------------------------------------------------------------------------------------------
#Papal Mediation in the Canaries Sequence
#by Archeolooginspe
#modified by Isaac Brock - further modified by Fodoron

#(1433) Papal Mediation in the Canaries, by Archeolooginspe modified by Isaac Brock
event = {
	id = 260000 #triggered by CAS_142000 B
	random = no
	country = POR
	name = "EVENTNAME260000" #The Pope supports Portuguese expansion
	desc = "EVENTHIST251001"
	#-#The claim to the Canary Islands was disputed for a very long time. Portugal argued that they were closer to their coasts, while Castile argued that they belonged to the diocese of Tingitania (Morocco) and were therefore part of the Visigothic Kingdom to which they were entitled, and both monarchs contested the decision of Pope Clement VI to give the islands to Luis de la Cerda, a Spanish nobleman, in 1344. But their hostile natives prevented any settlement, and nothing was done until French noblemen Jean de Bethencourt disembarks in Lanzarote in 1402. Being succesful in the conquest of the island, he travelled the next year to Castile, and obtained from Enrique III the concession for the conquest of the islands in his name. He managed to conquer another three islands. But the three bigger islands could not be conquered, as resistance from the natives, of pre-islamic Berber origen, was strong. With the African explorations of Don Henrique, the Canary islands constituted a convenient base, and Henrique sent two expeditions, in 1424 and 1427, that failed due to native resistance and lack of supplies. When Duarte became King in 1433, he activated his diplomacy, and was granted by Pope Eugenius IV, the right to Christianize the islands that remained pagan, given the success of Portugal against the North African Muslims.

	action_a = {
		name = "ACTIONNAME260000A" #We now have a right to the Canary islands
		command = { type = addcore which = 817 } #The Canary Islands
		command = { type = stability value = 1 }
	}
}
#(1433) Papal Mediation in the Canaries, by Archeolooginspe modified by Isaac Brock
event = {
	id = 260001 #triggered by PAP_251001 B / MUS_236003 B
	random = no
	country = POR
	name = "EVENTNAME260001" #The Pope decides against Portuguese request
	desc = "EVENTHIST251001"
	#-#The claim to the Canary Islands was disputed for a very long time. Portugal argued that they were closer to their coasts, while Castile argued that they belonged to the diocese of Tingitania (Morocco) and were therefore part of the Visigothic Kingdom to which they were entitled, and both monarchs contested the decision of Pope Clement VI to give the islands to Luis de la Cerda, a Spanish nobleman, in 1344. But their hostile natives prevented any settlement, and nothing was done until French noblemen Jean de Bethencourt disembarks in Lanzarote in 1402. Being succesful in the conquest of the island, he travelled the next year to Castile, and obtained from Enrique III the concession for the conquest of the islands in his name. He managed to conquer another three islands. But the three bigger islands could not be conquered, as resistance from the natives, of pre-islamic Berber origen, was strong. With the African explorations of Don Henrique, the Canary islands constituted a convenient base, and Henrique sent two expeditions, in 1424 and 1427, that failed due to native resistance and lack of supplies. When Duarte became King in 1433, he activated his diplomacy, and was granted by Pope Eugenius IV, the right to Christianize the islands that remained pagan, given the success of Portugal against the North African Muslims.

	action_a = {
		name = "ACTIONNAME260001A" #We accept the Pope's rejection of our claim to the Canary islands
		command = { type = relation which = CAS value = 50 }
	}
	action_b = {
		name = "ACTIONNAME260001B" #We don't care what the Pope says, we still need those islands
		command = { type = relation which = PAP value = -25 }
		command = { type = relation which = CAS value = -25 }
		command = { type = stability value = -1 }
		command = { type = casusbelli which = CAS value = 24 } #African competition
		command = { type = trigger which = 142001 } #CAS: The Portuguese press their claim despite papal rejection
	}
}
#(1436) Reconsider the Canarian case
event = {
	id = 260002 #triggered by PAP_251002 A / MUS_236004 A
	random = no
	country = POR
	name = "EVENTNAME260002" #The Pope has been convinced to decide against Portugal
	desc = "EVENTHIST251002"
	#-#When Juan II of Castile found out that the Pope had given Duarte of Portugal the right to conquer some of the Canary islands, he sent his best ambassador, Alonso de Cartagena, to try to revert the decision. Curiously, the main argument used by Alonso was not that those islands were part of a group already half conquered by Castile, but that the right of Castile to the islands had the same basis that the right the monarchs of Castile had over their Kingdom, that they inherited from the Visigoth Kings, and these from the Roman Emperors. The argument must have been a good one, because Eugenius IV, knee deep in his problems with the Council of Basel, reversed his previous decision and published a bull in 1436 recognizing the rights of Castile to all the islands and exhorting Portugal to not enter a war with Castile over them. There would still be a couple of failed attempts at their conquest by the Portuguese in 1448 and 1455, but with the finding of better islands in the coast of Africa to act as bases, the interest for the Canary islands decayed. Meanwhile the Castilians were advancing all the time in their settlement, and finally between 1477 and 1496 the Catholic King's armies fully conquered the remaining islands.

	action_a = {
		name = "ACTIONNAME260001A" #We accept the Pope's rejection of our claim to the Canary islands
		command = { type = removecore which = 817 } #The Canary Islands
		command = { type = trigger which = 142002 } #CAS: The Pope has been gained to our cause
	}
	action_b = {
		name = "ACTIONNAME260001B" #We don't care what the Pope says, we still need those islands
		command = { type = removecore which = 817 } #The Canary Islands
		command = { type = relation which = PAP value = -25 }
		command = { type = relation which = CAS value = -25 }
		command = { type = stability value = -1 }
		command = { type = casusbelli which = CAS value = 24 } #African competition
		command = { type = trigger which = 142002 } #CAS: The Pope has been gained to our cause
	}
}
#End of Papal Mediation in the Canaries Sequence
#-----------------------------------------------------------------------------------------------

#(1437) Expedition to Tangiers
#Idea: Baston - Scripting by Annibale
event = {
	id = 18005
	trigger = {
		exists = MOR
		NOT = { owned = { province = 732 data = -1 } } #Tangiers
	}
	random = no
	country = POR
	name = "EVENTNAME18005" #Expedition to Tangiers
	desc = "EVENTHIST18005"
	#-#King Duarte, Joo's successor and Henry's older brother, had petitioned Rome to have their youngest brother, Ferno, named master of Avis, which was granted by Pope Eugenius IV, by the bull 'Sincere devotionis' dated 9 September 1434. In 1437 Portugal sent an expedition against Tangier, led by Henry. The expedition failed, due largely to mistakes by Henry, and his youngest brother Ferno, the master of Avis, was captured. He was imprisoned in bad conditions, held hostage for the return of Ceuta to the Muslims. For eleven years the Portuguese debated whether or not to give up Ceuta, until in 1448 Dom Ferno died in captivity. Henry's brother Duarte died shortly after the Tangier expedition, leaving his six year old son Afonso as the King. There was a fight over the regency between Duarte's widow and Henry's brother D. Pedro which Pedro eventually won.

	date = { day = 1 month = january year = 1437 }
	offset = 360
	deathdate = { day = 1 month = january year = 1438 }

	action_a = {
		name = "ACTIONNAME18005A" #Send Expedition
		command = { type = casusbelli which = MOR value = 60 }
		command = { type = addcore_claim which = 732 } #Tangiers
		command = { type = stability value = -1 }
		command = { type = trade value = -250 }
		command = { type = naval value = -250 }
	}
	action_b = {
		name = "ACTIONNAME18005B" #No, Save Our Money
		command = { type = stability value = 1 }
		command = { type = trade value = 250 }
		command = { type = naval value = 250 }
		command = { type = relation which = MOR value = 35 }
	}
}

#(1439-1441) The Regency of Pedro, Duke of Coimbra
event = {
	id = 260039
	random = no
	country = POR
	name = "EVENTNAME260039" #The Regency of Pedro, Duke of Coimbra
	desc = "EVENTHIST260039"
	#-#Afonso V was only six years old when he succeeded his father in 1438. During his minority, Afonso V was placed under the regency of his mother in accordance to the will of his father. As both a foreigner and a woman, the Queen was not a popular choice for regent. Opposition rose and the Queen's only ally was Afonso, the illegitimate half brother of Duarte I and Count of Barcelos. In the following year, the Cortes (assembly of the Kingdom) decided to replace the Queen with Pedro, Duke of Coimbra, the young King's oldest uncle. His main priority was to continue the policy of his brother and father to weaken the great noble houses and concentrate power in the hands of the King. The country prospered under his rule, but not peacefully, as his laws interfered with the ambition of powerful nobles.

	date = { day = 1 month = january year = 1439 }
	offset = 360
	deathdate = { day = 1 month = january year = 1441 }

	action_a = {
		name = "ACTIONNAME260039A" #Appoint the Duke Regent
		command = { type = revoltrisk which = 100 value = 1 }
		command = { type = ADM which = 2 value = 100 }
		command = { type = domestic which = centralization value = 1 }
		command = { type = stability value = 1 }
	}
	action_b = {
		name = "ACTIONNAME260039B" #Leave the Queen as Regent
		command = { type = domestic which = centralization value = -1 }
		command = { type = domestic which = ARISTOCRACY value = 1 }
		command = { type = stability value = -1 }
	}
}

#(1441) Henry's Captains
#Idea: Baston - Scripting by Annibale
event = {
	id = 18003
	trigger = {
		NOT = { domestic = { type = land value = 5 } }
	}
	random = no
	country = POR
	name = "EVENTNAME18003" #Henry's Captains
	desc = "EVENTHIST18003"
	#-#The Infante Dom Enrique, commonly called 'the Navigator', commissioned a number of expeditions to map the African coastline. These were often shortlived as explorers faced a variety of dangers, including storms, tides, currents, shipwrecks, tropical fevers, and the poisoned darts of sometimes hostile natives.

	date = { day = 3 month = january year = 1441 }

	action_a = {
		name = "ACTIONNAME18003A" #Explore African Coast
		command = { type = wakeleader which = 0110832 } #Dinis Dias (POR)
		command = { type = wakeleader which = 0110834 } #lvaro Fernandes (POR)
	}
}

#(1446-1481) The Afonsine Ordinances
event = {
	id = 3266
	random = no
	country = POR
	name = "EVENTNAME3266" #The Afonsine Ordinances
	desc = "EVENTHIST3266"
	#-#For most of the history of the Portuguese colonial Empire the salary for officials was only a token sum. However it was assumed that any important position would allow for the person appointed to gain huge personal wealth. It was two sides of the same coin. On one side, the King didn't have to pay high salaries, but on the other hand large parts of the profits stayed in the hands of the officials who were generally nobles.

	date = { day = 1 month = january year = 1446 }
	offset = 60
	deathdate = { day = 1 month = january year = 1481 }

	action_a = {
		name = "ACTIONNAME3266A" #Every man makes his own fortune
		command = { type = domestic which = centralization value = -2 }
		command = { type = domestic which = ARISTOCRACY value = 1 }
		command = { type = stability value = 2 }
	}
	action_b = {
		name = "ACTIONNAME3266B" #Demand less corruption
		command = { type = domestic which = centralization value = 2 }
		command = { type = revoltrisk value = 5 }
		command = { type = stability value = -2 }
		command = { type = provincetax which = -1 value = 1 }
		command = { type = provincetax which = -1 value = 1 }
	}
}

#(1448-1451) The Duke of Coimbra
event = {
	id = 3267
	random = no
	country = POR
	name = "EVENTNAME3267" #The Duke of Coimbra
	desc = "EVENTHIST3267"
	#-#King Afonso was only 6 years old when he became King of Portugal. For the first 8 years of his reign (1438-46) the country was ruled well by the Duke of Coimbra in his place. However, after Dom Afonso had ascended the throne as was customary at the age of 14, scheming noblemen at the court managed to cast doubts in the young King's mind about the intentions of the duke. The Duke was sent away from the King, but later decided to return to his side and help him rule the country. The Duke, not wanting to leave anything to chance and in fear of his conspiring enemies at the court, made the bad decision to approach the King accompanied by a force of several dozen soldiers for his own protection. The conspirators however managed to convince the King that his old beloved friend was now trying to start a rebellion against him. The King thus sent out an army to engage the enemy before he arrived. There was no real battle, but the Duke of Coimbra was killed never the less.

	date = { day = 1 month = january year = 1448 }
	offset = 60
	deathdate = { day = 1 month = january year = 1450 }

	action_a = {
		name = "ACTIONNAME3267A" #King is tricked
		command = { type = domestic which = centralization value = -1 }
		command = { type = domestic which = ARISTOCRACY value = 2 }
		command = { type = domestic which = SERFDOM value = 1 }
		command = { type = stability value = 1 }
	}
	action_b = {
		name = "ACTIONNAME3267B" #The Duke survives and assists the King
		command = { type = domestic which = centralization value = 1 }
		command = { type = domestic which = ARISTOCRACY value = -1 }
		command = { type = domestic which = SERFDOM value = -1 }
		command = { type = stability value = -1 }
	}
}

#(1450) Discovery of Cape Verde
event = {
	id = 260156
	trigger = {
		event = 18002 #POR: Cape Bojador
		NOT = {
			core = { province = 818 data = -1 } #Cape Verde
		}
		OR = {
			discovered = 818 #Cape Verde
			discovered = 1121 #Cape Verde Islands
		}
	}
	random = no
	country = POR
	name = "EVENTNAME260156" #Cape Verde
	desc = "EVENTHIST260156"
	#-#In 1456, Alvise da Mosto discovered some of the islands. In the next decade, Diogo Dias and Antnio Noli, captains in the service of Prince Henry the Navigator, discovered the remaining islands of the archipelago.

	date = { day = 1 month = january year = 1450 }
	offset = 90
	deathdate = { day = 29 month = december year = 1600 }

	action_a = {
		name = "ACTIONNAME260156A" #New islands!
		command = { type = addcore which = 818 } #Cape Verde
	}
}

#(1450) Henry's Captains
event = {
	id = 18101
	trigger = {
		NOT = {
			domestic = { type = land value = 5 }
		}
	}
	random = no
	country = POR
	name = "EVENTNAME18003" #Henry's Captains
	desc = "EVENTHIST18003"
	#-#The Infante Dom Enrique 'the Navigator' commissioned a number of expeditions to map the African coastline. These were often shortlived as explorers faced a variety of dangers, including storms, tides, currents, shipwrecks, tropical fevers, and the poisoned darts of sometimes hostile natives.

	date = { day = 24 month = december year = 1450 }

	action_a = {
		name = "ACTIONNAME18003A" #Explore African Coast
		command = { type = wakeleader which = 0110835 } #Diogo Gomes (POR)
		command = { type = wakeleader which = 0110836 } #Alvise da Mosto (POR)
		command = { type = wakeleader which = 0110838 } #Pedro de Sintra (POR)
	}
}

#(1452-1490) Sugar in Azores
event = {
	id = 18026
	trigger = {
		owned = { province = 823 data = -1 } #The Azores
		control = { province = 823 data = -1 }
	}
	random = no
	country = POR
	name = "EVENTNAME18026" #Sugar in Azores
	desc = "EVENTHIST18026"
	#-#In 1452 the first water-powered sugar mill was constructed in Azores, being a first example of industrial production of this highly addictive substance.

	date = { day = 1 month = january year = 1452 }
	offset = 25
	deathdate = { day = 1 month = january year = 1490 }

	action_a = {
		name = "ACTIONNAME18026A" #Build it
		command = { type = treasury value = -300 }
		command = { type = provincetax which = 823 value = 1 } #The Azores
		command = { type = population which = 823 value = 300 }
		command = { type = gainmanufactory which = 823 value = refinery }
	}
	action_b = {
		name = "ACTIONNAME18026B" #Too expensive
		command = { type = vp value = -5 }
	}
}

#(1455-1475) Afonso V's Expeditions to North Africa
#by sturmvogel
event = {
	id = 260041
	trigger = {
		owned = { province = 441 data = -1 } #Tago
		control = { province = 441 data = -1 } #Tago
		OR = {
			exists = MOR
			exists = SUS
			exists = ALD
			exists = TLE
		}
	}
	random = no
	country = POR
	name = "EVENTNAME260041" #Afonso V's Expeditions to North Africa
	desc = "EVENTHIST260041"
	#-#Afonso V was nicknamed ''o Africano'' (the African) from his successful campaigns in Morocco that captured Tangiers and Arzila.

	date = { day = 1 month = january year = 1455 }
	offset = 900
	deathdate = { day = 0 month = january year = 1475 }

	action_a = {
		name = "ACTIONNAME3272A" #A Crusade against the heretics in Africa
		command = { type = casusbelli which = MOR value = 240 }
		command = { type = casusbelli which = SUS value = 240 }
		command = { type = casusbelli which = ALD value = 240 }
		command = { type = casusbelli which = TLE value = 240 }
		command = { type = transports which = 441 value = 5 } #Tago
		command = { type = stability value = 1 }
		command = { type = addcore_claim which = 732 } #Tangiers
		#command = { type = addcore which = 806 } #Toubkal
	}
	action_b = {
		name = "ACTIONNAME260041B" #We have enough on our plate right now
		command = { type = trade value = 400 }
		command = { type = naval value = 400 }
		command = { type = stability value = -1 }
	}
}

#(1469) Royal Charters
#Idea: Baston - Scripting by Annibale
event = {
	id = 18004
	trigger = {
		NOT = { domestic = { type = land value = 6 } }
	}
	random = no
	country = POR
	name = "EVENTNAME18004" #Royal Charters
	desc = "EVENTHIST18004"
	#-#The Portuguese crown encouraged further exploration of the African coast by stipulating that those granted colonial charters or trading rights must either sponsor or command expeditions, which mapped the African coastline farther South. Certain distances were required to be covered each year. Ferno do P discovered the island which bears his name. Lopo Gonalves was the first to cross the Equator. Diogo Co, in later expeditions, discovered Congo, Angola and Namibia.

	date = { day = 3 month = january year = 1469 }

	action_a = {
		name = "ACTIONNAME18003A" #Explore African Coast
		command = { type = wakeleader which = 0110804 } #Ferno do P (POR)
		command = { type = wakeleader which = 0110831 } #Lopo Gonalves (POR)
		command = { type = wakeleader which = 0110805 } #Diogo Co (POR)
	}
}

#(1471-1490) Duchess Isabel of Burgundy's feudal priviledge of the Azores
event = {
	id = 260050
	trigger = {
		owned = { province = 823 data = -1 } #The Azores
	}
	random = no
	country = POR
	name = "EVENTNAME260050" #Duchess Isabel of Burgundy's feudal priviledge of the Azores
	desc = "EVENTHIST260050"
	#-#In 1466 Afonso V of Portugal granted to the Duchess Isabel of Burgundy, his aunt, feudal privilege in the Azores. Through her death in 1471, and thereafter, many Flemish settlers came to the islands.

	date = { day = 1 month = january year = 1471 }
	offset = 90
	deathdate = { day = 1 month = january year = 1490 }

	action_a = {
		name = "ACTIONNAME260050A" #Great, more settlers!
		command = { type = provincetax which = 823 value = 1 } #The Azores
		command = { type = population which = 823 value = 1200 } #The Azores
		command = { type = provincemanpower which = 823 value = 1 } #The Azores
	}
}

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

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

	date = { day = 4 month = september year = 1479 }

	action_a = {
		name = "ACTIONNAME260005A" #Perpetual peace
		command = { type = stability value = 1 } #end of the war
		command = { type = removecore which = 817 } #The Canary Islands
		command = { type = cedeprovince which = CAS value = 817 } #The Canary Islands
		command = { type = cedeprovince which = CAS value = 443 } #Andalusia
		command = { type = cedeprovince which = CAS value = 432 } #Asturias
		command = { type = cedeprovince which = CAS value = 431 } #Cantabria
		command = { type = cedeprovince which = CAS value = 440 } #Estramadura
		command = { type = cedeprovince which = CAS value = 433 } #Galicia
		command = { type = cedeprovince which = CAS value = 435 } #Leon
		command = { type = cedeprovince which = CAS value = 438 } #Murcia
		command = { type = cedeprovince which = CAS value = 436 } #Castilla
		command = { type = cedeprovince which = CAS value = 439 } #Toledo
		command = { type = trigger which = 142004 } #CAS: Treaty of Alcacovas
		command = { type = treasury value = 50 } #Gold and slave routes secured
		command = { type = relation which = CAS value = 50 }
		command = { type = dynastic which = CAS }
	}
	action_b = {
		name = "ACTIONNAME260005B" #I prefer the crown of Castile
		command = { type = stability value = -3 } #a losing war continues
		command = { type = domestic which = mercantilism value = -1 }
		command = { type = trade value = -500 }
		command = { type = treasury value = -50 } #Gold and slave routes attacked
		command = { type = trigger which = 142025 } #CAS: Treaty of Alcacovas Rejected
		command = { type = sleepevent which = 260048 } #POR: Settlement of El Mina
		command = { type = casusbelli which = CAS value = 24 }
		command = { type = relation which = CAS value = -25 }
		command = { type = breakdynastic which = CAS }
	}
}
#(1479) Treaty again - For SPA this time
event = {
	id = 260003
	trigger = {
		NOT = { exists = CAS }
		exists = SPA
	}
	random = no
	country = POR
	name = "EVENTNAME260005" #Treaty of Alcacovas
	desc = "EVENTHIST260005"
	#-#In 1469 Alfonso V of Portugal was presented with the opportunity of becoming the King of Castile when he and his brother-in-law Enrique IV of Castile agreed on his marriage to Isabel, Princess of Asturias (heir title). But the deal failed when Isabel married Fernando of Aragon. When Enrique died and Isabel proclaimed herself Queen, in 1475, he saw his chance disappearing and decided to play hard. In a month he was married to his niece, Juana, and had claimed the crown of Castile for himself, invading the country. The plan was good because Juana had also the support of France and a great part of the Castilian nobility who rebelled in her support. Despite the simultaneous invasion from France and Portugal, and the rebellion of the nobles in the West of Castile, the war did not go well. The French were stopped by the Basques, while Fernando, with troops mostly from Castile and Asturias, inflicted a crushing defeat to the Portuguese in Toro in 1476. Alfonso traveled to France to try to get a stronger involvement from Louis XI, but the French had lost interest. By then Fernando had recovered control of all the Northwest. The war at sea, that extended as far as the coast of Guinea, claimed by Castile, was also favorable to Isabel. Alfonso's marriage to his niece was not recognized by the Pope, and a last invasion at the South ended also in defeat at la Albuera in February, 1479. With the nobility subdued and the Portuguese defeated, Castile had now the upper hand, but Isabel was half Portuguese herself, and Portuguese was her first language. She desired a perpetual peace with Portugal, with long lasting friendship and perhaps a dynastic union in the future, like the one with Aragon, and she was prepared to be generous with the defeated to obtain it. The treaty of Alcacovas, was concluded in September 4, 1479. It had four parts, all of them historically important. In the first part, Isabel and Fernando were recognized as rightful Kings of Castile and Leon, and Alfonso was recognized as rightful King of Portugal. In the second part, Juana renounced to her claim to the crown of Castile and was forced to expend the rest of her life in a convent in Portugal. In the third part, the future marriage between the infant Alfonso, son of Joao and the infant Isabel, daughter of the Catholic Kings was arranged. And in the fourth part, Castile accepted the claim of Portugal over Guinea, and the Atlantic coast of Africa, Madeira, Azores and Cape Verde, and any future discoveries South of the Canary Islands toward Guinea. Portugal accepted the claim of Castile over the Canary Islands. The treaty of Alcacovas is very important because it created a long lasting peace between Portugal and Spain, and set the basis for future diplomatic resolution of conflicts, like the discovery of the New World and the treaty of Tordesillas. Some believe it was crucial to the discovery of the New World by Spain, as Africa was reserved for Portugal, leaving only the unknown West for Sp

	date = { day = 4 month = september year = 1479 }

	action_a = {
		name = "ACTIONNAME260005A" #Perpetual peace
		command = { type = stability value = 1 } #end of the war
		command = { type = removecore which = 817 } #The Canary Islands
		command = { type = cedeprovince which = SPA value = 817 } #The Canary Islands
		command = { type = cedeprovince which = SPA value = 443 } #Andalusia
		command = { type = cedeprovince which = SPA value = 432 } #Asturias
		command = { type = cedeprovince which = SPA value = 431 } #Cantabria
		command = { type = cedeprovince which = SPA value = 440 } #Estramadura
		command = { type = cedeprovince which = SPA value = 433 } #Galicia
		command = { type = cedeprovince which = SPA value = 435 } #Leon
		command = { type = cedeprovince which = SPA value = 438 } #Murcia
		command = { type = cedeprovince which = SPA value = 436 } #Castilla
		command = { type = cedeprovince which = SPA value = 439 } #Toledo
		command = { type = trigger which = 285001 } #SPA: Treaty of Alcacovas
		command = { type = treasury value = 50 } #Gold and slave routes secured
		command = { type = relation which = SPA value = 50 }
		command = { type = dynastic which = SPA }
	}
	action_b = {
		name = "ACTIONNAME260005B" #I prefer the crown of Castile
		command = { type = stability value = -3 } #a losing war continues
		command = { type = domestic which = mercantilism value = -1 }
		command = { type = trade value = -500 }
		command = { type = treasury value = -50 } #Gold and slave routes attacked
		command = { type = trigger which = 285050 } #SPA: Treaty of Alcacovas Rejected
		command = { type = sleepevent which = 260048 } #POR: Settlement of El Mina
		command = { type = casusbelli which = SPA value = 24 }
		command = { type = relation which = SPA value = -25 }
		command = { type = breakdynastic which = SPA }
	}
}
#(1479) Treaty of Alcacovas Rejected
event = {
	id = 260004 #triggered by CAS_142004 B / SPA_285001 B
	random = no
	country = POR
	name = "EVENTNAME260004" #Treaty of Alcacovas Rejected
	desc = "EVENTHIST260004"
	#-#It was a trick. After asserting their control over the Canary Islands, the Spaniards have reconsidered their initial offer and now declare that they will not recognize our exclusivity to the coast of Africa granted by the Pope. Even worse, Isabel maintains her claim to the crown of Portugal.
	action_a = {
		name = "ACTIONNAME260004A" #Damn Spaniards!
		command = { type = stability value = -1 } #a losing war continues
		command = { type = domestic which = mercantilism value = -1 }
		command = { type = trade value = -500 }
		command = { type = treasury value = -50 } #Gold and slave routes attacked
		command = { type = sleepevent which = 260048 } #POR: Settlement of El Mina
		command = { type = casusbelli which = CAS value = 24 }
		command = { type = casusbelli which = SPA value = 24 }
		command = { type = addcore which = 817 } #The Canary Islands
	}
}
#End of Treaty of Alcacovas for Portugal
#-----------------------------------------------------------------------------------------------

#(1481-1495) Joo II Centralizes Power
event = {
	id = 260040
	random = no
	country = POR
	name = "EVENTNAME260040" #Joo II Centralizes Power
	desc = "EVENTHIST260040"
	#-#After taking over the throne, Joo II took a series of measures to curtail the overgrown power of his aristocracy and to concentrate power in the Crown. Immediately, the nobles started to conspire. Joo II did nothing but observe. Letters of complaint and pleas to intervene were exchanged between the Duke of Bragana and Queen Isabel I of Spain. In 1483, this correspondence was intercepted by royal spies. The House of Bragana was outlawed, their lands confiscated and the Duke executed in vora. After the nobility appealed to Spain, the King ordered the execution of the Duke of Bragana and later executed the Duke of Viseu himself. Many other people were executed, murdered, fled or exiled to Castile including the Bragana Bishop of vora who was probably poisoned in prison. \n \nJoo II restyled the flag of Portugal in 1485, introducing important changes: the removal of the Aviz cross, a downward arrangement and edge-smoothing of the 'quinas' (blue bezant-charged escutcheons), and the definitive fixing of five saltire-arranged bezants in each 'quina' and seven castles on the bordure.

	date = { day = 28 month = august year = 1481 }
	offset = 30
	deathdate = { day = 1 month = january year = 1495 }

	action_a = {
		name = "ACTIONNAME260040A" #Assert the power of the King
		command = { type = stability value = -1 }
		command = { type = provincetax which = -1 value = 1 }
		command = { type = provincetax which = -1 value = 1 }
		command = { type = domestic which = centralization value = 2 }
		command = { type = domestic which = aristocracy value = -3 }
		command = { type = revoltrisk which = 24 value = 3 }
		command = { type = relation which = SPA value = -10 }
		command = { type = flagname which = "Joao_II" }
	}
	action_b = {
		name = "ACTIONNAME260040B" #Just restyle the flag
		command = { type = domestic which = centralization value = -1 }
		command = { type = domestic which = aristocracy value = 1 }
		command = { type = stability value = 1 }
		command = { type = flagname which = "Joao_II" }
	}
}

#(1482-1660) Settlement of El Mina
event = {
	id = 260048
	trigger = {
		owned = { province = 795 data = -1 } #Leone
		control = { province = 795 data = -1 }
		provincereligion = { province = 795 data = catholic }
	}
	random = no
	country = POR
	name = "EVENTNAME260048" #Settlement of El Mina
	desc = "EVENTHIST260048"
	#-#In 1481 King Joao II of Portugal held a meeting with his 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 = treasury value = -10 }
		command = { type = fortress which = 795 value = 1 } #Leone
		command = { type = trade value = 150 }
		command = { type = mine which = 795 value = 20 } #Leone
		command = { type = addcore which = 795 } #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 }
	}
}

#(1484-1600) Diogo Cao returns to Portugal with some Kongolese
event = {
	id = 260007
	trigger = {
		exists = KON
		OR = {
			religion = catholic
			religion = counterreform
		}
		OR = { #Any of Kongo's provinces
			discovered = 785
			discovered = 786
			discovered = 787
			discovered = 1505
			discovered = 1506
		}
	}
	random = no
	country = POR
	name = "EVENTNAME260007" #Diogo Cao returns to Portugal with some Kongolese
	desc = "EVENTHIST260007"
	#-#When Portuguese discoverer Diogo Co arrived he found the Kingdom of Kongo to be a promising trade partner. He invited several Kongolese to return to Portugual with him and agreed to leave several Portuguese seamen behind to ensure that they were not being taken as slaves. The following year the men returned, having learned Portuguese and the basic facts of Christianity. Nzinga Nkuwu, the manikongo, asked the Portuguese crown for missionaries and technical assistance in exchange for ivory and other goods.

	date = { day = 0 month = january year = 1484 }
	offset = 60
	deathdate = { day = 0 month = january year = 1600 }

	action_a = {
		name = "ACTIONNAME260007A" #Send missionaries and craftsmen to help the Kongolese
		command = { type = relation which = KON value = 50 }
		command = { type = treasury value = -10 }
		command = { type = missionaries value = -1 }
		command = { type = trade value = 50 }
		command = { type = merchants value = 1 }
		command = { type = domestic which = innovative value = 1 }
		command = { type = sleepevent which = 260165 } #POR: Generous assistance for Kongo
	}
	action_b = {
		name = "ACTIONNAME260007B" #Help the Kongolese as much as we can
		command = { type = relation which = KON value = 100 }
		command = { type = treasury value = -10 }
		command = { type = missionaries value = -2 }
		command = { type = trade value = 75 }
		command = { type = infra value = -50 }
		command = { type = merchants value = 2 }
		command = { type = domestic which = innovative value = 1 }
		command = { type = sleepevent which = 260164 } #POR: Assistance for Kongo
	}
}

#(1484) Royal Astronomical Commission of D. Joao II
#by Sturmvogel
event = {
	id = 260020
	random = no
	country = POR
	name = "EVENTNAME260020" #Royal Astronomical Commission
	desc = "EVENTHIST260020"
	#-#In 1484 the King Dom Joo II commissioned a group of prominent scientists, notably the Royal Physician, Mestre Rodrigo, Diego Ortiz, Bishop of Tangier, Ceuta and Viseu, formerly Professor of Astrology at the University of Salamanca, the geographer Martin Behaim, and the Jewish physician Mestre Jos Vizinho to find a method for navigation outside European waters. The latter had been a pupil of the Rabbi Abraham ben Samuel Zacuto at the University of Salamanca and he provided the commission with a copy of the Rabbi's Almanach Perpetuum Colestium Motium (Perpetual Almanac of the Heavenly Bodies) which consisted of tables that listed the declination of the sun over the course of the year. The commission published the Regimento do Astrolabio e do Quadrante which contained a Portuguese translation of the 1250 text by Sacrobosco, Sphaera Mundi, on the spherical nature of the Earth. It also included the Regimento do Norte which gve rules on how to use the Pole Star to determine latitude and the Regimento do Sol which provided rules and tables to allow sailors to use the height of the sun at noon to determine their latitude. Coupled with improvements in navigational instruments this information greatly eased the navigational problems that had bedevilled earlier explorers.

	date = { day = 0 month = january year = 1484 }
	offset = 300
	deathdate = { day = 0 month = january year = 1485 }

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

#(1491-1542) Assistance for Kongo
event = {
	id = 260164
	trigger = {
		exists = KON
		OR = {
			religion = catholic
			religion = counterreform
		}
		event = 260007 #POR: Diogo Cao returns to Portugal with some Kongolese
		event = 203000 #KON: Diogo Cao arrives in Kongo
	}
	random = no
	country = POR
	name = "EVENTNAME260164" #Assistance for Kongo
	desc = "EVENTHIST203002"
	#-#In 1491, Portuguese missionaries, soldiers, and artisans were welcomed at Sao Salvador, the capital of the Kongo. The missionaries soon gained converts, with varying degrees of sincerety, among them were the manicongo, his Queen and their eldest son, Mbemba Nzinga.

	date = { day = 0 month = january year = 1491 }
	offset = 60
	deathdate = { day = 0 month = january year = 1542 }

	action_a = {
		name = "GOOD_NEWS"
		command = { type = trigger which = 203002 } #KON: Missionaries and craftsmen from Portugal -I-
	}
}
#(1491-1542) Generous assistance for Kongo - Ahistorical
event = {
	id = 260165
	trigger = {
		exists = KON
		OR = {
			religion = catholic
			religion = counterreform
		}
		event = 260007 #POR: Diogo Cao returns to Portugal with some Kongolese
		event = 203000 #KON: Diogo Cao arrives in Kongo
	}
	random = no
	country = POR
	name = "EVENTNAME260165" #Generous assistance for Kongo
	desc = "EVENTHIST203002"
	#-#In 1491, Portuguese missionaries, soldiers, and artisans were welcomed at Sao Salvador, the capital of the Kongo. The missionaries soon gained converts, with varying degrees of sincerety, among them were the manicongo, his Queen and their eldest son, Mbemba Nzinga.

	date = { day = 0 month = january year = 1491 }
	offset = 60
	deathdate = { day = 0 month = january year = 1542 }

	action_a = {
		name = "GOOD_NEWS"
		command = { type = trigger which = 203003 } #KON: Missionaries and craftsmen from Portugal -II-
	}
}

#(1492-1680) Discovery of the Straits of Obock
event = {
	id = 260052
	trigger = {
		discovered = 1061 #Straits of Obock
	}
	random = no
	country = POR
	name = "EVENTNAME260052" #Discovery of the Straits of Obock
	desc = "EVENTHIST260052"
	#-#We have discovered the Straits of Obock.

	date = { day = 1 month = january year = 1492 }
	offset = 1
	deathdate = { day = 1 month = january year = 1680 }

	action_a = {
		name = "EXCELLENT"
		command = { }
	}
}

#(1492-1680) Discovery of the Straits of Malacca
event = {
	id = 260051
	trigger = {
		discovered = 1143 #Straits of Malacca
	}
	random = no
	country = POR
	name = "EVENTNAME260051" #Discovery of the Straits of Malacca
	desc = "EVENTHIST260051"
	#-#We have discovered the Straits of Malacca.

	date = { day = 1 month = january year = 1492 }
	offset = 1
	deathdate = { day = 1 month = january year = 1680 }

	action_a = {
		name = "EXCELLENT"
		command = { }
	}
}

#(1492-1493) The Spanish Jews Come to Portugal
#by IDLF and modified by sturmvogel
event = {
	id = 260053
	trigger = {
		event = 285044 #SPA: Expulsion of the Spanish Jews
		NOT = { war = { country = POR country = SPA } }
	}
	random = no
	country = POR
	name = "EVENTNAME260053" #The Spanish Jews Come to Portugal
	desc = "EVENTHIST260053"
	#-#In 1492, the Catholic Kings of Spain expelled all the Jews from Spain. More than 60,000 Spanish Jews came to Portugal seeking permanent refuge. King Joo II of Portugal allowed them to enter because he was preparing for war against the Moors and wanted to take advantage of their wealth and expertise in weapon-making. At a price of 100 cruzados a family, 630 wealthy Jewish families were granted permanent residence. A number of craftsmen, skilled in making weapons, were also allowed to become permanent residence. The rest were permitted to stay in Portugal for eight months, upon payment of 8 cruzados per adult. At the end of those eight months, shipping was still not available, so the King declared the remaining Jews slaves.

	date = { day = 29 month = july year = 1492 }
	offset = 90
	deathdate = { day = 1 month = february year = 1493 }

	action_a = {
		name = "ACTIONNAME260053A" #Let them in and exploit them
		command = { type = treasury value = 200 }
		command = { type = land value = 100 }
		command = { type = domestic which = serfdom value = 1 }
		command = { type = merchants value = 1 }
		command = { type = trade value = 500 }
		command = { type = population which = 434 value = 500 }
		command = { type = population which = 441 value = 5000 } #Tago
		command = { type = population which = 442 value = 500 }
	}
	action_b = {
		name = "ACTIONNAME260053B" #Let them in and don't exploit them
		command = { type = land value = 100 }
		command = { type = stability value = -1 }
		command = { type = relation which = SPA value = -100 }
		command = { type = revoltrisk which = 60 value = 2 }
		command = { type = domestic which = innovative value = 1 }
		command = { type = merchants value = 3 }
		command = { type = trade value = 1500 }
		command = { type = population which = 434 value = 500 }
		command = { type = population which = 441 value = 5000 } #Tago
		command = { type = population which = 442 value = 500 }
	}
	action_c = {
		name = "ACTIONNAME260053C" #Refuse to let them in
		command = { type = relation which = SPA value = 50 }
		command = { type = sleepevent which = 260054 } #POR: Expulsion of the Jews from Portugal
	}
}

#(1495-1521) A new flag for Portugal
event = {
	id = 260133
	trigger = {
		monarch = 0110504 #Manuel I
	}
	random = no
	country = POR
	name = "EVENTNAME260133" #A new flag for Portugal
	desc = "EVENTHIST260133"
	#-#Manuel I was the first King of Portugal to convert the traditional square armorial banner into a rectangular (2:3) field with the coat of arms on its center. Specifically, the flag was now a white rectangle centrally charged with the coat of arms (bearing eleven castles) on an ogival or heater-shaped shield and surmounted by an open royal crown. This flag was used exclusively as the Kingdom's banner since Manuel I possessed a personal standard which included the armillary sphere for the first time.

	date = { day = 16 month = october year = 1495 }
	offset = 30
	deathdate = { day = 15 month = december year = 1521 }

	action_a = {
		name = "ACTIONNAME260133A" #Change the flag
		command = { type = setflag which = [Manuel_I] }
		command = { type = flagname which = "Manuel_I" }
	}
}

#(1497-1515) Expulsion of the Jews from Portugal
event = {
	id = 260054
	trigger = {
		event = 260053 #POR: The Spanish Jews Come to Portugal
		exists = SPA
		NOT = { war = { country = POR country = SPA } }
	}
	random = no
	country = POR
	name = "EVENTNAME260054" #Expulsion of the Jews from Portugal
	desc = "EVENTHIST260054"
	#-#When Manuel I ascended to the throne he married the Infanta Isabel of Spain to solidify his position on the throne. Isabel told Manuel that she would only marry him if he expelled the Jews. So Manuel issued a decree forcing all Jews to leave Portugal by October 1497. He tried to convert as many Jews to Christianity as he could to keep them in Portugal. Jewish parents were ordered to take their children to Lisbon. Upon arrival, the parents were informed that their children were going to be taken away from them and were to be given to Catholic families to be raised as good Catholics. Some parents agreed to be baptized, along with their children, while others succumbed and handed over their children. In October 1497, about 20,000 Jews came to Lisbon to prepare for departure to other lands. They were herded into the courtyard of Os Estaos Palace where priests attempted to convert them. Those who did not convert were told they forfeited their freedom and would become slaves.

	date = { day = 0 month = october year = 1497 }
	offset = 30
	deathdate = { day = 0 month = january year = 1515 }

	action_a = {
		name = "ACTIONNAME260054A" #Expel all those that won't convert
		command = { type = stability value = 1 }
		command = { type = dynastic which = SPA }
		command = { type = domestic which = innovative value = -1 }
		command = { type = merchants value = -1 }
		command = { type = trade value = -500 }
		command = { type = trigger which = 338273 } #ProvinceSpec*339: Jewish refugees from Portugal
		command = { type = population which = 434 value = -250 }
		command = { type = population which = 441 value = -2500 } #Tago
		command = { type = population which = 442 value = -250 }
	}
	action_b = {
		name = "ACTIONNAME260054B" #Expel all of them
		command = { type = stability value = 1 }
		command = { type = dynastic which = SPA }
		command = { type = domestic which = innovative value = -1 }
		command = { type = population which = 434 value = -500 }
		command = { type = population which = 441 value = -5000 } #Tago
		command = { type = population which = 442 value = -500 }
		command = { type = trigger which = 338273 } #ProvinceSpec*339: Jewish refugees from Portugal
		command = { type = trigger which = 301072 } #TUR: Jewish refugees from Portugal
		command = { type = merchants value = -3 }
		command = { type = infra value = -200 }
		command = { type = trade value = -1500 }
	}
	action_c = {
		name = "ACTIONNAME260054C" #Free all of them
		command = { type = relation which = SPA value = -75 }
		command = { type = domestic which = innovative value = 1 }
		command = { type = domestic which = serfdom value = -1 }
		command = { type = stability value = -1 }
	}
}

#-----------------------------------------------------------------------------------------------
#Commercial Conflict in Indian Ocean Sequence
#Idea: Baston - Scripting by Annibale

#(1498-1670) Commercial Conflict in the Indian Ocean
event = {
	id = 18012
	trigger = {
		OR = {
			discovered = 1070 #Lacquedive Islands
			discovered = 1071 #Coast of Malabar
		}
	}
	random = no
	country = POR
	name = "EVENTNAME18012" #Commercial Conflict in the Indian Ocean
	desc = "EVENTHIST18012"
	#-#When Pedro lvares Cabral returned from the second Portuguese voyage to the Indies King Manuel I realized that it would not be possible to secure the spice trade with India without using force. He instructed his new Viceroy D. Francisco de Almeida: ''It seems to us that nothing would be would serve us better than to have a fortress at the mouth of the Red Sea or near to it  rather inside it than outside might afford the better control  because from there we could see to it that no spice would pass to the land of the Sultan of Egypt, and all those in India would lose the false notion that they could trade any more, save through us... You should collect our ships after accomplishing all you are commanded to do at Quilon... and when these are collected, it would please us for you to pass to the mouth of the Red Sea.'' In furtherance of Manuel's instructions the Portuguese attempted to control all the shipping in the Indian Ocean by a system of cartazes (passes) that each shipowner was required to purchase to prevent his ship from being seized. Furthermore they forced merchants to come to Goa by creating monopolies in items like the Arabian horses highly sought after by Indian rulers for their cavalry.

	date = { day = 1 month = january year = 1498 }
	offset = 60
	deathdate = { day = 1 month = january year = 1670 }

	action_a = {
		name = "ACTIONNAME18012A" #Forcefully control the spice trade
		command = { type = gainbuilding which = 441 value = shipyard } #Tago
		command = { type = relation which = VEN value = -100 } #adverse effect on spice trade with Venice
		command = { type = relation which = ORM value = -400 }
		command = { type = relation which = TUR value = -100 }
		command = { type = relation which = GUJ value = -100 }
		command = { type = relation which = MAM value = -200 }
		command = { type = relation which = ADE value = -200 }
		command = { type = domestic which = mercantilism value = 2 }
		command = { type = domestic which = offensive value = 1 }
		command = { type = casusbelli which = ORM value = 1800 }
		command = { type = casusbelli which = ADE value = 500 }
		command = { type = casusbelli which = MLC value = 1800 }
		command = { type = addcore which = 500 } #Aden
		command = { type = addcore which = 505 } #Al Kharam
		command = { type = addcore which = 677 } #Malacca
		command = { type = addcore which = 756 } #Socotra
		command = { type = transports which = 441 value = 5 } #Tago
	}
	action_b = {
		name = "ACTIONNAME18012B" #Negotiate trading rights
		command = { type = gainbuilding which = 441 value = shipyard } #Tago
		command = { type = relation which = VEN value = -50 } #less adverse effect on spice trade with Venice
		command = { type = relation which = ORM value = 50 }
		command = { type = relation which = TUR value = 50 }
		command = { type = relation which = GUJ value = 50 }
		command = { type = relation which = MAM value = 50 }
		command = { type = relation which = ADE value = 50 }
		command = { type = domestic which = mercantilism value = -2 }
 		command = { type = sleepevent which = 60003 } #MLC: The Portuguese covet Malacca -I-
 		command = { type = sleepevent which = 227003 } #MLC: The Portuguese covet Malacca -II-
		command = { type = sleepevent which = 338274 } #Province_Specific*677: The Portuguese covet Malacca
 		command = { type = sleepevent which = 101004 } #ADE: The Portuguese covet Aden
		command = { type = sleepevent which = 338264 } #Province_Specific*500: The Portuguese covet Aden
		command = { type = sleepevent which = 338276 } #Province_Specific*504: The Portuguese covet Ormuz
	}
}
#(1498-1680) Sultan has defied our demands
event = {
	id = 18103
	trigger = {
		OR = {
			event = 60003 #MLC: The Portuguese covet Malacca -I-
			event = 227003 #MLC: The Portuguese covet Malacca -II-
			event = 338274 #ProvinceSpec*677: The Portuguese covet Malacca
		}
		owned = { province = 573 data = -1 } #Cochin
		control = { province = 573 data = -1 } #Cochin
	}
	random = no
	country = POR
	name = "EVENTNAME18103" #Sultan has defied our demands
	desc = "EVENTHIST18103"
	#-#The treacherous Sultan of Malacca has refused us the right to set up a base in his Kingdom. The infidel should be punished!

	date = { day = 1 month = january year = 1498 }
	offset = 10
	deathdate = { day = 1 month = january year = 1680 }

	action_a = {
		name = "ACTIONNAME18034A" #Let's teach them a lesson
		command = { type = inf which = 573 value = 10000 } #Cochin
		command = { type = cav which = 573 value = 5000 }
		command = { type = transports which = 573 value = 5 }
		command = { type = warships which = 573 value = 5 }
		command = { type = treasury value = -100 }
	}
	action_b = {
		name = "ACTIONNAME18034B" #Who cares?
		command = { }
	}
}
#(1498-1680) Sultan has bowed to our demands
event = {
	id = 18104
	trigger = {
		event = 60003 #MLC: The Portuguese covet Malacca -I-
		owned = { province = 677 data = -1 } #Malacca
		control = { province = 677 data = -1 }
	}
	random = no
	country = POR
	name = "EVENTNAME18104" #Sultan has bowed to our demands
	desc = "EVENTHIST18104"
	#-#The might of our navy and our troops had convinced the Sultan to become our tributary. We are now in the full control of spice trade.

	date = { day = 1 month = january year = 1498 }
	offset = 10
	deathdate = { day = 1 month = january year = 1680 }

	action_a = {
		name = "EXCELLENT"
		command = { type = inf which = 677 value = 5000 }
		command = { type = cav which = 677 value = 5000 }
		command = { type = vassal which = MLC }
		command = { type = treasury value = 100 }
		command = { type = population which = 677 value = -2000 } #Malacca
		command = { type = losebuilding which = 677 value = bailiff } #Malacca
	}
}
#(1498-1680) Submission of Malacca - Ahistorical
event = {
	id = 260096 #triggered by MLC_227003 B
	random = no
	country = POR
	name = "EVENTNAME260096" #Submission of Malacca
	desc = "EVENTHIST260096"
	#-#The Sultan of Malacca surrendered without a fight...

	action_a = {
		name = "GOOD_NEWS"
		command = { type = annex which = MLC }
		command = { type = sleepevent which = 18104 } #POR: Sultan has bowed to our demands
		command = { type = sleepevent which = 18105 } #POR: Malacca is ours
	}
}
#(1498-1680) Submission of Malacca
event = {
	id = 18105
	trigger = {
		owned = { province = 677 data = -1 } #Malacca
		control = { province = 677 data = -1 }
	}
	random = no
	country = POR
	name = "EVENTNAME18105" #Malacca is ours
	desc = "EVENTHIST18105"
	#-#Malacca has fallen to our glorious troops! Let's send reinforcements to finish the Sultan of the infidel.

	date = { day = 1 month = january year = 1498 }
	offset = 30
	deathdate = { day = 1 month = january year = 1680 }

	action_a = {
		name = "ACTIONNAME260055B" #Don't waste our money
		command = { }
	}
	action_b = {
		name = "ACTIONNAME260055A" #Send reinforcements
		command = { type = warships which = 677 value = 5 }
		command = { type = inf which = 677 value = 6000 } #Malacca
		command = { type = cav which = 677 value = 2000 }
		command = { type = treasury value = -100 }
	}
}
#(1498-1690) Construction of A Famosa
event = {
	id = 18106
	trigger = {
		control = { province = 677 data = -1 }
		owned = { province = 677 data = -1 }
	}
	random = no
	country = POR
	name = "EVENTNAME18106" #A Famosa
	desc = "EVENTHIST18106"
	#-#Right after the capture of Malacca the Portuguese, under the leadership of Afonso de Albuquerque quickly erected a fort, named 'A Famosa', using stone from demolished mosques and tombs, to protect the newly captured city from the attacks of Mahmud Shah. The fort withstood multiple sieges, but was eventually captured by the Dutch in 1641.

	date = { day = 1 month = january year = 1498 }
	offset = 30
	deathdate = { day = 1 month = january year = 1690 }

	action_a = {
		name = "ACTIONNAME18036A" #Improve the fortifications
		command = { type = fortress which = 677 value = -2 } #Malacca
		#Malacca fortress +2
		command = { type = fortress which = 677 value = 1 } #Malacca
		command = { type = fortress which = 677 value = 1 } #Malacca
		command = { type = inf which = 677 value = 3000 }
		command = { type = cav which = 677 value = 2000 }
		command = { type = treasury value = -100 }
	}
	action_b = {
		name = "ACTIONNAME18036B" #Don't waste our money
		command = { type = revolt which = 677 } #Malacca
	}
}
#End of Commercial Conflict inIndian Ocean Sequence
#-----------------------------------------------------------------------------------------------

#(1498-1560) The Island of Zanzibar
event = {
	id = 260107
	trigger = {
		OR = {
			discovered = 765 #Zanzibar
			discovered = 1186 #Zanzibar Strait
		}
		exists = ZAN
	}
	random = no
	country = POR
	name = "EVENTNAME260107" #The Island of Zanzibar
	desc = "EVENTHIST260107"
	#-#On the way back to Portugal, da Gama made a stop at Zanzibar, whose ruler sent fresh food to them along with professions of friendship.

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

	action_a = {
		name = "ACTIONNAME260107A" #We make another friend
		command = { type = relation which = ZAN value = 50 }
		command = { type = trigger which = 373000 } #ZAN: First contact with Portugal
	}
}

#(1498-1558) Hostile Reception in Mombasa
event = {
	id = 260065
	trigger = {
		exists = MOM
		OR = {
			discovered = 763 #Mombasa
			discovered = 1186 #Zanzibar Strait
		}
	}
	random = no
	country = POR
	name = "EVENTNAME260065" #Hostile Reception in Mombasa
	desc = "EVENTHIST260065"
	#-#Vasco da Gama and his brother Paulo left Portugal on July 8, 1497 in search of the Eastern route to India based on the discoveries made by Pedro de Covilha. On the 25th of January, 1498, the expedition off the mouth of a larger river, the present-day Quelimane, and then proceeded to Mombasa where da Gama received a strongly hostile reception from the Sultan. This initial interaction was to serve as an ominous portend for future interactions between the inhabitants of Mombasa and the Portuguese.

	date = { day = 1 month = january year = 1498 }
	offset = 20
	deathdate = { day = 1 month = january year = 1558 }

	action_a = {
		name = "ACTIONNAME260065A" #They will pay!
		command = { type = relation which = MOM value = -100 }
		command = { type = trigger which = 336000 } #MOM: Portuguese Explorers in East Africa
	}
}

#(1498-1560) Discovery of Malindi
event = {
	id = 260066
	trigger = {
		exists = MLI
		OR = {
			discovered = 762 #Kenya
			discovered = 1133 #Coast of Pepper
		}
	}
	random = no
	country = POR
	name = "EVENTNAME260066" #Discovery of Malindi
	desc = "EVENTHIST260066"
	#-#When Vasco Da Gama made his first voyage to India, he stopped at Malindi. The ruler of Malindi wanted the Portuguese to assist him against his enemy the city of Angoja and in return gave him pilots to help him reach India. As a result, a friendship between the two nations was formed.

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

	action_a = {
		name = "EXCELLENT"
		command = { type = relation which = MLI value = 100 }
	}
}
#(1498-1560) Vassalization of Malindi
event = {
	id = 260067 #triggered by MLI_113000 A
	random = no
	country = POR
	name = "EVENTNAME260067" #Vassalization of Malindi
	desc = "EVENTHIST260067"
	#-#When Pedro Alvares Cabral visited Malindi, the Sheik there accepted the King of Portugal as his lord.

	action_a = {
		name = "EXCELLENT"
		command = { type = relation which = MLI value = 100 }
		command = { type = relation which = MOM value = -100 }
		command = { type = vassal which = MLI }
		command = { type = naval value = 100 }
	}
}

#(1498-1560) Discovery of Mogadishu
event = {
	id = 260068
	trigger = {
		OR = {
			discovered = 760 #Mogadiscio
			discovered = 1134 #Horn of Africa
		}
		exists = MGU
	}
	random = no
	country = POR
	name = "EVENTNAME260068" #Discovery of Mogadishu
	desc = "EVENTHIST260068"
	#-#On January 2nd of 1499, Vasco da Gama of Portugal's expedition caught sight of land that they believed to be somewhere near Mozambique. However, dawn showed them that they were actually off the coast of the large muslim city of Mogadishu. Da Gama chose not to make contact with the town, and simply because it was inhabited by Muslims, he bombarded the harbor at close range with his ship's cannon and inflicted a considerable amount of damage.

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

	action_a = {
		name = "ACTIONNAME260068A" #Take that infidels!
		command = { type = relation which = MGU value = -50 }
		command = { type = trigger which = 160000 } #MGU: Attack on the Harbor
	}
}

#-----------------------------------------------------------------------------------------------
#Submission of Kilwa Sequence
#by Crook

#(1498-1558) Submission of Kilwa
event = {
	id = 18031
	trigger = {
		exists = KIL
		OR = {
			discovered = 766 #Rufiji
			discovered = 1185 #Rufiji Delta
		}
	}
	random = no
	country = POR
	name = "EVENTNAME18031" #Submission of Kilwa
	desc = "EVENTHIST18031"
	#-#Vasco da Gama and his brother Paulo left Portugal on July 8, 1497 in search of the Eastern route to India based on the discoveries made by Pedro de Covilha. The expedition arrived in Zanzibar on February 28, 1498 and proceeded to Mombasa where da Gama received a strongly hostile reception from the Sultan, but a warm welcome in Malindi, an old enemy of Mombasa. Here, in Malindi, he employed Shuhaib al-Din Ahmed to guide him from Malindi to India. On his second trip to East Africa, Vasco da Gama bombarded Kilwa on July 12, 1502, destroying the Sultan's palace and razing mosques in the city. Sultan Ali was forced to recognize King Manuel of Portugal as his suzerain, and pay a heavy tribute to the Portuguese.

	date = { day = 1 month = january year = 1498 }
	offset = 100
	deathdate = { day = 1 month = january year = 1558 }

	action_a = {
		name = "ACTIONNAME18031A" #Demand tribute
		command = { type = relation which = KIL value = -100 }
	}
	action_b = {
		name = "ACTIONNAME18031B" #We have other concerns
		command = { }
	}
}
#(1498-1560) Sultan agrees to our demands
event = {
	id = 18033
	trigger = {
		event = 333000 #KIL: Portugal demands submission
		exists = KIL
	}
	random = no
	country = POR
	name = "EVENTNAME18033" #Sultan agrees to our demands
	desc = "EVENTHIST18033"
	#-#Fearing the steel of our swords, the Sultan of the infidel has agreed to become our vassal and let us built a fortified base from which we could expand our Empire.

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

	action_a = {
		name = "EXCELLENT"
		command = { type = vassal which = KIL }
		command = { type = treasury value = 100 }
	}
}
#(1498-1560) Sultan refuses our demands
event = {
	id = 18034
	trigger = {
		exists = KIL
		event = 333000 #KIL: Portugal demands submission
	}
	random = no
	country = POR
	name = "EVENTNAME18034" #Sultan refuses our demands
	desc = "EVENTHIST18034"
	#-#The Sultan of the infidel had the nerve to defy our generous offer. We're now at war with them.

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

	action_a = {
		name = "ACTIONNAME18034A" #Let's teach them a lesson
		command = { type = casusbelli which = KIL value = 60 }
	}
}
#(1498-1558) Submission of Zanj
event = {
	id = 260060
	trigger = {
		exists = MOM
		owned = { province = 763 data = MOM } #Mombasa
		control = { province = 763 data = MOM }
		NOT = { relation = { country = MOM data = -20 } }
		OR = {
			discovered = 763 #Mombasa
			discovered = 1186 #Zanzibar Strait
		}
	}
	random = no
	country = POR
	name = "EVENTNAME18031" #The lands of Zanj
	desc = "EVENTHIST260060"
	#-#Vasco da Gama and his brother Paulo left Portugal on July 8, 1497 in search of the Eastern route to India based on the discoveries made by Pedro de Covilha. The expedition arrived in Zanzibar on February 28, 1498 and proceeded to Mombasa where da Gama received a strongly hostile reception from the Sultan, but a warm welcome in Malindi, an old enemy of Mombasa.

	date = { day = 1 month = january year = 1498 }
	offset = 100
	deathdate = { day = 1 month = january year = 1558 }

	action_a = {
		name = "ACTIONNAME18031A" #Demand tribute
		command = { type = relation which = MOM value = -100 }
	}
}
#(1502-1660) Portuguese Settlement of Mozambique
event = {
	id = 18037
	trigger = {
		control = { province = 768 data = -1 } #Mtawa
		owned = { province = 768 data = -1 } #Mtawa
		NOT = { provincereligion = { province = 768 data = pagan } } #not a TP
	}
	random = no
	country = POR
	name = "EVENTNAME338289" #Portuguese Settlement of Mozambique
	desc = "EVENTHIST18037"
	#-#Mozambique was discovered and settled by the Portuguese as a means of controlling the trade from the interior of Africa. Unlike Mombasa and Kilwa, which were organized and fairly developed, Mozambique was settled by native tribes with no clear government structure. This made Portuguese efforts considerably easier, and Mozambique eventually became the seat of the Portuguese East Africa, even before the fall of Mombasa to Omanis in 1698.

	date = { day = 1 month = january year = 1502 }
	offset = 30
	deathdate = { day = 1 month = january year = 1660 }

	action_a = {
		name = "ACTIONNAME18037A" #Send settlers
		command = { type = population which = 768 value = 250 } #Mtawa
		command = { type = provincetax which = 768 value = 1 } #Mtawa
		command = { type = addcore which = 768 } #Mtawa
		command = { type = addcore which = 770 } #Nampuia
		command = { type = sleepevent which = 338289 } #ProvinceSpec*768: Portuguese Settlement of Mozambique
	}
}
#(1558-1660) AI Fortification of Mozambique
event = {
	id = 260074
	trigger = {
		control = { province = 768 data = -1 }
		owned = { province = 768 data = -1 }
		ai = yes
	}
	random = no
	country = POR
	name = "AI_EVENT"
	desc = ""

	date = { day = 1 month = january year = 1558 }
	offset = 9000
	deathdate = { day = 1 month = january year = 1660 }

	action_a = {
		name = "ACTIONNAME260048A" #Build the fort
		command = { type = treasury value = -100 }
		command = { type = fortress which = 768 value = 1 } #Mtawa
	}
	action_b = {
		name = "ACTIONNAME260048B" #We have more pressing issues at the moment
		command = { }
	}
}
#(1593-1660) Construction of Fort Jesus
event = {
	id = 18036
	trigger = {
		control = { province = 763 data = -1 } #Mombasa
		owned = { province = 763 data = -1 }
		ai = yes
	}
	random = no
	country = POR
	name = "EVENTNAME18036" #Fort Jesus
	desc = "EVENTHIST18036"
	#-#Following the capture of Mombasa, Portuguese made it their base of operations in East Africa. The Viceroy Matthias de Albuquerque ordered in 1593 that Fort Jesus be built in Mombasa and the garrison reinforced. As a result, Mombasa became the capital of the Portuguese East Africa, where tribute was collected and Portuguese domination of East African coast from Mogadicio in the north to Mozambique in the South was enforced.

	date = { day = 11 month = april year = 1593 }
	offset = 900
	deathdate = { day = 1 month = january year = 1660 }

	action_a = {
		name = "ACTIONNAME18036A" #Improve the fortifications
		command = { type = fortress which = 763 value = 1 } #Mombasa
		command = { type = inf which = 763 value = 6000 } #Mombasa
		command = { type = cav which = 763 value = 2000 } #Mombasa
		command = { type = treasury value = -100 }
		command = { type = addcore which = 763 } #Mombasa
	}
	action_b = {
		name = "ACTIONNAME18036B" #Don't waste our money
		command = { type = revolt which = 763 } #Mombasa
	}
}
#End of Submission of Kilwa Sequence
#-----------------------------------------------------------------------------------------------

#-----------------------------------------------------------------------------------------------
#Submission of Aden Sequence
#by sturmvogel

#(1498-1545) Sultan has defied our demands
event = {
	id = 260046
	trigger = {
		OR = {
			event = 101004 #ADE: The Portuguese covet Aden
			event = 338264 #ProvinceSpec*500: The Portuguese Covet Aden
		}
	}
	random = no
	country = POR
	name = "EVENTNAME18103" #Sultan has defied our demands
	desc = "EVENTHIST260046"
	#-#The treacherous Sultan of Aden has refused us the right to set up a base in his Kingdom. The infidel should be punished!

	date = { day = 1 month = january year = 1498 }
	offset = 10
	deathdate = { day = 1 month = january year = 1545 }

	action_a = {
		name = "ACTIONNAME18034A" #Let's teach them a lesson
		command = { type = inf which = 573 value = 10000 } #Cochin
		command = { type = cav which = 573 value = 2000 } #Cochin
		command = { type = transports which = 549 value = 6 } #Goa
		command = { type = warships which = 549 value = 5 } #Goa
		command = { type = treasury value = -100 }
	}
	action_b = {
		name = "ACTIONNAME18034B" #Who cares?
		command = { }
	}
}
#(1498-1545) The Sultan has bowed to our demands
event = {
	id = 260047
	trigger = { event = 101004 } #ADE: The Portuguese Covet Aden
	random = no
	country = POR
	name = "EVENTNAME18104" #Sultan has bowed to our demands
	desc = "EVENTHIST18104"
	#-#The might of our navy and our troops had convinced the Sultan to become our tributary. We are now in the full control of spice trade.

	date = { day = 1 month = january year = 1498 }
	offset = 10
	deathdate = { day = 1 month = january year = 1545 }

	action_a = {
		name = "EXCELLENT"
		command = { type = inf which = 500 value = 5000 }
		command = { type = cav which = 500 value = 5000 }
		command = { type = vassal which = ADE }
		command = { type = treasury value = 100 }
		command = { type = population which = 500 value = -2000 } #Aden
		command = { type = losebuilding which = 500 value = bailiff } #Aden
	}
}
#(1498-1545) The Sultan has surrendered
event = {
	id = 260044
	trigger = {
		event = 101004 #ADE: The Portuguese covet Aden
		control = { province = 500 data = -1 } #Aden
	}
	random = no
	country = POR
	name = "EVENTNAME260044" #The Sultan Has Surrendered
	desc = "EVENTHIST260044"
	#-#The capture of his capital has forced the Sultan to capitulate. We are now in the full control of the spice trade.

	date = { day = 1 month = january year = 1498 }
	offset = 10
	deathdate = { day = 1 month = january year = 1545 }

	action_a = {
		name = "EXCELLENT"
		command = { type = annex which = ADE }
	}
}
#(1545) We have failed to retain Aden
event = {
	id = 260045
	trigger = {
		event = 101004 #ADE: The Portuguese covet Aden
		NOT = { owned = { province = 500 data = -1 } } #Aden
		core = { province = 500 data = -1 }
	}
	random = no
	country = POR
	name = "EVENTNAME260045" #We have failed to retain Aden
	desc = "EVENTHIST260045"
	#-#There is no longer any point in conquering Aden.

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

	action_a = {
		name = "ACTIONNAME260045A" #We need to focus on our existing committments
		command = { type = removecore which = 500 } #Aden
	}
}
#End of Submission of Aden Sequence
#-----------------------------------------------------------------------------------------------

#-----------------------------------------------------------------------------------------------
#Submission of Al-Kharam Sequence - if owned by somebody other than Ormuz
#by sturmvogel

#(1498-1680) Sultan has defied our demands
event = {
	id = 260049
	trigger = {
		event = 338276 #ProvinceSpec*504: The Portuguese Covet Ormuz
	}
	random = no
	country = POR
	name = "EVENTNAME18103" #Sultan has defied our demands
	desc = "EVENTHIST260049"
	#-#The treacherous Sultan of Hormuz has refused us the right to set up a base in his Kingdom. The infidel should be punished!

	date = { day = 1 month = january year = 1498 }
	offset = 10
	deathdate = { day = 1 month = january year = 1680 }

	action_a = {
		name = "ACTIONNAME18034A" #Let's teach them a lesson
		command = { type = conquistador which = 549 } #Goa
		command = { type = inf which = 549 value = 10000 } #Goa
		command = { type = cav which = 549 value = 7000 } #Goa
		command = { type = transports which = 549 value = 5 }
		command = { type = warships which = 549 value = 5 }
		command = { type = treasury value = -100 }
	}
	action_b = {
		name = "ACTIONNAME18034B" #Who cares?
		command = { }
	}
}
#(1498-1680) Submission of Al-Kharam
event = {
	id = 260055
	trigger = {
		owned = { province = 505 data = -1 } #Al-Kharam
		control = { province = 505 data = -1 } #Al-Kharam
	}
	random = no
	country = POR
	name = "EVENTNAME260055" #Al-Kharam is ours
	desc = "EVENTHIST260055"
	#-#Al-Kharam has fallen to our glorious troops! Let's send reinforcements to finish the Sultan of the infidels.

	date = { day = 1 month = january year = 1498 }
	offset = 30
	deathdate = { day = 1 month = january year = 1680 }

	action_a = {
		name = "ACTIONNAME260055A" #Send reinforcements
		command = { type = transports which = 505 value = 5 } #Al-Kharam
		command = { type = warships which = 505 value = 5 } #Al-Kharam
		command = { type = inf which = 505 value = 6000 } #Al-Kharam
		command = { type = cav which = 505 value = 2000 } #Al-Kharam
		command = { type = treasury value = -100 }
	}
	action_b = {
		name = "ACTIONNAME260055B" #Don't waste our money
		command = { }
	}
}
#End of Submission of Al-Kharam Sequence
#-----------------------------------------------------------------------------------------------

#-----------------------------------------------------------------------------------------------
#Independence of Cochin Sequence
#by sturmvogel

#(1498-1658) A foothold in India -I-
event = {
	id = 260099
	trigger = {
		NOT = {
			owned = { province = 573 data = MYS }
			owned = { province = 573 data = VIJ }
			owned = { province = 573 data = ORI }
			owned = { province = 573 data = CHA }
			owned = { province = 573 data = RAJ }
			owned = { province = 573 data = MTR }
			owned = { province = 573 data = MKS }
			owned = { province = 573 data = -1 }
		}
		OR = {
			discovered = 573 #Cochin
			discovered = 1070 #Lacquedive Islands
			discovered = 1071 #Coast of Malabar
		}
	}
	random = no
	country = POR
	name = "EVENTNAME260099" #A foothold in India
	desc = "EVENTHIST260099"
	#-#Following the bombardment of Calicut in 1501, Pedro lvares Cabral sailed for Cochin where he bought pepper and established friendly relations with the local Raja, who wished to get out from under Calicut's thumb. On Vasco da Gama's return voyage to India in 1502 he first stopped at Cochin where he founded a feitoria under the Raja's protection and persuaded him to sell spices to the Portuguese at fixed prices. After De Gama's departure in 1503 Calicut attempted to restore his rule over Cochin and burnt the city to the ground, although the Portuguese traders were able to offer sanctuary to the Raja in their feitoria. Later that year another fleet arrived and it left a small force under Duarte Pacheco Pereira to defend the city and build a fortress. Pereira was able to defeat repeated Samothiri attacks and so exhausted them that they sued for peace.

	date = { day = 1 month = january year = 1498 }
	offset = 180
	deathdate = { day = 1 month = january year = 1658 }

	action_a = {
		name = "ACTIONNAME260099A" #Aid the Raja of Cochin
		command = { type = relation which = VIJ value = 50 }
		command = { type = relation which = MYS value = 50 }
		command = { type = sleepevent which = 260100 } #POR: A foothold in India -II-
	}
}
#(1498-1658) A foothold in India -II-
event = {
	id = 260100
	trigger = {
		OR = {
			owned = { province = 573 data = MYS }
			owned = { province = 573 data = VIJ }
			owned = { province = 573 data = ORI }
			owned = { province = 573 data = CHA }
			owned = { province = 573 data = RAJ }
			owned = { province = 573 data = MTR }
			owned = { province = 573 data = MKS }
		}
		OR = {
			discovered = 573 #Cochin
			discovered = 1070 #Lacquedive Islands
			discovered = 1071 #Coast of Malabar
		}
	}
	random = no
	country = POR
	name = "EVENTNAME260099" #A foothold in India
	desc = "EVENTHIST260099"
	#-#Following the bombardment of Calicut in 1501, Pedro lvares Cabral sailed for Cochin where he bought pepper and established friendly relations with the local Raja, who wished to get out from under Calicut's thumb. On Vasco da Gama's return voyage to India in 1502 he first stopped at Cochin where he founded a feitoria under the Raja's protection and persuaded him to sell spices to the Portuguese at fixed prices. After De Gama's departure in 1503 Calicut attempted to restore his rule over Cochin and burnt the city to the ground, although the Portuguese traders were able to offer sanctuary to the Raja in their feitoria. Later that year another fleet arrived and it left a small force under Duarte Pacheco Pereira to defend the city and build a fortress. Pereira was able to defeat repeated Samothiri attacks and so exhausted them that they sued for peace.

	date = { day = 1 month = january year = 1498 }
	offset = 180
	deathdate = { day = 1 month = january year = 1658 }

	action_a = {
		name = "ACTIONNAME260100A" #Help our friend
		command = { type = treasury value = -50 }
		command = { type = sleepevent which = 260099 } #POR: A foothold in India -I-
	}
}
#(1498-1660) Independence of Cochin
event = {
	id = 260101 #triggered by COC_355004
	random = no
	country = POR
	name = "EVENTNAME260101" #The infidel yield to our demands
	desc = "EVENTHIST260101"
	#-#The Raja's overlord has acceded to our demands for our ally's independence.

	action_a = {
		name = "EXCELLENT"
		command = { type = vassal which = COC }
		command = { type = relation which = COC value = 100 }
		command = { type = treasury value = 100 }
		command = { type = addcore which = 573 } #Cochin
	}
}
#(1498-1660) Fight over Cochin
event = {
	id = 260102 #triggered by COC_355002
	random = no
	country = POR
	name = "EVENTNAME260102" #The infidel refuses our demand
	desc = "EVENTHIST260102"
	#-#The heathen overlord of Cochin has dared to reject our demands and attacked our ally. He will regret this.

	action_a = {
		name = "ACTIONNAME260102A" #Let's teach them a lesson
		command = { type = vassal which = COC }
		command = { type = relation which = COC value = 100 }
		command = { type = inf which = 573 value = 5000 } #Cochin
		command = { type = cav which = 573 value = 5000 } #Cochin
		command = { type = treasury value = -50 }
	}
}
#(1498-1660) Annexation of Cochin
event = {
	id = 260103 #triggered by ProvinceSpec_338450
	random = no
	country = POR
	name = "EVENTNAME260103" #Cochin is ours
	desc = "EVENTHIST260103"
	#-#Our brave troops have captured Cochin.

	action_a = {
		name = "ACTIONNAME260103A" #We must defend what is now ours
		command = { type = annex which = COC }
		command = { type = addcore which = 573 } #Cochin
		command = { type = removecot which = 547 } #Gujarat
		command = { type = removecot which = 569 } #Kerala
		command = { type = treasury value = 50 }
		command = { type = sleepevent which = 355003 } #COC: Appeal to Portugal -I-
		command = { type = sleepevent which = 355006 } #COC: Appeal to Portugal -II-
		command = { type = sleepevent which = 355007 } #COC: Appeal to Portugal -III-
		command = { type = trigger which = 260137 } #POR: The gates of India
	}
}
#(1504-1662) Cochin Asks for Assistance
event = {
	id = 260221 #triggered by COC_355003 A / COC_355006 A / COC_355007 A
	random = no
	country = POR
	name = "EVENTNAME260221" #Cochin Asks for Assistance
	desc = "EVENTHIST260221"
	#-#The Deposed Raja of Cochin appeals to Portugal for aid.

	action_a = {
		name = "ACTIONNAME260221A" #We Will Aid Him
		command = { type = inherit which = COC }
		command = { type = relation which = CLC value = -100 }
		command = { type = treasury value = 50 }
		command = { type = addcore which = 573 } #Cochin
		command = { type = removecot which = 547 } #Gujarat
		command = { type = removecot which = 569 } #Kerala
		command = { type = sleepevent which = 338445 } #ProvinceSpec*573: Portuguese aid the rebellious Raja of Cochin (Muslim or Buddhist)
		command = { type = sleepevent which = 338447 } #ProvinceSpec*573: Portuguese aid the rebellious Raja of Cochin (Hindu, Sikh or Jain)
		command = { type = sleepevent which = 338450 } #ProvinceSpec*573: Cochin is lost
		command = { type = trigger which = 260137 } #POR: The gates of India
	}
}
#(1498-1660 or 1504-1662) The gates of India
event = {
	id = 260137 #triggered by POR_250103 or POR_260221
	trigger = {
		NOT = {
			event = 260109 #POR: Move the capital of Portuguese India to Goa
			event = 260145 #POR: Goa the Capital of Portuguese India
		}
	}
	random = no
	country = POR
	name = "EVENTNAME260137" #The gates of India
	desc = "EVENTHIST260137"
	#-#With the capture of Cochin, the gates of India are now open.

	action_a = {
		name = "GREAT"
		command = { type = inf which = 573 value = 5000 } #Cochin
		command = { type = warships which = 573 value = 5 }
		command = { type = cot which = 573 } #Cochin
	}
}
#End of Independence of Cochin Sequence
#-----------------------------------------------------------------------------------------------

#(1500-1580) Sugar in So Tom
event = {
	id = 260024
	trigger = {
		owned = { province = 816 data = -1 } #Fernando Po
		control = { province = 816 data = -1 }
		NOT = { provincereligion = { province = 816 data = pagan } } #not a TP
	}
	random = no
	country = POR
	name = "EVENTNAME260024" #Sugar in So Tom
	desc = "EVENTHIST260024"
	#-#By the mid-1500s there were 80 sugar mills on So Tom producing 2150 tons of sugar a year. Although the sugar was not of good quality, the large quantity produced enabled the island to dominate the European market.

	date = { day = 0 month = january year = 1500 }
	offset = 30
	deathdate = { day = 0 month = january year = 1580 }

	action_a = {
		name = "ACTIONNAME260024A" #We will become rich!
		command = { type = treasury value = -500 }
		command = { type = provincetax which = 816 value = 1 } #Fernando Po
		command = { type = gainmanufactory which = 816 value = refinery }
		command = { type = addcore which = 816 } #Fernando Po
	}
	action_b = {
		name = "ACTIONNAME260024B" #Too expensive
		command = { type = vp value = -5 }
	}
}

#(1500-1600) Colonial Pact
#Idea: King of Brazil - Scripting by Annibale
event = {
	id = 18006
	trigger = {
		OR = {
			discovered = 203 #Recife
			discovered = 205 #Pernambuc
			discovered = 207 #Diamentina
			discovered = 209 #Salvador
		}
	}
	random = no
	country = POR
	name = "EVENTNAME18006" #Colonial Pact
	desc = "EVENTHIST18006"
	#-#In order to secure trade and promote Portuguese commercial hegemony, the crown instituted protectionist policies which granted royal companies or even individuals who lead expeditions of exploration and colonization monopolies in certain fields.

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

	action_a = {
		name = "ACTIONNAME18006A" #Strictly Control Trading Rights
		command = { type = domestic which = MERCANTILISM value = 2 }
		command = { type = relation which = CAS value = -50 }
		command = { type = relation which = SPA value = -50 }
		command = { type = relation which = ENG value = -50 }
		command = { type = relation which = FRA value = -50 }
	}
	action_b = {
		name = "ACTIONNAME18006B" #Relax Trading Restrictions
		command = { type = domestic which = MERCANTILISM value = -1 }
		command = { type = relation which = CAS value = 20 }
		command = { type = relation which = SPA value = 20 }
		command = { type = relation which = ENG value = 20 }
		command = { type = relation which = FRA value = 20 }
	}
}

#(1502-1523) Bombardment of Calicut
event = {
	id = 260034
	trigger = {
		OR = {
			discovered = 569 #Kerala
			event = 18012 #POR: Commercial Conflict in the Indian Ocean
		}
		exists = CLC
	}
	random = no
	country = POR
	name = "EVENTNAME364000" #Bombardment of Calicut
	desc = "EVENTHIST260034"
	#-#Calicut refused Vasco Da Gama's request that he eject all Muslim merchants from the city.

	date = { day = 1 month = february year = 1502 }
	offset = 30
	deathdate = { day = 29 month = december year = 1523 } #just before Vasco da Gama's death

	action_a = {
		name = "ACTIONNAME260034A" #Bomb the city!
		command = { type = trigger which = 364000 } #CLC: Bombardment of Calicut
	}
}
#(1502) Malabar Coast
event = {
	id = 260220 #triggered by COC_355000
	random = no
	country = POR
	name = "EVENTNAME260220" #Quarrel in Malabar
	desc = "EVENTHIST260220"
	#-#Seeking a foothold in India, Portugal uses dissension among the resentful vassals of the Samoothiri Kings of Calicut to its advantage.

	action_a = {
		name = "ACTIONNAME260220A" #Protect the Raja of Cochin
		command = { type = vassal which = COC }
		command = { type = relation which = COC value = 100 }
		command = { type = relation which = CLC value = -100 }
		command = { type = addcore which = 573 } #Cochin
	}
	action_b = {
		name = "ACTIONNAME260220B" #Leave the Raja to his Fate
		command = { type = relation which = COC value = -100 }
		command = { type = relation which = CLC value = 100 }
		command = { type = sleepevent which = 364001 } #CLC: The Treachery of Cochin
	}
}

#(1503-1511) Portuguese Attacks on Muslim Merchantmen
event = {
	id = 260056
	trigger = {
		event = 18012 #POR: Commercial Conflict in the Indian Ocean
		owned = { province = 756 data = -1 }
	}
	random = no
	country = POR
	name = "EVENTNAME260056" #Portuguese Attacks on Muslim Merchantmen
	desc = "EVENTHIST260056"
	#-#When the Portuguese captured Socotra they used it as a base to prey on Muslim merchants sailing to and from the Red Sea. They also expelled all the Muslims who were in the process of converting the Socotrans to Islam.

	date = { day = 0 month = january year = 1503 }
	offset = 60
	deathdate = { day = 1 month = january year = 1511 }

	action_a = {
		name = "ACTIONNAME260056A" #The trade of the Muslims is ruined
		command = { type = provincereligion which = 756 value = miaphysite }
		command = { type = treasury value = 100 }
		command = { type = transports which = 5 value = 756 }
	}
}

#(1503-1520) Ravasco attacks Zanzibar
event = {
	id = 260108
	trigger = {
		exists = ZAN
		event = 260107 #POR: The Island of Zanzibar
	}
	random = no
	country = POR
	name = "EVENTNAME260108" #Attack on Zanzibar
	desc = "EVENTHIST260108"
	#-#In 1503 Ruy Lourenco Ravasco was separated from the 1503 fleet led by Antonio da Saldanha to blockade the Red Sea. He took refuge in Kilwa where he was well-treated, but then he seized 20 ships in the Straits of Zanzibar during a two month patrol, but he freed them if a cash ransom was paid. When he sailed to Zanzibar to resupply he attempted to overawe the locals. After a brief skirmish on one of the beaches its sheik agreed to pay tribute to Portugal. This was done under unwillingly and only one other payment was made until the Portuguese conquered Mombasa in 1598 and became a much more imminent threat. Despite its ill-treatment at the hands of Ravasco, Zanzibar remained friendly with the Portuguese until they were occupied by the Omanis nearly two centuries later.

	date = { day = 1 month = january year = 1503 }
	offset = 120
	deathdate = { day = 1 month = january year = 1520 }

	action_a ={
		name = "ACTIONNAME260108A" #What's mine is mine and what's yours is mine
		command = { type = vassal which = ZAN }
		command = { type = treasury value = 25 }
		command = { type = relation which = ZAN value = -25 }
		command = { type = trigger which = 373001 } #ZAN: A pirate by any other name
	}
}

#(1505-1560) Mombasa is a threat to our hegemony in East Africa
#by sturmvogel
event = {
	id = 260116
	trigger = {
		discovered = 763
		owned = { province = 763 data = MOM } #Mombasa
	}
	random = no
	country = POR
	name = "EVENTNAME260116" #Mombasa is a threat to our hegemony in East Africa
	desc = "EVENTHIST260116"
	#-#The regimento given to Don Francisco Almeida in 1505 by Dom Manuel I instructed him to capture and fortify both Kilwa and Mombasa before proceeding onwards to India. This was an attempt to control the most powerful trading states in East Africa. Almeida followed his instructions at Kilwa, but merely sacked Mombasa and sailed to India.

	date = { day = 1 month = july year = 1505 }
	offset = 90
	deathdate = { day = 1 month = january year = 1560 }

	action_a = {
		name = "ACTIONNAME260116A" #Sack Mombasa
		command = { type = trigger which = 336001 } #MOM: Mombasa burnt by the Portuguese
		command = { type = treasury value = 25 }
		command = { type = relation which = MOM value = -100 }
	}
	action_b = {
		name = "ACTIONNAME260116B" #We must hold Mombasa for ourselves
		command = { type = trigger which = 336002 } #MOM: The Portuguese seek to conquer us
		command = { type = relation which = MOM value = -200 }
		command = { type = casusbelli which = MOM value = 60 }
		command = { type = addcore which = 763 } #Mombasa
	}
	action_c = {
		name = "ACTIONNAME260116C" #We will rule through a native puppet
		command = { type = relation which = MOM value = -100 }
		command = { type = vassal which = MOM }
	}
}

#(1505-1560) Capture of Mombasa
event = {
	id = 260117
	trigger = {
		control = { province = 763 data = -1 } #Mombasa
		event = 260116 #POR: Mombasa is a threat to our hegemony in East Africa
		exists = MOM
	}
	random = no
	country = POR
	name = "EVENTNAME260117" #Capture of Mombasa
	desc = "EVENTHIST260117"
	#-#We have captured Mombasa as per D. Manuel's instructions. What shall we do now?

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

	action_a = {
		name = "ACTIONNAME260116B" #We must hold Mombasa for ourselves
		command = { type = annex which = MOM }
		command = { type = treasury value = 25 }
		command = { type = addcore which = 763 } #Mombasa
	}
	action_b = {
		name = "ACTIONNAME260116C" #We will rule through a native puppet
		command = { type = vassal which = MOM }
		command = { type = treasury value = 25 }
		command = { type = removecore which = 763 } #Mombasa
	}
}

#(1506-1544) Kongo and Christianity
event = {
	id = 260166
	trigger = {
		exists = KON
		OR = {
			religion = catholic
			religion = counterreform
		}
		event = 203000 #KON: Diogo Cao arrives in Kongo
	}
	random = no
	country = POR
	name = "EVENTNAME260166" #Kongo and Christianity
	desc = "EVENTHIST260166"
	#-#The Kongo political system provided for the open election of a successor from among the descendants of the first King. Upon his father's death, Afonso's non-Christian brother attempted to deny him the election. If Afonso manage to defeat him and to take the throne, he will become a good friend for us in the region.

	date = { day = 0 month = june year = 1506 }
	offset = 60
	deathdate = { day = 0 month = january year = 1544 }

	action_a = {
		name = "OK"
		command = { type = trigger which = 203004 } #KON: Kongo converts to Christianity
	}
}
#(1506-1544) Portuguese vassalization of Kongo
event = {
	id = 260032 #triggered by KON_203004 A
	random = no
	country = POR
	name = "EVENTNAME260032" #The Portuguese receive Kongo as vassal
	desc = "EVENTHIST260032"
	#-#When the King of the Kongo Joo I died, his son Afonso I took over and initiated strong friendly relations between Kongo and Portugal. Afonso allowed Portuguese Christian missionaries into Kongo. The Catholic Church which was introduced into Kongo was under the control of the Portuguese Kings. It wasn't long before the relationship between Portugal and the Kongo became completely one sided with the Portuguese exploiting the Kongo for the slave trade. The Kings of the Kongo could do little to stop this as they were dependant on Portguese support to stay in power.

	action_a = {
		name = "ACTIONNAME260032A" #Recieve Kongo as vassal
		command = { type = trade value = 50 }
		command = { type = vassal which = KON }
	}
}

#(1507-1515) Portuguese force-vassalization of Ormuz
event = {
	id = 260033
	trigger = {
		exists = ORM
		OR = {
			discovered = 505 #Al-Kharam
			discovered = 1063 #Straits of Ormuz
		}
		NOT = { vassal = { country = POR country = ORM } }
	}
	random = no
	country = POR
	name = "EVENTNAME260033" #Ormuz engaged in large naval battle
	desc = "EVENTHIST260033"
	#-#In October of 1507 Afonso Albuquerque defeated Ormuz in a large naval battle, capturing the famous ship the Meri.

	date = { day = 0 month = october year = 1507 }
	offset = 30
	deathdate = { day = 1 month = january year = 1515 }

	action_a = {
		name = "ACTIONNAME260033A" #Ormuz shall submit
		command = { type = trigger which = 423000 } #ORM: Ormuz submits to Portugal
	}
}
#(1507-1515) Portuguese force-vassalization of Ormuz
event = {
	id = 260008 #triggered by ORM_423000
	random = no
	country = POR
	name = "EVENTNAME260008" #Ormuz submits to Portugal
	desc = "EVENTHIST260008"
	#-#Ormuz submitted to Portugal after losing a large naval battle against them. Shortly afterwards, Albuquerque's plans to build a fortress were cut short when Ormuz under the guidance of Cogeatar broke its vassalage to Portugal and three of Albuquerque's captains deserted him and sailed off to India.

	action_a = {
		name = "GREAT"
		command = { type = vassal which = ORM }
		command = { type = warships which = 505 value = 1 } #Al-Kharam
		command = { }
	}
}

#(1507-1511) Portuguese AI war vs Ormuz
event = {
	id = 260095
	trigger = {
		discovered = 505
		ai = yes
		NOT = { war = { country = POR country = KIL } }
		NOT = { war = { country = POR country = MOM } }
		NOT = { vassal = { country = POR country = ORM } }
		OR = {
			owned = { province = 768 data = -1 } #Mtawa
			owned = { province = 770 data = -1 } #Nampuia
		}
	}
	random = no
	country = POR
	name = "AI_EVENT"
	desc = ""

	date = { day = 0 month = december year = 1507 }
	offset = 60
	deathdate = { day = 1 month = january year = 1511 }

	action_a = {
		name = "OK"
		command = { type = war which = ORM }
	}
}

#-----------------------------------------------------------------------------------------------
#Submission of Goa Sequence
#reworked by Twoflower

#(1510-1660) Submission of Goa
event = {
	id = 18038
	trigger = {
		NOT = {
			owned = { province = 549 data = MYS }
			owned = { province = 549 data = VIJ }
			owned = { province = 549 data = ORI }
			owned = { province = 549 data = CHA }
			owned = { province = 549 data = RAJ }
			owned = { province = 549 data = MTR }
			owned = { province = 549 data = MKS }
			owned = { province = 549 data = -1 }
		}
		discovered = 549
	}
	random = no
	country = POR
	name = "EVENTNAME18038" #The gates of India
	desc = "EVENTHIST18038"
	#-#Having captured Mombasa and Kilwa in 1503-1504, and Ormuz in 1507, Afonso de Albuquerque, following the route of Vasco da Gama, reached Goa in 1510. Annoyed by the constant provocations from the local Muslim ruler and encouraged by the Hindu ruler of Vijayanagar, he wished to obtain a base for trade and further expeditions in India. In March 1510 he assaulted the wealthy town of Goa, but had to abandon the city 2 months later due to lack of reinforcements. However 6 months later he came back and conquered Goa for the second time in November 1510. Goa remained a Portuguese possession for the next 450 years and became a significant center of trade with an influence extending to almost all of India.

	date = { day = 1 month = february year = 1510 }
	offset = 250
	deathdate = { day = 1 month = january year = 1660 }

	action_a = {
		name = "ACTIONNAME18038A" #Demand Goa
		command = { type = relation which = VIJ value = 50 }
		command = { type = relation which = MYS value = 50 }
		command = { type = sleepevent which = 18062 } #POR: The gates of India
		command = { type = sleepevent which = 338006 } #ProvinceSpec*549: Portuguese offer
	}
}
#(1498-1660) Submission of Goa
event = {
	id = 18062
	trigger = {
		OR = {
			owned = { province = 549 data = MYS }
			owned = { province = 549 data = VIJ }
			owned = { province = 549 data = ORI }
			owned = { province = 549 data = CHA }
			owned = { province = 549 data = RAJ }
			owned = { province = 549 data = MTR }
			owned = { province = 549 data = MKS }
		}
		discovered = 549
	}
	random = no
	country = POR
	name = "EVENTNAME18038" #The gates of India
	desc = "EVENTHIST18062"
	#-#Having captured Mombasa and Kilwa in 1503-1504, and Ormuz in 1507, Afonso de Albuquerque, following the route of Vasco da Gama, reached Goa in 1510. The wealthy city of Goa on the western coast was ruled by a Hindu governor who was permantently in conflict with the Muslim states surrounding him. Albuquerque offered military support to the ruler of Goa in exchange for the city and the lands around it. Hoping to finally defeat his enemies, the Hindu accepted.

	date = { day = 1 month = february year = 1510 }
	offset = 250
	deathdate = { day = 1 month = january year = 1660 }

	action_a = {
		name = "ACTIONNAME18062A" #Make an offer
		command = { type = treasury value = -50 }
		command = { type = sleepevent which = 18038 } #POR: The gates of India
		command = { type = sleepevent which = 338005 } #ProvinceSpec*549: Portuguese demand Goa
	}
}
#(1510-1660) Submission of Goa
event = {
	id = 18040 #triggered by Provincespec_338005 B / Provincespec_338006 A
	random = no
	country = POR
	name = "EVENTNAME18040" #The infidel yield to our demands
	desc = "EVENTHIST18040"
	#-#The heathen ruler of Goa has submitted to us and cedes the city of Goa. This can be our key to the wealth of India.

	action_a = {
		name = "EXCELLENT"
		command = { type = treasury value = 100 }
		command = { type = inf which = 549 value = 5000 } #Goa
		command = { type = cav which = 549 value = 5000 } #Goa
		command = { type = addcore which = 549 } #Goa
		command = { type = losebuilding which = 549 value = bailiff } #Goa
	}
}
#(1510-1660) Submission of Goa
event = {
	id = 18041 #triggered by Provincespec_338005 A / Provincespec_338006 B
	random = no
	country = POR
	name = "EVENTNAME18041" #The infidel refuses our offer
	desc = "EVENTHIST18041"
	#-#The heathen ruler of Goa has dared to reject our generous offer and attacked our army. He will regret this.

	action_a = {
		name = "ACTIONNAME18034A" #Let's teach them a lesson
		command = { type = inf which = 549 value = 10000 } #Goa
		command = { type = cav which = 549 value = 7000 } #Goa
		command = { type = treasury value = -50 }
	}
}
#(1510-1660) Submission of Goa
event = {
	id = 18043 #triggered by ProvinceSpec_338007
	random = no
	country = POR
	name = "EVENTNAME18043" #Goa is ours
	desc = "EVENTHIST18043"
	#-#Our brave troops had captured Goa, the gates of India are now open.

	action_a = {
		name = "ACTIONNAME18034A" #Let's teach them a lesson
		command = { type = cav which = 549 value = 5000 } #Goa
		command = { type = warships which = 549 value = 5 }
		command = { type = addcore which = 549 } #Goa
		command = { type = losebuilding which = 549 value = bailiff } #Goa
		command = { type = population which = 549 value = -1000 } #Goa
		command = { type = treasury value = 50 }
	}
}
#End of Submission of Goa Sequence
#-----------------------------------------------------------------------------------------------

#(1511-1530) The Portuguese Abandon Socotra
event = {
	id = 260057
	trigger = {
		event = 18012 #POR: Commercial Conflict in the Indian Ocean
		owned = { province = 756 data = -1 } #Socotra
		exists = MRA #Mahra (historical owner of Socotra)
	}
	random = no
	country = POR
	name = "EVENTNAME260057" #The Portuguese Abandon Socotra
	desc = "EVENTHIST260057"
	#-#When the Portuguese captured Socotra they used it as a base to prey on Muslim merchants sailing to and from the Red Sea, but when Albuquerque later captured Goa he ordered Socotra to be abandoned and its fortress dismantled because the Muslims were no longer sailing within reach of ships based at Socotra.

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

	action_a = {
		name = "ACTIONNAME260057A" #Abandon it, it's a waste of our resources
		command = { type = fortress which = 756 value = -2 } #Socotra
		command = { type = removecore which = 756 } #Socotra
		command = { type = cedeprovince which = MRA value = 756 } #Socotra
		command = { type = INF which = 549 value = 2000 }
	}
	action_b = {
		name = "ACTIONNAME260057B" #No, let's keep it
		command = { type = desertion which = -1 value = 1000 }
		command = { type = relation which = MRA value = -50 }
		command = { type = treasury value = -50 }
	}
}

#(1511-1560) Angoche has resisted our efforts to monopolize trade
#by sturmvogel
event = {
	id = 260115
	trigger = {
		discovered = 769
		owned = { province = 769 data = ANG } #Niassa
	}
	random = no
	country = POR
	name = "EVENTNAME260115" #Angoche has resisted our efforts to monopolize trade
	desc = "EVENTHIST260115"
	#-#The mainly Muslim merchants of the city-state of Angoche were not happy at the Portuguese efforts to monopolize the gold trade as well as the constant harassment of Muslims in general. They refused to cooperate with Portuguese efforts to obtain provisions and thwarted the Portuguese as much as they could. The Governor-General of India, Afonso de Albuquerque, ordered the town razed to the ground as an object lesson. Antnio de Saldanha, Captain of Sofala sailed on 1 July 1511 with some 60 men and burnt Angoche despite 1200 defenders.

	date = { day = 1 month = march year = 1511 }
	offset = 180
	deathdate = { day = 1 month = january year = 1560 }

	action_a = {
		name = "ACTIONNAME260115A" #Angoche must be punished
		command = { type = relation which = ANG value = -100 }
		command = { type = trigger which = 441001 } #ANG: Angoche burnt by the Portuguese
	}
	action_b = {
		name = "ACTIONNAME260115B" #Let them be
		command = { type = trade value = 50 }
	}
}

#(1511-1513) Da Breu expedition
event = {
	id = 260951
	trigger = {
		owned = { province = 677 data = -1 } #Malacca
		control = { province = 677 data = -1 } #Malacca
		discovered = 677
	}
	random = no
	country = POR
	name = "EVENTNAME260951" #Da Breu expedition
	desc = "EVENTHIST260951"
	#-#On December 1511 Albuquerque sent three ships under da Breu from Malacca to explore eastwards. Da Breu expedition traveled from Malacca to Madura, Bali, Lombok, Aru and Banda. Two ships were wrecked at Banda. Da Breu returned to Malacca. Francisco Serro repaired ship and continued to Ambon, Ternate, and Tidore. Serro offered support to Ternate in a dispute with Tidore. His men built a Portuguese post at Ternate.

	date = { day = 1 month = december year = 1511 }
	offset = 30
	deathdate = { day = 1 month = january year = 1513 }

	action_a = {
		name = "ACTIONNAME260951A" #Explore!
		command = { type = explorer which = 677 } #Malacca
	}
}

#(1512-1560) Portugal abandons Kilwa
event = {
	id = 260106
	trigger = {
		event = 337800 #CoTs*766: Rise of Kenya and decline of Kilwa
		vassal = { country = POR country = KIL }
	}
	random = no
	country = POR
	name = "EVENTNAME260106" #Portugal abandons Kilwa
	desc = "EVENTHIST260106"
	#-#Unable to even pay the expenses of the garrison of the fort in Kilwa, Lisbon orders the garrison withdrawn to India in 1512.

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

	action_a = {
		name = "ACTIONNAME260106A" #This place costs more than it is worth
		command = { type = breakoverlord which = KIL }
	}
}

#(1513) Commercial Treaty with Calicut
event = {
	id = 260222
	random = no
	country = POR
	name = "EVENTNAME260222" #Commercial Treaty with Calicut
	desc = "EVENTHIST260222"
	#-#After over a decade of hostility, Portugal and Calicut normalized relations with the signing of a treaty of peace, friendship, and commerce.

	date = { day = 1 month = march year = 1513 }

	action_a = {
		name = "ACTIONNAME260222A" #Sign the Treaty
		command = { type = treasury value = 200 }
		command = { type = merchants value = 3 }
	}
	action_b = {
		name = "ACTIONNAME260222B" #Refuse the Treaty
		command = { type = relation which = CLC value = -100 }
	}
}

#(1515-1517) The Portuguese take possession of Ormuz
event = {
	id = 260009
	trigger = {
		exists = ORM
		event = 423005 #ORM: Ormuz is secured for Portugal
	}
	random = no
	country = POR
	name = "EVENTNAME260009" #Ormuz is secured for Portugal
	desc = "EVENTHIST260009"
	#-#In 1515 Albuquerque had the Persian governor of Ormuz, Reys Hamad, killed. He then had a fortress built in Ormuz and took control of Ormuz's arsenal making the Sheik of Ormuz a virtual puppet and giving Portugal control of Ormuz and its territory.

	date = { day = 0 month = april year = 1515 }
	offset = 30
	deathdate = { day = 0 month = january year = 1517 }

	action_a = {
		name = "ACTIONNAME260009A" #Ormuz is ours!
		command = { type = annex which = ORM }
		command = { type = ART which = 505 value = 10 } #Al Kharam
		command = { type = fortress which = 505 value = 1 } #Al Kharam
		command = { type = stability value = 1 }
	}
}

#(1515-1600) Mascate belongs tu us
event = {
	id = 260157
	trigger = {
		event = 260009 #POR: Ormuz is secured for Portugal
		owned = { province = 504 data = -1 } #Mascate
		NOT = {
			core = { province = 504 data = -1 } #Mascate
		}
	}
	random = no
	country = POR
	name = "EVENTNAME260157" #Mascate belongs to us
	desc = "EVENTHIST260009"
	#-#In 1515 Albuquerque had the Persian governor of Ormuz, Reys Hamad, killed. He then had a fortress built in Ormuz and took control of Ormuz's arsenal making the Sheik of Ormuz a virtual puppet and giving Portugal control of Ormuz and its territory.

	date = { day = 0 month = april year = 1515 }
	offset = 90
	deathdate = { day = 29 month = december year = 1600 }

	action_a = {
		name = "GOOD"
		command = { type = addcore which = 504 } #Mascate
	}
}

#(1517) Portuguese Indian empire firmly established
event = {
	id = 260059
	trigger = {
		OR = {
			vassal = { country = ORM country = POR }
			AND = {
				NOT = { exists = ORM }
				OR = {
					owned = { province = 505 data = -1 } #Al Kharam
					owned = { province = 504 data = -1 } #Mascate
				}
			}
		}
		owned = { province = 549 data = -1 } #Goa
		owned = { province = 677 data = -1 } #Malacca
	}
	random = no
	country = POR
	name = "EVENTNAME260059" #The accomplishments of Afonso Albuquerque
	desc = "EVENTHIST260059"
	#-#Shortly before Afonso Albuquerque died in December of 1515, he sailed to Ormuz and received its ruler as a vassal. By the time Albuquerque died Ormuz, Goa, and Malacca were securely in Portuguese hands. Dominance of the Indies by Portugal was firmly established.

	date = { day = 0 month = january year = 1517 }
	offset = 90
	deathdate = { day = 29 month = december year = 1517 }

	action_a = {
		name = "ACTIONNAME260059A" #The Indies are under our control!
		command = { type = DIP which = 3 value = 120 }
	}
}

#(1520) Portuguese vassalization of Ethiopia
#by Fodoron
event = {
	id = 260022 #triggered by ETH_165015 B
	random = no
	country = POR
	name = "EVENTNAME260022" #The Portuguese vassalization of Ethiopia.
	desc = "EVENTHIST260022"
	#-#In 1487 Joao II of Portugal ordered Bartolomeu Dias around Africa by sea, but he also ordered his trusted spymaster and diplomat, Pro da Covilh, to reach India and the Kingdom of Prester John by land. Pro da Covilh spoke fluent arabic, and with a companion travelled to Mecca. From there he travelled alone to Goa and Calicut, learning about currents, winds and the origen of the different spices. He then returned to Cairo. From there he forwarded his information together with advise on the best sea-route to India to his King, before continuing to Aden, Ormuz, and Saylac, in the coast of Adal. He finally arrived to Ethiopia in 1490, being well received by Emperor Eskander. After four years of stay, he was preparing his departure, with a proposal of an alliance from the Emperor of Ethiopia to the King of Portugal, when Eskander died. He was succeded by his brother Naod, who forbade Pro's departure. Around 1510, King Manuel received an ambassador from Ethiopia, an Armenian called Matthew. In the name of Empress Eleni, he proposed an alliance between Ethiopia and Portugal. It would be 10 years before Portuguese ambassadors went to Ethiopia with a positive answer. By then things had changed and the new Emperor showed no interest. However this time Emperor Dawit II, better known as Lebna Dengel, might be having problems with their Muslim neighbours, as he is requesting to enter vassalage to the King of Portugal. If we accept, the Ethiopians will expect that we help them fend off the heathens when they attack.

	action_a = {
		name = "ACTIONNAME260022A" #Surprising
		command = { type = vassal which = ETH }
		command = { type = relation which = ETH value = 250 }
	}
	action_b = {
		name = "ACTIONNAME260022B" #Not interested
		command = { type = vp value = -5 }
	}
}

#(1522-1580) Settlement at Hitu
event = {
	id = 260152
	trigger = {
		owned = { province = 715 data = -1 } #Ceram
	}
	random = no
	country = POR
	name = "EVENTNAME260152" #Settlement at Hitu
	desc = "EVENTHIST260152"
	#Ceram belongs to us!

	date = { day = 1 month = january year = 1522 }
	offset = 40
	deathdate = { day = 1 month = january year = 1580 }

	action_a = {
		name = "GOOD"
		command = { type = addcore which = 715 } #Ceram
	}
}

#(1522-1580) Settlement on Flores
event = {
	id = 260153
	trigger = {
		owned = { province = 711 data = -1 } #Flores
	}
	random = no
	country = POR
	name = "EVENTNAME260153" #Settlement on Flores
	desc = "EVENTHIST260153"
	#Flores belongs to us!

	date = { day = 1 month = january year = 1522 }
	offset = 40
	deathdate = { day = 1 month = january year = 1580 }

	action_a = {
		name = "GOOD"
		command = { type = addcore which = 711 } #Flores
	}
}

#(1522-1580) Settlement on Timor
event = {
	id = 260154
	trigger = {
		owned = { province = 712 data = -1 } #Timor
	}
	random = no
	country = POR
	name = "EVENTNAME260154" #Settlement on Timor
	desc = "EVENTHIST260154"
	#Timor belongs to us!

	date = { day = 1 month = january year = 1522 }
	offset = 40
	deathdate = { day = 1 month = january year = 1580 }

	action_a = {
		name = "GOOD"
		command = { type = addcore which = 712 } #Timor
	}
}

#(1522-1580) Settlement on Bacan
event = {
	id = 260155
	trigger = {
		owned = { province = 713 data = -1 } #Tindore
	}
	random = no
	country = POR
	name = "EVENTNAME260155" #Settlement on Bacan
	desc = "EVENTHIST260155"
	#Tindore belongs to us!

	date = { day = 1 month = january year = 1522 }
	offset = 40
	deathdate = { day = 1 month = january year = 1580 }

	action_a = {
		name = "GOOD"
		command = { type = addcore which = 713 } #Tindore
	}
}

#(1522-1580) Fort at Hitu
event = {
	id = 260953
	trigger = {
		event = 260152 #POR: Settlement at Hitu
		owned = { province = 715 data = -1 } #Ceram
		NOT = { provincereligion = { province = 715 data = pagan } }
		control = { province = 715 data = -1 }
		ai = yes
	}
	random = no
	country = POR
	name = "EVENTNAME260953" #Fort at Hitu
	desc = "EVENTHIST260953"
	#-#Portuguese built fort at Hitu on Ambon

	date = { day = 1 month = may year = 1522 }
	offset = 24
	deathdate = { day = 1 month = january year = 1580 }

	action_a = {
		name = "ACTIONNAME260953A" #Build fort
		command = { type = treasury value = -100 }
		command = { type = fortress which = 715 value = 1 } #Ceram
	}
	action_b = {
		name = "ACTIONNAME260953B" #We don't have money
		command = { }
	}
}

#(1522-1635) Portuguese vassalization of Ternate- part 1
event = {
	id = 260078
	trigger = {
		discovered = 713 #Tindore
		exists = TER
	}
	random = no
	country = POR
	name = "EVENTNAME260078" #The Portuguese and Ternate
	desc = "EVENTHIST260078"
	#-#In 1522 Antonio de Brito arrived in Ternate, concluded a treaty of friendship with the King, and built a fort for the Portuguese.

	date = { day = 0 month = may year = 1522 }
	offset = 30
	deathdate = { day = 1 month = january year = 1635 }

	action_a = {
		name = "ACTIONNAME260078A" #This will help us secure the trade of the Mollucas
		command = { type = trade value = 200 }
		command = { type = trigger which = 308001 } #TER: The Portuguese treaty of friendship with Ternate
	}
}
#(1522-1635) Portuguese vassalization of Ternate - part 2
event = {
	id = 260083 #triggered by TER_308001
	random = no
	country = POR
	name = "EVENTNAME260083" #The Portuguese treaty of friendship with Ternate
	desc = "EVENTHIST260083"
	#-#The treaty of friendship is concluded with the King of Ternate.

	action_a = {
		name = "GOOD"
		command = { type = vassal which = TER }
		command = { type = relation which = TER value = 175 }
	}
}

#(1526-1580) First fort on Timor
event = {
	id = 260954
	trigger = {
		event = 260154 #POR: Settlement on Timor
		owned = { province = 712 data = -1 } #Timor
		NOT = { provincereligion = { province = 712 data = pagan } }
		control = { province = 712 data = -1 }
		ai = yes
	}
	random = no
	country = POR
	name = "EVENTNAME260954" #First fort on Timor
	desc = "EVENTHIST260954"
	#-#Portuguese built first fort on Timor.

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

	action_a = {
		name = "ACTIONNAME260954A" #Build fort
		command = { type = treasury value = -100 }
		command = { type = fortress which = 712 value = 1 } #Timor
	}
	action_b = {
		name = "ACTIONNAME260954B" #We don't have money
		command = { }
	}
}

#(1528-1560) Malindi cooperates against Mombasa
event = {
	id = 260111 #triggered by MLI_113002 A
	random = no
	country = POR
	name = "EVENTNAME260111" #Malindi cooperates against Mombasa
	desc = "EVENTHIST260111"
	#-#In October 1528 the fleet of Nuno da Cunha sought refuge in Malindi which was freely granted. However when the fleet became pinned against the coast by the north-east monsoon it became imperative that the fleet find a better harbor to winter over until the monsoon ended. He sailed for Mombasa where he was allowed to anchor, but he was insulted by the restrictions placed on him by the Sultan of Mombasa. He resolved to avenge this insult and the Sheik of Malindi, happy to see injury done to his rival, offered troops. Nuno da Cunha, appreciative of his support, offered the rulership of Mombasa to a relative of the Sheik, but he was turned down when the Portuguese proved to be too few in numbers to garrison the town.

	action_a = {
		name = "ACTIONNAME260111A" #Our most reliable ally in East Africa
		command = { type = vassal which = MLI }
		command = { type = relation which = MLI value = 200 }
		command = { type = naval value = 100 }
	}
}

#(1528-1560) Mombasa has insulted us
event = {
	id = 260112
	trigger = {
		exists = MOM
		event = 260111 #POR: Malindi cooperates against Mombasa
		NOT = {
			alliance = { country = MOM country = POR }
			vassal = { country = POR country = MOM }
		}
	}
	random = no
	country = POR
	name = "EVENTNAME260112" #Mombasa has insulted us
	desc = "EVENTHIST260111"
	#-#In October 1528 the fleet of Nuno da Cunha sought refuge in Malindi which was freely granted. However when the fleet became pinned against the coast by the north-east monsoon it became imperative that the fleet find a better harbor to winter over until the monsoon ended. He sailed for Mombasa where he was allowed to anchor, but he was insulted by the restrictions placed on him by the Sultan of Mombasa. He resolved to avenge this insult and the Sheik of Malindi, happy to see injury done to his rival, offered troops. Nuno da Cunha, appreciative of his support, offered the rulership of Mombasa to a relative of the Sheik, but he was turned down when the Portuguese proved to be too few in numbers to garrison the town.

	date = { day = 1 month = october year = 1528 }
	offset = 1
	deathdate = { day = 1 month = january year = 1560 }

	action_a = {
		name = "ACTIONNAME260112A" #They shall be chastised for their impoliteness
		command = { type = relation which = MOM value = -100 }
		command = { type = trigger which = 336003 } #MOM: Mombasa burnt by the Portuguese
		command = { type = treasury value = 25 }
	}
	action_b = {
		name = "ACTIONNAME260116B" #We must hold Mombasa for ourselves
		command = { type = trigger which = 336004 } #MOM: The Portuguese seek to conquer us
		command = { type = relation which = MOM value = -200 }
		command = { type = casusbelli which = MOM value = 60 }
	}
	action_c = {
		name = "ACTIONNAME260116C" #We will rule through a native puppet
		command = { type = relation which = MOM value = -100 }
		command = { type = vassal which = MOM }
	}
}

#(1528-1560) Capture of Mombasa
event = {
	id = 260062
	trigger = {
		control = { province = 763 data = -1 } #Mombasa
		event = 260112 #POR: Mombasa has insulted us
		exists = MOM
	}
	random = no
	country = POR
	name = "EVENTNAME260117" #Capture of Mombasa
	desc = "EVENTHIST260062"
	#-#We have captured Mombasa. What shall we do now?

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

	action_a = {
		name = "ACTIONNAME260116B" #We must hold Mombasa for ourselves
		command = { type = annex which = MOM }
		command = { type = treasury value = 25 }
		command = { type = addcore which = 763 } #Mombasa
	}
	action_b = {
		name = "ACTIONNAME260116C" #We will rule through a native puppet
		command = { type = vassal which = MOM }
		command = { type = treasury value = 25 }
	}
}

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

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

#(1529) Philippines belong to Spain (Portugal's part)
event = {
	id = 260956
	trigger = {
		OR = {
			owned = { province = 690 data = -1 } #Luzon
			owned = { province = 691 data = -1 } #Mindoro
			owned = { province = 692 data = -1 } #Samar
			owned = { province = 693 data = -1 } #Mindanao
			owned = { province = 694 data = -1 } #Palawan
		}
		exists = SPA
	}
	random = no
	country = POR
	name = "EVENTNAME260956" #Philippines belongs to Portugal
	desc = "EVENTHIST260956"
	#-#Spain and Portugal had divided the entire world between themselves in 1494. They continued to argue for years over the exact position of the dividing circle. A 1524 conference sponsored by the Pope did not settle matters. In 1529 Kings of Spain and Portugal agreed that Maluku should belong to Portugal, and the Philippines should belong to Spain.

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

	action_a = {
		name = "ACTIONNAME260956A" #Accept the agreement
		command = { type = relation which = SPA value = 50 }
		command = { type = relation which = PAP value = 50 }
		command = { type = cedeprovince which = SPA value = 690 } #Luzon
		command = { type = cedeprovince which = SPA value = 691 } #Mindoro
		command = { type = cedeprovince which = SPA value = 692 } #Samar
		command = { type = cedeprovince which = SPA value = 693 } #Mindanao
		command = { type = cedeprovince which = SPA value = 694 } #Palawan
	}
	action_b = {
		name = "ACTIONNAME260956B" #No, Philippines is ours!
		command = { type = relation which = SPA value = -50 }
		command = { type = relation which = PAP value = -50 }
		command = { type = addcore which = 690 } #Luzon
		command = { type = addcore which = 691 } #Mindoro
		command = { type = addcore which = 692 } #Samar
		command = { type = addcore which = 693 } #Mindanao
		command = { type = addcore which = 694 } #Palawan
		command = { type = trigger which = 285962 } #SPA: Philippines belong to Spain
	}
}

#(1529-1537) The Viceroyship of Nuno da Cunha
event = {
	id = 260129
	trigger = {
		owned = { province = 549 data = -1 } #Goa
		control = { province = 549 data = -1 }
	}
	random = no
	country = POR
	name = "EVENTNAME260129" #The Viceroyship of Nuno da Cunha
	desc = "EVENTHIST260129"
	#-#In October 1529 Nuno da Cunha arrived in Goa to assume the governorship of the Indies. He began his tenure by cleaning up the rampant corruption there. He made trade agreements with Bengal and received Bombay and other coastal territories from both Gujarat and the Mughal Empire in exchange for his neutrality during their conflict.

	date = { day = 1 month = october year = 1529 }
	offset = 30
	deathdate = { day = 29 month = december year = 1537 }

	action_a = {
		name = "ACTIONNAME260129A" #Clever man
		command = { type = stability value = -1 }
		command = { type = relation which = MOG value = 100 }
		command = { type = relation which = GUJ value = 100 }
		command = { type = relation which = BGL value = 400 }
		command = { type = addcore which = 548 } #Bombay
	}
}

#(1530-1638) Move the Capital of Portuguese India to Goa
event = {
	id = 260109
	random = no
	trigger = {
		atwar = no
		owned = { province = 549 data = -1 } #Goa
		control = { province = 549 data = -1 }
		owned = { province = 573 data = -1 } #Cochin
		control = { province = 573 data = -1 }
	}
	country = POR
	name = "EVENTNAME260109" #Move the capital of Portuguese India to Goa
	desc = "EVENTHIST260109"
	#-#In 1530 the Viceroy of India decided to move his capital to a more central location.

	date = { day = 1 month = january year = 1530 }
	offset = 360
	deathdate = { day = 1 month = january year = 1638 }

	action_a = {
		name = "ACTIONNAME260109A" #Move the capital
		command = { type = population which = 549 value = 1000 } #Goa
		command = { type = population which = 573 value = -1000 } #Cochin
		command = { type = removecot which = 573 } #Cochin
		command = { type = cot which = 549 } #Goa
		command = { type = sleepevent which = 260145 } #POR: Goa the Capital of Portuguese India
	}
}
#(1530-1638) Goa the Capital of Portuguese India - Ahistorical
event = {
	id = 260145
	random = no
	trigger = {
		atwar = no
		owned = { province = 549 data = -1 } #Goa
		control = { province = 549 data = -1 }
		NOT = {
			owned = { province = 573 data = -1 } #Cochin
		}
	}
	country = POR
	name = "EVENTNAME260145" #Goa the Capital of Portuguese India
	desc = "EVENTHIST260145"
	#-#This is a perfect place.

	date = { day = 1 month = january year = 1530 }
	offset = 360
	deathdate = { day = 1 month = january year = 1638 }

	action_a = {
		name = "GOOD"
		command = { type = cot which = 549 } #Goa
		command = { type = sleepevent which = 260109 } #POR: Move the Capital of Portuguese India to Goa
	}
}

#(1531-1560) Governor Martim Afonso de Sousa in Brazil
event = {
	id = 3271
	trigger = {
		OR = {
			owned = { province = 203 data = -1 } #Recife
			owned = { province = 205 data = -1 } #Pernambuc
			owned = { province = 207 data = -1 } #Diamentina
			owned = { province = 209 data = -1 } #Salvador
			owned = { province = 210 data = -1 } #Itaimas
			owned = { province = 211 data = -1 } #Niteroi
			owned = { province = 213 data = -1 } #Curitiba
		}
	}
	random = no
	country = POR
	name = "EVENTNAME3271" #Governor Martim Afonso de Sousa in Brazil
	desc = "EVENTHIST3271"
	#-#Leading colonists where given strips of land that extended from the Brazilian coast reaching into the interior. The captains (land owners) settled colonists in their respective captaincies and were required to provide them protection and justice. As the captaincies were independent they were unable to defend themselves from foreign pirates. Joo III appointed a governor general with authority over the captaincies. De Sousa established his capital at So Salvador da Baa. He defeated French pirates in a naval engagement in the bay of Rio de Janeiro. De Sousa also intensified colonization and created stability in Brazil.

	date = { day = 1 month = january year = 1531 }
	offset = 60
	deathdate = { day = 1 month = january year = 1560 }

	action_a = {
		name = "ACTIONNAME3271A" #Appoint de Sousa
		command = { type = wakeleader which = 0110817 } #Martim de Sousa (POR)
		command = { type = warships which = -1 value = 5 }
		command = { type = treasury value = 100 }
		command = { type = colonists value = 2 }
		command = { type = addcore which = 205 } #Pernambuc
		command = { type = addcore which = 203 } #Recife
		command = { type = addcore which = 204 } #Iguato
		command = { type = addcore which = 207 } #Diamentina
		command = { type = addcore which = 206 } #Alagoas
		command = { type = addcore which = 208 } #Minas Gerais
		command = { type = addcore which = 209 } #Salvador
		command = { type = addcore which = 210 } #Itaimas
		command = { type = addcore which = 211 } #Niteroi
		command = { type = addcore which = 212 } #Araxa
		command = { type = addcore which = 213 } #Curitiba
		command = { type = addcore which = 214 } #Cangucu
	}
}

#(1535) Prester John requests help
#by Fodoron
event = {
	id = 260023 #triggered by ETH_165016
	random = no
	country = POR
	name = "EVENTNAME260023" #Prester John requests help
	desc = "EVENTHIST260023"
	#-#The medieval legend of the Kingdom of Prester John, a mythical Kingdom that kept the Muslims at bay, was popular when Islam seemed unstoppable. According to legend, Prester John could help Europe fend off the Muslim assaults. Although the myth had no basis, it seemed to fit Ethiopia better than any other place. Except that when re-discovered by Europe, Ethiopia was backwards and beleaguered, more in need of help than capable of lending it. Around 1510, King Manuel received an ambassador from Ethiopia, an Armenian called Matthew. In the name of Empress Eleni, he proposed an alliance between Ethiopia and Portugal. It would be 10 years before Portuguese ambassadors went to Ethiopia with a positive answer. By then things had changed and the new Emperor showed no interest. However in 1535 facing a war of extermination by Adal, the same Ethiopian Emperor sent a plee to the Pope and the King of Portugal by way of Juan Bermudez, a Portuguese priest that had remained in Ethiopia. Bermudez claimed that the Emperor had promised to turn his country into Catholicism if help was forwarded, and requested to be named archbishop of the new Ethiopian Catholic Church. This has been a controversial issue since, but Bermudez's description of the horrors inflicted on the Christian Ethiopians, the destruction of their churches, and the killing of their priests and nuns, plus the desire to control the entrance to the Red Sea, moved King Joo III 'o Piedoso' (the Pius) to order the new Viceroy of India, Estevo da Gama, to send military aid to Ethiopia. He sent his own brother Cristovo in command of a small but well-equipped army.

	action_a = {
		name = "ACTIONNAME260023A" #Aid to Ethiopia
		command = { type = relation which = ETH value = 250 }
		command = { type = treasury value = -25 }
	}
	action_b = {
		name = "ACTIONNAME260023B" #I am not giving today
		command = { type = relation which = ETH value = -25 }
		command = { type = vp value = -5 }
		command = { type = sleepevent which = 165017 } #ETH: Portuguese help
	}
}

#(1539-1768) The Holy Inquisition
event = {
	id = 3269
	random = no
	country = POR
	name = "EVENTNAME3269" #The Holy Inquisition
	desc = "EVENTHIST3269"
	#-#After several attempts to institute the Holy Inquisition in Portugal it was finally approved in 1536 by the Pope. However the first Grand Inquisitor, the Bishop of Ceuta, had no intentions of using his powers and the Inquisition remained inactive until 1539 when he was replaced by the King's brother, Henrique, the Archbishop of vora. While much lesser known than its Spanish counterpart, the Portuguese Inquisition probably executed more people over its existence than the Spanish Inquisition. To a much greater extent in Portugal than in Spain the Inquisition was used as a tool by the aristocracy to oppress the Novos Cristos (New Christians) who comprised much of the Portuguese middle and commercial classes. It wasn't abolished until 1821, although the Marquis of Pombal pulled its teeth in 1768 by abolishing the distinction between New and Old Christians.

	date = { day = 1 month = may year = 1539 }
	offset = 60
	deathdate = { day = 1 month = january year = 1768 }

	action_a = {
		name = "ACTIONNAME3269A" #Institute them!
		command = { type = domestic which = INNOVATIVE value = -3 }
		command = { type = domestic which = aristocracy value = 2 }
		command = { type = stability value = 1 }
		command = { type = merchants value = -3 }
		command = { type = trade value = -1500 }
	}
	action_b = {
		name = "ACTIONNAME3269B" #Do not institute them!
		command = { type = domestic which = INNOVATIVE value = 1 }
		command = { type = stability value = -2 }
		command = { type = relation which = SPA value = -75 }
		command = { type = relation which = PAP value = -75 }
	}
}

#(1540) The Societas Jesu
event = {
	id = 3270
	random = no
	country = POR
	name = "EVENTNAME3270" #The Societas Jesu
	desc = "EVENTHIST3270"
	#-#The Societas Jesu was a religious order with the main agenda to spread catholic faith. Wherever the Portuguese went across the world the Jesuits followed in their trail.

	date = { day = 1 month = january year = 1540 }
	offset = 60
	deathdate = { day = 1 month = january year = 1541 }

	action_a = {
		name = "ACTIONNAME3270A" #Institute them!
		command = { type = domestic which = INNOVATIVE value = -1 }
		command = { type = colonists value = 4 }
		command = { type = missionaries value = 4 }
	}
	action_b = {
		name = "ACTIONNAME3270B" #Do not institute them!
		command = { type = domestic which = INNOVATIVE value = 1 }
		command = { type = relation which = SPA value = -50 }
		command = { type = relation which = PAP value = -50 }
		command = { type = relation which = NAP value = -50 }
	}
}

#(1541-1558) Joo III Abandons Most of Morocco
#by sturmvogel
#event = {
#	id = 260042
#	random = no
#	trigger = {
#		owned = { province = 806 data = -1 } #Toubkal
#	}
#	country = POR
#	name = "EVENTNAME260042" #Joo III Abandons Southern Morocco
#	desc = "EVENTHIST260042"
#	#-#While Joo III was a devout man he cared little about the struggle of Christianity against the Muslims. Faced with steadily increasing expenses in defending the Moroccan ports captured by his grandfathers he decided that it was no longer worth the costs to defend them. He ordered those cities still held by his soldiers to be abandoned except for those in the Tangiers area.
#
#	date = { day = 12 month = march year = 1541 }
#	offset = 300
#	deathdate = { day = 0 month = january year = 1558 }
#
#	action_a = {
#		name = "ACTIONNAME260042A" #We Cannot Afford This Interminable Struggle
#		command = { type = cedeprovince which = MOR value = 806 } #Toubkal
#		command = { type = removecore which = 806 } #Toubkal
#		command = { type = stability value = -1 }
#	}
#	action_b = {
#		name = "ACTIONNAME260042B" #We Must Fight to Retain What is Ours!
#		command = { type = INF which = 806 value = 5000 } #Toubkal
#		command = { type = CAV which = 806 value = 3000 } #Toubkal
#		command = { type = stability value = 1 }
#		command = { type = treasury value = -250 }
#	}
#}

#(1544-1659) Portuguese Settlement at Quelimane
event = {
	id = 260070
	trigger = {
		control = { province = 770 data = -1 } #Nampuia
		owned = { province = 770 data = -1 }
		NOT = { provincereligion = { province = 770 data = pagan } } #not a TP
	}
	random = no
	country = POR
	name = "EVENTNAME338290" #Portuguese Settlement at Quelimane
	desc = "EVENTHIST260070"
	#-#In 1544 the Portuguese founded a trading station at Quelimane. Portugal used Quelimane as a starting point to expansion along the Zambezi river.

	date = { day = 0 month = january year = 1544 }
	offset = 360
	deathdate = { day = 29 month = december year = 1659 }

	action_a = {
		name = "EXCELLENT"
		command = { type = population which = 770 value = 50 } #Nampuia
		command = { type = provincetax which = 770 value = 1 }
		command = { type = addcore which = 770 }
		command = { type = sleepevent which = 338290 } #ProvinceSpec*770: Portuguese Settlement at Quelimane
	}
}

#(1545-1820) We have failed to retain Socotra
event = {
	id = 260061
	trigger = {
		NOT = { owned = { province = 756 data = -1 } } #Socotra
		core = { province = 756 data = -1 }
	}
	random = no
	country = POR
	name = "EVENTNAME260061" #We have failed to retain Socotra
	desc = "EVENTHIST260061"
	#-#Socotra isn't worth the men and treasure required to take it.

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

	action_a = {
		name = "ACTIONNAME260045A" #We need to focus on our existing committments
		command = { type = removecore which = 756 } #Socotra
	}
}

#(1545-1551) Portuguese vassalization of Lanka
event = {
	id = 260077 #triggered by LNK_413000
	random = no
	country = POR
	name = "EVENTNAME260077" #The Portuguese vassalization of Lanka
	desc = "EVENTHIST260077"
	#-#In 1545 Bhuvanaika Bahu VII submitted to Portugal payed tribute and became it's vassal to secure that his grandson Dharmapala would succeed him on the throne with the help ofthe Portuguese.

	action_a = {
		name = "GOOD"
		command = { type = vassal which = LNK }
		command = { type = relation which = LNK value = 175 }
	}
}

#(1549-1820) Salvador da Bahia the colonial capital of Brazil
event = {
	id = 260015
	trigger = {
		atwar = no
		owned = { province = 207 data = -1 } #Diamentina
		control = { province = 207 data = -1 } #Diamentina
		provincereligion = { province = 207 data = catholic } #Diamentina
	}
	random = no
	country = POR
	name = "EVENTNAME260015" #Salvador da Bahia the colonial capital of Brazil
	desc = "EVENTHIST260015"
	#-#The early settlement of Salvador was founded in 1549 by de Souza. It quickly became the main Brazilian sea port and the first capital of Portuguese Brazil, a center of the sugar industry, tobacco industry, and the slave trade.

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

	action_a = {
		name = "GOOD"
		command = { type = provincetax which = 207 value = 1 } #Diamentina
	}
}

#(1550-1580) Fort on Flores
event = {
	id = 260958
	trigger = {
		event = 260153 #POR: Settlement on Flores
		owned = { province = 711 data = -1 } #Flores
		NOT = { provincereligion = { province = 711 data = pagan } }
		control = { province = 711 data = -1 }
		ai = yes
	}
	random = no
	country = POR
	name = "EVENTNAME260958" #Fort on Flores
	desc = "EVENTHIST260958"
	#-#In 1550 Portuguese began building forts on Flores.

	date = { day = 1 month = january year = 1550 }
	offset = 30
	deathdate = { day = 1 month = january year = 1580 }

	action_a = {
		name = "ACTIONNAME260958A" #Build fort
		command = { type = treasury value = -100 }
		command = { type = fortress which = 711 value = 1 } #Flores
	}
	action_b = {
		name = "ACTIONNAME260958B" #We don't have money
		command = { }
	}
}

#(1558-1580) Fortress on Bacan
event = {
	id = 260959
	trigger = {
		event = 260155 #POR: Settlement on Bacan
		owned = { province = 713 data = -1 } #Tindore
		NOT = { provincereligion = { province = 713 data = pagan } }
		control = { province = 713 data = -1 }
		ai = yes
	}
	random = no
	country = POR
	name = "EVENTNAME260959" #Fortress on Bacan
	desc = "EVENTHIST260959"
	#-#In 1558 Portuguese built a fortress on Bacan.

	date = { day = 1 month = january year = 1558 }
	offset = 30
	deathdate = { day = 1 month = january year = 1580 }

	action_a = {
		name = "ACTIONNAME260959A" #Build fort
		command = { type = treasury value = -100 }
		command = { type = fortress which = 713 value = 1 } #Tindore
	}
	action_b = {
		name = "ACTIONNAME260959B" #We don't have money
		command = { }
	}
}

#(1567-1660) The Ecclesiastical Council at Goa
event = {
	id = 260086
	trigger = {
		owned = { province = 549 data = -1 } #Goa
		control = { province = 549 data = -1 }
	}
	random = no
	country = POR
	name = "EVENTNAME260086" #The Ecclesiastical Council at Goa
	desc = "EVENTHIST260086"
	#-#Historically in 1567 there was an Ecclesiastical Council at Goa that decided that all non-Catholic religions were intrinsically wrong and harmful in themselves and that it was the duty of the King of Portugal to spread the Catholic faith. This led to many harsh sanctions throught the Portuguese Asian empire against non-Catholics and the all but forced conversion of many to Catholicism. This resulted in many Hindus leaving Portuguese-controlled Goa and its surrounding districts to escape persecution.

	date = { day = 0 month = december year = 1567 }
	offset = 30
	deathdate = { day = 1 month = january year = 1660 }

	action_a = {
		name = "ACTIONNAME260086A" #Enforce the decrees of the fathers
		command = { type = population which = 549 value = -5000 } #Goa
		command = { type = provincetax which = 549 value = -1 } #Goa
	}
	action_b = {
		name = "ACTIONNAME260086B" #Don't enforce the decrees of the fathers
		command = { type = stability value = -1 }
	}
}

#(1568-1640) Decline of the Malaccan trade
event = {
	id = 260019
	trigger = {
		exists = ATJ
		owned = { province = 677 data = -1 } #Malacca
	}
	random = no
	country = POR
	name = "EVENTNAME260019" #Decline of the Malaccan trade
	desc = "EVENTHIST260019"
	#-#By the late 16th century Malacca had ceased to be the premier trade emporium of South East Asia and the Moluccas. This was a result of excessive piracy from Atjeh and Johor and because of frequent attacks at sea and seiges of Malacca by Atjeh, Portugal's primary rival in the region. Atjeh by this time became the premier trade emporium instead, as Muslim merchants prefered to trade at a port controlled by their co-religionists.

	date = { day = 1 month = january year = 1568 }
	offset = 360
	deathdate = { day = 1 month = december year = 1640 }

	action_a = {
		name = "ACTIONNAME260019A" #Sigh!
		command = { type = removecot which = 677 } #Malacca
		command = { type = population which = 677 value = -15000 } #Malacca
		command = { type = provincetax which = 677 value = -1 } #Malacca
		command = { type = provincemanpower which = 677 value = -1 } #Malacca
		command = { type = trade value = -500 }
		command = { type = trigger which = 118000 } #ATJ: Decline of the Malaccan trade
	}
}

#(1570-1650) Decline of the Portuguese military
event = {
	id = 260021
	trigger = {
		OR = {
			control = { province = 549 data = -1 } #Goa
			control = { province = 677 data = -1 } #Malacca
		}
		OR = {
			control = { province = 549 data = -1 } #Goa
			control = { province = 505 data = -1 } #Al Kharam
		}
		OR = {
			control = { province = 505 data = -1 } #Al Kharam
			control = { province = 677 data = -1 } #Malacca
		}
	}
	random = no
	country = POR
	name = "EVENTNAME260021" #Decline of the Portuguese military
	desc = "EVENTHIST260021"
	#-#By the late 16th century the Portuguese military was well into decline. It had a shortage of troops because so many died or deserted in the Indies. Portugal began sending fewer and fewer men to the Indies as sending so many for the past 100 years had depleted the mainland population. Many Portuguese prefered to go to Brazil instead of the Indies as it was safer and began to become more profitable. The quality of leadership among Portuguese generals also declined. Compared to earlier voyages to the Indies more men were lost enroute as well as more ships were lost at sea either to storms or pirates.

	date = { day = 1 month = january year = 1570 }
	offset = 1000
	deathdate = { day = 1 month = january year = 1650 }

	action_a = {
		name = "ACTIONNAME260021A" #Our military is in decline
		command = { type = colonists value = -2 }
		command = { type = domestic which = innovative value = -1 }
		command = { type = domestic which = land value = 2 }
		command = { type = domestic which = quality value = -2 }
		command = { type = domestic which = offensive value = -2 }
		command = { type = desertion which = -1 value = 5000 }
		command = { type = provincemanpower which = 434 value = -1 } #Oporto
		command = { type = provincemanpower which = 441 value = -1 } #Tago
		command = { type = losemanufactory which = 442 } #Algarve
		command = { type = losemanufactory which = 441 } #Tago
		command = { type = land value = -2500 }
		command = { type = naval value = -5000 }
	}
}

#(1570-1588) Vassalization of Malindi
#by sturmvogel
event = {
	id = 260069 #triggered by MLI_113003 A
	random = no
	country = POR
	name = "EVENTNAME260067" #Vassalization of Malindi
	desc = "EVENTHIST260069"
	#-#While waiting reinforcements for his planned expedition against Monomotapa Francisco Barreto, Capito of Moambique, cruised the East African coast to show the flag. He was received very hospitably by the Sheik of Malindi who relied on the Portuguese to protect him against his enemies.

	action_a = {
		name = "ACTIONNAME260111A" #Our most reliable ally in East Africa
		command = { type = vassal which = MLI }
		command = { type = relation which = MLI value = 200 }
	}
}

#(1572) Cames, the Most Exalted Portuguese Poet
#by Ubik
event = {
	id = 260006
	random = no
	country = POR
	name = "EVENTNAME260006" #Cames, the Most Exalted Portuguese Poet
	desc = "EVENTHIST260006"
	#-#The most sublime figure in the history of Portuguese literature, celebrated worldwide, Cames owes his lasting fame to his epic poem Os Lusiadas, (The Lusiads). He is also remarkable for the degree of art attained in his lyrics, less noteworthy for his dramas. A wretched exile during a large part of his lifetime, he has enjoyed an abundance of fame since his death. His followers have been legion, and his memory has begot many fabulous legends. Born in 1524 or 1525, Cames came from a noble family of reduced means. He belonged to the same stock as the noted explorer, Vasco da Gama, who figures importantly in The Lusiads. His life was one of adventure with voyages to distant lands, impossible love affairs, shipwrecks, duels and combat. He was willing to spend more than he earned, which lead to his poverty in his old age. Nevertheless, he was able to publish his Magnum Opus (The Lusiads) in 1572 dedicating it to the visionary and foolhardy King Dom Sebastio. He died in 1580.

	date = { day = 1 month = january year = 1572 }
	offset = 360
	deathdate = { day = 29 month = december year = 1572 }

	action_a = {
		name = "OK"
		command = { type = missionaries value = 1 }
		command = { type = colonists value = 1 }
		command = { type = infra value = 30 }
	}
}

#(1572-1579) Barreto-Homem Expedition
#by sturmvogel
event = {
	id = 260113
	trigger = {
		NOT = {
			owned = { province = 1511 data = -1 } #Nembire
		}
	}
	random = no
	country = POR
	name = "EVENTNAME260113" #Barreto-Homem Expedition
	desc = "EVENTHIST260113"
	#-# Sebastio I appointed Francisco Barreto Captio-Mor of an expedition to capture the goldmines of Monomotapa and Capito da Moambique in 1569. However the expedition took quite a while to assemble and Barreto didn't leave Portuguese-controlled Sena on the Zambezi River until 1572. It achieved some military successes, but was decimated by disease, including the death of Barreto in July 1573. Vasco Fernandes Homem succeeded him and withdrew the expedition back to Moambique to recuperate. He was determined that this time the expedition would take the route through Sofala to reach Monomotapa. He reached some of the gold and silver mines and forced the local chief to pay tribute. The outpost he left behind to exploit the silver mines was overwhelmed and destroyed not long after his return to Moambique. The most important legacies of the expedition were the opening of the area to Portuguese merchants, the consolidation of Portuguese control of the Zambezi River Valley with the establishment of captaincies at Sena and Tete and the knowledge that due to the dispersed nature of the gold mines it was much easier to gain it by trade than by conquest.

	date = { day = 1 month = july year = 1572 }
	offset = 100
	deathdate = { day = 1 month = january year = 1579 }

	action_a = {
		name = "ACTIONNAME260113A" #We want the gold!
		command = { type = relation which = ZIM value = -200 }
		command = { type = casusbelli which = ZIM value = 90 }
		command = { type = merchants value = 1 }
		command = { type = trade value = 200 }
	}
}

#(1575-1820) Portuguese Settlement of Angola
event = {
	id = 260105
	trigger = {
		owned = { province = 783 data = -1 } #Lobito
		control = { province = 783 data = -1 } #Lobito
		NOT = { provincereligion = { province = 783 data = pagan } } #not a TP
	}
	random = no
	country = POR
	name = "EVENTNAME260105" #Portuguese settlement of Angola
	desc = "EVENTHIST260105"
	#-#In 1575 Portugal established a colony at Cabinda based on slave trade. Before the beginning of the Atlantic slave trade, slavery was practiced in Africa by many indigenous peoples. The African slave trade provided a large number of black slaves to Europeans and their African agents. In what is now current day Angola, the Imbangala people had economies which were heavily focused on the slave trade and supplied the Portuguese with many other neighboring tribal slaves. The Portuguese hold on Angola lasted into the twentieth century.

	date = { day = 0 month = october year = 1575 }
	offset = 60
	deathdate = { year = 1820 }

	action_a = {
		name = "EXCELLENT"
		command = { type = addcore which = 783 } #Lobito
		command = { type = addcore which = 784 } #Luanda
		command = { type = provincetax which = 783 value = 1 } #Lobito
	}
}

#(1577-1578) King Sebastio's Expedition to North Africa
event = {
	id = 3272
	trigger = {
		OR = {
			exists = MOR
			exists = SUS
		}
	}
	random = no
	country = POR
	name = "EVENTNAME3272" #King Sebastio's Expedition
	desc = "EVENTHIST3272"
	#-#In 1576, Muhammad al-Mutawakkil, former ruler of Morocco, begged King Sebastio of Portugal for assistance against his uncle, 'Abd al-Malik. Eager to expand his influence in Morocco, Sebastio was willing to support al-Mutawakkil's claim to Morocco, against the advice of his council. Divided by civil war, Morocco would make easy pickings for the Portuguese army.

	date = { day = 1 month = january year = 1577 }
	offset = 10
	deathdate = { day = 3 month = july 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 = 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 = -3 }
		command = { type = sleepevent which = 260071 } #POR: The Regency
	}
	action_b = {
		name = "ACTIONNAME3272B" #A crusade is not in our best interests
		command = { type = trade value = 800 }
		command = { type = naval value = 800 }
		command = { type = stability value = 1 }
		command = { type = domestic which = CENTRALIZATION value = -1 }
		command = { type = domestic which = ARISTOCRACY value = 2 }
		command = { type = sleepevent which = 260089 } #MUS: Check for Death of King Sebastio
		command = { type = sleepevent which = 260073 } #POR: The House of Bragana #1580 version
		command = { type = sleepevent which = 18105 } #POR: Triumph of Aviz
		command = { type = sleepevent which = 3274 } #POR: Filipe II's Claim to the Throne
	}
}

#(1577-1578) Modification of the flag of Portugal
event = {
	id = 260134
	trigger = {
		flag = [Manuel_I] #previous change (i.e. Portugal is not a revolter with default CoA/flag)
	}
	random = no
	country = POR
	name = "EVENTNAME260134" #Modification of the flag of Portugal
	desc = "EVENTHIST260134"
	#-#In 1577, during the reign of Sebastio I and on the eve of the fatal Battle of Alccer Quibir, the flag was again modified. The number of castles was permanently fixed at seven and the royal crown was converted into a closed three-arched crown, which symbolized a stronger royal authority. \n \nAfter Sebastio's reign, ogival shield became a rounded one (so-called ''Portuguese type'' shield) in 1640 and was converted to a samnitic (''French type'') shield in 1707. Flag's crown was adapted to fit the contemporary trends in 1667 and 1707. \nWith the United Kingdom of Portugal, Brazil and Algarves, shield and flag were changed again in 1816. The coat of arms, whose shield became rounded again, now rested upon a blue-filled yellow armillary sphere (arms of Brazil) surmounted by a beret-bearing five-arched crown on a white background.

	date = { day = 1 month = january year = 1577 }
	offset = 300
	deathdate = { day = 3 month = august year = 1578 }

	action_a = {
		name = "ACTIONNAME260133A" #Change the flag
		command = { type = treasury value = -5 }
		command = { type = flagname which = "" }
	}
}

#(1578-1623) Rio de Janeiro fortified
#by sturmvogel
event = {
	id = 260012
	trigger = {
		NOT = { provincereligion = { province = 209 data = pagan } } #not a TP
		owned = { province = 209 data = -1 } #Salvador
		control = { province = 209 data = -1 } #Salvador
		atwar = no
		ai = yes
	}
	random = no
	country = POR
	name = "EVENTNAME260012" #Rio de Janeiro fortified
	desc = "EVENTHIST260012"
	#-#The Portuguese fortified Rio de Janeiro.

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

	action_a = {
		name = "ACTIONNAME260011A" #Build fort
		command = { type = treasury value = -100 }
		command = { type = fortress which = 209 value = 1 } #Salvador
	}
	action_b = {
		name = "ACTIONNAME260011B" #We don't have enough money
		command = { }
	}
}

#(1578) Check for Death of King Sebastio
event = {
	id = 260089
	trigger = {
		event = 3272 #POR: King Sebastio's Expedition to North Africa
		exists = SPA
		OR = {
			exists = MOR
			exists = SUS
		}
	}
	random = no
	country = MUS #yes not POR
	name = "AI_EVENT"
	desc = "King Sebastio"

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

	action_a = {
		name = "OK"
		#Dies in Battle
		command = { type = trigger which = 260072 } #POR: Death of King Sebastio
		command = { type = sleepevent which = 260073 } #POR: The House of Bragana #1580 version
	}
	action_b = {
		name = "OK"
		#Survives Battle
		command = { type = sleepevent which = 260072 } #POR: Death of King Sebastio
		command = { }
	}
}
#(1578) Death of King Sebastio
event = {
	id = 260072 #triggered by MUS_260089 A
	random = no
	country = POR
	name = "EVENTNAME260072" #Death of King Sebastio
	desc = "EVENTHIST260072"
	#-#On June 24th 1578, Sebastio landed in Portuguese Morocco and met up with the forces of Muhammad al-Mutawakkil. The two met with the army of 'Abd al-Malik near the village of Kasr-el-Kebir. Outnumbered, the battle was a disaster for the forces of Sebastio and al-Mutawakkil. Both leaders were killed and Sebastio's body was never recovered. With his death, Portuguese forces were routed and many nobles were captured. Control of the Portuguese Kingdom went to Sebastio's uncle, Henrique, who focused on paying ransoms for the captured nobles. Broken militarily and economically, Portugal was in a precarious international position.

	action_a = {
		name = "ACTIONNAME260072A" #Will Portugal fall to a foreign power?
		command = { type = wakemonarch which = 0110508 } #Henrique o Cardeal-Rei
		command = { type = wakemonarch which = 0110507 } #Regency Council
		command = { type = treasury value = -300 }
		command = { type = desertion which = 732 value = 10000 } #Tangiers
		command = { type = desertion which = 733 value = 10000 } #Fez
		command = { type = desertion which = 806 value = 10000 } #Toubkal
		command = { type = desertion which = 805 value = 5000 } #Sahara
		command = { type = desertion which = 804 value = 5000 } #Tassaret
		command = { type = desertion which = 1595 value = 5000 } #Anti Atlas
		command = { type = desertion which = -1 value = 5000 }
		command = { type = desertion which = -1 value = 5000 }
		command = { type = manpower value = -50 }
		command = { type = stability value = -4 }
	}
}

#(1580) The House of Bragana
event = {
	id = 260073
	random = no
	trigger = {
		event = 3272 #POR: King Sebastio's Expedition to North Africa
	}
	country = POR
	name = "EVENTNAME260073" #The House of Bragana
	desc = "EVENTHIST260073"
	#-#Although Sebastio considered his foray into Morocco a success, the nobles were unconvinced. Tired of financing wars that provided at best, modest gains, the nobles petitioned the King for an end to the warfare. When he refused, they revolted and pushed for recognition of the claims of Duchess Catarina Bragana to the throne. Lacking support, Sebastio was quickly captured and Catarina assumed the title, Queen of Portugal.

	date = { day = 29 month = january year = 1580 }
	offset = 0
	deathdate = { day = 29 month = february year = 1580 }

	action_a = {
		name = "ACTIONNAME260073A" #Bragana!
		command = { type = wakemonarch which = 0110522 } #Catarina I 
		command = { type = wakemonarch which = 0110523 } #Teodosio I 
		command = { type = stability value = -2 }
		command = { type = sleepevent which = 260091 } #POR: Filipe II's Claim to the Throne - alternate
		command = { type = sleepevent which = 3274 } #POR: Filipe II's Claim to the Throne
		command = { type = sleepevent which = 260071 } #POR: The Regency
		command = { type = sleepevent which = 260088 } #POR: The House of Bragana #1581 version
		command = { type = sleepevent which = 18105 } #POR: Triumph of Aviz
	}
}
#(1580) Catarina Bragana
event = {
	id = 260097
	random = no
	trigger = {
		OR = {
			NOT = { exists = SPA }
			NOT = { event = 3272 } #POR: King Sebastio's Expedition to North Africa
		}
	}
	country = POR
	name = "EVENTNAME260097" #Catarina Bragana
	desc = "EVENTHIST260097"
	#-#In January of 1580, King Sebastio died quite unexpectedly in his sleep. Predeceased by his uncle, Henrique, the royal house of Aviz had officially died out. Catarina Bragana, as daughter of Prince Duarte (son of Manuel I), had the strongest claim of any of the nobles, although some were displeased with the idea of a female monarch. Facing little opposition, Catarina became Queen of Portugal.

	date = { day = 29 month = january year = 1580 }
	offset = 0
	deathdate = { day = 29 month = february year = 1580 }

	action_a = {
		name = "ACTIONNAME260097A" #Our Queen!
		command = { type = revoltrisk which = 12 value = 5 }
		command = { type = wakemonarch which = 0110522 } #Catarina I 
		command = { type = wakemonarch which = 0110523 } #Teodosio I 
		command = { type = stability value = -1 }
		command = { type = sleepevent which = 3274 } #POR: Filipe II's Claim to the Throne
		command = { type = sleepevent which = 260091 } #POR: Filipe II's Claim to the Throne - alternate
		command = { type = sleepevent which = 260071 } #POR: The Regency
		command = { type = sleepevent which = 260073 } #POR: The House of Bragana #1580 version
		command = { type = sleepevent which = 260088 } #POR: The House of Bragana #1581 version
		command = { type = sleepevent which = 18105 } #POR: Triumph of Aviz
	}
}
#(1580) The Regency
event = {
	id = 260071
	trigger = {
		exists = SPA
	}
	random = no
	country = POR
	name = "EVENTNAME260071" #The Regency
	desc = "EVENTHIST260071"
	#-#In January of 1580, King Sebastio died quite unexpectedly in his sleep. Predeceased by his uncle, Henrique, the royal house of Aviz had officially died out. Duchess Catarina Bragana had the best claim to the throne but many prominent nobles were unwilling to overlook her gender. Dismissing her claims left the nobles to either appeal to a foreign power, the claims of Filipe II of Spain, or accept Dom Antonio, illegitimate son of D. Luis. A regency council was convened to discuss the succession.

	date = { day = 29 month = january year = 1580 }
	offset = 0
	deathdate = { day = 29 month = february year = 1580 }

	action_a = {
		name = "ACTIONNAME260071A" #We shall have to pick an heir
		command = { type = wakemonarch which = 0110507 } #Regency Council
		command = { type = stability value = -4 }
		command = { type = sleepevent which = 260088 } #POR: The House of Bragana #1581 version
	}
}
#(1580) Filipe II's Claim to the Throne
event = {
	id = 3274 #triggered by SPA_3163 A
	trigger = {
		event = 260072 #POR: Death of King Sebastio
	}
	random = no
	country = POR
	name = "EVENTNAME3274" #Filipe II's Claim to the Throne
	desc = "EVENTHIST3274"
	#-#In 1580, a regency council convened in Portugal to settle the succession. With the death of Sebastio I, Portugal was left with no clear heir. In 1580, several people had claims to the throne: Filipe II of Spain, son of D. Isabel (daughter of D. Manuel I) who had a large support of the nobles but lacked peasant support, D. Antonio, despised by the nobles because he was an illegitimate son of D. Luis (son of D. Manuel I) but had great support from the lower classes, and finally, D. Catarina, the Duchess of Bragana. She was the legitimate daughter of D. Duarte (son of D. Manuel I). Duchess Catarina Bragana had the best claim to the throne but the nobles were unwilling to overlook her gender. Dismissing her claims left the nobles to either appeal to a foreign power, the claims of Filipe II of Spain, or accept Dom Antonio, illegitimate son of D. Luis. Filipe II sent diplomats to Lisbon to convince the aristocracy that he was the ideal heir for Portugal. If the Kingdom entered into a personal union with Spain, Filipe II would allow Portugal to keep its own laws and Cortes. Such a union would also be highly profitable at a time when the Portuguese economy was failing as no longer would the Spanish Kingdom fight against its trading interests. Lacking a suitable alternative, the nobles joined forces with the Spanish.

	action_a = {
		name = "ACTIONNAME3274A" #Support Filipe II
		command = { type = stability value = -5 }
		command = { type = province_revoltrisk which = 441 value = 25 } #Tago
		command = { type = revolt which = 441 } #Tago
		command = { type = revolt which = 441 } #Tago
		command = { type = revolt which = 441 } #Tago
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = desertion which = 441 value = 15000 } #Tago
		command = { type = domestic which = ARISTOCRACY value = 1 }
	}
	action_b = {
		name = "ACTIONNAME3274B" #Support Dom Antonio
		command = { type = stability value = -6 }
		command = { type = breakvassal which = SPA }
		command = { type = relation which = SPA value = -200 }
		command = { type = domestic which = ARISTOCRACY value = -2 }
		command = { type = domestic which = SERFDOM value = -2 }
		command = { type = revoltrisk which = 24 value = 3 }
		command = { type = wakemonarch which = 0110519 } #Antonio I 
		command = { type = wakemonarch which = 0110520 } #Cristovo I 
		command = { type = wakemonarch which = 0110521 } #Joo IV
	}
}
#(1580) Filipe II's Claim to the Throne - alternate
event = {
	id = 260091 #triggered by SPA_285276 A
	trigger = {
		event = 260072 #POR: Death of King Sebastio
	}
	random = no
	country = POR
	name = "EVENTNAME3274" #Filipe II's Claim to the Throne
	desc = "EVENTHIST260091"
	#-#In 1580, a regency council convened in Portugal to settle the succession. With the death of Sebastio I, Portugal was left with no clear heir. In 1580, several people had claims to the throne: Filipe II of Spain, D. Antonio, and D. Catarina, the Duchess of Bragana. Filipe II sent diplomats to Lisbon to convince the aristocracy that he was the ideal heir for Portugal. If the Kingdom entered into a personal union with Spain, Filipe II would allow Portugal to keep its own laws and Cortes. Given its position of weakness, Spain's offer was more than generous. Responding in kind, the nobles had no choice but to accept the offer.

	action_a = {
		name = "ACTIONNAME260091A" #We join with Spain!
		command = { type = wakemonarch which = 0110509 } #Filipe I
		command = { type = wakemonarch which = 0110510 } #Filipe II
		command = { type = wakemonarch which = 0110511 } #Filipe III
		command = { type = wakemonarch which = 0110512 } #Joo IV
		command = { type = sleepmonarch which = 0110519 } #Antonio I  - one of these lines might have been activated
		command = { type = sleepmonarch which = 0110520 } #Cristovo I 
		command = { type = sleepmonarch which = 0110521 } #Joo IV
		command = { type = sleepmonarch which = 0110522 } #Catarina I 
		command = { type = sleepmonarch which = 0110523 } #Teodosio I 
		command = { type = sleepmonarch which = 0110524 } #Joo IV
		command = { type = trigger which = 3162 } #SPA: The Portuguese Crown
		command = { type = sleepevent which = 260073 } #POR: The House of Bragana #1580 version
		command = { type = sleepevent which = 260088 } #POR: The House of Bragana #1581 version
	}
}

#(1580-1598) Filipe I in Lisbon
event = {
	id = 260087
	trigger = {
		event = 3163 #SPA: The Portuguese Succession
		owned = { province = 441 data = -1 }
		OR = {
			control = { province = 441 data = REB }
			control = { province = 441 data = SPA }
		}
	}
	random = no
	country = POR
	name = "EVENTNAME260087" #Filipe I in Lisbon
	desc = "EVENTHIST260087"
	#-#With the entrance of Filipe II of Spain's forces into Lisbon, the Portuguese Kingdom fell to the Spanish. Filipe II of Spain would be crowned Filipe I of Portugal.

	date = { day = 1 month = february year = 1580 }
	offset = 1
	deathdate = { day = 12 month = september year = 1598 }

	action_a = {
		name = "ACTIONNAME260087A" #We welcome our new Spanish overlords!
		command = { type = wakemonarch which = 0110509 } #Filipe I
		command = { type = wakemonarch which = 0110510 } #Filipe II
		command = { type = wakemonarch which = 0110511 } #Filipe III
		command = { type = wakemonarch which = 0110512 } #Joo IV
		command = { type = sleepmonarch which = 0110519 } #Antonio I  - one of these lines might have been activated
		command = { type = sleepmonarch which = 0110520 } #Cristovo I 
		command = { type = sleepmonarch which = 0110521 } #Joo IV
		command = { type = sleepmonarch which = 0110522 } #Catarina I 
		command = { type = sleepmonarch which = 0110523 } #Teodosio I 
		command = { type = sleepmonarch which = 0110524 } #Joo IV
		command = { type = province_revoltrisk which = 441 value = -25 } #Tago
		command = { type = inf which = -2 value = 5000 }
		command = { type = cav which = -2 value = 2500 }
		command = { type = treasury value = 100 }
		command = { type = stability value = 3 }
		command = { type = capital which = 441 } #Tago
		command = { type = trigger which = 3162 } #SPA: The Portuguese Crown
		command = { type = sleepevent which = 260073 } #POR: The House of Bragana #1580 version
		command = { type = sleepevent which = 260088 } #POR: The House of Bragana #1581 version
	}
}

#(1580-1598) Filipe's Rule of Portugal
event = {
	id = 260092
	trigger = {
		event = 285276 #SPA: The Portuguese Succession - alternate
		event = 3162 #SPA: The Portuguese Crown
		owned = { province = 441 data = -1 } #Tago
		control = { province = 441 data = -1 } #Tago
	}
	random = no
	country = POR
	name = "EVENTNAME260092" #Filipe's Rule of Portugal
	desc = "EVENTHIST260092"
	#-#True to his word, Felipe II of Spain undertook steps to preserve Portuguese autonomy. He considered the union as a personal one like that of Aragon and Castile under Ferdinand and Isabella, appointing only Portuguese to the Kingdom's administration, summoned their Cortes frequently, and was accompanied by a Portuguese council in Madrid.

	date = { day = 1 month = february year = 1580 }
	offset = 1
	deathdate = { day = 12 month = september year = 1598 }

	action_a = {
		name = "ACTIONNAME260092A" #The Glory of Portugal
		command = { type = dynastic which = SPA }
		command = { type = relation which = SPA value = 200 }
		command = { type = inf which = -2 value = 5000 }
		command = { type = cav which = -2 value = 2500 }
		command = { type = treasury value = 100 }
		command = { type = stability value = 3 }
		command = { type = capital which = 441 } #Tago
	}
}

#(1581-1640) Triumph of Aviz
event = {
	id = 18015
	trigger = {
		event = 3272 #POR: King Sebastio's Expedition to North Africa
		OR = {
			AND = {
				event = 3163 #SPA: The Portuguese Succession
				NOT = { event = 3274 } #POR: Filipe II's Claim to the Throne
			}
			AND = {
				event = 285276 #SPA: The Portuguese Succession - alternate
				NOT = { event = 260091 } #POR: Filipe II's Claim to the Throne - alternate
			}
		}
	}
	random = no
	country = POR
	name = "EVENTNAME18015" #Triumph of Aviz
	desc = "EVENTHIST18015"
	#-#In 1580, a regency council convened in Portugal to settle the succession. With the death of Sebastio I, Portugal was left with no clear heir. Several people had claims to the throne: Filipe II of Spain, son of D. Isabel (daughter of D. Manuel I) who had a large support of the nobles but lacked peasant support, D. Antonio, despised by the nobles because he was an ilegitimate son of D. Luis (son of D. Manuel I) but had great support from the lower classes, and finally, D. Catarina, the Duchess of Bragana. She was the legitimate daughter of D. Duarte (son of D. Manuel I). Duchess Catarina Bragana had the best claim to the throne but the nobles were unwilling to overlook her gender. Dismissing her claims left the nobles to either appeal to a foreign power, the claims of Filipe II of Spain, or accept Dom Antonio, illegitimate son of D. Luis. Filipe II expressed a lack of interest in the throne of Portugal, which left D. Antonio as the only acceptable choice. Although there were a few attempts to muster support for D. Catarina, eventually the claims of D. Antonio were accepted. Through an illegitimate branch, the house of Aviz lived on.

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

	action_a = {
		name = "ACTIONNAME18015A" #Aviz!
		command = { type = sleepmonarch which = 0110524 } #Joo IV
		command = { type = wakemonarch which = 0110519 } #Antonio I 
		command = { type = wakemonarch which = 0110520 } #Cristovo I 
		command = { type = wakemonarch which = 0110521 } #Joo IV
		command = { type = domestic which = ARISTOCRACY value = -2 }
		command = { type = domestic which = SERFDOM value = -2 }
		command = { type = inf which = -2 value = 5000 }
		command = { type = cav which = -2 value = 2500 }
		command = { type = stability value = 3 }
	}
}

#(1581-1640) The House of Bragana
event = {
	id = 260088
	trigger = {
		event = 3272 #POR: King Sebastio's Expedition to North Africa
	}
	random = no
	country = POR
	name = "EVENTNAME260088" #The House of Bragana
	desc = "EVENTHIST260088"
	#-#By 1581, most Portuguese nobles were unconvinced that a takeover by Filipe II of Spain would be most beneficial for Portugal. Not surprisingly, the nobles turned to support the claims of Catarina Bragana, as none of their rank cared for the young upstart, Dom Antonio. Armed with a strong claim and a support of the nobles, Catarina ascended to the throne of Portugal. Naturally, the Spanish monarch as displeased with this development.

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

	action_a = {
		name = "ACTIONNAME260088A" #Bragana!
		command = { type = wakemonarch which = 0110522 } #Catarina I 
		command = { type = wakemonarch which = 0110523 } #Teodosio I 
		command = { type = province_revoltrisk which = 441 value = -25 } #Tago
		command = { type = inf which = -2 value = 5000 }
		command = { type = cav which = -2 value = 2500 }
		command = { type = relation which = SPA value = -200 }
		command = { type = stability value = 3 }
	}
}

#-----------------------------------------------------------------------------------------------
#Mirale Beque Sequence

#(1585-1586) Mirale Beque's first visit
event = {
	id = 260080
	trigger = {
		event = 301073 #TUR: Mischief in East Africa
		owned = { province = 763 data = -1 } #Mombasa
	}
	random = no
	country = POR
	name = "EVENTNAME260080" #Mirale Beque's first visit
	desc = "EVENTHIST260080"
	#-#Mirale Beque, as he's known in Portuguese sources, was a Turkish adventurer who terrorized the Portuguese in East Africa when he sailed south from the Red Sea with two galleys. He was able to surprise and capture several Portuguese merchantmen and was warmly welcomed by the Sultan of Mombasa as an ally against the Portuguese. He sailed back to Arabia heavily laden with booty and prisoners to be sold as slaves or ransomed.

	date = { day = 1 month = september year = 1585 }
	offset = 45
	deathdate = { day = 1 month = may year = 1586 }

	action_a = {
		name = "DAMN"
		command = { type = revolt which = 763 } #Mombasa
	}
}
#(1585-1586) Result of Mirale Beque's first visit
#by sturmvogel
event = {
	id = 260138 #triggered by MOM_336006 A
	random = no
	country = POR
	name = "EVENTNAME260138" #Result of Mirale Beque's first visit
	desc = "EVENTHIST260080"
	#-#Mirale Beque, as he's known in Portuguese sources, was a Turkish adventurer who terrorized the Portuguese in East Africa when he sailed south from the Red Sea with two galleys. He was able to surprise and capture several Portuguese merchantmen and was warmly welcomed by the Sultan of Mombasa as an ally against the Portuguese. He sailed back to Arabia heavily laden with booty and prisoners to be sold as slaves or ransomed.

	action_a = {
		name = "ACTIONNAME260138A" #Some people just don't know their proper place in the world
		command = { type = casusbelli which = TUR value = 12 }
		command = { type = relation which = MOM value = -100 }
		command = { type = relation which = TUR value = -100 }
		command = { type = casusbelli which = MOM value = 36 }
		command = { type = merchants value = -1 }
		command = { type = trade value = -500 }
	}
	action_b = {
		name = "ACTIONNAME336006B" #Don't disturb the status quo
		command = { type = relation which = MOM value = -100 }
		command = { type = relation which = TUR value = -100 }
		command = { type = merchants value = -1 }
		command = { type = trade value = -500 }
	}
}
#(1588-1589) Mirale Beque's second visit
event = {
	id = 260085
	trigger = {
		event = 301074 #TUR: More Mischief in East Africa
		owned = { province = 763 data = -1 } #Mombasa
	}
	random = no
	country = POR
	name = "EVENTNAME260085" #Mirale Beque's second visit
	desc = "EVENTHIST260085"
	#-#Mirale Beque didn't return the following year, but he did return at the beginning of 1589 with a stronger force of galleys. Again he was warmly received by the Sultan of Mombasa who was under siege by the cannibal Zimba tribe. This time, however, the Portuguese had received word of his coming and were prepared for him. They trapped him in Mombasa harbor and allowed the Zimba to take the city as punishment for supporting the Turk. The Sultans of Malindi and Zanzibar were rewarded for their loyalty.

	date = { day = 1 month = december year = 1588 }
	offset = 45
	deathdate = { day = 1 month = may year = 1589 }

	action_a = {
		name = "DAMN"
		command = { type = revolt which = 763 } #Mombasa
	}
}
#(1585-1586) Result of Mirale Beque's second visit
#by sturmvogel
event = {
	id = 260139 #triggered by MOM_336007 A
	random = no
	country = POR
	name = "EVENTNAME260139" #Result of Mirale Beque's second visit
	desc = "EVENTHIST260085"
	#-#Mirale Beque didn't return the following year, but he did return at the beginning of 1589 with a stronger force of galleys. Again he was warmly received by the Sultan of Mombasa who was under siege by the cannibal Zimba tribe. This time, however, the Portuguese had received word of his coming and were prepared for him. They trapped him in Mombasa harbor and allowed the Zimba to take the city as punishment for supporting the Turk. The Sultans of Malindi and Zanzibar were rewarded for their loyalty.

	action_a = {
		name = "ACTIONNAME260139A" #We cannot tolerate this any further
		command = { type = casusbelli which = TUR value = 12 }
		command = { type = relation which = MOM value = -100 }
		command = { type = relation which = TUR value = -100 }
		command = { type = addcore which = 763 } #Mombasa
		command = { type = merchants value = -1 }
		command = { type = trade value = -500 }
	}
	action_b = {
		name = "ACTIONNAME336006B" #Don't disturb the status quo
		command = { type = relation which = MOM value = -100 }
		command = { type = relation which = TUR value = -100 }
		command = { type = merchants value = -1 }
		command = { type = trade value = -500 }
		command = { type = removecore which = 763 } #Mombasa
		command = { type = sleepevent which = 260140 } #POR: We have failed to retain Mombasa
	}
}
#End of Mirale Beque Sequence
#-----------------------------------------------------------------------------------------------

#(1595-1690) Decline of So Tom
event = {
	id = 260025
	trigger = {
		owned = { province = 816 data = -1 } #Fernando Po
		NOT = { provincereligion = { province = 816 data = pagan } } #not a TP
		OR = {
			exists = HOL
			exists = ENG
			exists = FRA
		}
	}
	random = no
	country = POR
	name = "EVENTNAME260025" #Decline of So Tom
	desc = "EVENTHIST260025"
	#-#By the 17th century, So Tom's sugar plantations were reduced to a mere shadow of their former selves. With a plague worms that attacked the roots of sugar cane, slave rebellions, internal discord, attacks from the Angolars and piracy, many of its former sugar planters fled for Brazil, bringing with them their knowledge of efficient, money-making, sugar plantations and the slaves needed to run them.

	date = { day = 1 month = january year = 1595 }
	offset = 120
	deathdate = { day = 1 month = january year = 1690 }

	action_a = {
		name = "ACTIONNAME260025A" #Oh well, it was good while it lasted
		command = { type = population which = 816 value = -1000 } #Fernando Po
		command = { type = provincetax which = 816 value = -2 }
		command = { type = losemanufactory which = 816 }
		command = { type = population which = 198 value = 50 } #Marajo
		command = { type = population which = 199 value = 50 } #Para
		command = { type = population which = 200 value = 50 } #Tiracambu
		command = { type = population which = 203 value = 200 } #Recife
		command = { type = population which = 205 value = 100 } #Pernambuc
		command = { type = population which = 207 value = 150 } #Diamentina
		command = { type = population which = 209 value = 150 } #Salvador
		command = { type = population which = 210 value = 75 } #Itaimas
	}
}

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

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

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

#(1597) Kandy's resistance to Portugal
event = {
	id = 260082 #triggered by LNK_413002 A
	random = no
	country = POR
	name = "EVENTNAME260082" #Portugal inherits Kotte but the Kings of Kandy resist
	desc = "EVENTHIST413002"
	#-#In 1597 Dharmapala, without an heir and on the advice of the Franciscans, donated the Kingdom of Kotte to the King of Portugal. Unfortunately, Wimaladharmasuriya, the King of Kandy, who controlled the center and eastern parts of the island, had become semi-independent of Kotte and refused to submit to the Portuguese.

	action_a = {
		name = "GREAT"
		command = { type = casusbelli which = LNK value = 360 }
		command = { type = addcore which = 576 } #Colombo
	}
}
#(1597) Portuguese annexation of Lanka
event = {
	id = 260081 #triggered by LNK_413002 B / LNK_413011
	random = no
	country = POR
	name = "EVENTNAME260081" #Portugal inherits Kotte
	desc = "EVENTHIST260081"
	#-#In 1597 Dharmapala, without an heir and on the advice of the Franciscans, donated the Kingdom of Kotte to the King of Portugal. This gave possession of the entire island to the Portuguese.

	action_a = {
		name = "GREAT"
		command = { type = annex which = LNK }
		command = { type = addcore which = 576 } #Colombo
	}
}

#(1598-1600) Calicut is cowed
event = {
	id = 260223 #triggered by CLC_364004
	random = no
	country = POR
	name = "EVENTNAME260223" #Calicut is cowed
	desc = "EVENTHIST260223"
	#-#For nearly one hundred years the Kingdom of Calicut has resisted Portuguese incursions in India. Deprived of trade in the now-Portuguese dominated Indian Ocean, Calicut's rulers finally submit to Portuguese influence.

	action_a = {
		name = "AT_LAST"
		command = { type = vassal which = CLC }
	}
}

#(1600-1691) Trade Restrictions
event = {
	id = 18018
	trigger = {
		exists = HOL
		OR = {
			owned = { province = 205 data = -1 }
			owned = { province = 701 data = -1 }
			owned = { province = 702 data = -1 }
			owned = { province = 677 data = -1 }
		}
		NOT = { alliance = { country = HOL country = POR } }
	}
	random = no
	country = POR
	name = "EVENTNAME18018" #Trade Restrictions
	desc = "EVENTHIST18018"
	#-#When Portugal had decided to develop sugar plantations in Brazil, this project was partially financed by Holland (while under spanish rule). The production and trade progressed very well, with Portugal and Holland making huge profits. However, following the independence of Holland and subsequent Spanish hostility, Portugal was pressured into denying the Dutch free trade in Brazil and other places.

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

	action_a = {
		name = "ACTIONNAME18018A" #Strictly Control Trading Rights
		command = { type = domestic which = MERCANTILISM value = 2 }
		command = { type = relation which = HOL value = -100 }
		command = { type = relation which = SPA value = 20 }
	}
}

#(1602-1623) Salvador fortified
#by sturmvogel
event = {
	id = 260011
	trigger = {
		NOT = { provincereligion = { province = 207 data = pagan } } #not a TP
		owned = { province = 207 data = -1 } #Diamentia
		control = { province = 207 data = -1 } #Diamentia
		atwar = no
		ai = yes
	}
	random = no
	country = POR
	name = "EVENTNAME260011" #Salvador fortified
	desc = "EVENTHIST260011"
	#-#The Portuguese fortified Salvador, the capital of Brazil.

	date = { day = 0 month = january year = 1602 }
	offset = 24
	deathdate = { day = 0 month = january year = 1623 }

	action_a = {
		name = "ACTIONNAME260011A" #Build fort
		command = { type = treasury value = -100 }
		command = { type = fortress which = 207 value = 1 } #Diamentina
	}
	action_b = {
		name = "ACTIONNAME260011B" #We don't have enough money
		command = { }
	}
}

#(1605) Ambon falls to VOC
event = {
	id = 260961
	trigger = {
		war = { country = POR country = HOL }
		control = { province = 715 data = HOL }
		event = 3503 #HOL: Vereenigde Oostindische Compagnie
	}
	random = no
	country = POR
	name = "EVENTNAME260961" #Ambon falls to VOC
	desc = "EVENTHIST260961"
	#-#In 1605 Portuguese at Ambon surrendered to ships under VOC.

	date = { day = 1 month = january year = 1605 }
	offset = 30
	deathdate = { day = 1 month = january year = 1606 }

	action_a = {
		name = "ACTIONNAME260961A" #Surrender Ambon
		command = { type = cedeprovince which = HOL value = 715 } #Ceram
		command = { type = removecore which = 715 } #Ceram
		command = { type = relation which = HOL value = 25 }
	}
	action_b = {
		name = "ACTIONNAME260961B" #No, Ambon is ours!
		command = { type = relation which = HOL value = -50 }
		command = { type = desertion which = 715 value = 2000 } #Ceram
	}
}

#(1607-1608) Dutch devastate Moambique
event = {
	id = 260110
	trigger = {
		OR = {
			AND = {
				war = { country = SPA country = HOL }
				vassal = { country = SPA country = POR }
			}
			war = { country = HOL country = POR }
		}
		event = 3503 #HOL: Veerinigte Westindische Compagnie
		owned = { province = 768 data = -1 } #Mtawa
		OR = {
			control = { province = 768 data = -1 }
			control = { province = 768 data = HOL }
		}
		event = 18037 #POR: Portuguese Settlement of Mozambique
	}
	random = no
	country = POR
	name = "EVENTNAME260110" #Dutch devastate Moambique
	desc = "EVENTHIST260110"
	#-#The VOC unsuccessfully besieged the capital of Portuguese East Africa twice during 1607 and 1608. Upon withdrawing they burned the town of Moambique to the ground and laid waste to the farms and orchards, killing many of the native inhabitants while the defenders of the recently completed Fortaleza de So Sebastio watched helplessly. The Dutch never tried its defenses again.

	date = { day = 1 month = april year = 1607 }
	offset = 40
	deathdate = { day = 22 month = august year = 1608 }

	action_a = {
		name = "ACTIONNAME260110A" #Foiled, but at such a cost!
		command = { type = provincetax which = 768 value = -1 } #Mtawa
		command = { type = population which = 768 value = -1000 }
	}
}

#(1607-1610) Gatse Lucere requests aid
#by sturmvogel
event = {
	id = 260136 #triggered by ZIM_335006 A
	random = no
	country = POR
	name = "EVENTNAME260136" #Gatse Lucere requests aid
	desc = "EVENTHIST260136"
	#-#In 1607 Gatse Lucere, the Paramount Chief of Monomotapa, requested aid to put down a series of rebellions. He offered title to all the silver mines in Karangaland in recompense. The Portuguese would spend decades trying to find the non-existent mines, but they did increase their influence over Monomotapa during this time.

	action_a = {
		name = "ACTIONNAME260136A" #Render assistance
		command = { type = alliance which = ZIM }
		command = { type = addcore which = 1511 } #Nembire
		command = { type = relation which = ZIM value = 100 }
		command = { type = wakeleader which = 0110929 } #D. Simoes Madeira (POR)
		command = { type = INF which = 770 value = 5000 } #Nampuia
	}
	action_b = {
		name = "ACTIONNAME260136B" #We don't need the trouble
		command = { type = relation which = ZIM value = -100 }
	}
}

#(1609) Bacan falls to VOC
event = {
	id = 260962
	trigger = {
		war = { country = POR country = HOL }
		control = { province = 713 data = HOL }
		event = 3503 #HOL: Vereenigde Oostindische Compagnie
	}
	random = no
	country = POR
	name = "EVENTNAME260962" #Bacan falls to VOC
	desc = "EVENTHIST260962"
	#-#In 1609 Portuguese fortress on Bacan fell to VOC.

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

	action_a = {
		name = "ACTIONNAME260962A" #Surrender Bacan
		command = { type = cedeprovince which = HOL value = 713 } #Tindore
		command = { type = removecore which = 713 } #Tindore
		command = { type = relation which = HOL value = 25 }
	}
	action_b = {
		name = "ACTIONNAME260962B" #No, Bacan is ours!
		command = { type = relation which = HOL value = -50 }
		command = { type = desertion which = 713 value = 2000 } #Tindore
	}
}

#(1615-1661) Portugal asserts its rights over Brazil
#by sturmvogel
event = {
	id = 260090
	trigger = {
		event = 3271 #POR: Governor Martim Afonso de Sousa in Brazil
		OR = {
			owned = { province = 199 data = -1 } #Para
			owned = { province = 198 data = -1 } #Marajo
			owned = { province = 200 data = -1 } #Tiracambu
			owned = { province = 183 data = -1 } #Amapa
			owned = { province = 202 data = -1 } #Parnaiba
			owned = { province = 201 data = -1 } #Maranhao
		}
	}
	random = no
	country = POR
	name = "EVENTNAME260090" #Portugal asserts its rights over Brazil
	desc = "EVENTHIST260090"
	#-#Portugal made no effort to colonize Northern Brazil until after the French established a colony there in 1612 at Fort St. Louis. Jernimo de Albuquerque captured the fort in 1615 and used it as a base to establish Portuguese authority over the rest of Northern Brazil.

	date = { day = 1 month = january year = 1615 }
	offset = 30
	deathdate = { day = 1 month = january year = 1661 }

	action_a = {
		name = "ACTIONNAME260090A" #It is our land
		command = { type = addcore which = 183 } #Amapa
		command = { type = addcore which = 198 } #Marajo
		command = { type = addcore which = 199 } #Para
		command = { type = addcore which = 200 } #Tiracambu
		command = { type = addcore which = 201 } #Maranhao
		command = { type = addcore which = 202 } #Parnaiba
	}
}

#(1615-1820) We have failed to retain al Kharam
event = {
	id = 260104
	trigger = {
		NOT = { owned = { province = 505 data = -1 } } #Al Kharam
		core = { province = 505 data = -1 }
	}
	random = no
	country = POR
	name = "EVENTNAME260104" #We have failed to retain Al Kharam
	desc = "EVENTHIST260104"
	#-#Al Kharam isn't worth the men and treasure required to defend it.

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

	action_a = {
		name = "ACTIONNAME260045A" #We need to focus on our existing committments
		command = { type = removecore which = 505 } #Al Kharam
	}
}

#(1625-1630) Madness of Teodosio - Ahistorical
event = {
	id = 260146
	trigger = {
		monarch = 0110523 #Teodosio I 
	}
	random = no
	country = POR
	name = "EVENTNAME260146" #Madness of Teodosio
	desc = "EVENTHIST260146"
	#-#King Teodosio I of Portugal (historically Duke Teodosio II of Bragana) went insane in his old age. Fortunately, he didn't live long enough afterwards to cause major damage to Portugal before he was succeeded by his son, King Joo IV.

	date = { day = 15 month = november year = 1625 }
	offset = 300
	deathdate = { day = 29 month = november year = 1630 }

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

#-----------------------------------------------------------------------------------------------
#Submission of Zimbabwe Sequence

#(1628) Jermino de Barros killed
#by sturmvogel
event = {
	id = 260141
	trigger = {
		exists = ZIM
	}
	random = no
	country = POR
	name = "EVENTNAME260141" #Jermino de Barros killed
	desc = "EVENTHIST260141"
	#-#In 1628 Jermino de Barros, envoy to the Monomotapa, was killed at court. Simultaneously an embargo on trade was imposed during which many Portuguese traders were killed. This appears to have been a reaction to large numbers of Dominican missionaries undermining the traditional power structures. This caused the Portuguese to support Mavura against the current Paramount Chief Inhambo, who was forced to seek refuge north of the Zambezi River. Inhambo was later named Caprasine for 'the King who flees'.

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

	action_a = {
		name = "ACTIONNAME260141A" #Those bastards
		command = { type = casusbelli which = ZIM value = 12 }
		command = { type = trade value = -500 }
		command = { type = merchants value = -1 }
	}
}
#(1629) Submission of Zimbabwe
#by sturmvogel
event = {
	id = 260142
	trigger = {
		exists = ZIM
		event = 260141 #POR: Jermino de Barros killed
	}
	random = no
	country = POR
	name = "EVENTNAME260142" #Submission of Zimbabwe
	desc = "EVENTHIST260142"
	#-#Mavura was so grateful for Portuguese support that he made formal submission to the King of Portugal and paid tribute to the Portuguese every year. Portuguese dominance of Monomotapa would be unchallenged for the next sixty years.

	date = { day = 1 month = march year = 1629 }
	offset = 10
	deathdate = { day = 29 month = december year = 1629 }

	action_a = {
		name = "ACTIONNAME260142A" #Mavura has submitted
		command = { type = vassal which = ZIM }
		command = { type = trade value = 250 }
		command = { type = merchants value = 1 }
	}
}
#(1631-1632) Caprasine strikes back
#by sturmvogel
event = {
	id = 260143
	trigger = {
		event = 260141 #POR: Jermino de Barros killed
	}
	random = no
	country = POR
	name = "EVENTNAME260143" #Caprasine strikes back
	desc = "EVENTHIST260143"
	#-#In 1631 Caprasine, the former Paramount Chief of Monomotapa, organized a large uprising against the Portuguese in coordination with the Karanga tribesmen alienated by Mavura. He was initially quite successful as the Portuguese were totally taken by surprise and many traders who had flocked to Monomotapa after Mavura had submitted were killed. He also attacked the Portuguese settlement at Quelimane. However the Karanga chieftains had failed to stockpile firearms or to prepare defensive positions and Diogo Sousa de Meneses was able to crush them easily after he was appointed Captain of Mozambique in 1632.

	date = { day = 1 month = january year = 1631 }
	offset = 360
	deathdate = { day = 29 month = december year = 1632 }

	action_a = {
		name = "DAMN"
		command = { type = revolt which = 770 } #Nampuia
		command = { type = revolt which = 1508 } #Sofala - in case owned by Portugal
		command = { type = revolt which = 1507 } #Chibuene - in case owned by Portugal
		command = { type = revolt which = 1511 } #Nembire - in case owned by Portugal
		command = { type = trade value = -500 }
		command = { type = merchants value = -1 }
		command = { type = trigger which = 335008 } #ZIM: Caprasine strikes back
	}
}
#End of Submission of Zimbabwe Sequence
#-----------------------------------------------------------------------------------------------

#-----------------------------------------------------------------------------------------------
#Mombasa Revolt Sequence
#by sturmvogel

#(1631-1632) Revolt in Mombasa
event = {
	id = 260075
	trigger = {
		control = { province = 763 data = -1 } #Mombasa
		owned = { province = 763 data = -1 } #Mombasa
	}
	random = no
	country = POR
	name = "EVENTNAME260075" #Revolt in Mombasa
	desc = "EVENTHIST260075"
	#-#The Sultan of Mombasa, Dom Jernimo, had been raised as a Christian after his father had been assassinated by the Captain of Mombasa in 1614. When he was installed as the Sultan over his Muslim subjects by the Portuguese they complained that he practiced both Christian and Muslim customs. When a Portuguese spy confirmed this he revolted lest he be executed by the Portuguese as an apostate. He captured Fort Jesus in Mombasa by surprise, but eventually abandoned it when the promised Turkish reinforcements didn't show up. He initally fled to Arabia, but later returned and plagued the Portuguese for most of the next decade.

	date = { day = 15 month = august year = 1631 }
	offset = 30
	deathdate = { day = 5 month = august year = 1632 }

	action_a = {
		name = "DAMN"
		command = { type = revolt which = 763 }
		command = { type = province_revoltrisk which = 763 value = 2 } #Mombasa
	}
}
#(1632-1819) Fort Jesus Strengthened
event = {
	id = 260079
	trigger = {
		control = { province = 763 data = -1 } #Mombasa
		owned = { province = 763 data = -1 } #Mombasa
	}
	random = no
	country = POR
	name = "EVENTNAME260079" #Fort Jesus Strengthened
	desc = "EVENTHIST260079"
	#-#Once Mombasa was reoccupied by the Portuguese they immediately began to repair the weaknesses in the fort and further strengthened it with new defenses.

	date = { day = 5 month = august year = 1632 }
	offset = 700
	deathdate = { day = 0 month = january year = 1819 }

	action_a = {
		name = "ACTIONNAME18036A" #Improve the fortifications
		command = { type = fortress which = 763 value = 1 }
		command = { type = treasury value = -300 }
	}
	action_b = {
		name = "ACTIONNAME260958B" #We don't have money
		command = { }
	}
}
#(1638) Unrest Ends in Mombasa
event = {
	id = 260076
	trigger = {
		control = { province = 763 data = -1 } #Mombasa
		owned = { province = 763 data = -1 } #Mombasa
		event = 260075 #POR: Revolt in Mombasa
	}
	random = no
	country = POR
	name = "EVENTNAME260076" #Unrest Ends in Mombasa
	desc = "EVENTHIST260076"
	#-#The former Sultan of Mombasa, Dom Jernimo, who now called himself Yusuf bin Hasan, caused no end of trouble for the Portuguese until he was killed by Arabs in the Red Sea on 26 November 1638.

	date = { day = 25 month = november year = 1638 }

	action_a = {
		name = "EXCELLENT"
		command = { type = province_revoltrisk which = 763 value = -2 } #Mombasa
	}
}
#End of Mombasa Revolt Sequence
#-----------------------------------------------------------------------------------------------

#(1634) Margaret of Savoy
event = {
	id = 260158 #triggered by SPA_285299 A
	random = no
	country = POR
	name = "EVENTNAME285299" #Margaret of Savoy
	desc = "EVENTHIST260158"
	#-#In 1634, Olivares appointed Princess Margaret of Savoy, as Governess of Portugal. The purpose was two-fold: to silence Portuguese complaints of royal neglect and to raise new taxes to support the Empire. Unfortunately, under Margaret's tenure, more Castilians found their way into the Portuguese government as advisors to Margaret. The court quickly divided into two factions which made effective government, all but impossible.

	action_a = {
		name = "DRATS"
		command = { type = stability value = -2 }
		command = { type = provincetax which = 434 value = 1 } #Oporto
		command = { type = provincetax which = 441 value = 1 } #Tago
		command = { type = provincetax which = 442 value = 1 } #Algarve
	}
}
#(1634) Castile wants more money
event = {
	id = 260159 #triggered by SPA_285299 B
	random = no
	country = POR
	name = "EVENTNAME260159" #Castile wants more money
	desc = "EVENTHIST260159"
	#-#In 1634, Olivares sent orders to the viceroy of Portugal to raise taxes. Disgruntled by perceived royal neglect, a mob in Lisbon took to rioting.

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

#(1637) Revolt in Evora
event = {
	id = 260160
	trigger = {
		OR = {
			event = 260158 #POR: Margaret of Savoy
			event = 260159 #POR: Castile wants more money
		}
	}
	random = no
	country = POR
	name = "EVENTNAME260160" #Revolt in Evora
	desc = "EVENTHIST260160"
	#-#The new taxes by Olivares did little to win him the trust of the Portuguese people. In 1637 tired of paying taxes the populace of Evora and surrounding towns took up the banner of revolt. Forunately of Olivares the riot failed to flare up into a nation-wide revolution, but it was an ominous portent for the future.

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

	action_a = {
		name = "ACTIONNAME260160A" #We've had it
		command = { type = relation which = SPA value = -10 }
		command = { type = stability value = -1 }
		command = { type = provincetax which = 441 value = -1 } #Tago
		command = { type = revolt which = 441 } #Tago
		command = { type = trigger which = 285228  } #SPA: Revolt in Evora
	}
}

#(1637) Local Muslims overcome Portuguese fortress at Ende on Flores
event = {
	id = 260963
	trigger = {
		owned = { province = 711 data = -1 } #Flores
	}
	random = no
	country = POR
	name = "EVENTNAME260963" #Local Muslims overcome Portuguese fortress at Ende on Flores
	desc = "EVENTHIST260963"
	#-#In 1637 local Muslims overcame Portuguese fortress at Ende on Flores.

	date = { day = 1 month = january year = 1637 }
	offset = 30
	deathdate = { day = 1 month = january year = 1638 }

	action_a = {
		name = "DARN"
		command = { type = revolt which = 711 } #Flores
	}
}

#(1638-1740) The loss of Colombo
#by sturmvogel
event = {
	id = 260098
	trigger = {
		core = { province = 576 data = -1 } #Colombo
		control = { province = 576 data = HOL } #Colombo
	}
	random = no
	country = POR
	name = "EVENTNAME260098" #The loss of Colombo
	desc = "EVENTHIST260098"
	#-#Symptomatic of the decline in Portuguese competency, Colombo falls to Dutch forces in 1656.

	date = { day = 1 month = may year = 1638 }
	offset = 30
	deathdate = { day = 29 month = december year = 1740 }

	action_a = {
		name = "DRATS"
		command = { type = cedeprovince which = HOL value = 576 } #Colombo
		command = { type = removecore which = 576 } #Colombo
	}
	action_b = {
		name = "ACTIONNAME260225B" #Never give an inch
		command = { type = relation which = HOL value = -200 }
		command = { type = relation which = LNK value = -200 }
		command = { type = desertion which = -1 value = 5000 }
		command = { type = stability value = -1 }
		command = { type = fortress which = 576 value = -1 } #Colombo
	}
}

#(1638) House of Bragana
event = {
	id = 18016
	trigger = {
		monarch = 0110520 #Cristovo I 
	}
	random = no
	country = POR
	name = "EVENTNAME18016" #House of Bragana
	desc = "EVENTHIST18016"
	#-#Dom Cristovo, never popular with the nobility due to the illegitimate birth of his father, D. Antonio, is nearing the end of his life. As he has no sons, Cristovo decides to marry his only daughter to the Duke of Bragana. Many feel that the Duke has the better claim to the throne of Portugal, and this marriage will assure his ascension to the thone as Joo IV.

	date = { day = 2 month = june year = 1638 }

	action_a = {
		name = "ACTIONNAME18016A" #Support Joo
		command = { type = wakemonarch which = 0110521 } #Joo IV
	}
}

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

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

	action_a = {
		name = "ACTIONNAME260161A" #To arms!
		command = { type = breakvassal which = SPA }
		command = { type = war which = SPA }
		command = { type = INF which = 441 value = 7000 } #Tago
		command = { type = relation which = SPA value = -200 }
		command = { type = warships which = 441 value = 5 } #Tago
		command = { type = sleepevent which = 260162 } #POR: War of Acclamation -II-
		command = { type = sleepevent which = 260163 } #POR: War of Acclamation -III-
		command = { type = trigger which = 285226 } #SPA: Portugal rallies behind the Duke of Bragana
	}
}
#(1640) War of Acclamation -II-
event = {
	id = 260162
	trigger = {
		monarch = 0110512 #Joo IV
		OR = {
			owned = { province = 434 data = SPA } #Oporto
			owned = { province = 441 data = SPA } #Tago
			owned = { province = 442 data = SPA } #Algarve
		}
		OR = {
			event = 260091 #POR: Filipe II's Claim to the Throne - alternate
			event = 260087 #POR: Filipe I in Lisbon
		}
		OR = {
			event = 285295 #SPA: Unrest in Catalonia
			event = 285302 #SPA: Margaret of Savoy in Portugal
			event = 285225 #SPA: Consequence of raising taxes from Madrid
			event = 260160 #POR: Revolt in Evora
		}
	}
	random = no
	country = POR
	name = "EVENTNAME260161" #War of Acclamation
	desc = "EVENTHIST260161"
	#-#By the 1640s, the nobility of Portugal were more than just annoyed with their Spanish captivity. None of the supposed benefits of the union with Spain had come to pass. Despite Filipe I's assurances that Spain would respect the Portuguese constitution and its customes, by the time of Filipe III, taxes were imposed and most all key posts in the government were held by Castilians. Portugal's colonial possessions were also under attack with Spain's enemies, the English and the Dutch. Frustrated by a union that had out lived its usefulness, a group of conspirators began to meet regularly and chose the Duke of Bragana to be their future sovereign. Although a mild-mannered man, the conspiring nobles chose the duke as he had the best claim to throne. Additionally, his confidence was bolstered by his wife, the scheming Luisa de Guzman, daughter of the Spanish Duke of Medina Sidonia. Having orchestrated their rebellion perfectly, the nobles quickly took the palace and the people of Lisbon took control of the city. News of the succesful revolt rapidly spread and one by one the Portuguese defeated the Spanish garrisons. On December 15th of 1640, the Duke and Duchess of Bragana were crowned King and Queen of Portugal.

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

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

	action_a = {
		name = "ACTIONNAME260161A" #To arms!
		command = { type = breakvassal which = SPA }
		command = { type = war which = SPA }
		command = { type = INF which = 441 value = 7000 } #Tago
		command = { type = warships which = 441 value = 5 } #Tago
		command = { type = relation which = SPA value = -200 }
		command = { type = sleepevent which = 260161 } #POR: War of Acclamation -I-
		command = { type = sleepevent which = 260162 } #POR: War of Acclamation -II-
	}
}

#-----------------------------------------------------------------------------------------------
#The Omani revolts Sequence

#(1640-1650) The Omani revolts
event = {
	id = 260093
	trigger = {
		OR = {
			owned = { province = 504 data = -1 }
			owned = { province = 505 data = -1 }
		}
		NOT = { exists = OMA }
	}
	random = no
	country = POR
	name = "EVENTNAME260093" #The Omani revolts
	desc = "EVENTHIST260093"
	#-#By 1640, Imam Nasr al-Yarubi has conquered all internal rivals in the interior and looks to evict the Portuguese from the coast.

	date = { day = 1 month = january year = 1640 }
	offset = 360
	deathdate = { day = 29 month = december year = 1650 }

	action_a = {
		name = "ACTIONNAME260093A" #Blast!
		command = { type = revolt which = 504 } #Mascate
		command = { type = revolt which = 504 } #Mascate
		command = { type = revolt which = 505 } #Al Kharam
		command = { type = revolt which = 505 } #Al Kharam
		command = { type = province_revoltrisk which = 504 value = 25 } #Mascate
		command = { type = province_revoltrisk which = 505 value = 25 } #Al Kharam
	}
	action_b = {
		name = "ACTIONNAME260093B" #Let's leave before it gets ugly
		command = { type = independence which = OMA }
		command = { type = removecore which = 505 } #Al Kharam
		command = { type = trigger which = 248008 } #OMA: The Omani revolts
		command = { type = sleepevent which = 248002 } #OMA: Theft of Portuguese ships
	}
}
#(1660-1820) Oman is subdued
event = {
	id = 260094
	trigger = {
		owned = { province = 504 data = -1 }
		owned = { province = 505 data = -1 }
		control = { province = 504 data = -1 }
		control = { province = 505 data = -1 }
	}
	random = no
	country = POR
	name = "EVENTNAME260094" #Oman is subdued
	desc = "EVENTHIST260094"
	#-#The Yarubis are defeated and Portugal reigns supreme in Oman.

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

	action_a = {
		name = "ACTIONNAME260094A" #Glad that's over
		command = { type = province_revoltrisk which = 504 value = -25 } #Mascate
		command = { type = province_revoltrisk which = 505 value = -25 } #Al Kharam
		command = { type = vp value = 100 }
	}
}
#End of The Omani revolts Sequence
#-----------------------------------------------------------------------------------------------

#(1640-1656) Enlightment of Joo IV
event = {
	id = 260147
	trigger = {
		OR = { #Joo IV
			monarch = 0110524
			monarch = 0110512
			monarch = 0110521
			monarch = 0110533
		}
	}
	random = no
	country = POR
	name = "EVENTNAME260147" #Enlightment of Joo IV
	desc = "EVENTHIST260147"
	#-#True to the style of enlightened absolutism of his age, Joo IV was a patron of music and arts, a considerably sophisticated writer on music and a composer. He collected one of the largest libraries in the world in Lisbon and is well known for writings such as Defense of Palestrina and Defense of Modern Music.

	date = { day = 15 month = december year = 1640 }
	offset = 300
	deathdate = { day = 6 month = november year = 1656 }

	action_a = {
		name = "ACTIONNAME260147A" #Long live the King!
		command = { type = infra value = 200 }
	}
}

#(1640-1656) Joo IV organizes the militia
#by sturmvogel
event = {
	id = 260114
	random = no
	country = POR
	name = "EVENTNAME260114" #Joo IV organizes the militia
	desc = "EVENTHIST260114"
	#-#Shortly after Joo IV's accession he regularized the militia. He organized them into regiment-like Terzos de Auxiliares with 600 men each. They proved useful in repelling Spanish attacks into Portugal during the War of Independence.

	date = { day = 15 month = december year = 1640 }
	offset = 100
	deathdate = { day = 1 month = january year = 1656 }

	action_a = {
		name = "ACTIONNAME260114A" #Organize the militia
		command = { type = domestic which = serfdom value = -1 }
		command = { type = domestic which = land value = 2 }
		command = { type = domestic which = quality value = -1 }
		command = { type = domestic which = offensive value = -1 }
		command = { type = manpower value = 2 }
		command = { type = land value = 500 }
		command = { type = naval value = -1000 }
	}
	action_b = {
		name = "ACTIONNAME260114B" #A dangerous idea
		command = { }
	}
}

#(1641) Malacca falls to VOC
event = {
	id = 260964
	trigger = {
		war = { country = POR country = HOL }
		control = { province = 677 data = HOL }
		owned = { province = 677 data = -1 }
		event = 3503 #HOL: Vereenigde Oostindische Compagnie
	}
	random = no
	country = POR
	name = "EVENTNAME260964" #Malacca falls to VOC
	desc = "EVENTHIST260964"
	#-#In 1641 VOC took Malacca from Portuguese, with help from the Sultan of Johor.

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

	action_a = {
		name = "ACTIONNAME260964A" #Surrender Malacca
		command = { type = cedeprovince which = HOL value = 677 } #Malacca
		command = { type = removecore which = 677 } #Malacca
		command = { type = relation which = HOL value = 25 }
	}
	action_b = {
		name = "ACTIONNAME260964B" #No, Malacca is ours!
		command = { type = relation which = HOL value = -50 }
		command = { type = desertion which = 677 value = 2000 } #Malacca
	}
}

#(1643-1740) English mediation in conflict with Netherlands
event = {
	id = 260149 #triggered by HOL_186086 A
	random = no
	country = POR
	name = "EVENTNAME260149" #English mediation in conflict with Netherlands
	desc = "EVENTHIST186086"
	#-#Using their great influence on both sides, the English mediated in colonial conflict between the rising Dutch and shrinking Portuguese. In 1661, after the fall of Sri Lanka to Dutch forces and failed invasion of Brazil, Netherlands akcnowledged the Portuguese rule in Brazil in exchange for uncontested control of Sri Lanka.

	action_a = {
		name = "ACTIONNAME186086A" #Accept the English suggestion
		command = { type = stability value = 1 }
		command = { type = relation which = ENG value = 100 }
		command = { type = relation which = HOL value = 50 }
		command = { type = removecore which = 576 } #Colombo
		command = { type = addcore which = 205 } #Pernambuc
		command = { type = addcore which = 203 } #Recife
		command = { type = addcore which = 207 } #Diamentina
		command = { type = addcore which = 206 } #Alagoas
		command = { type = addcore which = 208 } #Minas Gerais
		command = { type = addcore which = 209 } #Salvador
		command = { type = addcore which = 210 } #Itaimas
		command = { type = addcore which = 211 } #Niteroi
		command = { type = addcore which = 212 } #Araxa
		command = { type = addcore which = 213 } #Curitiba
		command = { type = addcore which = 214 } #Cangucu
	}
	action_b = {
		name = "ACTIONNAME186086B" #We will have it all!
		command = { type = stability value = -1 }
		command = { type = relation which = ENG value = -100 }
		command = { type = relation which = HOL value = -200 }
	}
}

#(1645-1820) We have failed to retain Toubkal
#event = {
#	id = 260043
#	trigger = {
#		NOT = { owned = { province = 806 data = -1 } } #Toubkal
#		core = { province = 806 data = -1 }
#	}
#	random = no
#	country = POR
#	name = "EVENTNAME260043" #We have failed to retain Toubkal
#	desc = "EVENTHIST260043"
#	#-#Toubkal isn't worth the men and treasure required to take it.
#
#	date = { day = 1 month = january year = 1645 }
#	offset = 10
#	deathdate = { year = 1820 }
#
#	action_a = {
#		name = "ACTIONNAME260043A" #We need to focus on our existing commitments
#		command = { type = removecore which = 806 } #Toubkal
#	}
#}

#(1646) Settlement at Kupang
event = {
	id = 260965
	trigger = {
		owned = { province = 712 data = -1 } #Timor
	}
	random = no
	country = POR
	name = "EVENTNAME260965" #Settlement at Kupang
	desc = "EVENTHIST260965"
	#-#In 1646 Portuguese began building a settlement at the present site of Kupang on western Timor.

	date = { day = 1 month = october year = 1646 }
	offset = 30
	deathdate = { day = 2 month = may year = 1647 }

	action_a = {
		name = "GOOD"
		command = { type = population which = 712 value = 500 } #Timor
	}
}

#(1649-1656) Joo IV organizes the Ordenana
#by sturmvogel
event = {
	id = 260131
	random = no
	country = POR
	name = "EVENTNAME260131" #Joo IV organizes the Ordenana
	desc = "EVENTHIST260131"
	#-#Regularizing the militia proved insufficient to meet the manpower demands of the War of Independence. Consequently Joo IV established the Ordenana in 1649. It maintained a roster of every able-bodied male in the Kingdom between the ages of 15 and 60 from which the regular and militia regiments were conscripted. It also served as the third line of defense for the nation as it was organized into 240 man companies organized all over the Kingdom.

	date = { day = 1 month = january year = 1649 }
	offset = 100
	deathdate = { day = 1 month = january year = 1656 }

	action_a = {
		name = "ACTIONNAME260131A" #Establish the Ordenana
		command = { type = domestic which = serfdom value = -1 }
		command = { type = domestic which = land value = 1 }
		command = { type = manpower value = 4 }
		command = { type = land value = 500 }
		command = { type = naval value = -1000 }
	}
	action_b = {
		name = "ACTIONNAME260114B" #A dangerous idea
		command = { }
	}
}

#(1651) Timor falls to VOC
event = {
	id = 260966
	trigger = {
		war = { country = POR country = HOL }
		control = { province = 712 data = HOL }
		event = 3503 #HOL: Vereenigde Oostindische Compagnie
	}
	random = no
	country = POR
	name = "EVENTNAME260966" #Timor falls to VOC
	desc = "EVENTHIST260966"
	#-#In 1651 VOC took Kupang on western Timor; Portuguese moved to Lifau, in what is now East Timor.

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

	action_a = {
		name = "ACTIONNAME260966A" #Surrender Timor
		command = { type = cedeprovince which = HOL value = 712 } #Timor
		command = { type = removecore which = 712 } #Timor
		command = { type = relation which = HOL value = 25 }
	}
	action_b = {
		name = "ACTIONNAME260966B" #No, Timor is ours!
		command = { type = relation which = HOL value = -50 }
		command = { type = provincetax which = 712 value = -1 } #Timor
		command = { type = provincemanpower which = 712 value = -1 } #Timor
	}
}

#(1652-1680) Raid on Zanzibar
#by sturmvogel
event = {
	id = 260121 #triggered by OMA_248015 A
	random = no
	country = POR
	name = "EVENTNAME248015" #Raid on Zanzibar
	desc = "EVENTHIST260121"
	#-#In 1652 Oman raided Zanzibar and destroyed the Portuguese feitoria there. Queen Mwana Mwema, faced with Omani ships in Zanzibar harbor, pledged submission to the Sultan of Oman.

	action_a = {
		name = "DAMN"
		command = { type = treasury value = -25 }
		command = { type = merchants value = -1 }
		command = { type = trade value = -250 }
		command = { type = relation which = OMA value = -50 }
	}
}
#(1652-1680) Faithless Zanzibar - Ahistorical
#by sturmvogel
event = {
	id = 260123 #triggered by ZAN_373004 C
	random = no
	country = POR
	name = "EVENTNAME260123" #Faithless Zanzibar
	desc = "EVENTHIST260123"
	#-#Zanzibar refuses to have anything more to do with us. Shall we persuade them of the errors of their ways?

	action_a = {
		name = "ACTIONNAME260122A" #Send Cabreira
		command = { type = casusbelli which = ZAN value = 60 }
		command = { type = relation which = ZAN value = -100 }
	}
	action_b = {
		name = "ACTIONNAME248014B" #Leave them well enough alone
		command = { }
	}
}

#(1652-1680) Reassert Portuguese authority over Zanzibar
#by sturmvogel
event = {
	id = 260122
	trigger = {
		event = 260121 #POR: Raid on Zanzibar
	}
	random = no
	country = POR
	name = "EVENTNAME260122" #Reassert Portuguese authority over Zanzibar
	desc = "EVENTHIST260122"
	#-#In 1652 Oman raided Zanzibar and destroyed the Portuguese feitoria there. Queen Mwana Mwema, faced with Omani ships in Zanzibar harbor, pledged submission to the Sultan of Oman. Francisco de Seixas Cabreira was dispatched to rectify the situation. He sacked Zanzibar, reestablished the Portuguese feitoria and placed a more loyal vassal on the throne.

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

	action_a = {
		name = "ACTIONNAME260122A" #Send Cabreira
		command = { type = treasury value = -25 }
		command = { type = casusbelli which = OMA value = 60 }
		command = { type = relation which = ZAN value = -50 }
		command = { type = relation which = OMA value = -100 }
		command = { type = vassal which = ZAN }
	}
	action_b = {
		name = "ACTIONNAME248014B" #Leave them well enough alone
		command = { }
	}
}

#(1652-1680) Capture of Zanzibar - Ahistorical
event = {
	id = 260124
	trigger = {
		control = { province = 765 data = -1 } #Zanzibar
		event = 260123 #POR: Faithless Zanzibar
		exists = ZAN
	}
	random = no
	country = POR
	name = "EVENTNAME260124" #Capture of Zanzibar
	desc = "EVENTHIST260124"
	#-#We have captured Zanzibar. What shall we do now?

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

	action_a = {
		name = "ACTIONNAME260124A" #We must hold Zanzibar for ourselves
		command = { type = annex which = ZAN }
		command = { type = treasury value = 25 }
	}
	action_b = {
		name = "ACTIONNAME260116C" #We will rule through a native puppet
		command = { type = vassal which = ZAN }
		command = { type = treasury value = 25 }
	}
}

#(1658-1740) The loss of Cochin
event = {
	id = 260225
	trigger = {
		core = { province = 573 data = -1 } #Cochin
		control = { province = 573 data = HOL }
	}
	random = no
	country = POR
	name = "EVENTNAME260225" #The loss of Cochin
	desc = "EVENTHIST260225"
	#-#Symptomatic of a larger decline in Portuguese fortunes, Cochin falls to Dutch forces in 1662.

	date = { day = 1 month = january year = 1658 }
	offset = 30
	deathdate = { day = 29 month = december year = 1740 }

	action_a = {
		name = "DRATS"
		command = { type = cedeprovince which = HOL value = 573 } #Cochin
		command = { type = removecore which = 573 } #Cochin
		command = { type = trigger which = 364008 } #CLC: Dutch ascendancy in Malabar
	}
	action_b = {
		name = "ACTIONNAME260225B" #Never give an inch
		command = { type = relation which = HOL value = -200 }
		command = { type = relation which = CLC value = -200 }
		command = { type = desertion which = -1 value = 10000 }
		command = { type = stability value = -2 }
		command = { type = fortress which = 573 value = -1 } #Cochin
		command = { type = sleepevent which = 186037 } #HOL: Ascendancy in Malabar
	}
}

#(1660-1820) We have failed to retain Leone
#by sturmvogel
event = {
	id = 260144
	trigger = {
		NOT = { owned = { province = 795 data = -1 } } #Leone
		core = { province = 795 data = -1 }
	}
	random = no
	country = POR
	name = "EVENTNAME260144" #We have failed to retain Leone
	desc = "EVENTHIST260144"
	#-#Leone isn't worth the men and treasure required to take it.

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

	action_a = {
		name = "ACTIONNAME260045A" #We need to focus on our existing committments
		command = { type = removecore which = 795 } #Leone
	}
}

#(1661-1680) Raid on Bombay
#by sturmvogel
event = {
	id = 260128 #triggered by OMA_248021 A
	random = no
	country = POR
	name = "EVENTNAME248021" #Raid on Bombay
	desc = "EVENTHIST248021"
	#-#In 1661-2 Omani forces attacked Bombay.

	action_a = {
		name = "DAMN"
		command = { type = treasury value = -50 }
		command = { type = merchants value = -2 }
		command = { type = trade value = -500 }
		command = { type = relation which = OMA value = -50 }
	}
}

#(1661-1680) Mombasa sacked by the Omanis
#by sturmvogel
event = {
	id = 260120 #triggered by OMA_248014 A
	random = no
	country = POR
	name = "EVENTNAME260120" #Mombasa sacked by the Omanis
	desc = "EVENTHIST260120"
	#-#Oman sacked Mombasa in February 1661, but made no attempt to besiege Fort Jesus.

	action_a = {
		name = "DAMN"
		command = { type = treasury value = -50 }
		command = { type = merchants value = -2 }
		command = { type = trade value = -500 }
		command = { type = relation which = OMA value = -50 }
	}
}

#(1661) The Dowry of Catherine of Bragana -I-
event = {
	id = 21079
	trigger = {
		OR = {
			exists = HOL
			exists = SPA
		}
		NOT = { vassal = { country = SPA country = POR } }
		exists = ENG
		NOT = { war = { country = POR country = ENG } }
		OR = {
			atwar = yes
			NOT = { stability = 2 }
		}
		OR = {
			owned = { province = 548 data = -1 } #Bombay
			owned = { province = 732 data = -1 } #Tangiers
		}
		NOT = { event = 21080 } #POR: The Dowry of Catherine of Bragana (no territory)
		OR = {
			NOT = { event = 3025 } #ENG: The English Civil War
			OR = {
				event = 3771 #ENG: King Charles and the New Monarchy
				event = 3028 #ENG: The Restoration of the Stuarts
			}
		}
	}
	random = no
	country = POR
	name = "EVENTNAME21079" #The Dowry of Catherine of Bragana
	desc = "EVENTHIST21079"
	#-#By the late 1650s, the Portuguese Empire was increasingly threatened by both Spain and Holland. Desperate to find friendly states that could render any assistance, Portugal turned to the rising maritime power of England for aid. The future Charles II was approached with the idea of a Portuguese marriage with Catherine of Bragana, daughter of the late King Joao IV and Queen Luisa de Gusmao. Part of the dowry was that Portugal would hand over the possessions of Bombay and Tangier to England. Charles II agreed, not only to increase England's overseas empire, but because weakening Spain and Holland by protecting Portugal was very popular domestically.

	date = { day = 23 month = june year = 1661 }

	action_a = {
		name = "ACTIONNAME21079A" #Give territory as a dowry
		command = { type = cedeprovince which = ENG value = 732 } #Tangiers
		command = { type = removecore which = 548 } #Bombay
		command = { type = removecore which = 732 } #Tangiers
		command = { type = CAV which = 441 value = 2000 } #Tago
		command = { type = INF which = 441 value = 10000 } #Tago
		command = { type = stability value = 1 }
		command = { type = relation which = ENG value = 100 }
		command = { type = trigger which = 21081 } #ENG: The Dowry of Territory from Catherine of Bragana
		command = { type = sleepevent which = 21080 } #POR: The Dowry of Catherine of Bragana -II-
	}
	action_b = {
		name = "ACTIONNAME21079B" #We don't need England as an ally
		command = { type = stability value = -1 }
		command = { type = relation which = ENG value = -50 }
		command = { type = trigger which = 21083 } #ENG: The Spurning of Charles II
		command = { type = sleepevent which = 260130 } #POR: Bombay ceded to the English
		command = { type = sleepevent which = 21080 } #POR: The Dowry of Catherine of Bragana -II-
	}
}
#(1663) The Dowry of Catherine of Bragana -II - (No Territory)
event = {
	id = 21080
	trigger = {
		OR = {
			exists = HOL
			exists = SPA
		}
		NOT = { vassal = { country = SPA country = POR } }
		exists = ENG
		NOT = { war = { country = POR country = ENG } }
		OR = {
			atwar = yes
			NOT = { stability = 2 }
		}
		NOT = {
			owned = { province = 548 data = -1 } #Bombay
			owned = { province = 732 data = -1 } #Tangiers
		}
		NOT = { event = 21079 } #POR: The Dowry of Catherine of Bragana
		OR = {
			NOT = { event = 3025 } #ENG: The English Civil War
			OR = {
				event = 3771 #ENG: King Charles and the New Monarchy
				event = 3028 #ENG: The Restoration of the Stuarts
			}
		}
	}
	random = no
	country = POR
	name = "EVENTNAME21079" #The Dowry of Catherine of Bragana
	desc = "EVENTHIST21080"
	#-#By the late 1650s, the Portuguese Empire was increasingly threatened by both Spain and Holland. Desperate to find friendly states that could render any assistance, Portugal turned to the rising maritime power of England for aid. The future Charles II was approached with the idea of a Portuguese marriage with Catherine of Bragana, daughter of the late King Joao IV and Queen Luisa de Gusmao. Charles II was tempted to agree, not only to increase England's overseas empire, but because weakening Spain and Holland by protecting Portugal was very popular domestically.

	date = { day = 21 month = june year = 1663 }

	action_a = {
		name = "ACTIONNAME21080A" #Give ducats as a dowry
		command = { type = treasury value = -200 }
		command = { type = CAV which = 441 value = 2000 } #Tago
		command = { type = INF which = 441 value = 10000 } #Tago
		command = { type = stability value = 1 }
		command = { type = relation which = ENG value = 50 }
		command = { type = trigger which = 21082 } #ENG: The Dowry of Ducats from Catherine of Bragana
		command = { type = sleepevent which = 260130 } #POR: Bombay ceded to the English
		command = { type = sleepevent which = 21079 } #POR: The Dowry of Catherine of Bragana -I-
	}
	action_b = {
		name = "ACTIONNAME21079B" #We don't need England as an ally
		command = { type = stability value = -1 }
		command = { type = relation which = ENG value = -50 }
		command = { type = trigger which = 21083 } #ENG: The Spurning of Charles II
		command = { type = sleepevent which = 260130 } #POR: Bombay ceded to the English
		command = { type = sleepevent which = 21079 } #POR: The Dowry of Catherine of Bragana -I-
	}
}

#(1662) End of Afonso's Minority
event = {
	id = 260150
	random = no
	country = POR
	name = "EVENTNAME260150" #End of Afonso's Minority
	desc = "EVENTHIST260150"
	#-#Afonso VI was fit to rule, at least according to his age, in 1662. Dom Lus de Vasconcelos e Sousa, 3rd Count of Castelo Melhor, used Afonso's mental instability to befriend him and persuade him that his mother, Luisa, is working to take the throne of Portugal for herself. Afonso was convinced. He banished his mother to a convent and made Count of Castelo Melhor his secret notary (escrivo da puridade), position in which the favorite was able to exercise the functions of first minister. The new leader of Portugal continued the successes in war against Spain, but he was unable to maintain the internal stability. Without a strong central figure from the royal family, Count's authority began to erode as various political factions struggled for power. Count of Castelo Melhor was deposed and exiled in 1667, shortly before Afonso himself suffered the same fate.

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

	action_a = {
		name = "ACTIONNAME260150A" #Favor Count of Castelo Melhor
		command = { type = DIP which = 1 value = 60 }
		command = { type = ADM which = 1 value = 60 }
		command = { type = MIL which = 2 value = 60 }
		command = { type = stability value = -1 }
		command = { type = domestic which = CENTRALIZATION value = -1 }
	}
	action_b = {
		name = "ACTIONNAME260150B" #Favor Luisa of Medina-Sidonia
		command = { type = DIP which = 2 value = 60 }
		command = { type = ADM which = 1 value = 60 }
		command = { type = MIL which = 2 value = 60 }
	}
}

#(1665-1820) We have failed to retain Tangiers
event = {
	id = 260064
	trigger = {
		NOT = { owned = { province = 732 data = -1 } } #Tangiers
		core = { province = 732 data = -1 }
	}
	random = no
	country = POR
	name = "EVENTNAME260064" #We have failed to retain Tangiers
	desc = "EVENTHIST260064"
	#-#Tangiers isn't worth the men and treasure required to take it.

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

	action_a = {
		name = "ACTIONNAME260045A" #We need to focus on our existing committments
		command = { type = removecore which = 732 } #Tangiers
	}
}

#(1665-1690) Bombay ceded to the English
event = {
	id = 260130
	trigger = {
		owned = { province = 548 data = -1 } #Bombay
		control = { province = 548 data = -1 }
		event = 21079 #POR: The Dowry of Catherine of Bragana
	}
	random = no
	country = POR
	name = "EVENTNAME260130" #Bombay ceded to the English
	desc = "EVENTHIST260130"
	#-#The Viceroy of India was very reluctant to surrender Bombay to the English which eventually took place some two years after the treaty had been concluded.

	date = { day = 17 month = february year = 1665 }
	offset = 1
	deathdate = { day = 1 month = january year = 1690 }

	action_a = {
		name = "ACTIONNAME260130A" #Hand it over
		command = { type = cedeprovince which = ENG value = 548 } #Bombay
	}
}

#(1668-1675) Diu sacked by the Omanis
#by sturmvogel
event = {
	id = 260126 #triggered by OMA_248019 A
	random = no
	country = POR
	name = "EVENTNAME248019" #First raid on Diu
	desc = "EVENTHIST248019"
	#-#In December 1668 Omani forces sacked Diu, as related by this contemporary report: ''The Arabian enemy entered the city of Dio, which he sacked, and burnt the vessels he found in the port, imprisoning all the people who were in their house with all that they possessed, of which they were despoilt and many of them killed, on account of which that land and its settlers were finished and the fortress which the enemy is besieging remained in distress.''

	action_a = {
		name = "DAMN"
		command = { type = treasury value = -50 }
		command = { type = merchants value = -2 }
		command = { type = trade value = -500 }
		command = { type = relation which = OMA value = -50 }
	}
}

#(1671-1680) Raid on Moambique
#by sturmvogel
event = {
	id = 260125 #triggered by OMA_248018 A
	random = no
	country = POR
	name = "EVENTNAME248018" #Raid on Moambique
	desc = "EVENTHIST260125"
	#-#Oman sacked Moambique in 1671, but made no attempt to besiege Fort So Sebastio.

	action_a = {
		name = "DAMN"
		command = { type = treasury value = -50 }
		command = { type = merchants value = -2 }
		command = { type = trade value = -500 }
		command = { type = relation which = OMA value = -50 }
	}
}

#(1676-1690) Diu sacked by the Omanis
#by sturmvogel
event = {
	id = 260127 #triggered by OMA_248020 A
	random = no
	country = POR
	name = "EVENTNAME248020" #Second raid on Diu
	desc = "EVENTHIST248020"
	#-#After a first raid in December 1668, Omani forces sacked Diu again in January 1676.

	action_a = {
		name = "DAMN"
		command = { type = treasury value = -50 }
		command = { type = merchants value = -2 }
		command = { type = trade value = -500 }
		command = { type = relation which = OMA value = -50 }
	}
}

#(1676-1706) Count da Ericeira
event = {
	id = 3276
	random = no
	country = POR
	name = "EVENTNAME3276" #Count da Ericeira
	desc = "EVENTHIST3276"
	#-#Count da Ericeira was a strong believer of Mercantilism and helped reform Portugal state towards higher control of the Portuguese trade.

	date = { day = 1 month = january year = 1676 }
	offset = 10
	deathdate = { day = 1 month = january year = 1706 }

	action_a = {
		name = "ACTIONNAME3276A" #An Excellent Minister!
		command = { type = domestic which = MERCANTILISM value = 3 }
		command = { type = domestic which = CENTRALIZATION value = 1 }
		command = { type = DIP which = 3 value = 240 }
		command = { type = ADM which = 3 value = 240 }
		command = { type = MIL which = 3 value = 240 }
		command = { type = stability value = 3 }
	}
}

#-----------------------------------------------------------------------------------------------
#"War of the Emboabas" Sequence

#(1701-1709) War of the Emboabas
event = {
	id = 260029
	trigger = { event = 337550 } #Gold discovered in Minas Gerais
	random = no
	country = POR
	name = "EVENTNAME260029" #War of the Emboabas
	desc = "EVENTHIST260029"
	#-#The discovery of gold in Minas Gerais by men from So Paulo (Paulistas) resulted in a flood of immigrants. The Paulistas derisively termed the newcomers ''emboabas'' (birds with feathered legs) and regarded them with contempt since they were unfamiliar with life in the Brazilian hinterlands and were competitors for the gold that had been originally claimed by the Paulistas. The massive influx of people into an area that was essentially totally undeveloped before gold was discovered caused prices for the necessities of life to skyrocket, another bone of contention. Tensions were high between the two groups, but open conflict didn't break out until November of 1708 when the Paulista Jos Pardo was lynched. The emboabas attempted to disarm the Pauistas and evict them entirely from the gold regions. Their leader, Nunes Viana, even began to fill government post, pending the arrival of royal nominees. This alarmed the Governor of Rio de Janiero who arrived in Minas Gerais with a small escort of troops to investigate the disturbances. He generally supported the Paulistas as having legitimate grievances, but the emboabas forced him to return to Rio without settling the major issues. Lisbon ordered the new governor of Rio de Janiero, Antnio de Albuquerque, to proclaim a general amnesty in the hopes of quelling the disturbances. This worked reasonably well, but Paulista hotheads gather forces for one last effort to retake the goldfields on 14 November 1709. They failed, not least to a warning of the impending attack by Albuquerque, and returned home to find a personal appeal by the King, D. Joo V, to give over their struggle.

	date = { day = 0 month = january year = 1701 }
	offset = 90
	deathdate = { day = 0 month = january year = 1709 }

	action_a = {
		name = "ACTIONNAME260026A" #Can't we all just get along?
		command = { type = province_revoltrisk which = 208 value = 2 } #Minas Gerais
	}
}
#(1710) End of the War of the Emboabas
event = {
	id = 260030
	trigger = { event = 260029 }
	random = no
	country = POR
	name = "EVENTNAME260030" #End of the War of the Emboabas
	desc = "EVENTHIST260030"
	#-#The failure of the attack by the Paulistas on the emboabas in November 1709 took the wind out of the sails of the Paulista hotheads and the personal appeal by the King to cease their attacks caused them to put down their arms.

	date = { day = 0 month = june year = 1710 }

	action_a = {
		name = "ACTIONNAME260027A" #We will all get along now, won't we?
		command = { type = province_revoltrisk which = 208 value = -2 } #Minas Gerais
	}
}
#End of "War of the Emboabas" Sequence
#-----------------------------------------------------------------------------------------------

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

#(1703) Portugal signs Methuen and joins Grand alliance (Spanish war of succession Portuguese version)
#by Fodoron
event = {
	id = 260031
	trigger = {
		OR = {
			event = 164015 #ENG: Grand alliance (the Orange King)
			event = 164099 #ENG: Grand alliance (the Stuart King)
		}
	}
	random = no
	country = POR
	name = "EVENTNAME260031" #Portugal signs Methuen and joins Grand Alliance
	desc = "EVENTHIST260031"
	#-#When Carlos II of Spain died childless, he bequeathed the crown of Spain in favour of Philip of Anjou, grandson of Louis XIV of France. Emperor Leopold I of Austria contested this will, but found little support. However, two years later, Louis expansionism had convinced England and the Netherlands to enter an alliance against France and Spain. Portugal had initial agreements with France, but in 1703, due to commercial interests and the possibility of expanding the borders of Brazil, and seeing the course of war turning in favor of the Grand alliance, Portugal signed the treaties of Methuen with England, entering the war on her side. The main purpose of the treaty was to allow free introduction of English wool and cloths to Portugal in exchange of free entry of Portuguese wine into England (Port wine). The treaty made in effect Portugal an economic and political satellite of England, was effectively in place all the way to 1750, when King D Jos I choose to ignore it, even while it was still formally in effect until 1836. The participation of Portugal in the war was deemed very important, as it allowed the opening of the Western front in Spain to the invasion by Anglo-Portuguese troops.

	date = { day = 27 month = december year = 1703 }

	action_a = {
		name = "ACTIONNAME260031A" #Accept English suzerainty
		command = { type = casusbelli which = FRA value = 120 }
		command = { type = casusbelli which = SPA value = 120 }
		command = { type = relation which = SPA value = -75 }
		command = { type = relation which = FRA value = -75 }
		command = { type = relation which = HAB value = 150 }
		command = { type = relation which = HOL value = 75 }
		command = { type = relation which = ENG value = 150 }
		command = { type = domestic which = CENTRALIZATION value = 1 }
		command = { type = gainmanufactory which = -1 value = refinery }
		command = { type = gainmanufactory which = -1 value = refinery }
		command = { type = gainmanufactory which = -1 value = refinery }
		command = { type = gainmanufactory which = -1 value = goods }
		command = { type = stability value = -1 }
		command = { type = trigger which = 3093 } #ENG: The Methuen Agreement
	}
	action_b = {
		name = "ACTIONNAME260031B" #Do not accept English suzerainty
		command = { type = relation which = SPA value = 25 }
		command = { type = relation which = FRA value = 25 }
		command = { type = relation which = HAB value = -75 }
		command = { type = relation which = HOL value = -25 }
		command = { type = relation which = ENG value = -75 }
		command = { type = domestic which = MERCANTILISM value = -3 }
		command = { type = stability value = 2 }
	}
}
#End of "War of Spanish succession" Sequence
#-----------------------------------------------------------------------------------------------

#(1704-1820) The port of Rio de Janeiro
event = {
	id = 260013
	trigger = {
		atwar = no
		owned = { province = 209 data = -1 } #Salvador
		control = { province = 209 data = -1 } #Salvador
		provincereligion = { province = 209 data = catholic } #Salvador
	}
	random = no
	country = POR
	name = "EVENTNAME260013" #The port of Rio de Janeiro
	desc = "EVENTHIST260013"
	#-#In 1704 the completion of a road from Rio to the gold mines of Minas Gerais made the city a major center of transportation, commerce, and wealth.

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

	action_a = {
		name = "GOOD"
		command = { type = provincetax which = 209 value = 1 } #Salvador
	}
}

#-----------------------------------------------------------------------------------------------
#"War of the Mascates" Sequence

#(1710-1714) War of the Mascates
event = {
	id = 260026
	trigger = {
		owned = { province = 205 data = -1 } #Pernambuco
	}
	random = no
	country = POR
	name = "EVENTNAME260026" #War of the Mascates
	desc = "EVENTHIST260026"
	#-#Sugar was already in decline when gold was discovered in Minas Gerais. The resulting flood of immigrants exacerbated tensions between the sugar-planters in Olinda, the provincial capital of Pernambuco and the merchants, many of them of them recent immigrants themselves, of the thriving port city of Recife. The latter, derisively termed 'mascates', or peddlars by the planters, resented the fact that they had no say in even their local government because Recife wasn't legally a separate city and fell under the control of Olinda. The proclamation of the royal decree granting municipal status to Recife by the governor, Sebastiao de Castro e Caldas, in February and March of 1710 was seen as a threat to the dominance of Olinda and its controlling oligarchy of sugar-planters. This was exacerbated by D. Joao V's failure to deliniate the boundaries of Recife, leaving it for the governor and the ouvidor (crown judge) to settle the boundaries between them. De Castro e Caldas awarded three parishes to Recife over the protests of the ouvidor and the town council and arrested the deputation that made the protests. This high-handed act triggered almost half a decade of unrest between partisans of each side, to include sporadic armed conflict between the garrison of Recife and the Olinda milita.

	date = { day = 0 month = march year = 1710 }
	offset = 90
	deathdate = { day = 0 month = january year = 1714 }

	action_a = {
		name = "ACTIONNAME260026A" #Can't we all just get along?
		command = { type = province_revoltrisk which = 205 value = 2 } #Pernambuco
	}
}
#(1715) End of the War of the Mascates
event = {
	id = 260027
	trigger = {
		event = 260026 #POR: War of the Mascates
		owned = { province = 205 data = -1 } #Pernambuco
	}
	random = no
	country = POR
	name = "EVENTNAME260027" #End of the War of the Mascates
	desc = "EVENTHIST260027"
	#-#The arrival of a new, and non-partisan, provincial governor, D. Loureno de Almeida in 1715 effectively ended the disputes.

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

	action_a = {
		name = "ACTIONNAME260027A" #We will all get along now, won't we?
		command = { type = province_revoltrisk which = 205 value = -2 } #Pernambuco
	}
}
#End of "War of the Mascates" Sequence
#-----------------------------------------------------------------------------------------------

#-----------------------------------------------------------------------------------------------
#"O Real Convento de Mafra" Sequence
#by Sturmvogel

#(1715-1717) The Commissioning of O Real Convento de Mafra
event = {
	id = 260035
	random = no
	country = POR
	name = "EVENTNAME260035" #Mafra
	desc = "EVENTHIST260035"
	#-#D. Joo V, a profoundly religious man, commissioned an extravagant monastery amd royal palace in 1715 in gratitude for the birth of his daughter. He wanted the palace and basilica to compete in magnificence and grandeur with Spain's Escorial and St. Peter's in Rome, and at the time it seemed that such a huge project would never be completed. At one point there were 45,000 men working on it and 7,000 soldiers overseeing the workforce. Only the gold flowing from Brazil made it possible.

	date = { day = 0 month = january year = 1715 }
	offset = 10
	deathdate = { day = 18 month = november year = 1717 }

	action_a = {
		name = "ACTIONNAME260035A" #We need it for the Glory of God
		command = { type = vp value = 10 }
		command = { type = treasury value = -500 }
		command = { type = relation which = PAP value = 50 }
	}
	action_b = {
		name = "ACTIONNAME260035B" #Useless piece of..
		command = { type = stability value = 1 }
		command = { type = sleepevent which = 260036 } #POR: The Basilica at o Real Convento de Mafra is finished
		command = { type = sleepevent which = 260037 } #POR: O Real Convento de Mafra is half complete
		command = { type = sleepevent which = 260038 } #POR: O Real Convento de Mafra is almost done
	}
}
#(1730) The Basilica at o Real Convento de Mafra is finished
event = {
	id = 260036
	trigger = {
		event = 260035 #POR: The Commissioning of o Real Convento de Mafra
	}
	random = no
	country = POR
	name = "EVENTNAME260036" #Mafra
	desc = "EVENTHIST260036"
	#-#After 13 years, the Basilica at o Real Convento de Mafra is finished. Judged a masterpiece of Baroque architecture, but much more remains to be done.

	date = { day = 23 month = october year = 1730 }

	action_a = {
		name = "ACTIONNAME260036A" #We will finish it for the Glory of God
		command = { type = vp value = 10 }
		command = { type = treasury value = -500 }
		command = { type = relation which = PAP value = 50 }
	}
	action_b = {
		name = "ACTIONNAME260036B" #Enough is enough
		command = { type = vp value = -10 }
		command = { type = stability value = 1 }
		command = { type = sleepevent which = 260037 } #POR: O Real Convento de Mafra is half complete
		command = { type = sleepevent which = 260038 } #POR: O Real Convento de Mafra is almost done
	}
}
#(1730) O Real Convento de Mafra is half complete
event = {
	id = 260037
	trigger = {
		event = 260036 #POR: Mafra
	}
	random = no
	country = POR
	name = "EVENTNAME260037" #Palace and library for Mafra
	desc = "EVENTHIST260037"
	#-#After 13 years, the Basilica at o Real Convento de Mafra is finished. Judged a masterpiece of Baroque architecture on its own merits, it looks very odd since the adjacent palace and library are unfinished.

	date = { day = 23 month = october year = 1730 }
	offset = 5
	deathdate = { day = 23 month = january year = 1731 }

	action_a = {
		name = "ACTIONNAME260037A" #We will finish it for the Glory of God
		command = { type = vp value = 10 }
		command = { type = treasury value = -500 }
		command = { type = relation which = PAP value = 50 }
	}
	action_b = {
		name = "ACTIONNAME260037B" #Enough is enough
		command = { type = vp value = -10 }
		command = { type = stability value = 1 }
		command = { type = sleepevent which = 260038 } #POR: Mafra is almost done
	}
}
#(1750) O Real Convento de Mafra is almost done
event = {
	id = 260038
	trigger = {
		event = 260037 #POR: Palace and library for Mafra
	}
	random = no
	country = POR
	name = "EVENTNAME260038" #Mafra is almost done
	desc = "EVENTHIST260038"
	#-#Joo V died before Mafra was completed, but the work continued under his son Jos I although the Earthquake of 1755 diverted much labor to rebuilding Lisbon. Mafra was never much in favor with the royal family who mainly used it as a hunting lodge, but it is an masterpiece of the Baroque style. Designed to overawe the visitor with its size and splendor it also succeeds on a smaller scale with the beautiful 35,000 volume Royal Library.

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

	action_a = {
		name = "ACTIONNAME260038A" #Let us complete my father's monument
		command = { type = vp value = 50 }
		command = { type = treasury value = -100 }
		command = { type = stability value = 1 }
		command = { type = relation which = PAP value = 50 }
		command = { type = relation which = SPA value = 25 }
		command = { type = relation which = FRA value = 10 }
		command = { type = relation which = HAB value = 10 }
		command = { type = DIP which = 2 value = 60 }
		command = { type = infra value = 250 }
	}
	action_b = {
		name = "ACTIONNAME260038B" #I'll not throw good money after bad
		command = { type = vp value = -50 }
		command = { type = stability value = -1 }
	}
}
#End of "O Real Convento de Mafra" Sequence
#-----------------------------------------------------------------------------------------------

#(1730) We have failed to retain Mombasa
event = {
	id = 260140
	trigger = {
		NOT = { owned = { province = 763 data = -1 } } #Mombasa
		core = { province = 763 data = -1 }
	}
	random = no
	country = POR
	name = "EVENTNAME260140" #We have failed to retain Mombasa
	desc = "EVENTHIST260140"
	#-#Mombasa is beyond our grasp.

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

	action_a = {
		name = "ACTIONNAME260045A" #We need to focus on our existing committments
		command = { type = removecore which = 763 } #Mombasa
	}
}

#(1742) The Effects of the Pragmatic Sanction
event = {
	id = 3277
	trigger = {
		exists = HAB
		OR = {
			event = 3527 #PRU: The Effects of the Pragmatic Sanction
			event = 3616 #BAY: The Effects of the Pragmatic Sanction
		}
	}
	random = no
	country = POR
	name = "EVENTNAME3205" #The Effects of the Pragmatic Sanction
	desc = "EVENTHIST3205"
	#-#The Pragmatic Sanction, solemnly rendered by Emperor Charles VI on 19th April 1713, established the indivisibility of the Habsburg patrimony, and ruled the order of succession by order of first born child, even to a woman. This made Maria-Theresa, born in 1717, the heir of the Empire. The Pragmatic Sanction was recognized by Spain in 1725 (confirmed in 1731), Russia in 1726, Prussia in 1728, the United Provinces in 1731, Hanover in 1732, the Holy Roman Empire (except Bavaria) in 1732 and France in 1738 only. Bavarian refusal would lead to the War of the Austrian Succession.

	date = { day = 1 month = january year = 1742 }
	offset = 10
	deathdate = { day = 1 month = april year = 1742 }

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

	}
	action_b = {
		name = "ACTIONNAME3616C" #Pro-Habsburg
		command = { type = casusbelli which = SPA value = 36 }
		command = { type = relation which = BAY value = -100 }
		command = { type = relation which = SAC value = -100 }
		command = { type = relation which = PRU value = -100 }
		command = { type = relation which = FRA value = -100 }
		command = { type = relation which = HOL value = 150 }
		command = { type = relation which = ENG value = 150 }
		command = { type = relation which = RUS value = 50 }
		command = { type = relation which = HES value = 100 }
		command = { type = relation which = HAN value = 100 }
		command = { type = relation which = HAB value = 150 }
		command = { type = stability value = -1 }
	}
	action_c = {
		name = "ACTIONNAME3616A" #Anti-Habsburg
		command = { type = casusbelli which = HOL value = 12 }
		command = { type = casusbelli which = ENG value = 12 }
		command = { type = relation which = BAY value = 150 }
		command = { type = relation which = SAC value = 150 }
		command = { type = relation which = PRU value = 150 }
		command = { type = relation which = FRA value = 150 }
		command = { type = relation which = SPA value = 150 }
		command = { type = relation which = HOL value = -150 }
		command = { type = relation which = RUS value = -50 }
		command = { type = relation which = ENG value = -150 }
		command = { type = relation which = HES value = -100 }
		command = { type = relation which = HAN value = -100 }
		command = { type = relation which = HAB value = -150 }
		command = { type = stability value = -1 }
	}
}

#(1755) Earthquake destroy Lisboa (effect)
event = {
	id = 260010 #triggered by ProvinceSpec_338018
	trigger = { owned = { province = 441 data = -1 } } #Lisboa
	random = no
	country = POR
	name = "EVENTNAME260010" #Effect of the destruction of Lisboa
	desc = "EVENTHIST260010"
	#-#This is a disaster for Portugal...

	action_a = {
		name = "ACTIONNAME260010A" #What a pity
		command = { type = stability value = -3 }
	}
}

#(1755-1777) Marquis de Pombal
event = {
	id = 3279
	trigger = {
		event = 338018 #ProvinceSpec*441: Earthquake destroy Lisboa
	}
	random = no
	country = POR
	name = "EVENTNAME3279" #Marquis de Pombal
	desc = "EVENTHIST3279"
	#-#Literally from the ashes of Lisboa, a new leader rose to the power and managed to shake entire Portugal out of the paralyzation caused by the earthquake. He forced through many far reaching reforms. During his rule Lisboa was rebuilt and Portugal entered into the pre-industrial era. In many ways his excellent governing would, for a time, bring back Portugal almost to its former level of glory a few hundred years back.

	date = { day = 1 month = january year = 1755 }
	offset = 10
	deathdate = { day = 1 month = april year = 1777 }

	action_a = {
		name = "ACTIONNAME3279A" #An Excellent Minister!
		command = { type = DIP which = 3 value = 240 }
		command = { type = ADM which = 4 value = 240 }
		command = { type = MIL which = 2 value = 240 }
		command = { type = domestic which = CENTRALIZATION value = 2 }
		command = { type = domestic which = ARISTOCRACY value = -2 }
		command = { type = domestic which = SERFDOM value = -2 }
		command = { type = domestic which = INNOVATIVE value = 1 }
		command = { type = domestic which = MERCANTILISM value = 3 }
		command = { type = domestic which = QUALITY value = 1 }
		command = { type = land value = 750 }
		command = { type = naval value = 750 }
		command = { type = stability value = 3 }
	}
}

#(1758) The Tavoras Conspiracy
event = {
	id = 3280
	random = no
	country = POR
	name = "EVENTNAME3280" #The Tavoras Conspiracy
	desc = "EVENTHIST3280"
	#-#A conspiracy to kill King Don Jos I (1750-1777) was revealed and prevented, by Marquis de Pombal. Pombal used this event to forge his power into a virtual dictatorship. Pombal was a radical reformer, but he was also very power-hungry and without remorse he hunted down anyone that could threaten him in the name of the King.

	date = { day = 3 month = september year = 1758 }

	action_a = {
		name = "ACTIONNAME3280A" #Crush the Opposition
		command = { type = domestic which = CENTRALIZATION value = 2 }
		command = { type = domestic which = ARISTOCRACY value = -2 }
		command = { type = domestic which = SERFDOM value = 1 }
		command = { type = domestic which = INNOVATIVE value = -3 }
		command = { type = revoltrisk which = 60 value = 3 }
		command = { type = stability value = 1 }
	}
	action_b = {
		name = "ACTIONNAME3280B" #Be Lenient
		command = { type = domestic which = CENTRALIZATION value = -1 }
		command = { type = domestic which = ARISTOCRACY value = 1 }
		command = { type = domestic which = INNOVATIVE value = 1 }
		command = { type = stability value = -1 }
	}
}

#(1763-1820) Rio de Janeiro the colonial capital of Brazil
event = {
	id = 260014
	trigger = {
		atwar = no
		owned = { province = 209 data = -1 } #Salvador
		control = { province = 209 data = -1 } #Salvador
		provincereligion = { province = 209 data = catholic } #Salvador
	}
	random = no
	country = POR
	name = "EVENTNAME260014" #Rio de Janeiro the colonial capital of Brazil
	desc = "EVENTHIST260014"
	#-#Rio de Janeiro's fortunes rose in 1763 when the capital of colonial Brazil was moved to Rio from Salvador, a port city in northeastern Brazil known at the time as Bahia.

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

	action_a = {
		name = "GOOD"
		command = { type = provincetax which = 209 value = 1 } #Salvador
	}
}

#(1777) The Expulsion of Marquis Jos da Pombal
event = {
	id = 3281
	random = no
	country = POR
	name = "EVENTNAME3281" #The Expulsion of Marquis de Pombal
	desc = "EVENTHIST3281"
	#-#After the death of the King the forces that had been conspiring to end his life earlier now turned their attention towards the person that had been the real ruler of the Portuguese Kingdom, Marquis de Pombal. With no support from a King Pombal's position was hazardous at best and he was forced to flee. Consequently the reforms he had started that had gotten Portugal back on the path to prosperity where not to continue. Instead grossly reactionary policies implemented by the 'Old Nobility and the Men of the Church' again moved Portugal backwards, threatening to let her end up in the backwater of most of the other European power in the centuries to come.

	date = { day = 1 month = january year = 1777 }
	offset = 10
	deathdate = { day = 1 month = january year = 1778 }

	action_a = {
		name = "ACTIONNAME3281A" #Expel him
		command = { type = domestic which = CENTRALIZATION value = -2 }
		command = { type = domestic which = ARISTOCRACY value = 2 }
		command = { type = domestic which = SERFDOM value = -1 }
		command = { type = domestic which = INNOVATIVE value = -3 }
		command = { type = treasury value = 500 }
		command = { type = stability value = 2 }
	}
	action_b = {
		name = "ACTIONNAME3281B" #Let the 'Great Marquis' rule
		command = { type = domestic which = CENTRALIZATION value = 1 }
		command = { type = domestic which = ARISTOCRACY value = -1 }
		command = { type = domestic which = INNOVATIVE value = 1 }
		command = { type = DIP which = 3 value = 60 }
		command = { type = ADM which = 4 value = 60 }
		command = { type = MIL which = 2 value = 60 }
		command = { type = revoltrisk which = 60 value = 3 }
		command = { type = stability value = -1 }
	}
}

#(1777) An exchange between two continents
#by Fodoron
event = {
	id = 260017
	trigger = {
		owned = { province = 211 data = -1 } #Niteroi
		owned = { province = 223 data = SPA } #Aires (there is a border somewhere)
	}
	random = no
	country = POR
	name = "EVENTNAME260017" #An exchange between two continents
	desc = "EVENTHIST260017"
	#-#After a century of contention over the limits between Brazil and Rio de La Plata exacerbated by the Colnia del Sacramento that was conquered and returned three times by Spain, and in the midst of a Spanish offensive that constituted a serious menace over the recently settled San Pedro do Sul area, the removal of the Marquis of Pombal by Queen Mara allowed a peaceful settlement over the disputed borders with her uncle Carlos III of Spain. At the Treaty of San Ildefonso on October 1, 1777, confirmed in the Treaty of El Pardo in 1778, Portugal ceded Colnia del Sacramento to Spain, but retained Santa Catalina and San Pedro, adquiring rights beyond Tordesillas limits in exchange for the African island of Fernando Po (now Bioko) and full commercial rights in the African coast between the Niger and the Ogoue rivers. Furthermore, for the first time since the independence of Portugal, relations between the Iberians became excellent until Napoleon interfered.

	date = { day = 1 month = october year = 1777 }

	action_a = {
		name = "ACTIONNAME260017A" #Sign the agreement
		command = { type = cedeprovince which = SPA value = 215 } #Uruguay
		command = { type = cedeprovince which = SPA value = 216 } #Artigas
		command = { type = cedeprovince which = SPA value = 217 } #Parana
		command = { type = cedeprovince which = SPA value = 218 } #Neembucu
		command = { type = cedeprovince which = SPA value = 816 } #Fernando Po
		command = { type = removecore which = 816 } #Fernando Po
		command = { type = relation which = SPA value = 100 }
		command = { type = trigger which = 285186 } #SPA: An exchange between two continents
	}
	action_b = {
		name = "ACTIONNAME260017B" #Reject the agreement
		command = { type = relation which = SPA value = -100 }
		command = { type = war which = SPA }
		command = { type = trigger which = 285187 } #SPA: Portugal refuses a peaceful solution over Brazil-La Plata
	}
}
#(1777) Spain refuses a peaceful solution over Brazil-La Plata
#by Fodoron
event = {
	id = 260018 #triggered by SPA_285186 B
	random = no
	country = POR
	name = "EVENTNAME260018" #Spain refuses a peaceful solution over Brazil-La Plata
	desc = "EVENTHIST260018"
	#-#The Spanish reject a peaceful solution over the disputed territories at the Brazil-La Plata borders, and show no interest in Fernando Po. Let's retake what it is ours by force.

	action_a = {
		name = "ACTIONNAME260018A" #Continue military operations in the region
		command = { type = INF which = 211 value = 10000 } #Niteroi
	}
}

#(1780-1791) The Novas Conquestas
#by sturmvogel
event = {
	id = 260119
	trigger = {
		control = { province = 549 data = -1 } #Goa
		owned = { province = 549 data = -1 }
	}
	random = no
	country = POR
	name = "EVENTNAME260119" #The Novas Conquestas
	desc = "EVENTHIST260119"
	#-#Portugal fought several small campaigns between 1780 and 1791 against Goa's neighbors to create a buffer zone for the proper defense of Goa. The territories of Ponda, Sanguem, Quepem, Canacona, Pernem, Bicholim and Satari were added during this period and were collectively known as the 'Novas Conquestas' or New Conquests. The Rajput mercenaries formerly employed by the Portuguese who'd settled in the these areas, latterly called Ranes, didn't take kindly to Portuguese rule and revolted 20 times before 1912.

	date = { day = 1 month = january year = 1780 }
	offset = 360
	deathdate = { day = 29 month = december year = 1791 }

	action_a = {
		name = "ACTIONNAME260119A" #We must ensure Goa's safety
		command = { type = province_revoltrisk which = 549 value = 5 } #Goa
		command = { type = population which = 549 value = 5000 }
		command = { type = provincereligion which = 549 value =	hindu }
	}
	action_b = {
		name = "ACTIONNAME260119B" #Goa doesn't need a buffer zone
		command = { type = stability value = -1 }
	}
}

#(1787-1788) Pinto Revolt
event = {
	id = 260118
	trigger = {
		control = { province = 549 data = -1 } #Goa
		owned = { province = 549 data = -1 }
		event = 3279 #POR: Marquis de Pombal
	}
	random = no
	country = POR
	name = "EVENTNAME260118" #Pinto Revolt
	desc = "EVENTHIST260118"
	#-#Anger at the failure of the Marquis of Pombal's reforms to produce racial equality in Goa sparked a large revolt in Goa. The leaders of the plot were some prominent priests of Goa belonging to the 'Pinto Family' who had the support of some military officers of Goan origin.

	date = { day = 1 month = january year = 1787 }
	offset = 360
	deathdate = { day = 29 month = december year = 1788 }

	action_a = {
		name = "DAMN"
		command = { type = revolt which = 549 } #Goa
	}
}

#(1789-1792) Inconfidncia Mineira
event = {
	id = 260151
	trigger = {
		owned = { province = 208 data = -1 } #Minas Gerais
	}
	random = no
	country = POR
	name = "EVENTNAME260151" #Inconfidncia Mineira
	desc = "EVENTHIST260151"
	#-#The Inconfidncia Mineira, or Minas Conspiracy, was the first major separatist movement in Brazil, with the objective of forming a Republic, clearly influenced by the American Independence and the French Enlightenment ideals, but before its planned revolt, it was betrayed by one of its members, Joaquim Silvrio dos Reis, and all its members, including intellectuals, poets and officials from the army were arrested, with most of them hanged or exiled. Its motto, "Libertas qu sera tamen", translated as "Freedom, even though late", became a major symbol of resistance in the Captaincy of Minas Gerais.

	date = { day = 1 month = january year = 1789 }
	offset = 50
	deathdate = { year = 1792 }

	action_a = {
		name = "ACTIONNAME260151A" #Damn those mineiros
		command = { type = revolt which = 208 }
		command = { type = revolt which = 208 }
	}
}

#-----------------------------------------------------------------------------------------------
#Move Court to Brazil Sequence
#Idea: King of Brazil, Annibale - Scripting by Annibale

#(1790-1820) Move Court to Brazil
event = {
	id = 18023
	trigger = {
		owned = { province = 209 data = -1 }
		control = { province = 209 data = -1 }
		NOT = { provincereligion = { province = 209 data = pagan } } #Not a TP
		NOT = { control = { province = 441 data = -1 } }
		NOT = {	control = { province = 441 data = REB } }
		NOT = { exists = BRZ }
	}
	random = no
	country = POR
	name = "EVENTNAME18023" #Move Court to Brazil
	desc = "EVENTHIST18023"
	#-#Lisbon has fallen to our enemies, should we move the court to Brazil?

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

	action_a = {
		name = "ACTIONNAME18023A" #Flee to Brazil!
		command = { type = population which = 209 value = 20000 } #Salvador
		command = { type = capital which = 209 } #Salvador
		command = { type = addcore which = 209 } #Salvador
		command = { type = stability value = -2 }
		command = { type = domestic which = CENTRALIZATION value = -1 }
		command = { type = domestic which = MERCANTILISM value = -5 }
	}
	action_b = {
		name = "ACTIONNAME18023B" #Stay in Portugal
		command = { type = stability value = 1 }
		command = { type = domestic which = CENTRALIZATION value = 1 }
		command = { type = sleepevent which = 18024 } #POR: Return to Lisbon
	}
}
#(1790-1820) Return to Lisbon
event = {
	id = 18024
	trigger = {
		event = 18023 #POR: Move Court to Brazil
		owned = { province = 441 data = -1 } #Tago
		control = { province = 441 data = -1 }
	}
	random = no
	country = POR
	name = "EVENTNAME18024" #Return to Lisbon
	desc = "EVENTHIST18024"
	#-#Lisbon has been freed from foreign domination and belongs to the throne of Portugal once again. Shall we move back home, or is Brazil to be our permanent home?

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

	action_a = {
		name = "ACTIONNAME18024A" #Return to Lisbon
		command = { type = capital which = 441 } #Tago
		command = { type = stability value = 2 }
		command = { type = domestic which = CENTRALIZATION value = 1 }
		command = { type = domestic which = aristocracy value = 1 }
		command = { type = domestic which = serfdom value = 1 }
		command = { type = trigger which = 18025 } #POR: Brazilian Independence
	}
	action_b = {
		name = "ACTIONNAME18024B" #Stay in Brazil
		command = { type = stability value = -2 }
		command = { type = domestic which = CENTRALIZATION value = -2 }
		command = { type = revolt which = 441 } #Tago
	}
}
#(1790-1820) Brazilian Independence - Ahistorical
event = {
	id = 18025 #triggered by POR_18024 A
	random = no
	country = POR
	name = "EVENTNAME18025" #Brazilian Independence
	desc = "EVENTHIST18025"
	#-#Brazilian independence movement declares itself following the return of the monarchy to Portugal.

	action_a = {
		name = "ACTIONNAME18025A" #Fight for our Overseas Colonies
		command = { type = relation which = BRZ value = -400 }
		command = { type = stability value = -1 }
		command = { type = domestic which = CENTRALIZATION value = -1 }
		command = { type = domestic which = aristocracy value = 1 }
		command = { type = domestic which = serfdom value = 1 }
		command = { type = trigger which = 135000 } #BRZ: Brazilian Independence
	}
	action_b = {
		name = "ACTIONNAME18025B" #Grant Brazilian Independence
		command = { type = independence which = BRZ }
		command = { type = stability value = 1 }
		command = { type = domestic which = CENTRALIZATION value = 1 }
		command = { type = trigger which = 260135 } #POR: Consequences of the Brazilian Independence
	}
}
#(1790-1820) Consequences of the Brazilian Independence - Ahistorical
event = {
	id = 260135 #triggered by POR_18025 B
	random = no
	country = POR
	name = "EVENTNAME260135" #Consequences of the Brazilian Independence
	desc = "EVENTHIST260135"
	#-#Portuguese influence in Brazil vanishes...

	action_a = {
		name = "OK"
		command = { type = removecore which = 203 } #Recife
		command = { type = removecore which = 205 } #Pernambuc
		command = { type = removecore which = 206 } #Alagoas
		command = { type = removecore which = 207 } #Diamentina
		command = { type = removecore which = 208 } #Minas Gerais
		command = { type = removecore which = 209 } #Salvador
		command = { type = removecore which = 210 } #Itaimas
		command = { type = removecore which = 211 } #Niteroi
		command = { type = removecore which = 212 } #Araxa
		command = { type = removecore which = 213 } #Curitiba
		command = { type = removecore which = 214 } #Cangucu
		command = { type = removecore which = 183 } #Amapa
		command = { type = removecore which = 198 } #Marajo
		command = { type = removecore which = 199 } #Para
		command = { type = removecore which = 200 } #Tiracambu
		command = { type = removecore which = 201 } #Maranhao
		command = { type = removecore which = 202 } #Parnaiba
		command = { type = removecore which = 204 } #Iguatu
		command = { type = cedeprovince which = BRZ value = 203 } #Recife
		command = { type = cedeprovince which = BRZ value = 205 } #Pernambuc
		command = { type = cedeprovince which = BRZ value = 206 } #Alagoas
		command = { type = cedeprovince which = BRZ value = 207 } #Diamentina
		command = { type = cedeprovince which = BRZ value = 208 } #Minas Gerais
		command = { type = cedeprovince which = BRZ value = 209 } #Salvador
		command = { type = cedeprovince which = BRZ value = 210 } #Itaimas
		command = { type = cedeprovince which = BRZ value = 211 } #Niteroi
		command = { type = cedeprovince which = BRZ value = 212 } #Araxa
		command = { type = cedeprovince which = BRZ value = 213 } #Curitiba
		command = { type = cedeprovince which = BRZ value = 214 } #Cangucu
		#BRZ extras
		command = { type = cedeprovince which = BRZ value = 183 } #Amapa
		command = { type = cedeprovince which = BRZ value = 195 } #Mato Grosso
		command = { type = cedeprovince which = BRZ value = 196 } #Goias
		command = { type = cedeprovince which = BRZ value = 197 } #Caracas
		command = { type = cedeprovince which = BRZ value = 198 } #Marajo
		command = { type = cedeprovince which = BRZ value = 199 } #Para
		command = { type = cedeprovince which = BRZ value = 200 } #Tiracambu
		command = { type = cedeprovince which = BRZ value = 201 } #Maranhao
		command = { type = cedeprovince which = BRZ value = 202 } #Parnaiba
		command = { type = cedeprovince which = BRZ value = 204 } #Iguatu
		command = { type = relation which = BRZ value = 100 }
		command = { type = trigger which = 135000 } #BRZ: Brazilian Independence
	}
}
#End of Move Court to Brazil Sequence
#-----------------------------------------------------------------------------------------------

#(1801) War of the oranges
#by DBM and Fodoron with the help of the Spanish Forum
event = {
	id = 260063 #triggered by SPA_285064 A
	random = no
	country = POR
	name = "EVENTNAME285064" #War of the oranges
	desc = "EVENTHIST285064"
	#-#After the signing of the second treaty of San Ildefonso, France started to pressure Spain to collaborate in an invasion of Portugal to dislodge her from her alliance with England. Carlos IV was the father-in-law of Joao VI, prince of Brazil and regent of Portugal, and did not desire a conflict, but French pressure was too strong. Joao could not accept Napolon's demands of ceding a quarter of his territory to Spain as a guarantee, and so the war became inevitable. On May 20, 1801, Godoy invaded Portugal from three points, and in nine days completely defeated the Portuguese army, before the French army sent to participate in the campaign could cross Spain. Godoy sent a branch of an orange tree from the moat of Elvas to his Queen and lover, and hence the name of the war. But Carlos IV had no intention of leaving Portugal in the hands of Napolon, and against his instructions, signed the treaty of Badajoz with Joao. It was a very favorable treaty for Portugal, who had to pay indemnities to France, close her ports to British ships, cede a small part of the Guiana to France, and the small town of Olivenza to Spain. The treaty was signed on the 8th of June, but dated on the 6th, so Carlos could ignore Napolon's instructions received on the 7th. Napolon was furious and did not ratify the treaty until the 29th of September.

	action_a = {
		name = "ACTIONNAME260063A" #Damm Spaniards and French
		command = { type = relation which = SPA value = -25 }
		command = { type = relation which = FRA value = -25 }
		command = { type = treasury value = -50 }
	}
}

#(1803) The Napoleonic Wars
event = {
	id = 260016 #triggered by FRA_12125 A
	random = no
	country = POR
	name = "EVENTNAME12125" #The Napoleonic Wars
	desc = "EVENTHIST12128"
	#-#Napolon argued that he wanted to build a federation of free peoples in a Europe united under a liberal government. But if this was indeed his goal, he intended to achieve it by taking power into his own hands. He supposedly intended to grant constitutions, introduce laws, abolished feudalism, create efficient governments and foster education, science, literature and the arts. The other powers of Europe looked on with alarm at an expansionist France, bringing its revolutionary ideals and fervour abroad in the wake of Napolon's military might.

	action_a = {
		name = "WAR"
		command = { type = casusbelli which = FRA value = 192 }
		command = { type = relation which = RUS value = 150 }
		command = { type = relation which = SAV value = 150 }
		command = { type = relation which = HAB value = 150 }
		command = { type = relation which = PRU value = 150 }
		command = { type = relation which = SPA value = 150 }
		command = { type = relation which = ENG value = 150 }
		command = { type = relation which = POR value = 150 }
		command = { type = relation which = FRA value = -200 }
		command = { type = wakeleader which = 0110825 } #W.C. Beresford (POR)
	}
	action_b = {
		name = "PEACE"
		command = { type = stability value = -1 }
	}
}

#(1806-1813) The Prince-Regent reforms the army
#by sturmvogel
event = {
	id = 260132
	trigger = {
		event = 260063 #POR: War of the Oranges
	}
	random = no
	country = POR
	name = "EVENTNAME260132" #The Prince-Regent reforms the army
	desc = "EVENTHIST260132"
	#-#Humiliated by the ease with which the French and Spanish had defeated the army in 1801 the Prince-Regent Joo, later Joo VI, decided to reform the army. He established a military council to propose reforms although political difficulties delayed the reorganization until 1806. It divided up the country into three divisions, Northern, Central and Southern. Every unit was assigned to one of these divisions. The size of the Regular Army remained the same, but militia regiments were increased to 48 from 43 and the Ordenana companies were organized into 24 brigades. The Ordenana brigades acted as a recruiting depot and reserve for a regiment of the line and two militia regiments. Enlisted men released after their service with a regular infantry or militia unit were obligated to serve another eight years in their Ordenana brigade. These reforms had only been partially implemented when the French invaded in 1807, but they were fully implemented by 1812.

	date = { day = 18 month = may year = 1806 }
	offset = 720
	deathdate = { day = 1 month = january year = 1813 }

	action_a = {
		name = "ACTIONNAME260132A" #Reform the army
		command = { type = domestic which = serfdom value = -1 }
		command = { type = domestic which = land value = 1 }
		command = { type = manpower value = 4 }
		command = { type = domestic which = quality value = 1 }
		command = { type = domestic which = offensive value = -1 }
		command = { type = land value = 500 }
		command = { type = naval value = -1000 }
	}
	action_b = {
		name = "ACTIONNAME260114B" #A dangerous idea
		command = { }
	}
}

#(1816-1820) The Liberal Opposition
event = {
	id = 3282
	random = no
	country = POR
	name = "EVENTNAME3282" #The Liberal Opposition
	desc = "EVENTHIST3282"
	#-#With the Revolution in France, intellectuals in Portugal also formed to crave the 'Rights of Men' and with a reactionary government this created instability in the country for several years.

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

	action_a = {
		name = "ACTIONNAME3282A" #Growing opposition
		command = { type = stability value = -3 }
		command = { type = revoltrisk value = 5 }
	}
	action_b = {
		name = "ACTIONNAME3282B" #The King concede to liberal ideas
		command = { type = stability value = -2 }
		command = { type = revoltrisk value = 2 }
		command = { type = domestic which = ARISTOCRACY value = -2 }
		command = { type = domestic which = INNOVATIVE value = 1 }
		command = { type = domestic which = SERFDOM value = -2 }
	}
}

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

#First free id: 260148 - next: 260167
