#################################
#####Portuguese Major Events#####
###By Joakim 'Greven' Bergqwist##
#################################

#The Social Revolution of João I#
event = {

	id = 3265
	random = no
	country = POR
	name = "EVENTNAME3265"
	desc = "EVENTHIST3265"
	style = 1

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


	action_a = {		#For the trade & people!#
		name = "ACTIONNAME3265A"
		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 which = 24 value = 3 }
	}

	action_b = {		#Support the Aristocracy#
		name = "ACTIONNAME3265B"
		command = { type = domestic  which = ARISTOCRACY  value = 1 }
		command = { type = domestic  which = QUALITY  value = 1 }
		command = { type = land  value = 250 }
	}

}

#The Afonsine Ordinances#
event = {

	id = 3266
	random = no
	country = POR
	name = "EVENTNAME3266"
	desc = "EVENTHIST3266"
	style = 1

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

	action_a = {		#Every man make his own fortune#
		name = "ACTIONNAME3266A"
		command = { type = domestic  which = centralization  value = -2 }
		command = { type = stability  value = 2 }
	}

	action_b = {		#Demand less corruption#
		name = "ACTIONNAME3266B"
		command = { type = domestic  which = centralization  value = 2 }
		command = { type = revoltrisk which = 60 value = 3 }
		command = { type = stability  value = -2 }
		command = { type = provincetax  which = 1996 value = 1 }
		command = { type = provincetax  which = 1409 value = 1 }
                command = { type = provincetax  which = 1918 value = 1 }
		command = { type = provincetax  which = 441 value = 1 }
                command = { type = provincetax  which = 442 value = 1 }
		command = { type = provincetax  which = 434 value = 1 }
command = { type = provincetax  which = 1014 value = 1 }
	}

}


#The Duke of Coimbra#
event = {

	id = 3267
	random = no
	country = POR
	name = "EVENTNAME3267"
	desc = "EVENTHIST3267"
	style = 1

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

	action_a = {				#King is tricked#
		name = "ACTIONNAME3267A"
		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 = {				#Duke survives & assists king#
		name = "ACTIONNAME3267B"
		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 }
	}
}

#Commercial Conflict in the Indian Ocean#
event = {

	id = 3268
	random = no
	country = POR
	name = "EVENTNAME3268"
	desc = "EVENTHIST3268"
	style = 2

	date = { day = 1 month = january year = 1500 }
	offset = 60
	deathdate = { day = 1 month = january year = 1513 }

	action_a = {		#Forcefully control spice trade#
		name = "ACTIONNAME3268A"
		command = { type = gainbuilding which = 441 value = shipyard }
                command = { type = warships  which = -2  value = 6 }
		command = { type = relation  which = OMA  value = -400 }
		command = { type = relation  which = TUR  value = -100 }
		command = { type = relation  which = GUJ  value = -100 }
		command = { type = domestic  which = MERCANTILISM  value = 2 }
		command = { type = casusbelli  which = OMA value = 1800 }
                command = { type = addcore which = 756 } #Socotra
                command = { type = addcore which = 765 } #Socotra		
		command = { type = explorer which = 549 }
                command = { type = addcore which = 549 }
	}

	action_b = {		#Negotiate trading rights#
		name = "ACTIONNAME3268B"
		command = { type = gainbuilding which = 441 value = shipyard }
		command = { type = relation  which = OMA  value = 50 }
		command = { type = relation  which = TUR  value = 50 }
		command = { type = relation  which = GUJ  value = 50 }
		command = { type = domestic  which = MERCANTILISM  value = -2 }
	}

}

#The Holy Inquisition#
event = {

	id = 3269
	random = no
	country = POR
	name = "EVENTNAME3269"
	desc = "EVENTHIST3269"
	style = 1

	date = { day = 1 month = january year = 1536 }
	offset = 60
	deathdate = { day = 1 month = january year = 1668 }

	action_a = {		#Institute them!#
		name = "ACTIONNAME3269A"
		command = { type = domestic  which = INNOVATIVE  value = -3 }
	}

	action_b = {		#Do not institute them!#
		name = "ACTIONNAME3269B"
		command = { type = domestic  which = INNOVATIVE  value = 1 }
		command = { type = relation  which = SPA  value = -75 }
		command = { type = relation  which = PAP  value = -75 }
	}

}

#The Societas Jesu#
event = {

	id = 3270
	random = no
	country = POR
	name = "EVENTNAME3270"
	desc = "EVENTHIST3270"
	style = 2

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

	action_a = {				#Institute them!#
		name = "ACTIONNAME3270A"
		command = { type = domestic which = INNOVATIVE value = -1 }
		command = { type = colonists  value = 4 }
		command = { type = missionaries  value = 4 }
	}

	action_b = {				#Do not institute them!#
		name = "ACTIONNAME3270B"
		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 }
	}
}

#Governor Martim Afonso de Sousa in Brazil#
event = {

	id = 3271
	random = no
	country = POR
	name = "EVENTNAME3271"
	desc = "EVENTHIST3271"
	style = 2

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

	action_a = {		#Appoint de Sousa#
		name = "ACTIONNAME3271A"
		command = { type = stability  value = 2 }
		command = { type = conquistador  which = -1 }
		command = { type = warships which = -2 value = 5 }
	}

}

#King Sebastião's Expedition to North Africa#
event = {

	id = 3272
	random = no
	trigger = {
			OR = {
				exists = MOR
				exists = FEZ
				exists = ALD
				}
		}
	country = POR
	name = "EVENTNAME3272"
	desc = "EVENTHIST3272"
	style = 2

	date = { day = 4 month = august year = 1578 }
	offset = 0
	deathdate = { day = 5 month = august year = 1578 }

	action_a = {			#A Crusade against the Heretics in Africa#
		name = "ACTIONNAME3272A"
		command = { type = sleepevent which = 3163 }
		command = { type = casusbelli which = MOR value = 12 }
		command = { type = casusbelli which = FEZ value = 12 }
		command = { type = casusbelli which = ALD value = 12 }
		command = { type = treasury value = 300 }
		command = { type = INF which = -1 value = 10000 }
		command = { type = CAV which = -3 value = 5000 }
		command = { type = ART which = -3 value = 10 }
		command = { type = stability value = 1 }
		command = { type = domestic which = CENTRALIZATION value = 1 }
		command = { type = domestic which = ARISTOCRACY value = -3 }
	}

	action_b = {			#Declare the King insane and lock him up for good#
		name = "ACTIONNAME3272B"
		command = { type = wakemonarch which = 06768 }
		command = { type = sleepevent which = 3162 }
		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 }
	}
}

#Epidemic Plague#
event = {

	id = 3273			#Triggered by SPA3165#
	random = no
	country = POR
	name = "EVENTNAME3273"
	desc = "EVENTHIST3273"
	style = 3

	action_a = {				#Arrgh!#
		name = "ACTIONNAME3273A"
		command = { type = stability value = -1 }
		command = { type = population which = -1 value = -3000 }
		command = { type = provincetax which = -3 value = -1 }
		command = { type = population which = -1 value = -3000 }
		command = { type = provincetax which = -3 value = -1 }
		command = { type = population which = -1 value = -3000 }
		command = { type = provincetax which = -3 value = -1 }
	}
}

#Filipe II Claim to the Throne# 
event = {

	id = 3274
	random = no
	country = POR
	name = "EVENTNAME3274"
	desc = "EVENTHIST3274"
	style = 2

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

	action_a = {				#Accept the New Government#
		name = "ACTIONNAME3274A"
		command = { type = stability value = 1 }
		command = { type = relation which = SPA value = 100 }
		command = { type = alliance which = SPA }
		command = { type = sleepevent  which = 18015 }
	}

	action_b = {				#Accept the King, but not the government#
		name = "ACTIONNAME3274B"
		command = { type = stability value = -1 }
		command = { type = breakvassal which = SPA }
		command = { type = relation which = SPA value = -200 }
		command = { type = casusbelli which = SPA value = 6 }
		command = { type = trigger  which = 18015 }
command = { type = sleepevent which = 3162 }
	}
}

#The Meuthen Agreement#
event = {

	id = 3275
	random = no
	country = POR
	name = "EVENTNAME3275"
	desc = "EVENTHIST3275"
	style = 4

	date = { day = 1 month = january year = 1703 }
	offset = 10
	deathdate = { day = 1 month = july year = 1750 }


	action_a = {			#Offer the Agreement#
		name = "ACTIONNAME3275A"
		command = { type = trigger which = 3093 }
		command = { type = domestic which = CENTRALIZATION value = 1 }
		command = { type = relation which = ENG value = 150 }
		command = { type = gainmanufactory which = -1 value = refinery }
		command = { type = gainmanufactory which = -1 value = refinery }
		command = { type = gainmanufactory which = -1 value = refinery }
		command = { type = stability value = -2 }
	}

	action_b = {			#Don't Offer the Agreement#
		name = "ACTIONNAME3275B"
		command = { type = domestic which = MERCANTILISM value = -3 }
		command = { type = relation which = ENG value = -100 }
		command = { type = stability value = 2 }
	}
}

#Count da Ericeira#
event = {

	id = 3276
	random = no
	country = POR
	name = "EVENTNAME3276"
	desc = "EVENTHIST3276"
	style = 4

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

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


#The Effects of the Pragmatic Sanction#
event = {

	id = 3277
	random = no
	country = POR
	name = "EVENTNAME3277"
	desc = "EVENTHIST3277"
	style = 4

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


	action_a = {				#Neutral#
		name = "ACTIONNAME3277A"
		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 = {				#Pro-Habsburg#
		name = "ACTIONNAME3277B"
		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 = {				#Anti-Habsburg#
		name = "ACTIONNAME3277C"
		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 }

	}
}




#Marquis de Pombal#
event = {

	id = 3279
	random = no
	country = POR
	name = "EVENTNAME3279"
	desc = "EVENTHIST3279"
	style = 4

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

	action_a = {				#An Excellent Minister!#
		name = "ACTIONNAME3279A"
		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 = 1000 }
		command = { type = naval value = 1000 }

command = { type = warships which = -2 value = 5 }
                command = { type = transports which = -1 value = 3 }
		command = { type = stability value = 3 }
	}
}



#The Tavoras Conspiracy#
event = {

	id = 3280
	random = no
	country = POR
	name = "EVENTNAME3280"
	desc = "EVENTHIST3280"
	style = 4

	date = { day = 3 month = september year = 1758 }
	offset = 0
	deathdate = { day = 4 month = september year = 1758 }

	action_a = {				#Crush the Opposition#
		name = "ACTIONNAME3280A"
		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 = {				#Be Lenient#
		name = "ACTIONNAME3280B"
		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 }
	}
}

#The Expulsion of Marquis José da Pombal#
event = {

	id = 3281
	random = no
	country = POR
	name = "EVENTNAME3281"
	desc = "EVENTHIST3281"
	style = 4

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

	action_a = {				#Expell him#
		name = "ACTIONNAME3281A"
		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 = {				#Let the 'Great Marquis' rule#
		name = "ACTIONNAME3281B"
		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 }
	}
}


#The Liberal Opposition#
event = {

	id = 3282
	random = no
	country = POR
	name = "EVENTNAME3282"
	desc = "EVENTHIST3282"
	style = 5

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

	action_a = {		#Growing opposition#
		name = "ACTIONNAME3282A"
		command = { type = stability  value = -3 }
		command = { type = revoltrisk which = 60 value = 5 }
	}

	action_b = {		#King consede to liberal ideas#
		name = "ACTIONNAME3282B"
		command = { type = stability  value = -2 }
		command = { type = revoltrisk which = 60 value = 2 }
		command = { type = domestic  which = ARISTOCRACY  value = -2 }
		command = { type = domestic  which = INNOVATIVE  value = 1 }
		command = { type = domestic  which = SERFDOM  value = -2 }
	}

}

##########################
##  Events by Annibale  ##
##########################

#Enrique the Crusader#
event = {
	id = 18000
	random = no
	country = POR
	name = "EVENTNAME18000"
	desc = "EVENTHIST18000"
	style = 1

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

	action_a = {		#Praise God!#
		name = "ACTIONNAME18000A"
		command = { type = leader  which = 09628 }
		command = { type = dynastic  which = ENG }
		command = { type = relation  which = ENG  value = 60 }
	}
}

#Enrique the Navigator#
event = {
	id = 18001
	random = no
	country = POR
	name = "EVENTNAME18001"
	desc = "EVENTHIST18001"
	style = 1

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

	action_a = {		#Fund Enrique#
		name = "ACTIONNAME18001A"
		command = { type = treasury  value = -200 }
		command = { type = naval  value = 800 }
command = { type = warships which = -1 value = 4 }
		command = { type = gainmanufactory which = 442 value = navalequipment }
	}

	action_b = {		#Invest in Known Trade Routes#
		name = "ACTIONNAME18001B"
		command = { type = treasury  value = -200 }
		command = { type = gainmanufactory which = 434 value = refinery }
		command = { type = trade  value = 800 }
		command = { type = domestic  which = MERCANTILISM  value = 2 }
		command = { type = merchants  value = 6 }
	}
	action_c = {		#Back the Reconquistadores#
		name = "ACTIONNAME18001C"
		command = { type = sleepevent  which = 18002 }
		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 = 10000 }
		command = { type = CAV  which = -3 value = 5000 }
	}
}

#Cape Bojador#
event = {
	id = 18002
	random = no
	country = POR
	name = "EVENTNAME18002"
	desc = "EVENTHIST18002"
	style = 1

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

	action_a = {		#Explore African Coast#
		name = "ACTIONNAME18002A"
		command = { type = leader  which = 09602 }
		command = { type = naval  value = 250 }
		command = { type = addcore  which = 818 }
		command = { type = treasury value = -25 }
	}
	action_b = {		
		name = "ACTIONNAME18002B"
		command = { type = domestic which = land  value = 1 }
		command = { type = domestic which = offensive value = 1 }
		command = { type = casusbelli which = MOR value = 25 }
	}
}

##############################
##  Shortlived Expeditions  ##
#####    Idea: Baston    #####
##  Scripting by Annibale   ##
##############################

#Henry's Captains#
event = {
	id = 18003
	random = no
	country = POR
	name = "EVENTNAME18003"
	desc = "EVENTHIST18003"
	style = 1

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

	action_a = {		#Explore African Coast#
		name = "ACTIONNAME18003A"
		command = { type = leader  which = 09629 }
		command = { type = leader  which = 16266 }
		command = { type = leader  which = 16268 }
		command = { type = leader which = 16271 }
		command = { type = treasury value = -35 }
		command = { type = warships which = -2 value = 2 }
	}
	action_b = {	
		name = "ACTIONNAME18003B"
		command = { type = land  value = 100 }
	}
}

#Royal Charters#
event = {
	id = 18004
	random = no
	country = POR
	name = "EVENTNAME18004"
	desc = "EVENTHIST18004"
	style = 1

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

	action_a = {		#Explore African Coast#
		name = "ACTIONNAME18004A"
		command = { type = leader  which = 09605 }
		command = { type = leader  which = 09606 }
		command = { type = treasury value = -40 }
		command = { type = warships which = -2 value = 2 }
	}
	action_b = {	
		name = "ACTIONNAME18004B"
		command = { type = land  value = 100 }
	}
}

##############################
##  Expedition to Tangiers  ##
#####    Idea: Baston    #####
##  Scripting by Annibale   ##
##############################

event = {
	id = 18005
	trigger = { 
		OR = { 
			exists = MOR 
			exists = FEZ 
			} 
		NOT = { owned = { province = 732 data = -1 } } 
		}
	random = no
	country = POR
	name = "EVENTNAME18005"
	desc = "EVENTHIST18005"
	style = 1

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

	action_a = {		#Send Expedition#
		name = "ACTIONNAME18005A"
		command = { type = casusbelli which = MOR value = 12 } 
		command = { type = casusbelli which = FEZ value = 12 } 
		command = { type = inf which = -2 value = 8000 } 
		command = { type = cav which = -2 value = 2000 } 
		command = { type = stability value = -1 }
		command = { type = trade value = -250 } 
		command = { type = naval value = -250 }
	}

	action_b = {		#No, Save Our Money#
		name = "ACTIONNAME18005B"
		command = { type = stability value = 1 }
		command = { type = trade value = 250 } 
		command = { type = naval value = 250 } 
		command = { type = relation which = MOR value = 35 }
		command = { type = relation which = FEZ value = 35 }
	}
}

##############################
#####   Colonial Pact   ######
##   Idea: King of Brazil   ##
##  Scripting by Annibale   ##
##############################

event = {
	id = 18006
	trigger = { discovered = 203 }
	random = no
	country = POR
	name = "EVENTNAME18006"
	desc = "EVENTHIST18006"
	style = 2

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

	action_a = {		#Strictly Control Trading Rights#
		name = "ACTIONNAME18006A"
		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 = {             #Relax Trading Restrictions#
		name = "ACTIONNAME18006B"
		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 }
	}
}

##############################
###   Treaty of Alcacovas  ###
#####    Idea: Baston    #####
##  Scripting by Annibale   ##
##############################

event = {
	id = 18008
	trigger = { exists = CAS } # Castillian version
	random = no
	country = POR
	name = "EVENTNAME18008"
	desc = "EVENTHIST18008"
	style = 1

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

	action_a = {
		name = "Accept" 
		command = { type = stability value = 1 } # end of the war
		command = { type = removecore which = 817 } 
		command = { type = secedeprovince which = CAS value = 817 } # Canaries
		command = { type = secedeprovince which = CAS value = 443 } # Andalusia
		command = { type = secedeprovince which = CAS value = 432 } # Asturias
		command = { type = secedeprovince which = CAS value = 431 } # Cantabria
		command = { type = secedeprovince which = CAS value = 440 } # Estramadura
		command = { type = secedeprovince which = CAS value = 433 } # Galicia
		command = { type = secedeprovince which = CAS value = 435 } # Leon
		command = { type = secedeprovince which = CAS value = 438 } # Murcia
		command = { type = secedeprovince which = CAS value = 436 } # Castilla
command = { type = secedeprovince which = CAS value = 428 }		
command = { type = secedeprovince which = CAS value = 439 } # Toledo
command = { type = secedeprovince which = CAS value = 1414 }
command = { type = secedeprovince which = CAS value = 1413 } 
command = { type = secedeprovince which = CAS value = 1948 } 
command = { type = secedeprovince which = CAS value = 921 }
command = { type = secedeprovince which = CAS value = 1410 }
command = { type = secedeprovince which = CAS value = 1412 }
		command = { type = trigger  which = 18009 } # CAS Treaty of Alcacovas
		command = { type = cash value = 50 } # Gold and slave routes secured
		command = { type = breakvassal which = CAS }
		command = { type = relation which = CAS value = 100 } 
		command = { type = dynastic which = CAS } 
	}
	action_b = {  
		name = "Reject"
		command = { type = stability value = -3 } # a losing war continues
		command = { type = domestic which = mercantilism value = -1 }
		command = { type = trade value = -500 }
		command = { type = cash value = -50 } # Gold and slave routes attacked
		command = { type = sleepevent which = 260048 } #El Mina
		command = { type = casusbelli which = CAS value = 24 } 
		command = { type = relation which = CAS value = -25 } 
		command = { type = breakdynastic which = CAS } 
		command = { type = breakvassal which = CAS }
	}
}

#Treaty of Alcacovas#
event = {
	id = 18009
	random = no
	country = CAS
	name = "EVENTNAME18009"
	desc = "EVENTHIST18009"
	style = 1

	action_a = {		
		name = "ACTIONNAME18009A"
command = { type = stability value = 1 } # end of the war
		command = { type = relation which = POR value = 100 } 
		command = { type = addcore which = 817 } #Canaries  	
		command = { type = naval value = 200 }	

		command = { type = secedeprovince  which = POR value = 816 } # Fernando Po
		command = { type = secedeprovince  which = POR value = 823 } # The Azores
		command = { type = secedeprovince  which = POR value = 1728 }
		command = { type = secedeprovince  which = POR value = 1918 }
command = { type = secedeprovince  which = POR value = 1409 }
command = { type = secedeprovince  which = POR value = 1014 }
		command = { type = secedeprovince  which = POR value = 434 } # Porto
		command = { type = secedeprovince  which = POR value = 442 } # Algarve
                command = { type = secedeprovince  which = POR value = 441 }
  command = { type = secedeprovince  which = POR value = 1996 }

	}
	action_b = {		
		name = "ACTIONNAME18009B"
			command = { type = stability value = -2 } # war continues
		command = { type = relation which = POR value = -50 }
		command = { type = addcore which = 796 } # Guinea claimed by Juan II and Isabel I for Castile  	
		command = { type = breakdynastic which = POR } 
		command = { type = cash value = 50 } # Portuguese gold and slave routes attacked
		command = { type = trigger  which = 18010 }
	}
}

#Treaty of Alcacovas Rejected#
event = {
	id = 18010
	random = no
	country = POR
	name = "EVENTNAME18010"
	desc = "EVENTHIST18010"
	style = 1

	action_a = {		
		name = "ACTIONNAME18010A"
            command = { type = casusbelli  which = CAS value = 12 }
	}
}



#Treaty again - For SPA this time
event = {

	id = 260003 
	trigger = {
		NOT = { exists = CAS  }
		exists = SPA
		}
	random = no
	country = POR
	name = "EVENTNAME18008"
	desc = "EVENTHIST18008"
	style = 1

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

	action_a ={		
		name = "Accept"

		command = { type = stability value = 1 } # end of the war
		command = { type = removecore which = 817 } 
		command = { type = secedeprovince which = SPA value = 817 } # Canaries
		command = { type = secedeprovince which = SPA value = 443 } # Andalusia
		command = { type = secedeprovince which = SPA value = 432 } # Asturias
		command = { type = secedeprovince which = SPA value = 431 } # Cantabria
		command = { type = secedeprovince which = SPA value = 440 } # Estramadura
		command = { type = secedeprovince which = SPA value = 433 } # Galicia
		command = { type = secedeprovince which = SPA value = 435 } # Leon
		command = { type = secedeprovince which = SPA value = 438 } # Murcia
		command = { type = secedeprovince which = SPA value = 436 } # SPAtilla
command = { type = secedeprovince which = SPA value = 428 }
		command = { type = secedeprovince which = SPA value = 1412 } # SPAtilla
command = { type = secedeprovince which = SPA value = 1410 }		
command = { type = secedeprovince which = SPA value = 439 } # Toledo
command = { type = secedeprovince which = SPA value = 1414 }
command = { type = secedeprovince which = SPA value = 1413 } 
command = { type = secedeprovince which = SPA value = 1948 } 
command = { type = secedeprovince which = SPA value = 921 }
		command = { type = trigger  which = 285001 } # SPA ratified
		command = { type = cash value = 50 } # Gold and slave routes secured
		command = { type = breakvassal which = SPA }
		command = { type = relation which = SPA value = 100 } 
		command = { type = dynastic which = SPA } 
	}

	action_b ={		  
		name = "Reject"

		command = { type = stability value = -3 } # a losing war continues
		command = { type = domestic which = mercantilism value = -1 }
		command = { type = trade value = -500 }
		command = { type = cash value = -50 } # Gold and slave routes attacked
		command = { type = trigger  which = 285050 } # SPA rejected
		command = { type = sleepevent which = 260048 } #El Mina
		command = { type = casusbelli which = SPA value = 24 } 
		command = { type = relation which = SPA value = -25 } 
		command = { type = breakdynastic which = SPA } 
		command = { type = breakvassal which = SPA }
	}
}

#Treaty of Alcacovas Rejected#
event = {
	id = 260004 #triggered by CAS 142004/SPA285001
	random = no
	country = POR
	name = "EVENTNAME18010"
	desc = "EVENTHIST18010"
	style = 1
	action_a ={	
		name = "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 = cash value = -50 } # Gold and slave routes attacked
		command = { type = sleepevent which = 260048 } #El Mina
		command = { type = casusbelli which = CAS value = 24 } 
		command = { type = casusbelli which = SPA value = 24 } 
		command = { type = addcore which = 817 } #Canaries  
		command = { type = breakvassal which = CAS }
	}
}

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

event = {
	id = 285001 #triggered by POR 260003
	random = no
	country = SPA
	name = "EVENTNAME18009"
	desc = "EVENTHIST18009"
	style = 1

	action_a ={		
		name = "Sign Treaty"
		command = { type = stability value = 1 } # end of the war
		command = { type = relation which = POR value = 100 } 
		command = { type = addcore which = 817 } #Canaries  	
		command = { type = naval value = 200 }	
command = { type = secedeprovince  which = POR value = 1014 }
		command = { type = secedeprovince  which = POR value = 818 } # Cape Verde
		command = { type = secedeprovince  which = POR value = 816 } # Fernando Po
		command = { type = secedeprovince  which = POR value = 823 } # The Azores
		command = { type = secedeprovince  which = POR value = 1728 }
		command = { type = secedeprovince  which = POR value = 1918 }
		command = { type = secedeprovince which = POR value = 1409 } 
command = { type = secedeprovince  which = POR value = 1996 }
		command = { type = secedeprovince  which = POR value = 434 } # Porto
		command = { type = secedeprovince  which = POR value = 442 } # Algarve
                command = { type = secedeprovince  which = POR value = 441 }
	}
	action_b ={		
		name = "Reject Treaty"
		command = { type = stability value = -2 } # war continues
		command = { type = relation which = POR value = -50 }
		command = { type = trigger  which = 260004 } # POR Treaty of Alcacovas rejected
		command = { type = addcore which = 796 } # Guinea claimed by Juan II and Isabel I for Castile  	
		command = { type = breakdynastic which = POR } 
		command = { type = cash value = 50 } # Portuguese gold and slave routes attacked
	}
}

event = {
	id = 285050			 #triggered by POR 260003
	random = no
	country = SPA
	name = "EVENTNAME18009"
	desc = "EVENTHIST18009"
	style = 1
	action_a ={		
		name = "Damn Portuguese"
		command = { type = stability value = -1 } # war continues
		command = { type = relation which = POR value = -50 }
		command = { type = addcore which = 796 } # Guinea claimed by Juan II and Isabel I for Castile  	
		command = { type = cash value = 50 } # Portuguese gold and slave routes attacked
		command = { type = casusbelli which = POR value = 24 } 
	}
}
#######################################
## Commercial Conflict in Asian Seas ##
#######      Idea: Baston        ######
#####     Scripting by Annibale   #####
#######################################

event = {
	id = 18012
	random = no
	country = POR
	trigger = { owned = { province = 549 data = -1 }
			exists = MLC
			NOT = { relation = { country = MLC value = -30 } }
	}
	name = "EVENTNAME18012"
	desc = "EVENTHIST18012"
	style = 2

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

	action_a = {		#Forcefully control spice trade#
		name = "ACTIONNAME3268A"
		command = { type = relation  which = MLC  value = -200 }
		command = { type = addcore which = 677 } #so that Portugal and Malacca will always have reason to be at war.#
	}

	action_b = {		#Negotiate trading rights#
		name = "ACTIONNAME3268B"
		command = { type = relation  which = MLC  value = 50 }
		command = { type = sleepevent which = 60003 }
	}
}

event = {
	id = 18103
	trigger = { event = 60003 } 
	random = no
	country = POR
	name = "EVENTNAME18103"
	desc = "EVENTHIST18103"
	style = 2
	date = { day = 1 month = january year = 1498 }
	offset = 10
	deathdate = { day = 1 month = january year = 1680 }	
	action_a = { 
		name = "ACTIONNAME18034A"
		command = { type = conquistador which = 677 }
		command = { type = inf which = -3 value = 10000 }
		command = { type = cav which = -3 value = 7000 }
		command = { type = cav which = 678 value = 6000 }
		command = { type = treasury value = -150 }
                command = { type = warships which = -3 value = 5 }
                command = { type = transports which = -3 value = 10 }		
		}
}
event = {
	id = 18104
	trigger = { event = 60003 } 
	random = no
	country = POR
	name = "EVENTNAME18104"
	desc = "EVENTHIST18104"
	style = 2
	date = { day = 1 month = january year = 1498 }
	offset = 10
	deathdate = { day = 1 month = january year = 1680 }	
	action_a = { 
		name = "ACTIONNAME40116A"
		command = { type = conquistador which = 677 }
		command = { type = inf which = -3 value = 5000 }
		command = { type = cav which = -3 value = 5000 }
		command = { type = vassal which = MLC }
		command = { type = treasury value = 200 }
		command = { type = population which = 677 value = -5000 }
		command = { type = losebuilding which = 677 value = bailiff }		
		}
}
#Submission of Malacca#
event = {
	id = 18105
	trigger = { 
			control = { province = 677 data = -1 } }
	random = no
	country = POR
	name = "EVENTNAME18105"
	desc = "EVENTHIST18105"
	style = 2
	date = { day = 1 month = january year = 1498 }
	offset = 30
	deathdate = { day = 1 month = january year = 1680 }	
	action_a = { 
		name = "ACTIONNAME18035A"
		command = { type = warships which = 677 value = 5 }
		command = { type = inf which = 677 value = 6000 }
		command = { type = cav which = -3 value = 2000 }	
		command = { type = treasury value = -100 }
		}
	action_b = { 
		name = "ACTIONNAME18035B"
		command = { type = stability value = -1 }
		}
}
#Construction of A Famosa#
event = {
	id = 18106
	trigger = { control = { province = 677 data = -1 } 
			owned = { province = 677 data = -1 } }
	random = no
	country = POR
	name = "EVENTNAME18106"
	desc = "EVENTHIST18106"
	style = 2
	date = { day = 1 month = january year = 1498 }
	offset = 30
	deathdate = { day = 1 month = january year = 1690 }	
	action_a = { 
		name = "ACTIONNAME18036A"
		command = { type = fortress which = 677 value = 1 }
		command = { type = inf which = -3 value = 6000 }
		command = { type = cav which = -3 value = 2000 }	
		command = { type = treasury value = -150 }
		}
	action_b = { 
		name = "ACTIONNAME18036B"
		command = { type = revolt which = 677 }
		}
}

####################################
####     Dynastic Conflict      ####
####   Idea: Ezzezze, Annibale  ####
####    Scripting by Annibale   ####
####################################

event = {
	id = 18015
	random = no
	country = POR
	name = "EVENTNAME18015"
	desc = "EVENTHIST18015"  
	style = 2

	action_a = {		#Accept Filipe II's Government#
		name = "ACTIONNAME18015A"
		command = { type = alliance which = SPA }
		command = { type = dynastic  which = SPA }
		command = { type = relation  which = SPA  value = 80 }
		command = { type = domestic  which = aristocracy value = 1 }
		command = { type = domestic  which = serfdom value = 1 }
		command = { type = stability  value = 1 }
	}

	action_b = {		#Support Dom Antonio's Claim#
		name = "ACTIONNAME18015B"
		command = { type = monarch  which =  06769 }
		command = { type = wakemonarch  which = 06770}
		command = { type = sleepmonarch  which = 06758 }
		command = { type = sleepmonarch  which = 06759 }
		command = { type = sleepmonarch  which = 06760 }
		command = { type = sleepmonarch  which = 06761 }
		command = { type = domestic  which = aristocracy value = -1 }
		command = { type = domestic  which = serfdom value = -1 }
		command = { type = stability  value = 1 }
		command = { type = revoltrisk  which = 12 value = 3 }
	}

	action_c = {		#Support Dona Catarina's Claim#
		name = "ACTIONNAME18015C"
		command = { type = monarch  which =  06772 }
		command = { type = wakemonarch  which = 06773 }
		command = { type = wakemonarch  which = 06774 }
		command = { type = sleepmonarch  which = 06758 }
		command = { type = sleepmonarch  which = 06759 }
		command = { type = sleepmonarch  which = 06760 }
		command = { type = sleepmonarch  which = 06761 }
		command = { type = stability  value = 1 }
		command = { type = revoltrisk  which = 12 value = 3 }
	}
}

#House of Bragança#
event = {
	id = 18016
	trigger = {
		monarch = 06770
		}
	random = no
	country = POR
	name = "EVENTNAME18016"
	desc = "EVENTHIST18016" 
	style = 3

	date = { day = 6 month = december year = 1620 }

	action_a = {		#OK#
		name = "ACTIONNAME18016A"
		command = { type = wakemonarch  which = 06771}
	}
}

###################
##Dutch Conflicts##
###################

#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"
	desc = "EVENTHIST18018"
	style = 3

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

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

#Dutch Conflict with Portugal#
event = {

	id = 18019
	random = no
	country = HOL
	name = "EVENTNAME18019"
	desc = "EVENTHIST18019"
	style = 3

	action_a = {		#Use Force to Secure Trade#
		name = "ACTIONNAME18019A"
		command = { type = relation which = POR value = -100 } 
		command = { type = addcore  which = 205 }
		command = { type = addcore  which = 677 }
		command = { type = addcore  which = 701 }
		command = { type = addcore  which = 702 }

	}

	action_b = {		#Avoid Open Conflict#
		name = "ACTIONNAME18019B"
		command = { type = relation which = POR value = 50 }
		command = { type = sleepevent  which = 18020 } 
	}
}

#Dutch Ambitions Realized#
event = {
	id = 18020
	trigger = {
		event = 18019
		OR = {
			owned = { province = 205 data = -1 }
			owned = { province = 701 data = -1 }
			owned = { province = 702 data = -1 }
			owned = { province = 677 data = -1 }
			}
	} 
	random = no
	country = HOL
	name = "EVENTNAME18020"
	desc = "EVENTHIST18020"
	style = 3

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


	action_a = {		#Well, they still speak Portuguese...#
		name = "ACTIONNAME18020A"
		command = { type = removecore  which = 205 }
		command = { type = removecore  which = 677 }
		command = { type = removecore  which = 701 }
		command = { type = removecore  which = 702 } 

	}
}

###########################################
#####     Move Court to Brazil        #####
####  Idea: King of Brazil, Annibale   ####
#####     Scripting by Annibale       #####
###########################################
##EEP RUS corrections##
####   by Tanone  #####
#######################
 
event = { 
	id = 18023 
	trigger = { 
		owned = { province = 211 data = -1 }
		control = { province = 211 data = -1 } 
		NOT = { control = { province = 441 data = -1 } } 
		} 
	random = no 
	country = POR 
	name = "EVENTNAME18023" 
	desc = "EVENTHIST18023" 
	style = 5 

	date = { day = 1 month = january year = 1750 } 
	deathdate = { day = 1 month = january year = 1820 } 

	action_a = { #Flee to Brazil!# 
		name = "ACTIONNAME18023A" 
		command = { type = capital which = 211 } 
		command = { type = addcore which = 211 } 
		command = { type = fortress which = 211 value = 1 }
		command = { type = population which = 211  value = 10000 } 
		command = { type = stability value = -2 } 
		command = { type = domestic which = CENTRALIZATION value = -1 }
		command = { type = domestic which = MERCANTILISM  value = -5 }
	} 
	action_b = { #Stay in Portugal# 
		name = "ACTIONNAME18023B" 
		command = { type = stability value = 1 } 
		command = { type = domestic which = CENTRALIZATION value = 1 }
		command = { type = sleepevent  which = 18024 } 
	} 
}

#Return to Lisbon#
event = {
	id = 18024
	trigger = {
		event = 18023
		owned = { province = 441 data = -1 }
		control = { province = 441 data = -1 }
		}
	random = no
	country = POR
	name = "EVENTNAME18024"
	desc = "EVENTHIST18024"
	style = 5

	date = { day = 2 month = january year = 1750 }
	deathdate = { day = 1 month = january year = 1820 }

	action_a = {		#Return to Lisbon#
		name = "ACTIONNAME18024A"
		command = { type = capital which = 441 }  
		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 }
	}

	action_b = {		#Stay in Brazil#
		name = "ACTIONNAME18024B"
		command = { type = stability value = -2 } 
		command = { type = domestic which = CENTRALIZATION value = -2 }
		command = { type = revolt  which = 441 }
		command = { type = sleepevent  which = 18025 }
	}
}

#Brazilian Independence#
event = {
	id = 18025
	random = no
	country = POR
	name = "EVENTNAME18025"
	desc = "EVENTHIST18025"
	style = 5

	action_a = {		#Grant Brazilian Independence#
		name = "ACTIONNAME18025A"
		command = { type = independence  which = BRZ }
		command = { type = removecore which = 211 }
		command = { type = relation  which = BRZ  value = 100 }  
		command = { type = stability value = 1 } 
		command = { type = domestic which = CENTRALIZATION value = 1 }
	}

	action_b = {		#Fight for our Overseas Colonies#
		name = "ACTIONNAME18025B"
		command = { type = independence  which = BRZ }
		command = { type = relation  which = BRZ  value = -100 }
		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 } 
	}
}
## Events by Crook ##

#Sugar in Azores#
event = { 
        id = 18026 
        random = no 
        country = POR 
	  trigger = { owned = { province = 823 data = -1 } }
        style = 1 
        date = { day = 1 month = january year = 1452 } 
        offset = 25
	  deathdate = { day = 1 month = january year = 1490 }

        name = "EVENTNAME18026" 
        desc = "EVENTHIST18026" 
        action_a = { 
               name = "ACTIONNAME18026A" 
               command = { type = provincetax which = 823 value = 1 } 
		   command = { type = treasury value = 30 }
                   } 
       } 

#Columbus#
event = { 
        id = 18027 
        random = no 
        country = POR 
        style = 1 
        date = { day = 1 month = january year = 1484 } 
        offset = 140
	  deathdate = { day = 1 month = january year = 1485 }

        name = "EVENTNAME18027" 
        desc = "EVENTHIST18027"
        action_a = { 
               name = "ACTIONNAME18027A" 
               command = { type = vp value = 15 } 
               } 
	  action_b = { 
               name = "ACTIONNAME18027B"
               command = { type = leader which = 09802 } 
		   command = { type = warships which = -1 value = 2 }
		   command = { type = treasury value = -100 }
		   command = { type = domestic which = innovative value = 1 }
                   command = { type = transports which = -1 value = 4 }
		   command = { type = sleepevent which = 24005 }
		   command = { type = sleepevent which = 24006 }
               } 
}
       
##Catherine of Braganza Events##
## Created by Johnny Canuck   ##

#The Dowry of Catherine of Braganza#
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 }
			owned = { province = 732 data = -1 }
			}
		NOT = { event = 21080 }
		}
	random = no
	country = POR
	name = "EVENTNAME21079"
	desc = "EVENTHIST21079"
	style = 3

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

	action_a = {
		name = "ACTIONNAME21079A"
		command = { type = secedeprovince which = ENG value = 548 }
		command = { type = secedeprovince which = ENG value = 732 }
		command = { type = stability value = 1 }
		command = { type = relation which = ENG value = 100 }
		command = { type = trigger which = 21081 }
	}

	action_b = {
		name = "ACTIONNAME21079B"
		command = { type = treasury value = -200 }
		command = { type = relation which = ENG  value = 50 }
		command = { type = trigger which = 21082 }
	}

	action_c = {
		name = "ACTIONNAME21079Ñ"
		command = { type = stability value = -1 }
		command = { type = relation which = ENG  value = -50 }
		command = { type = trigger which = 21083 }
	}
}

#The Dowry of Catherine of Braganza (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 }
			owned = { province = 732 data = -1 }
			}
		NOT = { event = 21079 }
		}
	random = no
	country = POR
	name = "EVENTNAME21080"
	desc = "EVENTHIST21080"
	style = 3

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

	action_a = {
		name = "ACTIONNAME21080A"
		command = { type = treasury value = -200 }
		command = { type = stability value = 1 }
		command = { type = relation which = ENG  value = 50 }
		command = { type = trigger which = 21082 }
	}

	action_b = {
		name = "ACTIONNAME21080B"
		command = { type = stability value = -1 }
		command = { type = relation which = ENG  value = -50 }
		command = { type = trigger which = 21083 }
	}
}

##########################
### Events by Havard   ###
##########################

#Support Juana (1474)#
event = {
	id = 18028                 #Triggered by CAS 7110 or 7111#
	random = no
	country = POR
	name = "EVENTNAME18028"
	desc = "EVENTHIST18028"
	style = 1

	action_a = { #Support Juana#
		name = "ACTIONNAME18028A"
		command = { type = casusbelli which = CAS value = 60 }
		command = { type = relation which = CAS value = -200 }
	}
	action_b = { #Forget it#
		name = "ACTIONNAME18028B"
		command = { type = relation which = CAS value = 100 }
		command = { type = stability value = -2 }
	}
}

#############################
### Events by Isaac Brock ###
#############################

#Conquest of Macao - fantasy event/place holder#
event = {
	id = 18029
	trigger = { owned = { province = 659 data = -1 }} 
	random = no
	country = POR
	name = "EVENTNAME18029"
	desc = "EVENTHIST18029"
	style = 2
	date = { day = 1 month = december year = 1556 }
	
	action_a = { #Excellent#
		name = "ACTIONNAME7110A"
		command = { type = merchants value = 1 }
		command = { type = trade value = 50 }
	}
}
#Cession of Macao#
event = {
	id = 18030
	trigger = { 
		owned = { province = 659 data = -1 }
		NOT = {event = 18029}
		event = 3704
		} 
	random = no
	country = POR
	name = "EVENTNAME18030"
	desc = "EVENTHIST18030"
	style = 2
	date = { day = 5 month = january year = 1557 }
	deathdate = { day = 1 month = january year = 1558 }

	
	action_a = { #Excellent#
		name = "ACTIONNAME18030A"
		command = { type = losebuilding which = 659 value =  bailiff }
		command = { type = losebuilding which = 659 value =  courthouse }
		command = { type = losebuilding which = 659 value =  cityrights }
		command = { type = losebuilding which = 659 value =  barrack }
		command = { type = losebuilding which = 659 value =  shipyard }
		command = { type = losemanufactory which = 659 }
		command = { type = merchants value = 2 }
		command = { type = trade value = 50 }
		command = { type = relation which = CHI value = 100 }
	}
}
##########################
### Submission of Zanj ###
###    by Crook        ###
##########################

#Submission of Zanj#
event = {
	id = 18031
	trigger = { 
		exists = ZAN
		owned = { province = 765 data = ZAN } 
		control = { province = 765 data = ZAN }
		NOT = { relation = { country = ZAN value = -20 } }
		} 
	random = no
	country = POR
	name = "EVENTNAME18031"
	desc = "EVENTHIST18031"
	style = 2
	date = { day = 1 month = january year = 1498 }
	offset = 100
	deathdate = { day = 1 month = january year = 1558 }	
	action_a = { 
		name = "ACTIONNAME18031A"
		command = { type = relation which = ZAN value = -100 }
                command = { type = addcore which = 765 }
		}
}
#Submission of Zanj#
event = {
	id = 18032
	trigger = { event = 18031 } 
	random = no
	country = ZAN
	name = "EVENTNAME18032"
	desc = "EVENTHIST18032"
	style = 2
	date = { day = 1 month = january year = 1498 }
	offset = 30
	deathdate = { day = 1 month = january year = 1560 }	
	action_a = { 
		name = "ACTIONNAME18032A"
		command = { type = secedeprovince which = POR value = 765 }
		command = { type = stability value = -2 }
		command = { type = treasury value = -200 }
		command = { type = sleepevent which = 18034 }
		}
	action_b = { 
		name = "ACTIONNAME18032B"
		command = { type = war which = POR }
		command = { type = stability value = -6 }
		command = { type = sleepevent which = 18033 }
		}

}
#Submission of Zanj#
event = {
	id = 18033
	trigger = { event = 18032 } 
	random = no
	country = POR
	name = "EVENTNAME18033"
	desc = "EVENTHIST18033"
	style = 2
	date = { day = 1 month = january year = 1498 }
	offset = 30
	deathdate = { day = 1 month = january year = 1560 }	
	action_a = { 
		name = "ACTIONNAME40116A"
		command = { type = vassal which = ZAN }
		command = { type = casusbelli which = ZAN value = 900 }
		command = { type = inf which = 765 value = 5000 }
		command = { type = cav which = -3 value = 5000 }
                command = { type = warships which = 765 value = 3 }
                command = { type = transports which = 765 value = 6 }		
		command = { type = treasury value = 100 }
		command = { type = population which = 765 value = -5000 }
		command = { type = losebuilding which = 765 value = bailiff }
		}
}
#Submission of Zanj#
event = {
	id = 18034
	trigger = { event = 18032 } 
	random = no
	country = POR
	name = "EVENTNAME18034"
	desc = "EVENTHIST18034"
	style = 2
	date = { day = 1 month = january year = 1498 }
	offset = 30
	deathdate = { day = 1 month = january year = 1560 }	
	action_a = { 
		name = "ACTIONNAME18034A"
		command = { type = conquistador which = 766 }
		command = { type = inf which = 766 value = 10000 }
		command = { type = cav which = -3 value = 7000 }	
		command = { type = cav which = 765 value = 5000 }	
		command = { type = treasury value = -100 }
		}
}
#Submission of Zanj#
event = {
	id = 18035
	trigger = { 
			control = { province = 765 data = -1 } }
	random = no
	country = POR
	name = "EVENTNAME18035"
	desc = "EVENTHIST18035"
	style = 2
	date = { day = 1 month = january year = 1498 }
	offset = 30
	deathdate = { day = 1 month = january year = 1504 }	
	action_a = { 
		name = "ACTIONNAME18035A"
		command = { type = warships which = 765 value = 3 }
                command = { type = addcore which = 765 }
		command = { type = wakeleader which = 15002 }
		command = { type = inf which = 765 value = 6000 }
		command = { type = cav which = -3 value = 2000 }	
		command = { type = treasury value = -100 }
		command = { type = sleepevent which = 18102 }
		}
	action_b = { 
		name = "ACTIONNAME18035B"
		command = { type = stability value = -1 }
		command = { type = sleepevent which = 18102 }
		}
}
#Submission of Zanj#
event = {
	id = 18102
	trigger = { 
			control = { province = 765 data = -1 } }
	random = no
	country = POR
	name = "EVENTNAME18035"
	desc = "EVENTHIST18035"
	style = 2
	date = { day = 1 month = january year = 1504 }
	offset = 30
	deathdate = { day = 1 month = january year = 1560 }	
	action_a = { 
		name = "ACTIONNAME18035A"
		command = { type = warships which = 765 value = 3 }
		command = { type = conquistador which = 765 }
		command = { type = inf which = 765 value = 6000 }
		command = { type = cav which = -3 value = 2000 }	
		command = { type = treasury value = -100 }
		command = { type = sleepevent which = 18102 }
		}
	action_b = { 
		name = "ACTIONNAME18035B"
		command = { type = stability value = -1 }
		}
}
#Construction of Fort Jesus#
event = {
	id = 18036
	trigger = { control = { province = 765 data = -1 } 
			owned = { province = 765 data = -1 } }
	random = no
	country = POR
	name = "EVENTNAME18036"
	desc = "EVENTHIST18036"
	style = 2
	date = { day = 1 month = january year = 1590 }
	offset = 30
	deathdate = { day = 1 month = january year = 1660 }	
	action_a = { 
		name = "ACTIONNAME18036A"
		command = { type = fortress which = 765 value = 1 }
		command = { type = inf which = 765 value = 6000 }
		command = { type = cav which = -3 value = 2000 }	
		command = { type = treasury value = -100 }
		}
	action_b = { 
		name = "ACTIONNAME18036B"
		command = { type = revolt which = 765 }
		}
}
#Settlement of Mozambique#
event = {
	id = 18037
	trigger = { control = { province = 772 data = -1 } 
			owned = { province = 772 data = -1 } 
			provinceculture = { prov = 772 data = maltese }
		ai = yes
}
	random = no
	country = POR
	name = "EVENTNAME18037"
	desc = "EVENTHIST18037"
	style = 2
	date = { day = 1 month = january year = 1500 }
	offset = 30
	deathdate = { day = 1 month = january year = 1660 }	
	action_a = { 
		name = "ACTIONNAME18037A"
		command = { type = population which = 772 value = 250 }
		command = { type = treasury value = -100 }
		command = { type = fortress which = 772 value = 1 }
		}
	action_b = { 
		name = "ACTIONNAME18037B"
		command = { type = vp value = -1 }
		}
}

##########################
### Submission of Goa  ###
###    by Crook        ###
##########################

####################################################
### Submission of Goa  
### province triggered version by Twoflower
####################################################

#Submission of Goa for Muslim and Buddhist countries
event = {
	id = 338005
	trigger = { OR = { religion = sunni
                           religion = shiite
                           religion = buddhism  
                         }
                    event = 18038 
                  }
	random = no
	province = 549
	name = "EVENTNAME18039"
	desc = "EVENTHIST18039"
	style = 2
	date = { day = 1 month = january year = 1498 }
	offset = 30
	deathdate = { day = 1 month = january year = 1660 }	
	action_a ={ 
		name = "ACTIONNAME18032B"
		command = { type = war which = POR }
		command = { type = stability value = 1 }
		command = { type = relation which = POR value = -100 }
                command = { type = trigger which = 18041 }
		}
	action_b ={ 
		name = "ACTIONNAME18032A"
		command = { type = secedeprovince which = POR value = 549 }
		command = { type = stability value = -2 }
		command = { type = treasury value = -100 }
		}
}
#Submission of Goa for Hindu countries
event = {
	id = 338006
	trigger = { event = 18062 
		    control = { province = 549 data = -1 } 
                    religion = hinduism
                  }
	random = no
	province = 549
	name = "EVENTNAME18063"
	desc = "EVENTHIST18063"
	style = 2
	date = { day = 1 month = january year = 1498 }
	offset = 100
	deathdate = { day = 1 month = january year = 1658 }	
	action_a ={ 
		name = "ACTIONNAME18063A"
		command = { type = secedeprovince which = POR value = 549 }
		command = { type = relation which = POR value = 50 }
		command = { type = treasury value = 50 }
		command = { type = land value = 1000 }
		command = { type = domestic which = mercantilism value = -1 }
		}
	action_b ={ 
		name = "ACTIONNAME18063B"
		command = { type = treasury value = 50 }
		command = { type = relation which = POR value = -200 }
		command = { type = domestic which = mercantilism value = 1 }
		command = { type = war which = POR }
                command = { type = trigger which = 18041 }
		}
}
#Submission of Goa#
event = {
	id = 338007
	trigger = { 
                event = 18041
		control = { province = 549 data = POR } 
                NOT = { core = { province = 441 data = -1 } } #Tago, Portugal should of course be exempt
                  } 
	random = no
	province = 549
	name = "EVENTNAME18042"
	desc = "EVENTHIST18042"
	style = 2
	date = { day = 1 month = january year = 1498 }
	offset = 30
	deathdate = { day = 1 month = january year = 1660 }	
	action_a ={ 
		name = "ACTIONNAME18042A"
		command = { type = secedeprovince which = POR value = 549 }
		command = { type = trigger which = 18043 }
		}
}

##########################
### Submission of Goa  ###
### reworked by Twoflower

#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 = JAI } 
                        owned = { province = 549 data = MTR }
                        owned = { province = 549 data = MKS }  
                         owned = { province = 549 data = FAT }
                         owned = { province = 549 data = U30 }
                         owned = { province = 549 data = -1 } 
		}
               OR = {
                       discovered = 549
                      
}
} 
	random = no
	country = POR
	name = "EVENTNAME18038"
	desc = "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."
	style = 2
	date = { day = 1 month = january year = 1498 }
	offset = 100
	deathdate = { day = 1 month = january year = 1658 }	
	action_a ={ 
		name = "ACTIONNAME18038A"
		command = { type = relation which = VIJ value = 50 }
		command = { type = relation which = MYS value = 50 }
		}
}

#Submission of Goa#
event = {
	id = 18062
	trigger = { 
		OR = {  owned = { province = 549 data = JAI } 
			owned = { province = 549 data = MLW } 
                        owned = { province = 549 data = KSH } 
                        owned = { province = 549 data = JUT } 
                        owned = { province = 549 data = TIM } 
                        owned = { province = 549 data = U36 }
                        owned = { province = 549 data = GUJ }  
                         owned = { province = 549 data = U31 }
                       
                         owned = { province = 549 data = U02 }
                         owned = { province = 549 data = DLH }
                         owned = { province = 549 data = MOG }
                         owned = { province = 549 data = BGL }
                         owned = { province = 549 data = -1 } 
		}
               OR = {
                       discovered = 549
                      
}
} 
	random = no
	country = POR
	name = "EVENTNAME18038"
	desc = "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 conflic 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."

	style = 2
	date = { day = 1 month = january year = 1498 }
	offset = 100
	deathdate = { day = 1 month = january year = 1658 }	
	action_a ={ 
		name = "ACTIONNAME18062A"
		command = { type = treasury value = -50 }
		}
}

#Submission of Goa#
event = {
	id = 18040
	random = no
	country = POR
trigger = { 
                 owned = { province = 549 data = -1 } 
			
		}
        date = { day = 1 month = january year = 1500 }
	offset = 100
	deathdate = { day = 1 month = january year = 1600 }
	name = "EVENTNAME18040"
	desc = "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."
	style = 2

	action_a ={ 
		name = "ACTIONNAME40116A"
		command = { type = inf which = 549 value = 5000 }
		command = { type = cav which = -3 value = 2000 }		
		command = { type = addcore which = 549 }
		command = { type = losebuilding which = 549 value = bailiff }
            command = { type = removecot which = 550 } #Gujarat
		command = { type = cot which = 549 }
		}
}

#Submission of Goa#
event = {
	id = 18041
	random = no
	country = POR
	name = "EVENTNAME18041"
	desc = "The heathen ruler of Goa has dared to reject our generous offer and attacked our army. He will regret this."
	style = 2

	action_a ={ 
		name = "ACTIONNAME18034A"
		command = { type = inf which = 549 value = 5000 }
		command = { type = cav which = 549 value = 2000 }	
		command = { type = treasury value = -70 }
		}
}

####################################################################

#Henry's Captains#
event = {
	id = 18100
	random = no
	country = POR
	name = "EVENTNAME18003"
	desc = "EVENTHIST18003"
	style = 1

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

	action_a = {		#Explore African Coast#
		name = "ACTIONNAME18003A"
		command = { type = leader  which = 16267 }
		command = { type = treasury value = -15 }
		command = { type = galleys which = -1 value = 4 }
	}
	action_b = {	
		name = "ACTIONNAME18003B"
		command = { type = land  value = 50 }
	}
}

#Henry's Captains#
event = {
	id = 18101
	random = no
	country = POR
	name = "EVENTNAME18003"
	desc = "EVENTHIST18003"
	style = 1

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

	action_a = {		#Explore African Coast#
		name = "ACTIONNAME18003A"
		command = { type = leader  which = 16269 }
		command = { type = leader  which = 16270 }
		command = { type = leader  which = 16272 }
		command = { type = treasury value = -35 }
		command = { type = galleys which = -1 value = 4 }
	}
	action_b = {	
		name = "ACTIONNAME18003B"
		command = { type = land  value = 100 }
	}
}

#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 = "Settlement of El Mina"
desc = "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."
style = 2
date = { day = 1 month = january year = 1482 }
offset = 60
deathdate = { day = 1 month = january year = 1660 } 
action_a ={ 
name = "build the fort"
command = { type = population which = 795 value = 300 }
command = { type = treasury value = -100 }
command = { type = fortress which = 795 value = 1 }
command = { type = trade value = 150 }
command = { type = mine which = 795 value = 10 }
}
action_b = {
name = "too risky"
command = { type = merchants value = 6 }
command = { type = infra value = 100 }
command = { type = land value = 100 }
}
}




#Earthquake destroy Lisboa (effect)#
event = {
	id = 260010
	trigger = { owned = { province = 441 data = -1 } } #Lisboa
	random = no
	country = POR
	name = "Ðàçðóøåíèÿ â Ëèññàáîíå"
	desc = "Ýòî áåäñòâå äëÿ Ïîðòóãàëèè..."
	style = 4
	action_a ={
		name = "Êàê æàëü"
		command = { type = stability  value = -3 }
	}
}



#Portuguese vassalization of Lanka#
event = {
	id = 260078
	trigger = { exists = POR }
	random = no
	country = U30 
	name = "Çàõâàò Ëàíêè"
	desc = "Â 1545 ãîäó Áõóâàíàéêà Áàõó VII, ïîä÷èíåííûé Ïîðòóãàëèè, âûïëàòèë äàíü, è ñòàë åå âàññàëîì, ÷òîáû ïîðòóãàëüöû ïîìîãëè åãî âíóêó Äõàðìàïàëå óíàñëåäîâàòü ïðåñòîë."
	style = 2
	date = { year = 1545 }
	offset = 30
	deathdate = { day = 1 month = january year = 1551 }	
	action_a ={ 
		 name = "Ýòî ïîìîæåò Äõàðìàïàëó óíàñëåäîâàòü òðîí"
             command = { type = relation   which = POR value = 175 }
             command = { type = trade   value = 200 }
             command = { type = breakvassal  which = MYS }
             command = { type = breakvassal  which = HYD }
             command = { type = breakvassal  which = VIJ }
             command = { type = breakvassal  which = JAI }
             command = { type = breakvassal  which = DLH }
             command = { type = breakvassal  which = ORI }
             command = { type = breakvassal  which = MAM }
             command = { type = breakvassal  which = TUR }
             command = { type = breakvassal  which = BGL }
             command = { type = breakvassal  which = OMA }
             command = { type = breakvassal  which = GUJ }
             command = { type = trigger   which = 260077 }}}

#Portuguese vassalization of Lanka#
event = {
	id = 260077
	random = no
	country = POR
	name = "Çàõâàò Ëàíêè"
	desc = "Â 1545 ãîäó Áõóâàíàéêà Áàõó VII, ïîä÷èíåííûé Ïîðòóãàëèè, âûïëàòèë äàíü, è ñòàë åå âàññàëîì, ÷òîáû ïîðòóãàëüöû ïîìîãëè åãî âíóêó Äõàðìàïàëå óíàñëåäîâàòü ïðåñòîë."	
	action_a ={ 
		name = "Îòëè÷íî!"
            command = { type = vassal which = U30 }
            command = { type = relation which = U30 value = 175 }}}

#Lanka's conversion to Christianity#
event = {
	id = 260079
	trigger = { exists = POR }
	random = no
	country = U30 
	name = "Äõàðìàïàëå ïðèíèìàåò õðèñòèàíñòâî"
	desc = "Ê 1556 ãîäó áîëüøàÿ ÷àñòü íàñåëåíèÿ, ïðîæèâàþùàÿ íà ïîáåðåæüå Öåéëîíà, áûëà îáðàùåíà êàòîëè÷åñêèìè ìèññèîíåðàìè â õðèñòèàíñòâî. Â 1556 ãîäó Äõàðìàïàëà áûë êðåùåí ïîä èìåíåì äîí Æóàí Äõàðìàïàëà. Êîðîëåâà, çíàòü, è ìíîæåñòâî âîèíîâ ãîñóäàðñòâà Êîòòå òàêæå ïðèíÿëè õðèñòèàíñòâî. Òàêèì îáðàçîì, ïðîèçîøëî îò÷óæäåíèå ìíîãèõ ëþäåé, îñòàâøèõñÿ âåðíûìè áóääèçìó. Îíè ïåðåøëè â ëàãåðü ïðîòèâíèêà Ìàéàäóííà, êîòîðûé è ïîäíÿë âîññòàíèå."
	style = 2
	date = { year = 1556}
	offset = 30
	deathdate = { day = 1 month = january year = 1551 }	
	action_a ={ 
		name = "Îáðàòèòü èõ â õðèñòèàíñòâî"
            command = { type = relation which = POR value = 100 }
            command = { type = religion which = catholic }
            command = { type = provincereligion which = 576 value = catholic }
            command = { type = population which = 576 value = -1000 } #Colombo
            command = { type = population which = 577 value = 1000 } #Jaffna
            command = { type = trade value = 200 }
            command = { type = stability value = -2 }
            command = { type = revolt which = 577 }}           
      action_b = {
            name = "Ñîïðîòèâëåíèå ïîðòóãàëüöàì"
            command = { type = relation which = POR value = -100 }
            command = { type = trade value = -500 }
            command = { type = stability value = -1 }
            command = { type = revolt which = 576 } #Colombo
            command = { type = sleepevent which = 260080 }}}    
     
#Lanka is ceded to Portugal#
event = {
	id = 260080
	trigger = {  exists = POR monarch = 19159 vassal = { country = POR country = U30 }}
	random = no
	country = U30 
	name = "Â ñëó÷àå ñâîåé ñìåðòè, Äõàðìàïàë çàâåùàåò Êîòòå ïîðòóãàëüöàì"
	desc = "Â 1597 ãîäó Äõàðìàïàë, íå èìåÿ íàñëåäíèêà, ïîñëåäîâàë ñîâåòó ôðàíöèñêàíöåâ, è ïîäàðèë ãîñóäàðñòâî Êîòòå ïîðòóãàëüñêîìó êîðîëþ. Òàêèì îáðàçîì, â ðàñïîðÿæåíèè ïîðòóãàëüöåâ áûë öåëûé îñòðîâ, çà èñêëþ÷åíèåì Êàíäè."
	style = 2
	date = { year = 1597}
	offset = 30
      deathdate = { day = 1 month = january year = 1598 }
	action_a ={ 
		name = "Ïåðåäàòü Êîòòå ïîðòóãàëüöàì"
            command = { type = relation which = POR value = 50 }
            command = { type = trigger which = 260081 }}         
      action_b = {
            name = "Ñîïðîòèâëÿòüñÿ çàõâàòó"
            command = { type = relation which = POR value = -200 }
            command = { type = trade value = -200 }
            command = { type = secedeprovince which = POR value = 576 } #Colombo
            command = { type = capital which = 1967 } #Kandy
            command = { type = trigger which = 260082 }
            command = { type = religion which = buddhism }}}

#Portuguese annexation of Lanka#
event = {
	id = 260081
	random = no
	country = POR
	name = "Ïîðòóãàëüöû óíàñëåäîâàëè Êîòòå"
	desc = "Â 1597 ãîäó Äõàðìàïàë, íå èìåÿ íàñëåäíèêà, ïîñëåäîâàë ñîâåòó ôðàíöèñêàíöåâ, è ïîäàðèë ãîñóäàðñòâî Êîòòå ïîðòóãàëüñêîìó êîðîëþ. Òàêèì îáðàçîì, â ðàñïîðÿæåíèè ïîðòóãàëüöåâ áûë öåëûé îñòðîâ, çà èñêëþ÷åíèåì Êàíäè."
	action_a ={ 
		name = "Îòëè÷íî!"
            command = { type = inherit   which = U30 }
            command = { type = revolt   which = 1967 }}} #Kandy

#Kandy's resistance to Portugal#
event = {
	id = 260082
	random = no
	country = POR
	name = "Ïîðòóãàëüöû óíàñëåäîâàëè Êîòòå, Êàíäè ïðîäîëæàåò áîðüáó"
	desc = "Â 1597 ãîäó Äõàðìàïàë, íå èìåÿ íàñëåäíèêà, ïîñëåäîâàë ñîâåòó ôðàíöèñêàíöåâ, è ïîäàðèë ãîñóäàðñòâî Êîòòå ïîðòóãàëüñêîìó êîðîëþ. Òàêèì îáðàçîì, â ðàñïîðÿæåíèè ïîðòóãàëüöåâ áûë öåëûé îñòðîâ, çà èñêëþ÷åíèåì Êàíäè."
	action_a ={ 
		name = "Îòëè÷íî!"
            command = { type = casusbelli   which = U30 value = 360 }
            command = { type = breakvassal  which = U30 }}}


################ Malabar Coast ##################################
## Ïðèîáðåòåíèå Êî÷èíà ïåðåäåëàíî ìíîé èç-çà îòñóòñòâèÿ Êî÷èíà êàê ñòðàíû.
## Åâåíò ñäåëàí íà îñíîâå îðèãèíàëüíûõ id ñîáûòèé (AR)
#################################################################
#An Opportunity in India
event = {
	id = 260220
	trigger = { 
		OR = {
			discovered = 549
			discovered = 1965
		     }
  NOT = {  owned = { province = 1965 data = -1 }   }
	

        }
	random = no
	country = POR
	name = "Âîçìîæíûå ïðèîáðåòåíèÿ â Èíäèè"
	desc = "Ïîðò Êî÷èí èìååò âàæíîå ñòðàòåãè÷åñêîå ïîëîæåíèå. Ïîïðîáóåì âûêóïèòü åãî ó èíäèéñêîãî ðàäæè!"
	style = 3
	date = { day = 1 month = january year = 1502 }
	offset = 30
	deathdate = { day = 1 month = january year = 1670 }
	action_a ={	
		name = "Ïîäêóïèòü ïðèáðåæíûõ Ðàäæåé"
		command = { type = treasury value = -100 }
		command = { type = trigger which = 260221 }
                command = { type = addcore which = 1965 } 
	}
	action_b ={            
		name = "Ýòè äåíüãè ìîæíî èñòðàòèòü è ïî-äðóãîìó"
		command = { type = infra value = 300 }
	}
}


event = {
	id = 260221
	trigger = { 
		continent = asia
	}
	random = no
	province = 1965
	name = "Ïîðòóãàëüöû â Êî÷èíå"
	desc = "Îòêðûâ Èíäèþ, ïîðòóãàëüöû ñòàëè ïðèëàãàòü âñå óñèëèÿ, ÷òîáû çàïîëó÷èòü áàçû íà ïîáåðåæüå. Îíè äåéñòâîâàëè ãäå ñèëîé, à ãäå è ïîäêóïîì. È ÷àñòî ñîòðóäíè÷åñòâî ñ íèìè, áûëî âûãîäíûì äëÿ ïðèáðåæíûõ âëàäåòåëåé."
	style = 3
	action_a ={	
		name = "Ïðîäàòü èì Êî÷èí"
		command = { type = treasury value = 200 }
		command = { type = trigger which = 355000 } 
		command = { type = relation which = POR value = 100 }
		command = { type = secedeprovince which = POR value = 1965 } 
		command = { type = removecore which = 1965 }
	}
	action_b ={
		name = "Ìû íå õîòèì áûòü èõ ñîñåäÿìè!"
		command = { type = relation which = POR value = -100 }
		command = { type = trigger which = 364001 } 
	}
}


event = {
	id = 355000
	random = no
	country = POR
	name = "Êî÷èí íàøü!"
	desc = "Êî÷èí íàøü. Óðà! Ìû âëàäååì Çàïàäíûì ïîáåðåæüåì Èíäèè!"
	style = 3
	action_a ={	
		name = "Óðà!"
		command = { type = treasury value = 25 }
		command = { type = inf which = 1965 value = 2000 }		
		command = { type = provincetax which = 1965 value = 2 }
	}
}


event = {
	id = 364001
        random = no
	country = POR
	name = "Èíäóñû îòêàçàëèñü"
	desc = "Ðàäæà îòêàçàëñÿ ïðîäàòü íàì ïîðò Êî÷èí. Ìû îòáåð¸ì åãî ñèëîé!"
	style = 3
	action_a ={	
		name = "Îíè áîëæíû çàïëàòèòü çà ñâîþ íàãëîñòü!"
		command = { type = addcore which = 1965 }
	}
}

###############################################################


event = {
id = 260222
trigger = { }
random = no
country = POR
name = "Òîðãîâîå ñîãëàøåíèå ñ Êàëèêóòîì"
desc = "Ïîñëå áîëåå ÷åì äåñÿòèëåòèÿ âðàæäåáíîñòè, Ïîðòóãàëèÿ è Êàëèêóò íîðìàëèçîâàëè ñâîè îòíîøåíèÿ, ïîäïèñàëè ìèðíûé äîãîâîð, äðóæáó, è òîðãîâûå ñîãëàøåíèÿ."
style = 1

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

action_a ={ 
name = "Ïîäïèñàòü ñîãëàøåíèÿ"
command = { type = treasury value = 200 }
command = { type = merchants value = 3 } }

action_b ={ 
name = "Îòêàçàòüñÿ îò ñîãëàøåíèÿ"
command = { type = relation which = FAT value = -100 } }
}

event = {
id = 260223 #triggered by FAT364007
trigger = { }
random = no
country = POR
name = "Çàïóãèâàíèå Êàëèêóòà"
desc = "Â òå÷åíèå ïî÷òè ñòà ëåò, êîðîëåâñòâî Êàëèêóò ñîïðîòèâëÿëîñü ïîðòóãàëüñêîìó âòîðæåíèÿì â Èíäèþ. Ëèøåííîå òîðãîâëè â òåïåðü-ïîðòóãàëüñêîì Èíäèéñêîì îêåàíå, ïðàâèòåëè Êàëèêóòà íàêîíåö ïîä÷èíèëèñü ïîðòóãàëüöàì."
style = 1

#date = { day = 1 month = january year = 1598 }

action_a ={
name = "Íàêîíåö òî!"
command = { type = vassal which = FAT } } }

event = {
id = 260225
trigger = {
control = { province = 1965 data = HOL }
}
random = no
country = POR
name = "Ïîòåðÿ Êî÷èíà"
desc = "Îñëàáëåííûé èç-çà îòñóòñòâèÿ äåíåã, â 1662 ãîäó Êî÷èí ïàäàåò ïîä óäàðàìè ãîëëàíäñêèõ âîéñê."
style = 1

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

action_a ={ 
name = "×¸ðò áû èõ ïîáðàë!"
command = { type = secedeprovince which = HOL value = 1963 }
command = { type = removecore which = 1965 }
command = { type = breakvassal which = FAT }
command = { type = trigger which = 186037 }} #HOL

action_b ={ 
name = "Íå îòäàäèì èì íå äþéìà çåìëè!"
command = { type = relation which = HOL value = -200 }
command = { type = relation which = FAT value = -200 }
command = { type = desertion which = -1 value = 10000 }
command = { type = stability value = -2 }
command = { type = fortress which = 1965 value = -1 }
}
}

#Da Breu expedition
event = {
id = 260951
trigger = {
owned = { province = 677 data = -1 } #Malacca
discovered = 677
}
random = no
country = POR
name = "Ýêñïåäèöèÿ äå Áðåó"
desc = "Â äåêàáðå 1511 ãîäà Àëüáóêåðêå ïîñûëàåò èç Ìàëàêêè òðè êîðàáëÿ ïîä êîìàíäîâàíèåì äå Áðåó, ÷òîáû èçó÷èòü âîñòî÷íîå íàïðàâëåíèå. Ïóòåøåñòâèå íà÷àëîñü â Ìàëàêêå, è ïðîõîäèëî ÷åðåç îñòðîâà Ìàäóðà, Áàëè, Ëîìáîê, Àðó è Áàíäà. Áëèç Áàíäû äâà êîðàáëÿ ïîòåðïåëè êðóøåíèå. Äå Áðåó âåðíóëñÿ â Ìàëàêêó, òîãäà êàê Ôðàíöèñêî Ñåððàíî îòðåìîíòèðîâàë êîðàáëè è ïðîäîëæèë ïóòåøåñòâèå íà Àìáîí, Òåðíàòå è Òèäîðå. Íà Òåðíàòå îí ïðåäëîæèë ñâîþ ïîìîùü â ðåøåíèè êîíôëèêòà ñ Òèäîðåì, ïîýòîìó íà îñòðîâå áûë ïîñòðîåí ïîðòóãàëüñêèé ôîðò."
style = 2

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

action_a = {
name = "Èññëåäîâàòü!"
command = { type = explorer which = 677 }
}
}

#Factories at Ternate and Bacan.
event = {
id = 260952
trigger = {
owned = { province = 713 data = -1 } #Tindore
}
random = no
country = POR
name = "Ñòðîèòåëüñòâî ôàêòîðèé íà Òåðíàòå è Áàêàíå"
desc = "Ïîðòóãàëüöû ïîñòðîèëè ôàêòîðèè íà îñòðîâàõ Òåðíàòå è Áàêàí."
style = 2

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

action_a = {
name = "Ïîñòðîèòü ôàêòîðèè"
command = { type = treasury value = -500 }
command = { type = gainmanufactory which = 713 value = refinery }
}
action_b = {
name = "Íå òðàòèòü äåíüãè"
command = { type = vp value = -30 }
}
}

#Fort at Hitu
event = {
id = 260953
trigger = {
owned = { province = 1748 data = -1 } #Ambon
}
random = no
country = POR
name = "Ñòðîèòåëüñòâî ôîðòà â Õèòå"
desc = "Ïîðòóãàëüöû ïîñòðîèëè êðåïîñòü â Õèòó íà îñòðîâå Àìáîí"
style = 2

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

action_a = {
name = "Ïîñòðîèòü ôîðò"
command = { type = treasury value = -100 }
command = { type = fortress which = 1748 value = 1 }
}
action_b = {
name = "Íå òðàòèòü äåíüãè"
command = { type = vp value = -10 }
}
}

#First fort on Timor
event = {
id = 260954
trigger = {
owned = { province = 712 data = -1 } #Timor
}
random = no
country = POR
name = "Ñòðîèòåëüñòâî ôîðòà íà Òèìîðå"
desc = "Ïîðòóãàëüöû âîçâåëè ïåðâóþ êðåïîñòü íà îñòðîâå Òèìîð."
style = 2

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

action_a = {
name = "Ïîñòðîèòü ôîðò"
command = { type = treasury value = -100 }
command = { type = fortress which = 712 value = 1 }
}
action_b = {
name = "Íå òðàòèòü äåíüãè"
command = { type = vp value = -10 }
}
}

#Portuguese attacks Johor
event = {
id = 260957
trigger = {
owned = { province = 678 data = MLC } #Johor
discovered = 678
}
random = no
country = POR
name = "Ïîðòóãàëüöû àòàêóþò Äæîõîð"
desc = "Ñàìîå êðóïíîå íàïàäåíèå ïîðòóãàëüöåâ íà Äæîõîð"
style = 2
date = { day = 1 month = january year = 1536 }
offset = 30
deathdate = { day = 1 month = january year = 1537 }

action_a = {
name = "Çàõâàòèòü Äæîõîð!"
command = { type = domestic which = offensive value = 1 }
command = { type = warships which = -1 value = 2 }
command = { type = INF which = -1 value = 5000 }
command = { type = relation which = MLC value = -200 }
command = { type = war which = MLC }
}
action_b = {
name = "Òîëüêî òîðãîâàòü"
command = { type = domestic which = mercantilism value = -1 }
command = { type = merchants value = 3 }
command = { type = relation which = MLC value = 50 }
}
}

#Fort on Flores
event = {
id = 260958
trigger = {
owned = { province = 711 data = -1 } #Flores
}
random = no
country = POR
name = "Ñòðîèòåëüñòâî ôîðòà íà Ôëîðåñå"
desc = "Â 1550 ãîäó ïîðòóãàëüöû íà÷àëè ñòðîèòåëüñòâî êðåïîñòè íà îñòðîâå Ôëîðåñ"
style = 2
date = { day = 1 month = january year = 1550 }
offset = 30
deathdate = { day = 1 month = january year = 1551 }

action_a = {
name = "Ïîñòðîèòü ôîðò"
command = { type = treasury value = -100 }
command = { type = fortress which = 711 value = 1 }
}
action_b = {
name = "Íå òðàòèòü äåíüãè"
command = { type = vp value = -10 }
}
}

#Fortress on Bacan
event = {
id = 260959
trigger = {
owned = { province = 713 data = -1 } #Tindore
}
random = no
country = POR
name = "Êðåïîñòü íà Áàêàíå"
desc = "Â 1558 ãîäó ïîðòóãàëüöû ïîñòðîèëè êðåïîñòü íà îñòðîâå Áàêàí"
style = 2

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

action_a = {
name = "Ïîñòðîèòü ôîðò"
command = { type = treasury value = -100 }
command = { type = fortress which = 713 value = 1 }
}
action_b = {
name = "Íå òðàòèòü äåíüãè"
command = { type = vp value = -10 }
}
}
#Portuguese attacks Johor from Malacca
event = {
id = 260960
trigger = {
owned = { province = 678 data = MLC } #Johor
owned = { province = 677 data = -1 } #Malacca
}
random = no
country = POR
name = "Ïîðòóãàëüöû àòàêóþò Äæîõîð ÷åðåç Ìàëàêêó"
desc = "Â 1587 ãîäó ÷åðåç Ìàëàêêó ïîðòóãàëüöû íàïàëè íà Äæîõîð"
style = 2
date = { day = 1 month = january year = 1587 }
offset = 30
deathdate = { day = 1 month = january year = 1588 }

action_a = {
name = "Çàõâàòèòü Äæîõîð!"
command = { type = domestic which = offensive value = 1 }
command = { type = INF which = 677 value = 5000 }
command = { type = relation which = MLC value = -200 }
command = { type = war which = MLC }
}
action_b = {
name = "Òîëüêî òîðãîâàòü"
command = { type = domestic which = mercantilism value = -1 }
command = { type = merchants value = 3 }
command = { type = relation which = MLC value = 50 }
}
}

#Ambon falls to VOC
event = {
id = 260961
trigger = {
war = { country = POR country = HOL }
control = { province = 1691 data = HOL } 
event = 3503
}
random = no
country = POR
name = "Çàõâàò Àìáîíà"
desc = "Â 1605 ãîäó ïîðòóãàëüöû, ïðîæèâàâøèå íà îñòðîâå Àìáîí, ðåøèëè ñäàòüñÿ êîðàáëÿì ãîëëàíäñêîé Îñò-Èíäèéñêîé êîìïàíèè."
style = 3

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

action_a = {
name = "Ñäàòü Àìáîí"
command = { type = secedeprovince which = HOL value = 1691 }
command = { type = secedeprovince which = HOL value = 715 }
command = { type = removecore which = 715 }
command = { type = removecore which = 1691 }
command = { type = relation which = HOL value = 25 }
}
action_b = {
name = "Íåò, Àìáîí íàø!"
command = { type = relation which = HOL value = -50 }
command = { type = desertion which = 715 value = 2000 }
command = { type = desertion which = 1691 value = 2000 }
}
}

#Bacan falls to VOC
event = {
id = 260962
trigger = {
war = { country = POR country = HOL }
control = { province = 713 data = HOL } 
event = 3503
}
random = no
country = POR
name = "Çàõâàò Áàêàíà"
desc = "Â 1609 ãîäó ïîä íàïîðîì ãîëëàíäñêîé Îñò-Èíäèéñêîé êîìïàíèè ïàëà ïîðòóãàëüñêàÿ êðåïîñòü íà îñòðîâå Áàêàí."
style = 3

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

action_a = {
name = "Ïåðåäàòü Áàêàí"
command = { type = secedeprovince which = HOL value = 713 }
command = { type = secedeprovince which = HOL value = 1690 }
command = { type = removecore which = 713 }
command = { type = removecore which = 1690 }
command = { type = relation which = HOL value = 25 }
}
action_b = {
name = "Íåò, Áàêàí íàø!"
command = { type = relation which = HOL value = -50 }
command = { type = desertion which = 713 value = 2000 }
command = { type = desertion which = 1690 value = 2000 }
}
}

#Local muslims overcome Portuguese fortress at Ende on Flores
event = {
id = 260963
trigger = {
owned = { province = 711 data = -1 } #Flores
}
random = no
country = POR
name = "Àòàêè ìóñóëüíàì íà Ýíä"
desc = "Â 1637 ãîäó ìåñòíûå ìóñóëüìàíå ðàçãðîìèëè ïîðòóãàëüñêóþ êðåïîñòü, ðàñïîëîæåííóþ â Ýíäå íà îñòðîâå Ôëîðåñ."
style = 3

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

action_a = {
name = "×èíèòü!"
command = { type = revolt which = 711 }
}
}

#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
}
random = no
country = POR
name = "Àòàêà Ìàëàêêè"
desc = "Â 1641 ãîäó ñ ïîìîùüþ ñóëòàíà Äæîõîðà, ãîëëàíäñêàÿ Îñò-Èíäèéñêàÿ êîìïàíèÿ îòâîåâàëà ó ïîðòóãàëüöåâ Ìàëàêêó."
style = 3

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

action_a = {
name = "Îòäàòü Ìàëàêêó"
command = { type = secedeprovince which = HOL value = 677 }
command = { type = removecore which = 677 }
command = { type = relation which = HOL value = 25 }
command = { type = removecot which = 677 }
command = { type = cot which = 702 }
}
action_b = {
name = "Íåò, Ìàëàêêà íàøà!"
command = { type = relation which = HOL value = -50 }
command = { type = desertion which = 677 value = 2000 }
}
}

#Settlement at Kupang
event = {
id = 260965
trigger = {
owned = { province = 712 data = -1 } #Timor
}
random = no
country = POR
name = "Îñíîâàíèå ïîñåëåíèÿ"
desc = "Â 1646 ãîäó ïîðòóãàëüöû íà÷àëè ñòðîèòåëüñòâî êîëîíèè íà ìåñòå ñîâðåìåííîãî ãîðîäà Êóïàíã, â Çàïàäíîì Òèìîðå."
style = 3

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

action_a = {
name = "Ýòî õîðîøî"
command = { type = population which = 712 value = 500 }
}
}

#Timor falls to VOC
event = {
id = 260966
trigger = {
war = { country = POR country = HOL }
control = { province = 712 data = HOL }
event = 3503
}
random = no
country = POR
name = "Timor falls to VOC"
desc = "Â 1651 ãîäó â Çàïàäíîì Òèìîðå ãîëëàíäñêàÿ Îñò-Èíäèéñêàÿ êîìïàíèÿ çàõâàòèëà Êóïàíã. Ïîðòóãàëüöû îòïðàâèëèñü ê Ëèôàó (ñîâðåìåííûé Âîñòî÷íûé Òèìîð)."
style = 3

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

action_a = {
name = "Ñäàòü Òèìîð"
command = { type = secedeprovince which = HOL value = 712 }
command = { type = removecore which = 712 }
command = { type = relation which = HOL value = 25 }
}
action_b = {
name = "Íåò, Òèìîð íàø!"
command = { type = relation which = HOL value = -50 }
command = { type = provincetax which = 712 value = -1 }
command = { type = provincemanpower which = 712 value = -1 }
}
}

#Portuguese Indian empire firmly established#
event = { 
	 id = 260059
       random = no 
       country = POR 
       style = 1 
       date = { year = 1517 month = january } 
       offset = 90
	 name = "Çàñëóãè Àëüôîíñî äå Àëüáóêåðêå" 
       desc = "Íåçàäîëãî äî ñìåðòè â äåêàáðå 1515 ãîäà, Àëüôîíñî äå Àëüáóêåðêå îòïðàâèëñÿ â Îðìóçñêèé ïðîëèâ, è ïîä÷èíèë ñåáå åãî ïðàâèòåëÿ. Ïîñëå åãî ñìåðòè Îðìóç, Ãîà è Ìàëàêêà áûëè â ïîëíîé áåçîïàñíîñòè, íàõîäÿñü â ðóêàõ ïîðòóãàëüöåâ. Áûëî óñòàíîâëåíî ãîñïîäñòâî ïîðòóãàëüöåâ íàä îáåèìè Èíäèÿìè."
       action_a = { 
            name = "Îáå Èíäèè íàõîäÿòñÿ ïîä íàøåì êîíòðîëåì!" 
            command = { type = DIP which = 3 value = 120 }
            command = { type = badboy value = -12 }
            command = { type = revoltrisk which = 12 value = -1 }
}
}

#######################################################################
##SPANISH EVENTS
#Maluku belongs to Portugal (Spain's part)

event = {
id = 285961
trigger = {
OR = {
owned = { province = 713 data = -1 } #Tindore
owned = { province = 714 data = -1 } #Buru
owned = { province = 715 data = -1 } #Ceram

owned = { province = 706 data = -1 }
owned = { province = 1749 data = -1 }
owned = { province = 1748 data = -1 }
owned = { province = 1762 data = -1 }

}
exists = POR
}
random = no
country = SPA
name = "Ñïîð âîêðóã Ìîëóêêñêèõ îñòðîâîâ"
desc = "Â 1494 ã. Èñïàíèÿ è Ïîðòóãàëèÿ ïîäåëèëè ìåæäó ñîáîé âåñü ìèð, è íà ïðîòÿæåíèè äîëãîãî âðåìåíè ïðîäîëæàëè ñïîðèòü î òî÷íîì ìåñòîíàõîæäåíèè ðàçäåëèòåëüíîé ëèíèè. Ñîáðàíèå, óñòðîåííîå Ïàïîé Ðèìñêèì â 1524 ã., íå ðåøèëî ïðîáëåìû. Îäíàêî, â 1529 ã. êîðîëè Èñïàíèè è Ïîðòóãàëèè äîãîâîðèëèñü î òîì, ÷òî Ìîëóêêñêèå îñòðîâà äîëæíû ïðèíàäëåæàòü Ïîðòóãàëèè, à Ôèëèïïèíû - Èñïàíèè."
style = 2

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

action_a = {
name = "Ïðèíÿòü ñîãëàøåíèå"
command = { type = relation which = POR value = 50 }
command = { type = relation which = PAP value = 50 }
command = { type = secedeprovince which = POR value = 713 }
command = { type = secedeprovince which = POR value = 714 }
command = { type = secedeprovince which = POR value = 715 }
command = { type = secedeprovince which = POR value = 1762 }
command = { type = secedeprovince which = POR value = 706 }
command = { type = secedeprovince which = POR value = 1749 }
command = { type = secedeprovince which = POR value = 1748 }
}
action_b = {
name = "Íåò, Ìîëóêêñêèå îñòðîâà íàøè!"
command = { type = relation which = POR value = -50 }
command = { type = relation which = PAP value = -50 }
command = { type = trigger which = 260955 }
}
}

#Maluku belongs to Portugal (Portugal's part)
event = {
id = 260955
random = no
country = POR
name = "Ñïîð âîêðóã Ìîëóêêñêèõ îñòðîâîâ"
desc = "Â 1494 ã. Èñïàíèÿ è Ïîðòóãàëèÿ ïîäåëèëè ìåæäó ñîáîé âåñü ìèð, è íà ïðîòÿæåíèè äîëãîãî âðåìåíè ïðîäîëæàëè ñïîðèòü î òî÷íîì ìåñòîíàõîæäåíèè ðàçäåëèòåëüíîé ëèíèè. Ñîáðàíèå, óñòðîåííîå Ïàïîé Ðèìñêèì â 1524 ã., íå ðåøèëî ïðîáëåìû. Îäíàêî, â 1529 ã. êîðîëè Èñïàíèè è Ïîðòóãàëèè äîãîâîðèëèñü î òîì, ÷òî Ìîëóêêñêèå îñòðîâà äîëæíû ïðèíàäëåæàòü Ïîðòóãàëèè, à Ôèëèïïèíû - Èñïàíèè."
style = 2

action_a = {
name = "Ñîãëàñèòñÿ ñ äîãîâîðîì!"
command = { type = casusbelli which = SPA value = 60 }
}
}


#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
owned = { province = 1823 data = -1 }
owned = { province = 1824 data = -1 }
owned = { province = 1741 data = -1 }

}
exists = SPA
}
random = no
country = POR
name = "Ôèëëèïèíû ïðèíàäëåæàò Èñïàíèè"
desc = "Â 1494 ã. Èñïàíèÿ è Ïîðòóãàëèÿ ïîäåëèëè ìåæäó ñîáîé âåñü ìèð, è íà ïðîòÿæåíèè äîëãîãî âðåìåíè ïðîäîëæàëè ñïîðèòü î òî÷íîì ìåñòîíàõîæäåíèè ðàçäåëèòåëüíîé ëèíèè. Ñîáðàíèå, óñòðîåííîå Ïàïîé Ðèìñêèì â 1524 ã., íå ðåøèëî ïðîáëåìû. Îäíàêî, â 1529 ã. êîðîëè Èñïàíèè è Ïîðòóãàëèè äîãîâîðèëèñü î òîì, ÷òî Ìîëóêêñêèå îñòðîâà äîëæíû ïðèíàäëåæàòü Ïîðòóãàëèè, à Ôèëèïïèíû - Èñïàíèè."
style = 2
date = { day = 1 month = january year = 1529 }
offset = 30
deathdate = { day = 1 month = january year = 1600 }

action_a = {
name = "Ñîãëàñèòñÿ ñ äîãîâîðîì"
command = { type = relation which = SPA value = 50 }
command = { type = relation which = PAP value = 50 }
command = { type = secedeprovince which = SPA value = 690 }
command = { type = secedeprovince which = SPA value = 691 }
command = { type = secedeprovince which = SPA value = 692 }
command = { type = secedeprovince which = SPA value = 693 }
command = { type = secedeprovince which = SPA value = 694 }
command = { type = secedeprovince which = SPA value = 1823 }
command = { type = secedeprovince which = SPA value = 1824 }
command = { type = secedeprovince which = SPA value = 1741 }
}
action_b = {
name = "Íåò, Ôèëëèïèíû íàøè!"
command = { type = relation which = SPA value = -50 }
command = { type = relation which = PAP value = -50 }
command = { type = trigger which = 285962 }
}
}

#Philippines belong to Spain (Spain's part)
event = {
id = 285962
random = no
country = SPA
name = "Ôèëëèïèíû ïðèíàäëåæàò Èñïàíèè"
desc = "Â 1494 ã. Èñïàíèÿ è Ïîðòóãàëèÿ ïîäåëèëè ìåæäó ñîáîé âåñü ìèð, è íà ïðîòÿæåíèè äîëãîãî âðåìåíè ïðîäîëæàëè ñïîðèòü î òî÷íîì ìåñòîíàõîæäåíèè ðàçäåëèòåëüíîé ëèíèè. Ñîáðàíèå, óñòðîåííîå Ïàïîé Ðèìñêèì â 1524 ã., íå ðåøèëî ïðîáëåìû. Îäíàêî, â 1529 ã. êîðîëè Èñïàíèè è Ïîðòóãàëèè äîãîâîðèëèñü î òîì, ÷òî Ìîëóêêñêèå îñòðîâà äîëæíû ïðèíàäëåæàòü Ïîðòóãàëèè, à Ôèëèïïèíû - Èñïàíèè."
style = 2

action_a = {
name = "Ñîãëàñèòñÿ!"
command = { type = casusbelli which = POR value = 60 }
}
}

##################################################################################################################
#### Ïîðòóãàëüñêîå âëàäû÷åñòâî â Îìàíå. Ïîïðàâëåíî íà îòñóòñòâèå Îðìóçà. Äàíà âîçìîæíîñòü âûáîðà çà Îìàí
##################################################################################################################

#Portuguese force-vassalization of Ormuz#
event = {
	id = 423004
	random = no
	country = POR
	name = "Îðìóç ïîä÷èíÿåòñÿ Ïîðòóãàëèè"
	desc = "Â îêòÿáðå 1507 ãîäà Îðìóç ïîí¸ñ ïîëíîå ïîðîæåíèå â ìîðñêîé áèòâå ïðîòèâ ïîðòóãàëüöåâ. Â ýòîì ñðàæåíèè Àëüôîíñî äå Àëüáóêåðêå çàõâàòèë èçâåñòíîå ñóäíî Ìåðè. Âñêîðå ïîñëå òîãî, êàê Îðìóç âî ãëàâå ñ Êîãåòàðîì áûë çàõâà÷åí, îòïàëà íàäîáíîñòü ñòðîèòü êðåïîñòü ïî ïëàíó Àëüáóêåðêå. Ïî ýòîìó, òðîå êàïèòàíîâ Àëüáóêåðêå ïîêèíóëè ñâîåãî êîìàíäèðà è îòïëûëè â Èíäèþ."
	action_a ={ 
		name = "Îòëè÷íî!"
                 command = { type = vassal   which = OMA }
                 command = { type = warships   which = 504 value = 2 }
                 command = { type = addcore which = 504 }
}
}

#Portuguese AI war vs Ormuz#
event = {
	id = 260095
	trigger = { discovered = 504 
	ai = yes 
	NOT = { war   = { country = POR country = ZAN }} 
	NOT = { war   = { country = POR country = ZUL }} 
	NOT = { vassal   = { country = POR country = OMA }} 
	OR = { owned = { province = 768 data = -1 } 
	       owned = { province = 770 data = -1 } 
               owned = { province = 765 data = -1 }
         }
         }                
	random = no
	country = POR
	name = "AI_EVENT"
	desc = "Portuguese AI war vs Ormuz"
	style = 2
      date = { month = december year = 1507 } 
	offset = 60
      deathdate = { day = 1 month = january year = 1511 }
	action_a ={ 
		name = "Portuguese AI check"
                 command = { type = war  which = OMA }
}
}

#The Portuguese take possession of Ormuz#
event = {
	id = 423003              
	random = no
	country = POR
	name = "Îðìóç ïðèíàäëåæèò Ïîðòóãàëèè"
	desc = "Â 1515 ãîäó ïî ïðèêàçó Àëüáóêåðêå ïîðòóãàëüöû óáèëè ãóáåðíàòîðà ãîðîäà, ïåðñà Ðåéñà Õàìàäà. Âî âðåìÿ ñòðîèòåëüñòâà ôîðòà îíè çàõâàòèëè àðñåíàë è ñäåëàëè ïðàâèòåëÿ øåéõà Îðìóçà ñâîåé ìàðèîíåòêîé."
	style = 2
	action_a ={ 
		name = "Îðìóç íàø!"
		 command = { type = cot which = 504 }
                 command = { type = treasury value = 200 }
                 command = { type = fortress   which = 504 value = 1 }
                 command = { type = stability   value = 1 }
                 command = { type = addcore which = 549 }
        }
}



###Omani revolts event for Portugal:

event = {
id = 260093
trigger = {
OR = {
owned = { province = 504 data = POR }
owned = { province = 505 data = POR }
owned = { province = 1802 data = POR } }
 }
random = no
country = POR
name = "Âîññòàíèÿ â Îìàíå"
desc = "Ê 1640 ãîäó èìàì Íàñð àëü-ßðóáè ïåðåìàíèë íà ñâîþ ñòîðîíó âñåõ âíóòðåííèõ ñîïåðíèêîâ, è òåïåðü ïîäæèäàåò ìîìåíò, ÷òîáû âûãíàòü ïîðòóãàëüöåâ ñ ïîáåðåæüÿ."
style = 1

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

action_a ={ #Blast#
name = "Âçðûâ ðåâîëþöèè!"
command = { type = revolt which = 504 }
command = { type = revolt which = 504 }
command = { type = revolt which = 505 }
command = { type = revolt which = 505 }
command = { type = revolt which = 1064 }
command = { type = revolt which = 1064 }
command = { type = province_revoltrisk which = 504 value = 800 }
command = { type = province_revoltrisk which = 505 value = 800 }
command = { type = province_revoltrisk which = 506 value = 800 }   
}

action_b ={ #Let's Leave Before it Gets Ugly#
name = "Äàâàéòå óåäåì ðàíüøå, ÷åì ýòî íà÷í¸òñÿ."
command = { type = independence which = OMA }
command = { type = breakvassal which = OMA }
command = { type = secedeprovince which = PER value = 1802 }
command = { type = secedeprovince which = OMA value = 504 }
command = { type = secedeprovince which = OMA value = 505 }
command = { type = secedeprovince which = OMA value = 506 }
command = { type = relation which = OMA value = -300 }              
}

}

event = {
id = 260094
trigger = {
owned = { province = 504 data = POR }
owned = { province = 505 data = POR }
control = { province = 504 data = POR }
control = { province = 505 data = POR } }
random = no
country = POR
name = "Îìàí ïîä÷èí¸í"
desc = "ßðóáè áûëè ðàçãðîìëåíû, è òåïåðü â Îìàíå ó âëàñòè íàõîäÿòñÿ ïîðòóãàëüöû."
style = 1

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

action_a ={ #Glad that's Over#
name = "Õîðîøî ÷òî ýòî çàêîí÷èëîñü"
command = { type = province_revoltrisk which = 504 value = -800 }
command = { type = province_revoltrisk which = 505 value = -800 }
command = { type = province_revoltrisk which = 506 value = -800 }
command = { type = vp value = 100 }
}
}

event = {
	id = 217983 
	trigger = {  
                   owned = { province = 732  data = -1 }
                  
OR = { 
war = { country = POR country = MOR }
war = { country = POR country = XHO }
war = { country = POR country = ALD }

}
	
}

	random = no
	country = POR
	name = "Ìàâðèòàíñêèé âîïðîñ"
	desc = "Ïåðåíåñÿ ðåêîíêèñòó â Àôðèêó. è ïîêîðèâ íå ìàëî Ìàâðèòàíñêèõ ãîðîäîâ, ìû ñòîëêíóëèñü ñ òåì, ÷òî â íàøåì ïîääàíñòâå îêàçàëîñü ìíîãî ìàâðîâ-ìóñóëüìàí. Êàê íàì ñëåäóåò ïîñòóïèòü ñ íèìè, ó÷èòûâàÿ ÷òî â íàøåé êóëüòóðå, ÿçûêå è îáû÷àÿõ îñòàëîñü íåìàëî ñ òåõ âðåìåí, êîãäà Ïîðòóãàëüêèå êîðîëè âîåâàëè-ìèðèëèñü-çàêëþ÷àëè ñîþçû ñ Ìàâðàìè Èáåðèèè."
        style = 1
	date = { day = 1 month = january year = 1420 }
	offset = 300
	deathdate = { day = 1 month = january year = 1520 }

	action_a ={			
		name = "Íåò, îíè íàì íå íóæíû. Îòíîøåíèå êàê ê ïîêîðåííûì âðàãàì."
                command = { type = treasury value = 120 }
                command = { type = revoltrisk which = 24 value = 2 }
                command = { type = stability value = 1 }
command = { type = sleepevent which = 217984 }
	}
        action_b ={			
		name = "Ïðèíÿòü èõ êàê îáû÷íûõ ïîääàíûõ"
                command = { type = treasury value = 1200 }
                command = { type = revolt which = -1 }
                command = { type = revolt which = -1 }
                command = { type = revolt which = -2 }
command = { type = domestic which = aristocracy value = 2 }
command = { type = domestic which = land value = 2 }
command = { type = domestic which = centralization value = -2 }
command = { type = domestic which = innovative value = -1 } 
command = { type = add_countryculture which = berber }
	}
}


event = {
    id = 217984 
trigger = { 

        
domestic = { type = serfdom value = 5 }

NOT = { domestic = { type = centralization value = 8 } 
domestic = { type = innovative value = 6 } }

}
       
    random = no
    country = POR
    name = "Ìàâðèòàíñêèå áóíòû - ïîòåðÿ êóëüòóðû"
    desc = "Â êîíöå 16 âåêà â ñâÿçè ñ óõóäøåíèåì ïîëèòè÷åñêîé ñèòóàöèè â Ïîðòóãàëèè, çàêðåïîùåíèå êðåñòüÿí, óñèëåíèåì ðåëèãèîçíîãî ãíåòà è ïðåñëåäîâàíèé èíêâèçèöèè, à òàê æå ïàäåíèåì àâòîðèòåòà êîðîëåâñêîé âëàñòè ñðåäè ìàâðîì, ðàííåå áûâøèõ ïðåäàííûì ïîääàíûìè ïîðòóãàëüñêîé êîðîíû íà÷àëàñü áîðüáà çà îñâîáîæäåíèå îò âëàñòè ïîðòóãàëüöåâ. "
    style = 1
        date = { day = 1 month = january year = 1560 }
    offset = 900
    deathdate = { day = 1 month = january year = 1820 }
    action_a = { 
        name = "Ýòî ôàêò"
        command = { type = remove_countryculture which = berber }
    }
}