#Province Specific Events

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

#(1419-1820) Turkish ambition on Constantinople
event = {
	id = 338009
	trigger = {
		exists = TUR
		ai = yes
		NOT = {
			owned = { province = 357 data = BYZ }
			owned = { province = 357 data = TUR }
		}
		OR = {
			religion = sunni
			relation = { country = TUR data = 100 }
			vassal = { country = TUR country = -1 }
			alliance = { country = TUR country = -1 }
		}
	}
	random = no
	province = 357 #Thrace
	name = "EVENTNAME338009" #The Ottoman Sultan demands Constantinople
	desc = "EVENTHIST338009"
	#-#He is agitating to add Constantinople to the growing empire. We must acquiese.

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

	action_a = {
		name = "ACTIONNAME338009A" #We will hand it over
		command = { type = cedeprovince which = TUR value = 357 } #Thrace
		command = { type = relation which = TUR value = 50 }
		command = { type = treasury value = 50 }
	}
}

#(1419-1820) Liberation of Constantinople
event = {
	id = 338488
	trigger = {
		NOT = {
			owned = { province = 357 data = TUR } #Thrace
		}
		NOT = { #Ottomans are no longer a danger to Constantinople
			owned = { province = 360 data = TUR } #Morea
			owned = { province = 359 data = TUR } #Hellas
			owned = { province = 358 data = TUR } #Macedonia
			owned = { province = 356 data = TUR } #Bulgaria
			owned = { province = 321 data = TUR } #Rumelia
		}
		control = { province = 357 data = -1 } #Thrace
		event = 3353 #TUR: The City of Men's Desire
		OR = { #Must be a Christian country
			religion = catholic
			religion = counterreform
			religion = protestant
			religion = reformed
			religion = orthodox
			religion = miaphysite
		}
		NOT = { #Not one of the countries with a specific Constantinople event
			AND = { #Byzantine restoration for TRE triggers only if TRE is Orthodox
				owned = { province = 357 data = TRE }
				religion = orthodox
			}
			owned = { province = 357 data = RUS }
			AND = { #Byzantine restoration for SER triggers only if SER is Orthodox
				owned = { province = 357 data = SER }
				religion = orthodox
			}
			owned = { province = 357 data = BYZ }
			AND = { #Byzantine restoration for MRE triggers only if MRE is Orthodox
				owned = { province = 357 data = MRE }
				religion = orthodox
			}
		}
	}
	random = no
	province = 357 #Thrace
	name = "EVENTNAME338488" #Liberation of Constantinople
	desc = "EVENTHIST338488"
	#-#Glorious day! The Ottoman threat has been vanquished and Constantinople, Queen of Cities and once capital of the fallen Eastern Roman Empire, has been liberated from the heathens. The whole Christian world is celebrating and praising Our Lord for this great gift.

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

	action_a = {
		name = "ACTIONNAME338488A" #Praise the Lord!
		command = { type = stability value = 2 } #People are delighted and nobles support the ruler more than ever
		command = { type = treasury value = 100 } #Ottoman treasure
		command = { type = DIP which = 2 value = 24 } #Respect
		command = { type = badboy value = -4 } #Countering the badboy effects of victories against the Ottomans (probably annexation as well)
		command = { type = vp value = 150 }
	}
}

#(1419-1459) Merchants are being plundered - Erik VII sequence - Random
event = {
	id = 338011
	trigger = {
		owned = { province = 308 data = POM } #Gotland
		control = { province = 308 data = POM } #Gotland
		year = 1439
		NOT = { year = 1448 }
		OR = {
			AND = {
				owned = { province = 307 data = -1 } #Sjælland
				NOT = { owned = { province = 307 data = POM } }
			}
			AND = {
				owned = { province = 251 data = -1 } #Skåne
				NOT = { owned = { province = 251 data = POM } }
			}
			AND = {
				owned = { province = 252 data = -1 } #Småland
				NOT = { owned = { province = 252 data = POM } }
			}
			AND = {
				owned = { province = 254 data = -1 } #Svealand
				NOT = { owned = { province = 254 data = POM } }
			}
			AND = {
				owned = { province = 1469 data = -1 } #Gästrikland
				NOT = { owned = { province = 1469 data = POM } }
			}
			AND = {
				owned = { province = 342 data = -1 } #Finland
				NOT = { owned = { province = 342 data = POM } }
			}
			AND = {
				owned = { province = 265 data = -1 } #Nyland
				NOT = { owned = { province = 265 data = POM } }
			}
			AND = {
				owned = { province = 275 data = -1 } #Ingermanland
				NOT = { owned = { province = 275 data = POM } }
			}
			AND = {
				owned = { province = 276 data = -1 } #Estland
				NOT = { owned = { province = 276 data = POM } }
			}
			AND = {
				owned = { province = 282 data = -1 } #Livland
				NOT = { owned = { province = 282 data = POM } }
			}
			AND = {
				owned = { province = 283 data = -1 } #Kurland
				NOT = { owned = { province = 283 data = POM } }
			}
			AND = {
				owned = { province = 289 data = -1 } #Memel
				NOT = { owned = { province = 289 data = POM } }
			}
			AND = {
				owned = { province = 290 data = -1 } #Prussia
				NOT = { owned = { province = 290 data = POM } }
			}
			AND = {
				owned = { province = 301 data = -1 } #Danzig
				NOT = { owned = { province = 301 data = POM } }
			}
			AND = {
				owned = { province = 302 data = -1 } #Hinterpommern
				NOT = { owned = { province = 302 data = POM } }
			}
			AND = {
				owned = { province = 304 data = -1 } #Vorpommern
				NOT = { owned = { province = 304 data = POM } }
			}
			AND = {
				owned = { province = 305 data = -1 } #Mecklenburg
				NOT = { owned = { province = 305 data = POM } }
			}
		}
	}
	random = yes
	name = "EVENTNAME338011" #Merchants are being plundered
	desc = "EVENTHIST338011"
	#-#Our merchants are being plundered by a pirate fleet operating out of Gotland under the command of Erik of Pomerania.

	action_a = {
		name = "ACTIONNAME338011A" #This must come to an end!
		command = { type = stability value = -1 }
		command = { type = merchants value = -1 }
		command = { type = ADM which = -2 value = 6 }
		command = { type = trade value = -50 }
		command = { type = relation which = POM value = -50 }
		command = { type = casusbelli which = POM value = 12 }
	}
}

#(1419-1510) Teutonic Order restoration event
event = {
	id = 338108
	trigger = {
		NOT = {
			core = { province = 302 data = -1 }
			exists = PRU
			exists = LAT
			OR = {
				owned = { province = 290 data = POL } #Prussia
				owned = { province = 290 data = LIV } #Prussia
			}
			flag = [TO_Lands]
		}
		OR = {
			religion = catholic
			religion = counterreform
		}
	}
	random = no
	province = 290 #Prussia
	name = "EVENTNAME338108" #The Lands of Teutonic Order
	desc = "EVENTHIST338108"
	#-#The Teutonic Order's presence in the Baltic region dates back to 1225 when Duke Conrad of Masovia asked the Teutonic knights to come and aid him against the Prussian pagans' raids. Having the backing of the Pope, the Holy Roman Emperor and the minor German states, the Teutonic Order rose up to become a major power in the southern Baltic coast. Now their lands are ours. Shall we give them back to the Order or keep them for ourselves?

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

	action_a = {
		name = "ACTIONNAME338108A" #Let's restore them
		command = { type = independence which = LAT }
		command = { type = badboy value = -5 }
		command = { type = relation which = HAB value = 100 } #All other Catholics nations
		command = { type = relation which = BRA value = 100 } #All other Catholics nations
		command = { type = relation which = POL value = -50 } #All other Catholics nations
		command = { type = relation which = LIT value = -50 } #All other Catholics nations
		command = { type = relation which = STT value = 100 } #All other Catholics nations
		command = { type = relation which = POM value = -50 }
		command = { type = vp value = 50 }
		command = { type = setflag which = [TO_Lands] }
	}
	action_b = {
		name = "ACTIONNAME338108B" #We will keep Prussia!
		command = { type = badboy value = 2 }
		command = { type = stability value = -1 }
		command = { type = setflag which = [TO_Lands] }
	}
}

#(1419-1772) Recovery of Danzig
#by zdlugasz
#should only happen to Poland or Masovia
event = {
	id = 338195
	trigger = {
		OR = {
			owned = { province = 301 data = MAS }
			owned = { province = 301 data = POL }
		}
	}
	random = no
	province = 301 #Danzig
	name = "EVENTNAME338195" #Recovery of Danzig
	desc = "EVENTHIST338195"
	#-#Danzig (Gdansk) was lost by Poland at the beginning of the 14th century and it's recovery was always one of main Polish Kings' priorities. Major defeat of Teutonic Order at Grunwald in 1410 was never properly exploited, but finally after Thirteen Years War (1454-1466) Danzig has been recovered.

	date = { day = 1 month = january year = 1419 }
	offset = 3000
	deathdate = { day = 1 month = january year = 1772 } #date of the first partitioning of Poland

	action_a = {
		name = "GREAT"
		command = { type = cityname which = 301 value = "Gdansk" }
		command = { type = provinceculture which = 301 value = polish }
		command = { type = vp value = 5 }
	}
}

#(1419-1820) Riau converts to Islam
event = {
	id = 338032
	trigger = {
		NOT = { provincereligion = { province = 680 data = sunni } }
		OR = {
			year = 1500
			NOT = { owned = { province = 680 data = SIA } } #Riau
		}
	}
	random = yes
	province = 680 #Riau
	name = "EVENTNAME338032" #Riau converts to Islam
	desc = "EVENTHIST338032"
	#-#The people of Riau have adopted the Islamic faith.

	action_a = {
		name = "ACTIONNAME338032A" #Convert to Islam
		command = { type = provincereligion which = 680 value = sunni } #Riau
	}
	action_b = {
		name = "ACTIONNAME338032B" #Keep old belief
		command = { type = revolt which = 680 } #Riau
	}
}

#(1419-1820) Decline of Calais
event = {
	id = 338406
	trigger = {
		OR = {
			NOT = { owned = { province = 382 data = ENG } } #Calais
			event = 3012 #ENG: The Merchant Adventures
			event = 186320 #HOL: The Economic Growth of Amsterdam
			event = 337828 #CoTs*380: Closure of the Flandern Centre of Trade
			event = 337834 #CoTs*385: Paris: economic center of France
		}
	}
	random = no
	province = 382 #Calais
	name = "EVENTNAME338406" #Decline of Calais
	desc = "EVENTHIST338406"
	#-#Calais came to be called the ''brightest jewel in the English crown'' owing to its great importance as the gateway for the tin, lead, cloth and wool trades (or 'staples'). Its customs revenues amounted at times to a third of the English government's revenue, with wool being the most important element by far. Of its population of about 12,000 people, as many as 5,400 were recorded as having been connected with the wool trade. The governorship or Captaincy of Calais was a lucrative and highly prized public office. But with switching trade routes and changing commercial relations, this time is over now...

	date = { day = 0 month = january year = 1419 }
	offset = 90
	deathdate = { year = 1820 }

	action_a = {
		name = "ALAS"
		command = { type = provincetax which = 382 value = -20 } #Calais
	}
}

#-----------------------------------------------------------------------------------------------
#(1419-1499) Crusade against the Hussites is successful

#(1419-1499) Bohemia
#With action_a, ROM forms BOH - action_b effects worsened
event = {
	id = 338059
	trigger = {
		exists = ROM
		NOT = { exists = HUS }
		NOT = { core = { province = 328 data = -1 } } #Romanists and Bohemia exempt
	}
	random = no
	province = 328 #Bohemia
	name = "EVENTNAME338057" #Crusade against the Hussites is successful
	desc = "EVENTHIST338059"
	#-#Finally the crusade against the heretic Hussites has succeeded and Bohemia was returned to catholicism. Prague is in our hands. Shall we turn over this city to Romanists?

	date = { day = 18 month = august year = 1419 }
	offset = 1
	deathdate = { day = 29 month = december year = 1499 }

	action_a = {
		name = "ACTIONNAME338059A" #Turn over Prague to Romanists
		command = { type = cedeprovince which = ROM value = 328 } #Bohemia
		command = { type = vp value = 50 }
		command = { type = relation which = ROM value = 100 }
		command = { type = relation which = PAP value = 100 }
	}
	action_b = {
		name = "ACTIONNAME338059B" #Keep Prague
		command = { type = relation which = ROM value = -300 }
		command = { type = revolt which = 328 } #Bohemia
		command = { type = revolt which = 328 } #Bohemia
		command = { type = revolt which = 328 } #Bohemia
		command = { type = revolt which = 328 } #Bohemia
		command = { type = stability value = -3 }
		command = { type = badboy value = 2 }
	}
}
#-----------------------------------------------------------------------------------------------
#(1419-1450) Moravia
event = {
	id = 338057 #triggered by ROM_398014
	trigger = {
		NOT = { core = { province = 328 data = -1 } } #Bohemia exempt
	}
	random = no
	province = 315 #Moravia
	name = "EVENTNAME338057" #Crusade against the Hussites is successful
	desc = "EVENTHIST338057"
	#-#Finally the crusade against the heretic Hussites has succeeded and Bohemia was returned to catholicism. Having been crowned King of Bohemia, Emperor Sigismund now demands that the Bohemian lands seized from the Hussites during the crusade are returned to the Bohemian crown.

	action_a = {
		name = "ACTIONNAME338057A" #Turn over the lands seized from the Hussites to Sigismund
		command = { type = cedeprovince which = BOH value = 315 } #Moravia
		command = { type = vp value = 50 }
		command = { type = relation which = BOH value = 100 }
		command = { type = relation which = PAP value = 100 }
	}
	action_b = {
		name = "ACTIONNAME338057B" #Keep our conquests
		command = { type = relation which = BOH value = -100 }
		command = { type = revolt which = 315 } #Moravia
		command = { type = stability value = -1 }
		command = { type = badboy value = 1 }
	}
}
#(1419-1450) Ostmarch
event = {
	id = 338058 #triggered by ROM_398014
	trigger = {
		NOT = {
			core = { province = 328 data = -1 } #Bohemia exempt
			owned = { province = 327 data = HAB } #Ostmarch - Austria exempt
			control = { province = 327 data = HAB } #Ostmarch - Owner exempt if at war against Austria
		}
	}
	random = no
	province = 327 #Ostmarch
	name = "EVENTNAME338057" #Crusade against the Hussites is successful
	desc = "EVENTHIST338057"
	#-#Finally the crusade against the heretic Hussites has succeeded and Bohemia was returned to catholicism. Having been crowned King of Bohemia, Emperor Sigismund now demands that the Bohemian lands seized from the Hussites during the crusade are returned to the Bohemian crown.

	action_a = {
		name = "ACTIONNAME338057A" #Turn over the lands seized from the Hussites to Sigismund
		command = { type = cedeprovince which = BOH value = 327 } #Ostmarch
		command = { type = vp value = 50 }
		command = { type = relation which = BOH value = 100 }
		command = { type = relation which = PAP value = 100 }
		command = { type = trigger which = 129048 } #BOH: Ostmarch and Habsburgs Hereditary Lands
	}
	action_b = {
		name = "ACTIONNAME338057B" #Keep our conquests
		command = { type = relation which = BOH value = -100 }
		command = { type = revolt which = 327 } #Ostmarch
		command = { type = stability value = -1 }
		command = { type = badboy value = 1 }
	}
}
#(1419-1450) Erz
event = {
	id = 338060 #triggered by ROM_398014
	trigger = {
		NOT = { core = { province = 328 data = -1 } } #Bohemia exempt
	}
	random = no
	province = 329 #Erz
	name = "EVENTNAME338057" #Crusade against the Hussites is successful
	desc = "EVENTHIST338057"
	#-#Finally the crusade against the heretic Hussites has succeeded and Bohemia was returned to catholicism. Having been crowned King of Bohemia, Emperor Sigismund now demands that the Bohemian lands seized from the Hussites during the crusade are returned to the Bohemian crown.

	action_a = {
		name = "ACTIONNAME338057A" #Turn over the lands seized from the Hussites to Sigismund
		command = { type = cedeprovince which = BOH value = 329 } #Erz
		command = { type = vp value = 50 }
		command = { type = relation which = BOH value = 100 }
		command = { type = relation which = PAP value = 100 }
	}
	action_b = {
		name = "ACTIONNAME338057B" #Keep our conquests
		command = { type = relation which = BOH value = -100 }
		command = { type = revolt which = 329 } #Erz
		command = { type = stability value = -1 }
		command = { type = badboy value = 1 }
	}
}
#(1419-1450) Sudeten
event = {
	id = 338061 #triggered by ROM_398014
	trigger = {
		NOT = { core = { province = 328 data = -1 } } #Bohemia exempt
	}
	random = no
	province = 330 #Sudeten
	name = "EVENTNAME338057" #Crusade against the Hussites is successful
	desc = "EVENTHIST338057"
	#-#Finally the crusade against the heretic Hussites has succeeded and Bohemia was returned to catholicism. Having been crowned King of Bohemia, Emperor Sigismund now demands that the Bohemian lands seized from the Hussites during the crusade are returned to the Bohemian crown.

	action_a = {
		name = "ACTIONNAME338057A" #Turn over the lands seized from the Hussites to Sigismund
		command = { type = cedeprovince which = BOH value = 330 } #Sudeten
		command = { type = vp value = 50 }
		command = { type = relation which = BOH value = 100 }
		command = { type = relation which = PAP value = 100 }
	}
	action_b = {
		name = "ACTIONNAME338057B" #Keep our conquests
		command = { type = relation which = BOH value = -100 }
		command = { type = revolt which = 330 } #Sudeten
		command = { type = stability value = -1 }
		command = { type = badboy value = 1 }
	}
}
#-----------------------------------------------------------------------------------------------

#-----------------------------------------------------------------------------------------------
#(1419-1558) Frisian trouble - Set of 2 Random events + 1 Random event
event = {
	id = 338227
	trigger = {
		domestic = { type = centralization value = 3 }
		domestic = { type = serfdom value = 3 }
		NOT = { year = 1559 }
		NOT = { exists = FRI }
	}
	random = yes
	province = 337 #Friesen
	name = "EVENTNAME338227" #Frisian trouble
	desc = "EVENTHIST338227"
	#-#While the civil war between Schieringers and Vetkopers continued to rage, the two parties often bound together in times of war.

	action_a = {
		name = "ACTIONNAME338227A" #Let them fight us
		command = { type = revolt which = 337 } #Friesen
		command = { type = revolt which = 337 } #Friesen
		command = { type = revolt which = 337 } #Friesen
		command = { type = revolt which = 337 } #Friesen
	}
	action_b = {
		name = "ACTIONNAME338227B" #Grant more freedom
		command = { type = independence which = FRI }
	}
}
event = {
	id = 338228
	trigger = {
		domestic = { type = centralization value = 3 }
		domestic = { type = serfdom value = 3 }
		NOT = { year = 1559 }
		NOT = { exists = FRI }
	}
	random = yes
	province = 337 #Friesen
	name = "EVENTNAME338227" #Frisian trouble
	desc = "EVENTHIST338227"
	#-#While the civil war between Schieringers and Vetkopers continued to rage, the two parties often bound together in times of war.

	action_a = {
		name = "ACTIONNAME338227A" #Let them fight us
		command = { type = revolt which = 337 } #Friesen
		command = { type = revolt which = 337 } #Friesen
		command = { type = revolt which = 337 } #Friesen
		command = { type = revolt which = 337 } #Friesen
	}
	action_b = {
		name = "ACTIONNAME338227B" #Grant more freedom
		command = { type = independence which = FRI }
	}
}
#-----------------------------------------------------------------------------------------------
#(1419-1744) Conflict with a Frisian prince

#(1419-1662) Holstein
event = {
	id = 338229
	trigger = {
		control = { province = 306 data = -1 }
		atwar = no
		stability = 1
		NOT = { year = 1662 }
	}
	random = yes
	province = 306 #Holstein
	name = "EVENTNAME338229" #Conflict with a Frisian prince
	desc = "EVENTHIST338229"
	#-#Large parts of the German North Sea coast were controlled by Frisian princes who were usually still heathens. Although those Frisian lords formed a loose alliance, there was permanent conflict among them and with the neighbouring German princes. Historically, the mighty German imperial princes in Oldenburg, Bremen and Holstein very often used these feuds to gradually expand their territory.

	action_a = {
		name = "ACTIONNAME338229A" #Fight the prince and seize his lands
		command = { type = revolt which = 306 } #Holstein
		command = { type = population which = 306 value = 500 } #Holstein
		command = { type = relation which = FRI value = -20 }
	}
	action_b = {
		name = "ACTIONNAME338229B" #Leave him alone
		command = { type = relation which = FRI value = 20 }
		command = { }
	}
}
#(1419-1744) Oldenburg
event = {
	id = 338414
	trigger = {
		control = { province = 335 data = -1 }
		stability = 1
		atwar = no
		NOT = { year = 1744 }
	}
	random = yes
	province = 335 #Oldenburg
	name = "EVENTNAME338229" #Conflict with a Frisian prince
	desc = "EVENTHIST338229"
	#-#Large parts of the German North Sea coast were controlled by Frisian princes who were usually still heathens. Although those Frisian lords formed a loose alliance, there was permanent conflict among them and with the neighbouring German princes. Historically, the mighty German imperial princes in Oldenburg, Bremen and Holstein very often used these feuds to gradually expand their territory.

	action_a = {
		name = "ACTIONNAME338229A" #Fight the prince and seize his lands
		command = { type = revolt which = 335 } #Oldenburg
		command = { type = population which = 335 value = 500 } #Oldenburg
		command = { type = relation which = FRI value = -20 }
	}
	action_b = {
		name = "ACTIONNAME338229B" #Leave him alone
		command = { type = relation which = FRI value = 20 }
		command = { }
	}
}
#(1419-1460) Bremen
event = {
	id = 338415
	trigger = {
		control = { province = 336 data = -1 }
		stability = 1
		atwar = no
		NOT = { year = 1460 }
	}
	random = yes
	province = 336 #Bremen
	name = "EVENTNAME338229" #Conflict with a Frisian prince
	desc = "EVENTHIST338229"
	#-#Large parts of the German North Sea coast were controlled by Frisian princes who were usually still heathens. Although those Frisian lords formed a loose alliance, there was permanent conflict among them and with the neighbouring German princes. Historically, the mighty German imperial princes in Oldenburg, Bremen and Holstein very often used these feuds to gradually expand their territory.

	action_a = {
		name = "ACTIONNAME338229A" #Fight the prince and seize his lands
		command = { type = revolt which = 336 } #Bremen
		command = { type = population which = 336 value = 500 } #Bremen
		command = { type = relation which = FRI value = -20 }
	}
	action_b = {
		name = "ACTIONNAME338229B" #Leave him alone
		command = { type = relation which = FRI value = 20 }
		command = { }
	}
}
#(1419-1594) Friesen
#should not happen to Friesland
event = {
	id = 338416
	trigger = {
		NOT = { owned = { province = 337 data = FRI } }
		control = { province = 337 data = -1 }
		stability = 1
		atwar = no
		NOT = { year = 1594 }
	}
	random = yes
	province = 337 #Friesen
	name = "EVENTNAME338229" #Conflict with a Frisian prince
	desc = "EVENTHIST338229"
	#-#Large parts of the German North Sea coast were controlled by Frisian princes who were usually still heathens. Although those Frisian lords formed a loose alliance, there was permanent conflict among them and with the neighbouring German princes. Historically, the mighty German imperial princes in Oldenburg, Bremen and Holstein very often used these feuds to gradually expand their territory.

	action_a = {
		name = "ACTIONNAME338229A" #Fight the prince and seize his lands
		command = { type = revolt which = 337 } #Friesen
		command = { type = population which = 337 value = 500 } #Friesen
		command = { type = relation which = FRI value = -20 }
	}
	action_b = {
		name = "ACTIONNAME338229B" #Leave him alone
		command = { type = relation which = FRI value = 20 }
		command = { }
	}
}
#(1419-1517) Holland
event = {
	id = 338417
	trigger = {
		control = { province = 339 data = -1 }
		stability = 1
		atwar = no
		NOT = { year = 1517 }
	}
	random = yes
	province = 339 #Holland
	name = "EVENTNAME338229" #Conflict with a Frisian prince
	desc = "EVENTHIST338229"
	#-#Large parts of the German North Sea coast were controlled by Frisian princes who were usually still heathens. Although those Frisian lords formed a loose alliance, there was permanent conflict among them and with the neighbouring German princes. Historically, the mighty German imperial princes in Oldenburg, Bremen and Holstein very often used these feuds to gradually expand their territory.

	action_a = {
		name = "ACTIONNAME338229A" #Fight the prince and seize his lands
		command = { type = revolt which = 339 } #Holland
		command = { type = population which = 339 value = 500 } #Holland
		command = { type = relation which = FRI value = -20 }
	}
	action_b = {
		name = "ACTIONNAME338229B" #Leave him alone
		command = { type = relation which = FRI value = 20 }
		command = { }
	}
}
#-----------------------------------------------------------------------------------------------

#-----------------------------------------------------------------------------------------------
#(1419-1500) Events for ceding back Moorish land to Castile if taken by POR/ARG/CAT
#EEP Garbon, modified by Norrefeldt, Spain added by Truchses
event = {
	id = 338015
	trigger = {
		OR = {
			exists = CAS
			exists = SPA
		}
		OR = { #should trigger for POR, ARG and CAT, when not at war with Castile
			AND = {
				core = { province = 441 data = -1 } #Tago
				NOT = { war = { country = POR country = CAS } }
				NOT = { war = { country = POR country = SPA } }
			}
			AND = {
				core = { province = 429 data = -1 } #Catalonia
				NOT = { war = { country = ARG country = CAS } }
				NOT = { war = { country = CAT country = CAS } }
				NOT = { war = { country = ARG country = SPA } }
				NOT = { war = { country = CAT country = SPA } }
			}
		}
		NOT = {
			event = 176012 #Proclamation of al-Andalus, to exclude Granada
			owned = { province = 439 data = -1 } #Estramadura
			owned = { province = 440 data = -1 } #Toledo
			owned = { province = 443 data = -1 } #Andalusia
			owned = { province = 433 data = -1 } #Galicia
		}
	}
	random = no
	province = 444 #Granada
	name = "EVENTNAME338015" #Castile claim Moorish land
	desc = "EVENTHIST338015"
	#-#By the 13th century, it had become apparent which part of the Reconquista was to be fulfilled by which country. In 1179, the treaty of Cazorla between Aragon and Castile defined the north of Murcia as the permissible limit of Aragonese reconquest. With this treaty Murcia, still in Muslim hands for another 70 years, was reserved for Castile. This treaty was renewed at the treaty of Almizra in 1244, by James I of Aragon, who had finished the reconquest of Valencia and Baleares, and Fernando III of Castile, who had recently conquered Cordoba and was about to conquer Seville, Murcia and Jaen. By 1250, Portugal, and Aragon in the south, only had borders with Castile. Granada therefore belonged to Castile, and this was accepted as a fact by both Aragon and Portugal. To capture any land held by the Nasrids and to keep it, would surely start a conflict with Castile.

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

	action_a = {
		name = "ACTIONNAME338015A" #We shall handover Granada
		command = { type = cedeprovince which = CAS value = 444 } #Granada
		command = { type = cedeprovince which = SPA value = 444 } #Granada
		command = { type = badboy value = -2 }
		command = { type = relation which = CAS value = 50 }
		command = { type = relation which = SPA value = 50 }
		command = { type = treasury value = 75 } #plunder
	}
	action_b = {
		name = "ACTIONNAME338015B" #We will not respect the agreement
		command = { type = badboy value = 2 }
		command = { type = DIP which = -2 value = 24 }
		command = { type = relation which = CAS value = -75 }
		command = { type = relation which = SPA value = -75 }
		command = { type = relation which = NAV value = -35 }
		command = { type = relation which = ARG value = -35 }
		command = { type = relation which = CAT value = -35 }
	}
}
event = {
	id = 338014
	trigger = {
		OR = {
			exists = CAS
			exists = SPA
		}
		OR = { #should trigger for POR, ARG and CAT, when not at war with Castile/Spain
			AND = {
				core = { province = 441 data = -1 } #Tago
				NOT = { war = { country = POR country = CAS } }
				NOT = { war = { country = POR country = SPA } }
			}
			AND = {
				core = { province = 429 data = -1 } #Catalonia
				NOT = { war = { country = ARG country = CAS } }
				NOT = { war = { country = CAT country = CAS } }
				NOT = { war = { country = ARG country = SPA } }
				NOT = { war = { country = CAT country = SPA } }
			}
		}
		NOT = {
			event = 176012 #Proclamation of al-Andalus, to exclude Granada
			owned = { province = 439 data = -1 } #Estramadura
			owned = { province = 440 data = -1 } #Toledo
			owned = { province = 443 data = -1 } #Andalusia
			owned = { province = 433 data = -1 } #Galicia
		}
	}
	random = no
	province = 445 #Gibraltar
	name = "EVENTNAME338014" #Castile claim Moorish land
	desc = "EVENTHIST338014"
	#-#By the 13th century, it had become apparent which part of the Reconquista was to be fulfilled by which country. In 1179, the treaty of Cazorla between Aragon and Castile defined the north of Murcia as the permissible limit of Aragonese reconquest. With this treaty Murcia, still in Muslim hands for another 70 years, was reserved for Castile. This treaty was renewed at the treaty of Almizra in 1244, by James I of Aragon, who had finished the reconquest of Valencia and Baleares, and Fernando III of Castile, who had recently conquered Cordoba and was about to conquer Seville, Murcia and Jaen. By 1250, Portugal, and Aragon in the south, only had borders with Castile. Granada therefore belonged to Castile, and this was accepted as a fact by both Aragon and Portugal. To capture any land held by the Nasrids and to keep it, would surely start a conflict with Castile.

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

	action_a = {
		name = "ACTIONNAME338014A" #We shall handover Gibraltar
		command = { type = cedeprovince which = CAS value = 445 } #Gibraltar
		command = { type = cedeprovince which = SPA value = 445 } #Gibraltar
		command = { type = badboy value = -2 }
		command = { type = relation which = CAS value = 40 }
		command = { type = relation which = SPA value = 40 }
		command = { type = treasury value = 50 } #plunder
	}
	action_b = {
		name = "ACTIONNAME338014B" #We will not respect the agreement
		command = { type = badboy value = 1 }
		command = { type = DIP which = -2 value = 24 }
		command = { type = relation which = CAS value = -65 }
		command = { type = relation which = SPA value = -65 }
		command = { type = relation which = NAV value = -25 }
		command = { type = relation which = ARG value = -25 }
		command = { type = relation which = CAT value = -25 }
		}
}
#-----------------------------------------------------------------------------------------------

#-----------------------------------------------------------------------------------------------
#French fiefdoms

#(1419-1452) Maine
event = {
	id = 338432
	trigger = {
		OR = {
			AND = {
				OR = {
					owned = { province = 412 data = FRA }
					owned = { province = 412 data = DAU }
				}
				year = 1451
			}
			NOT = {
				owned = { province = 412 data = FRA }
				owned = { province = 412 data = DAU }
			}
		}
	}
	random = no
	province = 412 #Maine
	name = "EVENTNAME338432" #Full ownership of Maine
	desc = "EVENTHIST338432"
	#-#This province is now firmly in our hands.

	date = { day = 1 month = january year = 1419 }
	offset = 90
	deathdate = { day = 29 month = december year = 1452 }

	action_a = {
		name = "GOOD_NEWS"
		command = { type = provincemanpower which = 412 value = 4 }
		command = { type = provincetax which = 412 value = 6 }
	}
}
#(1419-1500) Orléanais
event = {
	id = 338433
	trigger = {
		OR = {
			AND = {
				OR = {
					owned = { province = 411 data = FRA }
					owned = { province = 411 data = DAU }
				}
				year = 1499
			}
			NOT = {
				owned = { province = 411 data = FRA }
				owned = { province = 411 data = DAU }
			}
		}
	}
	random = no
	province = 411 #Orléanais
	name = "EVENTNAME338433" #Full ownership of Orléanais
	desc = "EVENTHIST338433"
	#-#This province is now firmly in our hands. Historically, with the unexpected death of Charles VIII, the direct senior line of the Valois lineage came to an end. The line of succession was traced back to Charles VI's younger brother, Louis I, Duke of Orleans, and through his direct heir Charles I, father of Louis II, of Orleans. With Louis II's ascension, the House of Orleans now ruled the French Kingdom. Louis' ascension brought the great Duchy of Orleans to the Crown of France as a Royal demesne.

	date = { day = 1 month = january year = 1419 }
	offset = 90
	deathdate = { day = 29 month = december year = 1500 }

	action_a = {
		name = "GOOD_NEWS"
		command = { type = provincemanpower which = 411 value = 4 }
		command = { type = provincetax which = 411 value = 7 }
	}
}
#(1419-1529) Auvergne
event = {
	id = 338434
	trigger = {
		OR = {
			AND = {
				OR = {
					owned = { province = 420 data = FRA }
					owned = { province = 420 data = DAU }
				}
				year = 1528
			}
			NOT = {
				owned = { province = 420 data = FRA }
				owned = { province = 420 data = DAU }
			}
		}
	}
	random = no
	province = 420 #Auvergne
	name = "EVENTNAME338434" #Full ownership of Auvergne
	desc = "EVENTHIST338434"
	#-#This province is now firmly in our hands. Historically, Duke Charles III died heirless in 1527, and his wife Suzanne having passed away years before. Charles's vast estates were resumed to the Crown of France.

	date = { day = 1 month = january year = 1419 }
	offset = 90
	deathdate = { day = 29 month = december year = 1529 }

	action_a = {
		name = "GOOD_NEWS"
		command = { type = provincemanpower which = 420 value = 4 }
		command = { type = provincetax which = 420 value = 2 }
	}
}
#(1419-1529) Cévennes
event = {
	id = 338435
	trigger = {
		OR = {
			AND = {
				OR = {
					owned = { province = 421 data = FRA }
					owned = { province = 421 data = DAU }
				}
				year = 1528
			}
			NOT = {
				owned = { province = 421 data = FRA }
				owned = { province = 421 data = DAU }
			}
		}
	}
	random = no
	province = 421 #Cévennes
	name = "EVENTNAME338435" #Full ownership of Cévennes
	desc = "EVENTHIST338434"
	#-#This province is now firmly in our hands. Historically, Duke Charles III died heirless in 1527, and his wife Suzanne having passed away years before. Charles's vast estates were resumed to the Crown of France.

	date = { day = 1 month = january year = 1419 }
	offset = 90
	deathdate = { day = 29 month = december year = 1529 }

	action_a = {
		name = "GOOD_NEWS"
		command = { type = provincemanpower which = 421 value = 4 }
		command = { type = provincetax which = 421 value = 2 }
	}
}
#-----------------------------------------------------------------------------------------------

#-----------------------------------------------------------------------------------------------
#Rajput cultural minorities uprising

#(1419-1820) Rajput cultural uprising
event = {
	id = 338100
	trigger = {
		NOT = { flag = [rajput_favorable] }
		exists = RAJ
	}
	random = no
	province = 543 #Delhi
	name = "EVENTNAME338100" #Rajput cultural uprising
	desc = "EVENTHIST338100"
	#-#The formation of the nation of Rajputana triggered a chain reaction in many Hindu-dominated areas of India that had Rajput minorities.

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

	action_a = {
		name = "ACTIONNAME338100A" #Rajput resistance
		command = { type = province_revoltrisk which = 543 value = 1 } #Delhi
	}
}
#(1419-1820) Rajput cultural uprising
event = {
	id = 338102
	trigger = {
		NOT = { flag = [rajput_favorable] }
		exists = RAJ
	}
	random = no
	province = 546 #Malwa
	name = "EVENTNAME338100" #Rajput cultural uprising
	desc = "EVENTHIST338100"
	#-#The formation of the nation of Rajputana triggered a chain reaction in many Hindu-dominated areas of India that had Rajput minorities.

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

	action_a = {
		name = "ACTIONNAME338100A" #Rajput resistance
		command = { type = province_revoltrisk which = 546 value = 1 } #Malwa
	}
}
#(1419-1820) Rajput cultural uprising
event = {
	id = 338104
	trigger = {
		NOT = { flag = [rajput_favorable] }
		exists = RAJ
	}
	random = no
	province = 1521 #Panjab
	name = "EVENTNAME338100" #Rajput cultural uprising
	desc = "EVENTHIST338100"
	#-#The formation of the nation of Rajputana triggered a chain reaction in many Hindu-dominated areas of India that had Rajput minorities.

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

	action_a = {
		name = "ACTIONNAME338100A" #Rajput resistance
		command = { type = province_revoltrisk which = 1521 value = 1 } #Panjab
	}
}
#(1419-1820) Rajput resistance wanes
event = {
	id = 338101
	trigger = {
		event = 338100
		NOT = { exists = RAJ }
	}
	random = no
	province = 543 #Delhi
	name = "EVENTNAME338101" #Rajput resistance wanes
	desc = "EVENTHIST338101"
	#-#With the defeat and absorbtion of the last Rajput province, Rajput cultural and religious fervor died down. Even so, some Rajput continued to resist the occupation of their homeland.

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

	action_a = {
		name = "ACTIONNAME338101A" #At last an end to this nuisance!
		command = { type = province_revoltrisk which = 543 value = -1 }
	}
}
#(1419-1820) Rajput resistance wanes
event = {
	id = 338103
	trigger = {
		event = 338102
		NOT = { exists = RAJ }
	}
	random = no
	province = 546 #Malwa
	name = "EVENTNAME338101" #Rajput resistance wanes
	desc = "EVENTHIST338101"
	#-#With the defeat and absorbtion of the last Rajput province, Rajput cultural and religious fervor died down. Even so, some Rajput continued to resist the occupation of their homeland.

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

	action_a = {
		name = "ACTIONNAME338101A" #At last an end to this nuisance!
		command = { type = province_revoltrisk which = 546 value = -1 } #Malwa
	}
}
#(1419-1820) Rajput resistance wanes
event = {
	id = 338105
	trigger = {
		event = 338104
		NOT = { exists = RAJ }
	}
	random = no
	province = 1521 #Panjab
	name = "EVENTNAME338101" #Rajput resistance wanes
	desc = "EVENTHIST338101"
	#-#With the defeat and absorbtion of the last Rajput province, Rajput cultural and religious fervor died down. Even so, some Rajput continued to resist the occupation of their homeland.

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

	action_a = {
		name = "ACTIONNAME338101A" #At last an end to this nuisance!
		command = { type = province_revoltrisk which = 1521 value = -1 } #Panjab
	}
}
#End of Rajput cultural minorities uprising
#-----------------------------------------------------------------------------------------------

#-----------------------------------------------------------------------------------------------
#(1419-1699) The European rule in Central America

#Tlaxcala
event = {
	id = 338266
	trigger = {
		OR = {
			religion = catholic
			religion = counterreform
		}
		NOT = { continent = America }
 	}
	province = 29 #Tlaxcala
	random = no
	name = "EVENTNAME338266" #The European Rule in Tlaxcala
	desc = "EVENTHIST338266"
	#-#As the Europeans extended their rule in the Americas, the native economies and societies faced dramatic upheaval. The new masters would reduce the natives to serfdom, if not outright slavery, compounding the misery wrought by waves of epidemic disease. While destroying the native economy was not in the long-term interest of the state, there was no way to prevent the new masters from doing as they would.

	date = { day = 1 month = April year = 1419 }
	offset = 1
	deathdate = { day = 29 month = december year = 1699 }

	action_a = {
		name = "DAMN"
		command = { type = losebuilding which = 29 value = bailiff } #Tlaxcala
		command = { type = losemanufactory which = 29 } #Tlaxcala
	}
}
#Jalisco
event = {
	id = 338267
	trigger = {
		OR = {
			religion = catholic
			religion = counterreform
		}
		NOT = { continent = America }
	}
	random = no
	province = 24 #Jalisco
	name = "EVENTNAME338267" #The European Rule in Jalisco
	desc = "EVENTHIST338266"
	#-#As the Europeans extended their rule in the Americas, the native economies and societies faced dramatic upheaval. The new masters would reduce the natives to serfdom, if not outright slavery, compounding the misery wrought by waves of epidemic disease. While destroying the native economy was not in the long-term interest of the state, there was no way to prevent the new masters from doing as they would.

	date = { day = 1 month = April year = 1419 }
	offset = 1
	deathdate = { day = 29 month = december year = 1699 }

	action_a = {
		name = "DAMN"
		command = { type = losebuilding which = 24 value = bailiff } #Jalisco
		command = { type = losemanufactory which = 24 } #Jalisco
	}
}
#Saltillo
event = {
	id = 338268
	trigger = {
		OR = {
			religion = catholic
			religion = counterreform
		}
		NOT = { continent = America }
	}
	random = no
	province = 25 #Saltillo
	name = "EVENTNAME338268" #The European Rule in Saltillo
	desc = "EVENTHIST338266"
	#-#As the Europeans extended their rule in the Americas, the native economies and societies faced dramatic upheaval. The new masters would reduce the natives to serfdom, if not outright slavery, compounding the misery wrought by waves of epidemic disease. While destroying the native economy was not in the long-term interest of the state, there was no way to prevent the new masters from doing as they would.

	date = { day = 1 month = April year = 1419 }
	offset = 1
	deathdate = { day = 29 month = december year = 1699 }

	action_a = {
		name = "DAMN"
		command = { type = losebuilding which = 25 value = bailiff } #Saltillo
		command = { type = losemanufactory which = 25 } #Saltillo
	}
}
#Michoacán
event = {
	id = 338269
	trigger = {
		OR = {
			religion = catholic
			religion = counterreform
		}
		NOT = { continent = America }
	}
	random = no
	province = 26 #Michoacán
	name = "EVENTNAME338269" #The European Rule in Michoacán
	desc = "EVENTHIST338266"
	#-#As the Europeans extended their rule in the Americas, the native economies and societies faced dramatic upheaval. The new masters would reduce the natives to serfdom, if not outright slavery, compounding the misery wrought by waves of epidemic disease. While destroying the native economy was not in the long-term interest of the state, there was no way to prevent the new masters from doing as they would.

	date = { day = 1 month = April year = 1419 }
	offset = 1
	deathdate = { day = 29 month = december year = 1699 }

	action_a = {
		name = "DAMN"
		command = { type = losebuilding which = 26 value = bailiff } #Michoacán
		command = { type = losemanufactory which = 26 } #Michoacán
	}
}
#Zacatecas
event = {
	id = 338270
	trigger = {
		OR = {
			religion = catholic
			religion = counterreform
		}
		NOT = { continent = America }
	}
	random = no
	province = 27 #Zacatecas
	name = "EVENTNAME338270" #The European Rule in Zacatecas
	desc = "EVENTHIST338266"
	#-#As the Europeans extended their rule in the Americas, the native economies and societies faced dramatic upheaval. The new masters would reduce the natives to serfdom, if not outright slavery, compounding the misery wrought by waves of epidemic disease. While destroying the native economy was not in the long-term interest of the state, there was no way to prevent the new masters from doing as they would.

	date = { day = 1 month = April year = 1419 }
	offset = 1
	deathdate = { day = 29 month = december year = 1699 }

	action_a = {
		name = "DAMN"
		command = { type = losebuilding which = 27 value = bailiff } #Zacatecas
		command = { type = losemanufactory which = 27 } #Zacatecas
	}
}
#Atlixco
event = {
	id = 338271
	trigger = {
		OR = {
			religion = catholic
			religion = counterreform
		}
		NOT = { continent = America }
	}
	random = no
	province = 30 #Atlixco
	name = "EVENTNAME338271" #The European Rule in Atlixco
	desc = "EVENTHIST338266"
	#-#As the Europeans extended their rule in the Americas, the native economies and societies faced dramatic upheaval. The new masters would reduce the natives to serfdom, if not outright slavery, compounding the misery wrought by waves of epidemic disease. While destroying the native economy was not in the long-term interest of the state, there was no way to prevent the new masters from doing as they would.

	date = { day = 1 month = April year = 1419 }
	offset = 1
	deathdate = { day = 29 month = december year = 1699 }

	action_a = {
		name = "DAMN"
		command = { type = losebuilding which = 30 value = bailiff } #Atlixco
		command = { type = losemanufactory which = 30 } #Atlixco
	}
}
#Tehuantepec
event = {
	id = 338272
	trigger = {
		OR = {
			religion = catholic
			religion = counterreform
		}
		NOT = { continent = America }
	}
	random = no
	province = 31 #Tehuantepec
	name = "EVENTNAME338272" #The European Rule in Tehuantepec
	desc = "EVENTHIST338266"
	#-#As the Europeans extended their rule in the Americas, the native economies and societies faced dramatic upheaval. The new masters would reduce the natives to serfdom, if not outright slavery, compounding the misery wrought by waves of epidemic disease. While destroying the native economy was not in the long-term interest of the state, there was no way to prevent the new masters from doing as they would.

	date = { day = 1 month = April year = 1419 }
	offset = 1
	deathdate = { day = 29 month = december year = 1699 }

	action_a = {
		name = "DAMN"
		command = { type = losebuilding which = 31 value = bailiff } #Tehuantepec
		command = { type = losemanufactory which = 31 } #Tehuantepec
	}
}
#End of The European rule in Central America
#-----------------------------------------------------------------------------------------------

#-----------------------------------------------------------------------------------------------
#(1419-1820) Mongolia Depopulation Events - YodaMaster improvment

event = {
	id = 338900
	trigger = {
		NOT = {
			owned = { province = 590 data = MGL } #Mongolia
			owned = { province = 590 data = BTH } #Buriat Horde
			owned = { province = 590 data = MCH } #Manchu
			owned = { province = 590 data = CHI } #China
		}
	}
	random = no
	province = 590 #Angara
	name = "EVENTNAME338900" #Effect of Occupation in Eastern Siberia
	desc = "EVENTHIST338900"
	#-#After Mongol control loss in Eastern Siberia, major demographic changes took place and many Mongols fled south.

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

	action_a = {
		name = "ACTIONNAME338900A" #Depopulation in Angara
		command = { type = population which = 590 value = -5000 } #Angara
		command = { type = provincetax which = 590 value = -1 } #Angara
	}
}
event = {
	id = 338901
	trigger = {
		NOT = {
			owned = { province = 593 data = MGL } #Mongolia
			owned = { province = 593 data = BTH } #Buriat Horde
			owned = { province = 593 data = MCH } #Manchu
			owned = { province = 593 data = CHI } #China
		}
	}
	random = no
	province = 593 #Tchuma
	name = "EVENTNAME338900" #Effect of Occupation in Eastern Siberia
	desc = "EVENTHIST338900"
	#-#After Mongol control loss in Eastern Siberia, major demographic changes took place and many Mongols fled south.

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

	action_a = {
		name = "ACTIONNAME338901A" #Depopulation in Tchuma
		command = { type = population which = 593 value = -5000 } #Tchuma
		command = { type = provincetax which = 593 value = -1 } #Tchuma
	}
}
event = {
	id = 338902
	trigger = {
		NOT = {
			owned = { province = 595 data = MGL } #Mongolia
			owned = { province = 595 data = BTH } #Buriat Horde
			owned = { province = 595 data = MCH } #Manchu
			owned = { province = 595 data = CHI } #China
		}
	}
	random = no
	province = 595 #Oka
	name = "EVENTNAME338900" #Effect of Occupation in Eastern Siberia
	desc = "EVENTHIST338900"
	#-#After Mongol control loss in Eastern Siberia, major demographic changes took place and many Mongols fled south.

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

	action_a = {
		name = "ACTIONNAME338902A" #Depopulation in Oka
		command = { type = population which = 595 value = -5000 } #Oka
		command = { type = provincetax which = 595 value = -1 } #Oka
	}
}
event = {
	id = 338903
	trigger = {
		NOT = {
			owned = { province = 597 data = MGL } #Mongolia
			owned = { province = 597 data = BTH } #Buriat Horde
			owned = { province = 597 data = MCH } #Manchu
			owned = { province = 597 data = CHI } #China
		}
	}
	random = no
	province = 597 #Saian
	name = "EVENTNAME338900" #Effect of Occupation in Eastern Siberia
	desc = "EVENTHIST338900"
	#-#After Mongol control loss in Eastern Siberia, major demographic changes took place and many Mongols fled south.

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

	action_a = {
		name = "ACTIONNAME338903A" #Depopulation in Saian
		command = { type = population which = 597 value = -5000 } #Saian
		command = { type = provincetax which = 597 value = -1 } #Saian
	}
}
event = {
	id = 338904
	trigger = {
		NOT = {
			owned = { province = 598 data = MGL } #Mongolia
			owned = { province = 598 data = BTH } #Buriat Horde
			owned = { province = 598 data = MCH } #Manchu
			owned = { province = 598 data = CHI } #China
		}
	}
	random = no
	province = 598 #Zima
	name = "EVENTNAME338900" #Effect of Occupation in Eastern Siberia
	desc = "EVENTHIST338900"
	#-#After Mongol control loss in Eastern Siberia, major demographic changes took place and many Mongols fled south.

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

	action_a = {
		name = "ACTIONNAME338904A" #Depopulation in Zima
		command = { type = population which = 598 value = -5000 } #Zima
		command = { type = provincetax which = 598 value = -1 } #Zima
	}
}
event = {
	id = 338905
	trigger = {
		NOT = {
			owned = { province = 602 data = MGL } #Mongolia
			owned = { province = 602 data = BTH } #Buriat Horde
			owned = { province = 602 data = MCH } #Manchu
			owned = { province = 602 data = CHI } #China
		}
	}
	random = no
	province = 602 #Selenga
	name = "EVENTNAME338900" #Effect of Occupation in Eastern Siberia
	desc = "EVENTHIST338900"
	#-#After Mongol control loss in Eastern Siberia, major demographic changes took place and many Mongols fled south.

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

	action_a = {
		name = "ACTIONNAME338905A" #Depopulation in Selenga
		command = { type = population which = 602 value = -5000 } #Selenga
		command = { type = provincetax which = 602 value = -1 } #Selenga
	}
}
event = {
	id = 338906
	trigger = {
		NOT = {
			owned = { province = 603 data = MGL } #Mongolia
			owned = { province = 603 data = BTH } #Buriat Horde
			owned = { province = 603 data = MCH } #Manchu
			owned = { province = 603 data = CHI } #China
		}
	}
	random = no
	province = 603 #Ulan Ude
	name = "EVENTNAME338900" #Effect of Occupation in Eastern Siberia
	desc = "EVENTHIST338900"
	#-#After Mongol control loss in Eastern Siberia, major demographic changes took place and many Mongols fled south.

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

	action_a = {
		name = "ACTIONNAME338906A" #Depopulation in Ulan Ude
		command = { type = population which = 603 value = -5000 } #Ulan Ude
		command = { type = provincetax which = 603 value = -1 } #Ulan Ude
	}
}
event = {
	id = 338907
	trigger = {
		NOT = {
			owned = { province = 604 data = MGL } #Mongolia
			owned = { province = 604 data = BTH } #Buriat Horde
			owned = { province = 604 data = MCH } #Manchu
			owned = { province = 604 data = CHI } #China
		}
	}
	random = no
	province = 604 #Buriat
	name = "EVENTNAME338900" #Effect of Occupation in Eastern Siberia
	desc = "EVENTHIST338900"
	#-#After Mongol control loss in Eastern Siberia, major demographic changes took place and many Mongols fled south.

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

	action_a = {
		name = "ACTIONNAME338907A" #Depopulation in Buriat
		command = { type = population which = 604 value = -5000 } #Buriat
		command = { type = provincetax which = 604 value = -1 } #Buriat
	}
}
event = {
	id = 338908
	trigger = {
		NOT = {
			owned = { province = 605 data = MGL } #Mongolia
			owned = { province = 605 data = BTH } #Buriat Horde
			owned = { province = 605 data = MCH } #Manchu
			owned = { province = 605 data = CHI } #China
		}
	}
	random = no
	province = 605 #Tchita
	name = "EVENTNAME338900" #Effect of Occupation in Eastern Siberia
	desc = "EVENTHIST338900"
	#-#After Mongol control loss in Eastern Siberia, major demographic changes took place and many Mongols fled south.

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

	action_a = {
		name = "ACTIONNAME338908A" #Depopulation in Tchita
		command = { type = population which = 605 value = -5000 } #Tchita
		command = { type = provincetax which = 605 value = -1 } #Tchita
	}
}
event = {
	trigger = {
		NOT = {
			owned = { province = 606 data = MGL } #Mongolia
			owned = { province = 606 data = BTH } #Buriat Horde
			owned = { province = 606 data = MCH } #Manchu
			owned = { province = 606 data = CHI } #China
		}
	}
	id = 338909
	random = no
	province = 606 #Kalan
	name = "EVENTNAME338900" #Effect of Occupation in Eastern Siberia
	desc = "EVENTHIST338900"
	#-#After Mongol control loss in Eastern Siberia, major demographic changes took place and many Mongols fled south.

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

	action_a = {
		name = "ACTIONNAME338909A" #Depopulation in Kalan
		command = { type = population which = 606 value = -5000 } #Kalakan
		command = { type = provincetax which = 606 value = -1 } #Kalakan
	}
}
event = {
	id = 338910
	trigger = {
		NOT = {
			owned = { province = 607 data = MGL } #Mongolia
			owned = { province = 607 data = BTH } #Buriat Horde
			owned = { province = 607 data = MCH } #Manchu
			owned = { province = 607 data = CHI } #China
		}
	}
	random = no
	province = 607 #Sretensk
	name = "EVENTNAME338900" #Effect of Occupation in Eastern Siberia
	desc = "EVENTHIST338900"
	#-#After Mongol control loss in Eastern Siberia, major demographic changes took place and many Mongols fled south.

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

	action_a = {
		name = "ACTIONNAME338910A" #Depopulation in Sretensk
		command = { type = population which = 607 value = -5000 } #Sretensk
		command = { type = provincetax which = 607 value = -1 } #Sretensk
	}
}
event = {
	id = 338911
	trigger = {
		NOT = {
			owned = { province = 608 data = MGL } #Mongolia
			owned = { province = 608 data = BTH } #Buriat Horde
			owned = { province = 608 data = MCH } #Manchu
			owned = { province = 608 data = CHI } #China
		}
	}
	random = no
	province = 608 #Kalar
	name = "EVENTNAME338900" #Effect of Occupation in Eastern Siberia
	desc = "EVENTHIST338900"
	#-#After Mongol control loss in Eastern Siberia, major demographic changes took place and many Mongols fled south.

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

	action_a = {
		name = "ACTIONNAME338911A" #Depopulation in Kalar
		command = { type = population which = 608 value = -5000 } #Kalar
		command = { type = provincetax which = 608 value = -1 } #Kalar
	}
}
#End of Mongolia Depopulation Events
#-----------------------------------------------------------------------------------------------

#-----------------------------------------------------------------------------------------------
#(1419-1520) Petty Kingdoms of the Barbary Coast - Random
event = {
	id = 338200
	trigger = {
		NOT = {
			OR = {
				flag = [tlemcen]
				core = { province = 735 data = -1 } #Atlas
			}
			year = 1520
		}
	}
	random = yes
	province = 737
	name = "EVENTNAME338200" #Petty Kingdoms of the Barbary Coast
	desc = "EVENTHIST338200"
	#-#During the 15th century, between the domains of Morocco and Tunisia, the Barbary coast was ruled by several petty Kingdoms. Most noteworthy of these Kingdoms, where the Zayyanids of Tlemcen whose power had begun to wane during the 14th century. Fiercely independent,it is unlikely that these petty Kingdoms would allowed themselves to be ruled by a foreign master.

	action_a = {
		name = "ACTIONNAME338200A" #Woe to he who tries to tame the Barbary!
		command = { type = revolt which = 737 } #Al Djazair
		command = { type = revolt which = 737 } #Al Djazair
		command = { type = stability value = -1 }
	}
}
event = {
	id = 338201
	trigger = {
		NOT = {
			OR = {
				flag = [tlemcen]
				core = { province = 735 data = -1 } #Atlas
			}
			year = 1520
		}
	}
	random = yes
	province = 736
	name = "EVENTNAME338200" #Petty Kingdoms of the Barbary Coast
	desc = "EVENTHIST338200"
	#-#During the 15th century, between the domains of Morocco and Tunisia, the Barbary coast was ruled by several petty Kingdoms. Most noteworthy of these Kingdoms, where the Zayyanids of Tlemcen whose power had begun to wane during the 14th century. Fiercely independent,it is unlikely that these petty Kingdoms would allowed themselves to be ruled by a foreign master.

	action_a = {
		name = "ACTIONNAME338201A" #The Barbary is not ours!
		command = { type = revolt which = 736 } #Aures
		command = { type = revolt which = 736 } #Aures
		command = { type = stability value = -1 }
	}
}
event = {
	id = 338202
	trigger = {
		NOT = {
			OR = {
				flag = [tlemcen]
				core = { province = 735 data = -1 } #Atlas
			}
			year = 1520
		}
	}
	random = yes
	province = 734
	name = "EVENTNAME338200" #Petty Kingdoms of the Barbary Coast
	desc = "EVENTHIST338200"
	#-#During the 15th century, between the domains of Morocco and Tunisia, the Barbary coast was ruled by several petty Kingdoms. Most noteworthy of these Kingdoms, where the Zayyanids of Tlemcen whose power had begun to wane during the 14th century. Fiercely independent,it is unlikely that these petty Kingdoms would allowed themselves to be ruled by a foreign master.

	action_a = {
		name = "ACTIONNAME338202A" #Curse their wretched souls!
		command = { type = revolt which = 734 } #Orania
		command = { type = revolt which = 734 } #Orania
		command = { type = stability value = -1 }
	}
}
event = {
	id = 338203
	trigger = {
		NOT = {
			OR = {
				flag = [tlemcen]
				core = { province = 735 data = -1 } #Atlas
			}
			year = 1520
		}
	}
	random = yes
	province = 735
	name = "EVENTNAME338200" #Petty Kingdoms of the Barbary Coast
	desc = "EVENTHIST338200"
	#-#During the 15th century, between the domains of Morocco and Tunisia, the Barbary coast was ruled by several petty Kingdoms. Most noteworthy of these Kingdoms, where the Zayyanids of Tlemcen whose power had begun to wane during the 14th century. Fiercely independent,it is unlikely that these petty Kingdoms would allowed themselves to be ruled by a foreign master.

	action_a = {
		name = "ACTIONNAME338203A" #The people of these lands are insane!
		command = { type = revolt which = 735 } #Atlas
		command = { type = revolt which = 735 } #Atlas
		command = { type = revolt which = 735 } #Atlas
		command = { type = revolt which = 735 } #Atlas
		command = { type = stability value = -1 }
	}
}
event = {
	id = 338204
	trigger = {
		year = 1488
		NOT = {
			OR = {
				flag = [tlemcen]
				core = { province = 735 data = -1 } #Atlas
			}
			year = 1520
		}
	}
	random = yes
	province = 738
	name = "EVENTNAME338200" #Petty Kingdoms of the Barbary Coast
	desc = "EVENTHIST338200"
	#-#During the 15th century, between the domains of Morocco and Tunisia, the Barbary coast was ruled by several petty Kingdoms. Most noteworthy of these Kingdoms, where the Zayyanids of Tlemcen whose power had begun to wane during the 14th century. Fiercely independent,it is unlikely that these petty Kingdoms would allowed themselves to be ruled by a foreign master.

	action_a = {
		name = "ACTIONNAME338204A" #Woe to he who tries to tame the Barbary!
		command = { type = revolt which = 738 } #Kabylia
		command = { type = revolt which = 738 } #Kabylia
		command = { type = stability value = -1 }
	}
}
event = {
	id = 338205
	trigger = {
		control = { province = 737 data = REB }
		exists = TLE
		NOT = {
			OR = {
				flag = [tlemcen]
				core = { province = 735 data = -1 } #Atlas
			}
			year = 1510
		}
	}
	random = yes
	province = 737
	name = "EVENTNAME338205" #Lands of the Barbary
	desc = "EVENTHIST338205"
	#-#During the 15th century, between the domains of Morocco and Tunisia, the Barbary coast was ruled by several petty Kingdoms. Most noteworthy of these Kingdoms, where the Zayyanids of Tlemcen whose power had begun to wane during the 14th century. Fiercely independent,it is unlikely that these petty Kingdoms would allowed themselves to be ruled by a foreign master.

	action_a = {
		name = "ACTIONNAME338205A" #And so our power diminishes
		command = { type = cedeprovince which = TLE value = 737 } #Al Djazair
		command = { type = vp value = -1 }
	}
	action_b = {
		name = "ACTIONNAME338205B" #We won't give up that easily
		command = { type = stability value = -1 }
		command = { type = revolt which = 737 } #Al Djazair
		command = { type = revolt which = 737 } #Al Djazair
	}
}
event = {
	id = 338206
	trigger = {
		control = { province = 736 data = REB }
		exists = TLE
		NOT = {
			OR = {
				flag = [tlemcen]
				core = { province = 735 data = -1 } #Atlas
			}
			year = 1510
		}
	}
	random = yes
	province = 736
	name = "EVENTNAME338205" #Lands of the Barbary
	desc = "EVENTHIST338205"
	#-#During the 15th century, between the domains of Morocco and Tunisia, the Barbary coast was ruled by several petty Kingdoms. Most noteworthy of these Kingdoms, where the Zayyanids of Tlemcen whose power had begun to wane during the 14th century. Fiercely independent,it is unlikely that these petty Kingdoms would allowed themselves to be ruled by a foreign master.

	action_a = {
		name = "ACTIONNAME338205A" #And so our power diminishes
		command = { type = cedeprovince which = TLE value = 736 } #Aures
		command = { type = vp value = -1 }
	}
	action_b = {
		name = "ACTIONNAME338205B" #We won't give up that easily
		command = { type = stability value = -1 }
		command = { type = revolt which = 736 } #Aures
		command = { type = revolt which = 736 } #Aures
	}
}
event = {
	id = 338207
	trigger = {
		control = { province = 734 data = REB }
		exists = TLE
		NOT = {
			OR = {
				flag = [tlemcen]
				core = { province = 735 data = -1 } #Atlas
			}
			year = 1510
		}
	}
	random = yes
	province = 734
	name = "EVENTNAME338205" #Lands of the Barbary
	desc = "EVENTHIST338205"
	#-#During the 15th century, between the domains of Morocco and Tunisia, the Barbary coast was ruled by several petty Kingdoms. Most noteworthy of these Kingdoms, where the Zayyanids of Tlemcen whose power had begun to wane during the 14th century. Fiercely independent,it is unlikely that these petty Kingdoms would allowed themselves to be ruled by a foreign master.

	action_a = {
		name = "ACTIONNAME338205A" #And so our power diminishes
		command = { type = cedeprovince which = TLE value = 734 } #Orania
		command = { type = vp value = -1 }
	}
	action_b = {
		name = "ACTIONNAME338205B" #We won't give up that easily
		command = { type = stability value = -1 }
		command = { type = revolt which = 734 } #Orania
		command = { type = revolt which = 734 } #Orania
	}
}
event = {
	id = 338208
	trigger = {
		control = { province = 738 data = REB }
		exists = TLE
		NOT = {
			OR = {
				flag = [tlemcen]
				core = { province = 735 data = -1 } #Atlas
			}
			year = 1510
		}
	}
	random = yes
	province = 738
	name = "EVENTNAME338205" #Lands of the Barbary
	desc = "EVENTHIST338205"
	#-#During the 15th century, between the domains of Morocco and Tunisia, the Barbary coast was ruled by several petty Kingdoms. Most noteworthy of these Kingdoms, where the Zayyanids of Tlemcen whose power had begun to wane during the 14th century. Fiercely independent,it is unlikely that these petty Kingdoms would allowed themselves to be ruled by a foreign master.

	action_a = {
		name = "ACTIONNAME338205A" #And so our power diminishes
		command = { type = cedeprovince which = TLE value = 738 } #Kabylia
		command = { type = vp value = -1 }
	}
	action_b = {
		name = "ACTIONNAME338205B" #We won't give up that easily
		command = { type = stability value = -1 }
		command = { type = revolt which = 738 } #Kabylia
		command = { type = revolt which = 738 } #Kabylia
	}
}
event = {
	id = 338209
	trigger = {
		control = { province = 735 data = REB }
		NOT = { exists = TLE }
		NOT = {
			OR = {
				flag = [tlemcen]
				core = { province = 735 data = -1 } #Atlas
			}
			year = 1510
		}
	}
	random = yes
	province = 735
	name = "EVENTNAME338205" #Lands of the Barbary
	desc = "EVENTHIST338205"
	#-#During the 15th century, between the domains of Morocco and Tunisia, the Barbary coast was ruled by several petty Kingdoms. Most noteworthy of these Kingdoms, where the Zayyanids of Tlemcen whose power had begun to wane during the 14th century. Fiercely independent,it is unlikely that these petty Kingdoms would allowed themselves to be ruled by a foreign master.

	action_a = {
		name = "ACTIONNAME338205A" #And so our power diminishes
		command = { type = independence which = TLE }
		command = { type = vp value = -1 }
	}
	action_b = {
		name = "ACTIONNAME338205B" #We won't give up that easily
		command = { type = stability value = -1 }
		command = { type = revolt which = 735 } #Atlas
		command = { type = revolt which = 735 } #Atlas
		command = { type = revolt which = 735 } #Atlas
		command = { type = revolt which = 735 } #Atlas
	}
}
event = {
	id = 338263
	trigger = {
		control = { province = 735 data = REB }
		exists = TLE
		NOT = {
			OR = {
				flag = [tlemcen]
				core = { province = 735 data = -1 } #Atlas
			}
			year = 1510
		}
	}
	random = yes
	province = 735
	name = "EVENTNAME338205" #Lands of the Barbary
	desc = "EVENTHIST338205"
	#-#During the 15th century, between the domains of Morocco and Tunisia, the Barbary coast was ruled by several petty Kingdoms. Most noteworthy of these Kingdoms, where the Zayyanids of Tlemcen whose power had begun to wane during the 14th century. Fiercely independent,it is unlikely that these petty Kingdoms would allowed themselves to be ruled by a foreign master.

	action_a = {
		name = "ACTIONNAME338205A" #And so our power diminishes
		command = { type = cedeprovince which = TLE value = 735 } #Atlas
		command = { type = vp value = -1 }
	}
	action_b = {
		name = "ACTIONNAME338205B" #We won't give up that easily
		command = { type = stability value = -1 }
		command = { type = revolt which = 735 } #Atlas
		command = { type = revolt which = 735 } #Atlas
		command = { type = revolt which = 735 } #Atlas
		command = { type = revolt which = 735 } #Atlas
	}
}
#End of Petty Kingdoms of the Barbary Coast Events
#-----------------------------------------------------------------------------------------------

#(1419 -1820) Romanian dominance in Transylvania
#by ConjurerDragon
#should only happen to Moldavia or Wallachia
event = {
	id = 338291
	trigger = {
		OR = {
			AND = {
				core = { province = 323 data = WAL }
				owned = { province = 323 data = WAL }
				control = { province = 323 data = WAL }
			}
			AND = {
				core = { province = 323 data = MOL }
				owned = { province = 323 data = MOL }
				control = { province = 323 data = MOL }
			}
		}
		atwar = no
		NOT = { exists = HUN }
	}
	random = no
	province = 323 #Transylvania
	name = "EVENTNAME338291" #Romanian dominance in Transylvania
	desc = "EVENTHIST338291"
	#-#Wallachia is traditionally considered to have been founded in 1290 by Radu Negru ('Ralph the Black'), a Romanian vaivode (military governor) of Fagaras in southern Transylvania. Basarab I (1330–52) defeated the Hungarian King Charles I Robert in 1330 and secured Wallachian independence. However, it proved short-lived. In 1391 Prince Mircea the Old (1386–1418) was obliged to pay tribute to the Turks, and in 1417 he acknowledged Ottoman suzerainty. Wallachia was allowed to retain its own dynasty, territory and religion but was obliged to pay tribute to the Sultan and act in accordance with his wishes. However, some of its subsequent princes revived Wallachia's resistance - notably Vlad III the Impaler ('Dracula') and Michael the Brave (1593–1601), who briefly united Wallachia with Moldavia and Transylvania. The German and Hungarian inhabitants were not really enthusiastic seeing themselves become part of a Romanian principality and losing their dominant position.

	date = { day = 15 month = july year = 1419 }
	offset = 2000
	deathdate = { year = 1820 }

	action_a = {
		name = "GREAT"
		command = { type = provinceculture which = 323 value = romanian }
		command = { type = religiousrevolt which = -1 }
		command = { type = revolt which = 323 }
		command = { type = vp value = 5 }
	}
}

#-----------------------------------------------------------------------------------------------
#(1420-1650) AI Portuguese fortifications Events

event = {
	id = 338437
	trigger = {
		NOT = { provincereligion = { province = 823 data = pagan } }
		owned = { province = 823 data = POR }
		control = { province = 823 data = POR }
		ai = yes
	}
	random = no
	province = 823 #The Azores
	name = "AI_EVENT"
	desc = ""
	#-#Portugal fortify their vital trade.

	date = { day = 0 month = january year = 1420 }
	offset = 1800
	deathdate = { day = 0 month = january year = 1650 }

	action_a = {
		name = "OK"
		command = { type = fortress which = 823 value = -1 } #destroy any existing fort
		command = { type = fortress which = 823 value = 1 }
	}
}
event = {
	id = 338438
	trigger = {
		NOT = { provincereligion = { province = 800 data = pagan } }
		owned = { province = 800 data = POR }
		control = { province = 800 data = POR }
		ai = yes
	}
	random = no
	province = 800 #Senegal
	name = "AI_EVENT"
	desc = ""
	#-#Portugal fortify their vital trade.

	date = { day = 0 month = january year = 1420 }
	offset = 1800
	deathdate = { day = 0 month = january year = 1650 }

	action_a = {
		name = "OK"
		command = { type = fortress which = 800 value = -1 } #destroy any existing fort
		command = { type = fortress which = 800 value = 1 }
	}
}
event = {
	id = 338439
	trigger = {
		NOT = { provincereligion = { province = 818 data = pagan } }
		owned = { province = 818 data = POR }
		control = { province = 818 data = POR }
		ai = yes
	}
	random = no
	province = 818 #Cape Verde
	name = "AI_EVENT"
	desc = ""
	#-#Portugal fortify their vital trade.

	date = { day = 0 month = january year = 1420 }
	offset = 1800
	deathdate = { day = 0 month = january year = 1650 }

	action_a = {
		name = "OK"
		command = { type = fortress which = 818 value = -1 } #destroy any existing fort
		command = { type = fortress which = 818 value = 1 }
	}
}
event = {
	id = 338440
	trigger = {
		NOT = { provincereligion = { province = 816 data = pagan } }
		owned = { province = 816 data = POR }
		control = { province = 816 data = POR }
		ai = yes
	}
	random = no
	province = 816 #Fernando Po
	name = "AI_EVENT"
	desc = ""
	#-#Portugal fortify their vital trade.

	date = { day = 0 month = january year = 1420 }
	offset = 1800
	deathdate = { day = 0 month = january year = 1650 }

	action_a = {
		name = "OK"
		command = { type = fortress which = 816 value = -1 } #destroy any existing fort
		command = { type = fortress which = 816 value = 1 }
	}
}
event = {
	id = 338441
	trigger = {
		NOT = { provincereligion = { province = 205 data = pagan } }
		owned = { province = 205 data = POR }
		control = { province = 205 data = POR }
		ai = yes
	}
	random = no
	province = 205 #Pernambuc
	name = "AI_EVENT"
	desc = ""
	#-#Portugal fortify their vital trade.

	date = { day = 0 month = january year = 1420 }
	offset = 1800
	deathdate = { day = 0 month = january year = 1650 }

	action_a = {
		name = "OK"
		command = { type = fortress which = 205 value = -1 } #destroy any existing fort
		command = { type = fortress which = 205 value = 1 }
	}
}
event = {
	id = 338442
	trigger = {
		NOT = { provincereligion = { province = 210 data = pagan } }
		owned = { province = 210 data = POR }
		control = { province = 210 data = POR }
		ai = yes
	}
	random = no
	province = 210 #Itaimas
	name = "AI_EVENT"
	desc = ""
	#-#Portugal fortify their vital trade.

	date = { day = 0 month = january year = 1420 }
	offset = 1800
	deathdate = { day = 0 month = january year = 1650 }

	action_a = {
		name = "OK"
		command = { type = fortress which = 210 value = -1 } #destroy any existing fort
		command = { type = fortress which = 210 value = 1 }
	}
}
event = {
	id = 338443
	trigger = {
		NOT = { provincereligion = { province = 771 data = pagan } }
		owned = { province = 771 data = POR }
		control = { province = 771 data = POR }
		ai = yes
	}
	random = no
	province = 771 #Zambezia
	name = "AI_EVENT"
	desc = ""
	#-#Portugal fortify their vital trade.

	date = { day = 0 month = january year = 1420 }
	offset = 1800
	deathdate = { day = 0 month = january year = 1650 }

	action_a = {
		name = "OK"
		command = { type = fortress which = 771 value = -1 } #destroy any existing fort
		command = { type = fortress which = 771 value = 1 }
	}
}
event = {
	id = 338444
	trigger = {
		NOT = { provincereligion = { province = 772 data = pagan } }
		owned = { province = 772 data = POR }
		control = { province = 772 data = POR }
		ai = yes
	}
	random = no
	province = 772 #Inhambane
	name = "AI_EVENT"
	desc = ""
	#-#Portugal fortify their vital trade.

	date = { day = 0 month = january year = 1420 }
	offset = 1800
	deathdate = { day = 0 month = january year = 1650 }

	action_a = {
		name = "OK"
		command = { type = fortress which = 772 value = -1 } #destroy any existing fort
		command = { type = fortress which = 772 value = 1 }
	}
}
#End of AI Portuguese fortifications Events
#-----------------------------------------------------------------------------------------------

#-----------------------------------------------------------------------------------------------
#Ragusa Culture Events

#(1420-1810) Serbian Zeta
event = {
	id = 338446
	trigger = {
		OR = {
			owned = { province = 362 data = SER }
			owned = { province = 362 data = BOS }
		}
		NOT = {
			provincereligion = { province = 362 data = sunni }
			provincereligion = { province = 362 data = shia }
		}
	}
	random = no
	province = 362 #Ragusa
	name = "EVENTNAME338446" #Serbian Zeta
	desc = "EVENTHIST338446"
	#-#Zeta or Duklja (Dioclea) was a region of mixed Serb and Albanian population. Strong immigration of Serbs during 13th and 14th century made Serbs the dominant population in this region. United by Orthodox faith, many Albanians were serbized, especially the noble families which owed fealty to Srebian rulers and used Serbian language in their courts.

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

	action_a = {
		name = "ACTIONNAME338446A" #Serbs rule in Skadar
		command = { type = provinceculture which = 362 value = slavonic }
	}
}
#(1420-1820) Northern Albania
event = {
	id = 338447
	trigger = {
		OR = {
			AND = { 
					owned = { province = 362 data = ALB }
					control = { province = 362 data = ALB }
			}
			AND = {
					owned = { province = 362 data = TUR }
					control = { province = 362 data = TUR }
					NOT = { exists = ALB }
			}
		}
	}
	random = no
	province = 362 #Ragusa
	name = "EVENTNAME338447" #Northern Albania
	desc = "EVENTHIST338447"
	#-#Serbs were the dominant culture in Northern Albania, which was a part of Zeta or Dioclea, until Ottomans brought Islam into the region. Albanian nobles were quick to adopt the religion of victorious Empire and Albanian people followed after them. Once great friends of Serbs, Albanians joined the Turks in repressions of Orthodox population. Most Serbs fled the region to the north while those who remained were mostly Albanized.

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

	action_a = {
		name = "ACTIONNAME338447A" #Albanians rule in Skhoder
		command = { type = provinceculture which = 362 value = albanian }
		command = { type = sleepevent which = 338446 } #ProvinceSpec*362: Serbian Zeta
		command = { type = sleepevent which = 338448 } #ProvinceSpec*362: Albania Veneta
	}
}
#(1420-1810) Albania Veneta
event = {
	id = 338448
	trigger = {
		owned = { province = 362 data = VEN }
		NOT = {
			provincereligion = { province = 362 data = sunni }
			provincereligion = { province = 362 data = shia }
		}
		#only if liberated from SER or BOS
		event = 338446 #ProvinceSpec*362: Serbian Zeta
	}
	random = no
	province = 362 #Ragusa
	name = "EVENTNAME338448" #Albania Veneta
	desc = "EVENTHIST338448"
	#-#Venetian province of Albania Veneta contained the part of the Adriatic coast from the eastern borders of the Republic of Ragusa to and including the town of Durazzo in what is now northern Albania. These towns contained mixed but mostly romance-speaking population, result of Roman population that survived the settlement of Slavs but also settlers from Italy and Slavic and Albanian population romanized by their Venetian masters. Venice rarely had much control over the Slavic inland area they called Montenegro (Black Mountain), but whenever they did the center of power remained in the coastal towns and in the hands of this hybrid Dalmatian culture.

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

	action_a = {
		name = "ACTIONNAME338448A" #Scutari is ours again
		command = { type = provinceculture which = 362 value = dalmatian }
	}
}
#End of Ragusa Culture Events
#-----------------------------------------------------------------------------------------------

#(1421) Flood of St. Elisabeth
event = {
	id = 338020
	random = no
	province = 339 #Holland
	name = "EVENTNAME338020" #Flood of St. Elisabeth
	desc = "EVENTHIST338020"
	#-#In the night between 18th and 19th November 1421 - the day of St. Elisabeth - a disastrous flood struck Southern Holland. A storm from the north west made the sea overflow the dykes and banks and literally drown the land between Zevenbergen, Geertruidenberg and Dordrecht. No less than 72 villages were flooded, among which 45 were forever lost to the water. Castles and churches were overbalanced, cattle and men drowned. All in all approximately 100000 people perished in the flood. The Biesbosch, a large swamp area, is a result of a disaster; until the 16th century, the tops of churches, towers and city walls could be occasionally seen in its water.

	date = { day = 18 month = november year = 1421 }

	action_a = {
		name = "ACTIONNAME338020A" #What a tragedy
		command = { type = provincetax which = 339 value = -2 } #Holland
		command = { type = provincemanpower which = 339 value = -1 } #Holland
	}
}

#(1422-1442) Jan Van eyck - Flavor
#by Archeolooginspe - modified by YodaMaster
#should only happen to Burgundy or France
event = {
	id = 338079
	trigger = {
		owned = { province = 380 data = -1 }
		OR = {
			owned = { province = 380 data = BUR }
			owned = { province = 380 data = FRA }
		}
	}
	random = no
	province = 380 #Brabant
	name = "EVENTNAME338079" #Jan Van Eyck
	desc = "EVENTHIST338079"
	#-#Jan van Eyck was the greatest artist of the early Netherlands school. He held high positions throughout his career, including court painter and diplomat in Bruges. So outstanding was his skill as an oil painter that the invention of the medium was at one time attributed to him, with his brother Hubert, also a painter. Van Eyck exploited the qualities of oil as never before, building up layers of transparent glazes, thus giving him a surface on which to capture objects in the minutest detail and allowing for the preservation of his colours.

	date = { day = 1 month = january year = 1422 }
	offset = 7200
	deathdate = { day = 1 month = january year = 1442 }

	action_a = {
		name = "ACTIONNAME338079A" #Merveilleux!
		command = { type = infra value = 50 }
	}
}

#(1425-1450) Assimilation of the Reddy
event = {
	id = 338096
	trigger = {
		owned = { province = 565 data = -1 } #Yanam
	}
	random = no
	province = 565 #Yanam
	name = "EVENTNAME338096" #Assimilation of the Reddy
	desc = "EVENTHIST338096"
	#-#After the breakup of the Kakatiya empire several of its feudatory states remained independent against the pressure of Muslim invasions from the north and west and Hindu expansion from the south and east. The Reddy Kingdoms of Kondavidu and Rajahmundry defended themselves fiercely, but eventually both were conquered during the wars between Orissa and Vijayanagar. Once conquered, these lands proved relatively easy to govern.

	date = { day = 1 month = january year = 1425 }
	offset = 1000
	deathdate = { day = 1 month = january year = 1450 }

	action_a = {
		name = "ACTIONNAME338096A" #Their lands are ours
		command = { type = provincetax which = 565 value = 2 } #Yanam
		command = { type = provincemanpower which = 565 value = 1 } #Yanam
		command = { type = fortress which = 565 value = -1 } #Yanam
		command = { type = fortress which = 565 value = 1 } #only +1 if no fortress before #Yanam
		command = { type = sleepevent which = 249001 } #ORI: Bhanudeva's Expedition against the Reddy
		command = { type = sleepevent which = 328051 } #VIJ: The Reddy invade Orissa
	}
}

#(1430-1820) Aydin, Mentese, and Teke
event = {
	id = 338003
	trigger = {
		countrysize = 6
		NOT = { event = 301017 } #Ottoman version
	}
	random = no
	province = 478 #Smyrna
	name = "EVENTNAME338003" #Absorption of Aydin, Mentese and Teke
	desc = "EVENTHIST338003"
	#-#Since our nation has obtained hegemony in Asia Minor, the fragmented ghazi states are easy prey for us. Aydin, Mentese and Teke have just fallen to us.

	date = { day = 10 month = january year = 1430 }
	offset = 360
	deathdate = { year = 1820 }

	action_a = {
		name = "ACTIONNAME50013A" #Annex them! #Use the opportunity to grab some land
		command = { type = provincemanpower which = 478 value = 3 } #Smyrna
		command = { type = provincetax which = 478 value = 6 } #Smyrna
	}
}

#(1430-1820) Germiyan
event = {
	id = 338004
	trigger = {
	countrysize = 6
		NOT = { event = 301018 } #Ottoman version
	}
	random = no
	province = 1610 #Antalya
	name = "EVENTNAME338004" #Absorption of Germiyan
	desc = "EVENTHIST338004"
	#-#Having consolidated our power in Anatolia, we can annex the Anatolian ghazi states one by one. Germiyan is the next to fall.

	date = { day = 10 month = january year = 1430 }
	offset = 360
	deathdate = { year = 1820 }

	action_a = {
		name = "ACTIONNAME338004A" #Annex them!
		command = { type = provincetax which = 1610 value = 3 } #Antalya
		command = { type = provincemanpower which = 1610 value = 1 } #Antalya
	}
}

#(1435-1445) Islam in Bale
event = {
	id = 338489 #also triggered by ETH_165008
	trigger = {
		NOT = {
			provincereligion = { province = 1590 data = sunni } #Bale
		}
	}
	random = no
	province = 1590 #Bale
	name = "EVENTNAME338489" #Islam in Bale
	desc = "EVENTHIST338489"
	#-#Islam has been spreading in eastern Africa with the strengthening of the Sultanate of Adal. So many Kingdoms in southern Ethiopia have converted to Islam that it can now be considered mostly Muslim region.

	date = { day = 0 month = january year = 1435 }
	offset = 300
	deathdate = { day = 0 month = january year = 1445 }

	action_a = {
		name = "ACTIONNAME338489A" #It cannot be prevented
		command = { type = provincereligion which = 1590 value = sunni } #Bale
	}
}

#-----------------------------------------------------------------------------------------------
#Shi'as in Musha'sha' Events

#(1435-1500) Shi'as in Musha'sha'
#by Garbon
event = {
	id = 338492
	trigger = {
		NOT = { exists = MSH }
		NOT = { religion = shia }
	}
	random = no
	province = 532 #Awhaz
	name = "EVENTNAME338492" #Shi'as in Musha'sha'
	desc = "EVENTHIST338492"
	#-#The Musha'sha'ids were a Shi'a movement, who proclaimed themselves to be the Manifestation or Precursor to the Expected One. If any foreign empire tried to keep control of the region between the Persian Gulf and Zagros Mountains, they likely would have found the Musha'sha'ids to be a bigger headache than the land was worth.

	date = { day = 1 month = january year = 1435 }
	offset = 5
	deathdate = { day = 1 month = january year = 1500 }

	action_a = {
		name = "ACTIONNAME338492A" #We do not desire such a headache!
		command = { type = provincereligion which = 532 value = shia } #in case they weren't #Awhaz
		command = { type = independence which = MSH }
		command = { type = sleepevent which = 338493 } #532: Musha'sha'ids of Khuzistan
		command = { type = relation which = MSH value = -200 }
	}
	action_b = {
		name = "ACTIONNAME338492B" #What a headache
		command = { type = revolt which = 532 } #Awhaz
		command = { type = revolt which = 532 } #Awhaz
		command = { type = revolt which = 532 } #Awhaz
		command = { type = revolt which = 532 } #Awhaz
		command = { type = province_revoltrisk which = 532 value = 25 } #Awhaz
		command = { type = provincetax which = 532 value = -1 } #Awhaz
		command = { type = provincereligion which = 532 value = shia } #in case they weren't #Awhaz
	}
}
#(1435-1600) Musha'sha'ids of Khuzistan
#by Garbon
event = {
	id = 338493
	trigger = {
		event = 338492 #ProvinceSpec*532: Shi'as in Musha'sha'
		NOT = {
			exists = MSH
		}
		OR = {
			exists = PER
			religion = shia
		}
	}
	random = no
	province = 532 #Awhaz
	name = "EVENTNAME338493" #Musha'sha'ids of Khuzistan
	desc = "EVENTHIST338493"
	#-#With the rise of other Shi'a powers, the Mush'sha'ids no longer seemed particularly revolutionary.

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

	action_a = {
		name = "ACTIONNAME338493A" #Talk about stagnation
		command = { type = province_revoltrisk which = 532 value = -25 } #Awhaz
		command = { type = provincetax which = 532 value = 1 } #Awhaz
	}
}
#End of Shi'as in Musha'sha' Events
#-----------------------------------------------------------------------------------------------

#(1435-1445) Ausiàs March and the new poetry
#should only happen to Aragon or Catalonia
event = {
	id = 338080
	trigger = {
		owned = { province = 437 data = -1 }
		OR = {
			owned = { province = 437 data = ARG }
			owned = { province = 437 data = CAT }
		}
	}
	random = no
	province = 437 #Valencia
	name = "EVENTNAME338080" #Ausiàs March
	desc = "EVENTHIST338080"
	#-#During the 15th century the poetry in the old style of the provençal trobadours was still cultivated. But the new humanistic styles were gaining ground, thanks to the great italian influence. Ausiàs March was the first catalan poet to break radically with the ancient tradition, and he is considered one of the graetest european poets in the line of Petrarca and Chaucer.

	date = { day = 1 month = february year = 1435 }
	offset = 600
	deathdate = { day = 1 month = february year = 1445 }

	action_a = {
		name = "ACTIONNAME338080A" #Our culture has reached new heights!
		command = { type = infra value = 75 }
	}
}

#(1441) The treaty of Copenhagen
#by Pietercornelis
event = {
	id = 338407
	trigger = {
		exists = DAN
		cot = 307 #Sjaelland
	}
	random = no
	province = 339 #Holland
	name = "EVENTNAME338407" #The treaty of Copenhagen
	desc = "EVENTHIST338407"
	#-#The Treaty of Copenhagen (or the Peace of Copenhagen) was signed in 1441 between the Hanseatic League and Holland. The accord was developed after Christopher of Bavaria crushed a great peasant uprising in Northern Jutland. The treaty broke the attempted monopoly of Baltic trading routes by the Hanseatic League. Even though Hanseatic trade regulations did not change, the Dutch (with their larger trading vessels) increased their control on herring fisheries, the French salt trade, and the Baltic grain trade. In short, the Baltic Sea was open and influenced by Dutch traders. The Hanseatic merchants eventually became middlemen whereby they transported bulk goods (i.e. lumber, grain, fish) from the Baltic and exchanged them for textiles and other finished products. The treaty did not affect the control of Hanse trading outposts in London, Bruges, Danzig, and Bergen. Based on the terms of the agreement, Dutch towns promised to pay or return twenty-two lost Prussian and Livonian ships. Moreover, the Dutch would pay 5,000 guldens to the Danish King to maintain their trading privileges in Denmark, as well as pay the damages they made to Wendish towns.

	date = { day = 1 month = january year = 1441 }
	offset = 20
	deathdate = { day = 1 month = january year = 1442 }

	action_a = {
		name = "ACTIONNAME338407A" #Sign it
		command = { type = provincetax which = 339 value = 1 } #Holland
		command = { type = treasury value = -25 }
	}
	action_b = {
		name = "ACTIONNAME338407B" #Don't sign it
		command = { }
	}
}

#(1443) Earthquake in Breslau/Wroclaw
event = {
	id = 338242
	random = no
	province = 314 #Silesia
	name = "EVENTNAME338242" #Earthquake in Breslau
	desc = "EVENTHIST338242"
	#-#On 5th June 1443 Breslau was struck with earthquake with a strength which was estimated by historians bad and geologists as 6 on the Richter's scale. The epicenter was north of the city. The losses were quite significant.

	date = { day = 1 month = june year = 1443 }
	offset = 3
	deathdate = { day = 10 month = june year = 1443 }

	action_a = {
		name = "ACTIONNAME338242A" #How terrible
		command = { type = population which = 314 value = -500 }
		command = { type = provincetax which = 314 value = -1 }
	}
}

#(1448-1500) Assimilation of the Velama
event = {
	id = 338095
	trigger = {
		owned = { province = 563 data = -1 } #Bastar
		owned = { province = 564 data = -1 } #Palakimedi
	}
	random = no
	province = 564 #Palakimedi
	name = "EVENTNAME338095" #Assimilation of the Velama
	desc = "EVENTHIST338095"
	#-#After the breakup of the Kakatiya empire several of its feudatory states remained independent against the pressure of Muslim invasions from the north and west and Hindu expansion from the south and east. The Velama Kingdoms of Debarkonda and Rajahkonda were able to play off foreign powers against each other, but eventually Muslim invasion forced them to become client states. Even after this occured the Velama attempted to regain their independence without much success.

	date = { day = 1 month = january year = 1448 }
	offset = 1000
	deathdate = { day = 1 month = january year = 1500 }

	action_a = {
		name = "ACTIONNAME338095A" #Their lands are ours
		command = { type = provincetax which = 564 value = 2 } #Palakimedi
		command = { type = provincemanpower which = 564 value = 1 } #Palakimedi
		command = { type = sleepevent which = 410000 } #BMD: The Kingdoms of the Velama
	}
}

#(1450-1474) Development of Breslau
event = {
	id = 338243
	trigger = {
		atwar = no
		stability = 2
		NOT = { exists = HUS }
	}
	random = no
	province = 314 #Silesia
	name = "EVENTNAME338243" #Development of Breslau
	desc = "EVENTHIST338243"
	#-#Since XIV century Breslau was very important trading centre mainly due to its trade and cultural contacts with the most important trading centers in Europe and with Ruthenia and Constantinople. Hussites wars for a while stopped its development, but after they were finished the city quickly recovered and continued its development. The decline of the city as a trade centre started after the fall of Constantinople, when the interest in trading with the east decreased. Breslau until 1474 was also a member of the Hanseatic League.

	date = { day = 1 month = january year = 1450 }
	offset = 100
	deathdate = { day = 10 month = june year = 1474 }

	action_a = {
		name = "GREAT"
		command = { type = provincetax which = 314 value = 2 }
		command = { type = population which = 314 value = 1000 }
	}
}

#-----------------------------------------------------------------------------------------------
#(1450-1515) Raubritter - Knights-robbers

#Knights-robbers in Silesia
event = {
	id = 338097
	random = no
	province = 314 #Silesia
	name = "EVENTNAME338097" #Knights-robbers in Silesia
	desc = "EVENTHIST338097"
	#-#At the end of medieval ages knights-robbers (German - Raubritter) became a serious social problem in Silesia and Lusatia. They put knight ideas aside and using their military skills they decided to make fortunes on criminal actions such as robberies, thefts and murders. Since this profession was relatively safe and very lucrative, whole families were making money this way and the profession was inherited by sons from fathers. Relatively dense network of castles and strongholds in Sudety mountains and its foothills was a perfect base for robberies. Individual bands amounted from few to even several dozens of persons. As they were mostly robbing merchants on trade routs it severely influenced trade incomes and trade exchange. How do we deal with them Sir?

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

	action_a = {
		name = "ACTIONNAME338097A" #Let local officials deal with them
		command = { type = provincetax which = 314 value = -2 }
		command = { type = population which = 314 value = -500 }
		command = { type = provincetax which = 330 value = -1 } #Sudeten
		command = { type = population which = 330 value = -200 }
		command = { type = province_revoltrisk which = 314 value = 3 }
		command = { type = province_revoltrisk which = 330 value = 3 }
		command = { type = stability value = -1 }
		command = { type = sleepevent which = 338262 } #ProvinceSpec*314: Knights-robbers in Silesia defeated
	}
	action_b = {
		name = "ACTIONNAME338097B" #Aid local officials
		command = { type = treasury value = -50 }
		command = { type = provincetax which = 314 value = -1 }
		command = { type = population which = 314 value = -300 }
		command = { type = provincetax which = 330 value = -1 }
		command = { type = population which = 330 value = -100 }
		command = { type = province_revoltrisk which = 314 value = 1 }
		command = { type = province_revoltrisk which = 330 value = 1 }
		command = { type = sleepevent which = 338098 }
	}
}
event = {
	id = 338098
	trigger = {
		atwar = no
		event = 338097
	}
	random = no
	province = 314 #Silesia
	name = "EVENTNAME338098" #Knights-robbers in Silesia defeated
	desc = "EVENTHIST338098"
	#-#The knights-robbers, which were wreaking havoc in the trade routs in recent years are now defeated Sir! They are no longer a real threat to merchants and trade routs are much safer now and allow merchants to travel relatively safe. Our lands can now develop faster and people can become richer.

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

	action_a = {
		name = "ACTIONNAME338098A" #Knights-robbers in Silesia are defeated
		command = { type = provincetax which = 314 value = 2 }
		command = { type = province_revoltrisk which = 314 value = -3 }
		command = { type = provincetax which = 330 value = 1 }
		command = { type = province_revoltrisk which = 330 value = -3 }
	}
}
event = {
	id = 338262
	trigger = {
		atwar = no
		event = 338097
	}
	random = no
	province = 314 #Silesia
	name = "EVENTNAME338098" #Knights-robbers in Silesia defeated
	desc = "EVENTHIST338098"
	#-#The knights-robbers, which were wreaking havoc in the trade routs in recent years are now defeated Sir! They are no longer a real threat to merchants and trade routs are much safer now and allow merchants to travel relatively safe. Our lands can now develop faster and people can become richer.

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

	action_a = {
		name = "ACTIONNAME338098A" #Knights-robbers in Silesia are defeated
		command = { type = provincetax which = 314 value = 1 }
		command = { type = province_revoltrisk which = 314 value = -1 }
		command = { type = provincetax which = 330 value = 1 }
		command = { type = province_revoltrisk which = 330 value = -1 }
	}
}
#End of Raubrittern - Knights-robbers
#-----------------------------------------------------------------------------------------------

#(1450-1820) Johor converts to Islam
event = {
	id = 338256
	trigger = {
		NOT = { provincereligion = { province = 678 data = sunni } }
		year = 1450
	}
	random = yes
	province = 678 #Johor
	name = "EVENTNAME338256" #Johor converts to Islam
	desc = "EVENTHIST338256"
	#-#The people of Johor have adopted the Islamic faith.

	action_a = {
		name = "ACTIONNAME338032A" #Convert to Islam
		command = { type = provincereligion which = 678 value = sunni } #Johor
	}
	action_b = {
		name = "ACTIONNAME338032B" #Keep old belief
		command = { type = revolt which = 678 } #Johor
	}
}

#(1450-1820) Malacca converts to Islam
event = {
	id = 338257
	trigger = {
		NOT = { provincereligion = { province = 677 data = sunni } }
		year = 1450
	}
	random = yes
	province = 677 #Malacca
	name = "EVENTNAME338257" #Malacca converts to Islam
	desc = "EVENTHIST338257"
	#-#The people of Malacca have adopted the Islamic faith.

	action_a = {
		name = "ACTIONNAME338032A" #Convert to Islam
		command = { type = provincereligion which = 677 value = sunni } #Malacca
	}
	action_b = {
		name = "ACTIONNAME338032B" #Keep old belief
		command = { type = revolt which = 677 } #Malacca
	}
}

#(1450-1820) Perak converts to Islam
event = {
	id = 338258
	trigger = {
		NOT = { provincereligion = { province = 676 data = sunni } }
		OR = {
			year = 1500
			AND = {
				owned = { province = 676 data = MLC } #Perak
				year = 1450
			}
			AND = {
				year = 1450
				religion = sunni
			}
			AND = {
				year = 1450
				religion = eastern_sunni
			}
		}
	}
	random = yes
	province = 676 #Perak
	name = "EVENTNAME338258" #Perak converts to Islam
	desc = "EVENTHIST338258"
	#-#The people of Perak have adopted the Islamic faith.

	action_a = {
		name = "ACTIONNAME338032A" #Convert to Islam
		command = { type = provincereligion which = 676 value = sunni } #Perak
	}
	action_b = {
		name = "ACTIONNAME338032B" #Keep old belief
		command = { type = revolt which = 676 } #Perak
	}
}

#(1458) Tin mining in Altenberg
event = {
	id = 338226
	random = no
	province = 331 #Sachsen
	name = "EVENTNAME338226" #Tin mining in Altenberg
	desc = "EVENTHIST338226"
	#-#Around 1440 the largest tin deposits in Central Europe were discovered in the Saxon part of the Erz mountains. A mining village that later became the city of Altenberg was founded in 1451 and in 1458 the very profitable exploitation of the vast resources began. By the beginning of the 16th century, Altenberg's tin output had rosen to 4000 centners per annum.

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

	action_a = {
		name = "GREAT"
		command = { type = population which = 331 value = 1500 } #Sachsen
		command = { type = provincetax which = 331 value = 2 }
	}
}

#(1460-1500) Conquest of Johor
event = {
	id = 338259
	trigger = {
		owned = { province = 678 data = -1 } #Johor
	}
	random = no
	province = 678 #Johor
	name = "EVENTNAME338259" #Conquest of Johor
	desc = "EVENTHIST338259"
	#-#Despite encroachment by the newly founded state of Malacca, the Kingdom of Johor would be able to survive as a southern Siamese vassal for a large part of the 15th century. However, when Siamese support was withdrawn, Johor fell.

	date = { day = 1 month = january year = 1460 }
	offset = 1000
	deathdate = { day = 1 month = january year = 1500 }

	action_a = {
		name = "ACTIONNAME338259A" #Their lands are ours
		command = { type = provincetax which = 678 value = 2 } #Johor
		command = { type = provincemanpower which = 678 value = 2 } #Johor
	}
}

#(1462-1820) German dominance in Odenburg
#should only happen to Austria or Hungary
event = {
	id = 338451
	trigger = {
		OR = {
			AND = {
				event = 188111 #HUN: Peace with Austria
				year = 1462
			}
			AND = {
				NOT = { event = 188111 } #HUN: Peace with Austria
				year = 1470
				owned = { province = 351 data = HAB } #Austria
			}
		}
		OR = {
			owned = { province = 352 data = HAB } #Odenburg
			owned = { province = 352 data = HUN } #Odenburg
		}
	}
	random = no
	province = 352 #Odenburg
	name = "EVENTNAME338451" #German dominance in Odenburg
	desc = "EVENTHIST338451"
	#-#Although part of Hungary, Odenburg became a focus of German settlement under a largely Magyar ruling class. German population became dominant in the middle of the 15th century.

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

	action_a = {
		name = "OK"
		command = { type = provinceculture which = 352 value = german } #Odenburg
	}
}

#(1481) Earthquake in Rhodes
event = {
	id = 338017
	random = no
	province = 481 #Rhodes
	name = "EVENTNAME24011" #Earthquake in Rhodes
	desc = "EVENTHIST24011"
	#-#In 1481, Rhodes was struck by a devastating earthquake.

	date = { day = 15 month = march year = 1481 }

	action_a = {
		name = "ACTIONNAME24011A" #Thy Will Be Done
		command = { type = population which = 481 value = -1000 } #Rhodes
	}
}

#(1490) Joanot Martorell and the Tirant lo Blanc
#should only happen to Aragon, Catalonia or Spain
event = {
	id = 338081
	trigger = {
		owned = { province = 437 data = -1 }
		OR = {
			owned = { province = 437 data = ARG }
			owned = { province = 437 data = CAT }
			owned = { province = 437 data = SPA }
		}
	}
	random = no
	province = 437 #Valencia
	name = "EVENTNAME338081" #Tirant lo Blanc
	desc = "EVENTHIST338081"
	#-#In 1490 the first edition of the book 'Tirant lo Blanc' was published in València. The book had been written by Joanot Martorell and finished by his friend Martí Joan de Galba after his death. In it, the old chivalry ideals are reinterpreted in a more bourgeois manner, and the typical supernatural and magical elements of older chivalry adventure books are substituted by realism and a more humanistic scenario, and even by a certain degree of irony and autoparody. The 'Tirant lo Blanc' is one of the masterworks of catalan literature, and years later the spanish writer Cervantes (the author of the 'Don Quixote') qualified it as 'the best book in the world'.

	date = { day = 1 month = february year = 1490 }
	offset = 120
	deathdate = { day = 29 month = december year = 1490 }

	action_a = {
		name = "ACTIONNAME338081A" #A great book, indeed!
		command = { type = stability value = 1 }
		command = { type = infra value = 50 }
	}
}

#(1497-1505) Francisco Ramiro Lopez' fortifications
#by hildoceras - reworked by De-Villars
#should only happen to Aragon, Castile or Spain
event = {
	id = 338413
	trigger = {
		OR = {
			AND = {
				owned = { province = 426 data = CAS } #Roussillon
				control = { province = 426 data = CAS }
			}
			AND = {
				owned = { province = 426 data = ARG }
				control = { province = 426 data = ARG }
			}
			AND = {
				owned = { province = 426 data = SPA }
				control = { province = 426 data = SPA }
			}
		}
		atwar = no
	}
	random = no
	province = 426 #Roussillon
	name = "EVENTNAME338413" #Francisco Ramiro Lopez' fortifications
	desc = "EVENTHIST338413"
	#-#Francisco Ramiro Lopez was more an artilleryman than an architect. He has been noticed by the King Ferdinand of Aragon during the Reconquista, by his use of powder during sieges, as much for blowing mines as for cannons. In 1496, soon after the French loot of the village of Salses at the border of Roussillon and its old Middle Age castle, Ferdinand ordered him to build a modern fortress. He built it from 1497 to 1503 using innovative principles, inspired from Italy, in order to protect the fortress from the artillery and to optimize the fire of the cannons from the castle. This fort was considered as impregnable with his 15m thick walls at the base. It was supposed to have a 3,000 men garrison (that it never had) and till our days it surprises us by its size, its short shape, its surrounding ditches, half-moons and counterscarps. \n \nIn 1503, Francisco Ramiro also participated to the construction of the military port of Collioure, at the Pyrenees feet, inspiring himself from his work in Salses. The castle of Salses, taken by the French in 1639, taken back in 1640 and once again conquered in 1642 would be later hardly improved by Sébastien Vauban's works. The fort lost of its importance after 1659 when the border went to the Pyrenean range. \n \nIf Francisco Ramiro Lopez' work has been an important step in military architecture, he never had the intuition of the earth ramparts. On the contrary, he preferred the systematic use of stones and mortar and it is in Italy, at Civita Vecchia in 1508, that the first earth bastion was built. So, later, it would be mainly Italians architects that Carlos V would use to build his fortresses.

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

	action_a = {
		name = "ACTIONNAME338413A" #Let us reinforce Roussillon
		command = { type = fortress which = 426 value = 1 } #Roussillon
		command = { type = treasury value = -150 }
		command = { type = vp value = 5 }
	}
	action_b = {
		name = "ACTIONNAME338413B" #Too expensive!
		command = { type = vp value = -10 }
	}
}

#(1497-1515) Jewish refugees from Portugal
event = {
	id = 338273 #triggered by POR_260054 A/B
	trigger = {
		NOT = {
			owned = { province = 339 data = POR }
		}
	}
	random = no
	province = 339 #Holland
	name = "EVENTNAME338273" #Jewish refugees from Portugal
	desc = "EVENTHIST338273"
	#-#Expelled by Portugal, many Jewish families went to Amsterdam, Salonika and other, more hospitable, places.

	action_a = {
		name = "GOOD"
		command = { type = population which = 339 value = 3000 } #Holland
	}
}

#-----------------------------------------------------------------------------------------------
#Submission of Aden
#province triggered version by sturmvogel

#(1498-1545) The Portuguese Covet Aden
event = {
	id = 338264
	trigger = {
		NOT = {
			control = { province = 500 data = ADE }
			owned = { province = 500 data = ADE }
		}
		NOT = { countrysize = 6 }
		event = 18012 #POR: Commercial Conflict in the Indian Ocean
		event = 260052 #POR: Discovery of the Straits of Obock
		control = { province = 549 data = POR } #Goa
		owned = { province = 549 data = POR } #Goa
		continent = asia
	}
	random = no
	province = 500 #Aden
	name = "EVENTNAME101004" #The Portuguese Covet Aden
	desc = "EVENTHIST60003"
	#-#These Portuguese visitors envy the richness of our Kingdom. We cannot trust them.

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

	action_a = {
		name = "ACTIONNAME60003A" #All their bases belong to us!
		command = { type = casusbelli which = POR value = 600 }
		command = { type = war which = POR }
		command = { type = sleepevent which = 260047 } #POR: Sultan has bowed to our demands
	}
	action_b = {
		name = "ACTIONNAME60003B" #Submit without a fight
		command = { type = stability value = -3 }
		command = { type = revoltrisk which = 24 value = 4 }
		command = { type = cedeprovince which = POR value = 500 } #Aden
		command = { type = sleepevent which = 260046 } #POR: Sultan has defied our demands
	}
}
#(1498-1545) The Portuguese Have Conquered Aden
event = {
	id = 338265
	trigger = {
		control = { province = 500 data = POR }
		event = 338264 #ProvinceSpec*500: The Portuguese Covet Aden
		continent = asia
	}
	random = no
	province = 500 #Aden
	name = "EVENTNAME338265" #The Portuguese Have Conquered Aden
	desc = "EVENTHIST338265"
	#-#The Portuguese crusaders have conquered Aden. It will be too difficult to retake it from them.

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

	action_a = {
		name = "ACTIONNAME338265A" #There's no way we can retake it
		command = { type = cedeprovince which = POR value = 500 } #Aden
	}
}
#-----------------------------------------------------------------------------------------------

#-----------------------------------------------------------------------------------------------
#Submission of Al-Kharam - if owned by somebody other than Ormuz
#province triggered version by sturmvogel

#(1498-1680) The Portuguese Covet Ormuz
event = {
	id = 338276
	trigger = {
		NOT = {
			control = { province = 504 data = ORM }
			owned = { province = 504 data = ORM }
		}
		NOT = { countrysize = 6 }
		event = 18012 #POR: Commercial Conflict in the Indian Ocean
		control = { province = 549 data = POR } #Goa
		owned = { province = 549 data = POR } #Goa
		continent = asia
	}
	random = no
	province = 504 #Al-Kharam
	name = "EVENTNAME338276" #The Portuguese Covet Ormuz
	desc = "EVENTHIST60003"
	#-#These Portuguese visitors envy the richness of our Kingdom. We cannot trust them.

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

	action_a = {
		name = "ACTIONNAME60003A" #All their bases belong to us!
		command = { type = casusbelli which = POR value = 600 }
		command = { type = war which = POR }
		command = { type = sleepevent which = 260055 } #POR: Al-Kharam is ours!
	}
	action_b = {
		name = "ACTIONNAME60003B" #Submit without a fight
		command = { type = stability value = -3 }
		command = { type = revoltrisk which = 24 value = 4 }
		command = { type = cedeprovince which = POR value = 504 } #Al-Kharam
		command = { type = sleepevent which = 260049 } #POR: Sultan has defied our demands
	}
}
#(1498-1680) The Portuguese Have Conquered Al-Kharam
event = {
	id = 338277
	trigger = {
		NOT = { owned = { province = 504 data = POR } } #Al-Kharam
		control = { province = 504 data = POR } #Al-Kharam
		event = 338276 #ProvinceSpec*504: The Portuguese Covet Ormuz
		continent = asia
	}
	random = no
	province = 504 #Al-Kharam
	name = "EVENTNAME338277" #The Portuguese Have Conquered Al-Kharam
	desc = "EVENTHIST338277"
	#-#The Portuguese crusaders have conquered Al-Kharam. It will be too difficult to retake it from them.

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

	action_a = {
		name = "ACTIONNAME338265A" #There's no way we can retake it
		command = { type = cedeprovince which = POR value = 504 } #Al-Kharam
	}
}
#-----------------------------------------------------------------------------------------------

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

#(1498-1660) Independence of Cochin for Muslim and Buddhist countries
event = {
	id = 338445
	trigger = {
		OR = {
			religion = sunni
			religion = eastern_sunni
			religion = shia
			religion = eastern_shia
			religion = buddhist
		}
		OR = {
			event = 260099 #POR: A foothold in India -I-
			event = 260100 #POR: A foothold in India -II-
		}
		control = { province = 573 data = -1 }
		exists = POR
		NOT = {
			owned = { province = 573 data = COC } #Cochin should of course be exempt
			NOT = { countrysize = 2 }
		}
	}
	random = no
	province = 573 #Cochin
	name = "EVENTNAME338445" #Portuguese aid the rebellious Raja of Cochin
	desc = "EVENTHIST338445"
	#-#The Raja of Cochin desires his independence and he has enlisted the aid of the heathen Portuguese. What should we do?

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

	action_a = {
		name = "ACTIONNAME338445A" #Defy the Portuguese
		command = { type = independence which = COC } #and COC should break vasselage
		command = { type = casusbelli which = COC value = 120 }
		command = { type = casusbelli which = POR value = 120 }
		command = { type = war which = COC }
		command = { type = war which = POR }
		command = { type = stability value = 1 }
		command = { type = relation which = POR value = -100 }
		command = { type = trigger which = 355002 } #COC: Fight for freedom
		command = { type = sleepevent which = 338447 } #ProvinceSpec*573: Portuguese aid the rebellious Raja of Cochin (Hindu, Sikh or Jain)
	}
	action_b = {
		name = "ACTIONNAME338445B" #Let our vassals take care of the Raja
		command = { type = independence which = COC } #and COC should break vasselage
		command = { type = stability value = -1 }
		command = { type = treasury value = -100 }
		command = { type = trigger which = 355004 } #COC: Freedom
		command = { type = sleepevent which = 338447 } #ProvinceSpec*573: Portuguese aid the rebellious Raja of Cochin (Hindu, Sikh or Jain)
	}
}
#(1498-1658) Independence of Cochin for Hindu, Sikh and Jain countries
event = {
	id = 338449
	trigger = {
		OR = {
			religion = hindu
			religion = sikh
			religion = jain
		}
		OR = {
			event = 260099 #POR: A foothold in India -I-
			event = 260100 #POR: A foothold in India -II-
		}
		control = { province = 573 data = -1 }
		exists = POR
		NOT = {
			owned = { province = 573 data = COC } #Cochin should of course be exempt
			NOT = { countrysize = 2 }
		}
	}
	random = no
	province = 573 #Cochin
	name = "EVENTNAME338445" #Portuguese aid the rebellious Raja of Cochin
	desc = "EVENTHIST338445"
	#-#The Raja of Cochin desires his independence and he has enlisted the aid of the heathen Portuguese. What should we do?

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

	action_a = {
		name = "ACTIONNAME338445B" #Let our vassals take care of the Raja
		command = { type = independence which = COC } #and COC should break vasselage
		command = { type = stability value = -1 }
		command = { type = treasury value = -100 }
		command = { type = trigger which = 355004 } #COC: Freedom
		command = { type = sleepevent which = 338445 } #ProvinceSpec*573: Portuguese aid the rebellious Raja of Cochin (Muslim or Buddhist)
	}
	action_b = {
		name = "ACTIONNAME338445A" #Defy the Portuguese
		command = { type = independence which = COC } #and COC should break vasselage
		command = { type = casusbelli which = COC value = 120 }
		command = { type = casusbelli which = POR value = 120 }
		command = { type = war which = COC }
		command = { type = war which = POR }
		command = { type = stability value = 1 }
		command = { type = relation which = POR value = -100 }
		command = { type = trigger which = 355002 } #COC: Fight for freedom
		command = { type = sleepevent which = 338445 } #ProvinceSpec*573: Portuguese aid the rebellious Raja of Cochin (Muslim or Buddhist)
	}
}
#(1498-1660) Control of Cochin
event = {
	id = 338450
	trigger = {
		control = { province = 573 data = POR } #Cochin
		NOT = {
			core = { province = 441 data = -1 } #Tago, Portugal should of course be exempt
			owned = { province = 573 data = COC } #Cochin should of course be exempt
			NOT = { countrysize = 2 }
		}
	}
	random = no
	province = 573 #Cochin
	name = "EVENTNAME338450" #Cochin is lost
	desc = "EVENTHIST338450"
	#-#We have lost control of Cochin to the Portuguese.

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

	action_a = {
		name = "ACTIONNAME18042A" #We are helpless
		command = { type = losebuilding which = 573 value = bailiff } #Cochin
		command = { type = population which = 573 value = -1000 } #Cochin
		command = { type = cedeprovince which = POR value = 573 } #Cochin
		command = { type = trigger which = 260103 } #POR: Annexation of Cochin
		command = { type = sleepevent which = 338445 } #ProvinceSpec*573: Portuguese aid the rebellious Raja of Cochin (Muslim or Buddhist)
		command = { type = sleepevent which = 338447 } #ProvinceSpec*573: Portuguese aid the rebellious Raja of Cochin (Hindu, Sikh or Jain)
	}
}
#-----------------------------------------------------------------------------------------------

#-----------------------------------------------------------------------------------------------
#Submission of Malacca
#province triggered version by sturmvogel

#(1498-1680) The Portuguese covet Malacca
event = {
	id = 338274
	trigger = {
		NOT = {
			owned = { province = 677 data = MLC }
		}
		OR = {
			discovered = 434 #Oporto
			discovered = 441 #Tago
			discovered = 442 #Algarve
		}
		NOT = { countrysize = 8 }
		event = 18012 #POR: Commercial Conflict in the Indian Ocean
		event = 260051 #POR: Discovery of Straits of Malacca
		OR = {
			AND = {
				owned = { province = 573 data = POR } #Cochin
				control = { province = 573 data = POR } #Cochin
			}
			AND = {
				owned = { province = 549 data = POR } #Goa
				control = { province = 549 data = POR } #Goa
			}
		}
		continent = asia
	}
	random = no
	province = 677 #Malacca
	name = "EVENTNAME60003" #The Portuguese covet Malacca
	desc = "EVENTHIST60003"
	#-#These Portuguese visitors envy the richness of our Kingdom. We cannot trust them.

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

	action_a = {
		name = "ACTIONNAME60003A" #All their bases belong to us!
		command = { type = casusbelli which = POR value = 600 }
		command = { type = war which = POR }
		command = { type = sleepevent which = 18104 } #POR: Sultan has bowed to our demands
		command = { type = sleepevent which = 60003 } #MLC: The Portuguese covet Malacca -I-
		command = { type = sleepevent which = 227003 } #MLC: The Portuguese covet Malacca -II-
	}
	action_b = {
		name = "ACTIONNAME60003B" #Submit without a fight
		command = { type = stability value = -3 }
		command = { type = revoltrisk which = 24 value = 4 }
		command = { type = cedeprovince which = POR value = 677 } #Malacca
		command = { type = sleepevent which = 18103 } #POR: Sultan has defied our demands
		command = { type = sleepevent which = 60003 } #MLC: The Portuguese covet Malacca -I-
		command = { type = sleepevent which = 227003 } #MLC: The Portuguese covet Malacca -II-
	}
}
#(1498-1680) The Portuguese Have Conquered Malacca
event = {
	id = 338275
	trigger = {
		NOT = {
			owned = { province = 677 data = MLC } #Malacca
		}
		control = { province = 677 data = POR } #Malacca
		event = 338274 #ProvinceSpec*677: The Portuguese Covet Malacca
		continent = asia
	}
	random = no
	province = 677 #Malacca
	name = "EVENTNAME338275" #The Portuguese Have Conquered Malacca
	desc = "EVENTHIST338275"
	#-#The Portuguese crusaders have conquered Malacca. It will be too difficult to retake it from them.

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

	action_a = {
		name = "ACTIONNAME338265A" #There's no way we can retake it
		command = { type = cedeprovince which = POR value = 677 } #Malacca
	}
}
#-----------------------------------------------------------------------------------------------

#(1500-1528) A Generation is lost
#by David Harper
event = {
	id = 338419
	trigger = {
		event = 284025 #SON: Jihad
		NOT = { owned = { province = 1493 data = SON } }
		control = { province = 1493 data = SON }
		continent = africa
	}
	random = no
	province = 1493 #Mossi
	name = "EVENTNAME338419" #A Generation is lost
	desc = "EVENTHIST338419"
	#-#The emperor of Songhai declared a jihad on all infidels starting with the Mossi of the Yatenga. Songhai armies slaughtered thousands of people before taking all the children they could find. This lost generation was raised in Songhai as Muslims. Their loss was felt deeply by the Mossi.

	date = { day = 1 month = january year = 1500 }
	offset = 10
	deathdate = { day = 26 month = august year = 1550 }

	action_a = {
		name = "ACTIONNAME338419A" #What an atrocity!
		command = { type = population which = 1493 value = -3000 } #Mossi
		command = { type = provincetax which = 1493 value = -1 } #Mossi
		command = { type = provincemanpower which = 1493 value = -1 } #Mossi
		command = { type = casusbelli which = SON value = 360 }
		command = { type = revolt which = 1493 } #Mossi
	}
}

#-----------------------------------------------------------------------------------------------
#Morocco Sacks Gao, Timbuktu and Jenne
#by idontlikeforms - modified by YodaMaster

#(1500-1820) Morocco Sacks Gao
event = {
	id = 338164 #triggered by MOR_232037
	random = no
	province = 1496
	name = "EVENTNAME338164" #Morocco sacks Gao
	desc = "EVENTHIST338164"
	#-#After defeating the Songhai at the battle of Tondibi Judar Pasha occupied the trade cities of Songhai. He secured control over the salt trade but couldn't find the source of Songhai's gold even though he tortured many citizens. Instead he looted the cities, sending their vast wealth back to Marrakesh to fill the treasury and build palaces. He made his way north with thirty camels loaded with gold, slaves and fifteen of the King's daughters, which he sent to be the Sultan's concubines.

	action_a = {
		name = "ACTIONNAME338164A" #Gao is burning!
		command = { type = population which = 1496 value = -3000 } #Gao
		command = { type = losemanufactory which = 1496 } #Gao
		command = { type = removecot which = 1496 } #Gao
		command = { type = provincetax which = 1496 value = -1 } #Gao
		command = { type = trigger which = 284046 } #SON: Consequence of the sack of Gao
	}
}
#(1500-1820) Morocco sacks Timbuktu
event = {
	id = 338165 #triggered by MOR_232036
	random = no
	province = 1495
	name = "EVENTNAME338165" #Morocco sacks Timbuktu
	desc = "EVENTHIST338165"
	#-#After defeating the Songhai at the battle of Tondibi Judar Pasha occupied the trade cities of Songhai. He secured control over the salt trade but couldn't find the source of Songhai's gold even though he tortured many citizens. Instead he looted the cities, sending their vast wealth back to Marrakesh to fill the treasury and build palaces. He made his way north with thirty camels loaded with gold, slaves and fifteen of the King's daughters, which he sent to be the Sultan's concubines. The university of Timbuktu was destroyed and many of the ulema were decimated. Some were killed in struggles, while others were exiled to Morocco. The Moroccan army plundered the wealth of the city and burned the libraries. Huge libraries of books and manuscripts were dispersed. Timbuktu never again recovered its leading position.

	action_a = {
		name = "ACTIONNAME338165A" #The greatness of Timbuktu is no more
		command = { type = population which = 1495 value = -3000 } #Timbuktu
		command = { type = losemanufactory which = 1495 } #Timbuktu
		command = { type = provincetax which = 1495 value = -2 } #Timbuktu
		command = { type = trigger which = 124010 } #BAN: Consequence of the sack of Timbuktu
	}
}
#(1500-1820) Morocco sacks Jenne
event = {
	id = 338166 #triggered by MOR_232038
	random = no
	province = 1490
	name = "EVENTNAME338166" #Morocco sacks Jenne
	desc = "EVENTHIST338166"
	#-#After defeating the Songhai at the battle of Tondibi Judar Pasha occupied the trade cities of Songhai. He secured control over the salt trade but couldn't find the source of Songhai's gold even though he tortured many citizens. Instead he looted the cities, sending their vast wealth back to Marrakesh to fill the treasury and build palaces. He made his way north with thirty camels loaded with gold, slaves and fifteen of the King's daughters, which he sent to be the Sultan's concubines.

	action_a = {
		name = "ACTIONNAME338166A" #Jenne is burning!
		command = { type = population which = 1490 value = -3000 } #Bambuk
		command = { type = losemanufactory which = 1490 } #Bambuk
		command = { type = removecot which = 1490 } #Bambuk
		command = { type = provincetax which = 1490 value = -1 } #Bambuk
		command = { type = trigger which = 218006 } #MAL: Consequence of the sack of Jenne
	}
}
#-----------------------------------------------------------------------------------------------

#(1502-1660) Portuguese Settlement of Mozambique
event = {
	id = 338289
	trigger = {
		continent = africa
		exists = POR
		OR = {
			event = 18031 #POR: Submission of Kilwa
			event = 260065 #POR: Hostile Reception in Mombasa
			event = 260066 #POR: Discovery of Malindi
			event = 260068 #POR: Discovery of Mogadishu
			event = 260107 #POR: The Island of Zanzibar
		}
	}
	random = no
	province = 768 #Mtawa
	name = "EVENTNAME338289" #Portuguese Settlement of Mozambique
	desc = "EVENTHIST338289"
	#-#In 1502 Vasco da Gama, on his second voyage to India, befriended the Sheik of the island of Mozambique and founded a Portuguese settlement there.

	date = { day = 0 month = june year = 1502 }
	offset = 90
	deathdate = { day = 0 month = january year = 1660 }

	action_a = {
		name = "ACTIONNAME338289A" #Damn Portuguese!
		command = { type = cedeprovince which = POR value = 768 } #Mtawa
	}
}

#-----------------------------------------------------------------------------------------------
#Hispaniola Goldmine Sequence

#(1503-1820) Gold discovered in Hispaniola
event = {
	id = 338075
	trigger = {
		OR = {
			NOT = { religion = pagan }
			AND = {
				domestic = { type = innovative value = 5 }
				year = 1500
			}
			year = 1600
		}
	}
	random = no
	province = 142 #Tortuga
	name = "EVENTNAME338075" #Gold discovered in Hispaniola
	desc = "EVENTHIST338075"
	#-#Gold has been discovered in Hispaniola at San Cristobal.

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

	action_a = {
		name = "AWESOME"
		command = { type = treasury value = 125 }
		command = { type = provincetax which = 142 value = 1 } #Tortuga
		command = { type = population which = 142 value = 150 }
	}
}
#(1509-1820) Production continues apace
event = {
	id = 338192
	trigger = { event = 338075 }
	random = no
	province = 142 #Tortuga
	name = "EVENTNAME338192" #Gold production continues apace in Hispaniola
	desc = "EVENTHIST338192"
	#-#The gold mines are still producting at a high rate, but new deposits of gold haven't been found.

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

	action_a = {
		name = "GREAT"
		command = { type = treasury value = 125 }
	}
}
#(1513-1820) Production continues apace
event = {
	id = 338215
	trigger = { event = 338192 }
	random = no
	province = 142 #Tortuga
	name = "EVENTNAME338192" #Gold production continues apace in Hispaniola
	desc = "EVENTHIST338192"
	#-#The gold mines are still producting at a high rate, but new deposits of gold haven't been found.

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

	action_a = {
		name = "GREAT"
		command = { type = treasury value = 125 }
	}
}
#(1518-1820) Production begins to decline
event = {
	id = 338216
	trigger = { event = 338215 }
	random = no
	province = 142 #Tortuga
	name = "EVENTNAME338216" #Gold production decline in Hispaniola
	desc = "EVENTHIST338216"
	#-#Gold is becoming harder to extract at San Cristobal in Hispaniola.

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

	action_a = {
		name = "DAMN"
		command = { type = treasury value = 100 }
	}
}
#(1526-1820) The gold mine is now depleted
event = {
	id = 338217
	trigger = { event = 338216 }
	random = no
	province = 142 #Tortuga
	name = "EVENTNAME338217" #Gold mine depleted in Hispaniola
	desc = "EVENTHIST338217"
	#-#Not much left at San Cristobal in Hispaniola.

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

	action_a = {
		name = "ACTIONNAME338217A" #As we expected...
		command = { type = treasury value = 40 }
	}
}
#(1531-1820) The gold mine is now totally exhausted
event = {
	id = 338218
	trigger = { event = 338217 }
	random = no
	province = 142 #Tortuga
	name = "EVENTNAME338218" #Gold mine totally exhausted in Hispaniola
	desc = "EVENTHIST338218"
	#-#Nothing left at San Cristobal.

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

	action_a = {
		name = "ACTIONNAME338217A" #As we expected...
		command = { type = provincetax which = 142 value = -1 } #Tortuga
	}
}
#End of Hispaniola Goldmine Sequence
#-----------------------------------------------------------------------------------------------

#-----------------------------------------------------------------------------------------------
#(1505-1560) Shi'a Emigration

event = {
	id = 338246
	trigger = {
		event = 254018 #PER: Shi'a Immigrants
		NOT = {
			flag = [immigration]
			religion = shia
		}
	}
	random = no
	province = 472 #Armenia
	name = "EVENTNAME338246" #Shi'a Emigration
	desc = "EVENTHIST338246"
	#-#Shi'a followers all over the Muslim world flocked to the new Safavid state. Many nations closed their borders to stem the population loss. Some resorted to violent tactics

	date = { day = 1 month = january year = 1505 }
	offset = 50
	deathdate = { day = 29 month = december year = 1560 }

	action_a = {
		name = "ACTIONNAME338246A" #And they go
		command = { type = population which = 472 value = -900 } #Armenia
		command = { type = desertion which = 472 value = 1000 } #Armenia
		command = { type = relation which = PER value = -25 }
	}
	action_b = {
		name = "ACTIONNAME338246B" #We'd rather kill them than see them leave!
		command = { type = population which = 472 value = -400 } #Armenia
		command = { type = revolt which = 472 } #Armenia
		command = { type = trade value = -25 }
		command = { type = relation which = PER value = -50 }
	}
}
event = {
	id = 338247
	trigger = {
		event = 254018 #PER: Shi'a Immigrants
		NOT = {
			flag = [immigration]
			religion = shia
		}
	}
	random = no
	province = 471 #Daghestan
	name = "EVENTNAME338246" #Shi'a Emigration
	desc = "EVENTHIST338246"
	#-#Shi'a followers all over the Muslim world flocked to the new Safavid state. Many nations closed their borders to stem the population loss. Some resorted to violent tactics

	date = { day = 1 month = january year = 1505 }
	offset = 50
	deathdate = { day = 29 month = december year = 1560 }

	action_a = {
		name = "ACTIONNAME338246A" #And they go
		command = { type = population which = 471 value = -900 } #Daghestan
		command = { type = desertion which = 471 value = 1000 } #Daghestan
		command = { type = relation which = PER value = -25 }
	}
	action_b = {
		name = "ACTIONNAME338246B" #We'd rather kill them than see them leave!
		command = { type = population which = 471 value = -400 } #Daghestan
		command = { type = revolt which = 471 } #Daghestan
		command = { type = trade value = -25 }
		command = { type = relation which = PER value = -50 }
	}
}
event = {
	id = 338248
	trigger = {
		event = 254018 #PER: Shi'a Immigrants
		NOT = {
			flag = [immigration]
			religion = shia
		}
	}
	random = no
	province = 533 #Isfahan
	name = "EVENTNAME338246" #Shi'a Emigration
	desc = "EVENTHIST338246"
	#-#Shi'a followers all over the Muslim world flocked to the new Safavid state. Many nations closed their borders to stem the population loss. Some resorted to violent tactics

	date = { day = 1 month = january year = 1505 }
	offset = 25
	deathdate = { day = 29 month = december year = 1560 }

	action_a = {
		name = "ACTIONNAME338246A" #And they go
		command = { type = population which = 533 value = -900 } #Isfahan
		command = { type = desertion which = 533 value = 1000 } #Isfahan
		command = { type = relation which = PER value = -25 }
	}
	action_b = {
		name = "ACTIONNAME338246B" #We'd rather kill them than see them leave!
		command = { type = population which = 533 value = -400 } #Isfahan
		command = { type = revolt which = 533 } #Isfahan
		command = { type = trade value = -25 }
		command = { type = relation which = PER value = -50 }
	}
}
event = {
	id = 338249
	trigger = {
		event = 254018 #PER: Shi'a Immigrants
		NOT = {
			flag = [immigration]
			religion = shia
		}
	}
	random = no
	province = 489 #Iraq
	name = "EVENTNAME338246" #Shi'a Emigration
	desc = "EVENTHIST338246"
	#-#Shi'a followers all over the Muslim world flocked to the new Safavid state. Many nations closed their borders to stem the population loss. Some resorted to violent tactics

	date = { day = 1 month = january year = 1505 }
	offset = 25
	deathdate = { day = 29 month = december year = 1560 }

	action_a = {
		name = "ACTIONNAME338246A" #And they go
		command = { type = population which = 489 value = -900 } #Iraq
		command = { type = desertion which = 489 value = 1000 } #Iraq
		command = { type = relation which = PER value = -25 }
	}
	action_b = {
		name = "ACTIONNAME338246B" #We'd rather kill them than see them leave!
		command = { type = population which = 489 value = -400 } #Iraq
		command = { type = revolt which = 489 } #Iraq
		command = { type = trade value = -25 }
		command = { type = relation which = PER value = -50 }
	}
}
event = {
	id = 338250
	trigger = {
		event = 254018 #PER: Shi'a Immigrants
		NOT = {
			flag = [immigration]
			religion = shia
		}
	}
	random = no
	province = 485 #Aleppo
	name = "EVENTNAME338246" #Shi'a Emigration
	desc = "EVENTHIST338246"
	#-#Shi'a followers all over the Muslim world flocked to the new Safavid state. Many nations closed their borders to stem the population loss. Some resorted to violent tactics

	date = { day = 1 month = january year = 1505 }
	offset = 50
	deathdate = { day = 29 month = december year = 1560 }

	action_a = {
		name = "ACTIONNAME338246A" #And they go
		command = { type = population which = 485 value = -900 } #Aleppo
		command = { type = desertion which = 485 value = 1000 } #Aleppo
		command = { type = relation which = PER value = -25 }
	}
	action_b = {
		name = "ACTIONNAME338246B" #We'd rather kill them than see them leave!
		command = { type = population which = 485 value = -400 } #Aleppo
		command = { type = revolt which = 485 } #Aleppo
		command = { type = trade value = -25 }
		command = { type = relation which = PER value = -50 }
	}
}
event = {
	id = 338251
	trigger = {
		event = 254018 #PER: Shi'a Immigrants
		NOT = {
			flag = [immigration]
			religion = shia
		}
	}
	random = no
	province = 490 #Syria
	name = "EVENTNAME338246" #Shi'a Emigration
	desc = "EVENTHIST338246"
	#-#Shi'a followers all over the Muslim world flocked to the new Safavid state. Many nations closed their borders to stem the population loss. Some resorted to violent tactics

	date = { day = 1 month = january year = 1505 }
	offset = 25
	deathdate = { day = 29 month = december year = 1560 }

	action_a = {
		name = "ACTIONNAME338246A" #And they go
		command = { type = population which = 490 value = -900 } #Syria
		command = { type = desertion which = 490 value = 1000 } #Syria
		command = { type = relation which = PER value = -25 }
	}
	action_b = {
		name = "ACTIONNAME338246B" #We'd rather kill them than see them leave!
		command = { type = population which = 490 value = -400 } #Syria
		command = { type = revolt which = 490 } #Syria
		command = { type = trade value = -25 }
		command = { type = relation which = PER value = -50 }
	}
}
event = {
	id = 338252
	trigger = {
		event = 254018 #PER: Shi'a Immigrants
		NOT = {
			flag = [immigration]
			religion = shia
		}
	}
	random = no
	province = 508 #Basrah
	name = "EVENTNAME338246" #Shi'a Emigration
	desc = "EVENTHIST338246"
	#-#Shi'a followers all over the Muslim world flocked to the new Safavid state. Many nations closed their borders to stem the population loss. Some resorted to violent tactics

	date = { day = 1 month = january year = 1505 }
	offset = 50
	deathdate = { day = 29 month = december year = 1560 }

	action_a = {
		name = "ACTIONNAME338246A" #And they go
		command = { type = population which = 508 value = -900 } #Basrah
		command = { type = desertion which = 508 value = 1000 } #Basrah
		command = { type = relation which = PER value = -25 }
	}
	action_b = {
		name = "ACTIONNAME338246B" #We'd rather kill them than see them leave!
		command = { type = population which = 508 value = -400 } #Basrah
		command = { type = revolt which = 508 } #Basrah
		command = { type = trade value = -25 }
		command = { type = relation which = PER value = -50 }
	}
}
event = {
	id = 338253
	trigger = {
		event = 254018 #PER: Shi'a Immigrants
		NOT = {
			flag = [immigration]
			religion = shia
		}
	}
	random = no
	province = 475 #Trabzon
	name = "EVENTNAME338246" #Shi'a Emigration
	desc = "EVENTHIST338246"
	#-#Shi'a followers all over the Muslim world flocked to the new Safavid state. Many nations closed their borders to stem the population loss. Some resorted to violent tactics

	date = { day = 1 month = january year = 1505 }
	offset = 25
	deathdate = { day = 29 month = december year = 1560 }

	action_a = {
		name = "ACTIONNAME338246A" #And they go
		command = { type = population which = 475 value = -900 } #Trabzon
		command = { type = desertion which = 475 value = 1000 } #Trabzon
		command = { type = relation which = PER value = -25 }
	}
	action_b = {
		name = "ACTIONNAME338246B" #We'd rather kill them than see them leave!
		command = { type = population which = 475 value = -400 } #Trabzon
		command = { type = revolt which = 475 } #Trabzon
		command = { type = trade value = -25 }
		command = { type = relation which = PER value = -50 }
	}
}
event = {
	id = 338254
	trigger = {
		event = 254018 #PER: Shi'a Immigrants
		NOT = {
			flag = [immigration]
			religion = shia
		}
	}
	random = no
	province = 483 #Adana
	name = "EVENTNAME338246" #Shi'a Emigration
	desc = "EVENTHIST338246"
	#-#Shi'a followers all over the Muslim world flocked to the new Safavid state. Many nations closed their borders to stem the population loss. Some resorted to violent tactics

	date = { day = 1 month = january year = 1505 }
	offset = 25
	deathdate = { day = 29 month = december year = 1560 }

	action_a = {
		name = "ACTIONNAME338246A" #And they go
		command = { type = population which = 483 value = -900 } #Adana
		command = { type = desertion which = 483 value = 1000 } #Adana
		command = { type = relation which = PER value = -25 }
	}
	action_b = {
		name = "ACTIONNAME338246B" #We'd rather kill them than see them leave!
		command = { type = population which = 483 value = -400 } #Adana
		command = { type = revolt which = 483 } #Adana
		command = { type = trade value = -25 }
		command = { type = relation which = PER value = -50 }
	}
}
event = {
	id = 338255
	trigger = {
		event = 254018 #PER: Shi'a Immigrants
		NOT = {
			flag = [immigration]
			religion = shia
		}
	}
	random = no
	province = 474 #Sivas
	name = "EVENTNAME338246" #Shi'a Emigration
	desc = "EVENTHIST338246"
	#-#Shi'a followers all over the Muslim world flocked to the new Safavid state. Many nations closed their borders to stem the population loss. Some resorted to violent tactics

	date = { day = 1 month = january year = 1505 }
	offset = 50
	deathdate = { day = 29 month = december year = 1560 }

	action_a = {
		name = "ACTIONNAME338246A" #And they go
		command = { type = population which = 474 value = -900 } #Sivas
		command = { type = desertion which = 474 value = 1000 } #Sivas
		command = { type = relation which = PER value = -25 }
	}
	action_b = {
		name = "ACTIONNAME338246B" #We'd rather kill them than see them leave!
		command = { type = population which = 474 value = -400 } #Sivas
		command = { type = revolt which = 474 } #Sivas
		command = { type = trade value = -25 }
		command = { type = relation which = PER value = -50 }
	}
}
#End of Shi'a Emigration
#-----------------------------------------------------------------------------------------------

#(1507-1545) The Portuguese Seizure of Socotra
event = {
	id = 338283
	trigger = {
		event = 18012 #POR: Commercial Conflict in the Indian Ocean
		NOT = { owned = { province = 756 data = POR } }
		control = { province = 756 data = POR }
	}
	random = no
	province = 756 #Socotra
	name = "EVENTNAME338283" #The Portuguese Seizure of Socotra
	desc = "EVENTHIST338283"
	#-#In 1507 the Portuguese under Tristão da Cunha captured Socotra with the intention of using it as a base to prey on Muslim merchant ships sailing to and from the Red Sea and the Malabar Coast.

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

	action_a = {
		name = "ACTIONNAME338283A" #Damn Portuguese!
		command = { type = cedeprovince which = POR value = 756 }
	}
}

#(1510-1540) Teutonic Order restoration event
event = {
	id = 338109
	trigger = {
		NOT = {
			core = { province = 290 data = -1 } #Prussia
			exists = PRU
			exists = LAT
			OR = {
				owned = { province = 290 data = POL } #Prussia
				owned = { province = 290 data = LIV } #Prussia
			}
			AND = {
				flag = [TO_Lands]
				ai = no
			}
		}
		OR = {
			religion = catholic
			religion = counterreform
		}
	}
	random = no
	province = 290 #Prussia
	name = "EVENTNAME338108" #The Lands of Teutonic Order
	desc = "EVENTHIST338108"
	#-#The Teutonic Order's presence in the Baltic region dates back to 1225 when Duke Conrad of Masovia asked the Teutonic knights to come and aid him against the Prussian pagans' raids. Having the backing of the Pope, the Holy Roman Emperor and the minor German states, the Teutonic Order rose up to become a major power in the southern Baltic coast. Now their lands are ours. Shall we give them back to the Order or keep them for ourselves?

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

	action_a = {
		name = "ACTIONNAME338108A" #Let's restore them
		command = { type = independence which = LAT }
		command = { type = badboy value = -5 }
		command = { type = relation which = HAB value = 100 } #All other Catholics nations
		command = { type = relation which = BRA value = 100 } #All other Catholics nations
		command = { type = relation which = POL value = -50 } #All other Catholics nations
		command = { type = relation which = LIT value = -50 } #All other Catholics nations
		command = { type = relation which = STT value = 100 } #All other Catholics nations
		command = { type = relation which = POM value = -50 }
		command = { type = vp value = 50 }
		command = { type = setflag which = [TO_Lands] }
	}
	action_b = {
		name = "ACTIONNAME338108B" #We will keep Prussia!
		command = { type = badboy value = 2 }
		command = { type = stability value = -1 }
		command = { type = setflag which = [TO_Lands] }
	}
}

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

#(1510-1660) Submission of Goa for Muslim and Buddhist countries
event = {
	id = 338005
	trigger = {
		OR = {
			religion = sunni
			religion = eastern_sunni
			religion = shia
			religion = eastern_shia
			religion = buddhist
		}
		OR = {
			discovered = 434 #Oporto
			discovered = 441 #Tago
			discovered = 442 #Algarve
		}
		event = 18038 #POR: The gates of India
		exists = POR
	}
	random = no
	province = 549
	name = "EVENTNAME18039" #Portuguese demand Goa
	desc = "EVENTHIST18039"
	#-#The commander of the Portuguese navy demands Goa as the military base for their fleet. Should we give in to their demands, or refuse them and face consequences?\n \n If we refuse and Portuguese take control of Goa by force, they may keep it for long...

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

	action_a = {
		name = "ACTIONNAME333000B" #Defy the Portuguese
		command = { type = war which = POR }
		command = { type = stability value = 1 }
		command = { type = relation which = POR value = -100 }
		command = { type = trigger which = 18041 } #POR: The infidel refuses our offer
	}
	action_b = {
		name = "ACTIONNAME333000A" #Agree to vassalship
		command = { type = cedeprovince which = POR value = 549 } #Goa
		command = { type = stability value = -2 }
		command = { type = treasury value = -100 }
		command = { type = trigger which = 18040 } #POR: The infidel yield to our demands
	}
}
#(1510-1660) Submission of Goa for Hindu, Sikh and Jain countries
event = {
	id = 338006
	trigger = {
		OR = {
			religion = hindu
			religion = sikh
			religion = jain
		}
		event = 18062
		control = { province = 549 data = -1 }
		exists = POR
	}
	random = no
	province = 549
	name = "EVENTNAME18063" #Portuguese offer
	desc = "EVENTHIST18063"
	#-#The Portuguese commander offers us weapons in exchange for land around the city of Goa to build their trade and military establishment. It would be a smart idea to accept it, in order to deliver a crushing blow to hated Muslims.\n \n If we refuse and Portuguese take control of Goa by force, they may keep it for long...

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

	action_a = {
		name = "ACTIONNAME18063A" #Accept the offer
		command = { type = cedeprovince which = POR value = 549 } #Goa
		command = { type = relation which = POR value = 50 }
		command = { type = treasury value = 50 }
		command = { type = land value = 1000 }
		command = { type = domestic which = mercantilism value = -1 }
		command = { type = trigger which = 18040 } #POR: The infidel yield to our demands
	}
	action_b = {
		name = "ACTIONNAME18063B" #Refuse the offer and face the consequences
		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 } #POR: The infidel refuses our offer
	}
}
#(1510-1660) 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" #Goa is lost
	desc = "EVENTHIST18042"
	#-#The treacherous Portuguese has captured the port of Goa, there is nothing we can do about it.

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

	action_a = {
		name = "ACTIONNAME18042A" #We are helpless
		command = { type = cedeprovince which = POR value = 549 } #Goa
		command = { type = trigger which = 18043 } #POR: Goa is ours
	}
}
#-----------------------------------------------------------------------------------------------

#-----------------------------------------------------------------------------------------------
#Puerto Rico Goldmine Sequence

#(1513-1820) Gold discovered in Puerto Rico!
event = {
	id = 338219
	trigger = {
		OR = {
			NOT = { religion = pagan }
			AND = {
				domestic = { type = innovative value = 5 }
				year = 1500
			}
			year = 1600
		}
	}
	random = no
	province = 144 #Puerto Rico
	name = "EVENTNAME338219" #Gold discovered in Puerto Rico
	desc = "EVENTHIST338219"
	#-#Gold was discovered around 1511 in significant quantities although it would take several years to increase production.

	date = { day = 0 month = january year = 1513 }
	offset = 120
	deathdate = { year = 1820 }

	action_a = {
		name = "ACTIONNAME338219A" #How handy!
		command = { type = treasury value = 130 }
		command = { type = provincetax which = 144 value = 1 } #Puerto Rico
		command = { type = population which = 144 value = 150 }
	}
}
#(1518-1820) Production continues apace
event = {
	id = 338220
	trigger = { event = 338219 }
	random = no
	province = 144 #Puerto Rico
	name = "EVENTNAME338220" #Production continues apace in Puerto Rico
	desc = "EVENTHIST338192"
	#-#The gold mines are still producting at a high rate, but new deposits of gold haven't been found.

	date = { day = 0 month = january year = 1518 }
	offset = 120
	deathdate = { year = 1820 }

	action_a = {
		name = "ACTIONNAME338220" #Let the good times roll!
		command = { type = treasury value = 100 }
	}
}
#(1523-1820) The gold mines are seriously depleted
event = {
	id = 338221
	trigger = { event = 338220 }
	random = no
	province = 144 #Puerto Rico
	name = "EVENTNAME338221" #Gold mines seriously depleted in Puerto Rico
	desc = "EVENTHIST338221"
	#-#The gold mines are essentially depleted in Puerto Rico.

	date = { day = 0 month = january year = 1523 }
	offset = 120
	deathdate = { year = 1820 }

	action_a = {
		name = "ACTIONNAME338221A" #It was good while it lasted!
		command = { type = treasury value = 50 }
	}
}
#(1531-1820) The gold mines are exhausted
event = {
	id = 338222
	trigger = { event = 338221 }
	random = no
	province = 144 #Puerto Rico
	name = "EVENTNAME338222" #Gold mines exhausted in Puerto Rico
	desc = "EVENTHIST338222"
	#-#There's nothing left.

	date = { day = 0 month = january year = 1531 }
	offset = 120
	deathdate = { year = 1820 }

	action_a = {
		name = "ACTIONNAME338222A" #I couldn't have predicted this!
		command = { type = provincetax which = 144 value = -1 } #Puerto Rico
	}
}
#End of Puerto Rico Goldmine Sequence
#-----------------------------------------------------------------------------------------------

#(1513-1539) Swiss expansion
event = {
	id = 338496 #triggered by HEL_20307
	trigger = {
		NOT = { owned = { province = 405 data = HEL } }
	}
	random = no
	province = 405 #Savoie
	name = "EVENTNAME338496" #Swiss expansion
	desc = "EVENTHIST338496"
	#-#Between 1475 and 1536, Savoy was caught in the middle of the turmoil of the Italian Wars. During much of this period the Swiss infantry was pre-eminent, and the Swiss used their power to expand their influence, taking the Valais and Vaud away from Savoy.

	action_a = {
		name = "ALAS"
		command = { type = population which = 405 value = -5000 } #Savoie
		command = { type = provincemanpower which = 405 value = -1 } #Savoie
		command = { type = provincetax which = 405 value = -1 } #Savoie
		command = { type = stability value = -2 }
		command = { type = casusbelli which = HEL value = 240 } #renounced claim in 1559
		command = { type = land value = -200 } #good soldiers
	}
}

#-----------------------------------------------------------------------------------------------
#Moron Goldmine Sequence

#(1516-1820) Gold discovered in Cuba
event = {
	id = 338223
	trigger = {
		OR = {
			NOT = { religion = pagan }
			AND = {
				domestic = { type = innovative value = 5 }
				year = 1500
			}
			year = 1600
		}
	}
	random = no
	province = 138 #Moron
	name = "EVENTNAME338223" #Gold discovered in Cuba
	desc = "EVENTHIST338223"
	#-#Gold was discovered near the towns of Santa Clara, Baracoa and Cienfuegos.

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

	action_a = {
		name = "ACTIONNAME338223A" #What a bizarre notion!
		command = { type = treasury value = 50 }
		command = { type = provincetax which = 138 value = 1 } #Moron
		command = { type = population which = 138 value = 150 }
	}
}
#(1538-1820) Total exhaustion
event = {
	id = 338225
	trigger = { event = 338223 }
	random = no
	province = 138 #Moron
	name = "EVENTNAME338225" #Total exhaustion of Gold mines in Cuba
	desc = "EVENTHIST338225"
	#-#The Cuban goldmines are totally exhausted. We'll have to rely on the odd nugget or two from now on.

	date = { day = 0 month = january year = 1538 }
	offset = 360
	deathdate = { year = 1820 }

	action_a = {
		name = "ACTIONNAME338225A" #It was to be expected.
		command = { type = provincetax which = 138 value = -1 } #Moron
	}
}
#End of Moron Goldmine Sequence
#-----------------------------------------------------------------------------------------------

#(1520-1525) Protestantism in Breslau
event = {
	id = 338244
	trigger = {
		provincereligion = { province = 314 data = catholic }
		OR = {
			religion = catholic
			religion = counterreform
		}
	}
	random = no
	province = 314 #Silesia
	name = "EVENTNAME338244" #Protestantism in Breslau
	desc = "EVENTHIST338244"
	#-#In 1523 Jan Hess, former collaborator of Breslau's bishop Jan Turzon celebrated first protestant masses in the Mary Magdalene parish church in Breslau. On the same year the city officially turned to Protestantism.

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

	action_a = {
		name = "ACTIONNAME338244A" #Allow them to turn protestant
		command = { type = provincereligion which = 314 value = protestant }
	}
	action_b = {
		name = "ACTIONNAME338244B" #Force them to stay catholic
		command = { type = religiousrevolt which = 314 }
		command = { type = provincetax which = 314 value = -1 }
		command = { type = population which = 314 value = -1000 }
	}
}

#(1521-1522) The Ducal residence
#should only happen to Berg or Cleves
event = {
	id = 338078
	trigger = {
		owned = { province = 334 data = -1 } #Münster
		control = { province = 334 data = -1 } #Münster
		owned = { province = 343 data = -1 } #Kleves
		control = { province = 343 data = -1 } #Kleves
		OR = {
			owned = { province = 334 data = BRG }
			owned = { province = 334 data = KLE }
		}
	}
	random = no
	province = 343 #Kleves
	name = "EVENTNAME338078" #The Ducal residence
	desc = "EVENTHIST338078"
	#-#Johann II ruled the united Duchies of Kleve, Mark, Jülich and Berg from Düsseldorf, ancient capital of Berg, which had already been his residence as Duke of Jülich and Berg between 1511 and 1521. Thus Kleve, formerly the main city of Kleve-Mark, lost its importance.

	date = { day = 16 month = january year = 1521 }
	offset = 10
	deathdate = { day = 29 month = december year = 1522 }

	action_a = {
		name = "ACTIONNAME338078A" #Reside in Düsseldorf
		command = { type = addcore which = 343 } #Kleves
		command = { type = addcore which = 334 } #Münster
		command = { type = capital which = 343 } #Kleves
		command = { type = flagname which = "" }
		command = { type = country which = KLE }
		command = { type = provincetax which = 343 value = 1 } #Kleves
		command = { type = provincetax which = 334 value = -1 } #Münster
	}
	action_b = {
		name = "ACTIONNAME338078B" #Reside in Kleve
		command = { type = addcore which = 343 } #Kleves
		command = { type = addcore which = 334 } #Münster
		command = { type = capital which = 334 } #Münster
		command = { type = flagname which = "" }
		command = { type = country which = KLE }
		command = { type = provincetax which = 334 value = 1 } #Münster
		command = { type = provincetax which = 343 value = -1 } #Kleves
	}
}

#-----------------------------------------------------------------------------------------------
#Sher Khan Sequence

#(1522-1524) Sher Khan
event = {
	id = 338296
	random = no
	province = 559 #Bihar
	name = "EVENTNAME338296" #Sher Khan
	desc = "EVENTHIST338296"
	#-#During Buhlul Lodi's reign many Afghan Muslims migrated east to seek military service in Delhi. The son of one of these jagirdar (feudal vassals) was named Farid Sur, who quickly became renowned in Jaunpur for his mastery of Persian literature. In 1522 he entered the service of Bahar Khan Nuhani, the ruler of Bihar, who rewarded his ability by appointing him as deputy (vakil) and also the tutor of his son, Jalal Khan. It was then that Farid gained the title 'Sher Khan' for single-handedly slaying a tiger.

	date = { day = 1 month = january year = 1522 }
	offset = 360
	deathdate = { day = 1 month = january year = 1524 }

	action_a = {
		name = "ACTIONNAME338296A" #His capable deputy lessens our influence
		command = { type = losebuilding which = 559 value = courthouse } #Bihar
		command = { type = setflag which = [Sher_Khan_Tale] }
	}
}
#(1527-1528) Sher Khan leaves
event = {
	id = 338297
	trigger = {
		flag = [Sher_Khan_Tale]
	}
	random = no
	province = 559 #Bihar
	name = "EVENTNAME338297" #Sher Khan leaves
	desc = "EVENTHIST338297"
	#-#The meteoric rise of Sher Khan brought unwelcome attention. Local Muslims coveted his position at court and poisoned the mind of the khan against the Afghani lord. The khan of Bihar stripped Sher Khan of his estate of Sasaram and Sher Khan left court in disgrace. Impressed by the success of Mughal arms, he made his way to Babur's camp and entered his service.

	date = { day = 1 month = january year = 1527 }
	offset = 60
	deathdate = { day = 1 month = may year = 1528 }

	action_a = {
		name = "ACTIONNAME338297A" #Rejoice! They exiled that capable man
		command = { type = provincetax which = 559 value = 1 } #Bihar
	}
}
#(1528-1531) Sher Khan returns to Bihar
event = {
	id = 338298
	trigger = {
		flag = [Sher_Khan_Tale]
	}
	random = no
	province = 559 #Bihar
	name = "EVENTNAME338298" #Sher Khan returns to Bihar
	desc = "EVENTHIST338298"
	#-#After serving in Babur's army for some time, Sher Khan returned to Bihar to once again become its deputy governor and guardian of his former pupil, Jalal Khan. With the death of his father the young King was the nominal ruler of Bihar, but in reality Sher Khan was the virtual head of state. Over the next four years he won over the army to his cause and elevated Bihar to a state of complete independence.

	date = { day = 1 month = july year = 1528 }
	offset = 90
	deathdate = { day = 1 month = january year = 1531 }

	action_a = {
		name = "ACTIONNAME338298A" #He has become a dictator
		command = { type = losebuilding which = 559 value = cityrights } #Bihar
		command = { type = desertion which = 559 value = 1000 } #Bihar
	}
}
#(1528-1531) The Widow of Chunar
event = {
	id = 338299
	trigger = {
		flag = [Sher_Khan_Tale]
	}
	random = no
	province = 559 #Bihar
	name = "EVENTNAME338299" #The Widow of Chunar
	desc = "EVENTHIST338299"
	#-#Taj Khan, the lord of Chunar, was murdered by his eldest son for his infatuation with a younger wife, Lad Malika. This young widow married Sher Khan, the dictator of Bihar, giving him the fortress of Chunar as her dowry.

	date = { day = 1 month = january year = 1528 }
	offset = 500
	deathdate = { day = 1 month = january year = 1531 }

	action_a = {
		name = "ACTIONNAME338299A" #Sher Khan's influence grows
		command = { type = provincetax which = 559 value = -1 } #Bihar
	}
}
#End of Sher Khan Sequence
#-----------------------------------------------------------------------------------------------

#(1524-1820) Central Java converts to Islam
event = {
	id = 338027
	trigger = {
		NOT = { provincereligion = { province = 703 data = sunni } }
	}
	random = no
	province = 703 #Bandung
	name = "EVENTNAME338027" #Central Java converts to Islam
	desc = "EVENTHIST338027"
	#-#About this time much of Java began to convert to Islam, including Banten, Mataram and Central Java, and Surabaya.

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

	action_a = {
		name = "ACTIONNAME338027A" #Convert to Islam
		command = { type = provincereligion which = 703 value = sunni } #Bandung
		command = { type = revolt which = 703 } #Bandung
	}
	action_b = {
		name = "ACTIONNAME338027B" #Keep old belief
		command = { type = domestic which = centralization value = -1 }
	}
}

#(1524-1820) East Java converts to Islam
event = {
	id = 338028
	trigger = {
		NOT = { provincereligion = { province = 704 data = sunni } }
	}
	random = no
	province = 704 #Surabaja
	name = "EVENTNAME338028" #East Java converts to Islam
	desc = "EVENTHIST338028"
	#-#About this time much of Java began to convert to Islam, including Banten, Mataram and Central Java, and Surabaya.

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

	action_a = {
		name = "ACTIONNAME338028A" #Convert to Islam
		command = { type = provincereligion which = 704 value = sunni } #Surabaja
		command = { type = revolt which = 704 } #Surabaja
	}
	action_b = {
		name = "ACTIONNAME338028B" #Keep old belief
		command = { type = domestic which = centralization value = -1 }
	}
}

#-----------------------------------------------------------------------------------------------
#Horn of Africa depopulation events

#(1529-1560) Tigray ravaged by war
#by Fodoron
event = {
	id = 338116
	trigger = {
		OR = {
			owned = { province = 753 data = ETH } #Ethiopia
			owned = { province = 753 data = ADA } #Adal
		}
		war = { country = ETH country = ADA }
	}
	random = no
	province = 753 #Keren
	name = "EVENTNAME338116" #Tigray ravaged by war
	desc = "EVENTHIST338116"
	#-#During the 30 years war between Adal and Ethiopia, both countries suffered a catastrophic depopulation due to war casualties, peasants abandoning the fields, famine, disease and widespread slavery by the part of Adal to cover the costs of the war.

	date = { day = 0 month = january year = 1529 }
	offset = 300
	deathdate = { day = 0 month = january year = 1560 }

	action_a = {
		name = "ACTIONNAME338116A" #Depopulation in Tigray (Keren)
		command = { type = population which = 753 value = -2000 } #Keren
	}
}
#(1529-1560) Afar ravaged by war
#by Fodoron
event = {
	id = 338117
	trigger = {
		OR = {
			owned = { province = 754 data = ETH } #Ethiopia
			owned = { province = 754 data = ADA } #Adal
		}
		war = { country = ETH country = ADA }
	}
	random = no
	province = 754 #Issas
	name = "EVENTNAME338117" #Afar ravaged by war
	desc = "EVENTHIST338116"
	#-#During the 30 years war between Adal and Ethiopia, both countries suffered a catastrophic depopulation due to war casualties, peasants abandoning the fields, famine, disease and widespread slavery by the part of Adal to cover the costs of the war.

	date = { day = 0 month = january year = 1529 }
	offset = 300
	deathdate = { day = 0 month = january year = 1560 }

	action_a = {
		name = "ACTIONNAME338117A" #Depopulation in Afar (Issas)
		command = { type = population which = 754 value = -3000 } #Issas
	}
}
#(1529-1560) Galgodon ravaged by war
#by Fodoron
event = {
	id = 338118
	trigger = {
		OR = {
			owned = { province = 755 data = ETH } #Ethiopia
			owned = { province = 755 data = ADA } #Adal
		}
		war = { country = ETH country = ADA }
	}
	random = no
	province = 755 #Afars
	name = "EVENTNAME338118" #Galgodon ravaged by war
	desc = "EVENTHIST338116"
	#-#During the 30 years war between Adal and Ethiopia, both countries suffered a catastrophic depopulation due to war casualties, peasants abandoning the fields, famine, disease and widespread slavery by the part of Adal to cover the costs of the war.

	date = { day = 0 month = january year = 1529 }
	offset = 300
	deathdate = { day = 0 month = january year = 1560 }

	action_a = {
		name = "ACTIONNAME338118A" #Depopulation in Galgodon (Afars)
		command = { type = population which = 755 value = -1000 } #Afars
	}
}
#(1529-1560) Ogaden ravaged by war
#by Fodoron
event = {
	id = 338119
	trigger = {
		OR = {
			owned = { province = 758 data = ETH } #Ethiopia
			owned = { province = 758 data = ADA } #Adal
		}
		war = { country = ETH country = ADA }
	}
	random = no
	province = 758 #Ogaden
	name = "EVENTNAME338119" #Ogaden ravaged by war
	desc = "EVENTHIST338116"
	#-#During the 30 years war between Adal and Ethiopia, both countries suffered a catastrophic depopulation due to war casualties, peasants abandoning the fields, famine, disease and widespread slavery by the part of Adal to cover the costs of the war.

	date = { day = 0 month = january year = 1529 }
	offset = 300
	deathdate = { day = 0 month = january year = 1560 }

	action_a = {
		name = "ACTIONNAME338119A" #Depopulation in Ogaden
		command = { type = population which = 758 value = -1000 } #Ogaden
	}
}
#(1529-1560) Gonder ravaged by war
#by Fodoron
event = {
	id = 338120
	trigger = {
		OR = {
			owned = { province = 1516 data = ETH } #Ethiopia
			owned = { province = 1516 data = ADA } #Adal
		}
		war = { country = ETH country = ADA }
	}
	random = no
	province = 1516 #Welo
	name = "EVENTNAME338120" #Gonder ravaged by war
	desc = "EVENTHIST338116"
	#-#During the 30 years war between Adal and Ethiopia, both countries suffered a catastrophic depopulation due to war casualties, peasants abandoning the fields, famine, disease and widespread slavery by the part of Adal to cover the costs of the war.

	date = { day = 0 month = january year = 1529 }
	offset = 300
	deathdate = { day = 0 month = january year = 1560 }

	action_a = {
		name = "ACTIONNAME338120A" #Depopulation in Gonder (Welo)
		command = { type = population which = 1516 value = -3000 } #Welo
		command = { type = provincetax which = 1516 value = -1 } #Welo
	}
}
#(1529-1560) Shewa ravaged by war
#by Fodoron
event = {
	id = 338121
	trigger = {
		OR = {
			owned = { province = 1517 data = ETH } #Ethiopia
			owned = { province = 1517 data = ADA } #Adal
		}
		war = { country = ETH country = ADA }
	}
	random = no
	province = 1517 #Shewa
	name = "EVENTNAME338121" #Shewa ravaged by war
	desc = "EVENTHIST338116"
	#-#During the 30 years war between Adal and Ethiopia, both countries suffered a catastrophic depopulation due to war casualties, peasants abandoning the fields, famine, disease and widespread slavery by the part of Adal to cover the costs of the war.

	date = { day = 0 month = january year = 1529 }
	offset = 300
	deathdate = { day = 0 month = january year = 1560 }

	action_a = {
		name = "ACTIONNAME338121A" #Depopulation in Shewa
		command = { type = population which = 1517 value = -5000 } #Shewa
		command = { type = provincetax which = 1517 value = -2 } #Shewa
		command = { type = provincemanpower which = 1517 value = -1 } #Shewa
	}
}
#(1529-1560) Harar ravaged by war
#by Fodoron
event = {
	id = 338122
	trigger = {
		OR = {
			owned = { province = 1518 data = ETH } #Ethiopia
			owned = { province = 1518 data = ADA } #Adal
		}
		war = { country = ETH country = ADA }
	}
	random = no
	province = 1518 #Arsi
	name = "EVENTNAME338122" #Harar ravaged by war
	desc = "EVENTHIST338116"
	#-#During the 30 years war between Adal and Ethiopia, both countries suffered a catastrophic depopulation due to war casualties, peasants abandoning the fields, famine, disease and widespread slavery by the part of Adal to cover the costs of the war.

	date = { day = 0 month = january year = 1529 }
	offset = 300
	deathdate = { day = 0 month = january year = 1560 }

	action_a = {
		name = "ACTIONNAME338122A" #Depopulation in Harar (Arsi)
		command = { type = population which = 1518 value = -3000 } #Arsi
	}
}
#(1529-1560) Harerge ravaged by war
#by Fodoron
event = {
	id = 338123
	trigger = {
		OR = {
			owned = { province = 1519 data = ETH } #Ethiopia
			owned = { province = 1519 data = ADA } #Adal
		}
		war = { country = ETH country = ADA }
	}
	random = no
	province = 1519 #Harerge
	name = "EVENTNAME338123" #Harerge ravaged by war
	desc = "EVENTHIST338116"
	#-#During the 30 years war between Adal and Ethiopia, both countries suffered a catastrophic depopulation due to war casualties, peasants abandoning the fields, famine, disease and widespread slavery by the part of Adal to cover the costs of the war.

	date = { day = 0 month = january year = 1529 }
	offset = 300
	deathdate = { day = 0 month = january year = 1560 }

	action_a = {
		name = "ACTIONNAME338123A" #Depopulation in Harerge
		command = { type = population which = 1519 value = -3000 } #Harerge
	}
}
#(1529-1560) Damot ravaged by war
#by Fodoron
event = {
	id = 338124
	trigger = {
		OR = {
			owned = { province = 1588 data = ETH } #Ethiopia
			owned = { province = 1588 data = ADA } #Adal
		}
		war = { country = ETH country = ADA }
	}
	random = no
	province = 1588 #Gonder
	name = "EVENTNAME338124" #Damot ravaged by war
	desc = "EVENTHIST338116"
	#-#During the 30 years war between Adal and Ethiopia, both countries suffered a catastrophic depopulation due to war casualties, peasants abandoning the fields, famine, disease and widespread slavery by the part of Adal to cover the costs of the war.

	date = { day = 0 month = january year = 1529 }
	offset = 300
	deathdate = { day = 0 month = january year = 1560 }

	action_a = {
		name = "ACTIONNAME338124A" #Depopulation in Damot (Gonder)
		command = { type = population which = 1588 value = -2000 } #Gonder
	}
}
#(1529-1560) Kefa ravaged by war
#by Fodoron
event = {
	id = 338125
	trigger = {
		OR = {
			owned = { province = 1589 data = ETH } #Ethiopia
			owned = { province = 1589 data = ADA } #Adal
		}
		war = { country = ETH country = ADA }
	}
	random = no
	province = 1589 #Kefa
	name = "EVENTNAME338125" #Kefa ravaged by war
	desc = "EVENTHIST338116"
	#-#During the 30 years war between Adal and Ethiopia, both countries suffered a catastrophic depopulation due to war casualties, peasants abandoning the fields, famine, disease and widespread slavery by the part of Adal to cover the costs of the war.

	date = { day = 0 month = january year = 1529 }
	offset = 300
	deathdate = { day = 0 month = january year = 1560 }

	action_a = {
		name = "ACTIONNAME338125A" #Depopulation in Kefa
		command = { type = population which = 1589 value = -3000 } #Kefa
		command = { type = provincetax which = 1589 value = -1 } #Kefa
		command = { type = provincemanpower which = 1589 value = -2 } #Kefa
		command = { type = provincereligion which = 1589 value = sunni } #Kefa
	}
}
#(1529-1560) Bale ravaged by war
#by Fodoron
event = {
	id = 338126
	trigger = {
		OR = {
			owned = { province = 1590 data = ETH } #Ethiopia
			owned = { province = 1590 data = ADA } #Adal
		}
		war = { country = ETH country = ADA }
	}
	random = no
	province = 1590 #Bale
	name = "EVENTNAME338126" #Bale ravaged by war
	desc = "EVENTHIST338116"
	#-#During the 30 years war between Adal and Ethiopia, both countries suffered a catastrophic depopulation due to war casualties, peasants abandoning the fields, famine, disease and widespread slavery by the part of Adal to cover the costs of the war.

	date = { day = 0 month = january year = 1529 }
	offset = 300
	deathdate = { day = 0 month = january year = 1560 }

	action_a = {
		name = "ACTIONNAME338126A" #Depopulation in Bale
		command = { type = population which = 1590 value = -3000 } #Bale
		command = { type = provincetax which = 1590 value = -1 } #Bale
		command = { type = provincemanpower which = 1590 value = -1 } #Bale
		command = { type = provincereligion which = 1590 value = sunni } #Bale
	}
}
#End of Horn of Africa depopulation events
#-----------------------------------------------------------------------------------------------

#(1530-1798) The sale of Malta to the Hospitallers - Ahistorical
#by Fodoron
event = {
	id = 338163
	trigger = {
		religion = catholic
		exists = KNI
		relation = { country = KNI data = 0 }
		NOT = {
			owned = { province = 819 data = KNI } #Malta (KNI should not get the event)
			event = 201000 #KNI: The Knights request the help of Spain
		}
	}
	random = no
	province = 819 #Malta
	name = "EVENTNAME338163" #The sale of Malta to the Hospitallers
	desc = "EVENTHIST338163"
	#-#The Order of St. John has shown interest in the acquisition of Malta. We could sell that worthless rock for 200 ducats and their vassalage. What shall we do?

	date = { day = 0 month = january year = 1530 }
	offset = 300
	deathdate = { day = 9 month = june year = 1798 }

	action_a = {
		name = "ACTIONNAME338163A" #We are interested
		command = { type = relation which = KNI value = 25 }
		command = { type = trigger which = 201001 } #KNI: The Purchase of Malta
	}
	action_b = {
		name = "ACTIONNAME338163B" #We are not interested
		command = { type = relation which = KNI value = -10 }
	}
}
#(1530-1798) We sold Malta - Ahistorical
#by Fodoron
event = {
	id = 338231 #triggered by KNI_201001 B
	random = no
	province = 819 #Malta
	name = "EVENTNAME338231" #We sold Malta
	desc = "EVENTHIST338231"
	#-#The Order of St. John has accepted our price tag on Malta.

	action_a = {
		name = "ACTIONNAME338231A" #Great deal
		command = { type = relation which = KNI value = 200 }
		command = { type = removecore which = 819 } #Malta
		command = { type = cedeprovince which = KNI value = 819 } #Malta
		command = { type = badboy value = -1 }
		command = { type = ADM which = 1 value = 48 }
		command = { type = treasury value = 200 }
		command = { type = vassal which = KNI }
		command = { type = relation which = PAP value = 50 }
		command = { type = relation which = TUR value = -50 }
		command = { type = relation which = ALD value = -50 }
	}
}

#(1530-1700) The Hospitallers request Malta
#by Fodoron
event = {
	id = 338026
	trigger = {
		NOT = { exists = KNI }
		OR = {
			religion = catholic
			religion = counterreform
		}
		NOT = {
			owned = { province = 819 data = VEN } #Venice loathed the Knights
		}
		NOT = { #not before specific events and not if country refused
			AND = {
				owned = { province = 819 data = SPA }
				core = { province = 819 data = SPA }
			}
			AND = {
				owned = { province = 819 data = ARG }
				core = { province = 819 data = ARG }
			}
		}
	}
	random = no
	province = 819 #Malta
	name = "EVENTNAME338026" #The Hospitallers request Malta
	desc = "EVENTHIST338026"
	#-#When the Knights Hospitallers of Jerusalem were expelled from Rhodes in 1523, they wandered homeless in Italy at risk of disappearing, until Charles V offered them the island of Malta as their new home. They moved there in 1530, and defended it until 1798. As the current owner of Malta, the Grand Master of the Hospitallers is humbly requesting permission to move there to better fight defending the religion.

	date = { day = 0 month = january year = 1530 }
	offset = 100
	deathdate = { day = 0 month = january year = 1700 }

	action_a = {
		name = "ACTIONNAME338026A" #Help the Knights of St. John
		command = { type = independence which = KNI }
		command = { type = relation which = PAP value = 50 }
		command = { type = badboy value = -3 }
	}
	action_b = {
		name = "ACTIONNAME338026B" #Military Orders are a thing of the past
		command = { type = vp value = -5 }
	}
}

#(1531) The 1531 Earthquake of Lisbon
event = {
	id = 338070
	random = no
	province = 441
	name = "EVENTNAME338070" #The 1531 Earthquake of Lisbon
	desc = "EVENTHIST338070"
	#-#On January 26, 1531 Lisbon was hit by an earthquake that killed between 20,000 and 30,000 people.

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

	action_a = {
		name = "ACTIONNAME338070A" #Earthquake
		command = { type = population which = 441 value = -5000 } #Tago
		command = { type = population which = 732 value = -1000 } #Tangiers
		command = { type = population which = 733 value = -500 } #Fez
		command = { type = population which = 806 value = -500 } #Toubkal
	}
}

#(1531-1548) Aztecs convert to catholicism
#by Fodoron
event = {
	id = 338084
	trigger = {
		provincereligion = { province = 27 data = pagan } #Zacatecas
		religion = catholic
	}
	random = no
	province = 27 #Zacatecas
	name = "EVENTNAME338084" #Juan Diego Quauhtlatoatzin
	desc = "EVENTHIST338084"
	#-#Horrified by the bloody pagan beliefs of the Aztecs, and wishing to impose Catholicism on their new subjects, the Spaniards systematically destroyed the Aztec temples. One of the hundreds of temples destroyed was the temple of the goddess Tonantzin, located on Tepeyac Hill. Tonantzin was a manifestation dedicated to childbirth of the Earth Mother (Coatlicue). In 1521 the Aztec Quauhtlatoatzin was baptized by Franciscans and named Juan Diego. Between December 9 and 12, 1531, the Virgin of Guadalupe appeared at Tepeyac Hill four times to him speaking in Náhuatl, and performed the miracle of growing Spanish roses in winter and imprinting her image in his apron. The natives identified this dark skinned Virgin, that spoke Náhuatl with the goddess Tonantzin. The possibility of fusing their pre-Hispanic beliefs with the new religion triggered the massive conversion of millions of Aztecs. The first chuch was built in Tepeyac in 1533, in what is today the Basilica of Our Lady of Guadalupe. She was declared Patron of Mexico in 1737 and chosen as symbol for the independence of Mexico in 1810. Juan Diego died on May 30, 1548 and was beatified in 1990 and canonized in 2002 by Pope John Paul II.

	date = { day = 12 month = december year = 1531 }
	offset = 360
	deathdate = { day = 29 month = may year = 1548 }

	action_a = {
		name = "ACTIONNAME338084A" #Blessed Holy Virgin
		command = { type = provincereligion which = 27 value = catholic } #Zacatecas
		command = { type = provincereligion which = 24 value = catholic } #Jalisco
		command = { type = provincereligion which = 26 value = catholic } #Michoacán
		command = { type = provincereligion which = 25 value = catholic } #Saltillo
		command = { type = provincereligion which = 28 value = catholic } #Tampico
		command = { type = provincereligion which = 29 value = catholic } #Tlaxcala
		command = { type = provincereligion which = 30 value = catholic } #Atlixco
		command = { type = provincereligion which = 31 value = catholic } #Tehuantepec
		command = { type = provincereligion which = 32 value = catholic } #Tehuacan
		command = { type = provincereligion which = 33 value = catholic } #Guatemala
		command = { type = provincereligion which = 34 value = catholic } #Campeche
		command = { type = provincereligion which = 35 value = catholic } #Yucatan
		command = { type = provincereligion which = 41 value = catholic } #Rio Grande
		command = { type = provincereligion which = 23 value = catholic } #Coahuila
		command = { type = provincereligion which = 21 value = catholic } #Mazatlan
		command = { type = provincereligion which = 822 value = catholic } #Costa Rica
		command = { type = provincereligion which = 36 value = catholic } #Honduras
		command = { type = provinceculture which = 27 value = -1 } #Zacatecas
		command = { type = provinceculture which = 24 value = -1 } #Jalisco
		command = { type = provinceculture which = 26 value = -1 } #Michoacán
		command = { type = provinceculture which = 25 value = -1 } #Saltillo
		command = { type = provinceculture which = 28 value = -1 } #Tampico
		command = { type = provinceculture which = 29 value = -1 } #Tlaxcala
		command = { type = provinceculture which = 30 value = -1 } #Atlixco
		command = { type = provinceculture which = 31 value = -1 } #Tehuantepec
		command = { type = provinceculture which = 32 value = -1 } #Tehuacan
		command = { type = provinceculture which = 33 value = -1 } #Guatemala
		command = { type = provinceculture which = 34 value = -1 } #Campeche
		command = { type = provinceculture which = 35 value = -1 } #Yucatan
		command = { type = provinceculture which = 41 value = -1 } #Rio Grande
		command = { type = provinceculture which = 23 value = -1 } #Coahuila
		command = { type = provinceculture which = 21 value = -1 } #Mazatlan
		command = { type = provinceculture which = 36 value = -1 } #Honduras
		command = { type = provinceculture which = 822 value = -1 } #Costa Rica
		command = { type = addcore which = 27 } #Zacatecas
		command = { type = addcore which = 24 } #Jalisco
		command = { type = addcore which = 26 } #Michoac·n
		command = { type = addcore which = 25 } #Saltillo
		command = { type = addcore which = 28 } #Tampico
		command = { type = addcore which = 29 } #Tlaxcala
		command = { type = addcore which = 30 } #Atlixco
		command = { type = addcore which = 31 } #Tehuantepec
		command = { type = addcore which = 32 } #Tehuacan
		command = { type = addcore which = 33 } #Guatemala
		command = { type = addcore which = 34 } #Campeche
		command = { type = addcore which = 35 } #Yucatan
		command = { type = addcore which = 41 } #Rio Grande
		command = { type = addcore which = 23 } #Coahuila
		command = { type = addcore which = 21 } #Mazatlan
		command = { type = addcore which = 36 } #Honduras
		command = { type = addcore which = 822 } #Costa Rica
	}
}

#(1540-1620) Colonization of Wild Steppes
#should only happen to Poland or Lithuania
event = {
	id = 338213
	random = no
	trigger = {
		OR = {
			owned = { province = 462 data = POL }
			owned = { province = 462 data = LIT }
		}
	}
	province = 462 #Krementjug
	name = "EVENTNAME338213" #Colonization of Wild Steppes
	desc = "EVENTHIST338213"
	#-#During second half of XVIth century and at the beginning of XVIIth century Ukraine was intensively colonized by magnates. They offered peasants land in exchange for small rent, organizing defense against Tatars and not onerous dutes. However, these terms were offered for e.g. 20 years only. After this time has passed, many peasanst had been turned into serfs. This was an underlie of unrest and one of reasons why Khmelnitsky uprising had so huge initial successes.

	date = { day = 1 month = january year = 1540 }
	offset = 100
	deathdate = { day = 1 month = january year = 1620 }

	action_a = {
		name = "OK"
		command = { type = provinceculture which = 462 value = ruthenian } #Krementjug
	}
}

#-----------------------------------------------------------------------------------------------
#Holy Inquisition

#(1542-1546) The Holy Inquisition in other Italian Kingdoms (Spanish model inquisition)
event = {
	id = 338173
	trigger = {
		religion = catholic
		OR = {
			event = 3548 #PAP: Reorganization of the Holy Inquisition
			event = 236002 #MUS: Reorganization of the Holy Inquisition
		}
	}
	random = no
	province = 391 #Romagna
	name = "EVENTNAME338173" #The Holy Inquisition in Romagna
	desc = "EVENTHIST338173"
	#-#The Pope has decided to introduce in this province the Holy inquisition as a way to save the lives ot the Italian populations from the heretical doctrines coming from beyond the Alps. the Jesuits have already started to work at purging the least receptive subjects.

	date = { day = 1 month = january year = 1542 }
	offset = 200
	deathdate = { day = 29 month = december year = 1546 }

	action_a = {
		name = "ACTIONNAME3548A" #Spanish model inquisition
		command = { type = population which = 391 value = -2000 } #Romagna
		command = { type = provincereligion which = 391 value = catholic }
	}
}
#(1542-1546) The Holy Inquisition in other Italian Kingdoms (Spanish model inquisition)
event = {
	id = 338174
	trigger = {
		religion = catholic
		OR = {
			event = 3548 #PAP: Reorganization of the Holy Inquisition
			event = 236002 #MUS: Reorganization of the Holy Inquisition
		}
	}
	random = no
	province = 392 #Marche
	name = "EVENTNAME338174" #The Holy Inquisition in Marche
	desc = "EVENTHIST338173"
	#-#The Pope has decided to introduce in this province the Holy inquisition as a way to save the lives ot the Italian populations from the heretical doctrines coming from beyond the Alps. the Jesuits have already started to work at purging the least receptive subjects.

	date = { day = 1 month = january year = 1542 }
	offset = 200
	deathdate = { day = 29 month = december year = 1546 }

	action_a = {
		name = "ACTIONNAME3548A" #Spanish model inquisition
		command = { type = population which = 392 value = -2000 } #Marche
		command = { type = provincereligion which = 392 value = catholic }
	}
}
#(1542-1546) The Holy Inquisition in other Italian Kingdoms (Spanish model inquisition)
event = {
	id = 338175
	trigger = {
		religion = catholic
		OR = {
			event = 3548 #PAP: Reorganization of the Holy Inquisition
			event = 236002 #MUS: Reorganization of the Holy Inquisition
		}
	}
	random = no
	province = 393 #Napoli
	name = "EVENTNAME338175" #The Holy Inquisition in Napoli
	desc = "EVENTHIST338173"
	#-#The Pope has decided to introduce in this province the Holy inquisition as a way to save the lives ot the Italian populations from the heretical doctrines coming from beyond the Alps. the Jesuits have already started to work at purging the least receptive subjects.

	date = { day = 1 month = january year = 1542 }
	offset = 200
	deathdate = { day = 29 month = december year = 1546 }

	action_a = {
		name = "ACTIONNAME3548A" #Spanish model inquisition
		command = { type = population which = 393 value = -2000 } #Napoli
		command = { type = provincereligion which = 393 value = catholic }
	}
}
#(1542-1546) The Holy Inquisition in other Italian Kingdoms (Spanish model inquisition)
event = {
	id = 338176
	trigger = {
		religion = catholic
		OR = {
			event = 3548 #PAP: Reorganization of the Holy Inquisition
			event = 236002 #MUS: Reorganization of the Holy Inquisition
		}
	}
	random = no
	province = 394 #Apulia
	name = "EVENTNAME338176" #The Holy Inquisition in Apulia
	desc = "EVENTHIST338173"
	#-#The Pope has decided to introduce in this province the Holy inquisition as a way to save the lives ot the Italian populations from the heretical doctrines coming from beyond the Alps. the Jesuits have already started to work at purging the least receptive subjects.

	date = { day = 1 month = january year = 1542 }
	offset = 200
	deathdate = { day = 29 month = december year = 1546 }

	action_a = {
		name = "ACTIONNAME3548A" #Spanish model inquisition
		command = { type = population which = 394 value = -2000 } #Apulia
		command = { type = provincereligion which = 394 value = catholic }
	}
}
#(1542-1546) The Holy Inquisition in other Italian Kingdoms (Spanish model inquisition)
event = {
	id = 338177
	trigger = {
		religion = catholic
		OR = {
			event = 3548 #PAP: Reorganization of the Holy Inquisition
			event = 236002 #MUS: Reorganization of the Holy Inquisition
		}
	}
	random = no
	province = 399 #Roma
	name = "EVENTNAME338177" #The Holy Inquisition in Roma
	desc = "EVENTHIST338173"
	#-#The Pope has decided to introduce in this province the Holy inquisition as a way to save the lives ot the Italian populations from the heretical doctrines coming from beyond the Alps. the Jesuits have already started to work at purging the least receptive subjects.

	date = { day = 1 month = january year = 1542 }
	offset = 200
	deathdate = { day = 29 month = december year = 1546 }

	action_a = {
		name = "ACTIONNAME3548A" #Spanish model inquisition
		command = { type = population which = 399 value = -2000 } #Roma
		command = { type = provincereligion which = 399 value = catholic }
	}
}
#(1542-1546) The Holy Inquisition in other Italian Kingdoms (Spanish model inquisition)
event = {
	id = 338178
	trigger = {
		religion = catholic
		OR = {
			event = 3548 #PAP: Reorganization of the Holy Inquisition
			event = 236002 #MUS: Reorganization of the Holy Inquisition
		}
	}
	random = no
	province = 400 #Siena
	name = "EVENTNAME338178" #The Holy Inquisition in Siena
	desc = "EVENTHIST338173"
	#-#The Pope has decided to introduce in this province the Holy inquisition as a way to save the lives ot the Italian populations from the heretical doctrines coming from beyond the Alps. the Jesuits have already started to work at purging the least receptive subjects.

	date = { day = 1 month = january year = 1542 }
	offset = 200
	deathdate = { day = 29 month = december year = 1546 }

	action_a = {
		name = "ACTIONNAME3548A" #Spanish model inquisition
		command = { type = population which = 400 value = -2000 } #Siena
		command = { type = provincereligion which = 400 value = catholic }
	}
}
#(1542-1546) The Holy Inquisition in other Italian Kingdoms (Spanish model inquisition)
event = {
	id = 338179
	trigger = {
		religion = catholic
		OR = {
			event = 3548 #PAP: Reorganization of the Holy Inquisition
			event = 236002 #MUS: Reorganization of the Holy Inquisition
		}
	}
	random = no
	province = 401 #Firenze
	name = "EVENTNAME338179" #The Holy Inquisition in Firenze
	desc = "EVENTHIST338173"
	#-#The Pope has decided to introduce in this province the Holy inquisition as a way to save the lives ot the Italian populations from the heretical doctrines coming from beyond the Alps. the Jesuits have already started to work at purging the least receptive subjects.

	date = { day = 1 month = january year = 1542 }
	offset = 200
	deathdate = { day = 29 month = december year = 1546 }

	action_a = {
		name = "ACTIONNAME3548A" #Spanish model inquisition
		command = { type = population which = 401 value = -2000 } #Firenze
		command = { type = provincereligion which = 401 value = catholic }
	}
}
#(1542-1546) The Holy Inquisition in other Italian Kingdoms (Spanish model inquisition)
event = {
	id = 338180
	trigger = {
		religion = catholic
		OR = {
			event = 3548 #PAP: Reorganization of the Holy Inquisition
			event = 236002 #MUS: Reorganization of the Holy Inquisition
		}
	}
	random = no
	province = 402 #Emilia
	name = "EVENTNAME338180" #The Holy Inquisition in Emilia
	desc = "EVENTHIST338173"
	#-#The Pope has decided to introduce in this province the Holy inquisition as a way to save the lives ot the Italian populations from the heretical doctrines coming from beyond the Alps. the Jesuits have already started to work at purging the least receptive subjects.

	date = { day = 1 month = january year = 1542 }
	offset = 200
	deathdate = { day = 29 month = december year = 1546 }

	action_a = {
		name = "ACTIONNAME3548A" #Spanish model inquisition
		command = { type = population which = 402 value = -2000 } #Emilia
		command = { type = provincereligion which = 402 value = catholic }
	}
}
#-----------------------------------------------------------------------------------------------
#(1542-1546) The Holy Inquisition in other Italian Kingdoms (Moderate Inquisition)
event = {
	id = 338181
	trigger = {
		religion = catholic
		OR = {
			event = 3548 #PAP: Reorganization of the Holy Inquisition
			event = 236002 #MUS: Reorganization of the Holy Inquisition
		}
		OR = {
			owned = { province = 391 data = PAP }
			relation = { country = PAP data = 150 }
		}
	}
	random = no
	province = 391 #Romagna
	name = "EVENTNAME338173" #The Holy Inquisition in Romagna
	desc = "EVENTHIST338173"
	#-#The Pope has decided to introduce in this province the Holy inquisition as a way to save the lives ot the Italian populations from the heretical doctrines coming from beyond the Alps. the Jesuits have already started to work at purging the least receptive subjects.

	date = { day = 1 month = january year = 1542 }
	offset = 200
	deathdate = { day = 29 month = december year = 1546 }

	action_a = {
		name = "ACTIONNAME3548B" #Moderate Inquisition
		command = { type = population which = 391 value = -1000 } #Romagna
		command = { type = provincereligion which = 391 value = catholic }
	}
}
#(1542-1546) The Holy Inquisition in other Italian Kingdoms (Moderate Inquisition)
event = {
	id = 338182
	trigger = {
		religion = catholic
		OR = {
			event = 3548 #PAP: Reorganization of the Holy Inquisition
			event = 236002 #MUS: Reorganization of the Holy Inquisition
		}
		OR = {
			owned = { province = 392 data = PAP }
			relation = { country = PAP data = 150 }
		}
	}
	random = no
	province = 392 #Marche
	name = "EVENTNAME338174" #The Holy Inquisition in Marche
	desc = "EVENTHIST338173"
	#-#The Pope has decided to introduce in this province the Holy inquisition as a way to save the lives ot the Italian populations from the heretical doctrines coming from beyond the Alps. the Jesuits have already started to work at purging the least receptive subjects.

	date = { day = 1 month = january year = 1542 }
	offset = 200
	deathdate = { day = 29 month = december year = 1546 }

	action_a = {
		name = "ACTIONNAME3548B" #Moderate Inquisition
		command = { type = population which = 392 value = -1000 } #Marche
		command = { type = provincereligion which = 392 value = catholic }
	}
}
#(1542-1546) The Holy Inquisition in other Italian Kingdoms (Moderate Inquisition)
event = {
	id = 338183
	trigger = {
		religion = catholic
		OR = {
			event = 3548 #PAP: Reorganization of the Holy Inquisition
			event = 236002 #MUS: Reorganization of the Holy Inquisition
		}
		OR = {
			owned = { province = 393 data = PAP }
			relation = { country = PAP data = 150 }
		}
	}
	random = no
	province = 393 #Napoli
	name = "EVENTNAME338175" #The Holy Inquisition in Napoli
	desc = "EVENTHIST338173"
	#-#The Pope has decided to introduce in this province the Holy inquisition as a way to save the lives ot the Italian populations from the heretical doctrines coming from beyond the Alps. the Jesuits have already started to work at purging the least receptive subjects.

	date = { day = 1 month = january year = 1542 }
	offset = 200
	deathdate = { day = 29 month = december year = 1546 }

	action_a = {
		name = "ACTIONNAME3548B" #Moderate Inquisition
		command = { type = population which = 393 value = -1000 } #Napoli
		command = { type = provincereligion which = 393 value = catholic }
	}
}
#(1542-1546) The Holy Inquisition in other Italian Kingdoms (Moderate Inquisition)
event = {
	id = 338184
	trigger = {
		religion = catholic
		OR = {
			event = 3548 #PAP: Reorganization of the Holy Inquisition
			event = 236002 #MUS: Reorganization of the Holy Inquisition
		}
		OR = {
			owned = { province = 394 data = PAP }
			relation = { country = PAP data = 150 }
		}
	}
	random = no
	province = 394 #Apulia
	name = "EVENTNAME338176" #The Holy Inquisition in Apulia
	desc = "EVENTHIST338173"
	#-#The Pope has decided to introduce in this province the Holy inquisition as a way to save the lives ot the Italian populations from the heretical doctrines coming from beyond the Alps. the Jesuits have already started to work at purging the least receptive subjects.

	date = { day = 1 month = january year = 1542 }
	offset = 200
	deathdate = { day = 29 month = december year = 1546 }

	action_a = {
		name = "ACTIONNAME3548B" #Moderate Inquisition
		command = { type = population which = 394 value = -1000 } #Apulia
		command = { type = provincereligion which = 394 value = catholic }
	}
}
#(1542-1546) The Holy Inquisition in other Italian Kingdoms (Moderate Inquisition)
event = {
	id = 338185
	trigger = {
		religion = catholic
		OR = {
			event = 3548 #PAP: Reorganization of the Holy Inquisition
			event = 236002 #MUS: Reorganization of the Holy Inquisition
		}
		OR = {
			owned = { province = 399 data = PAP }
			relation = { country = PAP data = 150 }
		}
	}
	random = no
	province = 399 #Roma
	name = "EVENTNAME338177" #The Holy Inquisition in Roma
	desc = "EVENTHIST338173"
	#-#The Pope has decided to introduce in this province the Holy inquisition as a way to save the lives ot the Italian populations from the heretical doctrines coming from beyond the Alps. the Jesuits have already started to work at purging the least receptive subjects.

	date = { day = 1 month = january year = 1542 }
	offset = 200
	deathdate = { day = 29 month = december year = 1546 }

	action_a = {
		name = "ACTIONNAME3548B" #Moderate Inquisition
		command = { type = population which = 399 value = -1000 } #Roma
		command = { type = provincereligion which = 399 value = catholic }
	}
}
#(1542-1546) The Holy Inquisition in other Italian Kingdoms (Moderate Inquisition)
event = {
	id = 338186
	trigger = {
		religion = catholic
		OR = {
			event = 3548 #PAP: Reorganization of the Holy Inquisition
			event = 236002 #MUS: Reorganization of the Holy Inquisition
		}
		OR = {
			owned = { province = 400 data = PAP }
			relation = { country = PAP data = 150 }
		}
	}
	random = no
	province = 400 #Siena
	name = "EVENTNAME338178" #The Holy Inquisition in Siena
	desc = "EVENTHIST338173"
	#-#The Pope has decided to introduce in this province the Holy inquisition as a way to save the lives ot the Italian populations from the heretical doctrines coming from beyond the Alps. the Jesuits have already started to work at purging the least receptive subjects.

	date = { day = 1 month = january year = 1542 }
	offset = 200
	deathdate = { day = 29 month = december year = 1546 }

	action_a = {
		name = "ACTIONNAME3548B" #Moderate Inquisition
		command = { type = population which = 400 value = -1000 } #Siena
		command = { type = provincereligion which = 400 value = catholic }
	}
}
#(1542-1546) The Holy Inquisition in other Italian Kingdoms (Moderate Inquisition)
event = {
	id = 338187
	trigger = {
		religion = catholic
		OR = {
			event = 3548 #PAP: Reorganization of the Holy Inquisition
			event = 236002 #MUS: Reorganization of the Holy Inquisition
		}
		OR = {
			owned = { province = 401 data = PAP }
			relation = { country = PAP data = 150 }
		}
	}
	random = no
	province = 401 #Firenze
	name = "EVENTNAME338179" #The Holy Inquisition in Firenze
	desc = "EVENTHIST338173"
	#-#The Pope has decided to introduce in this province the Holy inquisition as a way to save the lives ot the Italian populations from the heretical doctrines coming from beyond the Alps. the Jesuits have already started to work at purging the least receptive subjects.

	date = { day = 1 month = january year = 1542 }
	offset = 200
	deathdate = { day = 29 month = december year = 1546 }

	action_a = {
		name = "ACTIONNAME3548B" #Moderate Inquisition
		command = { type = population which = 401 value = -1000 } #Firenze
		command = { type = provincereligion which = 401 value = catholic }
	}
}
#(1542-1546) The Holy Inquisition in other Italian Kingdoms (Moderate Inquisition)
event = {
	id = 338188
	trigger = {
		religion = catholic
		OR = {
			event = 3548 #PAP: Reorganization of the Holy Inquisition
			event = 236002 #MUS: Reorganization of the Holy Inquisition
		}
		OR = {
			owned = { province = 402 data = PAP }
			relation = { country = PAP data = 150 }
		}
	}
	random = no
	province = 402 #Emilia
	name = "EVENTNAME338180" #The Holy Inquisition in Emilia
	desc = "EVENTHIST338173"
	#-#The Pope has decided to introduce in this province the Holy inquisition as a way to save the lives ot the Italian populations from the heretical doctrines coming from beyond the Alps. the Jesuits have already started to work at purging the least receptive subjects.

	date = { day = 1 month = january year = 1542 }
	offset = 200
	deathdate = { day = 29 month = december year = 1546 }

	action_a = {
		name = "ACTIONNAME3548B" #Moderate Inquisition
		command = { type = population which = 402 value = -1000 } #Emilia
		command = { type = provincereligion which = 402 value = catholic }
	}
}
#End of Holy Inquisition
#-----------------------------------------------------------------------------------------------

#-----------------------------------------------------------------------------------------------
#(1542) King Henry's Offer
#should only happen to Ireland or Irish minors
event = {
	id = 338082
	trigger = {
		OR = {
			owned = { province = 232 data = EIR }
			owned = { province = 232 data = CON }
			owned = { province = 232 data = ULS }
			owned = { province = 232 data = DES }
			owned = { province = 232 data = LEI }
		}
		exists = ENG
	}
	random = no
	province = 232 #Ulster
	name = "EVENTNAME338082" #King Henry's Offer
	desc = "EVENTHIST338082"
	#-#The King of England wishes to bring the Irish leaders into a closer relationship with England. Therefore he has offered to give our noblemen English titles, making our Irish Kings English earls in exchange for swearing fealty to him. Accepting this offer might keep the English from trying to invade us all the time, but it will come at the cost of our freedom and the province of Ulster too if we can afford it. Do we accept?

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

	action_a = {
		name = "ACTIONNAME338082A" #Yes, freedom is a relative concept
		command = { type = relation which = ENG value = 200 }
		command = { type = trigger which = 3827 } #ENG: King Henry's Offer
		command = { type = domestic which = centralization value = 1 }
		command = { type = domestic which = aristocracy value = 1 }
		command = { type = trigger which = 338083 } #ProvinceSpec*232: King Henry's Offer Consequence
	}
	action_b = {
		name = "ACTIONNAME338082B" #No, the Emerald Isle will always be free!
		command = { type = relation which = ENG value = -200 }
		command = { type = trigger which = 3828 } #ENG: King Henry's Offer
		command = { type = domestic which = centralization value = -1 }
		command = { type = domestic which = innovative value = 1 }
		command = { type = sleepevent which = 3829 } #EIR: Hugh O'Neill's Irish Rebellion
		command = { type = sleepevent which = 356000 } #CON: Hugh O'Neill's Irish Rebellion
		command = { type = sleepevent which = 379000 } #LEI: Hugh O'Neill's Irish Rebellion
		command = { type = sleepevent which = 387000 } #DES: Hugh O'Neill's Irish Rebellion
		command = { type = sleepevent which = 414000 } #ULS: Hugh O'Neill's Irish Rebellion
	}
}
event = {
	id = 338083 #triggered by ProvinceSpec_338082 A
	trigger = {
		OR = {
			owned = { province = 231 data = -1 }
			owned = { province = 233 data = -1 }
			owned = { province = 234 data = -1 }
			owned = { province = 235 data = -1 }
		}
		NOT = { #No other possible Celtic province in Europe in order to avoid weird possible capital move
			owned = { province = 236 data = -1 } #The Highlands
			owned = { province = 237 data = -1 } #The Grampians
			owned = { province = 238 data = -1 } #Lothian
			owned = { province = 239 data = -1 } #Strathclyde
			owned = { province = 243 data = -1 } #Wales
			owned = { province = 414 data = -1 } #Armor
			owned = { province = 415 data = -1 } #Bretagne
			owned = { province = 416 data = -1 } #Morbihan
		}
		NOT = { owned = { province = 232 data = ULS } }
	}
	random = no
	province = 232 #Ulster
	name = "EVENTNAME338083" #King Henry's Offer Consequence
	desc = "EVENTHIST338083"
	#-#We accepted King Henry's Offer... we must pay the price now!

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = ENG value = 232 } #Ulster
	}
}
#-----------------------------------------------------------------------------------------------

#(1543) Andreas Vesalius publishes "De humani corporis fabrica"
#by Twoflower - modified by YodaMaster
#should only happen to Burgundy, France or Austria
event = {
	id = 338054
	trigger = {
		owned = { province = 378 data = -1 }
		OR = {
			owned = { province = 378 data = BUR }
			owned = { province = 378 data = FRA }
			owned = { province = 378 data = HAB }
		}
		domestic = { type = innovative value = 2 }
	}
	random = no
	province = 378 #Brabant
	name = "EVENTNAME338054" #Vesalius publishes 'De humani corporis fabrica'
	desc = "EVENTHIST338054"
	#-#Andreas Vesalius from Brussels is recognized as one of the founders of modern anatomy. The son of a court chemist studied in Paris, Leuven and Padua and published his main work, De humanis corporis fabrica, in 1543. In this revolutionary book, against traditional doctrines and the church's dogma, he stated that knowledge about the structure of the human body can only be gained from the human corpse. Authorities showed their approval of these teachings by employing Vesalius as court doctor in 1544, serving the country for his whole life. He died returning from a pilgrimage to Jerusalem on the greek island of Zakynthos.

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

	action_a = {
		name = "ACTIONNAME338054A" #Employ this brillant man
		command = { type = infra value = 50 }
		command = { type = relation which = PAP value = -30 }
	}
	action_b = {
		name = "ACTIONNAME338054B" #Allow his book, but don't employ him
		command = { type = infra value = 25 }
		command = { type = relation which = PAP value = -10 }
	}
	action_c = {
		name = "ACTIONNAME338054C" #Ban these heretic teachings
		command = { type = domestic which = innovative value = -1 }
		command = { type = relation which = PAP value = 30 }
	}
}

#-----------------------------------------------------------------------------------------------
#"War of Arauco" Sequence
#by Fodoron

#(1544-1556) The Mapuches
#should only happen to Spain
event = {
	id = 338189
	trigger = {
		owned = { province = 176 data = SPA } #Talca
		NOT = {
			provincereligion = { province = 176 data = pagan } #Talca
		}
	}
	random = no
	province = 176
	name = "EVENTNAME338189" #The Mapuches
	desc = "EVENTHIST338189"
	#-#The Mapuches or Araucanians that inhabited the Central-South part of Chile proved to be one of the most difficult native nations to conquer, given their war prowess and the lack of resources of the Spanish army in this remote area of the empire. The war of Arauco started in 1544, after the city of Santiago had been destroyed by chieftain Michimaloco. In response Pedro de Valdivia initiated a campaign to pacify the region, and was attacked at Quilacura. Despite his victory, he saw that the Araucanians were of great courage. After returning from Peru in 1550, Valdivia continued his campaigns until 1553, when he was defeated and captured by Lautaro and killed in torment. The Araucanian offensive continued with the destruction of Concepción in 1556.

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

	action_a = {
		name = "ACTIONNAME338189A" #Perhaps we shold have left the Mapuches alone
		command = { type = revolt which = 176 } #Talca
		command = { type = revolt which = 176 } #Talca
		command = { type = province_revoltrisk which = 176 value = 4 } #Talca
	}
}
#(1592-1605) Araucanian raising
#should only happen to Spain
event = {
	id = 338190
	trigger = {
		owned = { province = 176 data = SPA } #Talca
		NOT = {
			provincereligion = { province = 176 data = pagan } #Talca
		}
	}
	random = no
	province = 176
	name = "EVENTNAME338190" #Araucanian raising
	desc = "EVENTHIST338190"
	#-#In 1592 a new governor, Martín García Óñez de Loyola arrived an started offering peace treaties to the always rebellious Araucanians. They interpreted it as a sign of weakness and started a general rebellion. The governor was defeated at Curalaba and beheaded, and the Spaniards had to retreat North of the Bio-Bio River. The city of Valdivia was abandoned and burned by the Araucanians. Alonso de Ribera, a veteran of the Tercios, took up the defense and established a fortified line of defense at the Bio-Bio River.

	date = { day = 0 month = january year = 1592 }
	offset = 100
	deathdate = { day = 0 month = january year = 1605 }

	action_a = {
		name = "ACTIONNAME338189A" #Perhaps we shold have left the Mapuches alone
		command = { type = revolt which = 176 } #Talca
		command = { type = revolt which = 176 } #Talca
		command = { type = province_revoltrisk which = 176 value = 3 } #Talca
	}
}
#(1665-1720) The end of the Arauco war
#should only happen to Spain
event = {
	id = 338191
	trigger = {
		owned = { province = 176 data = SPA } #Talca
		NOT = {
			provincereligion = { province = 176 data = pagan } #Talca
		}
	}
	random = no
	province = 176
	name = "EVENTNAME338191" #The end of the Arauco war
	desc = "EVENTHIST338191"
	#-#The rebellion of 1655 was the last serious attempt to expel the Spaniards from the Arauco, but the risk came mostly from corruption and ineptitude by the Spanish governor. When Pedro Porter Casanate was named new governor, he quickly defeated the Araucanians. He still had some problems with one of his soldiers, the mestizo (mixed-blood) Alejandro de Vivar, whose mother had been kidnapped by the Mapuche and bore him with a chieftain before being rescued. Due to discrimination, the mestizo Alejo deserted to the Mapuche and became a successful war leader until he was killed, allegedly by his own wives, in 1660. In 1645 Valdivia had been repopulated, and in 1657 Concepción was rebuilt after an earthquake. Spanish presence became permanent and the Araucanians, although not totally submitted, became only a minor nuisance.

	date = { day = 0 month = january year = 1655 }
	offset = 300
	deathdate = { day = 0 month = january year = 1720 }

	action_a = {
		name = "ACTIONNAME338191A" #Finally peace
		command = { type = revolt which = 176 } #Talca
		command = { type = stability value = 1 }
		command = { type = province_revoltrisk which = 176 value = -10 } #Talca
	}
}
#End of "War of Arauco" Sequence
#-----------------------------------------------------------------------------------------------

#(1544-1659) Portuguese Settlement at Quelimane
event = {
	id = 338290
	trigger = {
		exists = POR
		owned = { province = 768 data = POR } #Mtawa
		continent = africa
	}
	random = no
	province = 770 #Nampuia
	name = "EVENTNAME338290" #Portuguese Settlement at Quelimane
	desc = "EVENTHIST338290"
	#-#In 1544 the Portuguese founded a trading station at Quelimane. Portugal used Quelimane as a starting point to expansion along the Zambezi river.

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

	action_a = {
		name = "ACTIONNAME338289A" #Damn Portuguese!
		command = { type = cedeprovince which = POR value = 770 }
		command = { type = relation which = POR value = -100 }
	}
}

#(1545) Devastating Earthquake
event = {
	id = 338087
	random = no
	province = 1550 #Lampang
	name = "EVENTNAME338087" #Devastating Earthquake
	desc = "EVENTHIST338087"
	#-#In 1545 AD, Chiang Mai suffered a devastating earthquake.

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

	action_a = {
		name = "OK"
		command = { type = provincetax which = 1550 value = -1 } #Lampang
		command = { type = population which = 1550 value = -2000 } #Lampang
		command = { type = trigger which = 199002 } #LNA: Effect of the earthquake
	}
}

#(1549-1551) The Rebellion of Siena
event = {
	id = 338431
	trigger = {
		OR = { #whether the Italian Wars are still on
			emperor = yes
			OR = { 
				core_claim = { province = 389 data = SPA } #Lombardia
				core_national = { province = 389 data = SPA } #Lombardia
			}
			core = { province = 393 data = SPA } #Napoli
			event = 17351 #SPA: Vassalizes SIE
			event = 17354 #HAB: Vassalizes SIE
		}
		OR = {
			AND = {
				owned = { province = 400 data = SPA } #Siena
				control = { province = 400 data = SPA }
			}
			AND = {
				owned = { province = 400 data = HAB } #Siena
				control = { province = 400 data = HAB }
			}
		}
		NOT = {
			domestic = { type = serfdom value = 1 }
		}
		exists = FRA
	}
	random = no
	province = 400 #Siena
	name = "EVENTNAME338431" #The Rebellion of Siena
	desc = "EVENTHIST338431"
	#-#In 1549 after increasing turmoil in Siena, the Spanish representative of the city, Don Diego di Mendoza, decided to build a fortress to ensure Spanish control of the territory. This decision was received with horror by the Sienese who begged with Charles V not to proceed. He refused, and several Sienese citizens in Rome received aid from French agents and collected an army. In 1552, as they marched on Siena the people revolted and threw out the Spanish troops, and an independent Siena took up a pro-French policy.

	date = { day = 0 month = january year = 1549 }
	offset = 70
	deathdate = { day = 29 month = december year = 1551 }

	action_a = {
		name = "ALAS"
		command = { type = revolt which = 400 } #Siena
		command = { type = revolt which = 400 }
		command = { type = DIP which = -2 value = 6 }
		command = { type = diplomats value = -1 } #Mendoza
		command = { type = desertion which = 400 value = 10000 }
		command = { type = relation which = FRA value = -25 }
		command = { type = independence which = SIE }
	}
}

#-----------------------------------------------------------------------------------------------
#Tallest buildings -I- by sabular

#(1549) The spire of Lincoln cathedral - Christian
event = {
	id = 338071
	trigger = {
		OR = {
			provincereligion = { province = 245 data = catholic }
			provincereligion = { province = 245 data = counterreform }
			provincereligion = { province = 245 data = protestant }
			provincereligion = { province = 245 data = reformed }
			provincereligion = { province = 245 data = orthodox }
			provincereligion = { province = 245 data = miaphysite }
		}
	}
	random = no
	province = 245 #Lincoln
	name = "EVENTNAME338071" #Storm destroys the spire of Lincoln Cathedral
	desc = "EVENTHIST338071"
	#-#Lincoln Cathedral has been the tallest building in the world since 1311 with its 160 m spire. It was the first building taller than the pyramid of Giza. From 1311 till 1884 a succesion of Christian churches would hold the title of tallest building (they lost it to the Washington monument). In 1549 a storm destroyed its spire, but the cathedral would remain the tallest cathedral without a spire till the present. Should the spire have been rebuild, Lincoln Cathedral would have kept the record till 1884.

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

	action_a = {
		name = "ALAS"
		command = { type = vp value = -5 }
		command = { type = trigger which = 338072 } #ProvinceSpec: St. Olav's church tallest building
		command = { type = sleepevent which = 338076 } #ProvinceSpec: The spire of Lincoln cathedral - not Christian
	}
	action_b = {
		name = "ACTIONNAME338071B" #It shall be rebuilt
		command = { type = treasury value = -35 }
		command = { type = vp value = 10 }
		command = { type = sleepevent which = 338072 } #ProvinceSpec: St. Olav's church tallest building
		command = { type = sleepevent which = 338073 } #ProvinceSpec: St. Olav's church burned down
		command = { type = sleepevent which = 338074 } #ProvinceSpec: Notre Dame de Strasbourg tallest building
		command = { type = sleepevent which = 338076 } #ProvinceSpec: The spire of Lincoln cathedral - not Christian
	}
}
#(1549) The spire of Lincoln cathedral - not Christian
event = {
	id = 338076
	trigger = {
		NOT = {
			provincereligion = { province = 245 data = catholic }
			provincereligion = { province = 245 data = counterreform }
			provincereligion = { province = 245 data = protestant }
			provincereligion = { province = 245 data = reformed }
			provincereligion = { province = 245 data = orthodox }
			provincereligion = { province = 245 data = miaphysite }
		}
	}
	random = no
	province = 245 #Lincoln
	name = "EVENTNAME338071" #Storm destroys the spire of Lincoln Cathedral
	desc = "EVENTHIST338071"
	#-#Lincoln Cathedral has been the tallest building in the world since 1311 with its 160 m spire. It was the first building taller than the pyramid of Giza. From 1311 till 1884 a succesion of Christian churches would hold the title of tallest building (they lost it to the Washington monument). In 1549 a storm destroyed its spire, but the cathedral would remain the tallest cathedral without a spire till the present. Should the spire have been rebuild, Lincoln Cathedral would have kept the record till 1884.

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

	action_a = {
		name = "ALAS"
		command = { type = vp value = -5 }
		command = { type = trigger which = 338072 } #ProvinceSpec: St. Olav's church tallest building
		command = { type = sleepevent which = 338071 } #ProvinceSpec: The spire of Lincoln cathedral - Christian
	}
}
#(1549) St. Olav's church tallest building
event = {
	id = 338072 #triggered by ProvinceSpec_338071
	random = no
	province = 276 #Estonia
	name = "EVENTNAME338072" #St. Olav's church is the tallest building
	desc = "EVENTHIST338072"
	#-#When the spire of Lincoln Cathedral was destroyed by a storm in 1549, St. Olav's church in Reval (Tallinn) became the tallest building in the world. With 159 meter, it had only been slightly smaller than Lincoln Cathedral's 160 m.

	action_a = {
		name = "ACTIONNAME338072A" #We are the tallest
		command = { type = vp value = 10 }
	}
}
#End of Tallest buildings -I- by sabular
#-----------------------------------------------------------------------------------------------

#(1550) Jean Calvin and William of Orange
#should only happen to Netherlands
event = {
	id = 338230
	trigger = {
		religion = catholic
		AND = {
			owned = { province = 339 data = HOL }
			control = { province = 339 data = HOL }
		}
	}
	random = no
	province = 339 #Holland
	name = "EVENTNAME338230" #Jean Calvin in Holland
	desc = "EVENTHIST338230"
	#-#Calvinism swept through the Low Countries creating many zealous followers, who were swept up not only in religious reformation but nationalism as well.

	date = { day = 14 month = june year = 1550 }

	action_a = {
		name = "ACTIONNAME338230A" #Convert to Calvinism
		command = { type = religion which = reformed }
		command = { type = stability value = 1 }
		command = { type = domestic which = serfdom value = -2 }
		command = { type = domestic which = aristocracy value = -2 }
		command = { type = domestic which = centralization value = -2 }
	}
	action_b = {
		name = "ACTIONNAME338230B" #Remain Catholic
		command = { type = stability value = -2 }
		command = { type = revolt which = -1 }
		command = { type = domestic which = serfdom value = 1 }
		command = { type = domestic which = aristocracy value = 1 }
		command = { type = domestic which = centralization value = 1 }
	}
}

#(1554) Scholars seek haven in Burhampur
event = {
	id = 338099
	random = no
	province = 551 #Khandesh
	name = "EVENTNAME338099" #Scholars seek haven in Burhampur
	desc = "EVENTHIST338099"
	#-#The rivalries between members of the Arghun dynasty in Sindh sent many scholars fleeing the chaotic conditions in 1554. Many of them found a new home in Burhampur, which became known for its scholarly ways.

	date = { day = 1 month = january year = 1554 }
	offset = 360
	deathdate = { day = 1 month = january year = 1556 }

	action_a = {
		name = "ACTIONNAME338099A" #We welcome them with open arms
		command = { type = trade value = 100 }
		command = { type = infra value = 50 }
		command = { type = population which = 551 value = 500 } #Khandesh
	}
}

#-----------------------------------------------------------------------------------------------
#Silver at Guadalcanal Sequence

#(1556-1600) Silver discovered at Guadalcanal
event = {
	id = 338008
	random = no
	province = 443 #Andalusia
	name = "EVENTNAME338008" #Silver discovered at Guadalcanal
	desc = "EVENTHIST338008"
	#-#In 1555 silver was discovered at Guadalcanal, the first significant find of precious metals in the Iberian Peninsula since the turn of the millenium.

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

	action_a = {
		name = "EXCELLENT"
		command = { type = treasury value = 124 }
		command = { type = provincetax which = 443 value = 1 } #Andalusia
		command = { type = population which = 443 value = 750 }
	}
}
#(1559-1600) Guadalcanal is quickly depleted
event = {
	id = 338019
	trigger = {
		event = 338008
	}
	random = no
	province = 443 #Andalusia
	name = "EVENTNAME338019" #Guadalcanal quickly depleted
	desc = "EVENTHIST338019"
	#-#Unfortunately, the silver at Guadalcanal proved to be cheap to process, but limited in quantity.

	date = { day = 0 month = january year = 1559 }
	offset = 300
	deathdate = { day = 0 month = january year = 1600}

	action_a = {
		name = "ACTIONNAME338019A" #I knew it was too good to last!
		command = { type = treasury value = 85 }
	}
}
#(1588-1600) Guadalcanal exhausted
event = {
	id = 338069
	trigger = {
		event = 338019
	}
	random = no
	province = 443 #Andalusia
	name = "EVENTNAME338069" #Guadalcanal exhausted
	desc = "EVENTHIST338069"
	#-#By 1588 only paltry amounts of silver could be found at Guadalcanal.

	date = { day = 0 month = january year = 1588 }
	offset = 300
	deathdate = { day = 0 month = january year = 1600}

	action_a = {
		name = "OH_WELL"
		command = { type = provincetax which = 443 value = -1 } #Andalusia
		command = { type = population which = 443 value = -750 }
	}
}
#End of Silver at Guadalcanal Sequence
#-----------------------------------------------------------------------------------------------

#(1556) Shaanxi Earthquake
event = {
	id = 338408
	random = no
	province = 1563 #Shaanxi
	name = "EVENTNAME338408" #Shaanxi Earthquake
	desc = "EVENTHIST338408"
	#-#The 1556 Shaanxi earthquake or Hua County earthquake is the deadliest earthquake on record, killing approximately 830,000 people. It occurred on the morning of 23 January 1556 in Shaanxi, China. More than 97 counties in the provinces of Shaanxi, Shanxi, Henan, Gansu, Hebei, Shandong, Hubei, Hunan, Jiangsu and Anhui were affected. A 520 mile-wide area was destroyed and in some counties, sixty percent of the population was killed. Most of the population in the area at the time lived in artificial caves in loess cliffs, many of which collapsed during the catastrophic occurrence, with great loss of life.

	date = { day = 22 month = january year = 1556 }

	action_a = {
		name = "ACTIONNAME338408A" #Oh, the humanity!
		command = { type = population which = 1563 value = -100000 } #Shaanxi
		command = { type = provincetax which = 1563 value = -4 } #Shaanxi
		command = { type = trigger which = 338409 } #ProvinceSpec*1563: Effect of Shaanxi Earthquake in Shanxi
	}
}
#(1556) Effect of Shaanxi Earthquake in Shanxi
event = {
	id = 338409 #triggered by Provincespec_338408
	random = no
	province = 1562 #Shanxi
	name = "EVENTNAME338409" #Effect of Shaanxi Earthquake in Shanxi
	desc = "EVENTHIST338408"
	#-#The 1556 Shaanxi earthquake or Hua County earthquake is the deadliest earthquake on record, killing approximately 830,000 people. It occurred on the morning of 23 January 1556 in Shaanxi, China. More than 97 counties in the provinces of Shaanxi, Shanxi, Henan, Gansu, Hebei, Shandong, Hubei, Hunan, Jiangsu and Anhui were affected. A 520 mile-wide area was destroyed and in some counties, sixty percent of the population was killed. Most of the population in the area at the time lived in artificial caves in loess cliffs, many of which collapsed during the catastrophic occurrence, with great loss of life.

	action_a = {
		name = "ACTIONNAME338408A" #Oh, the humanity!
		command = { type = population which = 1562 value = -50000 } #Shanxi
		command = { type = provincetax which = 1562 value = -3 } #Shanxi
	}
}

#(1558) Smallpox epidemic at Ternate
event = {
	id = 338029
	random = no
	province = 713 #Tindore
	name = "EVENTNAME338029" #Smallpox epidemic at Ternate
	desc = "EVENTHIST338029"
	#-#Smallpox epidemic at Ternate.

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

	action_a = {
		name = "DARN"
		command = { type = population which = 713 value = -500 } #Tindore
		command = { type = desertion which = 713 value = 500 } #Tindore
		command = { type = provincetax which = 713 value = -1 } #Tindore
		command = { type = provincemanpower which = 713 value = -1 } #Tindore
	}
}

#-----------------------------------------------------------------------------------------------
#Oromo invasion events

#(1560-1700) Galla raids in Kefa
#by Fodoron
event = {
	id = 338127
	trigger = {
		event = 338125 #ProvinceSpec*1589: Kefa ravaged by war
		NOT = {
			countrysize = 14
			domestic = { type = centralization value = 8 }
		}
	}
	random = no
	province = 1589 #Kefa
	name = "EVENTNAME338127" #Galla raids in Kefa
	desc = "EVENTHIST338127"
	#-#The profound damage caused by the war between Ethiopia and Adal left most of the provinces defenceless and depopulated. The opportunity was seized by a large group living in Kenya, that had a strong population pressure. They called themselves the Oromo, but were called Galla by the Ethiopians. Their society was based on an age-set system known as gada, by which all males born within an 8 year period were grouped together for the rest of their lives. This system, together with the luba, or warrior class, gave them a great military advantage, and neither Ethiopia, nor Adal were in conditions of presenting an effective defense against such threat. The Oromo, thus, completely wrecked both states, and their plundering of crops and cattle caused yet another depopulation. However, the Oromo were profoundly divided in clans that fought each other, and were not concerned with establishing an empire or imposing their pagan beliefs.

	date = { day = 0 month = january year = 1560 }
	offset = 600
	deathdate = { day = 0 month = january year = 1700 }

	action_a = {
		name = "ACTIONNAME338127A" #Kefa attacked
		command = { type = population which = 1589 value = -3000 } #Kefa
		command = { type = provincetax which = 1589 value = -1 } #Kefa
		command = { type = provincemanpower which = 1589 value = -2 } #Kefa
		command = { type = domestic which = CENTRALIZATION value = -1 }
	}
}
#(1561-1700) Galla raids in Bale
#by Fodoron
event = {
	id = 338128
	trigger = {
		event = 338126 #ProvinceSpec*1590: Bale ravaged by war
		NOT = {
			countrysize = 14
			domestic = { type = centralization value = 8 }
		}
	}
	random = no
	province = 1590 #Bale
	name = "EVENTNAME338128" #Galla raids in Bale
	desc = "EVENTHIST338127"
	#-#The profound damage caused by the war between Ethiopia and Adal left most of the provinces defenceless and depopulated. The opportunity was seized by a large group living in Kenya, that had a strong population pressure. They called themselves the Oromo, but were called Galla by the Ethiopians. Their society was based on an age-set system known as gada, by which all males born within an 8 year period were grouped together for the rest of their lives. This system, together with the luba, or warrior class, gave them a great military advantage, and neither Ethiopia, nor Adal were in conditions of presenting an effective defense against such threat. The Oromo, thus, completely wrecked both states, and their plundering of crops and cattle caused yet another depopulation. However, the Oromo were profoundly divided in clans that fought each other, and were not concerned with establishing an empire or imposing their pagan beliefs.

	date = { day = 0 month = january year = 1561 }
	offset = 600
	deathdate = { day = 0 month = january year = 1700 }

	action_a = {
		name = "ACTIONNAME338128A" #Bale attacked
		command = { type = population which = 1590 value = -3000 } #Bale
		command = { type = provincetax which = 1590 value = -1 } #Bale
		command = { type = provincemanpower which = 1590 value = -1 } #Bale
		command = { type = domestic which = CENTRALIZATION value = -1 }
	}
}
#(1562-1700) Galla raids in Damot
#by Fodoron
event = {
	id = 338129
	trigger = {
		event = 338124 #ProvinceSpec*1588: Damot ravaged by war
		NOT = {
			countrysize = 14
			domestic = { type = centralization value = 8 }
		}
	}
	random = no
	province = 1588 #Gonder
	name = "EVENTNAME338129" #Galla raids in Damot
	desc = "EVENTHIST338127"
	#-#The profound damage caused by the war between Ethiopia and Adal left most of the provinces defenceless and depopulated. The opportunity was seized by a large group living in Kenya, that had a strong population pressure. They called themselves the Oromo, but were called Galla by the Ethiopians. Their society was based on an age-set system known as gada, by which all males born within an 8 year period were grouped together for the rest of their lives. This system, together with the luba, or warrior class, gave them a great military advantage, and neither Ethiopia, nor Adal were in conditions of presenting an effective defense against such threat. The Oromo, thus, completely wrecked both states, and their plundering of crops and cattle caused yet another depopulation. However, the Oromo were profoundly divided in clans that fought each other, and were not concerned with establishing an empire or imposing their pagan beliefs.

	date = { day = 0 month = january year = 1562 }
	offset = 600
	deathdate = { day = 0 month = january year = 1700 }

	action_a = {
		name = "ACTIONNAME338129A" #Damot (Gonder) attacked
		command = { type = population which = 1588 value = -2000 } #Gonder
		command = { type = provincetax which = 1588 value = -1 } #Gonder
		command = { type = provincemanpower which = 1588 value = -1 } #Gonder
		command = { type = domestic which = CENTRALIZATION value = -1 }
	}
}
#(1563-1700) Galla raids in Shewa
#by Fodoron
event = {
	id = 338130
	trigger = {
		event = 338121 #ProvinceSpec*1517: Shewa ravaged by war
		NOT = {
			countrysize = 14
			domestic = { type = centralization value = 8 }
		}
	}
	random = no
	province = 1517 #Shewa
	name = "EVENTNAME338130" #Galla raids in Shewa
	desc = "EVENTHIST338127"
	#-#The profound damage caused by the war between Ethiopia and Adal left most of the provinces defenceless and depopulated. The opportunity was seized by a large group living in Kenya, that had a strong population pressure. They called themselves the Oromo, but were called Galla by the Ethiopians. Their society was based on an age-set system known as gada, by which all males born within an 8 year period were grouped together for the rest of their lives. This system, together with the luba, or warrior class, gave them a great military advantage, and neither Ethiopia, nor Adal were in conditions of presenting an effective defense against such threat. The Oromo, thus, completely wrecked both states, and their plundering of crops and cattle caused yet another depopulation. However, the Oromo were profoundly divided in clans that fought each other, and were not concerned with establishing an empire or imposing their pagan beliefs.

	date = { day = 0 month = january year = 1563 }
	offset = 600
	deathdate = { day = 0 month = january year = 1700 }

	action_a = {
		name = "ACTIONNAME338130A" #Shewa attacked
		command = { type = population which = 1517 value = -2000 } #Shewa
		command = { type = provincetax which = 1517 value = -2 } #Shewa
		command = { type = provincemanpower which = 1517 value = -2 } #Shewa
		command = { type = domestic which = CENTRALIZATION value = -1 }
	}
}
#(1563-1700) Galla raids in Harar
#by Fodoron
event = {
	id = 338131
	trigger = {
		event = 338122 #ProvinceSpec*1518: Harar ravaged by war
		NOT = {
			countrysize = 14
			domestic = { type = centralization value = 8 }
		}
	}
	random = no
	province = 1518 #Arsi
	name = "EVENTNAME338131" #Galla raids in Harar
	desc = "EVENTHIST338127"
	#-#The profound damage caused by the war between Ethiopia and Adal left most of the provinces defenceless and depopulated. The opportunity was seized by a large group living in Kenya, that had a strong population pressure. They called themselves the Oromo, but were called Galla by the Ethiopians. Their society was based on an age-set system known as gada, by which all males born within an 8 year period were grouped together for the rest of their lives. This system, together with the luba, or warrior class, gave them a great military advantage, and neither Ethiopia, nor Adal were in conditions of presenting an effective defense against such threat. The Oromo, thus, completely wrecked both states, and their plundering of crops and cattle caused yet another depopulation. However, the Oromo were profoundly divided in clans that fought each other, and were not concerned with establishing an empire or imposing their pagan beliefs.

	date = { day = 0 month = january year = 1563 }
	offset = 600
	deathdate = { day = 0 month = january year = 1700 }

	action_a = {
		name = "ACTIONNAME338131A" #Harar (Arsi) attacked
		command = { type = population which = 1518 value = -2000 } #Arsi
		command = { type = provincetax which = 1518 value = -1 } #Arsi
		command = { type = provincemanpower which = 1518 value = -1 } #Arsi
		command = { type = domestic which = CENTRALIZATION value = -1 }
	}
}
#(1563-1700) Galla raids in Harerge
#by Fodoron
event = {
	id = 338132
	trigger = {
		event = 338123 #ProvinceSpec*1519: Harerge ravaged by war
		NOT = {
			countrysize = 14
			domestic = { type = centralization value = 8 }
		}
	}
	random = no
	province = 1519 #Harerge
	name = "EVENTNAME338132" #Galla raids in Harerge
	desc = "EVENTHIST338127"
	#-#The profound damage caused by the war between Ethiopia and Adal left most of the provinces defenceless and depopulated. The opportunity was seized by a large group living in Kenya, that had a strong population pressure. They called themselves the Oromo, but were called Galla by the Ethiopians. Their society was based on an age-set system known as gada, by which all males born within an 8 year period were grouped together for the rest of their lives. This system, together with the luba, or warrior class, gave them a great military advantage, and neither Ethiopia, nor Adal were in conditions of presenting an effective defense against such threat. The Oromo, thus, completely wrecked both states, and their plundering of crops and cattle caused yet another depopulation. However, the Oromo were profoundly divided in clans that fought each other, and were not concerned with establishing an empire or imposing their pagan beliefs.

	date = { day = 0 month = january year = 1563 }
	offset = 600
	deathdate = { day = 0 month = january year = 1700 }

	action_a = {
		name = "ACTIONNAME338132A" #Harerge attacked
		command = { type = population which = 1519 value = -2000 } #Harerge
		command = { type = provincetax which = 1519 value = -1 } #Harerge
		command = { type = provincemanpower which = 1519 value = -1 } #Harerge
		command = { type = domestic which = CENTRALIZATION value = -1 }
	}
}
#(1564-1700) Galla raids in Ogaden
#by Fodoron
event = {
	id = 338133
	trigger = {
		event = 338119 #ProvinceSpec*758: Ogaden ravaged by war
		NOT = {
			countrysize = 14
			domestic = { type = centralization value = 8 }
		}
	}
	random = no
	province = 758 #Ogaden
	name = "EVENTNAME338133" #Galla raids in Ogaden
	desc = "EVENTHIST338127"
	#-#The profound damage caused by the war between Ethiopia and Adal left most of the provinces defenceless and depopulated. The opportunity was seized by a large group living in Kenya, that had a strong population pressure. They called themselves the Oromo, but were called Galla by the Ethiopians. Their society was based on an age-set system known as gada, by which all males born within an 8 year period were grouped together for the rest of their lives. This system, together with the luba, or warrior class, gave them a great military advantage, and neither Ethiopia, nor Adal were in conditions of presenting an effective defense against such threat. The Oromo, thus, completely wrecked both states, and their plundering of crops and cattle caused yet another depopulation. However, the Oromo were profoundly divided in clans that fought each other, and were not concerned with establishing an empire or imposing their pagan beliefs.

	date = { day = 0 month = january year = 1564 }
	offset = 600
	deathdate = { day = 0 month = january year = 1700 }

	action_a = {
		name = "ACTIONNAME338133A" #Ogaden attacked
		command = { type = population which = 758 value = -1000 } #Ogaden
		command = { type = provincetax which = 758 value = -1 } #Ogaden
		command = { type = provincemanpower which = 758 value = -1 } #Ogaden
		command = { type = domestic which = CENTRALIZATION value = -1 }
	}
}
#(1564-1700) Galla raids in Gonder
#by Fodoron
event = {
	id = 338134
	trigger = {
		event = 338120 #ProvinceSpec*1516: Gonder ravaged by war
		NOT = {
			countrysize = 14
			domestic = { type = centralization value = 8 }
		}
	}
	random = no
	province = 1516 #Welo
	name = "EVENTNAME338134" #Galla raids in Gonder
	desc = "EVENTHIST338127"
	#-#The profound damage caused by the war between Ethiopia and Adal left most of the provinces defenceless and depopulated. The opportunity was seized by a large group living in Kenya, that had a strong population pressure. They called themselves the Oromo, but were called Galla by the Ethiopians. Their society was based on an age-set system known as gada, by which all males born within an 8 year period were grouped together for the rest of their lives. This system, together with the luba, or warrior class, gave them a great military advantage, and neither Ethiopia, nor Adal were in conditions of presenting an effective defense against such threat. The Oromo, thus, completely wrecked both states, and their plundering of crops and cattle caused yet another depopulation. However, the Oromo were profoundly divided in clans that fought each other, and were not concerned with establishing an empire or imposing their pagan beliefs.

	date = { day = 0 month = january year = 1564 }
	offset = 600
	deathdate = { day = 0 month = january year = 1700 }

	action_a = {
		name = "ACTIONNAME338134A" #Gonder (Welo) attacked
		command = { type = population which = 1516 value = -3000 } #Welo
		command = { type = provincetax which = 1516 value = -1 } #Welo
		command = { type = provincemanpower which = 1516 value = -2 } #Welo
		command = { type = domestic which = CENTRALIZATION value = -1 }
	}
}
#(1565-1700) Galla raids in Tigray
#by Fodoron
event = {
	id = 338135
	trigger = {
		event = 338116 #ProvinceSpec*753: Tigray ravaged by war
		NOT = {
			countrysize = 14
			domestic = { type = centralization value = 8 }
		}
	}
	random = no
	province = 753 #Keren
	name = "EVENTNAME338135" #Galla raids in Tigray
	desc = "EVENTHIST338127"
	#-#The profound damage caused by the war between Ethiopia and Adal left most of the provinces defenceless and depopulated. The opportunity was seized by a large group living in Kenya, that had a strong population pressure. They called themselves the Oromo, but were called Galla by the Ethiopians. Their society was based on an age-set system known as gada, by which all males born within an 8 year period were grouped together for the rest of their lives. This system, together with the luba, or warrior class, gave them a great military advantage, and neither Ethiopia, nor Adal were in conditions of presenting an effective defense against such threat. The Oromo, thus, completely wrecked both states, and their plundering of crops and cattle caused yet another depopulation. However, the Oromo were profoundly divided in clans that fought each other, and were not concerned with establishing an empire or imposing their pagan beliefs.

	date = { day = 0 month = january year = 1565 }
	offset = 600
	deathdate = { day = 0 month = january year = 1700 }

	action_a = {
		name = "ACTIONNAME338135A" #Tigray (Keren) attacked
		command = { type = population which = 753 value = -3000 } #Keren
		command = { type = provincetax which = 753 value = -1 } #Keren
		command = { type = provincemanpower which = 753 value = -2 } #Keren
		command = { type = domestic which = CENTRALIZATION value = -1 }
	}
}
#(1565-1700) Oromo infiltration in Kefa
#by Fodoron
event = {
	id = 338136
	trigger = {
		event = 338125 #ProvinceSpec*1589: Kefa ravaged by war
		NOT = {
			countrysize = 14
			domestic = { type = centralization value = 8 }
		}
	}
	random = no
	province = 1589 #Kefa
	name = "EVENTNAME338136" #Oromo infiltration in Kefa
	desc = "EVENTHIST338136"
	#-#The Oromo soon started to take possession of the lands and resources abandoned due to the depopulation caused by the war between Ethiopia and Adal. Central power in Ethiopia got restricted to the Northern Christian highlands, and disappeared all together in Adal.

	date = { day = 0 month = january year = 1565 }
	offset = 600
	deathdate = { day = 0 month = january year = 1700 }

	action_a = {
		name = "ACTIONNAME338136A" #Oromo settle in Kefa
		command = { type = population which = 1589 value = 2000 } #Kefa
		command = { type = domestic which = CENTRALIZATION value = -1 }
	}
}
#(1566-1700) Oromo infiltration in Bale
#by Fodoron
event = {
	id = 338137
	trigger = {
		event = 338126 #ProvinceSpec*1590: Bale ravaged by war
		NOT = {
			countrysize = 14
			domestic = { type = centralization value = 8 }
		}
	}
	random = no
	province = 1590 #Bale
	name = "EVENTNAME338137" #Oromo infiltration in Bale
	desc = "EVENTHIST338136"
	#-#The Oromo soon started to take possession of the lands and resources abandoned due to the depopulation caused by the war between Ethiopia and Adal. Central power in Ethiopia got restricted to the Northern Christian highlands, and disappeared all together in Adal.

	date = { day = 0 month = january year = 1566 }
	offset = 600
	deathdate = { day = 0 month = january year = 1700 }

	action_a = {
		name = "ACTIONNAME338137A" #Oromo settle in Bale
		command = { type = population which = 1590 value = 3000 } #Bale
		command = { type = domestic which = CENTRALIZATION value = -1 }
	}
}
#(1567-1700) Oromo infiltration in Damot
#by Fodoron
event = {
	id = 338138
	trigger = {
		event = 338124 #ProvinceSpec*1588: Damot ravaged by war
		NOT = {
			countrysize = 14
			domestic = { type = centralization value = 8 }
		}
	}
	random = no
	province = 1588 #Gonder
	name = "EVENTNAME338138" #Oromo infiltration in Damot
	desc = "EVENTHIST338136"
	#-#The Oromo soon started to take possession of the lands and resources abandoned due to the depopulation caused by the war between Ethiopia and Adal. Central power in Ethiopia got restricted to the Northern Christian highlands, and disappeared all together in Adal.

	date = { day = 0 month = january year = 1567 }
	offset = 600
	deathdate = { day = 0 month = january year = 1700 }

	action_a = {
		name = "ACTIONNAME338138A" #Oromo settle in Damot (Gonder)
		command = { type = population which = 1588 value = 3000 } #Gonder
		command = { type = domestic which = CENTRALIZATION value = -1 }
	}
}
#(1568-1700) Oromo infiltration in Shewa
#by Fodoron
event = {
	id = 338139
	trigger = {
		event = 338121 #ProvinceSpec*1517: Shewa ravaged by war
		NOT = {
			countrysize = 14
			domestic = { type = centralization value = 8 }
		}
	}
	random = no
	province = 1517 #Shewa
	name = "EVENTNAME338139" #Oromo infiltration in Shewa
	desc = "EVENTHIST338136"
	#-#The Oromo soon started to take possession of the lands and resources abandoned due to the depopulation caused by the war between Ethiopia and Adal. Central power in Ethiopia got restricted to the Northern Christian highlands, and disappeared all together in Adal.

	date = { day = 0 month = january year = 1568 }
	offset = 600
	deathdate = { day = 0 month = january year = 1700 }

	action_a = {
		name = "ACTIONNAME338139A" #Oromo settle in Shewa
		command = { type = population which = 1517 value = 4000 } #Shewa
		command = { type = domestic which = CENTRALIZATION value = -1 }
	}
}
#(1568-1700) Oromo infiltration in Harar
#by Fodoron
event = {
	id = 338140
	trigger = {
		event = 338122 #ProvinceSpec*1518: Harar ravaged by war
		NOT = {
			countrysize = 14
			domestic = { type = centralization value = 8 }
		}
	}
	random = no
	province = 1518 #Arsi
	name = "EVENTNAME338140" #Oromo infiltration in Harar
	desc = "EVENTHIST338136"
	#-#The Oromo soon started to take possession of the lands and resources abandoned due to the depopulation caused by the war between Ethiopia and Adal. Central power in Ethiopia got restricted to the Northern Christian highlands, and disappeared all together in Adal.

	date = { day = 0 month = january year = 1568 }
	offset = 600
	deathdate = { day = 0 month = january year = 1700 }

	action_a = {
		name = "ACTIONNAME338140A" #Oromo settle in Harar (Arsi)
		command = { type = population which = 1518 value = 2000 } #Arsi
		command = { type = domestic which = CENTRALIZATION value = -1 }
	}
}
#(1568-1700) Oromo infiltration in Harerge
#by Fodoron
event = {
	id = 338141
	trigger = {
		event = 338123 #ProvinceSpec*1519: Harerge ravaged by war
		NOT = {
			countrysize = 14
			domestic = { type = centralization value = 8 }
		}
	}
	random = no
	province = 1519 #Harerge
	name = "EVENTNAME338141" #Oromo infiltration in Harerge
	desc = "EVENTHIST338136"
	#-#The Oromo soon started to take possession of the lands and resources abandoned due to the depopulation caused by the war between Ethiopia and Adal. Central power in Ethiopia got restricted to the Northern Christian highlands, and disappeared all together in Adal.

	date = { day = 0 month = january year = 1568 }
	offset = 600
	deathdate = { day = 0 month = january year = 1700 }

	action_a = {
		name = "ACTIONNAME338141A" #Oromo settle in Harerge
		command = { type = population which = 1519 value = 2000 } #Harerge
		command = { type = domestic which = CENTRALIZATION value = -1 }
	}
}
#(1569-1700) Oromo infiltration in Ogaden
#by Fodoron
event = {
	id = 338142
	trigger = {
		event = 338119 #ProvinceSpec*758: Ogaden ravaged by war
		NOT = {
			countrysize = 14
			domestic = { type = centralization value = 8 }
		}
	}
	random = no
	province = 758 #Ogaden
	name = "EVENTNAME338142" #Oromo infiltration in Ogaden
	desc = "EVENTHIST338136"
	#-#The Oromo soon started to take possession of the lands and resources abandoned due to the depopulation caused by the war between Ethiopia and Adal. Central power in Ethiopia got restricted to the Northern Christian highlands, and disappeared all together in Adal.

	date = { day = 0 month = january year = 1569 }
	offset = 600
	deathdate = { day = 0 month = january year = 1700 }

	action_a = {
		name = "ACTIONNAME338142A" #Oromo settle in Ogaden
		command = { type = population which = 758 value = 1000 } #Ogaden
		command = { type = domestic which = CENTRALIZATION value = -1 }
	}
}
#(1569-1700) Oromo infiltration in Gonder
#by Fodoron
event = {
	id = 338143
	trigger = {
		event = 338120 #ProvinceSpec*1516: Gonder ravaged by war
		NOT = {
			countrysize = 14
			domestic = { type = centralization value = 8 }
		}
	}
	random = no
	province = 1516 #Welo
	name = "EVENTNAME338143" #Oromo infiltration in Gonder
	desc = "EVENTHIST338136"
	#-#The Oromo soon started to take possession of the lands and resources abandoned due to the depopulation caused by the war between Ethiopia and Adal. Central power in Ethiopia got restricted to the Northern Christian highlands, and disappeared all together in Adal.

	date = { day = 0 month = january year = 1569 }
	offset = 600
	deathdate = { day = 0 month = january year = 1700 }

	action_a = {
		name = "ACTIONNAME338143A" #Oromo settle in Gonder (Welo)
		command = { type = population which = 1516 value = 3000 } #Welo
		command = { type = domestic which = CENTRALIZATION value = -1 }
	}
}
#(1570-1700) Oromo infiltration in Tigray
#by Fodoron
event = {
	id = 338144
	trigger = {
		event = 338116 #ProvinceSpec*753: Tigray ravaged by war
		NOT = {
			countrysize = 14
			domestic = { type = centralization value = 8 }
		}
	}
	random = no
	province = 753 #Keren
	name = "EVENTNAME338144" #Oromo infiltration in Tigray
	desc = "EVENTHIST338136"
	#-#The Oromo soon started to take possession of the lands and resources abandoned due to the depopulation caused by the war between Ethiopia and Adal. Central power in Ethiopia got restricted to the Northern Christian highlands, and disappeared all together in Adal.

	date = { day = 0 month = january year = 1570 }
	offset = 600
	deathdate = { day = 0 month = january year = 1700 }

	action_a = {
		name = "ACTIONNAME338144A" #Oromo settle in Tigray (Keren)
		command = { type = population which = 753 value = 4000 } #Keren
		command = { type = domestic which = CENTRALIZATION value = -1 }
	}
}
#(1570-1700) Oromo become significant in Kefa
#by Fodoron
event = {
	id = 338145
	trigger = {
		event = 338136 #ProvinceSpec*1589: Oromo infiltration in Kefa
		NOT = {
			countrysize = 14
			domestic = { type = centralization value = 8 }
		}
	}
	random = no
	province = 1589 #Kefa
	name = "EVENTNAME338145" #Oromo become significant in Kefa
	desc = "EVENTHIST338145"
	#-#The Oromo were so numerous that they changed the nature of the country. Some areas like Sidame or the Christian highlands resisted better their invasion, but others were completely overcome. Today, 40 percent of Ethiopians are Oromo.

	date = { day = 0 month = january year = 1570 }
	offset = 600
	deathdate = { day = 0 month = january year = 1700 }

	action_a = {
		name = "ACTIONNAME338145A" #Oromo change Kefa
		command = { type = population which = 1589 value = 4000 } #Kefa
		command = { type = provincereligion which = 1589 value = pagan } #Kefa
	}
}
#(1571-1700) Oromo become dominant in Bale
#by Fodoron
event = {
	id = 338146
	trigger = {
		event = 338137 #ProvinceSpec*1590: Oromo infiltration in Bale
		NOT = {
			countrysize = 14
			domestic = { type = centralization value = 8 }
		}
	}
	random = no
	province = 1590 #Bale
	name = "EVENTNAME338146" #Oromo become dominant in Bale
	desc = "EVENTHIST338145"
	#-#The Oromo were so numerous that they changed the nature of the country. Some areas like Sidame or the Christian highlands resisted better their invasion, but others were completely overcome. Today, 40 percent of Ethiopians are Oromo.

	date = { day = 0 month = january year = 1571 }
	offset = 600
	deathdate = { day = 0 month = january year = 1700 }

	action_a = {
		name = "ACTIONNAME338146A" #Oromo change Bale
		command = { type = population which = 1590 value = 4000 } #Bale
		command = { type = provincereligion which = 1590 value = pagan } #Bale
		command = { type = provinceculture which = 1590 value = swahili } #Bale
	}
}
#(1572-1700) Oromo become dominant in Damot
#by Fodoron
event = {
	id = 338147
	trigger = {
		event = 338138 #ProvinceSpec*1588: Oromo infiltration in Damot
		NOT = {
			countrysize = 14
			domestic = { type = centralization value = 8 }
		}
	}
	random = no
	province = 1588 #Gonder
	name = "EVENTNAME338147" #Oromo become dominant in Damot
	desc = "EVENTHIST338145"
	#-#The Oromo were so numerous that they changed the nature of the country. Some areas like Sidame or the Christian highlands resisted better their invasion, but others were completely overcome. Today, 40 percent of Ethiopians are Oromo.

	date = { day = 0 month = january year = 1572 }
	offset = 600
	deathdate = { day = 0 month = january year = 1700 }

	action_a = {
		name = "ACTIONNAME338147A" #Oromo change Damot (Gonder)
		command = { type = population which = 1588 value = 4000 } #Gonder
		command = { type = provincereligion which = 1588 value = pagan } #Gonder
		command = { type = provinceculture which = 1588 value = swahili } #Gonder
	}
}
#(1573-1700) Oromo settle in Shewa
#by Fodoron
event = {
	id = 338148
	trigger = {
		event = 338139 #ProvinceSpec*1517: Oromo infiltration in Shewa
		NOT = {
			countrysize = 14
			domestic = { type = centralization value = 8 }
		}
	}
	random = no
	province = 1517 #Shewa
	name = "EVENTNAME338148" #Oromo settle in Shewa
	desc = "EVENTHIST338145"
	#-#The Oromo were so numerous that they changed the nature of the country. Some areas like Sidame or the Christian highlands resisted better their invasion, but others were completely overcome. Today, 40 percent of Ethiopians are Oromo.

	date = { day = 0 month = january year = 1573 }
	offset = 600
	deathdate = { day = 0 month = january year = 1700 }

	action_a = {
		name = "ACTIONNAME338148A" #More Oromo in Shewa
		command = { type = population which = 1517 value = 5000 } #Shewa
	}
}
#(1573-1700) Oromo become dominant in Harar
#by Fodoron
event = {
	id = 338149
	trigger = {
		event = 338140 #ProvinceSpec*1518: Oromo infiltration in Harar
		NOT = {
			countrysize = 14
			domestic = { type = centralization value = 8 }
		}
	}
	random = no
	province = 1518 #Arsi
	name = "EVENTNAME338149" #Oromo become dominant in Harar
	desc = "EVENTHIST338145"
	#-#The Oromo were so numerous that they changed the nature of the country. Some areas like Sidame or the Christian highlands resisted better their invasion, but others were completely overcome. Today, 40 percent of Ethiopians are Oromo.

	date = { day = 0 month = january year = 1573 }
	offset = 600
	deathdate = { day = 0 month = january year = 1700 }

	action_a = {
		name = "ACTIONNAME338149A" #Oromo change Harar (Arsi)
		command = { type = population which = 1518 value = 2000 } #Arsi
		command = { type = provincereligion which = 1518 value = pagan } #Arsi
		command = { type = provinceculture which = 1518 value = swahili } #Arsi
	}
}
#(1573-1700) Oromo become dominant in Harerge
#by Fodoron
event = {
	id = 338150
	trigger = {
		event = 338141 #ProvinceSpec*1519: Oromo infiltration in Harerge
		NOT = {
			countrysize = 14
			domestic = { type = centralization value = 8 }
		}
	}
	random = no
	province = 1519 #Harerge
	name = "EVENTNAME338150" #Oromo become dominant in Harerge
	desc = "EVENTHIST338145"
	#-#The Oromo were so numerous that they changed the nature of the country. Some areas like Sidame or the Christian highlands resisted better their invasion, but others were completely overcome. Today, 40 percent of Ethiopians are Oromo.

	date = { day = 0 month = january year = 1573 }
	offset = 600
	deathdate = { day = 0 month = january year = 1700 }

	action_a = {
		name = "ACTIONNAME338150A" #Oromo change Harerge
		command = { type = population which = 1519 value = 3000 } #Harerge
		command = { type = provincereligion which = 1519 value = pagan } #Harerge
		command = { type = provinceculture which = 1519 value = swahili } #Harerge
	}
}
#(1574-1700) Oromo become dominant in Ogaden
#by Fodoron
event = {
	id = 338151
	trigger = {
		event = 338142 #ProvinceSpec*758: Oromo infiltration in Ogaden
		NOT = {
			countrysize = 14
			domestic = { type = centralization value = 8 }
		}
	}
	random = no
	province = 758 #Ogaden
	name = "EVENTNAME338151" #Oromo become dominant in Ogaden
	desc = "EVENTHIST338145"
	#-#The Oromo were so numerous that they changed the nature of the country. Some areas like Sidame or the Christian highlands resisted better their invasion, but others were completely overcome. Today, 40 percent of Ethiopians are Oromo.

	date = { day = 0 month = january year = 1574 }
	offset = 600
	deathdate = { day = 0 month = january year = 1700 }

	action_a = {
		name = "ACTIONNAME338151A" #Oromo change Ogaden
		command = { type = population which = 758 value = 1000 } #Ogaden
		command = { type = provincereligion which = 758 value = pagan } #Ogaden
		command = { type = provinceculture which = 758 value = swahili } #Ogaden
	}
}
#(1574-1700) Oromo settle in Gonder
#by Fodoron
event = {
	id = 338152
	trigger = {
		event = 338143 #ProvinceSpec*1516: Oromo infiltration in Gonder
		NOT = {
			countrysize = 14
			domestic = { type = centralization value = 8 }
		}
	}
	random = no
	province = 1516 #Welo
	name = "EVENTNAME338152" #Oromo settle in Gonder
	desc = "EVENTHIST338145"
	#-#The Oromo were so numerous that they changed the nature of the country. Some areas like Sidame or the Christian highlands resisted better their invasion, but others were completely overcome. Today, 40 percent of Ethiopians are Oromo.

	date = { day = 0 month = january year = 1574 }
	offset = 600
	deathdate = { day = 0 month = january year = 1700 }

	action_a = {
		name = "ACTIONNAME338152A" #More Oromo in Gonder (Welo)
		command = { type = population which = 1516 value = 4000 } #Welo
	}
}
#(1575-1700) Oromo settle in Tigray
#by Fodoron
event = {
	id = 338153
	trigger = {
		event = 338144 #ProvinceSpec*753: Oromo infiltration in Tigray
		NOT = {
			countrysize = 14
			domestic = { type = centralization value = 8 }
		}
	}
	random = no
	province = 753 #Keren
	name = "EVENTNAME338153" #Oromo settle in Tigray
	desc = "EVENTHIST338145"
	#-#The Oromo were so numerous that they changed the nature of the country. Some areas like Sidame or the Christian highlands resisted better their invasion, but others were completely overcome. Today, 40 percent of Ethiopians are Oromo.

	date = { day = 0 month = january year = 1575 }
	offset = 600
	deathdate = { day = 0 month = january year = 1700 }

	action_a = {
		name = "ACTIONNAME338153A" #More Oromo in Tigray (Keren)
		command = { type = population which = 753 value = 4000 } #Keren
	}
}
#End of Oromo invasion events
#-----------------------------------------------------------------------------------------------

#(1564) Smallpox epidemic at Ambon
event = {
	id = 338030
	random = no
	province = 715 #Ceram
	name = "EVENTNAME338030" #Smallpox epidemic at Ambon
	desc = "EVENTHIST338030"
	#-#Smallpox epidemic at Ambon.

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

	action_a = {
		name = "DARN"
		command = { type = population which = 715 value = -500 } #Ceram
		command = { type = desertion which = 715 value = 500 } #Ceram
		command = { type = provincetax which = 715 value = -1 } #Ceram
		command = { type = provincemanpower which = 715 value = -1 } #Ceram
	}
}

#(1567-1680) Conversion of the Incas
#by Fodoron
event = {
	id = 338260
	trigger = {
		OR = {
			religion = catholic
			religion = counterreform
		}
		provincereligion = { province = 169 data = pagan } #Cuzco
		NOT = {
			exists = INC
		}
	}
	random = no
	province = 169 #Cuzco
	name = "EVENTNAME338260" #Conversion of the Incas
	desc = "EVENTHIST338260"
	#-#The Inca cult of the sun was quite similar to the Catholic religion. They believed in a supreme god, practiced praying and forgiveness of sins by priests, and believed in an afterlife to be won after a just life. Moreover they were used to the cult of the sun being imposed over conquered cultures as a top layer. The Catholic Church of Perú therefore did not have much problem in being accepted as the supreme religion, even though from the first Council of Lima in 1551, it declared that nobody could be forced to convert. In the second Council of Lima in 1567, that was called to adapt to the Council of Trent, further measures to promote evangelization were taken. The use of aboriginal languages by priests was recommended, together with rules on how to enhance the dignity and moral customs of the natives, including personal hygiene recommendations. The third Council of Lima, carried out in 1582 under the direction of St. Toribio, resulted in the translation of the Catechism to quechua and aymara, and in a strong defense of the Indians against injustices. As a result of the Church efforts, by the end of the XVI century the Incas had been fully converted, at least in appearance.

	date = { day = 0 month = january year = 1567 }
	offset = 300
	deathdate = { day = 0 month = january year = 1680 }

	action_a = {
		name = "ACTIONNAME338260A" #Promote peaceful conversion
		command = { type = treasury value = -2000 }
		command = { type = provincereligion which = 162 value = catholic } #Cali
		command = { type = provincereligion which = 163 value = catholic } #Azuay
		command = { type = provincereligion which = 164 value = catholic } #Guayaquil
		command = { type = provincereligion which = 165 value = catholic } #Cajamarca
		command = { type = provincereligion which = 166 value = catholic } #Huanaco
		command = { type = provincereligion which = 167 value = catholic } #Ayacucho
		command = { type = provincereligion which = 168 value = catholic } #Lima
		command = { type = provincereligion which = 169 value = catholic } #Cuzco
		command = { type = provincereligion which = 170 value = catholic } #Arequipa
		command = { type = provincereligion which = 171 value = catholic } #Moquega
		command = { type = provincereligion which = 172 value = catholic } #Arica
		command = { type = provincereligion which = 173 value = catholic } #Atacama
		command = { type = provincereligion which = 174 value = catholic } #Coquimbo
		command = { type = provincereligion which = 192 value = catholic } #Taqari
		command = { type = provincereligion which = 193 value = catholic } #Titicaca
		command = { type = provincereligion which = 194 value = catholic } #Potosi
		command = { type = provincereligion which = 219 value = catholic } #Tucuman
		command = { type = provincereligion which = 1482 value = catholic } #Montana
		command = { type = provincereligion which = 1483 value = catholic } #Atalaya
		command = { type = provincereligion which = 1484 value = catholic } #Manu
		command = { type = provinceculture which = 162 value = -1 } #Cali
		command = { type = provinceculture which = 163 value = -1 } #Azuay
		command = { type = provinceculture which = 164 value = -1 } #Guayaquil
		command = { type = provinceculture which = 165 value = -1 } #Cajamarca
		command = { type = provinceculture which = 166 value = -1 } #Huanaco
		command = { type = provinceculture which = 167 value = -1 } #Ayacucho
		command = { type = provinceculture which = 168 value = -1 } #Lima
		command = { type = provinceculture which = 169 value = -1 } #Cuzco
		command = { type = provinceculture which = 170 value = -1 } #Arequipa
		command = { type = provinceculture which = 171 value = -1 } #Moquega
		command = { type = provinceculture which = 172 value = -1 } #Arica
		command = { type = provinceculture which = 173 value = -1 } #Atacama
		command = { type = provinceculture which = 174 value = -1 } #Coquimbo
		command = { type = provinceculture which = 192 value = -1 } #Taqari
		command = { type = provinceculture which = 193 value = -1 } #Titicaca
		command = { type = provinceculture which = 194 value = -1 } #Potosi
		command = { type = provinceculture which = 219 value = -1 } #Tucuman
		command = { type = provinceculture which = 1482 value = -1 } #Montana
		command = { type = provinceculture which = 1483 value = -1 } #Atalaya
		command = { type = provinceculture which = 1484 value = -1 } #Manu
	}
}

#(1575-1577) The Plague in Venice by Bordic
event = {
	id = 338024
	random = no
	province = 370 #Venice
	name = "EVENTNAME338024" #Plague in Venice
	desc = "EVENTHIST338024"
	#-#In the XVIth century if the city was losing its central role politically, demographically it was continually expanding. With over 175,000 inhabitants it was one of the most densely-populated cities in the world. Venice, being protected by the lagoon and because of its merchant nature, had recurrent pestilences, and drinking water was so scarce in the city and of such bad quality, that those that could afford it drank almost exclusively watered wine. The nobility took refuge in their villas in Terraferma when pestilences hit, while most Doges made a point of honor to remain in the city, and several of them died of plagues. In the three years between 1575 and 1577 the Serenissima was tormented by the plague: aided by the high density of the population, the disease spread through the city, causing terrible losses, with a dramatic new outbreak in the summer of the second year. Almost 50,000 died, which was more than a third of the city's inhabitants. Due mainly to promiscuity and precarious living conditions, the disease spread almost exclusively among the poorer classes. Initially the seriousness of the epidemic was played down, but as the disease spread the government was forced to adopt extreme hygiene and sanitary regulations which helped to eradicate the disease after the first dramatic months. The Senate decided that the Doge should announce the vow to erect a church dedicated to the Redentore (Redeemer), in return for help in ending the plague. With the plague not yet officially eradicated, the first stone of Palladio's votive church was laid. On 13 July 1577 the plague was declared definitively over and it was decided that the city's liberation from the terrible disease should be celebrated on the third Sunday in July for years to come.

	date = { day = 1 month = january year = 1575 }
	offset = 720
	deathdate = { day = 1 month = january year = 1577 }

	action_a = {
		name = "ACTIONNAME338024A" #A solemn vow was announced...
		command = { type = population which = 370 value = -5000 } #Veneto
		command = { type = provincemanpower which = 370 value = -1 } #Veneto
		command = { type = desertion which = 370 value = 2000 } #Veneto
		command = { type = trigger which = 326033 } #VEN: The Plague in Venice
	}
}

#-----------------------------------------------------------------------------------------------
#(1582-1593) Growing Manchu trouble in Liaoning
#by ConjurerDragon
event = {
	id = 338498
	trigger = {
			owned = { province = 646 data = -1 }  #Liaoning
			NOT = { control = { province = 646 data = MCH } } #not for Manchu
	}
	random = no
	province = 646 #Liaoning
	name = "EVENTNAME338498" #Growing Manchu trouble in Liaoning
	desc = "EVENTHIST338498"
	#-#In 1582, the father, Taksi, and grandfather, Giocangga, of future Manchu khan Nurhaci were killed in an attack on Gure (Liaoning province) by a rival Jurchen chieftain Nikan Wailan ("Nikan Wailan" means "Secretary of Chinese people" in Jurchen language, thus his existence is suspected by some historians.) while being led by Li Chengliang. The following year, Nurhaci began to unify the Jurchen bands around his area. In 1584, when he was 25, he attacked Nikan Wailan at Tulun (village in Liaoning too) to avenge the deaths of his father and grandfather, who are said to have left him nothing but thirteen suits of armor. Nikan Wailan fled away to Erhun, which got attacked by Nurhaci again in 1587. Nikan Wailan this time fled to Li Chengliang's territory. Later, as a way to build relationship, Li gave Nikan Wailan to Nurhaci, who beheaded Nikan Wailan immediately. With Li's support, Nurhaci gradually grew his strength in the following years.

	date = { year = 1582 }
	offset = 30
	deathdate = { year = 1593 }

	action_a = {
		name = "DAMN" 
		command = { type = revolt which = 646 } #Liaoning
		command = { type = relation which = MCH value = -10 }
	}
}

#-----------------------------------------------------------------------------------------------
#(1550-1820) Spread of Sikhism
#by mandead

#Panjab
event = {
	id = 338499
	trigger = {
		NOT = {
			provincereligion = { province = 1521 data = sikh } #Panjab
		}
	}
	random = no
	province = 1521 #Panjab
	name = "EVENTNAME338499" #Sikhism in Panjab
	desc = "EVENTHIST338499"
	#-#The Sikh religion was founded in the 15th century by Nanak Dev Ji. Son of an accountant, Nanak was interested in religion and the mysteries of life. At the age of thirty, Nanak is supposed to have proclaimed, 'There is no Hindu, there is no Muslim' and thus begun the Sikh faith. He is said to have preached all over India and by the mid-16th century, Sikhism became rooted in the Punjab.

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

	action_a = {
		name = "ACTIONNAME338499A" #A new religion!
		command = { type = provincereligion which = 1521 value = sikh }
		command = { type = provincetax which = 1521 value = 2 }
	}
}

#Chandigahr
event = {
	id = 338500
	trigger = {
		NOT = {
			provincereligion = { province = 1520 data = sikh } #Chandigahr
		}
	}
	random = no
	province = 1520 #Chandigahr
	name = "EVENTNAME338500" #Sikhism in Chandigahr
	desc = "EVENTHIST338499"
	#-#The Sikh religion was founded in the 15th century by Nanak Dev Ji. Son of an accountant, Nanak was interested in religion and the mysteries of life. At the age of thirty, Nanak is supposed to have proclaimed, 'There is no Hindu, there is no Muslim' and thus begun the Sikh faith. He is said to have preached all over India and by the mid-16th century, Sikhism became rooted in the Punjab.

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

	action_a = {
		name = "ACTIONNAME338499A" #A new religion!
		command = { type = provincereligion which = 1520 value = sikh }
		command = { type = provincetax which = 1520 value = 2 }
	}
}

#-----------------------------------------------------------------------------------------------
#(1582-1614) Morisque Refugees from Al-Andalus

#Sahara
event = {
	id = 338167
	trigger = {
		event = 3167 #SPA: The Expulsion of the Morisques
		OR = {
			religion = sunni
			religion = shia
		}
	}
	random = no
	province = 805 #Sahara
	name = "EVENTNAME338167" #Morisque Refugees from Al-Andalus
	desc = "EVENTHIST338167"
	#-#Spanish tolerance for the Muslims in their midst had steadily been declining over the course of the 16th Century. The rise of Ottoman power in the Balkans and North Africa exacerbated the problem by creating a real security risk for the Christian Kings of Spain as there were numerous instances where Spanish Muslims aided Turkish pirates in their slaving raids on Christian villages in Spain. After the Alpujarras Revolt of 1568-70 and the failure of the consequent dispersion of the Mudejars throughout Spain to better integrate the Mudejars into Spanish society, the Kings of Spain were determined to end the Moorish problem for once and for all. But not until Spain was at peace would the Kingdom be able to muster the troops and ships required to expel the Mudejars from Spanish soil. The Twelve-Year Truce with the Dutch rebels in 1609 finally allowed Felipe III to put his plan into action.

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

	action_a = {
		name = "ACTIONNAME338167A" #This is a Black Day for Islam!
		command = { type = population which = -1 value = 4000 }
		command = { type = trade value = 200 }
		command = { type = land value = 200 }
		command = { type = merchants value = 1 }
		command = { type = treasury value = 85 }
	}
}
#Toubkal
event = {
	id = 338168
	trigger = {
		event = 3167 #SPA: The Expulsion of the Morisques
		OR = {
			religion = sunni
			religion = shia
		}
	}
	random = no
	province = 806 #Toubkal
	name = "EVENTNAME338167" #Morisque Refugees from Al-Andalus
	desc = "EVENTHIST338167"
	#-#Spanish tolerance for the Muslims in their midst had steadily been declining over the course of the 16th Century. The rise of Ottoman power in the Balkans and North Africa exacerbated the problem by creating a real security risk for the Christian Kings of Spain as there were numerous instances where Spanish Muslims aided Turkish pirates in their slaving raids on Christian villages in Spain. After the Alpujarras Revolt of 1568-70 and the failure of the consequent dispersion of the Mudejars throughout Spain to better integrate the Mudejars into Spanish society, the Kings of Spain were determined to end the Moorish problem for once and for all. But not until Spain was at peace would the Kingdom be able to muster the troops and ships required to expel the Mudejars from Spanish soil. The Twelve-Year Truce with the Dutch rebels in 1609 finally allowed Felipe III to put his plan into action.

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

	action_a = {
		name = "ACTIONNAME338167A" #This is a Black Day for Islam!
		command = { type = population which = -1 value = 4000 }
		command = { type = trade value = 200 }
		command = { type = land value = 200 }
		command = { type = merchants value = 1 }
		command = { type = treasury value = 85 }
	}
}
#Tangiers
event = {
	id = 338169
	trigger = {
		event = 3167 #SPA: The Expulsion of the Morisques
		OR = {
			religion = sunni
			religion = shia
		}
	}
	random = no
	province = 732 #Tangiers
	name = "EVENTNAME338167" #Morisque Refugees from Al-Andalus
	desc = "EVENTHIST338167"
	#-#Spanish tolerance for the Muslims in their midst had steadily been declining over the course of the 16th Century. The rise of Ottoman power in the Balkans and North Africa exacerbated the problem by creating a real security risk for the Christian Kings of Spain as there were numerous instances where Spanish Muslims aided Turkish pirates in their slaving raids on Christian villages in Spain. After the Alpujarras Revolt of 1568-70 and the failure of the consequent dispersion of the Mudejars throughout Spain to better integrate the Mudejars into Spanish society, the Kings of Spain were determined to end the Moorish problem for once and for all. But not until Spain was at peace would the Kingdom be able to muster the troops and ships required to expel the Mudejars from Spanish soil. The Twelve-Year Truce with the Dutch rebels in 1609 finally allowed Felipe III to put his plan into action.

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

	action_a = {
		name = "ACTIONNAME338167A" #This is a Black Day for Islam!
		command = { type = population which = -1 value = 4000 }
		command = { type = trade value = 200 }
		command = { type = land value = 200 }
		command = { type = merchants value = 1 }
		command = { type = treasury value = 85 }
	}
}
#Fez
event = {
	id = 338170
	trigger = {
		event = 3167 #SPA: The Expulsion of the Morisques
		OR = {
			religion = sunni
			religion = shia
		}
	}
	random = no
	province = 733 #Fez
	name = "EVENTNAME338167" #Morisque Refugees from Al-Andalus
	desc = "EVENTHIST338167"
	#-#Spanish tolerance for the Muslims in their midst had steadily been declining over the course of the 16th Century. The rise of Ottoman power in the Balkans and North Africa exacerbated the problem by creating a real security risk for the Christian Kings of Spain as there were numerous instances where Spanish Muslims aided Turkish pirates in their slaving raids on Christian villages in Spain. After the Alpujarras Revolt of 1568-70 and the failure of the consequent dispersion of the Mudejars throughout Spain to better integrate the Mudejars into Spanish society, the Kings of Spain were determined to end the Moorish problem for once and for all. But not until Spain was at peace would the Kingdom be able to muster the troops and ships required to expel the Mudejars from Spanish soil. The Twelve-Year Truce with the Dutch rebels in 1609 finally allowed Felipe III to put his plan into action.

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

	action_a = {
		name = "ACTIONNAME338167A" #This is a Black Day for Islam!
		command = { type = population which = -1 value = 5000 } #+1000
		command = { type = trade value = 200 }
		command = { type = land value = 200 }
		command = { type = merchants value = 1 }
		command = { type = treasury value = 85 }
	}
}
#Orania
event = {
	id = 338171
	trigger = {
		event = 3167 #SPA: The Expulsion of the Morisques
		OR = {
			religion = sunni
			religion = shia
		}
	}
	random = no
	province = 734 #Orania
	name = "EVENTNAME338167" #Morisque Refugees from Al-Andalus
	desc = "EVENTHIST338167"
	#-#Spanish tolerance for the Muslims in their midst had steadily been declining over the course of the 16th Century. The rise of Ottoman power in the Balkans and North Africa exacerbated the problem by creating a real security risk for the Christian Kings of Spain as there were numerous instances where Spanish Muslims aided Turkish pirates in their slaving raids on Christian villages in Spain. After the Alpujarras Revolt of 1568-70 and the failure of the consequent dispersion of the Mudejars throughout Spain to better integrate the Mudejars into Spanish society, the Kings of Spain were determined to end the Moorish problem for once and for all. But not until Spain was at peace would the Kingdom be able to muster the troops and ships required to expel the Mudejars from Spanish soil. The Twelve-Year Truce with the Dutch rebels in 1609 finally allowed Felipe III to put his plan into action.

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

	action_a = {
		name = "ACTIONNAME338167A" #This is a Black Day for Islam!
		command = { type = population which = -1 value = 5500 } #+1500
		command = { type = trade value = 200 }
		command = { type = land value = 200 }
		command = { type = merchants value = 1 }
		command = { type = treasury value = 85 }
	}
}
#Al Djazair
event = {
	id = 338172
	trigger = {
		event = 3167 #SPA: The Expulsion of the Morisques
		OR = {
			religion = sunni
			religion = shia
		}
	}
	random = no
	province = 737 #Al Djazair
	name = "EVENTNAME338167" #Morisque Refugees from Al-Andalus
	desc = "EVENTHIST338167"
	#-#Spanish tolerance for the Muslims in their midst had steadily been declining over the course of the 16th Century. The rise of Ottoman power in the Balkans and North Africa exacerbated the problem by creating a real security risk for the Christian Kings of Spain as there were numerous instances where Spanish Muslims aided Turkish pirates in their slaving raids on Christian villages in Spain. After the Alpujarras Revolt of 1568-70 and the failure of the consequent dispersion of the Mudejars throughout Spain to better integrate the Mudejars into Spanish society, the Kings of Spain were determined to end the Moorish problem for once and for all. But not until Spain was at peace would the Kingdom be able to muster the troops and ships required to expel the Mudejars from Spanish soil. The Twelve-Year Truce with the Dutch rebels in 1609 finally allowed Felipe III to put his plan into action.

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

	action_a = {
		name = "ACTIONNAME338167A" #This is a Black Day for Islam!
		command = { type = population which = -1 value = 4000 }
		command = { type = trade value = 200 }
		command = { type = land value = 200 }
		command = { type = merchants value = 1 }
		command = { type = treasury value = 85 }
	}
}
#End of Morisque Refugees from Al-Andalus
#-----------------------------------------------------------------------------------------------

#(1585-1648) Frisian province change
event = {
	id = 338490
	trigger = {
		exists = HOL
		NOT = { exists = FRI }
		NOT = {
			event = 171008 #FRI: Province Language status
		}
	}
	random = no
	province = 337 #Friesen
	name = "EVENTNAME338490" #Frisian province change
	desc = "EVENTHIST338490"
	#-#The rise of Holland as the dominant part of the Netherlands, and its language, Dutch, marked the end for the frisian language in the countryside of Friesland.

	date = { day = 1 month = january year = 1585 }
	offset = 120
	deathdate = { day = 29 month = december year = 1648 }

	action_a = {
		name = "ACTIONNAME338490A" #Linguistic change
		command = { type = provinceculture which = 337 value = dutch }
		command = { type = sleepevent which = 171008 } #FRI: Province Language status
	}
}

#(1587) Mount Merapi erupts
event = {
	id = 338031
	random = no
	province = 703 #Bandung
	name = "EVENTNAME338031" #Mount Merapi erupts
	desc = "EVENTHIST338031"
	#-#Mount Merapi erupted.

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

	action_a = {
		name = "DARN"
		command = { type = population which = 703 value = -500 } #Bandung
		command = { type = desertion which = 703 value = 500 } #Bandung
		command = { type = provincetax which = 703 value = -1 } #Bandung
		command = { type = provincemanpower which = 703 value = -1 } #Bandung
	}
}

#(1593-1820) Banat Culture change
#should only happen to Moldavia or Wallachia
event = {
	id = 338463
	trigger = {
		OR = {
			AND = {
				core = { province = 323 data = WAL }
				owned = { province = 323 data = WAL }
				control = { province = 323 data = WAL }
			}
			AND = {
				owned = { province = 323 data = MOL }
				control = { province = 323 data = MOL }
			}
		}
		NOT = { exists = HUN }
		stability = 1
	}
	random = no
	province = 354 #Banat
	name = "EVENTNAME338463" #Romanian migration in Banat of Timisoara
	desc = "EVENTHIST338463"
	#-#With our conquest of the Banat of Temesvar, the Romanian minority already living there mostly as serfs together with new settlers could shift the balance of power between the inhabitants over the years - however that would cause unrest among the magyar or slavonic inhabitants of the area. Should we try to maintain a balance between the people living there or should we push for Romanian dominance in the area?

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

	action_a = {
		name = "ACTIONNAME338463A" #Try to maintain a balance
		command = { type = relation which = TUR value = 25 }
		command = { type = treasury value = 25 }
	}
	action_b = {
		name = "WONDERFUL"
		command = { type = provinceculture which = 354 value = romanian } #Transylvania
		command = { type = religiousrevolt which = -1 }
		command = { type = revolt which = 354 }
		command = { type = vp value = 5 }
	}
}

#-----------------------------------------------------------------------------------------------
#Depopulation of the Sudan
#by David Harper

#(1600-1820) The Gold-Salt Trade dries up
event = {
	id = 338110
	trigger = {
		OR = {
			AND = {
				event = 284047 #SON: The Fall of the Songhai Empire
				event = 338165 #The Sack of Timbuktu
				NOT = { owned = { province = 1495 data = SON } }
			}
			AND = {
				NOT = { countrysize = 30 }
				year = 1620
			}
		}
	}
	random = no
	province = 1495 #Timbuktu
	name = "EVENTNAME338091" #The Gold-Salt Trade dries up
	desc = "EVENTHIST338016"
	#-#With the loss of the trade cities of the Sudan, the Songhai melted away into the countryside and to their ancient homeland of Dendi. With the Songhai gone, the unity kept by the Ghanaians, Malinke and Songhai was lost, and the region began to Self-destruct. Without a central authority to keep order, the salt-gold trade was disrupted. With the rise of European trade along the coast, the Sudan lost its importance to world trade. This breakdown of law and order allowed banditry and war to force mass migrations, and huge areas were depopulated and abandoned. No empire would again rise out of the ashes of the Songhai.

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

	action_a = {
		name = "ACTIONNAME338016A" #This is horrible!
		command = { type = removecot which = 1495 } #Timbuktu
		command = { type = population which = 1495 value = -30000 } #Timbuktu
		command = { type = provincetax which = 1495 value = -2 } #Timbuktu
		command = { type = provincemanpower which = 1495 value = -1 } #Timbuktu
		command = { type = manpower value = -2 }
		command = { type = losebuilding which = 1495 value = bailiff } #Timbuktu
	}
}
#(1600-1820) The Gold-Salt Trade dries up
event = {
	id = 338091
	trigger = {
		event = 338110 #The Gold-Salt Trade dries up (Timbuktu)
	}
	random = no
	province = 1490 #Bambuk
	name = "EVENTNAME338091" #The Gold-Salt Trade dries up
	desc = "EVENTHIST338016"
	#-#With the loss of the trade cities of the Sudan, the Songhai melted away into the countryside and to their ancient homeland of Dendi. With the Songhai gone, the unity kept by the Ghanaians, Malinke and Songhai was lost, and the region began to Self-destruct. Without a central authority to keep order, the salt-gold trade was disrupted. With the rise of European trade along the coast, the Sudan lost its importance to world trade. This breakdown of law and order allowed banditry and war to force mass migrations, and huge areas were depopulated and abandoned. No empire would again rise out of the ashes of the Songhai.

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

	action_a = {
		name = "ACTIONNAME338016A" #This is horrible!
		command = { type = population which = 1490 value = -5000 } #Bambuk
		command = { type = provincetax which = 1490 value = -2 } #Bambuk
		command = { type = provincemanpower which = 1490 value = -1 } #Bambuk
		command = { type = manpower value = -3 }
		command = { type = losebuilding which = 1490 value = bailiff } #Bambuk
	}
}
#(1600-1820) The Gold-Salt Trade dries up
event = {
	id = 338106
	trigger = {
		event = 338110 #The Gold-Salt Trade dries up (Timbuktu)
	}
	random = no
	province = 1496 #Gao
	name = "EVENTNAME338091" #The Gold-Salt Trade dries up
	desc = "EVENTHIST338016"
	#-#With the loss of the trade cities of the Sudan, the Songhai melted away into the countryside and to their ancient homeland of Dendi. With the Songhai gone, the unity kept by the Ghanaians, Malinke and Songhai was lost, and the region began to Self-destruct. Without a central authority to keep order, the salt-gold trade was disrupted. With the rise of European trade along the coast, the Sudan lost its importance to world trade. This breakdown of law and order allowed banditry and war to force mass migrations, and huge areas were depopulated and abandoned. No empire would again rise out of the ashes of the Songhai.

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

	action_a = {
		name = "ACTIONNAME338016A" #This is horrible!
		command = { type = population which = 1496 value = -5000 } #Gao
		command = { type = provincetax which = 1496 value = -2 } #Gao
		command = { type = provincemanpower which = 1496 value = -1 } #Gao
		command = { type = manpower value = -3 }
		command = { type = losebuilding which = 1496 value = bailiff } #Gao
	}
}
#(1600-1820) Depopulation of the Sudan
event = {
	id = 338016
	trigger = {
		event = 338106 #The Gold-Salt Trade dries up (Gao)
		event = 338091 #The Gold-Salt Trade dries up (Bambuk)
		event = 338110 #The Gold-Salt Trade dries up (Timbuktu)
	}
	random = no
	province = 1493 #Mossi
	name = "EVENTNAME338016" #Depopulation of the Sudan
	desc = "EVENTHIST338016"
	#-#With the loss of the trade cities of the Sudan, the Songhai melted away into the countryside and to their ancient homeland of Dendi. With the Songhai gone, the unity kept by the Ghanaians, Malinke and Songhai was lost, and the region began to Self-destruct. Without a central authority to keep order, the salt-gold trade was disrupted. With the rise of European trade along the coast, the Sudan lost its importance to world trade. This breakdown of law and order allowed banditry and war to force mass migrations, and huge areas were depopulated and abandoned. No empire would again rise out of the ashes of the Songhai.

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

	action_a = {
		name = "ACTIONNAME338016A" #This is horrible!
		command = { type = population which = 1493 value = -5000 } #Mossi
		command = { type = provincetax which = 1493 value = -2 } #Mossi
		command = { type = provincemanpower which = 1493 value = -1 } #Mossi
		command = { type = manpower value = -3 }
		command = { type = losebuilding which = 1493 value = bailiff } #Mossi
	}
}
event = {
	id = 338107
	trigger = {
		event = 338106 #The Gold-Salt Trade dries up (Gao)
		event = 218010 #The Gold-Salt Trade dries up (Jenne/MAL)
		event = 338110 #The Gold-Salt Trade dries up (Timbuktu)
	}
	random = no
	province = 1497 #Say
	name = "EVENTNAME338016" #Depopulation of the Sudan
	desc = "EVENTHIST338016"
	#-#With the loss of the trade cities of the Sudan, the Songhai melted away into the countryside and to their ancient homeland of Dendi. With the Songhai gone, the unity kept by the Ghanaians, Malinke and Songhai was lost, and the region began to Self-destruct. Without a central authority to keep order, the salt-gold trade was disrupted. With the rise of European trade along the coast, the Sudan lost its importance to world trade. This breakdown of law and order allowed banditry and war to force mass migrations, and huge areas were depopulated and abandoned. No empire would again rise out of the ashes of the Songhai.

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

	action_a = {
		name = "ACTIONNAME338016A" #This is horrible!
		command = { type = population which = 1497 value = -5000 } #Say
		command = { type = provincetax which = 1497 value = -2 } #Say
		command = { type = provincemanpower which = 1497 value = -1 } #Say
		command = { type = manpower value = -3 }
		command = { type = losebuilding which = 1497 value = bailiff } #Say
	}
}
event = {
	id = 338085
	trigger = {
		event = 338106 #The Gold-Salt Trade dries up (Gao)
		event = 338091 #The Gold-Salt Trade dries up (Bambuk)
		event = 338110 #The Gold-Salt Trade dries up (Timbuktu)
	}
	random = no
	province = 794 #Palanas
	name = "EVENTNAME338016" #Depopulation of the Sudan
	desc = "EVENTHIST338016"
	#-#With the loss of the trade cities of the Sudan, the Songhai melted away into the countryside and to their ancient homeland of Dendi. With the Songhai gone, the unity kept by the Ghanaians, Malinke and Songhai was lost, and the region began to Self-destruct. Without a central authority to keep order, the salt-gold trade was disrupted. With the rise of European trade along the coast, the Sudan lost its importance to world trade. This breakdown of law and order allowed banditry and war to force mass migrations, and huge areas were depopulated and abandoned. No empire would again rise out of the ashes of the Songhai.

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

	action_a = {
		name = "ACTIONNAME338085A" #It is the end of the world!
		command = { type = population which = 794 value = -5000 } #Palanas
		command = { type = provincetax which = 794 value = -2 } #Palanas
		command = { type = provincemanpower which = 794 value = -1 } #Palanas
		command = { type = manpower value = -3 }
		command = { type = losebuilding which = 794 value = bailiff } #Palanas
	}
}
event = {
	id = 338086
	trigger = {
		event = 338106 #The Gold-Salt Trade dries up (Gao)
		event = 338091 #The Gold-Salt Trade dries up (Bambuk)
		event = 338110 #The Gold-Salt Trade dries up (Timbuktu)
	}
	random = no
	province = 1498 #Begho
	name = "EVENTNAME338016" #Depopulation of the Sudan
	desc = "EVENTHIST338016"
	#-#With the loss of the trade cities of the Sudan, the Songhai melted away into the countryside and to their ancient homeland of Dendi. With the Songhai gone, the unity kept by the Ghanaians, Malinke and Songhai was lost, and the region began to Self-destruct. Without a central authority to keep order, the salt-gold trade was disrupted. With the rise of European trade along the coast, the Sudan lost its importance to world trade. This breakdown of law and order allowed banditry and war to force mass migrations, and huge areas were depopulated and abandoned. No empire would again rise out of the ashes of the Songhai.

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

	action_a = {
		name = "ACTIONNAME338016A" #This is horrible!
		command = { type = population which = 1498 value = -5000 } #Begho
		command = { type = provincetax which = 1498 value = -2 } #Begho
		command = { type = provincemanpower which = 1498 value = -1 } #Begho
		command = { type = manpower value = -3 }
		command = { type = losebuilding which = 1498 value = bailiff } #Begho
	}
}
event = {
	id = 338088
	trigger = {
		event = 338106 #The Gold-Salt Trade dries up (Gao)
		event = 338091 #The Gold-Salt Trade dries up (Bambuk)
		event = 338110 #The Gold-Salt Trade dries up (Timbuktu)
	}
	random = no
	province = 1487 #Awdaghost
	name = "EVENTNAME338016" #Depopulation of the Sudan
	desc = "EVENTHIST338016"
	#-#With the loss of the trade cities of the Sudan, the Songhai melted away into the countryside and to their ancient homeland of Dendi. With the Songhai gone, the unity kept by the Ghanaians, Malinke and Songhai was lost, and the region began to Self-destruct. Without a central authority to keep order, the salt-gold trade was disrupted. With the rise of European trade along the coast, the Sudan lost its importance to world trade. This breakdown of law and order allowed banditry and war to force mass migrations, and huge areas were depopulated and abandoned. No empire would again rise out of the ashes of the Songhai.

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

	action_a = {
		name = "ACTIONNAME338016A" #This is horrible!
		command = { type = population which = 1487 value = -5000 } #Awdaghost
		command = { type = provincetax which = 1487 value = -2 } #Awdaghost
		command = { type = provincemanpower which = 1487 value = -1 } #Awdaghost
		command = { type = manpower value = -3 }
		command = { type = losebuilding which = 1487 value = bailiff } #Awdaghost
	}
}
event = {
	id = 338089
	trigger = {
		event = 338106 #The Gold-Salt Trade dries up (Gao)
		event = 338091 #The Gold-Salt Trade dries up (Bambuk)
		event = 338110 #The Gold-Salt Trade dries up (Timbuktu)
	}
	random = no
	province = 1488 #Walata
	name = "EVENTNAME338016" #Depopulation of the Sudan
	desc = "EVENTHIST338016"
	#-#With the loss of the trade cities of the Sudan, the Songhai melted away into the countryside and to their ancient homeland of Dendi. With the Songhai gone, the unity kept by the Ghanaians, Malinke and Songhai was lost, and the region began to Self-destruct. Without a central authority to keep order, the salt-gold trade was disrupted. With the rise of European trade along the coast, the Sudan lost its importance to world trade. This breakdown of law and order allowed banditry and war to force mass migrations, and huge areas were depopulated and abandoned. No empire would again rise out of the ashes of the Songhai.

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

	action_a = {
		name = "ACTIONNAME338016A" #This is horrible!
		command = { type = population which = 1488 value = -5000 } #Walata
		command = { type = provincetax which = 1488 value = -2 } #Walata
		command = { type = mine which = 1488 value = -20 } #Walata
		command = { type = provincemanpower which = 1488 value = -1 } #Walata
		command = { type = manpower value = -3 }
		command = { type = losebuilding which = 1488 value = bailiff } #Walata
	}
}
event = {
	id = 338090
	trigger = {
		event = 338106 #The Gold-Salt Trade dries up (Gao)
		event = 338091 #The Gold-Salt Trade dries up (Bambuk)
		event = 338110 #The Gold-Salt Trade dries up (Timbuktu)
	}
	random = no
	province = 1489 #Jenné
	name = "EVENTNAME338016" #Depopulation of the Sudan
	desc = "EVENTHIST338016"
	#-#With the loss of the trade cities of the Sudan, the Songhai melted away into the countryside and to their ancient homeland of Dendi. With the Songhai gone, the unity kept by the Ghanaians, Malinke and Songhai was lost, and the region began to Self-destruct. Without a central authority to keep order, the salt-gold trade was disrupted. With the rise of European trade along the coast, the Sudan lost its importance to world trade. This breakdown of law and order allowed banditry and war to force mass migrations, and huge areas were depopulated and abandoned. No empire would again rise out of the ashes of the Songhai.

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

	action_a = {
		name = "ACTIONNAME338016A" #This is horrible!
		command = { type = population which = 1489 value = -5000 } #Jenné
		command = { type = mine which = 1489 value = -20 } #Jenné
		command = { type = provincetax which = 1489 value = -2 } #Jenné
		command = { type = manpower value = -3 }
		command = { type = provincemanpower which = 1489 value = -1 } #Jenné
		command = { type = losebuilding which = 1489 value = bailiff } #Jenné
	}
}
event = {
	id = 338092
	trigger = {
		event = 338106 #The Gold-Salt Trade dries up (Gao)
		event = 338091 #The Gold-Salt Trade dries up (Bambuk)
		event = 338110 #The Gold-Salt Trade dries up (Timbuktu)
	}
	random = no
	province = 1491 #Segu
	name = "EVENTNAME338016" #Depopulation of the Sudan
	desc = "EVENTHIST338016"
	#-#With the loss of the trade cities of the Sudan, the Songhai melted away into the countryside and to their ancient homeland of Dendi. With the Songhai gone, the unity kept by the Ghanaians, Malinke and Songhai was lost, and the region began to Self-destruct. Without a central authority to keep order, the salt-gold trade was disrupted. With the rise of European trade along the coast, the Sudan lost its importance to world trade. This breakdown of law and order allowed banditry and war to force mass migrations, and huge areas were depopulated and abandoned. No empire would again rise out of the ashes of the Songhai.

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

	action_a = {
		name = "ACTIONNAME338016A" #This is horrible!
		command = { type = population which = 1491 value = -5000 } #Segu
		command = { type = provincetax which = 1491 value = -2 } #Segu
		command = { type = provincemanpower which = 1491 value = -1 } #Segu
		command = { type = manpower value = -3 }
		command = { type = losebuilding which = 1491 value = bailiff } #Segu
	}
}
event = {
	id = 338093
	trigger = {
		event = 338106 #The Gold-Salt Trade dries up (Gao)
		event = 338091 #The Gold-Salt Trade dries up (Bambuk)
		event = 338110 #The Gold-Salt Trade dries up (Timbuktu)
	}
	random = no
	province = 1492 #Niani
	name = "EVENTNAME338016" #Depopulation of the Sudan
	desc = "EVENTHIST338016"
	#-#With the loss of the trade cities of the Sudan, the Songhai melted away into the countryside and to their ancient homeland of Dendi. With the Songhai gone, the unity kept by the Ghanaians, Malinke and Songhai was lost, and the region began to Self-destruct. Without a central authority to keep order, the salt-gold trade was disrupted. With the rise of European trade along the coast, the Sudan lost its importance to world trade. This breakdown of law and order allowed banditry and war to force mass migrations, and huge areas were depopulated and abandoned. No empire would again rise out of the ashes of the Songhai.

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

	action_a = {
		name = "ACTIONNAME338016A" #This is horrible!
		command = { type = population which = 1492 value = -5000 } #Niani
		command = { type = provincetax which = 1492 value = -2 } #Niani
		command = { type = provincemanpower which = 1492 value = -1 } #Niani
		command = { type = manpower value = -3 }
		command = { type = losebuilding which = 1492 value = bailiff } #Niani
	}
}
event = {
	id = 338094
	trigger = {
		event = 338106 #The Gold-Salt Trade dries up (Gao)
		event = 338091 #The Gold-Salt Trade dries up (Bambuk)
		event = 338110 #The Gold-Salt Trade dries up (Timbuktu)
	}
	random = no
	province = 1494 #Buré
	name = "EVENTNAME338016" #Depopulation of the Sudan
	desc = "EVENTHIST338016"
	#-#With the loss of the trade cities of the Sudan, the Songhai melted away into the countryside and to their ancient homeland of Dendi. With the Songhai gone, the unity kept by the Ghanaians, Malinke and Songhai was lost, and the region began to Self-destruct. Without a central authority to keep order, the salt-gold trade was disrupted. With the rise of European trade along the coast, the Sudan lost its importance to world trade. This breakdown of law and order allowed banditry and war to force mass migrations, and huge areas were depopulated and abandoned. No empire would again rise out of the ashes of the Songhai.

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

	action_a = {
		name = "ACTIONNAME338016A" #This is horrible!
		command = { type = population which = 1494 value = -5000 } #Buré
		command = { type = provincetax which = 1494 value = -2 } #Buré
		command = { type = provincemanpower which = 1494 value = -1 } #Buré
		command = { type = manpower value = -3 }
		command = { type = losebuilding which = 1494 value = bailiff } #Buré
	}
}
#End of Depopulation of the Sudan
#-----------------------------------------------------------------------------------------------

#-----------------------------------------------------------------------------------------------
#(1585-1590) Zimba migration

#(1585) Zimba migration
#by sturmvogel
event = {
	id = 338457
	random = no
	province = 768 #Mtawa
	name = "EVENTNAME338457" #Zimba migration
	desc = "EVENTHIST338457"
	#-#The migration of the Zimba tribesmen, almost certainly a branch of the Maravai, from Central Africa to the lands south of the Zambezi River was repelled by the forces of Monomotapa, but they forced other tribes in turn to move into the hinterland of Mozambique Island where they defeated a Portuguese expedition determined to regain access to the mainland farms. Eventually the Portuguese came to an accomodation with the migrants.

	date = { day = 1 month = february year = 1585 }
	offset = 100
	deathdate = { day = 29 month = december year = 1585 }

	action_a = {
		name = "DAMN"
		command = { type = revolt which = 768 } #Mtawa
	}
}
#(1586-1587) Zimba migration
#by sturmvogel
event = {
	id = 338458
	trigger = {
		event = 338457 #ProvinceSpec*768: Zimba migration
	}
	random = no
	province = 767 #Lindi
	name = "EVENTNAME338457" #Zimba migration
	desc = "EVENTHIST338458"
	#-#The migration of the Zimba tribesmen, almost certainly a branch of the Maravai, from Central Africa to the lands south of the Zambezi River was repelled by the forces of Monomotapa, so they turned north, sacking Kilwa and Mombasa before being destroyed near Malinidi by a force of Segeju tribesmen in Portuguese pay.

	date = { day = 1 month = february year = 1586 }
	offset = 360
	deathdate = { day = 29 month = december year = 1587 }

	action_a = {
		name = "DAMN"
		command = { type = revolt which = 767 } #Lindi
		command = { type = revolt which = 767 } #Lindi
	}
}
#(1587-1588) Zimba migration
#by sturmvogel
event = {
	id = 338459
	trigger = {
		event = 338458 #ProvinceSpec*767: Zimba migration
	}
	random = no
	province = 766 #Rufiji
	name = "EVENTNAME338457" #Zimba migration
	desc = "EVENTHIST338458"
	#-#The migration of the Zimba tribesmen, almost certainly a branch of the Maravai, from Central Africa to the lands south of the Zambezi River was repelled by the forces of Monomotapa, so they turned north, sacking Kilwa and Mombasa before being destroyed near Malinidi by a force of Segeju tribesmen in Portuguese pay.

	date = { day = 1 month = february year = 1587 }
	offset = 360
	deathdate = { day = 29 month = december year = 1588 }

	action_a = {
		name = "DAMN"
		command = { type = revolt which = 766 } #Rufiji
		command = { type = revolt which = 766 }
	}
}
#(1588-1589) Zimba migration
#by sturmvogel
event = {
	id = 338460
	trigger = {
		event = 338459 #ProvinceSpec*766: Zimba migration
	}
	random = no
	province = 764 #Tanga
	name = "EVENTNAME338457" #Zimba migration
	desc = "EVENTHIST338458"
	#-#The migration of the Zimba tribesmen, almost certainly a branch of the Maravai, from Central Africa to the lands south of the Zambezi River was repelled by the forces of Monomotapa, so they turned north, sacking Kilwa and Mombasa before being destroyed near Malinidi by a force of Segeju tribesmen in Portuguese pay.

	date = { day = 1 month = february year = 1588 }
	offset = 360
	deathdate = { day = 29 month = december year = 1588 }

	action_a = {
		name = "DAMN"
		command = { type = revolt which = 764 } #Tanga
		command = { type = revolt which = 764 }
	}
}
#(1589-1590) Zimba migration
#by sturmvogel
event = {
	id = 338461
	trigger = {
		event = 338460 #ProvinceSpec*764: Zimba migration
	}
	random = no
	province = 763 #Mombasa
	name = "EVENTNAME338457" #Zimba migration
	desc = "EVENTHIST338458"
	#-#The migration of the Zimba tribesmen, almost certainly a branch of the Maravai, from Central Africa to the lands south of the Zambezi River was repelled by the forces of Monomotapa, so they turned north, sacking Kilwa and Mombasa before being destroyed near Malinidi by a force of Segeju tribesmen in Portuguese pay.

	date = { day = 1 month = february year = 1589 }
	offset = 360
	deathdate = { day = 29 month = december year = 1590 }

	action_a = {
		name = "DAMN"
		command = { type = revolt which = 763 } #Mombasa
		command = { type = revolt which = 763 }
	}
}
#(1590) Zimba migration
#by sturmvogel
event = {
	id = 338462
	trigger = {
		event = 338461 #ProvinceSpec*763: Zimba migration
	}
	random = no
	province = 762 #Kenya
	name = "EVENTNAME338457" #Zimba migration
	desc = "EVENTHIST338458"
	#-#The migration of the Zimba tribesmen, almost certainly a branch of the Maravai, from Central Africa to the lands south of the Zambezi River was repelled by the forces of Monomotapa, so they turned north, sacking Kilwa and Mombasa before being destroyed near Malinidi by a force of Segeju tribesmen in Portuguese pay.

	date = { day = 1 month = february year = 1590 }
	offset = 100
	deathdate = { day = 29 month = december year = 1590 }

	action_a = {
		name = "DAMN"
		command = { type = revolt which = 762 } #Kenya
	}
}
#End of Zimba migration
#-----------------------------------------------------------------------------------------------

#(1608) Hans Lipperhey - Flavor
#by Twoflower - modified by YodaMaster
#should only happen to Netherlands or Spain
event = {
	id = 338112
	trigger = {
		domestic = { type = innovative value = 2 }
		owned = { province = 340 data = -1 }
		OR = {
			owned = { province = 340 data = HOL }
			owned = { province = 340 data = SPA }
		}
	}
	random = no
	province = 340 #Zeeland
	name = "EVENTNAME338112" #Hans Lipperhey, the true inventor of the telescope
	desc = "EVENTHIST338112"
	#-#While for a very long time the invention of the telescope was attributed to Galileo, the credits for this invention that soon became crucial for astronomy as well as navigation actually go to Hans Lipperhey, a German glass-maker from Wesel who emigrated to Middelburg in 1594. In 1608 he offered his 'Instrument for seeing into the distance' to the council of Zeeland, which immediately ordered six of Lipperhey's telescopes. The new invention soon spread. In 1609 the first telescopes were sold in Paris, and Galileo constructed his one and used it for observing the skies for the first time.

	date = { day = 1 month = march year = 1608 }
	offset = 200
	deathdate = { day = 1 month = january year = 1609 }

	action_a = {
		name = "ACTIONNAME338112A" #Invest in Lipperhey's exciting invention
		command = { type = infra value = 30 }
		command = { type = naval value = 100 }
		command = { type = treasury value = -30 }
	}
	action_b = {
		name = "ACTIONNAME338112B" #Save the money
		command = { type = naval value = 5 }
	}
}

#(1610-1670) Idolatry in Perú
#by Fodoron
event = {
	id = 338261
	trigger = {
		event = 338260 #ProvinceSpec*169: Conversion of the Inca
	}
	random = no
	province = 169 #Cuzco
	name = "EVENTNAME338261" #Idolatry in Perú
	desc = "EVENTHIST338261"
	#-#The natives of Perú had found a way to merge their traditional beliefs with Catholicism. But in 1608, a criollo (mixed-race) priest, Francisco de Avila discovered behind the festivity of the Assumption of the Virgin Mary, a pagan adoration to Pariacaca and Chaupiñamocc. Using this discovery to promote his own personal advancement, he captured the pagan high priest, Hernando Paucar, and on December 20, 1609 he conducted a gigantic ''Auto de Fe'' at Lima, where old mummies and idols where destroyed, and Paucar flogged. Afterwards he was named visitador (traveling judge) of idolatry, conducting the first of several campaigns to destroy altars and idols and attempt to erradicate idolatry that would last until 1670. From then on, the Church adopted a more tolerant attitude towards native harmless superstitions.

	date = { day = 0 month = january year = 1610 }
	offset = 300
	deathdate = { day = 0 month = january year = 1670 }

	action_a = {
		name = "ACTIONNAME338261A" #Extirpate idolatry
		command = { type = treasury value = -300 }
		command = { type = domestic which = innovative value = -1 }
		command = { type = stability value = -1 }
	}
	action_b = {
		name = "ACTIONNAME338261B" #It is just harmless superstition
		command = { type = domestic which = innovative value = 1 }
		command = { type = provincereligion which = 167 value = pagan } #Ayacucho
		command = { type = provincereligion which = 193 value = pagan } #Titicaca
		command = { type = provincereligion which = 1482 value = pagan } #Montana
		command = { type = provincereligion which = 1483 value = pagan } #Atalaya
		command = { type = provincereligion which = 1484 value = pagan } #Manu
	}
}

#(1610-1820) Kalmyk Migration
event = {
	id = 338495
	trigger = {
		provincereligion = { province = 467 data = sunni } #Kalmuk
		NOT = { owned = { province = 467 data = RUS } }
	}
	random = no
	province = 467 #Kalmuk
	name = "EVENTNAME338495" #Kalmyk Migration
	desc = "EVENTHIST338495"
	#-#The Kalmyks, of Mongol origin, migrated to the Caspian region in the 17th century from Central Asia. Like other Mongols, the Kalmyk are Tibetan Buddhists, but their Buddhism has a strong admixture of indigenous beliefs and shamanistic practices.

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

	action_a = {
		name = "EVENTNAME338495A" #Let them be
		command = { type = provincereligion which = 467 value = buddhist } #Kalmuk
		command = { type = population which = 467 value = 4000 }
		command = { type = provincetax which = 467 value = 1 }
	}
}

#-----------------------------------------------------------------------------------------------
#Submission of Jakarta Sequence

#(1615-1710) Dutch sailors reach Indonesia
event = {
	id = 338193
	trigger = {
		OR = {
			religion = hindu
			religion = sunni
			religion = eastern_sunni
			religion = shia
			religion = eastern_shia
			religion = pagan
			religion = buddhist
			religion = sikh
			religion = jain
		}
		countrysize = 2
		NOT = { countrysize = 15 } #big country will not be intimidated
		continent = asia
		event = 186052 #HOL: Dutch sailors reach Indonesia
		exists = HOL
	}
	random = no
	province = 702 #Jakarta
	name = "EVENTNAME186052" #Dutch sailors reach Indonesia
	desc = "EVENTHIST338193"
	#-#Verenigde Oost-Indische Compagnie (Dutch East India Company or VOC) was founded, with the goal of sharing the costs of the exploration of the East Indies and ultimately re-establishing the spice trade, a vital source of income to the new Republic of the Seven United Provinces. The first expeditions were successful in bypassing Portuguese dominion of the Cape of Good Hope and the Indian Ocean in general. The Dutch also managed to break the Portuguese monopoly of the spice trade. As the Dutch fleets grew in size, so did their interference with Portuguese trade, and the first skirmishes took place. By 1619, the Dutch conquered Jayakarta which they rename Batavia and make it their EastIndies capital. For the next twenty years the two cities of Goa and Batavia would fight each other relentlessly, since they stood as the capital of the Portuguese India State (or the Indian Vice-Royalty) and the Dutch EastIndia Company's base of operations.

	date = { day = 1 month = january year = 1615 }
	offset = 100
	deathdate = { day = 1 month = january year = 1710 }

	action_a = {
		name = "ACTIONNAME338193A" #Another bunch of foreigners lust after our land
		command = { type = vp value = -1 }
	}
}
#(1615-1720) Dutch offer
event = {
	id = 338194
	trigger = {
		event = 186053 #HOL: Capture of Jakarta
		exists = HOL
	}
	random = no
	province = 702 #Jakarta
	name = "EVENTNAME338194" #Dutch offer
	desc = "EVENTHIST338194"
	#-#The Dutch commander offers us weapons in exchange for land around the city of Jakarta to build their trade and military establishment.

	date = { day = 1 month = january year = 1615 }
	offset = 100
	deathdate = { day = 1 month = january year = 1720 }

	action_a = {
		name = "ACTIONNAME338194A" #Accept the offer
		command = { type = cedeprovince which = HOL value = 702 } #Jakarta
		command = { type = relation which = HOL value = 50 }
		command = { type = treasury value = 50 }
		command = { type = land value = 1000 }
		command = { type = domestic which = mercantilism value = -1 }
		command = { type = trigger which = 186054 } #HOL: The infidel yield to our demands
	}
	action_b = {
		name = "ACTIONNAME338194B" #Refuse the offer and face the consequences
		command = { type = treasury value = 50 }
		command = { type = relation which = HOL value = -200 }
		command = { type = domestic which = mercantilism value = 1 }
		command = { type = casusbelli which = HOL value = 10 }
		command = { type = war which = HOL }
		command = { type = trigger which = 186055 } #HOL: The infidel refuses our offer
	}
}
#End of Submission of Jakarta Sequence
#-----------------------------------------------------------------------------------------------

#-----------------------------------------------------------------------------------------------
#Rise of Ukrainian self-consciousness

#(1620-1820) Donetsk
event = {
	id = 338210
	random = no
	trigger = {
		OR = {
			domestic = { type = serfdom value = 6 }
			domestic = { type = aristocracy value = 6 }
		}
	}
	province = 460 #Donetsk
	name = "EVENTNAME338210" #Rise of self-consciousness in Donetsk
	desc = "EVENTHIST338196"
	#-#In 1596 the Polish Orthodox hierarchy, in agreement with Catholic Hierarchy, Rome and with the King of Poland, officially started the unification of Christianity in Poland-Lithuania. The political aspect was that the Orthodox Christians that lived in Poland-Lithuania were subject to the Moscov Metropoly. It had to end after introducing the Union. Orthodox bishops who agreed about were accepted into the Polish Diet. Other followers of the new doctrine were treated just like Catholics. This was quickly destroyed by both sides and soon Union became Division. Some converted, and were called 'Unites' to distinguish them from other Orthodox Christians, who were called 'Disunites'. Many normal people in the Ukraine started to identify emerging Ukrainian nationality with the Orthodox faith.

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

	action_a = {
		name = "OK"
		command = { type = provinceculture which = 460 value = ukrainian } #Donetsk
	}
}
#(1620-1820) Krementjug
event = {
	id = 338212
	trigger = {
		OR = {
			domestic = { type = serfdom value = 5 }
			domestic = { type = aristocracy value = 5 }
		}
	}
	random = no
	province = 462 #Krementjug
	name = "EVENTNAME338212" #Rise of self-consciousness in Krementjug
	desc = "EVENTHIST338196"
	#-#In 1596 the Polish Orthodox hierarchy, in agreement with Catholic Hierarchy, Rome and with the King of Poland, officially started the unification of Christianity in Poland-Lithuania. The political aspect was that the Orthodox Christians that lived in Poland-Lithuania were subject to the Moscov Metropoly. It had to end after introducing the Union. Orthodox bishops who agreed about were accepted into the Polish Diet. Other followers of the new doctrine were treated just like Catholics. This was quickly destroyed by both sides and soon Union became Division. Some converted, and were called 'Unites' to distinguish them from other Orthodox Christians, who were called 'Disunites'. Many normal people in the Ukraine started to identify emerging Ukrainian nationality with the Orthodox faith.

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

	action_a = {
		name = "OK"
		command = { type = provinceculture which = 462 value = ukrainian } #Krementjug
	}
}
#(1638-1820) Ukraine
event = {
	id = 338197
	random = no
	trigger = {
		OR = {
			domestic = { type = serfdom value = 7 }
			domestic = { type = aristocracy value = 7 }
		}
	}
	province = 295 #Ukraine
	name = "EVENTNAME338197" #Rise of self-consciousness in Ukraine
	desc = "EVENTHIST338196"
	#-#In 1596 the Polish Orthodox hierarchy, in agreement with Catholic Hierarchy, Rome and with the King of Poland, officially started the unification of Christianity in Poland-Lithuania. The political aspect was that the Orthodox Christians that lived in Poland-Lithuania were subject to the Moscov Metropoly. It had to end after introducing the Union. Orthodox bishops who agreed about were accepted into the Polish Diet. Other followers of the new doctrine were treated just like Catholics. This was quickly destroyed by both sides and soon Union became Division. Some converted, and were called 'Unites' to distinguish them from other Orthodox Christians, who were called 'Disunites'. Many normal people in the Ukraine started to identify emerging Ukrainian nationality with the Orthodox faith.

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

	action_a = {
		name = "OK"
		command = { type = provinceculture which = 295 value = ukrainian } #Ukraina
	}
}
#(1638-1820) Poltava
event = {
	id = 338211
	trigger = {
		OR = {
			domestic = { type = serfdom value = 6 }
			domestic = { type = aristocracy value = 6 }
		}
	}
	random = no
	province = 461 #Poltava
	name = "EVENTNAME338211" #Rise of self-consciousness in Poltava
	desc = "EVENTHIST338196"
	#-#In 1596 the Polish Orthodox hierarchy, in agreement with Catholic Hierarchy, Rome and with the King of Poland, officially started the unification of Christianity in Poland-Lithuania. The political aspect was that the Orthodox Christians that lived in Poland-Lithuania were subject to the Moscov Metropoly. It had to end after introducing the Union. Orthodox bishops who agreed about were accepted into the Polish Diet. Other followers of the new doctrine were treated just like Catholics. This was quickly destroyed by both sides and soon Union became Division. Some converted, and were called 'Unites' to distinguish them from other Orthodox Christians, who were called 'Disunites'. Many normal people in the Ukraine started to identify emerging Ukrainian nationality with the Orthodox faith.

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

	action_a = {
		name = "OK"
		command = { type = provinceculture which = 461 value = ukrainian } #Poltava
	}
}
#(1648-1820) Chernigov
event = {
	id = 338196
	trigger = {
		NOT = { control = { province = 294 data = LIT } }
		NOT = { control = { province = 294 data = POL } }
		OR = {
			domestic = { type = serfdom value = 7 }
			domestic = { type = aristocracy value = 7 }
		}
	}
	random = no
	province = 294 #Chernigov
	name = "EVENTNAME338196" #Rise of self-consciousness in Chernigov
	desc = "EVENTHIST338196"
	#-#In 1596 the Polish Orthodox hierarchy, in agreement with Catholic Hierarchy, Rome and with the King of Poland, officially started the unification of Christianity in Poland-Lithuania. The political aspect was that the Orthodox Christians that lived in Poland-Lithuania were subject to the Moscov Metropoly. It had to end after introducing the Union. Orthodox bishops who agreed about were accepted into the Polish Diet. Other followers of the new doctrine were treated just like Catholics. This was quickly destroyed by both sides and soon Union became Division. Some converted, and were called 'Unites' to distinguish them from other Orthodox Christians, who were called 'Disunites'. Many normal people in the Ukraine started to identify emerging Ukrainian nationality with the Orthodox faith.

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

	action_a = {
		name = "OK"
		command = { type = provinceculture which = 294 value = ukrainian } #Chernigov
	}
}
#(1648-1820) Podolia
event = {
	id = 338198
	trigger = {
		NOT = { control = { province = 297 data = LIT } } #Podolia
		NOT = { control = { province = 297 data = POL } }
		OR = {
			domestic = { type = serfdom value = 7 }
			domestic = { type = aristocracy value = 7 }
		}
	}
	random = no
	province = 297 #Podolia
	name = "EVENTNAME338198" #Rise of self-consciousness in Podolia
	desc = "EVENTHIST338196"
	#-#In 1596 the Polish Orthodox hierarchy, in agreement with Catholic Hierarchy, Rome and with the King of Poland, officially started the unification of Christianity in Poland-Lithuania. The political aspect was that the Orthodox Christians that lived in Poland-Lithuania were subject to the Moscov Metropoly. It had to end after introducing the Union. Orthodox bishops who agreed about were accepted into the Polish Diet. Other followers of the new doctrine were treated just like Catholics. This was quickly destroyed by both sides and soon Union became Division. Some converted, and were called 'Unites' to distinguish them from other Orthodox Christians, who were called 'Disunites'. Many normal people in the Ukraine started to identify emerging Ukrainian nationality with the Orthodox faith.

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

	action_a = {
		name = "OK"
		command = { type = provinceculture which = 297 value = ukrainian } #Podolia
	}
}
#(1648-1820) Galizien
event = {
	id = 338199
	trigger = {
		NOT = { owned = { province = 298 data = POL } } #Galizien
		NOT = { owned = { province = 298 data = LIT } }
		OR = {
			domestic = { type = serfdom value = 7 }
			domestic = { type = aristocracy value = 7 }
		}
	}
	random = no
	province = 298 #Galizien
	name = "EVENTNAME338199" #Rise of self-consciousness in Halich
	desc = "EVENTHIST338196"
	#-#In 1596 the Polish Orthodox hierarchy, in agreement with Catholic Hierarchy, Rome and with the King of Poland, officially started the unification of Christianity in Poland-Lithuania. The political aspect was that the Orthodox Christians that lived in Poland-Lithuania were subject to the Moscov Metropoly. It had to end after introducing the Union. Orthodox bishops who agreed about were accepted into the Polish Diet. Other followers of the new doctrine were treated just like Catholics. This was quickly destroyed by both sides and soon Union became Division. Some converted, and were called 'Unites' to distinguish them from other Orthodox Christians, who were called 'Disunites'. Many normal people in the Ukraine started to identify emerging Ukrainian nationality with the Orthodox faith.

	date = { day = 1 month = february year = 1648 }
	offset = 100
	deathdate = { day = 1 month = january year = 1820 }

	action_a = {
		name = "OK"
		command = { type = provinceculture which = 298 value = ukrainian } #Galizien
	}
}
#End of Rise of Ukrainian self-consciousness
#-----------------------------------------------------------------------------------------------

#(1620-1820) Sugar production declines in Barahona
event = {
	id = 338453
	trigger = {
		NOT = { provincereligion = { province = 181 data = pagan } } #not a TP
	}
	random = no
	province = 143 #Barahona
	name = "EVENTNAME338453" #Sugar production declines in Barahona
	desc = "EVENTHIST338453"
	#-#Sugar production in Barahona declined steeply in the 1620s. No one is exactly sure why, but the Spanish likely exhausted the soil, ran out of cheap labor and/or couldn't compete against the other sugar-producing islands. It later became the largest exporter of hides to Spain in the Caribbean.

	date = { day = 1 month = february year = 1620 }
	offset = 1000
	deathdate = { year = 1820 }

	action_a = {
		name = "DAMN"
		command = { type = provincetax which = 143 value = -3 } #Barahona
		command = { type = population which = 143 value = -1000 } #Barahona
	}
}

#(1621) The Piarist Order
#by Blaster
event = {
	id = 338497
	trigger = {
		OR = {
			religion = catholic
			religion = counterreform
		}
	}
	random = no
	province = 399 #Roma
	name = "EVENTNAME338497" #The Piarist Order
	desc = "EVENTHIST338497"
	#-#St. Joseph was very moved by the misery of the poor children of Rome. Therefore, he opened a free school for them in 1597. This school, which was open to every child regardless of religion, is believed to be the world's first modern public elementary school. On March 25, 1617, with the permission of Pope Paul V, St. Joseph Calasanz and fourteen other men became the first members of a new religious congregation. On November 18, 1621, Pope Gregory XV raised the congregation to the rank of religious order under solemn vows, calling it The Order of the Pious Schools. During his lifetime the Piarists began to grow in great numbers and to found many schools.

	date = { day = 17 month = november year = 1621 }

	action_a = {
		name = "ACTIONNAME338497A" #Educate our youth
		command = { type = infra value = 500 }
		command = { type = vp value = 25 }
	}
}

#-----------------------------------------------------------------------------------------------
#Tallest buildings -II- by sabular
#(1625) St. Olav's church burned down - Christian
event = {
	id = 338073
	trigger = {
		OR = {
			provincereligion = { province = 276 data = catholic }
			provincereligion = { province = 276 data = counterreform }
			provincereligion = { province = 276 data = protestant }
			provincereligion = { province = 276 data = reformed }
			provincereligion = { province = 276 data = orthodox }
			provincereligion = { province = 276 data = miaphysite }
		}
	}
	random = no
	province = 276 #Estonia
	name = "EVENTNAME338073" #Fire destroys St. Olav's church
	desc = "EVENTHIST338073"
	#-#In 1625 after holding the title of tallest building in the world for almost 75 years, St. Olav's church in Reval (Tallinn) was destroyed by fire following a stroke of lightning.

	date = { day = 1 month = january year = 1625 }
	offset = 360
	deathdate = { day = 1 month = january year = 1626 }

	action_a = {
		name = "ALAS"
		command = { type = vp value = -5 }
		command = { type = trigger which = 338074 } #ProvinceSpec: Notre Dame de Strasbourg tallest building
		command = { type = sleepevent which = 338077 } #ProvinceSpec: St. Olav's church burned down - not Christian
	}
	action_b = {
		name = "ACTIONNAME338071B" #It shall be rebuilt
		command = { type = treasury value = -35 }
		command = { type = vp value = 10 }
		command = { type = sleepevent which = 338074 } #ProvinceSpec: Notre Dame de Strasbourg tallest building
		command = { type = sleepevent which = 338077 } #ProvinceSpec: St. Olav's church burned down - not Christian
	}
}
#(1625) St. Olav's church burned down - not Christian
event = {
	id = 338077
	trigger = {
		NOT = {
			provincereligion = { province = 276 data = catholic }
			provincereligion = { province = 276 data = counterreform }
			provincereligion = { province = 276 data = protestant }
			provincereligion = { province = 276 data = reformed }
			provincereligion = { province = 276 data = orthodox }
			provincereligion = { province = 276 data = miaphysite }
		}
	}
	random = no
	province = 276 #Estonia
	name = "EVENTNAME338073" #Fire destroys St. Olav's church
	desc = "EVENTHIST338073"
	#-#In 1625 after holding the title of tallest building in the world for almost 75 years, St. Olav's church in Reval (Tallinn) was destroyed by fire following a stroke of lightning.

	date = { day = 1 month = january year = 1625 }
	offset = 360
	deathdate = { day = 1 month = january year = 1626 }

	action_a = {
		name = "ALAS"
		command = { type = vp value = -5 }
		command = { type = trigger which = 338074 } #ProvinceSpec: Notre Dame de Strasbourg tallest building
		command = { type = sleepevent which = 338073 } #ProvinceSpec: St. Olav's church burned down - Christian
	}
}
#(1625) Notre Dame de Strasbourg tallest building
event = {
	id = 338074 #triggered by ProvinceSpec_338073 A / ProvinceSpec_338077
	random = no
	province = 374 #Alsace
	name = "EVENTNAME338074" #Notre Dame de Strasbourg is the tallest building
	desc = "EVENTHIST338074"
	#-#When St. Olav's church in Reval (Tallinn) was destroyed by fire in 1625, Notre Dame de Strasbourg became the tallest building in the world. It stands 143 meters high. Notre Dame would be the last in a series of tallest buildings that actually decreased from one building to the next.

	action_a = {
		name = "ACTIONNAME338072A" #We are the tallest
		command = { type = vp value = 10 }
	}
}
#End of Highest buildings -II-
#-----------------------------------------------------------------------------------------------

#(1625) Epidemics and ruin of war spread through Java
event = {
	id = 338033
	random = no
	province = 703 #Bandung
	name = "EVENTNAME338033" #Epidemics and ruin of war spread through Java
	desc = "EVENTHIST338033"
	#-#Epidemics and ruin of war spread through Java.

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

	action_a = {
		name = "DARN"
		command = { type = population which = 703 value = -500 } #Bandung
		command = { type = desertion which = 703 value = 500 } #Bandung
		command = { type = provincetax which = 703 value = -1 } #Bandung
		command = { type = provincemanpower which = 703 value = -1 } #Bandung
	}
}

#(1625) Epidemics and ruin of war spread through Java
event = {
	id = 338034
	random = no
	province = 704 #Surabaja
	name = "EVENTNAME338033" #Epidemics and ruin of war spread through Java
	desc = "EVENTHIST338033"
	#-#Epidemics and ruin of war spread through Java.

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

	action_a = {
		name = "DARN"
		command = { type = population which = 704 value = -500 } #Surabaja
		command = { type = desertion which = 704 value = 500 } #Surabaja
		command = { type = provincetax which = 704 value = -1 } #Surabaja
		command = { type = provincemanpower which = 704 value = -1 } #Surabaja
	}
}

#(1629) Introduction of sugar cultivation in Banten
event = {
	id = 338035
	trigger = { continent = europe }
	random = no
	province = 701 #Sunda
	name = "EVENTNAME338035" #Introduction of sugar cultivation in Banten
	desc = "EVENTHIST338035"
	#-#Introduction of sugar cultivation in Banten

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

	action_a = {
		name = "ACTIONNAME338035A" #Sweet
		command = { type = provincetax which = 701 value = 1 } #Sunda
	}
}

#(1629) Hongi raids
event = {
	id = 338037
	random = no
	province = 714 #Buru
	name = "EVENTNAME338037" #Hongi raids
	desc = "EVENTHIST338037"
	#-#Hongi raids destroyed clove cultivation on Buru.

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

	action_a = {
		name = "DARN"
		command = { type = provincetax which = 714 value = -1 } #Buru
	}
}

#-----------------------------------------------------------------------------------------------
#Plague in Italy

#(1629-1670) The plague in Milan
event = {
	id = 338232
	trigger = {
		owned = { province = 389 data = SPA } #Lombardia
		owned = { province = 393 data = SPA } #Napoli
		OR = {
			event = 17324 #MAN: First Mantuan Succession Crisis
			event = 220031 #MAN: Succession of Vincenzo II
		}
		event = 3196 #HAB: The Edict of Restitution (TYW sequence)
	}
	random = no
	province = 389 #Lombardia
	name = "EVENTNAME338232" #The plague in Milan
	desc = "EVENTHIST338232"
	#-#As a result of troop movements associated with the Mantuan wars of succession and the socalled Thirty Years War fought beyond the Alpes, a terrible plague ravaged across the Italian peninsula and then, from a first outbreak in Milan in 1629-30, it spreaded through Venice, Bologna, Modena, Parma, Florence to the last outbreaks in Rome, Naples and Genoa in 1656-57, dramatically contributed to accelerate the decline of the once flourishing economy in the 'Garden of the Empire'.

	date = { day = 10 month = june year = 1629 }
	offset = 120
	deathdate = { day = 10 month = june year = 1670 }

	action_a = {
		name = "ACTIONNAME338232A" #A peste, fame et bello libera nos Domine
		command = { type = population which = 389 value = -5000 } #the plague
		command = { type = provincetax which = 389 value = -2 }
		command = { type = provincemanpower which = 389 value = -1 }
	}
}
#(1629-1670) The plague in Mantua
event = {
	id = 338233
	trigger = { event = 338232 } #ProvinceSpec*389: The plague in Milan
	random = no
	province = 390 #Mantua
	name = "EVENTNAME338233" #The plague in Mantua
	desc = "EVENTHIST338232"
	#-#As a result of troop movements associated with the Mantuan wars of succession and the socalled Thirty Years War fought beyond the Alpes, a terrible plague ravaged across the Italian peninsula and then, from a first outbreak in Milan in 1629-30, it spreaded through Venice, Bologna, Modena, Parma, Florence to the last outbreaks in Rome, Naples and Genoa in 1656-57, dramatically contributed to accelerate the decline of the once flourishing economy in the 'Garden of the Empire'.

	date = { day = 10 month = june year = 1629 }
	offset = 90
	deathdate = { day = 10 month = june year = 1670 }

	action_a = {
		name = "ACTIONNAME338232A" #A peste, fame et bello libera nos Domine
		command = { type = population which = 390 value = -3000 } #the plague
		command = { type = provincetax which = 390 value = -2 }
		command = { type = provincemanpower which = 390 value = -1 }
		command = { type = trigger which = 220013 } #MAN: The Economic Crisis
	}
}
#(1631-1670) The plague in Venice
event = {
	id = 338234
	trigger = { event = 338232 } #ProvinceSpec*389: The plague in Milan
	random = no
	province = 370 #Veneto
	name = "EVENTNAME338234" #The plague in Venice
	desc = "EVENTHIST338232"
	#-#As a result of troop movements associated with the Mantuan wars of succession and the socalled Thirty Years War fought beyond the Alpes, a terrible plague ravaged across the Italian peninsula and then, from a first outbreak in Milan in 1629-30, it spreaded through Venice, Bologna, Modena, Parma, Florence to the last outbreaks in Rome, Naples and Genoa in 1656-57, dramatically contributed to accelerate the decline of the once flourishing economy in the 'Garden of the Empire'.

	date = { day = 10 month = june year = 1631 }
	offset = 120
	deathdate = { day = 10 month = june year = 1670 }

	action_a = {
		name = "ACTIONNAME338232A" #A peste, fame et bello libera nos Domine
		command = { type = population which = 370 value = -5000 } #the plague
		command = { type = provincetax which = 370 value = -2 }
		command = { type = provincemanpower which = 370 value = -1 }
		command = { type = trigger which = 326047 } #VEN: The Economic Crisis
	}
}
#(1632-1670) The plague in Modena
event = {
	id = 338235
	trigger = { event = 338232 } #ProvinceSpec*389: The plague in Milan
	random = no
	province = 391 #Romagna
	name = "EVENTNAME338235" #The plague in Modena
	desc = "EVENTHIST338232"
	#-#As a result of troop movements associated with the Mantuan wars of succession and the socalled Thirty Years War fought beyond the Alpes, a terrible plague ravaged across the Italian peninsula and then, from a first outbreak in Milan in 1629-30, it spreaded through Venice, Bologna, Modena, Parma, Florence to the last outbreaks in Rome, Naples and Genoa in 1656-57, dramatically contributed to accelerate the decline of the once flourishing economy in the 'Garden of the Empire'.

	date = { day = 10 month = june year = 1632 }
	offset = 90
	deathdate = { day = 10 month = june year = 1670 }

	action_a = {
		name = "ACTIONNAME338232A" #A peste, fame et bello libera nos Domine
		command = { type = population which = 391 value = -3000 } #the plague
		command = { type = provincetax which = 391 value = -2 }
		command = { type = provincemanpower which = 391 value = -1 }
		command = { type = trigger which = 252017 } #MOD: The Economic Crisis
	}
}
#(1632-1670) The plague in Parma
event = {
	id = 338236
	trigger = { event = 338232 } #ProvinceSpec*389: The plague in Milan
	random = no
	province = 402 #Emilia
	name = "EVENTNAME338236" #The plague in Parma
	desc = "EVENTHIST338232"
	#-#As a result of troop movements associated with the Mantuan wars of succession and the socalled Thirty Years War fought beyond the Alpes, a terrible plague ravaged across the Italian peninsula and then, from a first outbreak in Milan in 1629-30, it spreaded through Venice, Bologna, Modena, Parma, Florence to the last outbreaks in Rome, Naples and Genoa in 1656-57, dramatically contributed to accelerate the decline of the once flourishing economy in the 'Garden of the Empire'.

	date = { day = 10 month = june year = 1632 }
	offset = 120
	deathdate = { day = 10 month = june year = 1670 }

	action_a = {
		name = "ACTIONNAME338232A" #A peste, fame et bello libera nos Domine
		command = { type = population which = 402 value = -3000 } #the plague
		command = { type = provincetax which = 402 value = -2 }
		command = { type = provincemanpower which = 402 value = -1 }
		command = { type = trigger which = 390027 } #PAR: The Economic Crisis
	}
}
#(1633-1670) The plague in Florence
event = {
	id = 338237
	trigger = { event = 338232 } #ProvinceSpec*389: The plague in Milan
	random = no
	province = 401 #Firenze
	name = "EVENTNAME338237" #The plague in Florence
	desc = "EVENTHIST338232"
	#-#As a result of troop movements associated with the Mantuan wars of succession and the socalled Thirty Years War fought beyond the Alpes, a terrible plague ravaged across the Italian peninsula and then, from a first outbreak in Milan in 1629-30, it spreaded through Venice, Bologna, Modena, Parma, Florence to the last outbreaks in Rome, Naples and Genoa in 1656-57, dramatically contributed to accelerate the decline of the once flourishing economy in the 'Garden of the Empire'.

	date = { day = 10 month = june year = 1633 }
	offset = 90
	deathdate = { day = 10 month = june year = 1670 }

	action_a = {
		name = "ACTIONNAME338232A" #A peste, fame et bello libera nos Domine
		command = { type = population which = 401 value = -3000 } #the plague
		command = { type = provincetax which = 401 value = -2 }
		command = { type = provincemanpower which = 401 value = -1 }
		command = { type = trigger which = 297024 } #TOS: The Economic Crisis
	}
}
#(1635-1670) The plague in Siena
event = {
	id = 338238
	trigger = { event = 338232 } #ProvinceSpec*389: The plague in Milan
	random = no
	province = 400 #Siena
	name = "EVENTNAME338238" #The plague in Siena
	desc = "EVENTHIST338232"
	#-#As a result of troop movements associated with the Mantuan wars of succession and the socalled Thirty Years War fought beyond the Alpes, a terrible plague ravaged across the Italian peninsula and then, from a first outbreak in Milan in 1629-30, it spreaded through Venice, Bologna, Modena, Parma, Florence to the last outbreaks in Rome, Naples and Genoa in 1656-57, dramatically contributed to accelerate the decline of the once flourishing economy in the 'Garden of the Empire'.

	date = { day = 10 month = june year = 1635 }
	offset = 90
	deathdate = { day = 10 month = june year = 1670 }

	action_a = {
		name = "ACTIONNAME338232A" #A peste, fame et bello libera nos Domine
		command = { type = population which = 400 value = -2000 } #the plague
		command = { type = provincetax which = 400 value = -2 }
		command = { type = provincemanpower which = 400 value = -1 }
		command = { type = trigger which = 257008 } #SIE: The Economic Crisis
	}
}
#(1655-1670) The plague in Rome
event = {
	id = 338239
	trigger = { event = 338232 } #ProvinceSpec*389: The plague in Milan
	random = no
	province = 399 #Rome
	name = "EVENTNAME338239" #The plague in Rome
	desc = "EVENTHIST338232"
	#-#As a result of troop movements associated with the Mantuan wars of succession and the socalled Thirty Years War fought beyond the Alpes, a terrible plague ravaged across the Italian peninsula and then, from a first outbreak in Milan in 1629-30, it spreaded through Venice, Bologna, Modena, Parma, Florence to the last outbreaks in Rome, Naples and Genoa in 1656-57, dramatically contributed to accelerate the decline of the once flourishing economy in the 'Garden of the Empire'.

	date = { day = 10 month = june year = 1655 }
	offset = 90
	deathdate = { day = 10 month = june year = 1670 }

	action_a = {
		name = "ACTIONNAME338232A" #A peste, fame et bello libera nos Domine
		command = { type = population which = 399 value = -5000 } #the plague
		command = { type = provincetax which = 399 value = -2 }
		command = { type = provincemanpower which = 399 value = -1 }
		command = { type = trigger which = 251062 } #PAP: The Economic Crisis
	}
}
#(1656-1670) The plague in Naples
event = {
	id = 338240
	trigger = { event = 338232 } #ProvinceSpec*389: The plague in Milan
	random = no
	province = 393 #Napoli
	name = "EVENTNAME338240" #The plague in Naples
	desc = "EVENTHIST338232"
	#-#As a result of troop movements associated with the Mantuan wars of succession and the socalled Thirty Years War fought beyond the Alpes, a terrible plague ravaged across the Italian peninsula and then, from a first outbreak in Milan in 1629-30, it spreaded through Venice, Bologna, Modena, Parma, Florence to the last outbreaks in Rome, Naples and Genoa in 1656-57, dramatically contributed to accelerate the decline of the once flourishing economy in the 'Garden of the Empire'.

	date = { day = 10 month = june year = 1656 }
	offset = 90
	deathdate = { day = 10 month = june year = 1670 }

	action_a = {
		name = "ACTIONNAME338232A" #A peste, fame et bello libera nos Domine
		command = { type = population which = 393 value = -5000 } #the plague
		command = { type = provincetax which = 393 value = -2 }
		command = { type = provincemanpower which = 393 value = -1 }
	}
}
#(1657-1670) The plague in Genoa
event = {
	id = 338241
	trigger = { event = 338232 } #ProvinceSpec*389: The plague in Milan
	random = no
	province = 403 #Liguria
	name = "EVENTNAME338241" #The plague in Genoa
	desc = "EVENTHIST338232"
	#-#As a result of troop movements associated with the Mantuan wars of succession and the socalled Thirty Years War fought beyond the Alpes, a terrible plague ravaged across the Italian peninsula and then, from a first outbreak in Milan in 1629-30, it spreaded through Venice, Bologna, Modena, Parma, Florence to the last outbreaks in Rome, Naples and Genoa in 1656-57, dramatically contributed to accelerate the decline of the once flourishing economy in the 'Garden of the Empire'.

	date = { day = 10 month = june year = 1657 }
	offset = 90
	deathdate = { day = 10 month = june year = 1670 }

	action_a = {
		name = "ACTIONNAME338232A" #A peste, fame et bello libera nos Domine
		command = { type = population which = 403 value = -5000 } #the plague
		command = { type = provincetax which = 403 value = -2 }
		command = { type = provincemanpower which = 403 value = -1 }
		command = { type = trigger which = 174055 } #GEN: The Economic Crisis
	}
}
#End of Plague in Italy
#-----------------------------------------------------------------------------------------------

#(1630-1700) The Sale of Tondaimandalam
event = {
	id = 338013 #triggered by ENG_164600 A
	trigger = {
		continent = asia
	}
	random = no
	province = 571 #Madras
	name = "EVENTNAME338013" #The Sale of Tondaimandalam
	desc = "EVENTHIST338013"
	#-#In 1640, the British offered to buy a stretch of land in the Tondaimandalam region, so that they could form a trading post on the Bay of Bengal. To a nation strapped for cash, this opportunity would prove too good to pass up.

	action_a = {
		name = "ACTIONNAME338013A" #Sell it to them
		command = { type = treasury value = 200 }
		command = { type = trigger which = 164601 } #ENG: The Founding of Madras
		command = { type = relation which = ENG value = 100 }
		command = { type = cedeprovince which = ENG value = 571 } #Madras
		command = { type = removecore which = 571 } #Madras
	}
	action_b = {
		name = "ACTIONNAME338013B" #We do not want them as neighbors!
		command = { type = relation which = ENG value = -100 }
		command = { type = trigger which = 164602 } #ENG: Our Offer Was Rejected
	}
}

#-----------------------------------------------------------------------------------------------
#Oromo assimilation events

#(1640-1700) Oromo assimilated in Kefa
#by Fodoron
event = {
	id = 338154
	trigger = {
		event = 338136 #ProvinceSpec*1589: Oromo infiltration in Kefa
		NOT = {
			countrysize = 14
			domestic = { type = centralization value = 8 }
		}
	}
	random = no
	province = 1589 #Kefa
	name = "EVENTNAME338154" #Oromo assimilated in Kefa
	desc = "EVENTHIST338154"
	#-#80 years after they invaded Ethiopia, the Oromo started to be seen more as a different kind of natives to the land, than as foreigners. Many of them mixed with locals, and although others kept their culture and language, they all took the religion of the land. Whilst conversion was mostly voluntary, as a way of advancing socially, the Oromo surrounding Harar (Arsi) were converted by the military expeditions of the Emir Ali ibn Dawoud, whilst the military campaigns of several Ethiopian emperors also contributed to religious conversion to Ethiopian Orthodoxy. The Oromo thus became subjects of Ethiopia, although in the periphery they formed their own Kingdoms, sometimes not even nominally tributaries of the Neguse Negest.

	date = { day = 0 month = january year = 1640 }
	offset = 600
	deathdate = { day = 0 month = january year = 1700 }

	action_a = {
		name = "ACTIONNAME338154A" #Oromo become subjects in Kefa
		command = { type = provincetax which = 1589 value = 3 } #Kefa
		command = { type = provincemanpower which = 1589 value = 5 } #Kefa
		command = { type = provincereligion which = 1589 value = sunni } #Kefa
	}
}
#(1641-1700) Oromo assimilated in Bale
#by Fodoron
event = {
	id = 338155
	trigger = {
		event = 338137 #ProvinceSpec*1590: Oromo infiltration in Bale
		NOT = {
			countrysize = 14
			domestic = { type = centralization value = 8 }
		}
	}
	random = no
	province = 1590 #Bale
	name = "EVENTNAME338155" #Oromo assimilated in Bale
	desc = "EVENTHIST338154"
	#-#80 years after they invaded Ethiopia, the Oromo started to be seen more as a different kind of natives to the land, than as foreigners. Many of them mixed with locals, and although others kept their culture and language, they all took the religion of the land. Whilst conversion was mostly voluntary, as a way of advancing socially, the Oromo surrounding Harar (Arsi) were converted by the military expeditions of the Emir Ali ibn Dawoud, whilst the military campaigns of several Ethiopian emperors also contributed to religious conversion to Ethiopian Orthodoxy. The Oromo thus became subjects of Ethiopia, although in the periphery they formed their own Kingdoms, sometimes not even nominally tributaries of the Neguse Negest.

	date = { day = 0 month = january year = 1641 }
	offset = 600
	deathdate = { day = 0 month = january year = 1700 }

	action_a = {
		name = "ACTIONNAME338155A" #Oromo become subjects in Bale
		command = { type = provincetax which = 1590 value = 3 } #Bale
		command = { type = provincemanpower which = 1590 value = 3 } #Bale
		command = { type = provincereligion which = 1590 value = sunni } #Bale
		command = { type = provinceculture which = 1590 value = ethiopian } #Bale
	}
}
#(1642-1700) Oromo assimilated in Damot
#by Fodoron
event = {
	id = 338156
	trigger = {
		event = 338138 #ProvinceSpec*1588: Oromo infiltration in Damot
		NOT = {
			countrysize = 14
			domestic = { type = centralization value = 8 }
		}
	}
	random = no
	province = 1588 #Gonder
	name = "EVENTNAME338156" #Oromo assimilated in Damot
	desc = "EVENTHIST338154"
	#-#80 years after they invaded Ethiopia, the Oromo started to be seen more as a different kind of natives to the land, than as foreigners. Many of them mixed with locals, and although others kept their culture and language, they all took the religion of the land. Whilst conversion was mostly voluntary, as a way of advancing socially, the Oromo surrounding Harar (Arsi) were converted by the military expeditions of the Emir Ali ibn Dawoud, whilst the military campaigns of several Ethiopian emperors also contributed to religious conversion to Ethiopian Orthodoxy. The Oromo thus became subjects of Ethiopia, although in the periphery they formed their own Kingdoms, sometimes not even nominally tributaries of the Neguse Negest.

	date = { day = 0 month = january year = 1642 }
	offset = 600
	deathdate = { day = 0 month = january year = 1700 }

	action_a = {
		name = "ACTIONNAME338156A" #Oromo become subjects in Damot (Gonder)
		command = { type = provincetax which = 1588 value = 2 } #Gonder
		command = { type = provincemanpower which = 1588 value = 2 } #Gonder
		command = { type = provincereligion which = 1588 value = miaphysite } #Gonder
		command = { type = provinceculture which = 1588 value = ethiopian } #Gonder
	}
}
#(1643-1700) Oromo assimilated in Shewa
#by Fodoron
event = {
	id = 338157
	trigger = {
		event = 338139 #ProvinceSpec*1517: Oromo infiltration in Shewa
		NOT = {
			countrysize = 14
			domestic = { type = centralization value = 8 }
		}
	}
	random = no
	province = 1517 #Shewa
	name = "EVENTNAME338157" #Oromo assimilated in Shewa
	desc = "EVENTHIST338154"
	#-#80 years after they invaded Ethiopia, the Oromo started to be seen more as a different kind of natives to the land, than as foreigners. Many of them mixed with locals, and although others kept their culture and language, they all took the religion of the land. Whilst conversion was mostly voluntary, as a way of advancing socially, the Oromo surrounding Harar (Arsi) were converted by the military expeditions of the Emir Ali ibn Dawoud, whilst the military campaigns of several Ethiopian emperors also contributed to religious conversion to Ethiopian Orthodoxy. The Oromo thus became subjects of Ethiopia, although in the periphery they formed their own Kingdoms, sometimes not even nominally tributaries of the Neguse Negest.

	date = { day = 0 month = january year = 1643 }
	offset = 600
	deathdate = { day = 0 month = january year = 1700 }

	action_a = {
		name = "ACTIONNAME338157A" #Oromo become subjects in Shewa
		command = { type = provincetax which = 1517 value = 5 } #Shewa
		command = { type = provincemanpower which = 1517 value = 4 } #Shewa
	}
}
#(1643-1700) Oromo assimilated in Harar
#by Fodoron
event = {
	id = 338158
	trigger = {
		event = 338140 #ProvinceSpec*1518: Oromo infiltration in Harar
		NOT = {
			countrysize = 14
			domestic = { type = centralization value = 8 }
		}
	}
	random = no
	province = 1518 #Arsi
	name = "EVENTNAME338158" #Oromo assimilated in Harar
	desc = "EVENTHIST338154"
	#-#80 years after they invaded Ethiopia, the Oromo started to be seen more as a different kind of natives to the land, than as foreigners. Many of them mixed with locals, and although others kept their culture and language, they all took the religion of the land. Whilst conversion was mostly voluntary, as a way of advancing socially, the Oromo surrounding Harar (Arsi) were converted by the military expeditions of the Emir Ali ibn Dawoud, whilst the military campaigns of several Ethiopian emperors also contributed to religious conversion to Ethiopian Orthodoxy. The Oromo thus became subjects of Ethiopia, although in the periphery they formed their own Kingdoms, sometimes not even nominally tributaries of the Neguse Negest.

	date = { day = 0 month = january year = 1643 }
	offset = 600
	deathdate = { day = 0 month = january year = 1700 }

	action_a = {
		name = "ACTIONNAME338158A" #Oromo become subjects in Harar (Arsi)
		command = { type = provincetax which = 1518 value = 2 } #Arsi
		command = { type = provincemanpower which = 1518 value = 2 } #Arsi
		command = { type = provincereligion which = 1518 value = sunni } #Arsi
		command = { type = provinceculture which = 1518 value = ethiopian } #Arsi
	}
}
#(1643-1700) Oromo assimilated in Harerge
#by Fodoron
event = {
	id = 338159
	trigger = {
		event = 338141 #ProvinceSpec*1519: Oromo infiltration in Harerge
		NOT = {
			countrysize = 14
			domestic = { type = centralization value = 8 }
		}
	}
	random = no
	province = 1519 #Harerge
	name = "EVENTNAME338159" #Oromo assimilated in Harerge
	desc = "EVENTHIST338154"
	#-#80 years after they invaded Ethiopia, the Oromo started to be seen more as a different kind of natives to the land, than as foreigners. Many of them mixed with locals, and although others kept their culture and language, they all took the religion of the land. Whilst conversion was mostly voluntary, as a way of advancing socially, the Oromo surrounding Harar (Arsi) were converted by the military expeditions of the Emir Ali ibn Dawoud, whilst the military campaigns of several Ethiopian emperors also contributed to religious conversion to Ethiopian Orthodoxy. The Oromo thus became subjects of Ethiopia, although in the periphery they formed their own Kingdoms, sometimes not even nominally tributaries of the Neguse Negest.

	date = { day = 0 month = january year = 1643 }
	offset = 600
	deathdate = { day = 0 month = january year = 1700 }

	action_a = {
		name = "ACTIONNAME338159A" #Oromo become subjects in Harerge
		command = { type = provincetax which = 1519 value = 2 } #Harerge
		command = { type = provincemanpower which = 1519 value = 2 } #Harerge
		command = { type = provincereligion which = 1519 value = sunni } #Harerge
		command = { type = provinceculture which = 1519 value = ethiopian } #Harerge
	}
}
#(1644-1700) Oromo assimilated in Ogaden
#by Fodoron
event = {
	id = 338160
	trigger = {
		event = 338142 #ProvinceSpec*758: Oromo infiltration in Ogaden
		NOT = {
			countrysize = 14
			domestic = { type = centralization value = 8 }
		}
	}
	random = no
	province = 758 #Ogaden
	name = "EVENTNAME338160" #Oromo assimilated in Ogaden
	desc = "EVENTHIST338154"
	#-#80 years after they invaded Ethiopia, the Oromo started to be seen more as a different kind of natives to the land, than as foreigners. Many of them mixed with locals, and although others kept their culture and language, they all took the religion of the land. Whilst conversion was mostly voluntary, as a way of advancing socially, the Oromo surrounding Harar (Arsi) were converted by the military expeditions of the Emir Ali ibn Dawoud, whilst the military campaigns of several Ethiopian emperors also contributed to religious conversion to Ethiopian Orthodoxy. The Oromo thus became subjects of Ethiopia, although in the periphery they formed their own Kingdoms, sometimes not even nominally tributaries of the Neguse Negest.

	date = { day = 0 month = january year = 1644 }
	offset = 600
	deathdate = { day = 0 month = january year = 1700 }

	action_a = {
		name = "ACTIONNAME338160A" #Oromo become subjects in Ogaden
		command = { type = provincetax which = 758 value = 2 } #Ogaden
		command = { type = provincemanpower which = 758 value = 2 } #Ogaden
		command = { type = provincereligion which = 758 value = sunni } #Ogaden
		command = { type = provinceculture which = 758 value = ethiopian } #Ogaden
	}
}
#(1644-1700) Oromo assimilated in Gonder
#by Fodoron
event = {
	id = 338161
	trigger = {
		event = 338143 #ProvinceSpec*1516: Oromo infiltration in Gonder
		NOT = {
			countrysize = 14
			domestic = { type = centralization value = 8 }
		}
	}
	random = no
	province = 1516 #Welo
	name = "EVENTNAME338161" #Oromo assimilated in Gonder
	desc = "EVENTHIST338154"
	#-#80 years after they invaded Ethiopia, the Oromo started to be seen more as a different kind of natives to the land, than as foreigners. Many of them mixed with locals, and although others kept their culture and language, they all took the religion of the land. Whilst conversion was mostly voluntary, as a way of advancing socially, the Oromo surrounding Harar (Arsi) were converted by the military expeditions of the Emir Ali ibn Dawoud, whilst the military campaigns of several Ethiopian emperors also contributed to religious conversion to Ethiopian Orthodoxy. The Oromo thus became subjects of Ethiopia, although in the periphery they formed their own Kingdoms, sometimes not even nominally tributaries of the Neguse Negest.

	date = { day = 0 month = january year = 1644 }
	offset = 600
	deathdate = { day = 0 month = january year = 1700 }

	action_a = {
		name = "ACTIONNAME338161A" #Oromo become subjects in Gonder (Welo)
		command = { type = provincetax which = 1516 value = 3 } #Welo
		command = { type = provincemanpower which = 1516 value = 3 } #Welo
	}
}
#(1645-1700) Oromo assimilated in Tigray
#by Fodoron
event = {
	id = 338162
	trigger = {
		event = 338144 #ProvinceSpec*753: Oromo infiltration in Tigray
		NOT = {
			countrysize = 14
			domestic = { type = centralization value = 8 }
		}
	}
	random = no
	province = 753 #Keren
	name = "EVENTNAME338162" #Oromo assimilated in Tigray
	desc = "EVENTHIST338154"
	#-#80 years after they invaded Ethiopia, the Oromo started to be seen more as a different kind of natives to the land, than as foreigners. Many of them mixed with locals, and although others kept their culture and language, they all took the religion of the land. Whilst conversion was mostly voluntary, as a way of advancing socially, the Oromo surrounding Harar (Arsi) were converted by the military expeditions of the Emir Ali ibn Dawoud, whilst the military campaigns of several Ethiopian emperors also contributed to religious conversion to Ethiopian Orthodoxy. The Oromo thus became subjects of Ethiopia, although in the periphery they formed their own Kingdoms, sometimes not even nominally tributaries of the Neguse Negest.

	date = { day = 0 month = january year = 1645 }
	offset = 600
	deathdate = { day = 0 month = january year = 1700 }

	action_a = {
		name = "ACTIONNAME338162A" #Oromo become subjects in Tigray (Keren)
		command = { type = provincetax which = 753 value = 2 } #Keren
		command = { type = provincemanpower which = 753 value = 3 } #Keren
	}
}
#End of Oromo assimilation events
#-----------------------------------------------------------------------------------------------

#(1640-1820) Sumbawa converts to Islam
event = {
	id = 338036
	trigger = {
		NOT = { provincereligion = { province = 710 data = sunni } }
	}
	random = no
	province = 710 #Sumbawa
	name = "EVENTNAME338036" #Sumbawa converts to Islam
	desc = "EVENTHIST338036"
	#-#Bima on Sumbawa converted to Islam and became a Sultanate.

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

	action_a = {
		name = "ACTIONNAME338036A" #Convert to Islam
		command = { type = provincereligion which = 710 value = sunni } #Sumbawa
		command = { type = revolt which = 710 } #Sumbawa
	}
	action_b = {
		name = "ACTIONNAME338036B" #Keep old belief
		command = { type = domestic which = centralization value = -1 }
	}
}

#(1644-1683) Southern Ming aware of European settlement of Luzon
event = {
	id = 338454
	trigger = {
		exists = SMI
		continent = europe
		control = { province = 690 data = -1 }
		NOT = { provincereligion = { province = 690 data = pagan } } #not a TP
	}
	random = no
	province = 690 #Luzon
	name = "EVENTNAME338454" #Southern Ming aware of European settlement of Luzon
	desc = "EVENTHIST338454"
	#-#The Southern Ming have become aware of European settlement of Luzon.

	date = { day = 0 month = january year = 1644 }
	offset = 10
	deathdate = { day = 0 month = january year = 1683 }

	action_a = {
		name = "OK"
		command = { type = relation which = SMI value = -10 }
	}
}

#-----------------------------------------------------------------------------------------------
#Revolt of the Marathas

#(1647-1706) Revolt of the Marathas
event = {
	id = 338400
	trigger = {
		NOT = {
			religion = hindu
			exists = MAH
		}
	}
	random = no
	province = 548 #Bombay
	name = "EVENTNAME338400" #Revolt of the Marathas
	desc = "EVENTHIST338400"
	#-#In 1647 the seventeen-year-old Shivaji began to form the Maratha state with the captures of the region of Pune and the forts of Kondana and Rajgad. Quickly he undermined local authority and established the first Maratha homeland.

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

	action_a = {
		name = "ACTIONNAME338400A" #What a headache...
		command = { type = revolt which = 548 } #Bombay
		command = { type = province_revoltrisk which = 548 value = 20 } #Bombay
		command = { type = setflag which = [maratha] }
	}
}
#(1647-1706) Revolt of the Marathas
event = {
	id = 338401
	trigger = {
		NOT = {
			religion = hindu
			exists = MAH
		}
	}
	random = no
	province = 550 #Maharashtra
	name = "EVENTNAME338400" #Revolt of the Marathas
	desc = "EVENTHIST338400"
	#-#In 1647 the seventeen-year-old Shivaji began to form the Maratha state with the captures of the region of Pune and the forts of Kondana and Rajgad. Quickly he undermined local authority and established the first Maratha homeland.

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

	action_a = {
		name = "ACTIONNAME338400A" #What a headache...
		command = { type = revolt which = 550 } #Maharashtra
		command = { type = province_revoltrisk which = 550 value = 30 } #Maharashtra
		command = { type = setflag which = [maratha] }
	}
}
#(1647-1706) Revolt of the Marathas
event = {
	id = 338402
	trigger = {
		NOT = {
			religion = hindu
			exists = MAH
		}
	}
	random = no
	province = 549 #Goa
	name = "EVENTNAME338400" #Revolt of the Marathas
	desc = "EVENTHIST338400"
	#-#In 1647 the seventeen-year-old Shivaji began to form the Maratha state with the captures of the region of Pune and the forts of Kondana and Rajgad. Quickly he undermined local authority and established the first Maratha homeland.

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

	action_a = {
		name = "ACTIONNAME338400A" #What a headache...
		command = { type = revolt which = 549 } #Goa
		command = { type = province_revoltrisk which = 549 value = 10 } #Goa
		command = { type = setflag which = [maratha] }
	}
}
#-----------------------------------------------------------------------------------------------
#(1707-1820) The Marathas in Bombay have been pacified
event = {
	id = 338403
	trigger = {
		control = { province = 548 data = -1 }
		flag = [maratha]
		OR = {
			NOT = { exists = MAH }
			year = 1740
		}
	}
	random = no
	province = 548 #Bombay
	name = "EVENTNAME338403" #The Marathas have been pacified
	desc = "EVENTHIST338403"
	#-#The Marathi dreams of taking Bombay have successfully been crushed.

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

	action_a = {
		name = "EXCELLENT"
		command = { type = province_revoltrisk which = 548 value = -20 } #Bombay
	}
}
#(1707-1820) The Marathas in Maharashtra have been pacified
event = {
	id = 338404
	trigger = {
		control = { province = 550 data = -1 }
		flag = [maratha]
		OR = {
			NOT = { exists = MAH }
			year = 1740
		}
	}
	random = no
	province = 550 #Maharashtra
	name = "EVENTNAME338403" #The Marathas have been pacified
	desc = "EVENTHIST338404"
	#-#The Marathi dreams of taking Maharashtra have successfully been crushed.

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

	action_a = {
		name = "EXCELLENT"
		command = { type = province_revoltrisk which = 550 value = -30 } #Maharashtra
	}
}
#(1707-1820) The Marathas in Goa have been pacified
event = {
	id = 338405
	trigger = {
		control = { province = 549 data = -1 }
		flag = [maratha]
		OR = {
			NOT = { exists = MAH }
			year = 1740
		}
	}
	random = no
	province = 549 #Goa
	name = "EVENTNAME338403" #The Marathas have been pacified
	desc = "EVENTHIST338405"
	#-#The Marathi dreams of taking Goa have successfully been crushed.

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

	action_a = {
		name = "EXCELLENT"
		command = { type = province_revoltrisk which = 549 value = -10 } #Goa
	}
}
#End of Revolt of the Marathas
#-----------------------------------------------------------------------------------------------

#-----------------------------------------------------------------------------------------------
#Sugar increase events

event = {
	id = 338278
	trigger = {
		NOT = { provincereligion = { province = 152 data = pagan } } #not a TP
	}
	random = no
	province = 152 #Barbados
	name = "EVENTNAME338278" #Sugar Production Expands in Barbados
	desc = "EVENTHIST338278"
	#-#By 1698 sugar production in Barbados had superceded the earlier primary crops of cotton and tobacco. Its population exploded as indentured servants and African slaves were imported in large numbers to work the sugar plantations.

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

	action_a = {
		name = "EXCELLENT"
		command = { type = provincetax which = 152 value = 8 } #Barbados
		command = { type = population which = 152 value = 2500 } #Barbados
	}
}
event = {
	id = 338279
	trigger = {
		NOT = { provincereligion = { province = 139 data = pagan } } #not a TP
	}
	random = no
	province = 139 #Guantanamo
	name = "EVENTNAME338279" #Sugar Production Expands in Cuba
	desc = "EVENTHIST338279"
	#-#By 1770 sugar production in Cuba had finally come of age with the inadvertent aid of Britain. Temporarily under British control during the Seven Years War large numbers of slaves had been imported by speculators who believed that it would be retained by the British after the peace treaty.

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

	action_a = {
		name = "EXCELLENT"
		command = { type = provincetax which = 139 value = 7 } #Guantanamo
		command = { type = population which = 139 value = 2500 } #Guantanamo
	}
}
event = {
	id = 338280
	trigger = {
		NOT = { provincereligion = { province = 140 data = pagan } } #not a TP
	}
	random = no
	province = 140 #Jamaica
	name = "EVENTNAME338280" #Sugar Production Expands in Jamaica
	desc = "EVENTHIST338280"
	#-#By 1717 sugar production in Jamaica had finally come of age. Its population exploded as indentured servants and African slaves were imported in large numbers to work the sugar plantations.

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

	action_a = {
		name = "EXCELLENT"
		command = { type = provincetax which = 140 value = 11 } #Jamaica
		command = { type = population which = 140 value = 5000 } #Jamaica
	}
}
event = {
	id = 338281
	trigger = {
		NOT = { provincereligion = { province = 141 data = pagan } } #not a TP
	}
	random = no
	province = 141 #Les Cayes
	name = "EVENTNAME338281" #Sugar Production Expands in Les Cayes
	desc = "EVENTHIST338281"
	#-#By 1739 sugar production in Les Cayes had finally come of age. Its population exploded as indentured servants and African slaves were imported in large numbers to work the sugar plantations.

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

	action_a = {
		name = "EXCELLENT"
		command = { type = provincetax which = 141 value = 16 } #Les Cayes
		command = { type = population which = 141 value = 10000 } #Les Cayes
	}
}
event = {
	id = 338282
	trigger = {
		NOT = { provincereligion = { province = 145 data = pagan } } #not a TP
	}
	random = no
	province = 145 #St. Thomas
	name = "EVENTNAME338282" #Sugar Production Expands in St. Thomas
	desc = "EVENTHIST338282"
	#-#By 1770 sugar production in St. Thomas, St. Croix and the Virgin Islands had finally come of age. Its population exploded as indentured servants and African slaves were imported in large numbers to work the sugar plantations.

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

	action_a = {
		name = "EXCELLENT"
		command = { type = provincetax which = 145 value = 3 } #St. Thomas
		command = { type = population which = 145 value = 1000 } #St. Thomas
	}
}
event = {
	id = 338284
	trigger = {
		NOT = { provincereligion = { province = 147 data = pagan } } #not a TP
	}
	random = no
	province = 147 #Antigua
	name = "EVENTNAME338284" #Sugar Production Expands in Antigua
	desc = "EVENTHIST338284"
	#-#By 1710 sugar production in Antigua and nearby islands had finally come of age. Its population exploded as indentured servants and African slaves were imported in large numbers to work the sugar plantations.

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

	action_a = {
		name = "EXCELLENT"
		command = { type = provincetax which = 147 value = 5 } #Antigua
		command = { type = population which = 147 value = 2000 } #Antigua
	}
}
event = {
	id = 338285
	trigger = {
		NOT = { provincereligion = { province = 149 data = pagan } } #not a TP
	}
	random = no
	province = 149 #Guadeloupe
	name = "EVENTNAME338285" #Sugar Production Expands in Guadeloupe
	desc = "EVENTHIST338285"
	#-#By 1730 sugar production in Guadeloupe and nearby islands had finally come of age. Its population exploded as indentured servants and African slaves were imported in large numbers to work the sugar plantations.

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

	action_a = {
		name = "EXCELLENT"
		command = { type = provincetax which = 149 value = 3 } #Guadeloupe
		command = { type = population which = 149 value = 1000 } #Guadeloupe
	}
}
event = {
	id = 338286
	trigger = {
		NOT = { provincereligion = { province = 150 data = pagan } } #not a TP
	}
	random = no
	province = 150 #Martinique
	name = "EVENTNAME338286" #Sugar Production Expands in Martinique
	desc = "EVENTHIST338286"
	#-#By 1722 sugar production in Martinique and nearby islands had finally come of age. Its population exploded as indentured servants and African slaves were imported in large numbers to work the sugar plantations.

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

	action_a = {
		name = "EXCELLENT"
		command = { type = provincetax which = 150 value = 3 } #Martinique
		command = { type = population which = 150 value = 1000 } #Martinique
	}
}
event = {
	id = 338287
	trigger = {
		NOT = { provincereligion = { province = 151 data = pagan } } #not a TP
	}
	random = no
	province = 151 #Trinidad
	name = "EVENTNAME338287" #Sugar Production Expands in Trinidad
	desc = "EVENTHIST338287"
	#-#Sugar production in Trinidad and Tobago began after the latter island was occupied by the British as part of the Seven Years War. But production really increased after Trinidad was conquered by the British in 1793.

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

	action_a = {
		name = "EXCELLENT"
		command = { type = provincetax which = 151 value = 3 } #Trinidad
	}
}
event = {
	id = 338288
	trigger = {
		NOT = { provincereligion = { province = 181 data = pagan } } #not a TP
	}
	random = no
	province = 181 #Surinam
	name = "EVENTNAME338288" #Sugar Production Expands in Surinam
	desc = "EVENTHIST338288"
	#-#Sugar production in Surinam benefitted hugely from the Dutch experience in Brazil although conditions there made production much more difficult than in Brazil.

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

	action_a = {
		name = "EXCELLENT"
		command = { type = provincetax which = 181 value = 2 } #Surinam
		command = { type = population which = 181 value = 1000 } #Surinam
	}
}
#End of Sugar increase events
#-----------------------------------------------------------------------------------------------

#(1655-1662) Koxinga claims sovereignty over Taiwan and disrupts trade
#by sturmvogel
event = {
	id = 338455 #triggered by SMI_317003 A / SMI_317017 A
	random = no
	province = 690 #Luzon
	name = "EVENTNAME186081" #Koxinga claims sovereignty over Taiwan and disrupts trade
	desc = "EVENTHIST338455"
	#-#By 1655 Zheng Chenggong, known as Koxinga in the West from his title of Guoxingye (Lord of the Imperial Surname), which was pronounced ''Kok seng ia'' in southern Fujianese, had become predominant in the Ming court and he was determined to prevent the Western powers from interfering with Ming trade and to assert sovereignty over Taiwan's native inhabitants. He sent a letter to the Governor of Taiwan in August 1655. The Spanish, wrote Chenggong, had been mistreating his sailors, and he had therefore issued an edict that forbade Chinese to sail to Manila on pain of death. He enclosed a copy of the edict and requested that the Governor propagate it in Formosa and enforce it by confiscating the junks and property of any who disobeyed. But the language of the edict raised the hackles of the Europeans. First, it said that they ''behave more like animals than Christians.'' Second, it referred to Chinese who lived in the colony as Chenggong's subjects. Third, and most important, it threatened punishment not only for Chinese but also for ''anyone outside of our nation who extends money for trade with Manila.'' They replied with a ''compliment letter,'' which politely declined his request. The end result of this was a lot fewer junks calling at Manila.

	action_a = {
		name = "ACTIONNAME186081A" #Trade has been disrupted
		command = { type = merchants value = -1 }
		command = { type = trade value = -200 }
		command = { type = provincetax which = 690 value = -1 } #Luzon
		command = { type = relation which = SMI value = -50 }
	}
}
#(1655-1662) Koxinga claims sovereignty over Taiwan and disrupts trade
#by sturmvogel
event = {
	id = 338456 #triggered by SMI_317017 A
	random = no
	province = 689 #Taiwan
	name = "EVENTNAME186081" #Koxinga claims sovereignty over Taiwan and disrupts trade
	desc = "EVENTHIST338456"
	#-#By 1655 Zheng Chenggong, known as Koxinga in the West from his title of Guoxingye (Lord of the Imperial Surname), which was pronounced ''Kok seng ia'' in southern Fujianese, had become predominant in the Ming court and he was determined to prevent the Western powers from interfering with Ming trade and to assert sovereignty over Taiwan's native inhabitants. He sent a letter to the Governor of Taiwan in August 1655. The Spanish, wrote Chenggong, had been mistreating his sailors, and he had therefore issued an edict that forbade Chinese to sail to Manila on pain of death. He enclosed a copy of the edict and requested that the Governor propagate it in Formosa and enforce it by confiscating the junks and property of any who disobeyed. But the language of the edict raised the hackles of the Europeans. First, it said that they ''behave more like animals than Christians.'' Second, it referred to Chinese who lived in the colony as Chenggong's subjects. Third, and most important, it threatened punishment not only for Chinese but also for ''anyone outside of our nation who extends money for trade with Manila.'' If company officials did as Chenggong asked and published the edict, they would be admitting that Chenggong had sovereignty over the Chinese colonists in Formosa. The Governor and the council decided they must refuse Chenggong's request to preserve ''their sovereignty.'' They replied with a ''compliment letter,'' which politely declined his request. A small fleet was sent to the coast of China, but they found no sign of preparations for invasion. However, Zheng seems to have intimidated many of the Chinese merchants who normally came to trade in Taiwan because very few would brave his displeasure over the next few years.

	action_a = {
		name = "ACTIONNAME186081A" #Trade has been disrupted
		command = { type = merchants value = -1 }
		command = { type = trade value = -100 }
		command = { type = provincetax which = 689 value = -2 } #Taiwan
		command = { type = relation which = SMI value = -25 }
	}
}

#(1660-1680) The Maharati revolt
#by Khephren and Garbon
event = {
	id = 338001
	trigger = {
		NOT = {
			exists = MAH
			domestic = { type = innovative value = 8 }
			religion = hindu
		}
		OR = {
			NOT = { continent = asia }
			countrysize = 15
		}
	}
	random = no
	province = 550 #Maharashtra
	name = "EVENTNAME338001" #The Marathi Revolt
	desc = "EVENTHIST338001"
	#-#The Marathas under the leadership of a brilliant young general by the name of Shivaji have risen in revolt in Maharashtra! Shivaji is a devoted Hindu, as are most of the Marathas.

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

	action_a = {
		name = "ACTIONNAME338001A" #Crush the Hindu rebels
		command = { type = revolt which = 550 } #Maharashtra
		command = { type = revolt which = 550 } #Maharashtra
		command = { type = revolt which = 550 } #Maharashtra
		command = { type = revolt which = 551 } #Khandesh
		command = { type = revolt which = 551 } #Khandesh
		command = { type = stability value = -1 }
		command = { type = domestic which = INNOVATIVE value = -1 }
	}
	action_b = {
		name = "ACTIONNAME338001B" #Give in to their demands
		command = { type = stability value = -1 }
		command = { type = independence which = MAH }
	}
}
#(1660-1680) The Marathi Revolt
#by Khephren and Garbon
event = {
	id = 338418
	trigger = {
		NOT = {
			exists = MAH
			domestic = { type = innovative value = 8 }
			religion = hindu
			countrysize = 15
		}
		continent = asia
	}
	random = no
	province = 550 #Maharashtra
	name = "EVENTNAME338001" #The Marathi Revolt
	desc = "EVENTHIST338001"
	#-#The Marathas under the leadership of a brilliant young general by the name of Shivaji have risen in revolt in Maharashtra! Shivaji is a devoted Hindu, as are most of the Marathas.

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

	action_a = {
		name = "ACTIONNAME338001A" #Crush the Hindu rebels
		command = { type = revolt which = 550 } #Maharashtra
		command = { type = revolt which = 550 } #Maharashtra
		command = { type = revolt which = 550 } #Maharashtra
		command = { type = revolt which = 551 } #Khandesh
		command = { type = revolt which = 551 } #Khandesh
		command = { type = stability value = -3 }
		command = { type = domestic which = CENTRALIZATION value = 1 }
		command = { type = domestic which = INNOVATIVE value = -1 }
	}
	action_b = {
		name = "ACTIONNAME338001B" #Give in to their demands
		command = { type = stability value = -2 }
		command = { type = independence which = MAH }
		command = { type = domestic which = CENTRALIZATION value = -2 }
	}
}

#(1667) Ragusan Earthquake
#by Wido
event = {
	id = 338000
	random = no
	province = 365 #Dalmatia
	name = "EVENTNAME338000" #Ragusan Earthquake
	desc = "EVENTHIST338000"
	#-#The earthquake of Ragusa in 1667, which had been preceded by lesser shocks in 1520, 1521, 1536 and 1639, destroyed a considerable portion of the city. The fortifications were damaged, and many people of the city died. After this cataclysm the decadence of the small Adriatic state increased, but the city was rebuilt in a more modern way, with a broad avenue in the centre: the 'Stradun'.

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

	action_a = {
		name = "OK"
		command = { type = population which = 365 value = -5000 } #Dalmatia
		command = { type = provincetax which = 365 value = -2 } #Dalmatia
		command = { type = fortress which = 365 value = -1 } #Dalmatia
	}
}

#(1670-1700) Miscellanea Curiosa Medico-Physica in Breslau
#should only happen to Austria, Bohemia, Brandenburg or Prussia
event = {
	id = 338245
	trigger = {
		atwar = no
		OR = {
			owned = { province = 314 data = HAB }
			owned = { province = 314 data = BOH }
			owned = { province = 314 data = BRA }
			owned = { province = 314 data = PRU }
		}
	}
	random = no
	province = 314 #Silesia
	name = "EVENTNAME338245" #Miscellanea Curiosa Medico-Physica in Breslau
	desc = "EVENTHIST338245"
	#-#In 1670 in Breslau first in the world medical journal was published. Its full name was Miscellanea curiosa medico-physica seu Ephemerides medico-physicae Germanicae curiosae. The initiator and first editor was Philipp Jakob Sachs von Levenheimb, famous medicine doctor and naturalist from Breslau. In the first volume many reports from various fields were published, from anatomy, zoology, pathology, physics, chemistry to botanic written by 36 authors.

	date = { day = 1 month = june year = 1670 }
	offset = 30
	deathdate = { day = 10 month = june year = 1700 }

	action_a = {
		name = "GREAT"
		command = { type = infra value = 25 }
	}
}

#(1672) Mount Merapi erupts
event = {
	id = 338038
	random = no
	province = 703 #Bandung
	name = "EVENTNAME338038" #Mount Merapi erupts
	desc = "EVENTHIST338038"
	#-#Mount Merapi erupted in Mataram.

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

	action_a = {
		name = "DARN"
		command = { type = population which = 703 value = -500 } #Bandung
		command = { type = desertion which = 703 value = 500 } #Bandung
		command = { type = provincetax which = 703 value = -1 } #Bandung
		command = { type = provincemanpower which = 703 value = -1 } #Bandung
	}
}

#(1673-1700) The French and Pondicherry
event = {
	id = 338023
	trigger = {
		exists = HOL
		exists = FRA
		continent = asia
		NOT = {
			core = { province = 572 data = -1 } #Gingee exempt
		}
		OR = {
			#Event checks to ensure that the Netherlands have something to do with India/the East
			event = 3503 #HOL: Vereenigde Oostindische Compagnie
			event = 186036 #HOL: Succession Dispute in Cochin
			event = 186037 #HOL: Asendancy in Malabar
		}
		OR = {
			religion = sunni
			religion = eastern_sunni
			religion = shia
			religion = eastern_shia
			religion = buddhist
			religion = hindu
			religion = sikh
			religion = jain
		}
	}
	random = no
	province = 572 #Pondicherry
	name = "EVENTNAME338023" #The French and Pondicherry
	desc = "EVENTHIST338023"
	#-#In 1673, the ruler of the lands around small fishing village of Pondicherry invited the French to start a trading centre, in order to compete with the Dutch.

	date = { day = 1 month = january year = 1673 }
	offset = 30
	deathdate = { day = 1 month = january year = 1700 }

	action_a = {
		name = "ACTIONNAME338023A" #Encourage the French to setup a trading centre
		command = { type = trigger which = 170600 } #FRA: Expansion in Pondicherry
		command = { type = relation which = FRA value = 50 }
		command = { type = cedeprovince which = FRA value = 572 } #Pondicherry
		command = { type = trade value = 200 }
	}
	action_b = {
		name = "ACTIONNAME338023B" #We do not need the French!
		command = { type = relation which = FRA value = -50 }
		command = { type = trade value = -400 }
	}
}

#(1681-1820) Maize introduced in Wallachia
event = {
	id = 338292
	random = no
	province = 322 #Wallachia
	name = "EVENTNAME338292" #Maize introduced in Wallachia
	desc = "EVENTHIST338292"
	#-#This plant, originating from Mezo-America, was introduced in Wallachia and became the staple food of the country.

	date = { day = 10 month = july year = 1681 }
	offset = 1000
	deathdate = { year = 1820 }

	action_a = {
		name = "EXCELLENT"
		command = { type = population which = 322 value = 1500 } #Wallachia
		command = { type = trigger which = 329037 } #WAL: Effect of introduction of Maize in Wallachia
	}
}

#(1690-1820) Tea is introduced on Java
event = {
	id = 338039
	trigger = { continent = europe }
	random = no
	province = 701 #Sunda
	name = "EVENTNAME338039" #Tea is introduced on Java
	desc = "EVENTHIST338039"
	#-#Tea was introduced on Java.

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

	action_a = {
		name = "ACTIONNAME338039A" #Delicious
		command = { type = provincetax which = 701 value = 1 } #Sunda
	}
}

#(1690-1820) Tea is introduced on Java
event = {
	id = 338040
	trigger = { continent = europe }
	random = no
	province = 703 #Bandung
	name = "EVENTNAME338039" #Tea is introduced on Java
	desc = "EVENTHIST338039"
	#-#Tea was introduced on Java.

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

	action_a = {
		name = "ACTIONNAME338039A" #Delicious
		command = { type = provincetax which = 703 value = 1 } #Bandung
	}
}

#(1690-1820) Tea is introduced on Java
event = {
	id = 338041
	trigger = { continent = europe }
	random = no
	province = 704 #Surabaja
	name = "EVENTNAME338039" #Tea is introduced on Java
	desc = "EVENTHIST338039"
	#-#Tea was introduced on Java.

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

	action_a = {
		name = "ACTIONNAME338039A" #Delicious
		command = { type = provincetax which = 704 value = 1 } #Surabaja
	}
}

#-----------------------------------------------------------------------------------------------
#(1692-1693) Salem Witch Trials events by Sute]{h
#Source: http://www.salemwitchmuseum.com
event = {
	id = 338021
	trigger = {
		OR = {
			provincereligion = { province = 103 data = catholic }
			provincereligion = { province = 103 data = protestant }
			provincereligion = { province = 103 data = reformed }
		}
		OR = {
			religion = catholic
			religion = counterreform
			religion = protestant
			religion = reformed
		}
	}
	random = no
	province = 103 #Massachusetts
	name = "EVENTNAME338021" #The Salem Witch Trials
	desc = "EVENTHIST338021"
	#-#In January of 1692, the daughter and niece of Reverend Samuel Parris of Salem Village became ill. When they failed to improve, the village doctor, William Griggs, was called in. His diagnosis of bewitchment put into motion the forces that would ultimately result in the death by hanging of nineteen men and women. In addition, one man was crushed to death; seventeen others died in prison, and the lives of many were irrevocably changed.

	date = { day = 19 month = march year = 1692 }
	offset = 10
	deathdate = { day = 1 month = march year = 1693 }

	action_a = {
		name = "ACTIONNAME338021A" #Let the trials begin
		command = { type = province_revoltrisk which = 103 value = 1 } #Massachusetts
		command = { type = population which = 103 value = -37 } #Massachusetts
		command = { type = domestic which = innovative value = -1 }
		command = { type = missionaries value = -1 }
	}
	action_b = {
		name = "ACTIONNAME338021B" #This is supertious nonsense
		command = { type = revolt which = 103 } #Massachusetts
		command = { type = domestic which = innovative value = 1 }
		command = { type = sleepevent which = 338022 } #ProvinceSpec*103: The Salem Witch Trials ends
	}
}
event = {
	id = 338022
	trigger = {
		event = 338021 #The Salem Witch Trials
	}
	random = no
	province = 103
	name = "EVENTNAME338022" #The Salem Witch Trials ends
	desc = "EVENTHIST338022"
	#-#In June of 1692, the special Court of Oyer (to hear) and Terminer (to decide) sat in Salem to hear the cases of witchcraft. Presided over by Chief Justice William Stoughton, the court was made up of magistrates and jurors. The first to be tried was Bridget Bishop of Salem who was found guilty and was hanged on June 10. Thirteen women and five men from all stations of life followed her to the gallows on three successive hanging days before the court was disbanded by Governor William Phipps in October of that year. The Superior Court of Judicature, formed to replace the 'witchcraft' court, did not allow spectral evidence. This belief in the power of the accused to use their invisible shapes or spectres to torture their victims had sealed the fates of those tried by the Court of Oyer and Terminer. The new court released those awaiting trial and pardoned those awaiting execution. In effect, the Salem witch trials were over.

	date = { day = 1 month = june year = 1692 }
	offset = 30
	deathdate = { day = 1 month = june year = 1693 }

	action_a = {
		name = "ACTIONNAME338022A" #Replace the Court of Oyer and Terminer
		command = { type = province_revoltrisk which = 103 value = -1 } #Massachusetts
		command = { type = domestic which = innovative value = 1 }
	}
	action_b = {
		name = "ACTIONNAME338022B" #Have the Court of Oyer and Terminer hang all heretics as well
		command = { type = conversion which = 103 } #Massachusetts
		command = { type = province_revoltrisk which = 103 value = -1 } #Massachusetts
		command = { type = religiousrevolt which = -1 } #Heretics in other parts of the country won't like this
		command = { type = population which = 103 value = -173 } #Massachusetts
		command = { type = domestic which = innovative value = -1 }
		command = { type = missionaries value = -1 }
	}
}
#-----------------------------------------------------------------------------------------------

#(1693-1750) British Traders near the Ganges
event = {
	id = 338012
	trigger = {
		exists = ENG
		continent = asia
		OR = {
			owned = { province = 571 data = ENG } #Madras
			event = 164600 #ENG: An Opportunity in India
			event = 338023 #ProvinceSpec*572: The French and Pondicherry
		}
	}
	random = no
	province = 557 #Ganges
	name = "EVENTNAME338012" #British Traders near the Ganges
	desc = "EVENTHIST338012"
	#-#In August of 1690, Job Charnok, an agent of the East India Company settled in Calcutta. A few years later, the EIC would approach to purchase three outlying villages to being a settlement.

	date = { day = 1 month = january year = 1693 }
	offset = 30
	deathdate = { day = 1 month = january year = 1750 }

	action_a = {
		name = "ACTIONNAME338012A" #Allow them to settle in the region for a tribute
		command = { type = relation which = ENG value = 25 }
		command = { type = cedeprovince which = ENG value = 557 } #Ganges
		command = { type = trigger which = 164603 } #ENG: Trade in Calcutta
	}
	action_b = {
		name = "ACTIONNAME338012B" #We do not want them as neighbors!
		command = { type = relation which = ENG value = -200 }
		command = { type = trigger which = 164604 } #ENG: Trade in Calcutta
	}
}

#(1699) Earthquake at Batavia
event = {
	id = 338045
	random = no
	province = 702 #Jakarta
	name = "EVENTNAME338045" #Earthquake at Batavia
	desc = "EVENTHIST338045"
	#-#Earthquake at Batavia

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

	action_a = {
		name = "DARN"
		command = { type = population which = 702 value = -500 } #Jakarta
		command = { type = desertion which = 702 value = 500 } #Jakarta
		command = { type = provincetax which = 702 value = -1 } #Jakarta
		command = { type = provincemanpower which = 702 value = -1 } #Jakarta
	}
}

#(1699-1820) Coffee cultivation in Java
event = {
	id = 338043
	trigger = {
		continent = europe
		event = 3503 #HOL: Vereenigde Oostindische Compagnie
	}
	random = no
	province = 703 #Bandung
	name = "EVENTNAME338043" #Coffee cultivation in Java
	desc = "EVENTHIST338043"
	#-#VOC introduced coffee cultivation to Java.

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

	action_a = {
		name = "ACTIONNAME338043A" #Delicious
		command = { type = provincetax which = 703 value = 1 } #Bandung
	}
}

#(1699-1820) Coffee cultivation in Java
event = {
	id = 338044
	trigger = {
		continent = europe
		event = 3503 #HOL: Vereenigde Oostindische Compagnie
	}
	random = no
	province = 704 #Surabaja
	name = "EVENTNAME338043" #Coffee cultivation in Java
	desc = "EVENTHIST338043"
	#-#VOC introduced coffee cultivation to Java.

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

	action_a = {
		name = "ACTIONNAME338043A" #Delicious
		command = { type = provincetax which = 704 value = 1 } #Surabaja
	}
}

#(1699-1714) Slavic Migration
event = {
	id = 338436
	trigger = {
		NOT = {
			owned = { province = 365 data = VEN }
			control = { province = 365 data = VEN }
		}
	}
	random = no
	province = 365 #Dalmatia
	name = "EVENTNAME338436" #Slavic Migration
	desc = "EVENTHIST338436"
	#-#Due to certain circumstances, Dalmatia found itself free to accept Croatian and Serbian people en mass. The common people themselves were a mixture of Catholic, Orthodox and local church followers, with each tending to dominate in certain areas of the newly entered province. Such regional particularism firstly prevented a strong central authority. Secondly, portentously, it led to the development of factionalism amongst the people. The fate of all these medieval Slavic states, as it was for all of the Balkans, was annexation, one by one, by the growing Ottoman empire or Latin nations. Characteristic of the people, they were never able to remain unified, the end result of a legacy of strong sense of tribal autonomy, opposing influences from external powers, and perhaps even individual greed for power at the expense of thought for the common good.

	date = { day = 1 month = june year = 1699 }
	offset = 50
	deathdate = { day = 22 month = december year = 1714 }

	action_a = {
		name = "ACTIONNAME338436A" #Mass movement
		command = { type = provinceculture which = 365 value = slavonic }
		command = { type = population which = 365 value = 5000 } #Dalmatia
		command = { type = religiousrevolt which = 365 } #Dalmatia
		command = { type = trade value = 500 }
		command = { type = relation which = VEN value = -25 }
		command = { type = stability value = -1 }
		command = { type = sleepevent which = 326071 } #TUR: The treaty of Karlowitz
	}
	action_b = {
		name = "ACTIONNAME338436B" #Slavs stay put
		command = { type = population which = 365 value = 100 } #Dalmatia
		command = { type = stability value = 1 }
		command = { type = gainbuilding which = 365 value = bailiff } #represents venetian commerce, infrastructure for past 400 years
	}
}

#(1700-1820) Telugu in Hyderabad
#by Garbon
event = {
	id = 338294
	trigger = {
		OR = {
			owned = { province = 563 data = -1 } #Bastar
			owned = { province = 564 data = -1 } #Yanam
			owned = { province = 565 data = -1 } #Palakimedi
			AND = {
				owned = { province = 571 data = -1 } #Madras
				event = 338295 #ProvinceSpec*571: Telugu in Madras
			}
		}
	}
	random = no
	province = 566 #Hyderabad
	name = "EVENTNAME338294" #Telugu in Hyderabad
	desc = "EVENTHIST338294"
	#-#During the course of the 18th century, the rise of various states and small population migrations led to the Telugu language becoming predominant in the eastern portion of Central India.

	date = { day = 0 month = january year = 1700 }
	offset = 3000
	deathdate = { year = 1820 }

	action_a = {
		name = "ACTIONNAME338294A" #Telugu becomes influential in this province
		command = { type = population which = 566 value = 500 } #Hyderabad
		command = { type = provinceculture which = 566 value = telugu } #Hyderabad
	}
}

#(1700-1820) Telugu in Madras
#by Garbon
event = {
	id = 338295
	trigger = {
		OR = {
			owned = { province = 563 data = -1 } #Bastar
			owned = { province = 564 data = -1 } #Yanam
			owned = { province = 565 data = -1 } #Palakimedi
			AND = {
				owned = { province = 566 data = -1 } #Madras
				event = 338294 #ProvinceSpec*566: Telugu in Hyderabad
			}
		}
	}
	random = no
	province = 571 #Madras
	name = "EVENTNAME338295" #Telugu in Madras
	desc = "EVENTHIST338294"
	#-#During the course of the 18th century, the rise of various states and small population migrations led to the Telugu language becoming predominant in the eastern portion of Central India.

	date = { day = 0 month = january year = 1700 }
	offset = 3000
	deathdate = { year = 1820 }

	action_a = {
		name = "ACTIONNAME338294A" #Telugu becomes influential in this province
		command = { type = population which = 571 value = 500 } #Madras
		command = { type = provinceculture which = 571 value = telugu } #Madras
	}
}

#-----------------------------------------------------------------------------------------------
#"Rebellion of Mir Wais" Sequence

#(1707-1713) The Rebellion of Mir Wais
event = {
	id = 338479
	trigger = {
		countrysize = 2
		NOT = {
			exists = AFG
			flag = [Mir_Wais]
		}
	}
	random = no
	province = 1525 #Qandahar
	name = "EVENTNAME338479" #The Rebellion of Mir Wais
	desc = "EVENTHIST338479"
	#-#By the 18th century, the Afghan tribes in the Kandahar area were tired of being lorded over by foreign powers. A slew of rapacious and intolerant governors had done little to smooth relations between the Afghans and their occupiers. Taking advantage of popular sentiment, a tribal leader, Mir Wais, would lead the tribes to form an independent Afghan state.

	date = { day = 1 month = january year = 1707 }
	offset = 51
	deathdate = { day = 29 month = december year = 1713 }

	action_a = {
		name = "CURSES"
		command = { type = province_revoltrisk which = 1524 value = 30 } #Quetta
		command = { type = province_revoltrisk which = 1525 value = 30 } #Qandahar
		command = { type = province_revoltrisk which = 1527 value = 30 } #Kabul
		command = { type = province_revoltrisk which = 1528 value = 30 } #Kushka
		command = { type = setflag which = [Mir_Wais] }
	}
}
event = {
	id = 338480
	trigger = {
		countrysize = 2
		NOT = {
			exists = AFG
			flag = [Mir_Wais]
		}
	}
	random = no
	province = 1524 #Quetta
	name = "EVENTNAME338479" #The Rebellion of Mir Wais
	desc = "EVENTHIST338479"
	#-#By the 18th century, the Afghan tribes in the Kandahar area were tired of being lorded over by foreign powers. A slew of rapacious and intolerant governors had done little to smooth relations between the Afghans and their occupiers. Taking advantage of popular sentiment, a tribal leader, Mir Wais, would lead the tribes to form an independent Afghan state.

	date = { day = 1 month = january year = 1707 }
	offset = 52
	deathdate = { day = 29 month = december year = 1713 }

	action_a = {
		name = "CURSES"
		command = { type = province_revoltrisk which = 1524 value = 30 } #Quetta
		command = { type = province_revoltrisk which = 1525 value = 30 } #Qandahar
		command = { type = province_revoltrisk which = 1527 value = 30 } #Kabul
		command = { type = province_revoltrisk which = 1528 value = 30 } #Kushka
		command = { type = setflag which = [Mir_Wais] }
	}
}
event = {
	id = 338481
	trigger = {
		countrysize = 2
		NOT = {
			exists = AFG
			flag = [Mir_Wais]
		}
	}
	random = no
	province = 1527 #Kabul
	name = "EVENTNAME338479" #The Rebellion of Mir Wais
	desc = "EVENTHIST338479"
	#-#By the 18th century, the Afghan tribes in the Kandahar area were tired of being lorded over by foreign powers. A slew of rapacious and intolerant governors had done little to smooth relations between the Afghans and their occupiers. Taking advantage of popular sentiment, a tribal leader, Mir Wais, would lead the tribes to form an independent Afghan state.

	date = { day = 1 month = january year = 1707 }
	offset = 53
	deathdate = { day = 29 month = december year = 1713 }

	action_a = {
		name = "CURSES"
		command = { type = province_revoltrisk which = 1524 value = 30 } #Quetta
		command = { type = province_revoltrisk which = 1525 value = 30 } #Qandahar
		command = { type = province_revoltrisk which = 1527 value = 30 } #Kabul
		command = { type = province_revoltrisk which = 1528 value = 30 } #Kushka
		command = { type = setflag which = [Mir_Wais] }
	}
}
event = {
	id = 338482
	trigger = {
		countrysize = 2
		NOT = {
			exists = AFG
			flag = [Mir_Wais]
		}
	}
	random = no
	province = 1528 #Kushka
	name = "EVENTNAME338479" #The Rebellion of Mir Wais
	desc = "EVENTHIST338479"
	#-#By the 18th century, the Afghan tribes in the Kandahar area were tired of being lorded over by foreign powers. A slew of rapacious and intolerant governors had done little to smooth relations between the Afghans and their occupiers. Taking advantage of popular sentiment, a tribal leader, Mir Wais, would lead the tribes to form an independent Afghan state.

	date = { day = 1 month = january year = 1707 }
	offset = 54
	deathdate = { day = 29 month = december year = 1713 }

	action_a = {
		name = "CURSES"
		command = { type = province_revoltrisk which = 1524 value = 30 } #Quetta
		command = { type = province_revoltrisk which = 1525 value = 30 } #Qandahar
		command = { type = province_revoltrisk which = 1527 value = 30 } #Kabul
		command = { type = province_revoltrisk which = 1528 value = 30 } #Kushka
		command = { type = setflag which = [Mir_Wais] }
	}
}
#-----------------------------------------------------------------------------------------------
#(1738-1749) Afghan rebellions subside
event = {
	id = 338483
	trigger = {
		flag = [Mir_Wais]
	}
	random = no
	province = 1525 #Qandahar
	name = "EVENTNAME338483" #The failure of Mir Wais
	desc = "EVENTHIST338483"
	#-#By the middle of the 18th century, it was apparent that the Afghans were incapable of taking control of all of Afghanistan.

	date = { day = 1 month = january year = 1738 }
	offset = 51
	deathdate = { day = 29 month = december year = 1749 }

	action_a = {
		name = "AT_LAST"
		command = { type = province_revoltrisk which = 1524 value = -40 } #Quetta
		command = { type = province_revoltrisk which = 1525 value = -40 } #Qandahar
		command = { type = province_revoltrisk which = 1527 value = -40 } #Kabul
		command = { type = province_revoltrisk which = 1528 value = -40 } #Kushka
		command = { type = clrflag which = [Mir_Wais] }
	}
}
event = {
	id = 338484
	trigger = {
		flag = [Mir_Wais]
	}
	random = no
	province = 1524 #Quetta
	name = "EVENTNAME338483" #The failure of Mir Wais
	desc = "EVENTHIST338483"
	#-#By the middle of the 18th century, it was apparent that the Afghans were incapable of taking control of all of Afghanistan.

	date = { day = 1 month = january year = 1738 }
	offset = 52
	deathdate = { day = 29 month = december year = 1749 }

	action_a = {
		name = "AT_LAST"
		command = { type = province_revoltrisk which = 1524 value = -40 } #Quetta
		command = { type = province_revoltrisk which = 1525 value = -40 } #Qandahar
		command = { type = province_revoltrisk which = 1527 value = -40 } #Kabul
		command = { type = province_revoltrisk which = 1528 value = -40 } #Kushka
		command = { type = clrflag which = [Mir_Wais] }
	}
}
event = {
	id = 338485
	trigger = {
		flag = [Mir_Wais]
	}
	random = no
	province = 1527 #Kabul
	name = "EVENTNAME338483" #The failure of Mir Wais
	desc = "EVENTHIST338483"
	#-#By the middle of the 18th century, it was apparent that the Afghans were incapable of taking control of all of Afghanistan.

	date = { day = 1 month = january year = 1738 }
	offset = 53
	deathdate = { day = 29 month = december year = 1749 }

	action_a = {
		name = "AT_LAST"
		command = { type = province_revoltrisk which = 1524 value = -40 } #Quetta
		command = { type = province_revoltrisk which = 1525 value = -40 } #Qandahar
		command = { type = province_revoltrisk which = 1527 value = -40 } #Kabul
		command = { type = province_revoltrisk which = 1528 value = -40 } #Kushka
		command = { type = clrflag which = [Mir_Wais] }
	}
}
event = {
	id = 338486
	trigger = {
		flag = [Mir_Wais]
	}
	random = no
	province = 1528 #Kushka
	name = "EVENTNAME338483" #The failure of Mir Wais
	desc = "EVENTHIST338483"
	#-#By the middle of the 18th century, it was apparent that the Afghans were incapable of taking control of all of Afghanistan.

	date = { day = 1 month = january year = 1738 }
	offset = 54
	deathdate = { day = 29 month = december year = 1749 }

	action_a = {
		name = "AT_LAST"
		command = { type = province_revoltrisk which = 1524 value = -40 } #Quetta
		command = { type = province_revoltrisk which = 1525 value = -40 } #Qandahar
		command = { type = province_revoltrisk which = 1527 value = -40 } #Kabul
		command = { type = province_revoltrisk which = 1528 value = -40 } #Kushka
		command = { type = clrflag which = [Mir_Wais] }
	}
}
#End of "Rebellion of Mir Wais" Sequence
#-----------------------------------------------------------------------------------------------

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

#(1713-1715) Peace of Utrecht devolution - Gerona
event = {
	id = 338063
	trigger = {
		exists = SPA
		OR = {
			event = 285210 #SPA: #The Will of Carlos II -I-
			event = 285284 #SPA: #The Will of Carlos II -II-
		}
		OR = {
			core = { province = 385 data = -1 } #Ile de France (France)
			core = { province = 339 data = -1 } #Holland (Netherlands)
			core = { province = 351 data = -1 } #Austria (Austria)
			core = { province = 405 data = -1 } #Savoie (Savoy)
			core = { province = 247 data = -1 } #Anglia (England)
			core = { province = 441 data = -1 } #Tago (Portugal)
		}
		NOT = {
			core = { province = 436 data = -1 } #Castilla (Spain)
		}
	}
	random = no
	province = 427
	name = "EVENTNAME338063" #Peace of Utrecht devolution
	desc = "EVENTHIST338063"
	#-#In the Peace of Utrecht the restitution of the peninsular provinces back to Spain has been agreed upon. We can however keep any part of their empire that we have captured.

	date = { day = 11 month = april year = 1713 }
	offset = 30
	deathdate = { day = 1 month = november year = 1715 }

	action_a = {
		name = "ACTIONNAME338063A" #Turn over the lands seized to the King of Spain
		command = { type = cedeprovince which = SPA value = 427 } #Gerona
		command = { type = relation which = SPA value = 100 }
		command = { type = relation which = FRA value = 25 }
		command = { type = badboy value = -1 }
	}
	action_b = {
		name = "ACTIONNAME338063B" #Keep our conquests
		command = { type = relation which = SPA value = -100 }
		command = { type = revolt which = 427 } #Gerona
		command = { type = stability value = -1 }
		command = { type = badboy value = 1 }
	}
}
#(1713-1715) Peace of Utrecht devolution - Catalonia
event = {
	id = 338064
	trigger = {
		exists = SPA
		OR = {
			event = 285210 #SPA: #The Will of Carlos II -I-
			event = 285284 #SPA: #The Will of Carlos II -II-
		}
		OR = {
			core = { province = 385 data = -1 } #Ile de France (France)
			core = { province = 339 data = -1 } #Holland (Netherlands)
			core = { province = 351 data = -1 } #Austria (Austria)
			core = { province = 405 data = -1 } #Savoie (Savoy)
			core = { province = 247 data = -1 } #Anglia (England)
			core = { province = 441 data = -1 } #Tago (Portugal)
		}
		NOT = {
			core = { province = 436 data = -1 } #Castilla (Spain)
		}
	}
	random = no
	province = 429
	name = "EVENTNAME338063" #Peace of Utrecht devolution
	desc = "EVENTHIST338063"
	#-#In the Peace of Utrecht the restitution of the peninsular provinces back to Spain has been agreed upon. We can however keep any part of their empire that we have captured.

	date = { day = 11 month = april year = 1713 }
	offset = 30
	deathdate = { day = 1 month = november year = 1715 }

	action_a = {
		name = "ACTIONNAME338063A" #Turn over the lands seized to the King of Spain
		command = { type = cedeprovince which = SPA value = 429 } #Catalonia
		command = { type = relation which = SPA value = 100 }
		command = { type = relation which = FRA value = 25 }
		command = { type = badboy value = -1 }
	}
	action_b = {
		name = "ACTIONNAME338063B" #Keep our conquests
		command = { type = relation which = SPA value = -100 }
		command = { type = revolt which = 429 } #Catalonia
		command = { type = stability value = -1 }
		command = { type = badboy value = 1 }
	}
}
#(1713-1715) Peace of Utrecht devolution - Aragon
event = {
	id = 338065
	trigger = {
		exists = SPA
		OR = {
			event = 285210 #SPA: #The Will of Carlos II -I-
			event = 285284 #SPA: #The Will of Carlos II -II-
		}
		OR = {
			core = { province = 385 data = -1 } #Ile de France (France)
			core = { province = 339 data = -1 } #Holland (Netherlands)
			core = { province = 351 data = -1 } #Austria (Austria)
			core = { province = 405 data = -1 } #Savoie (Savoy)
			core = { province = 247 data = -1 } #Anglia (England)
			core = { province = 441 data = -1 } #Tago (Portugal)
		}
		NOT = {
			core = { province = 436 data = -1 } #Castilla (Spain)
		}
	}
	random = no
	province = 430
	name = "EVENTNAME338063" #Peace of Utrecht devolution
	desc = "EVENTHIST338063"
	#-#In the Peace of Utrecht the restitution of the peninsular provinces back to Spain has been agreed upon. We can however keep any part of their empire that we have captured.

	date = { day = 11 month = april year = 1713 }
	offset = 30
	deathdate = { day = 1 month = november year = 1715 }

	action_a = {
		name = "ACTIONNAME338063A" #Turn over the lands seized to the King of Spain
		command = { type = cedeprovince which = SPA value = 430 } #Aragon
		command = { type = relation which = SPA value = 100 }
		command = { type = relation which = FRA value = 25 }
		command = { type = badboy value = -1 }
	}
	action_b = {
		name = "ACTIONNAME338063B" #Keep our conquests
		command = { type = relation which = SPA value = -100 }
		command = { type = revolt which = 430 } #Aragon
		command = { type = stability value = -1 }
		command = { type = badboy value = 1 }
	}
}
#(1713-1715) Peace of Utrecht devolution - Valencia
event = {
	id = 338068
	trigger = {
		exists = SPA
		OR = {
			event = 285210 #SPA: #The Will of Carlos II -I-
			event = 285284 #SPA: #The Will of Carlos II -II-
		}
		OR = {
			core = { province = 385 data = -1 } #Ile de France (France)
			core = { province = 339 data = -1 } #Holland (Netherlands)
			core = { province = 351 data = -1 } #Austria (Austria)
			core = { province = 405 data = -1 } #Savoie (Savoy)
			core = { province = 247 data = -1 } #Anglia (England)
			core = { province = 441 data = -1 } #Tago (Portugal)
		}
		NOT = {
			core = { province = 436 data = -1 } #Castilla (Spain)
		}
	}
	random = no
	province = 437
	name = "EVENTNAME338063" #Peace of Utrecht devolution
	desc = "EVENTHIST338063"
	#-#In the Peace of Utrecht the restitution of the peninsular provinces back to Spain has been agreed upon. We can however keep any part of their empire that we have captured.

	date = { day = 11 month = april year = 1713 }
	offset = 30
	deathdate = { day = 1 month = november year = 1715 }

	action_a = {
		name = "ACTIONNAME338063A" #Turn over the lands seized to the King of Spain
		command = { type = cedeprovince which = SPA value = 437 } #Valencia
		command = { type = relation which = SPA value = 100 }
		command = { type = relation which = FRA value = 25 }
		command = { type = badboy value = -1 }
	}
	action_b = {
		name = "ACTIONNAME338063B" #Keep our conquests
		command = { type = relation which = SPA value = -100 }
		command = { type = revolt which = 437 } #Valencia
		command = { type = stability value = -1 }
		command = { type = badboy value = 1 }
	}
}
#(1713-1715) Peace of Utrecht devolution - the Baleares
event = {
	id = 338293
	trigger = {
		exists = SPA
		OR = {
			event = 285210 #SPA: #The Will of Carlos II -I-
			event = 285284 #SPA: #The Will of Carlos II -II-
		}
		core = { province = 385 data = -1 } #Ile de France (France)
	}
	random = no
	province = 821 #The Baleares
	name = "EVENTNAME338063" #Peace of Utrecht devolution
	desc = "EVENTHIST338063"
	#-#In the Peace of Utrecht the restitution of the peninsular provinces back to Spain has been agreed upon. We can however keep any part of their empire that we have captured.

	date = { day = 11 month = april year = 1713 }
	offset = 30
	deathdate = { day = 1 month = november year = 1715 }

	action_a = {
		name = "ACTIONNAME338063A" #Turn over the lands seized to the King of Spain
		command = { type = cedeprovince which = SPA value = 821 } #The Baleares
		command = { type = relation which = SPA value = 100 }
		command = { type = badboy value = -1 }
	}
	action_b = {
		name = "ACTIONNAME338063B" #Keep our conquests
		command = { type = relation which = SPA value = -100 }
		command = { type = revolt which = 821 } #The Baleares
		command = { type = stability value = -1 }
		command = { type = badboy value = 1 }
	}
}
#End of "War of Spanish succession" Sequence
#-----------------------------------------------------------------------------------------------

#(1723-1820) Coffee production in Priangan
event = {
	id = 338042
	trigger = {
		continent = europe
		event = 3503 #HOL: Vereenigde Oostindische Compagnie
	}
	random = no
	province = 701 #Sunda
	name = "EVENTNAME338042" #Coffee production in Priangan
	desc = "EVENTHIST338042"
	#-#VOC begins compulsory coffee production in Priangan.

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

	action_a = {
		name = "ACTIONNAME338042A" #Delicious
		command = { type = provincetax which = 701 value = 1 } #Sunda
	}
}

#(1723) Irazú destroys Cartago
event = {
	id = 338452
	random = no
	province = 822 #Costa Rica
	name = "EVENTNAME338452" #Irazú destroys Cartago
	desc = "EVENTHIST338452"
	#-#On 16 February 1723 the volcano Irazú began its eruption that lasted through the rest of the month. It destroyed the near-by town of Cartago.

	date = { day = 15 month = february year = 1723 }
	offset = 15
	deathdate = { day = 29 month = december year = 1723 }

	action_a = {
		name = "ACTIONNAME338055A" #Oh, the humanity!
		command = { type = population which = 822 value = -1000 } #Costa Rica
		command = { }
	}
}

#(1732) Malaria epidemic sweeps Batavia
event = {
	id = 338046
	random = no
	province = 702 #Jakarta
	name = "EVENTNAME338046" #Malaria epidemic sweeps Batavia
	desc = "EVENTHIST338046"
	#-#Malaria epidemic swept Batavia.

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

	action_a = {
		name = "DARN"
		command = { type = population which = 702 value = -500 } #Jakarta
		command = { type = desertion which = 702 value = 500 } #Jakarta
		command = { type = provincetax which = 702 value = -1 } #Jakarta
		command = { type = provincemanpower which = 702 value = -1 } #Jakarta
	}
}

#(1738-1741) The Horrible Plague in Anatolia
event = {
	id = 338487
	random = no
	province = 477 #Anatolia
	name = "EVENTNAME338487" #The Horrible Plague in Anatolia
	desc = "EVENTHIST338487"
	#-#During the 18th and early 19th centuries, Anatolia was afflicted with intermittent outbreaks of cholera and the bubonic plague.

	date = { day = 1 month = january year = 1738 }
	offset = 1000
	deathdate = { day = 1 month = january year = 1741 }

	action_a = {
		name = "DARN"
		command = { type = population which = 477 value = -7000 } #Anatolia
	}
}

#(1745) Malaria epidemic in Batavia
event = {
	id = 338047
	random = no
	province = 702 #Jakarta
	name = "EVENTNAME338047" #Malaria epidemic in Batavia
	desc = "EVENTHIST338047"
	#-#Malaria epidemic in Batavia.

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

	action_a = {
		name = "DARN"
		command = { type = population which = 702 value = -500 } #Jakarta
		command = { type = desertion which = 702 value = 500 } #Jakarta
		command = { type = provincetax which = 702 value = -1 } #Jakarta
		command = { type = provincemanpower which = 702 value = -1 } #Jakarta
	}
}

#(1750-1753) Leuvense Vaart by Archeolooginspe
event = {
	id = 338002
	trigger = {
		owned = { province = 380 data = -1 } #Flandern
		NOT = { owned = { province = 340 data = -1 } } #Zeeland; building the channel only makes sense if the route through Zeeland is not accessible
		exists = HOL
	}
	random = no
	province = 378 #Brabant
	name = "EVENTNAME338002" #The Canal Leuven-Rupel
	desc = "EVENTHIST338002"
	#-#In 1750 the construction of a channel between Leuven and Rupel was started. Prince Charles of Lorraine took the first spade of earth with a silveren shovel. During the next three years the 30km long canal was digged by 500 Walloon peasants by shovel and wheel-barrow. It was completed in 1753 and made a connection to the sea possible by Ghent which evaded the Dutch Blocking of the Scheldt.

	date = { day = 1 month = january year = 1750 }
	offset = 360
	deathdate = { day = 1 month = january year = 1753 }

	action_a = {
		name = "ACTIONNAME338002A" #Build the Canal
		command = { type = treasury value = -100 }
		command = { type = infra value = 175 }
		command = { type = trade value = 100 }
		command = { type = provincetax which = 378 value = 1 } #Brabant
		command = { type = inflation value = -1 }
	}
	action_b = {
		name = "ACTIONNAME338002B" #We don't have the money
		command = { type = vp value = -1 }
	}
}

#-----------------------------------------------------------------------------------------------
#(1750-1820) East African slave trade increase

event = {
	id = 338464
	trigger = {
		NOT = {
			provincereligion = { province = 809 data = pagan } #not a TP
			provincereligion = { province = 810 data = pagan } #not a TP
		}
	}
	random = no
	province = 763 #Mombasa
	name = "EVENTNAME338464" #East African slave trade increase
	desc = "EVENTHIST338464"
	#-#Historically, from about 1750 the French efforts to develop the agricultural potential of the Mascarene Islands in the Indian Ocean exceeded the supply of slaves available from Madagascar. Unwilling or unable to find whites to work the plantations they imported large numbers of slaves from East Africa. Almost single-handedly they boosted the economy of East Africa as the demand for ivory was largely static by this date and human beings were the only other easily accessible resource. Large expeditions were formed by both Africans and Arabs to venture into the interior of Africa in search of slaves. These expeditions were enormously profitable for all concerned, except for the slaves themselves.

	date = { day = 18 month = january year = 1750 }
	offset = 360
	deathdate = { year = 1820 }

	action_a = {
		name = "ACTIONNAME338055A" #Oh, the humanity!
		command = { type = provincetax which = 763 value = 2 } #Mombasa
	}
}
event = {
	id = 338465
	trigger = {
		NOT = {
			provincereligion = { province = 809 data = pagan } #not a TP
			provincereligion = { province = 810 data = pagan } #not a TP
		}
	}
	random = no
	province = 769 #Niassa
	name = "EVENTNAME338464" #East African slave trade increase
	desc = "EVENTHIST338464"
	#-#Historically, from about 1750 the French efforts to develop the agricultural potential of the Mascarene Islands in the Indian Ocean exceeded the supply of slaves available from Madagascar. Unwilling or unable to find whites to work the plantations they imported large numbers of slaves from East Africa. Almost single-handedly they boosted the economy of East Africa as the demand for ivory was largely static by this date and human beings were the only other easily accessible resource. Large expeditions were formed by both Africans and Arabs to venture into the interior of Africa in search of slaves. These expeditions were enormously profitable for all concerned, except for the slaves themselves.

	date = { day = 18 month = january year = 1750 }
	offset = 360
	deathdate = { year = 1820 }

	action_a = {
		name = "ACTIONNAME338055A" #Oh, the humanity!
		command = { type = provincetax which = 769 value = 2 } #Niassa
	}
}
event = {
	id = 338466
	trigger = {
		NOT = {
			provincereligion = { province = 809 data = pagan } #not a TP
			provincereligion = { province = 810 data = pagan } #not a TP
		}
	}
	random = no
	province = 766 #Rufiji
	name = "EVENTNAME338464" #East African slave trade increase
	desc = "EVENTHIST338464"
	#-#Historically, from about 1750 the French efforts to develop the agricultural potential of the Mascarene Islands in the Indian Ocean exceeded the supply of slaves available from Madagascar. Unwilling or unable to find whites to work the plantations they imported large numbers of slaves from East Africa. Almost single-handedly they boosted the economy of East Africa as the demand for ivory was largely static by this date and human beings were the only other easily accessible resource. Large expeditions were formed by both Africans and Arabs to venture into the interior of Africa in search of slaves. These expeditions were enormously profitable for all concerned, except for the slaves themselves.

	date = { day = 18 month = january year = 1750 }
	offset = 360
	deathdate = { year = 1820 }

	action_a = {
		name = "ACTIONNAME338055A" #Oh, the humanity!
		command = { type = provincetax which = 766 value = 2 } #Rufiji
	}
}
event = {
	id = 338467
	trigger = {
		NOT = {
			provincereligion = { province = 768 data = pagan } #not a TP
		}
		NOT = {
			provincereligion = { province = 809 data = pagan } #not a TP
			provincereligion = { province = 810 data = pagan } #not a TP
		}
	}
	random = no
	province = 768 #Mtawa
	name = "EVENTNAME338464" #East African slave trade increase
	desc = "EVENTHIST338464"
	#-#Historically, from about 1750 the French efforts to develop the agricultural potential of the Mascarene Islands in the Indian Ocean exceeded the supply of slaves available from Madagascar. Unwilling or unable to find whites to work the plantations they imported large numbers of slaves from East Africa. Almost single-handedly they boosted the economy of East Africa as the demand for ivory was largely static by this date and human beings were the only other easily accessible resource. Large expeditions were formed by both Africans and Arabs to venture into the interior of Africa in search of slaves. These expeditions were enormously profitable for all concerned, except for the slaves themselves.

	date = { day = 18 month = january year = 1750 }
	offset = 360
	deathdate = { year = 1820 }

	action_a = {
		name = "ACTIONNAME338055A" #Oh, the humanity!
		command = { type = provincetax which = 768 value = 2 } #Mtawa
	}
}
event = {
	id = 338468
	trigger = {
		NOT = {
			provincereligion = { province = 809 data = pagan } #not a TP
			provincereligion = { province = 810 data = pagan } #not a TP
		}
	}
	random = no
	province = 765 #Zanzibar
	name = "EVENTNAME338464" #East African slave trade increase
	desc = "EVENTHIST338464"
	#-#Historically, from about 1750 the French efforts to develop the agricultural potential of the Mascarene Islands in the Indian Ocean exceeded the supply of slaves available from Madagascar. Unwilling or unable to find whites to work the plantations they imported large numbers of slaves from East Africa. Almost single-handedly they boosted the economy of East Africa as the demand for ivory was largely static by this date and human beings were the only other easily accessible resource. Large expeditions were formed by both Africans and Arabs to venture into the interior of Africa in search of slaves. These expeditions were enormously profitable for all concerned, except for the slaves themselves.

	date = { day = 18 month = january year = 1750 }
	offset = 360
	deathdate = { year = 1820 }

	action_a = {
		name = "ACTIONNAME338055A" #Oh, the humanity!
		command = { type = provincetax which = 765 value = 2 } #Zanzibar
	}
}
event = {
	id = 338469
	trigger = {
		NOT = {
			provincereligion = { province = 807 data = pagan } #not a TP
		}
		NOT = {
			provincereligion = { province = 809 data = pagan } #not a TP
			provincereligion = { province = 810 data = pagan } #not a TP
		}
	}
	random = no
	province = 807 #Ambovombe
	name = "EVENTNAME338464" #East African slave trade increase
	desc = "EVENTHIST338464"
	#-#Historically, from about 1750 the French efforts to develop the agricultural potential of the Mascarene Islands in the Indian Ocean exceeded the supply of slaves available from Madagascar. Unwilling or unable to find whites to work the plantations they imported large numbers of slaves from East Africa. Almost single-handedly they boosted the economy of East Africa as the demand for ivory was largely static by this date and human beings were the only other easily accessible resource. Large expeditions were formed by both Africans and Arabs to venture into the interior of Africa in search of slaves. These expeditions were enormously profitable for all concerned, except for the slaves themselves.

	date = { day = 18 month = january year = 1750 }
	offset = 360
	deathdate = { year = 1820 }

	action_a = {
		name = "ACTIONNAME338055A" #Oh, the humanity!
		command = { type = provincetax which = 807 value = 1 } #Ambovombe
	}
}
event = {
	id = 338470
	trigger = {
		NOT = {
			provincereligion = { province = 808 data = pagan } #not a TP
		}
		NOT = {
			provincereligion = { province = 809 data = pagan } #not a TP
			provincereligion = { province = 810 data = pagan } #not a TP
		}
	}
	random = no
	province = 808 #Antsirana
	name = "EVENTNAME338464" #East African slave trade increase
	desc = "EVENTHIST338464"
	#-#Historically, from about 1750 the French efforts to develop the agricultural potential of the Mascarene Islands in the Indian Ocean exceeded the supply of slaves available from Madagascar. Unwilling or unable to find whites to work the plantations they imported large numbers of slaves from East Africa. Almost single-handedly they boosted the economy of East Africa as the demand for ivory was largely static by this date and human beings were the only other easily accessible resource. Large expeditions were formed by both Africans and Arabs to venture into the interior of Africa in search of slaves. These expeditions were enormously profitable for all concerned, except for the slaves themselves.

	date = { day = 18 month = january year = 1750 }
	offset = 360
	deathdate = { year = 1820 }

	action_a = {
		name = "ACTIONNAME338055A" #Oh, the humanity!
		command = { type = provincetax which = 808 value = 1 } #Antsirana
	}
}
event = {
	id = 338471
	trigger = {
		NOT = {
			provincereligion = { province = 809 data = pagan } #not a TP
			provincereligion = { province = 810 data = pagan } #not a TP
		}
	}
	random = no
	province = 762 #Kenya
	name = "EVENTNAME338464" #East African slave trade increase
	desc = "EVENTHIST338464"
	#-#Historically, from about 1750 the French efforts to develop the agricultural potential of the Mascarene Islands in the Indian Ocean exceeded the supply of slaves available from Madagascar. Unwilling or unable to find whites to work the plantations they imported large numbers of slaves from East Africa. Almost single-handedly they boosted the economy of East Africa as the demand for ivory was largely static by this date and human beings were the only other easily accessible resource. Large expeditions were formed by both Africans and Arabs to venture into the interior of Africa in search of slaves. These expeditions were enormously profitable for all concerned, except for the slaves themselves.

	date = { day = 18 month = january year = 1750 }
	offset = 360
	deathdate = { year = 1820 }

	action_a = {
		name = "ACTIONNAME338055A" #Oh, the humanity!
		command = { type = provincetax which = 762 value = 1 } #Kenya
	}
}
event = {
	id = 338472
	trigger = {
		NOT = {
			provincereligion = { province = 809 data = pagan } #not a TP
			provincereligion = { province = 810 data = pagan } #not a TP
		}
	}
	random = no
	province = 764 #Tanga
	name = "EVENTNAME338464" #East African slave trade increase
	desc = "EVENTHIST338464"
	#-#Historically, from about 1750 the French efforts to develop the agricultural potential of the Mascarene Islands in the Indian Ocean exceeded the supply of slaves available from Madagascar. Unwilling or unable to find whites to work the plantations they imported large numbers of slaves from East Africa. Almost single-handedly they boosted the economy of East Africa as the demand for ivory was largely static by this date and human beings were the only other easily accessible resource. Large expeditions were formed by both Africans and Arabs to venture into the interior of Africa in search of slaves. These expeditions were enormously profitable for all concerned, except for the slaves themselves.

	date = { day = 18 month = january year = 1750 }
	offset = 360
	deathdate = { year = 1820 }

	action_a = {
		name = "ACTIONNAME338055A" #Oh, the humanity!
		command = { type = provincetax which = 764 value = 1 } #Tanga
	}
}
event = {
	id = 338473
	trigger = {
		NOT = {
			provincereligion = { province = 809 data = pagan } #not a TP
			provincereligion = { province = 810 data = pagan } #not a TP
		}
	}
	random = no
	province = 767 #Lindi
	name = "EVENTNAME338464" #East African slave trade increase
	desc = "EVENTHIST338464"
	#-#Historically, from about 1750 the French efforts to develop the agricultural potential of the Mascarene Islands in the Indian Ocean exceeded the supply of slaves available from Madagascar. Unwilling or unable to find whites to work the plantations they imported large numbers of slaves from East Africa. Almost single-handedly they boosted the economy of East Africa as the demand for ivory was largely static by this date and human beings were the only other easily accessible resource. Large expeditions were formed by both Africans and Arabs to venture into the interior of Africa in search of slaves. These expeditions were enormously profitable for all concerned, except for the slaves themselves.

	date = { day = 18 month = january year = 1750 }
	offset = 360
	deathdate = { year = 1820 }

	action_a = {
		name = "ACTIONNAME338055A" #Oh, the humanity!
		command = { type = provincetax which = 767 value = 1 } #Lindi
	}
}
event = {
	id = 338474
	trigger = {
		NOT = {
			provincereligion = { province = 770 data = pagan } #not a TP
		}
		NOT = {
			provincereligion = { province = 809 data = pagan } #not a TP
			provincereligion = { province = 810 data = pagan } #not a TP
		}
	}
	random = no
	province = 770 #Nampuia
	name = "EVENTNAME338464" #East African slave trade increase
	desc = "EVENTHIST338464"
	#-#Historically, from about 1750 the French efforts to develop the agricultural potential of the Mascarene Islands in the Indian Ocean exceeded the supply of slaves available from Madagascar. Unwilling or unable to find whites to work the plantations they imported large numbers of slaves from East Africa. Almost single-handedly they boosted the economy of East Africa as the demand for ivory was largely static by this date and human beings were the only other easily accessible resource. Large expeditions were formed by both Africans and Arabs to venture into the interior of Africa in search of slaves. These expeditions were enormously profitable for all concerned, except for the slaves themselves.

	date = { day = 18 month = january year = 1750 }
	offset = 360
	deathdate = { year = 1820 }

	action_a = {
		name = "ACTIONNAME338055A" #Oh, the humanity!
		command = { type = provincetax which = 770 value = 1 } #Nampuia
	}
}
event = {
	id = 338475
	trigger = {
		NOT = {
			provincereligion = { province = 771 data = pagan } #not a TP
		}
		NOT = {
			provincereligion = { province = 809 data = pagan } #not a TP
			provincereligion = { province = 810 data = pagan } #not a TP
		}
	}
	random = no
	province = 771 #Zambezia
	name = "EVENTNAME338464" #East African slave trade increase
	desc = "EVENTHIST338464"
	#-#Historically, from about 1750 the French efforts to develop the agricultural potential of the Mascarene Islands in the Indian Ocean exceeded the supply of slaves available from Madagascar. Unwilling or unable to find whites to work the plantations they imported large numbers of slaves from East Africa. Almost single-handedly they boosted the economy of East Africa as the demand for ivory was largely static by this date and human beings were the only other easily accessible resource. Large expeditions were formed by both Africans and Arabs to venture into the interior of Africa in search of slaves. These expeditions were enormously profitable for all concerned, except for the slaves themselves.

	date = { day = 18 month = january year = 1750 }
	offset = 360
	deathdate = { year = 1820 }

	action_a = {
		name = "ACTIONNAME338055A" #Oh, the humanity!
		command = { type = provincetax which = 771 value = 1 } #Zambezia
	}
}
event = {
	id = 338476
	trigger = {
		NOT = {
			provincereligion = { province = 772 data = pagan } #not a TP
		}
		NOT = {
			provincereligion = { province = 809 data = pagan } #not a TP
			provincereligion = { province = 810 data = pagan } #not a TP
		}
	}
	random = no
	province = 772 #Inhambane
	name = "EVENTNAME338464" #East African slave trade increase
	desc = "EVENTHIST338464"
	#-#Historically, from about 1750 the French efforts to develop the agricultural potential of the Mascarene Islands in the Indian Ocean exceeded the supply of slaves available from Madagascar. Unwilling or unable to find whites to work the plantations they imported large numbers of slaves from East Africa. Almost single-handedly they boosted the economy of East Africa as the demand for ivory was largely static by this date and human beings were the only other easily accessible resource. Large expeditions were formed by both Africans and Arabs to venture into the interior of Africa in search of slaves. These expeditions were enormously profitable for all concerned, except for the slaves themselves.

	date = { day = 18 month = january year = 1750 }
	offset = 360
	deathdate = { year = 1820 }

	action_a = {
		name = "ACTIONNAME338055A" #Oh, the humanity!
		command = { type = provincetax which = 772 value = 1 } #Inhambane
	}
}
#-----------------------------------------------------------------------------------------------
event = {
	id = 338477
	trigger = {
		NOT = {
			provincereligion = { province = 809 data = pagan } #not a TP
		}
	}
	random = no
	province = 809 #Bourbon
	name = "EVENTNAME338477" #Slaves imported from East Africa
	desc = "EVENTHIST338477"
	#-#Historically, the French imported large numbers of slaves from East Africa and Madagascar to work the plantations in Île-de-Bourbon and Île-de-France.

	date = { day = 18 month = january year = 1750 }
	offset = 360
	deathdate = { day = 29 month = december year = 1819 }

	action_a = {
		name = "ACTIONNAME338055A" #Oh, the humanity!
		command = { type = population which = 809 value = 5000 } #Bourbon
	}
}
event = {
	id = 338478
	trigger = {
		NOT = {
			provincereligion = { province = 810 data = pagan } #not a TP
		}
	}
	random = no
	province = 810 #Mauritius
	name = "EVENTNAME338477" #Slaves imported from East Africa
	desc = "EVENTHIST338477"
	#-#Historically, the French imported large numbers of slaves from East Africa and Madagascar to work the plantations in Île-de-Bourbon and Île-de-France.

	date = { day = 18 month = january year = 1750 }
	offset = 360
	deathdate = { day = 29 month = december year = 1819 }

	action_a = {
		name = "ACTIONNAME338055A" #Oh, the humanity!
		command = { type = population which = 810 value = 5000 } #Mauritius
	}
}
#End of East African slave trade increase events
#-----------------------------------------------------------------------------------------------

#(1755) Earthquake destroy Lisboa
event = {
	id = 338018
	random = no
	province = 441 #Tago
	name = "EVENTNAME3278" #Earthquake destroy Lisboa
	desc = "EVENTHIST3278"
	#-#The Earthquake that destroyed Lisboa was a catastrophe of huge proportions that resounded all across Europe and even into the new world. 1 November 1755, a beautiful day, when next to everyone was in the churches celebrating a holiday the ground suddenly started to shake and the churches started caving in, crushing the visitors. For those that escaped it was far from over as a heavy breeze of wind suddenly started to come in over the area beating the small fires into a virtual inferno incinerating thousands. But yet thousands of people would fall victim for the grand tidal wave reaching land just a few minutes later. The death count was estimated to 20.000-40.000 people at the time and given all four elements (wind, fire, earth and water) the explanation ''punishment by god'' was a view widely spread both in Portugal and elsewhere.

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

	action_a = {
		name = "OK"
		command = { type = population which = 441 value = -30000 } #Tago
		command = { type = provincetax which = 441 value = -4 } #Tago
		command = { type = trigger which = 260010 } #POR: Effect of the destruction of Lisboa
	}
}

#(1764) Beccaria's essay on Crimes and Punishments
#by Bordic
event = {
	id = 338025
	trigger = {
		OR = {
			NOT = { owned = { province = 389 data = ITA } } #Lombardia
			NOT = { owned = { province = 389 data = TOS } }
		}
	}
	random = no
	province = 389 #Lombardia
	name = "EVENTNAME297016"
	desc = "EVENTHIST297016"
	#-#In 1764, Cesare Bonesana, Marquis of Beccaria, published a brief but justly celebrated treatise, 'Dei Delitti e delle Pene' (On Crimes and Punishments), which marked the high point of the Milan Enlightenment. In it, Beccaria put forth the first arguments ever made against the death penalty. His treatise was also the first full work of penology, advocating reform of the criminal law system. Apart from condemning the death penalty (on two grounds: first, because the state does not possess the right to take lives and secondly, because capital punishment is neither a useful nor a necessary form of punishment), Beccaria developed in his treatise a number of innovative and influential principles: punishment had a preventive, not a retributive, function, punishment should be proportionate to the crime committed, the certainty of punishment, not its severity, would achieve the preventive effect, procedures of criminal convictions should be public and finally, in order to be effective, punishment should be prompt. The book was the first full-scale work to tackle criminal reform and to suggest that criminal justice should conform to rational principles. In this, Beccaria reflected the convictions of the 'Il Caffè' group, who sought to cause reform through Enlightenment discourse. Put across in a clear and animated style, the book's serious message was based in particular upon a deep sense of humanity and of urgency at unjust suffering. This humane sentiment was what made Beccaria appeal for rationality in the laws. In 1786 Pietro Leopoldo of Habsburg-Lorraine was the first European monarch to reform the penal code with his 'Codice Leopoldino', he but followed Beccaria's argument about the lack of utility of capital punishment, not about the state's lacking right to execute citizens.

	date = { day = 10 month = march year = 1764 }
	offset = 30
	deathdate = { day = 10 month = january year = 1765 }

	action_a = {
		name = "ACTIONNAME5062A" #A great achievement! #A great achievement!
		command = { type = infra value = 150 }
	}
}

#-----------------------------------------------------------------------------------------------
#Turmoil in the NA colonies

#(1773-1820) Turmoil in Savannah (if reformed/protestant)
#by Bordic
event = {
	id = 338300
	trigger = {
		OR = {
			religion = protestant
			religion = reformed
		}
		NOT = {
			event = 4983 #ENG: The Treaty of Paris (USA has won)
			event = 4984 #ENG: The Treaty of Paris (ENG has lost territories)
			event = 4985 #ENG: The Destruction of the Tax Revolt (ENG has won, no USA)
			event = 3052 #ENG: The North American Union (no USA, FRA radical republic)
			event = 4987 #ENG: Colonial dissatisfaction cools (no USA, patch event reducing RR)
			core = { province = 247 data = -1 } #Anglia (England has its own revolts)
			core = { province = 86 data = -1 } #Delaware (USA is obviously exempted)
			flag = [support_US] #France, Spain or the Netherlands could be US allies
			flag = [boston]
			flag = [philadelphia]
		}
		event = 3049 #ENG: The American Revolution
		war = { country = USA country = ENG }
		event = 4993 #USA: The Declaration of Independence
	}
	random = no
	province = 54 #Savannah
	name = "EVENTNAME338300" #Turmoil in Savannah
	desc = "EVENTHIST338300"
	#-#A Continental Congress has been assembled of honored and influential representatives from all of the North American colonies under the foreign rule, but increasingly afflicted by the outrageous policies of their monarch it is now unified and determined in the goal of cutting the cords that still bind the colonies to Europe. With the Declaration of Independence the rebelling colonists have stated the will to govern themselves as an independent nation. The American revolutionary spark is spreading across all the colonies along the Atlantic Coast of North America. What do we do to stop our colonists to join these revolts against the European rule?

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

	action_a = {
		name = "ACTIONNAME338300A" #Accept their demands of independence
		command = { type = relation which = USA value = 25 }
		command = { type = cedeprovince which = USA value = 54 } #Savannah
		command = { type = sleepevent which = 338302 } #ProvinceSpec*54: All quiet in Savannah
	}
}
#(1773-1820) Turmoil in Savannah (if catholic)
#by Bordic
event = {
	id = 338301
	trigger = {
		religion = catholic
		NOT = {
			event = 4983 #ENG: The Treaty of Paris (USA has won)
			event = 4984 #ENG: The Treaty of Paris (ENG has lost territories)
			event = 4985 #ENG: The Destruction of the Tax Revolt (ENG has won, no USA)
			event = 3052 #ENG: The North American Union (no USA, FRA radical republic)
			event = 4987 #ENG: Colonial dissatisfaction cools (no USA, patch event reducing RR)
			core = { province = 247 data = -1 } #Anglia (England has its own revolts)
			core = { province = 86 data = -1 } #Delaware (USA is obviously exempted)
			flag = [support_US] #France, Spain or the Netherlands could be US allies
			flag = [boston]
			flag = [philadelphia]
		}
		event = 3049 #ENG: The American Revolution
		war = { country = USA country = ENG }
		event = 4993 #USA: The Declaration of Independence
	}
	random = no
	province = 54 #Savannah
	name = "EVENTNAME338300" #Turmoil in Savannah
	desc = "EVENTHIST338300"
	#-#A Continental Congress has been assembled of honored and influential representatives from all of the North American colonies under the foreign rule, but increasingly afflicted by the outrageous policies of their monarch it is now unified and determined in the goal of cutting the cords that still bind the colonies to Europe. With the Declaration of Independence the rebelling colonists have stated the will to govern themselves as an independent nation. The American revolutionary spark is spreading across all the colonies along the Atlantic Coast of North America. What do we do to stop our colonists to join these revolts against the European rule?

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

	action_a = {
		name = "ACTIONNAME338301A" #Crush those 'American' rebels
		command = { type = relation which = USA value = -25 }
		command = { type = province_revoltrisk which = 54 value = 27 } #Savannah
	}
}
#(1773-1820) All quiet in Savannah
#by Bordic
event = {
	id = 338302
	trigger = {
		OR = {
			flag = [boston]
			flag = [philadelphia]
			event = 338301 #ProvinceSpec*54: Turmoil in North American colonies (if catholic)
		}
		NOT = {
			core = { province = 247 data = -1 } #Anglia (England has its own revolts)
			core = { province = 86 data = -1 } #Delaware (USA is obviously exempted)
			war = { country = USA country = ENG }
			flag = [support_US] #France, Spain or the Netherlands could be US allies
		}
	}
	random = no
	province = 54 #Savannah
	name = "EVENTNAME338302" #All quiet in Savannah
	desc = "EVENTHIST338302"
	#-#Our North American subjects have come to accept the reasonable policies of His Majesty's government and no longer threaten to revolt against us.

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

	action_a = {
		name = "ACTIONNAME338302A" #The 'Americans' are tamed
		command = { type = relation which = USA value = -25 }
		command = { type = province_revoltrisk which = 54 value = -70 } #Savannah
	}
}
#-----------------------------------------------------------------------------------------------
#(1773-1820) Turmoil in Carolina (if reformed/protestant)
#by Bordic
event = {
	id = 338303
	trigger = {
		OR = {
			religion = protestant
			religion = reformed
		}
		NOT = {
			event = 4983 #ENG: The Treaty of Paris (USA has won)
			event = 4984 #ENG: The Treaty of Paris (ENG has lost territories)
			event = 4985 #ENG: The Destruction of the Tax Revolt (ENG has won, no USA)
			event = 3052 #ENG: The North American Union (no USA, FRA radical republic)
			event = 4987 #ENG: Colonial dissatisfaction cools (no USA, patch event reducing RR)
			core = { province = 247 data = -1 } #Anglia (England has its own revolts)
			core = { province = 86 data = -1 } #Delaware (USA is obviously exempted)
			flag = [support_US] #France, Spain or the Netherlands could be US allies
			flag = [boston]
			flag = [philadelphia]
		}
		event = 3049 #ENG: The American Revolution
		war = { country = USA country = ENG }
		event = 4993 #USA: The Declaration of Independence
	}
	random = no
	province = 62 #Carolina
	name = "EVENTNAME338303" #Turmoil in Carolina
	desc = "EVENTHIST338300"
	#-#A Continental Congress has been assembled of honored and influential representatives from all of the North American colonies under the foreign rule, but increasingly afflicted by the outrageous policies of their monarch it is now unified and determined in the goal of cutting the cords that still bind the colonies to Europe. With the Declaration of Independence the rebelling colonists have stated the will to govern themselves as an independent nation. The American revolutionary spark is spreading across all the colonies along the Atlantic Coast of North America. What do we do to stop our colonists to join these revolts against the European rule?

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

	action_a = {
		name = "ACTIONNAME338300A" #Accept their demands of independence
		command = { type = relation which = USA value = 25 }
		command = { type = cedeprovince which = USA value = 62 } #Carolina
		command = { type = sleepevent which = 338305 } #ProvinceSpec*62: All quiet in Carolina
	}
}
#(1773-1820) Turmoil in Carolina (if catholic)
#by Bordic
event = {
	id = 338304
	trigger = {
		religion = catholic
		NOT = {
			event = 4983 #ENG: The Treaty of Paris (USA has won)
			event = 4984 #ENG: The Treaty of Paris (ENG has lost territories)
			event = 4985 #ENG: The Destruction of the Tax Revolt (ENG has won, no USA)
			event = 3052 #ENG: The North American Union (no USA, FRA radical republic)
			event = 4987 #ENG: Colonial dissatisfaction cools (no USA, patch event reducing RR)
			core = { province = 247 data = -1 } #Anglia (England has its own revolts)
			core = { province = 86 data = -1 } #Delaware (USA is obviously exempted)
			flag = [support_US] #France, Spain or the Netherlands could be US allies
			flag = [boston]
			flag = [philadelphia]
		}
		event = 3049 #ENG: The American Revolution
		war = { country = USA country = ENG }
		event = 4993 #USA: The Declaration of Independence
	}
	random = no
	province = 62 #Carolina
	name = "EVENTNAME338303" #Turmoil in Carolina
	desc = "EVENTHIST338300"
	#-#A Continental Congress has been assembled of honored and influential representatives from all of the North American colonies under the foreign rule, but increasingly afflicted by the outrageous policies of their monarch it is now unified and determined in the goal of cutting the cords that still bind the colonies to Europe. With the Declaration of Independence the rebelling colonists have stated the will to govern themselves as an independent nation. The American revolutionary spark is spreading across all the colonies along the Atlantic Coast of North America. What do we do to stop our colonists to join these revolts against the European rule?

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

	action_a = {
		name = "ACTIONNAME338301A" #Crush those 'American' rebels
		command = { type = relation which = USA value = -25 }
		command = { type = province_revoltrisk which = 62 value = 27 } #Carolina
	}
}
#(1773-1820) All quiet in Carolina
#by Bordic
event = {
	id = 338305
	trigger = {
		OR = {
			flag = [boston]
			flag = [philadelphia]
			event = 338304 #ProvinceSpec*62: Turmoil in North American colonies (if catholic)
		}
		NOT = {
			core = { province = 247 data = -1 } #Anglia (England has its own revolts)
			core = { province = 86 data = -1 } #Delaware (USA is obviously exempted)
			war = { country = USA country = ENG }
			flag = [support_US] #France, Spain or the Netherlands could be US allies
		}
	}
	random = no
	province = 62 #Carolina
	name = "EVENTNAME338305" #All quiet in Carolina
	desc = "EVENTHIST338302"
	#-#Our North American subjects have come to accept the reasonable policies of His Majesty's government and no longer threaten to revolt against us.

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

	action_a = {
		name = "ACTIONNAME338302A" #The 'Americans' are tamed
		command = { type = relation which = USA value = -25 }
		command = { type = province_revoltrisk which = 62 value = -70 } #Carolina
	}
}
#-----------------------------------------------------------------------------------------------
#(1773-1820) Turmoil in Santee (if reformed/protestant)
#by Bordic
event = {
	id = 338306
	trigger = {
		OR = {
			religion = protestant
			religion = reformed
		}
		NOT = {
			event = 4983 #ENG: The Treaty of Paris (USA has won)
			event = 4984 #ENG: The Treaty of Paris (ENG has lost territories)
			event = 4985 #ENG: The Destruction of the Tax Revolt (ENG has won, no USA)
			event = 3052 #ENG: The North American Union (no USA, FRA radical republic)
			event = 4987 #ENG: Colonial dissatisfaction cools (no USA, patch event reducing RR)
			core = { province = 247 data = -1 } #Anglia (England has its own revolts)
			core = { province = 86 data = -1 } #Delaware (USA is obviously exempted)
			flag = [support_US] #France, Spain or the Netherlands could be US allies
			flag = [boston]
			flag = [philadelphia]
		}
		event = 3049 #ENG: The American Revolution
		war = { country = USA country = ENG }
		event = 4993 #USA: The Declaration of Independence
	}
	random = no
	province = 63 #Santee
	name = "EVENTNAME338306" #Turmoil in Santee
	desc = "EVENTHIST338300"
	#-#A Continental Congress has been assembled of honored and influential representatives from all of the North American colonies under the foreign rule, but increasingly afflicted by the outrageous policies of their monarch it is now unified and determined in the goal of cutting the cords that still bind the colonies to Europe. With the Declaration of Independence the rebelling colonists have stated the will to govern themselves as an independent nation. The American revolutionary spark is spreading across all the colonies along the Atlantic Coast of North America. What do we do to stop our colonists to join these revolts against the European rule?

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

	action_a = {
		name = "ACTIONNAME338300A" #Accept their demands of independence
		command = { type = relation which = USA value = 25 }
		command = { type = cedeprovince which = USA value = 63 } #Santee
		command = { type = sleepevent which = 338308 } #ProvinceSpec*63: All quiet in Santee
	}
}
#(1773-1820) Turmoil in Santee (if catholic)
#by Bordic
event = {
	id = 338307
	trigger = {
		religion = catholic
		NOT = {
			event = 4983 #ENG: The Treaty of Paris (USA has won)
			event = 4984 #ENG: The Treaty of Paris (ENG has lost territories)
			event = 4985 #ENG: The Destruction of the Tax Revolt (ENG has won, no USA)
			event = 3052 #ENG: The North American Union (no USA, FRA radical republic)
			event = 4987 #ENG: Colonial dissatisfaction cools (no USA, patch event reducing RR)
			core = { province = 247 data = -1 } #Anglia (England has its own revolts)
			core = { province = 86 data = -1 } #Delaware (USA is obviously exempted)
			flag = [support_US] #France, Spain or the Netherlands could be US allies
			flag = [boston]
			flag = [philadelphia]
		}
		event = 3049 #ENG: The American Revolution
		war = { country = USA country = ENG }
		event = 4993 #USA: The Declaration of Independence
	}
	random = no
	province = 63 #Santee
	name = "EVENTNAME338306" #Turmoil in Santee
	desc = "EVENTHIST338300"
	#-#A Continental Congress has been assembled of honored and influential representatives from all of the North American colonies under the foreign rule, but increasingly afflicted by the outrageous policies of their monarch it is now unified and determined in the goal of cutting the cords that still bind the colonies to Europe. With the Declaration of Independence the rebelling colonists have stated the will to govern themselves as an independent nation. The American revolutionary spark is spreading across all the colonies along the Atlantic Coast of North America. What do we do to stop our colonists to join these revolts against the European rule?

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

	action_a = {
		name = "ACTIONNAME338301A" #Crush those 'American' rebels
		command = { type = relation which = USA value = -25 }
		command = { type = province_revoltrisk which = 63 value = 27 } #Santee
	}
}
#(1773-1820) All quiet in Santee
#by Bordic
event = {
	id = 338308
	trigger = {
		OR = {
			flag = [boston]
			flag = [philadelphia]
			event = 338307 #ProvinceSpec*63: Turmoil in North American colonies (if catholic)
		}
		NOT = {
			core = { province = 247 data = -1 } #Anglia (England has its own revolts)
			core = { province = 86 data = -1 } #Delaware (USA is obviously exempted)
			war = { country = USA country = ENG }
			flag = [support_US] #France, Spain or the Netherlands could be US allies
		}
	}
	random = no
	province = 63 #Santee
	name = "EVENTNAME338308" #All quiet in Santee
	desc = "EVENTHIST338302"
	#-#Our North American subjects have come to accept the reasonable policies of His Majesty's government and no longer threaten to revolt against us.

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

	action_a = {
		name = "ACTIONNAME338302A" #The 'Americans' are tamed
		command = { type = relation which = USA value = -25 }
		command = { type = province_revoltrisk which = 63 value = -70 } #Santee
	}
}
#-----------------------------------------------------------------------------------------------
#(1773-1820) Turmoil in Roanoke (if reformed/protestant)
#by Bordic
event = {
	id = 338309
	trigger = {
		OR = {
			religion = protestant
			religion = reformed
		}
		NOT = {
			event = 4983 #ENG: The Treaty of Paris (USA has won)
			event = 4984 #ENG: The Treaty of Paris (ENG has lost territories)
			event = 4985 #ENG: The Destruction of the Tax Revolt (ENG has won, no USA)
			event = 3052 #ENG: The North American Union (no USA, FRA radical republic)
			event = 4987 #ENG: Colonial dissatisfaction cools (no USA, patch event reducing RR)
			core = { province = 247 data = -1 } #Anglia (England has its own revolts)
			core = { province = 86 data = -1 } #Delaware (USA is obviously exempted)
			flag = [support_US] #France, Spain or the Netherlands could be US allies
			flag = [boston]
			flag = [philadelphia]
		}
		event = 3049 #ENG: The American Revolution
		war = { country = USA country = ENG }
		event = 4993 #USA: The Declaration of Independence
	}
	random = no
	province = 64 #Roanoke
	name = "EVENTNAME338309" #Turmoil in Roanoke
	desc = "EVENTHIST338300"
	#-#A Continental Congress has been assembled of honored and influential representatives from all of the North American colonies under the foreign rule, but increasingly afflicted by the outrageous policies of their monarch it is now unified and determined in the goal of cutting the cords that still bind the colonies to Europe. With the Declaration of Independence the rebelling colonists have stated the will to govern themselves as an independent nation. The American revolutionary spark is spreading across all the colonies along the Atlantic Coast of North America. What do we do to stop our colonists to join these revolts against the European rule?

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

	action_a = {
		name = "ACTIONNAME338300A" #Accept their demands of independence
		command = { type = relation which = USA value = 25 }
		command = { type = cedeprovince which = USA value = 64 } #Roanoke
		command = { type = sleepevent which = 338311 } #ProvinceSpec*64: All quiet in Roanoke
	}
}
#(1773-1820) Turmoil in Roanoke (if catholic)
#by Bordic
event = {
	id = 338310
	trigger = {
		religion = catholic
		NOT = {
			event = 4983 #ENG: The Treaty of Paris (USA has won)
			event = 4984 #ENG: The Treaty of Paris (ENG has lost territories)
			event = 4985 #ENG: The Destruction of the Tax Revolt (ENG has won, no USA)
			event = 3052 #ENG: The North American Union (no USA, FRA radical republic)
			event = 4987 #ENG: Colonial dissatisfaction cools (no USA, patch event reducing RR)
			core = { province = 247 data = -1 } #Anglia (England has its own revolts)
			core = { province = 86 data = -1 } #Delaware (USA is obviously exempted)
			flag = [support_US] #France, Spain or the Netherlands could be US allies
			flag = [boston]
			flag = [philadelphia]
		}
		event = 3049 #ENG: The American Revolution
		war = { country = USA country = ENG }
		event = 4993 #USA: The Declaration of Independence
	}
	random = no
	province = 64 #Roanoke
	name = "EVENTNAME338309" #Turmoil in Roanoke
	desc = "EVENTHIST338300"
	#-#A Continental Congress has been assembled of honored and influential representatives from all of the North American colonies under the foreign rule, but increasingly afflicted by the outrageous policies of their monarch it is now unified and determined in the goal of cutting the cords that still bind the colonies to Europe. With the Declaration of Independence the rebelling colonists have stated the will to govern themselves as an independent nation. The American revolutionary spark is spreading across all the colonies along the Atlantic Coast of North America. What do we do to stop our colonists to join these revolts against the European rule?

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

	action_a = {
		name = "ACTIONNAME338301A" #Crush those 'American' rebels
		command = { type = relation which = USA value = -25 }
		command = { type = province_revoltrisk which = 64 value = 27 } #Roanoke
	}
}
#(1773-1820) All quiet in Roanoke
#by Bordic
event = {
	id = 338311
	trigger = {
		OR = {
			flag = [boston]
			flag = [philadelphia]
			event = 338310 #ProvinceSpec*64: Turmoil in North American colonies (if catholic)
		}
		NOT = {
			core = { province = 247 data = -1 } #Anglia (England has its own revolts)
			core = { province = 86 data = -1 } #Delaware (USA is obviously exempted)
			war = { country = USA country = ENG }
			flag = [support_US] #France, Spain or the Netherlands could be US allies
		}
	}
	random = no
	province = 64 #Roanoke
	name = "EVENTNAME338311" #All quiet in Roanoke
	desc = "EVENTHIST338302"
	#-#Our North American subjects have come to accept the reasonable policies of His Majesty's government and no longer threaten to revolt against us.

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

	action_a = {
		name = "ACTIONNAME338302A" #The 'Americans' are tamed
		command = { type = relation which = USA value = -25 }
		command = { type = province_revoltrisk which = 64 value = -70 } #Roanoke
	}
}
#-----------------------------------------------------------------------------------------------
#(1773-1820) Turmoil in Chesapeake (if reformed/protestant)
#by Bordic
event = {
	id = 338312
	trigger = {
		OR = {
			religion = protestant
			religion = reformed
		}
		NOT = {
			event = 4983 #ENG: The Treaty of Paris (USA has won)
			event = 4984 #ENG: The Treaty of Paris (ENG has lost territories)
			event = 4985 #ENG: The Destruction of the Tax Revolt (ENG has won, no USA)
			event = 3052 #ENG: The North American Union (no USA, FRA radical republic)
			event = 4987 #ENG: Colonial dissatisfaction cools (no USA, patch event reducing RR)
			core = { province = 247 data = -1 } #Anglia (England has its own revolts)
			core = { province = 86 data = -1 } #Delaware (USA is obviously exempted)
			flag = [support_US] #France, Spain or the Netherlands could be US allies
			flag = [boston]
			flag = [philadelphia]
		}
		event = 3049 #ENG: The American Revolution
		war = { country = USA country = ENG }
		event = 4993 #USA: The Declaration of Independence
	}
	random = no
	province = 68 #Chesapeake
	name = "EVENTNAME338312" #Turmoil in Chesapeake
	desc = "EVENTHIST338300"
	#-#A Continental Congress has been assembled of honored and influential representatives from all of the North American colonies under the foreign rule, but increasingly afflicted by the outrageous policies of their monarch it is now unified and determined in the goal of cutting the cords that still bind the colonies to Europe. With the Declaration of Independence the rebelling colonists have stated the will to govern themselves as an independent nation. The American revolutionary spark is spreading across all the colonies along the Atlantic Coast of North America. What do we do to stop our colonists to join these revolts against the European rule?

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

	action_a = {
		name = "ACTIONNAME338300A" #Accept their demands of independence
		command = { type = relation which = USA value = 25 }
		command = { type = cedeprovince which = USA value = 68 } #Chesapeake
		command = { type = sleepevent which = 338314 } #ProvinceSpec*68: All quiet in Chesapeake
	}
}
#(1773-1820) Turmoil in Chesapeake (if catholic)
#by Bordic
event = {
	id = 338313
	trigger = {
		religion = catholic
		NOT = {
			event = 4983 #ENG: The Treaty of Paris (USA has won)
			event = 4984 #ENG: The Treaty of Paris (ENG has lost territories)
			event = 4985 #ENG: The Destruction of the Tax Revolt (ENG has won, no USA)
			event = 3052 #ENG: The North American Union (no USA, FRA radical republic)
			event = 4987 #ENG: Colonial dissatisfaction cools (no USA, patch event reducing RR)
			core = { province = 247 data = -1 } #Anglia (England has its own revolts)
			core = { province = 86 data = -1 } #Delaware (USA is obviously exempted)
			flag = [support_US] #France, Spain or the Netherlands could be US allies
			flag = [boston]
			flag = [philadelphia]
		}
		event = 3049 #ENG: The American Revolution
		war = { country = USA country = ENG }
		event = 4993 #USA: The Declaration of Independence
	}
	random = no
	province = 68 #Chesapeake
	name = "EVENTNAME338312" #Turmoil in Chesapeake
	desc = "EVENTHIST338300"
	#-#A Continental Congress has been assembled of honored and influential representatives from all of the North American colonies under the foreign rule, but increasingly afflicted by the outrageous policies of their monarch it is now unified and determined in the goal of cutting the cords that still bind the colonies to Europe. With the Declaration of Independence the rebelling colonists have stated the will to govern themselves as an independent nation. The American revolutionary spark is spreading across all the colonies along the Atlantic Coast of North America. What do we do to stop our colonists to join these revolts against the European rule?

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

	action_a = {
		name = "ACTIONNAME338301A" #Crush those 'American' rebels
		command = { type = relation which = USA value = -25 }
		command = { type = province_revoltrisk which = 68 value = 27 } #Chesapeake
	}
}
#(1773-1820) All quiet in Chesapeake
#by Bordic
event = {
	id = 338314
	trigger = {
		OR = {
			flag = [boston]
			flag = [philadelphia]
			event = 338313 #ProvinceSpec*68: Turmoil in North American colonies (if catholic)
		}
		NOT = {
			core = { province = 247 data = -1 } #Anglia (England has its own revolts)
			core = { province = 86 data = -1 } #Delaware (USA is obviously exempted)
			war = { country = USA country = ENG }
			flag = [support_US] #France, Spain or the Netherlands could be US allies
		}
	}
	random = no
	province = 68 #Chesapeake
	name = "EVENTNAME338314" #All quiet in Chesapeake
	desc = "EVENTHIST338302"
	#-#Our North American subjects have come to accept the reasonable policies of His Majesty's government and no longer threaten to revolt against us.

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

	action_a = {
		name = "ACTIONNAME338302A" #The 'Americans' are tamed
		command = { type = relation which = USA value = -25 }
		command = { type = province_revoltrisk which = 68 value = -70 } #Chesapeake
	}
}
#-----------------------------------------------------------------------------------------------
#(1773-1820) Turmoil in Susquehanna (if reformed/protestant)
#by Bordic
event = {
	id = 338315
	trigger = {
		OR = {
			religion = protestant
			religion = reformed
		}
		NOT = {
			event = 4983 #ENG: The Treaty of Paris (USA has won)
			event = 4984 #ENG: The Treaty of Paris (ENG has lost territories)
			event = 4985 #ENG: The Destruction of the Tax Revolt (ENG has won, no USA)
			event = 3052 #ENG: The North American Union (no USA, FRA radical republic)
			event = 4987 #ENG: Colonial dissatisfaction cools (no USA, patch event reducing RR)
			core = { province = 247 data = -1 } #Anglia (England has its own revolts)
			core = { province = 86 data = -1 } #Delaware (USA is obviously exempted)
			flag = [support_US] #France, Spain or the Netherlands could be US allies
			flag = [boston]
			flag = [philadelphia]
		}
		event = 3049 #ENG: The American Revolution
		war = { country = USA country = ENG }
		event = 4993 #USA: The Declaration of Independence
	}
	random = no
	province = 85 #Susquehanna
	name = "EVENTNAME338315" #Turmoil in Susquehanna
	desc = "EVENTHIST338300"
	#-#A Continental Congress has been assembled of honored and influential representatives from all of the North American colonies under the foreign rule, but increasingly afflicted by the outrageous policies of their monarch it is now unified and determined in the goal of cutting the cords that still bind the colonies to Europe. With the Declaration of Independence the rebelling colonists have stated the will to govern themselves as an independent nation. The American revolutionary spark is spreading across all the colonies along the Atlantic Coast of North America. What do we do to stop our colonists to join these revolts against the European rule?

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

	action_a = {
		name = "ACTIONNAME338300A" #Accept their demands of independence
		command = { type = relation which = USA value = 25 }
		command = { type = cedeprovince which = USA value = 85 } #Susquehanna
		command = { type = sleepevent which = 338317 } #ProvinceSpec*85: All quiet in Susquehanna
	}
}
#(1773-1820) Turmoil in Susquehanna (if catholic)
#by Bordic
event = {
	id = 338316
	trigger = {
		religion = catholic
		NOT = {
			event = 4983 #ENG: The Treaty of Paris (USA has won)
			event = 4984 #ENG: The Treaty of Paris (ENG has lost territories)
			event = 4985 #ENG: The Destruction of the Tax Revolt (ENG has won, no USA)
			event = 3052 #ENG: The North American Union (no USA, FRA radical republic)
			event = 4987 #ENG: Colonial dissatisfaction cools (no USA, patch event reducing RR)
			core = { province = 247 data = -1 } #Anglia (England has its own revolts)
			core = { province = 86 data = -1 } #Delaware (USA is obviously exempted)
			flag = [support_US] #France, Spain or the Netherlands could be US allies
			flag = [boston]
			flag = [philadelphia]
		}
		event = 3049 #ENG: The American Revolution
		war = { country = USA country = ENG }
		event = 4993 #USA: The Declaration of Independence
	}
	random = no
	province = 85 #Susquehanna
	name = "EVENTNAME338315" #Turmoil in Susquehanna
	desc = "EVENTHIST338300"
	#-#A Continental Congress has been assembled of honored and influential representatives from all of the North American colonies under the foreign rule, but increasingly afflicted by the outrageous policies of their monarch it is now unified and determined in the goal of cutting the cords that still bind the colonies to Europe. With the Declaration of Independence the rebelling colonists have stated the will to govern themselves as an independent nation. The American revolutionary spark is spreading across all the colonies along the Atlantic Coast of North America. What do we do to stop our colonists to join these revolts against the European rule?

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

	action_a = {
		name = "ACTIONNAME338301A" #Crush those 'American' rebels
		command = { type = relation which = USA value = -25 }
		command = { type = province_revoltrisk which = 85 value = 27 } #Susquehanna
	}
}
#(1773-1820) All quiet in Susquehanna
#by Bordic
event = {
	id = 338317
	trigger = {
		OR = {
			flag = [boston]
			flag = [philadelphia]
			event = 338316 #ProvinceSpec*85: Turmoil in North American colonies (if catholic)
		}
		NOT = {
			core = { province = 247 data = -1 } #Anglia (England has its own revolts)
			core = { province = 86 data = -1 } #Delaware (USA is obviously exempted)
			war = { country = USA country = ENG }
			flag = [support_US] #France, Spain or the Netherlands could be US allies
		}
	}
	random = no
	province = 85 #Susquehanna
	name = "EVENTNAME338317" #All quiet in Susquehanna
	desc = "EVENTHIST338302"
	#-#Our North American subjects have come to accept the reasonable policies of His Majesty's government and no longer threaten to revolt against us.

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

	action_a = {
		name = "ACTIONNAME338302A" #The 'Americans' are tamed
		command = { type = relation which = USA value = -25 }
		command = { type = province_revoltrisk which = 85 value = -70 } #Susquehanna
	}
}
#-----------------------------------------------------------------------------------------------
#(1773-1820) Turmoil in Delaware (if reformed/protestant)
#by Bordic
event = {
	id = 338318
	trigger = {
		OR = {
			religion = protestant
			religion = reformed
		}
		NOT = {
			event = 4983 #ENG: The Treaty of Paris (USA has won)
			event = 4984 #ENG: The Treaty of Paris (ENG has lost territories)
			event = 4985 #ENG: The Destruction of the Tax Revolt (ENG has won, no USA)
			event = 3052 #ENG: The North American Union (no USA, FRA radical republic)
			event = 4987 #ENG: Colonial dissatisfaction cools (no USA, patch event reducing RR)
			core = { province = 247 data = -1 } #Anglia (England has its own revolts)
			core = { province = 86 data = -1 } #Delaware (USA is obviously exempted)
			flag = [support_US] #France, Spain or the Netherlands could be US allies
			flag = [boston]
			flag = [philadelphia]
		}
		event = 3049 #ENG: The American Revolution
		war = { country = USA country = ENG }
		event = 4993 #USA: The Declaration of Independence
	}
	random = no
	province = 86 #Delaware
	name = "EVENTNAME338318" #Turmoil in Delaware
	desc = "EVENTHIST338300"
	#-#A Continental Congress has been assembled of honored and influential representatives from all of the North American colonies under the foreign rule, but increasingly afflicted by the outrageous policies of their monarch it is now unified and determined in the goal of cutting the cords that still bind the colonies to Europe. With the Declaration of Independence the rebelling colonists have stated the will to govern themselves as an independent nation. The American revolutionary spark is spreading across all the colonies along the Atlantic Coast of North America. What do we do to stop our colonists to join these revolts against the European rule?

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

	action_a = {
		name = "ACTIONNAME338300A" #Accept their demands of independence
		command = { type = relation which = USA value = 25 }
		command = { type = cedeprovince which = USA value = 86 } #Delaware
		command = { type = sleepevent which = 338320 } #ProvinceSpec*86: All quiet in Delaware
	}
}
#(1773-1820) Turmoil in Delaware (if catholic)
#by Bordic
event = {
	id = 338319
	trigger = {
		religion = catholic
		NOT = {
			event = 4983 #ENG: The Treaty of Paris (USA has won)
			event = 4984 #ENG: The Treaty of Paris (ENG has lost territories)
			event = 4985 #ENG: The Destruction of the Tax Revolt (ENG has won, no USA)
			event = 3052 #ENG: The North American Union (no USA, FRA radical republic)
			event = 4987 #ENG: Colonial dissatisfaction cools (no USA, patch event reducing RR)
			core = { province = 247 data = -1 } #Anglia (England has its own revolts)
			core = { province = 86 data = -1 } #Delaware (USA is obviously exempted)
			flag = [support_US] #France, Spain or the Netherlands could be US allies
			flag = [boston]
			flag = [philadelphia]
		}
		event = 3049 #ENG: The American Revolution
		war = { country = USA country = ENG }
		event = 4993 #USA: The Declaration of Independence
	}
	random = no
	province = 86 #Delaware
	name = "EVENTNAME338318" #Turmoil in Delaware
	desc = "EVENTHIST338300"
	#-#A Continental Congress has been assembled of honored and influential representatives from all of the North American colonies under the foreign rule, but increasingly afflicted by the outrageous policies of their monarch it is now unified and determined in the goal of cutting the cords that still bind the colonies to Europe. With the Declaration of Independence the rebelling colonists have stated the will to govern themselves as an independent nation. The American revolutionary spark is spreading across all the colonies along the Atlantic Coast of North America. What do we do to stop our colonists to join these revolts against the European rule?

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

	action_a = {
		name = "ACTIONNAME338301A" #Crush those 'American' rebels
		command = { type = relation which = USA value = -25 }
		command = { type = province_revoltrisk which = 86 value = 27 } #Delaware
	}
}
#(1773-1820) All quiet in Delaware
#by Bordic
event = {
	id = 338320
	trigger = {
		OR = {
			flag = [boston]
			flag = [philadelphia]
			event = 338319 #ProvinceSpec*86: Turmoil in North American colonies (if catholic)
		}
		NOT = {
			core = { province = 247 data = -1 } #Anglia (England has its own revolts)
			core = { province = 86 data = -1 } #Delaware (USA is obviously exempted)
			war = { country = USA country = ENG }
			flag = [support_US] #France, Spain or the Netherlands could be US allies
		}
	}
	random = no
	province = 86 #Delaware
	name = "EVENTNAME338320" #All quiet in Delaware
	desc = "EVENTHIST338302"
	#-#Our North American subjects have come to accept the reasonable policies of His Majesty's government and no longer threaten to revolt against us.

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

	action_a = {
		name = "ACTIONNAME338302A" #The 'Americans' are tamed
		command = { type = relation which = USA value = -25 }
		command = { type = province_revoltrisk which = 86 value = -70 } #Delaware
	}
}
#-----------------------------------------------------------------------------------------------
#(1773-1820) Turmoil in Manhattan (if reformed/protestant)
#by Bordic
event = {
	id = 338321
	trigger = {
		OR = {
			religion = protestant
			religion = reformed
		}
		NOT = {
			event = 4983 #ENG: The Treaty of Paris (USA has won)
			event = 4984 #ENG: The Treaty of Paris (ENG has lost territories)
			event = 4985 #ENG: The Destruction of the Tax Revolt (ENG has won, no USA)
			event = 3052 #ENG: The North American Union (no USA, FRA radical republic)
			event = 4987 #ENG: Colonial dissatisfaction cools (no USA, patch event reducing RR)
			core = { province = 247 data = -1 } #Anglia (England has its own revolts)
			core = { province = 86 data = -1 } #Delaware (USA is obviously exempted)
			flag = [support_US] #France, Spain or the Netherlands could be US allies
			flag = [boston]
			flag = [philadelphia]
		}
		event = 3049 #ENG: The American Revolution
		war = { country = USA country = ENG }
		event = 4993 #USA: The Declaration of Independence
	}
	random = no
	province = 87 #Manhattan
	name = "EVENTNAME338321" #Turmoil in Manhattan
	desc = "EVENTHIST338300"
	#-#A Continental Congress has been assembled of honored and influential representatives from all of the North American colonies under the foreign rule, but increasingly afflicted by the outrageous policies of their monarch it is now unified and determined in the goal of cutting the cords that still bind the colonies to Europe. With the Declaration of Independence the rebelling colonists have stated the will to govern themselves as an independent nation. The American revolutionary spark is spreading across all the colonies along the Atlantic Coast of North America. What do we do to stop our colonists to join these revolts against the European rule?

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

	action_a = {
		name = "ACTIONNAME338300A" #Accept their demands of independence
		command = { type = relation which = USA value = 25 }
		command = { type = cedeprovince which = USA value = 87 } #Manhattan
		command = { type = sleepevent which = 338323 } #ProvinceSpec*87: All quiet in Manhattan
	}
}
#(1773-1820) Turmoil in Manhattan (if catholic)
#by Bordic
event = {
	id = 338322
	trigger = {
		religion = catholic
		NOT = {
			event = 4983 #ENG: The Treaty of Paris (USA has won)
			event = 4984 #ENG: The Treaty of Paris (ENG has lost territories)
			event = 4985 #ENG: The Destruction of the Tax Revolt (ENG has won, no USA)
			event = 3052 #ENG: The North American Union (no USA, FRA radical republic)
			event = 4987 #ENG: Colonial dissatisfaction cools (no USA, patch event reducing RR)
			core = { province = 247 data = -1 } #Anglia (England has its own revolts)
			core = { province = 86 data = -1 } #Delaware (USA is obviously exempted)
			flag = [support_US] #France, Spain or the Netherlands could be US allies
			flag = [boston]
			flag = [philadelphia]
		}
		event = 3049 #ENG: The American Revolution
		war = { country = USA country = ENG }
		event = 4993 #USA: The Declaration of Independence
	}
	random = no
	province = 87 #Manhattan
	name = "EVENTNAME338321" #Turmoil in Manhattan
	desc = "EVENTHIST338300"
	#-#A Continental Congress has been assembled of honored and influential representatives from all of the North American colonies under the foreign rule, but increasingly afflicted by the outrageous policies of their monarch it is now unified and determined in the goal of cutting the cords that still bind the colonies to Europe. With the Declaration of Independence the rebelling colonists have stated the will to govern themselves as an independent nation. The American revolutionary spark is spreading across all the colonies along the Atlantic Coast of North America. What do we do to stop our colonists to join these revolts against the European rule?

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

	action_a = {
		name = "ACTIONNAME338301A" #Crush those 'American' rebels
		command = { type = relation which = USA value = -25 }
		command = { type = province_revoltrisk which = 87 value = 27 } #Manhattan
	}
}
#(1773-1820) All quiet in Manhattan
#by Bordic
event = {
	id = 338323
	trigger = {
		OR = {
			flag = [boston]
			flag = [philadelphia]
			event = 338322 #ProvinceSpec*87: Turmoil in North American colonies (if catholic)
		}
		NOT = {
			core = { province = 247 data = -1 } #Anglia (England has its own revolts)
			core = { province = 86 data = -1 } #Delaware (USA is obviously exempted)
			war = { country = USA country = ENG }
			flag = [support_US] #France, Spain or the Netherlands could be US allies
		}
	}
	random = no
	province = 87 #Manhattan
	name = "EVENTNAME338323" #All quiet in Manhattan
	desc = "EVENTHIST338302"
	#-#Our North American subjects have come to accept the reasonable policies of His Majesty's government and no longer threaten to revolt against us.

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

	action_a = {
		name = "ACTIONNAME338302A" #The 'Americans' are tamed
		command = { type = relation which = USA value = -25 }
		command = { type = province_revoltrisk which = 87 value = -70 } #Manhattan
	}
}
#-----------------------------------------------------------------------------------------------
#(1773-1820) Turmoil in Catskill (if reformed/protestant)
#by Bordic
event = {
	id = 338324
	trigger = {
		OR = {
			religion = protestant
			religion = reformed
		}
		NOT = {
			event = 4983 #ENG: The Treaty of Paris (USA has won)
			event = 4984 #ENG: The Treaty of Paris (ENG has lost territories)
			event = 4985 #ENG: The Destruction of the Tax Revolt (ENG has won, no USA)
			event = 3052 #ENG: The North American Union (no USA, FRA radical republic)
			event = 4987 #ENG: Colonial dissatisfaction cools (no USA, patch event reducing RR)
			core = { province = 247 data = -1 } #Anglia (England has its own revolts)
			core = { province = 86 data = -1 } #Delaware (USA is obviously exempted)
			flag = [support_US] #France, Spain or the Netherlands could be US allies
			flag = [boston]
			flag = [philadelphia]
		}
		event = 3049 #ENG: The American Revolution
		war = { country = USA country = ENG }
		event = 4993 #USA: The Declaration of Independence
	}
	random = no
	province = 88 #Catskill
	name = "EVENTNAME338324" #Turmoil in Catskill
	desc = "EVENTHIST338300"
	#-#A Continental Congress has been assembled of honored and influential representatives from all of the North American colonies under the foreign rule, but increasingly afflicted by the outrageous policies of their monarch it is now unified and determined in the goal of cutting the cords that still bind the colonies to Europe. With the Declaration of Independence the rebelling colonists have stated the will to govern themselves as an independent nation. The American revolutionary spark is spreading across all the colonies along the Atlantic Coast of North America. What do we do to stop our colonists to join these revolts against the European rule?

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

	action_a = {
		name = "ACTIONNAME338300A" #Accept their demands of independence
		command = { type = relation which = USA value = 25 }
		command = { type = cedeprovince which = USA value = 88 } #Catskill
		command = { type = sleepevent which = 338326 } #ProvinceSpec*88: All quiet in Catskill
	}
}
#(1773-1820) Turmoil in Catskill (if catholic)
#by Bordic
event = {
	id = 338325
	trigger = {
		religion = catholic
		NOT = {
			event = 4983 #ENG: The Treaty of Paris (USA has won)
			event = 4984 #ENG: The Treaty of Paris (ENG has lost territories)
			event = 4985 #ENG: The Destruction of the Tax Revolt (ENG has won, no USA)
			event = 3052 #ENG: The North American Union (no USA, FRA radical republic)
			event = 4987 #ENG: Colonial dissatisfaction cools (no USA, patch event reducing RR)
			core = { province = 247 data = -1 } #Anglia (England has its own revolts)
			core = { province = 86 data = -1 } #Delaware (USA is obviously exempted)
			flag = [support_US] #France, Spain or the Netherlands could be US allies
			flag = [boston]
			flag = [philadelphia]
		}
		event = 3049 #ENG: The American Revolution
		war = { country = USA country = ENG }
		event = 4993 #USA: The Declaration of Independence
	}
	random = no
	province = 88 #Catskill
	name = "EVENTNAME338324" #Turmoil in Catskill
	desc = "EVENTHIST338300"
	#-#A Continental Congress has been assembled of honored and influential representatives from all of the North American colonies under the foreign rule, but increasingly afflicted by the outrageous policies of their monarch it is now unified and determined in the goal of cutting the cords that still bind the colonies to Europe. With the Declaration of Independence the rebelling colonists have stated the will to govern themselves as an independent nation. The American revolutionary spark is spreading across all the colonies along the Atlantic Coast of North America. What do we do to stop our colonists to join these revolts against the European rule?

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

	action_a = {
		name = "ACTIONNAME338301A" #Crush those 'American' rebels
		command = { type = relation which = USA value = -25 }
		command = { type = province_revoltrisk which = 88 value = 27 } #Catskill
	}
}
#(1773-1820) All quiet in Catskill
#by Bordic
event = {
	id = 338326
	trigger = {
		OR = {
			flag = [boston]
			flag = [philadelphia]
			event = 338325 #ProvinceSpec*88: Turmoil in North American colonies (if catholic)
		}
		NOT = {
			core = { province = 247 data = -1 } #Anglia (England has its own revolts)
			core = { province = 86 data = -1 } #Delaware (USA is obviously exempted)
			war = { country = USA country = ENG }
			flag = [support_US] #France, Spain or the Netherlands could be US allies
		}
	}
	random = no
	province = 88 #Catskill
	name = "EVENTNAME338326" #All quiet in Catskill
	desc = "EVENTHIST338302"
	#-#Our North American subjects have come to accept the reasonable policies of His Majesty's government and no longer threaten to revolt against us.

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

	action_a = {
		name = "ACTIONNAME338302A" #The 'Americans' are tamed
		command = { type = relation which = USA value = -25 }
		command = { type = province_revoltrisk which = 88 value = -70 } #Catskill
	}
}
#-----------------------------------------------------------------------------------------------
#(1773-1820) Turmoil in Adirondak (if reformed/protestant)
#by Bordic
event = {
	id = 338327
	trigger = {
		OR = {
			religion = protestant
			religion = reformed
		}
		NOT = {
			event = 4983 #ENG: The Treaty of Paris (USA has won)
			event = 4984 #ENG: The Treaty of Paris (ENG has lost territories)
			event = 4985 #ENG: The Destruction of the Tax Revolt (ENG has won, no USA)
			event = 3052 #ENG: The North American Union (no USA, FRA radical republic)
			event = 4987 #ENG: Colonial dissatisfaction cools (no USA, patch event reducing RR)
			core = { province = 247 data = -1 } #Anglia (England has its own revolts)
			core = { province = 86 data = -1 } #Delaware (USA is obviously exempted)
			flag = [support_US] #France, Spain or the Netherlands could be US allies
			flag = [boston]
			flag = [philadelphia]
		}
		event = 3049 #ENG: The American Revolution
		war = { country = USA country = ENG }
		event = 4993 #USA: The Declaration of Independence
	}
	random = no
	province = 100 #Adirondak
	name = "EVENTNAME338327" #Turmoil in Adirondak
	desc = "EVENTHIST338300"
	#-#A Continental Congress has been assembled of honored and influential representatives from all of the North American colonies under the foreign rule, but increasingly afflicted by the outrageous policies of their monarch it is now unified and determined in the goal of cutting the cords that still bind the colonies to Europe. With the Declaration of Independence the rebelling colonists have stated the will to govern themselves as an independent nation. The American revolutionary spark is spreading across all the colonies along the Atlantic Coast of North America. What do we do to stop our colonists to join these revolts against the European rule?

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

	action_a = {
		name = "ACTIONNAME338300A" #Accept their demands of independence
		command = { type = relation which = USA value = 25 }
		command = { type = cedeprovince which = USA value = 100 } #Adirondak
		command = { type = sleepevent which = 338329 } #ProvinceSpec*100: All quiet in Adirondak
	}
}
#(1773-1820) Turmoil in Adirondak (if catholic)
#by Bordic
event = {
	id = 338328
	trigger = {
		religion = catholic
		NOT = {
			event = 4983 #ENG: The Treaty of Paris (USA has won)
			event = 4984 #ENG: The Treaty of Paris (ENG has lost territories)
			event = 4985 #ENG: The Destruction of the Tax Revolt (ENG has won, no USA)
			event = 3052 #ENG: The North American Union (no USA, FRA radical republic)
			event = 4987 #ENG: Colonial dissatisfaction cools (no USA, patch event reducing RR)
			core = { province = 247 data = -1 } #Anglia (England has its own revolts)
			core = { province = 86 data = -1 } #Delaware (USA is obviously exempted)
			flag = [support_US] #France, Spain or the Netherlands could be US allies
			flag = [boston]
			flag = [philadelphia]
		}
		event = 3049 #ENG: The American Revolution
		war = { country = USA country = ENG }
		event = 4993 #USA: The Declaration of Independence
	}
	random = no
	province = 100 #Adirondak
	name = "EVENTNAME338327" #Turmoil in Adirondak
	desc = "EVENTHIST338300"
	#-#A Continental Congress has been assembled of honored and influential representatives from all of the North American colonies under the foreign rule, but increasingly afflicted by the outrageous policies of their monarch it is now unified and determined in the goal of cutting the cords that still bind the colonies to Europe. With the Declaration of Independence the rebelling colonists have stated the will to govern themselves as an independent nation. The American revolutionary spark is spreading across all the colonies along the Atlantic Coast of North America. What do we do to stop our colonists to join these revolts against the European rule?

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

	action_a = {
		name = "ACTIONNAME338301A" #Crush those 'American' rebels
		command = { type = relation which = USA value = -25 }
		command = { type = province_revoltrisk which = 100 value = 27 } #Adirondak
	}
}
#(1773-1820) All quiet in Adirondak
#by Bordic
event = {
	id = 338329
	trigger = {
		OR = {
			flag = [boston]
			flag = [philadelphia]
			event = 338328 #ProvinceSpec*100: Turmoil in North American colonies (if catholic)
		}
		NOT = {
			core = { province = 247 data = -1 } #Anglia (England has its own revolts)
			core = { province = 86 data = -1 } #Delaware (USA is obviously exempted)
			war = { country = USA country = ENG }
			flag = [support_US] #France, Spain or the Netherlands could be US allies
		}
	}
	random = no
	province = 100 #Adirondak
	name = "EVENTNAME338329" #All quiet in Adirondak
	desc = "EVENTHIST338302"
	#-#Our North American subjects have come to accept the reasonable policies of His Majesty's government and no longer threaten to revolt against us.

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

	action_a = {
		name = "ACTIONNAME338302A" #The 'Americans' are tamed
		command = { type = relation which = USA value = -25 }
		command = { type = province_revoltrisk which = 100 value = -70 } #Adirondak
	}
}
#-----------------------------------------------------------------------------------------------
#(1773-1820) Turmoil in Sebago (if reformed/protestant)
#by Bordic
event = {
	id = 338330
	trigger = {
		OR = {
			religion = protestant
			religion = reformed
		}
		NOT = {
			event = 4983 #ENG: The Treaty of Paris (USA has won)
			event = 4984 #ENG: The Treaty of Paris (ENG has lost territories)
			event = 4985 #ENG: The Destruction of the Tax Revolt (ENG has won, no USA)
			event = 3052 #ENG: The North American Union (no USA, FRA radical republic)
			event = 4987 #ENG: Colonial dissatisfaction cools (no USA, patch event reducing RR)
			core = { province = 247 data = -1 } #Anglia (England has its own revolts)
			core = { province = 86 data = -1 } #Delaware (USA is obviously exempted)
			flag = [support_US] #France, Spain or the Netherlands could be US allies
			flag = [boston]
			flag = [philadelphia]
		}
		event = 3049 #ENG: The American Revolution
		war = { country = USA country = ENG }
		event = 4993 #USA: The Declaration of Independence
	}
	random = no
	province = 101 #Sebago
	name = "EVENTNAME338330" #Turmoil in Sebago
	desc = "EVENTHIST338300"
	#-#A Continental Congress has been assembled of honored and influential representatives from all of the North American colonies under the foreign rule, but increasingly afflicted by the outrageous policies of their monarch it is now unified and determined in the goal of cutting the cords that still bind the colonies to Europe. With the Declaration of Independence the rebelling colonists have stated the will to govern themselves as an independent nation. The American revolutionary spark is spreading across all the colonies along the Atlantic Coast of North America. What do we do to stop our colonists to join these revolts against the European rule?

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

	action_a = {
		name = "ACTIONNAME338300A" #Accept their demands of independence
		command = { type = relation which = USA value = 25 }
		command = { type = cedeprovince which = USA value = 101 } #Sebago
		command = { type = sleepevent which = 338332 } #ProvinceSpec*101: All quiet in Sebago
	}
}
#(1773-1820) Turmoil in Sebago (if catholic)
#by Bordic
event = {
	id = 338331
	trigger = {
		religion = catholic
		NOT = {
			event = 4983 #ENG: The Treaty of Paris (USA has won)
			event = 4984 #ENG: The Treaty of Paris (ENG has lost territories)
			event = 4985 #ENG: The Destruction of the Tax Revolt (ENG has won, no USA)
			event = 3052 #ENG: The North American Union (no USA, FRA radical republic)
			event = 4987 #ENG: Colonial dissatisfaction cools (no USA, patch event reducing RR)
			core = { province = 247 data = -1 } #Anglia (England has its own revolts)
			core = { province = 86 data = -1 } #Delaware (USA is obviously exempted)
			flag = [support_US] #France, Spain or the Netherlands could be US allies
			flag = [boston]
			flag = [philadelphia]
		}
		event = 3049 #ENG: The American Revolution
		war = { country = USA country = ENG }
		event = 4993 #USA: The Declaration of Independence
	}
	random = no
	province = 101 #Sebago
	name = "EVENTNAME338330" #Turmoil in Sebago
	desc = "EVENTHIST338300"
	#-#A Continental Congress has been assembled of honored and influential representatives from all of the North American colonies under the foreign rule, but increasingly afflicted by the outrageous policies of their monarch it is now unified and determined in the goal of cutting the cords that still bind the colonies to Europe. With the Declaration of Independence the rebelling colonists have stated the will to govern themselves as an independent nation. The American revolutionary spark is spreading across all the colonies along the Atlantic Coast of North America. What do we do to stop our colonists to join these revolts against the European rule?

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

	action_a = {
		name = "ACTIONNAME338301A" #Crush those 'American' rebels
		command = { type = relation which = USA value = -25 }
		command = { type = province_revoltrisk which = 101 value = 27 } #Sebago
	}
}
#(1773-1820) All quiet in Sebago
#by Bordic
event = {
	id = 338332
	trigger = {
		OR = {
			flag = [boston]
			flag = [philadelphia]
			event = 338331 #ProvinceSpec*101: Turmoil in North American colonies (if catholic)
		}
		NOT = {
			core = { province = 247 data = -1 } #Anglia (England has its own revolts)
			core = { province = 86 data = -1 } #Delaware (USA is obviously exempted)
			war = { country = USA country = ENG }
			flag = [support_US] #France, Spain or the Netherlands could be US allies
		}
	}
	random = no
	province = 101 #Sebago
	name = "EVENTNAME338332" #All quiet in Sebago
	desc = "EVENTHIST338302"
	#-#Our North American subjects have come to accept the reasonable policies of His Majesty's government and no longer threaten to revolt against us.

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

	action_a = {
		name = "ACTIONNAME338302A" #The 'Americans' are tamed
		command = { type = relation which = USA value = -25 }
		command = { type = province_revoltrisk which = 101 value = -70 } #Sebago
	}
}
#-----------------------------------------------------------------------------------------------
#(1773-1820) Turmoil in Connecticut (if reformed/protestant)
#by Bordic
event = {
	id = 338333
	trigger = {
		OR = {
			religion = protestant
			religion = reformed
		}
		NOT = {
			event = 4983 #ENG: The Treaty of Paris (USA has won)
			event = 4984 #ENG: The Treaty of Paris (ENG has lost territories)
			event = 4985 #ENG: The Destruction of the Tax Revolt (ENG has won, no USA)
			event = 3052 #ENG: The North American Union (no USA, FRA radical republic)
			event = 4987 #ENG: Colonial dissatisfaction cools (no USA, patch event reducing RR)
			core = { province = 247 data = -1 } #Anglia (England has its own revolts)
			core = { province = 86 data = -1 } #Delaware (USA is obviously exempted)
			flag = [support_US] #France, Spain or the Netherlands could be US allies
			flag = [boston]
			flag = [philadelphia]
		}
		event = 3049 #ENG: The American Revolution
		war = { country = USA country = ENG }
		event = 4993 #USA: The Declaration of Independence
	}
	random = no
	province = 102 #Connecticut
	name = "EVENTNAME338333" #Turmoil in Connecticut
	desc = "EVENTHIST338300"
	#-#A Continental Congress has been assembled of honored and influential representatives from all of the North American colonies under the foreign rule, but increasingly afflicted by the outrageous policies of their monarch it is now unified and determined in the goal of cutting the cords that still bind the colonies to Europe. With the Declaration of Independence the rebelling colonists have stated the will to govern themselves as an independent nation. The American revolutionary spark is spreading across all the colonies along the Atlantic Coast of North America. What do we do to stop our colonists to join these revolts against the European rule?

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

	action_a = {
		name = "ACTIONNAME338300A" #Accept their demands of independence
		command = { type = relation which = USA value = 25 }
		command = { type = cedeprovince which = USA value = 102 } #Connecticut
		command = { type = sleepevent which = 338335 } #ProvinceSpec*102: All quiet in Connecticut
	}
}
#(1773-1820) Turmoil in Connecticut (if catholic)
#by Bordic
event = {
	id = 338334
	trigger = {
		religion = catholic
		NOT = {
			event = 4983 #ENG: The Treaty of Paris (USA has won)
			event = 4984 #ENG: The Treaty of Paris (ENG has lost territories)
			event = 4985 #ENG: The Destruction of the Tax Revolt (ENG has won, no USA)
			event = 3052 #ENG: The North American Union (no USA, FRA radical republic)
			event = 4987 #ENG: Colonial dissatisfaction cools (no USA, patch event reducing RR)
			core = { province = 247 data = -1 } #Anglia (England has its own revolts)
			core = { province = 86 data = -1 } #Delaware (USA is obviously exempted)
			flag = [support_US] #France, Spain or the Netherlands could be US allies
			flag = [boston]
			flag = [philadelphia]
		}
		event = 3049 #ENG: The American Revolution
		war = { country = USA country = ENG }
		event = 4993 #USA: The Declaration of Independence
	}
	random = no
	province = 102 #Connecticut
	name = "EVENTNAME338333" #Turmoil in Connecticut
	desc = "EVENTHIST338300"
	#-#A Continental Congress has been assembled of honored and influential representatives from all of the North American colonies under the foreign rule, but increasingly afflicted by the outrageous policies of their monarch it is now unified and determined in the goal of cutting the cords that still bind the colonies to Europe. With the Declaration of Independence the rebelling colonists have stated the will to govern themselves as an independent nation. The American revolutionary spark is spreading across all the colonies along the Atlantic Coast of North America. What do we do to stop our colonists to join these revolts against the European rule?

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

	action_a = {
		name = "ACTIONNAME338301A" #Crush those 'American' rebels
		command = { type = relation which = USA value = -25 }
		command = { type = province_revoltrisk which = 102 value = 27 } #Connecticut
	}
}
#(1773-1820) All quiet in Connecticut
#by Bordic
event = {
	id = 338335
	trigger = {
		OR = {
			flag = [boston]
			flag = [philadelphia]
			event = 338334 #ProvinceSpec*102: Turmoil in North American colonies (if catholic)
		}
		NOT = {
			core = { province = 247 data = -1 } #Anglia (England has its own revolts)
			core = { province = 86 data = -1 } #Delaware (USA is obviously exempted)
			war = { country = USA country = ENG }
			flag = [support_US] #France, Spain or the Netherlands could be US allies
		}
	}
	random = no
	province = 102 #Connecticut
	name = "EVENTNAME338335" #All quiet in Connecticut
	desc = "EVENTHIST338302"
	#-#Our North American subjects have come to accept the reasonable policies of His Majesty's government and no longer threaten to revolt against us.

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

	action_a = {
		name = "ACTIONNAME338302A" #The 'Americans' are tamed
		command = { type = relation which = USA value = -25 }
		command = { type = province_revoltrisk which = 102 value = -70 } #Connecticut
	}
}
#-----------------------------------------------------------------------------------------------
#(1773-1820) Turmoil in Massachusetts (if reformed/protestant)
#by Bordic
event = {
	id = 338336
	trigger = {
		OR = {
			religion = protestant
			religion = reformed
		}
		NOT = {
			event = 4983 #ENG: The Treaty of Paris (USA has won)
			event = 4984 #ENG: The Treaty of Paris (ENG has lost territories)
			event = 4985 #ENG: The Destruction of the Tax Revolt (ENG has won, no USA)
			event = 3052 #ENG: The North American Union (no USA, FRA radical republic)
			event = 4987 #ENG: Colonial dissatisfaction cools (no USA, patch event reducing RR)
			core = { province = 247 data = -1 } #Anglia (England has its own revolts)
			core = { province = 86 data = -1 } #Delaware (USA is obviously exempted)
			flag = [support_US] #France, Spain or the Netherlands could be US allies
			flag = [boston]
			flag = [philadelphia]
		}
		event = 3049 #ENG: The American Revolution
		war = { country = USA country = ENG }
		event = 4993 #USA: The Declaration of Independence
	}
	random = no
	province = 103 #Massachusetts
	name = "EVENTNAME338336" #Turmoil in Massachusetts
	desc = "EVENTHIST338300"
	#-#A Continental Congress has been assembled of honored and influential representatives from all of the North American colonies under the foreign rule, but increasingly afflicted by the outrageous policies of their monarch it is now unified and determined in the goal of cutting the cords that still bind the colonies to Europe. With the Declaration of Independence the rebelling colonists have stated the will to govern themselves as an independent nation. The American revolutionary spark is spreading across all the colonies along the Atlantic Coast of North America. What do we do to stop our colonists to join these revolts against the European rule?

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

	action_a = {
		name = "ACTIONNAME338300A" #Accept their demands of independence
		command = { type = relation which = USA value = 25 }
		command = { type = cedeprovince which = USA value = 103 } #Massachusetts
		command = { type = sleepevent which = 338335 } #ProvinceSpec*103: All quiet in Massachusetts
	}
}
#(1773-1820) Turmoil in Massachusetts (if catholic)
#by Bordic
event = {
	id = 338337
	trigger = {
		religion = catholic
		NOT = {
			event = 4983 #ENG: The Treaty of Paris (USA has won)
			event = 4984 #ENG: The Treaty of Paris (ENG has lost territories)
			event = 4985 #ENG: The Destruction of the Tax Revolt (ENG has won, no USA)
			event = 3052 #ENG: The North American Union (no USA, FRA radical republic)
			event = 4987 #ENG: Colonial dissatisfaction cools (no USA, patch event reducing RR)
			core = { province = 247 data = -1 } #Anglia (England has its own revolts)
			core = { province = 86 data = -1 } #Delaware (USA is obviously exempted)
			flag = [support_US] #France, Spain or the Netherlands could be US allies
			flag = [boston]
			flag = [philadelphia]
		}
		event = 3049 #ENG: The American Revolution
		war = { country = USA country = ENG }
		event = 4993 #USA: The Declaration of Independence
	}
	random = no
	province = 103 #Massachusetts
	name = "EVENTNAME338336" #Turmoil in Massachusetts
	desc = "EVENTHIST338300"
	#-#A Continental Congress has been assembled of honored and influential representatives from all of the North American colonies under the foreign rule, but increasingly afflicted by the outrageous policies of their monarch it is now unified and determined in the goal of cutting the cords that still bind the colonies to Europe. With the Declaration of Independence the rebelling colonists have stated the will to govern themselves as an independent nation. The American revolutionary spark is spreading across all the colonies along the Atlantic Coast of North America. What do we do to stop our colonists to join these revolts against the European rule?

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

	action_a = {
		name = "ACTIONNAME338301A" #Crush those 'American' rebels
		command = { type = relation which = USA value = -25 }
		command = { type = province_revoltrisk which = 103 value = 27 } #Massachusetts
	}
}
#(1773-1820) All quiet in Massachusetts
#by Bordic
event = {
	id = 338338
	trigger = {
		OR = {
			flag = [boston]
			flag = [philadelphia]
			event = 338337 #ProvinceSpec*103: Turmoil in North American colonies (if catholic)
		}
		NOT = {
			core = { province = 247 data = -1 } #Anglia (England has its own revolts)
			core = { province = 86 data = -1 } #Delaware (USA is obviously exempted)
			war = { country = USA country = ENG }
			flag = [support_US] #France, Spain or the Netherlands could be US allies
		}
	}
	random = no
	province = 103 #Massachusetts
	name = "EVENTNAME338338" #All quiet in Massachusetts
	desc = "EVENTHIST338302"
	#-#Our North American subjects have come to accept the reasonable policies of His Majesty's government and no longer threaten to revolt against us.

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

	action_a = {
		name = "ACTIONNAME338302A" #The 'Americans' are tamed
		command = { type = relation which = USA value = -25 }
		command = { type = province_revoltrisk which = 103 value = -70 } #Massachusetts
	}
}
#-----------------------------------------------------------------------------------------------
#(1773-1820) Turmoil in Penobscot (if reformed/protestant)
#by Bordic
event = {
	id = 338339
	trigger = {
		OR = {
			religion = protestant
			religion = reformed
		}
		NOT = {
			event = 4983 #ENG: The Treaty of Paris (USA has won)
			event = 4984 #ENG: The Treaty of Paris (ENG has lost territories)
			event = 4985 #ENG: The Destruction of the Tax Revolt (ENG has won, no USA)
			event = 3052 #ENG: The North American Union (no USA, FRA radical republic)
			event = 4987 #ENG: Colonial dissatisfaction cools (no USA, patch event reducing RR)
			core = { province = 247 data = -1 } #Anglia (England has its own revolts)
			core = { province = 86 data = -1 } #Delaware (USA is obviously exempted)
			flag = [support_US] #France, Spain or the Netherlands could be US allies
			flag = [boston]
			flag = [philadelphia]
		}
		event = 3049 #ENG: The American Revolution
		war = { country = USA country = ENG }
		event = 4993 #USA: The Declaration of Independence
	}
	random = no
	province = 104 #Penobscot
	name = "EVENTNAME338339" #Turmoil in Penobscot
	desc = "EVENTHIST338300"
	#-#A Continental Congress has been assembled of honored and influential representatives from all of the North American colonies under the foreign rule, but increasingly afflicted by the outrageous policies of their monarch it is now unified and determined in the goal of cutting the cords that still bind the colonies to Europe. With the Declaration of Independence the rebelling colonists have stated the will to govern themselves as an independent nation. The American revolutionary spark is spreading across all the colonies along the Atlantic Coast of North America. What do we do to stop our colonists to join these revolts against the European rule?

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

	action_a = {
		name = "ACTIONNAME338300A" #Accept their demands of independence
		command = { type = relation which = USA value = 25 }
		command = { type = cedeprovince which = USA value = 104 } #Penobscot
		command = { type = sleepevent which = 338341 } #ProvinceSpec*104: All quiet in Penobscot
	}
}
#(1773-1820) Turmoil in Penobscot (if catholic)
#by Bordic
event = {
	id = 338340
	trigger = {
		religion = catholic
		NOT = {
			event = 4983 #ENG: The Treaty of Paris (USA has won)
			event = 4984 #ENG: The Treaty of Paris (ENG has lost territories)
			event = 4985 #ENG: The Destruction of the Tax Revolt (ENG has won, no USA)
			event = 3052 #ENG: The North American Union (no USA, FRA radical republic)
			event = 4987 #ENG: Colonial dissatisfaction cools (no USA, patch event reducing RR)
			core = { province = 247 data = -1 } #Anglia (England has its own revolts)
			core = { province = 86 data = -1 } #Delaware (USA is obviously exempted)
			flag = [support_US] #France, Spain or the Netherlands could be US allies
			flag = [boston]
			flag = [philadelphia]
		}
		event = 3049 #ENG: The American Revolution
		war = { country = USA country = ENG }
		event = 4993 #USA: The Declaration of Independence
	}
	random = no
	province = 104 #Penobscot
	name = "EVENTNAME338339" #Turmoil in Penobscot
	desc = "EVENTHIST338300"
	#-#A Continental Congress has been assembled of honored and influential representatives from all of the North American colonies under the foreign rule, but increasingly afflicted by the outrageous policies of their monarch it is now unified and determined in the goal of cutting the cords that still bind the colonies to Europe. With the Declaration of Independence the rebelling colonists have stated the will to govern themselves as an independent nation. The American revolutionary spark is spreading across all the colonies along the Atlantic Coast of North America. What do we do to stop our colonists to join these revolts against the European rule?

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

	action_a = {
		name = "ACTIONNAME338301A" #Crush those 'American' rebels
		command = { type = relation which = USA value = -25 }
		command = { type = province_revoltrisk which = 104 value = 27 } #Penobscot
	}
}
#(1773-1820) All quiet in Penobscot
#by Bordic
event = {
	id = 338341
	trigger = {
		OR = {
			flag = [boston]
			flag = [philadelphia]
			event = 338340 #ProvinceSpec*104: Turmoil in North American colonies (if catholic)
		}
		NOT = {
			core = { province = 247 data = -1 } #Anglia (England has its own revolts)
			core = { province = 86 data = -1 } #Delaware (USA is obviously exempted)
			war = { country = USA country = ENG }
			flag = [support_US] #France, Spain or the Netherlands could be US allies
		}
	}
	random = no
	province = 104 #Penobscot
	name = "EVENTNAME338341" #All quiet in Penobscot
	desc = "EVENTHIST338302"
	#-#Our North American subjects have come to accept the reasonable policies of His Majesty's government and no longer threaten to revolt against us.

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

	action_a = {
		name = "ACTIONNAME338302A" #The 'Americans' are tamed
		command = { type = relation which = USA value = -25 }
		command = { type = province_revoltrisk which = 104 value = -70 } #Penobscot
	}
}
#-----------------------------------------------------------------------------------------------
#(1775-1820) Massachusetts Government Act
#by Garbon
event = {
	id = 338342
	trigger = {
		OR = {	#must own all of one group or a province from each group + Massachusetts
			AND = {
				owned = { province = 54 data = -1 } #Savannah
				owned = { province = 62 data = -1 } #Carolina
				owned = { province = 63 data = -1 } #Santee
			}
			AND = {
				owned = { province = 86 data = -1 } #Delaware
				owned = { province = 87 data = -1 } #Manhattan
				owned = { province = 88 data = -1 } #Catskill
				owned = { province = 102 data = -1 } #Connecticut
			}
			AND = {
				owned = { province = 100 data = -1 } #Adirondak
				owned = { province = 101 data = -1 } #Sebago
				owned = { province = 104 data = -1 } #Penobscot
			}
			AND = {
				owned = { province = 64 data = -1 } #Roanoke
				owned = { province = 68 data = -1 } #Chesapeake
				owned = { province = 85 data = -1 } #Susquehanna
			}
			AND = {
				OR = {
					owned = { province = 64 data = -1 } #Roanoke
					owned = { province = 68 data = -1 } #Chesapeake
					owned = { province = 85 data = -1 } #Susquehanna
				}
				OR = {
					owned = { province = 100 data = -1 } #Adirondak
					owned = { province = 101 data = -1 } #Sebago
					owned = { province = 104 data = -1 } #Penobscot
				}
				OR = {
					owned = { province = 86 data = -1 } #Delaware
					owned = { province = 87 data = -1 } #Manhattan
					owned = { province = 88 data = -1 } #Catskill
					owned = { province = 102 data = -1 } #Connecticut
				}
				OR = {
					owned = { province = 54 data = -1 } #Savannah
					owned = { province = 62 data = -1 } #Carolina
					owned = { province = 63 data = -1 } #Santee
				}
			}
		}
		NOT = {
			flag = [philadelphia]
			event = 4983 #ENG: The Treaty of Paris (USA has won)
			event = 4984 #ENG: The Treaty of Paris (ENG has lost territories)
			event = 4985 #ENG: The Destruction of the Tax Revolt (ENG has won, no USA)
			event = 3052 #ENG: The North American Union (no USA, FRA radical republic)
			event = 4987 #ENG: Colonial dissatisfaction cools (no USA, patch event reducing RR)
			core = { province = 247 data = -1 } #Anglia (England has its own revolts)
			core = { province = 86 data = -1 } #Delaware (USA is obviously exempted)
			flag = [support_US] #France, Spain or the Netherlands could be US allies
		}
	}
	random = no
	province = 103 #Massachussetts
	name = "EVENTNAME338342" #Massachusetts Government Act
	desc = "EVENTHIST338342"
	#-#Worried about the independent and free thinking behavior occurring in the crown colony, The Province of Massachusetts Bay, the crown passed the Massachusetts Government Act, which limited the powers of the colony by making all government posts appointive rather than elective. Infuriated by this move, on October 7, 1774, the General Court of Massachusetts dissolved the colony and setup a provincial congress to combat the tightening control of the King. In doing so, the people of Massachusetts legitimized the greivances of other American colonists which encouraged them to declare open revolt as well. It was only a matter of time until violent hostilities broke out."

	date = { day = 22 month = august year = 1775 }
	offset = 30
	deathdate = { year = 1820 }

	action_a = {
		name = "ACTIONNAME338342A" #America is in open revolt
		command = { type = stability value = -1 }
		command = { type = setflag which = [boston] }
		command = { type = province_revoltrisk which = 54 value = 35 } #Savannah
		command = { type = province_revoltrisk which = 62 value = 35 } #Carolina
		command = { type = province_revoltrisk which = 63 value = 35 } #Santee
		command = { type = province_revoltrisk which = 64 value = 35 } #Roanoke
		command = { type = province_revoltrisk which = 68 value = 35 } #Chesapeake
		command = { type = province_revoltrisk which = 85 value = 35 } #Susquehanna
		command = { type = province_revoltrisk which = 86 value = 35 } #Delaware
		command = { type = province_revoltrisk which = 87 value = 35 } #Manhattan
		command = { type = province_revoltrisk which = 88 value = 35 } #Catskill
		command = { type = province_revoltrisk which = 100 value = 35 } #Adirondak
		command = { type = province_revoltrisk which = 101 value = 35 } #Sebago
		command = { type = province_revoltrisk which = 102 value = 35 } #Connecticut
		command = { type = province_revoltrisk which = 103 value = 35 } #Massachussetts
		command = { type = province_revoltrisk which = 104 value = 35 } #Penobscot
	}
}
#(1775-1820) Continental Congress of Pennsylvania
#by Garbon
event = {
	id = 338343
	trigger = {
		OR = {	#must own all of one group or a province from each group + Delaware
			AND = {
				owned = { province = 54 data = -1 } #Savannah
				owned = { province = 62 data = -1 } #Carolina
				owned = { province = 63 data = -1 } #Santee
			}
			AND = {
				owned = { province = 87 data = -1 } #Manhattan
				owned = { province = 88 data = -1 } #Catskill
				owned = { province = 102 data = -1 } #Connecticut
			}
			AND = {
				owned = { province = 100 data = -1 } #Adirondak
				owned = { province = 101 data = -1 } #Sebago
				owned = { province = 103 data = -1 } #Massachusetts
				owned = { province = 104 data = -1 } #Penobscot
			}
			AND = {
				owned = { province = 64 data = -1 } #Roanoke
				owned = { province = 68 data = -1 } #Chesapeake
				owned = { province = 85 data = -1 } #Susquehanna
			}
			AND = {
				OR = {
					owned = { province = 64 data = -1 } #Roanoke
					owned = { province = 68 data = -1 } #Chesapeake
					owned = { province = 85 data = -1 } #Susquehanna
				}
				OR = {
					owned = { province = 100 data = -1 } #Adirondak
					owned = { province = 101 data = -1 } #Sebago
					owned = { province = 103 data = -1 } #Massachusetts
					owned = { province = 104 data = -1 } #Penobscot
				}
				OR = {
					owned = { province = 87 data = -1 } #Manhattan
					owned = { province = 88 data = -1 } #Catskill
					owned = { province = 102 data = -1 } #Connecticut
				}
				OR = {
					owned = { province = 54 data = -1 } #Savannah
					owned = { province = 62 data = -1 } #Carolina
					owned = { province = 63 data = -1 } #Santee
				}
			}
		}
		NOT = {
			flag = [boston]
			event = 4983 #ENG: The Treaty of Paris (USA has won)
			event = 4984 #ENG: The Treaty of Paris (ENG has lost territories)
			event = 4985 #ENG: The Destruction of the Tax Revolt (ENG has won, no USA)
			event = 3052 #ENG: The North American Union (no USA, FRA radical republic)
			event = 4987 #ENG: Colonial dissatisfaction cools (no USA, patch event reducing RR)
			core = { province = 247 data = -1 } #Anglia (England has its own revolts)
			core = { province = 86 data = -1 } #Delaware (USA is obviously exempted)
			flag = [support_US] #France, Spain or the Netherlands could be US allies
		}
	}
	random = no
	province = 86 #Delaware
	name = "EVENTNAME338343" #Continental Congress of Pennsylvania
	desc = "EVENTHIST338343"
	#-#On September 5th, 1774, a group of representatives appointed by the legislatures of the American colonies met in Philadelphia, Pennsylvania to discuss their greivances against the King. The immediate result of that congress was a boycott on all imported goods from the mother country. The congress also decided to meet again on May 10, 1775 by that point tensions in the colonies would have given rise to bloody conflict.

	date = { day = 22 month = august year = 1775 }
	offset = 30
	deathdate = { year = 1820 }

	action_a = {
		name = "ACTIONNAME338342A" #America is in open revolt
		command = { type = stability value = -1 }
		command = { type = setflag which = [philadelphia] }
		command = { type = province_revoltrisk which = 54 value = 35 } #Savannah
		command = { type = province_revoltrisk which = 62 value = 35 } #Carolina
		command = { type = province_revoltrisk which = 63 value = 35 } #Santee
		command = { type = province_revoltrisk which = 64 value = 35 } #Roanoke
		command = { type = province_revoltrisk which = 68 value = 35 } #Chesapeake
		command = { type = province_revoltrisk which = 85 value = 35 } #Susquehanna
		command = { type = province_revoltrisk which = 86 value = 35 } #Delaware
		command = { type = province_revoltrisk which = 87 value = 35 } #Manhattan
		command = { type = province_revoltrisk which = 88 value = 35 } #Catskill
		command = { type = province_revoltrisk which = 100 value = 35 } #Adirondak
		command = { type = province_revoltrisk which = 101 value = 35 } #Sebago
		command = { type = province_revoltrisk which = 102 value = 35 } #Connecticut
		command = { type = province_revoltrisk which = 103 value = 35 } #Massachussetts
		command = { type = province_revoltrisk which = 104 value = 35 } #Penobscot
	}
}
#(1775-1820) American Declaration of Independence
#by Garbon
event = {
	id = 338344
	trigger = {
		flag = [boston]
		exists = USA
		NOT = { flag = [american_independence] }
	}
	random = no
	province = 103
	name = "EVENTNAME338344" #American Declaration of Independence
	desc = "EVENTHIST4982"
	#-#The traitorous rabble, called 'The Continental Congress', has declared that they are no longer subject to our authority. All of the colonies have joined the existing revolt.

	date = { day = 22 month = august year = 1775 }
	offset = 5
	deathdate = { year = 1820 }

	action_a = {
		name = "ACTIONNAME4982A" #Treason!
		command = { type = casusbelli which = USA value = 60 }
		command = { type = war which = USA }
		command = { type = stability value = -2 }
		command = { type = setflag which = [american_independence] }
		command = { type = cedeprovince which = USA value = 54 } #Savannah
		command = { type = cedeprovince which = USA value = 62 } #Carolina
		command = { type = cedeprovince which = USA value = 63 } #Santee
		command = { type = cedeprovince which = USA value = 64 } #Roanoke
		command = { type = cedeprovince which = USA value = 65 } #Catawba
		command = { type = cedeprovince which = USA value = 66 } #Appalache
		command = { type = cedeprovince which = USA value = 68 } #Chesapeake
		command = { type = cedeprovince which = USA value = 69 } #Powhatan
		command = { type = cedeprovince which = USA value = 70 } #Shenandoah
		command = { type = cedeprovince which = USA value = 85 } #Susquehanna
		command = { type = cedeprovince which = USA value = 86 } #Delaware
		command = { type = cedeprovince which = USA value = 87 } #Manhattan
		command = { type = cedeprovince which = USA value = 88 } #Catskill
		command = { type = cedeprovince which = USA value = 89 } #Oswego
		command = { type = cedeprovince which = USA value = 100 } #Adirondak
		command = { type = cedeprovince which = USA value = 101 } #Sebago
		command = { type = cedeprovince which = USA value = 102 } #Connecticut
		command = { type = cedeprovince which = USA value = 103 } #Massachussetts
		command = { type = cedeprovince which = USA value = 104 } #Penobscot
		command = { type = cedeprovince which = USA value = 112 } #Bangor
	}
}
#(1775-1820) American Declaration of Independence
#by Garbon
event = {
	id = 338345
	trigger = {
		flag = [philadelphia]
		exists = USA
		NOT = { flag = [american_independence] }
	}
	random = no
	province = 103
	name = "EVENTNAME338344" #American Declaration of Independence
	desc = "EVENTHIST4982"
	#-#The traitorous rabble, called 'The Continental Congress', has declared that they are no longer subject to our authority. All of the colonies have joined the existing revolt.

	date = { day = 22 month = august year = 1775 }
	offset = 5
	deathdate = { year = 1820 }

	action_a = {
		name = "ACTIONNAME4982A" #Treason!
		command = { type = casusbelli which = USA value = 60 }
		command = { type = war which = USA }
		command = { type = stability value = -2 }
		command = { type = setflag which = [american_independence] }
		command = { type = cedeprovince which = USA value = 54 } #Savannah
		command = { type = cedeprovince which = USA value = 62 } #Carolina
		command = { type = cedeprovince which = USA value = 63 } #Santee
		command = { type = cedeprovince which = USA value = 64 } #Roanoke
		command = { type = cedeprovince which = USA value = 65 } #Catawba
		command = { type = cedeprovince which = USA value = 66 } #Appalache
		command = { type = cedeprovince which = USA value = 68 } #Chesapeake
		command = { type = cedeprovince which = USA value = 69 } #Powhatan
		command = { type = cedeprovince which = USA value = 70 } #Shenandoah
		command = { type = cedeprovince which = USA value = 85 } #Susquehanna
		command = { type = cedeprovince which = USA value = 86 } #Delaware
		command = { type = cedeprovince which = USA value = 87 } #Manhattan
		command = { type = cedeprovince which = USA value = 88 } #Catskill
		command = { type = cedeprovince which = USA value = 89 } #Oswego
		command = { type = cedeprovince which = USA value = 100 } #Adirondak
		command = { type = cedeprovince which = USA value = 101 } #Sebago
		command = { type = cedeprovince which = USA value = 102 } #Connecticut
		command = { type = cedeprovince which = USA value = 103 } #Massachussetts
		command = { type = cedeprovince which = USA value = 104 } #Penobscot
		command = { type = cedeprovince which = USA value = 112 } #Bangor
	}
}
#(1775-1820) American Declaration of Independence
#by Garbon
event = {
	id = 338346
	trigger = {
		flag = [boston]
		exists = USA
		NOT = { flag = [american_independence] }
	}
	random = no
	province = 68
	name = "EVENTNAME338344" #American Declaration of Independence
	desc = "EVENTHIST4982"
	#-#The traitorous rabble, called 'The Continental Congress', has declared that they are no longer subject to our authority. All of the colonies have joined the existing revolt.

	date = { day = 22 month = august year = 1775 }
	offset = 5
	deathdate = { year = 1820 }

	action_a = {
		name = "ACTIONNAME4982A" #Treason!
		command = { type = casusbelli which = USA value = 60 }
		command = { type = war which = USA }
		command = { type = stability value = -2 }
		command = { type = setflag which = [american_independence] }
		command = { type = cedeprovince which = USA value = 54 } #Savannah
		command = { type = cedeprovince which = USA value = 62 } #Carolina
		command = { type = cedeprovince which = USA value = 63 } #Santee
		command = { type = cedeprovince which = USA value = 64 } #Roanoke
		command = { type = cedeprovince which = USA value = 65 } #Catawba
		command = { type = cedeprovince which = USA value = 66 } #Appalache
		command = { type = cedeprovince which = USA value = 68 } #Chesapeake
		command = { type = cedeprovince which = USA value = 69 } #Powhatan
		command = { type = cedeprovince which = USA value = 70 } #Shenandoah
		command = { type = cedeprovince which = USA value = 85 } #Susquehanna
		command = { type = cedeprovince which = USA value = 86 } #Delaware
		command = { type = cedeprovince which = USA value = 87 } #Manhattan
		command = { type = cedeprovince which = USA value = 88 } #Catskill
		command = { type = cedeprovince which = USA value = 89 } #Oswego
		command = { type = cedeprovince which = USA value = 100 } #Adirondak
		command = { type = cedeprovince which = USA value = 101 } #Sebago
		command = { type = cedeprovince which = USA value = 102 } #Connecticut
		command = { type = cedeprovince which = USA value = 103 } #Massachussetts
		command = { type = cedeprovince which = USA value = 104 } #Penobscot
		command = { type = cedeprovince which = USA value = 112 } #Bangor
	}
}
#(1775-1820) American Declaration of Independence
#by Garbon
event = {
	id = 338347
	trigger = {
		flag = [philadelphia]
		exists = USA
		NOT = { flag = [american_independence] }
	}
	random = no
	province = 68
	name = "EVENTNAME338344" #American Declaration of Independence
	desc = "EVENTHIST4982"
	#-#The traitorous rabble, called 'The Continental Congress', has declared that they are no longer subject to our authority. All of the colonies have joined the existing revolt.

	date = { day = 22 month = august year = 1775 }
	offset = 5
	deathdate = { year = 1820 }

	action_a = {
		name = "ACTIONNAME4982A" #Treason!
		command = { type = casusbelli which = USA value = 60 }
		command = { type = war which = USA }
		command = { type = stability value = -2 }
		command = { type = setflag which = [american_independence] }
		command = { type = cedeprovince which = USA value = 54 } #Savannah
		command = { type = cedeprovince which = USA value = 62 } #Carolina
		command = { type = cedeprovince which = USA value = 63 } #Santee
		command = { type = cedeprovince which = USA value = 64 } #Roanoke
		command = { type = cedeprovince which = USA value = 65 } #Catawba
		command = { type = cedeprovince which = USA value = 66 } #Appalache
		command = { type = cedeprovince which = USA value = 68 } #Chesapeake
		command = { type = cedeprovince which = USA value = 69 } #Powhatan
		command = { type = cedeprovince which = USA value = 70 } #Shenandoah
		command = { type = cedeprovince which = USA value = 85 } #Susquehanna
		command = { type = cedeprovince which = USA value = 86 } #Delaware
		command = { type = cedeprovince which = USA value = 87 } #Manhattan
		command = { type = cedeprovince which = USA value = 88 } #Catskill
		command = { type = cedeprovince which = USA value = 89 } #Oswego
		command = { type = cedeprovince which = USA value = 100 } #Adirondak
		command = { type = cedeprovince which = USA value = 101 } #Sebago
		command = { type = cedeprovince which = USA value = 102 } #Connecticut
		command = { type = cedeprovince which = USA value = 103 } #Massachussetts
		command = { type = cedeprovince which = USA value = 104 } #Penobscot
		command = { type = cedeprovince which = USA value = 112 } #Bangor
	}
}
#(1775-1820) American Declaration of Independence
#by Garbon
event = {
	id = 338348
	trigger = {
		flag = [boston]
		exists = USA
		NOT = { flag = [american_independence] }
	}
	random = no
	province = 86
	name = "EVENTNAME338344" #American Declaration of Independence
	desc = "EVENTHIST4982"
	#-#The traitorous rabble, called 'The Continental Congress', has declared that they are no longer subject to our authority. All of the colonies have joined the existing revolt.

	date = { day = 22 month = august year = 1775 }
	offset = 5
	deathdate = { year = 1820 }

	action_a = {
		name = "ACTIONNAME4982A" #Treason!
		command = { type = casusbelli which = USA value = 60 }
		command = { type = war which = USA }
		command = { type = stability value = -2 }
		command = { type = setflag which = [american_independence] }
		command = { type = cedeprovince which = USA value = 54 } #Savannah
		command = { type = cedeprovince which = USA value = 62 } #Carolina
		command = { type = cedeprovince which = USA value = 63 } #Santee
		command = { type = cedeprovince which = USA value = 64 } #Roanoke
		command = { type = cedeprovince which = USA value = 65 } #Catawba
		command = { type = cedeprovince which = USA value = 66 } #Appalache
		command = { type = cedeprovince which = USA value = 68 } #Chesapeake
		command = { type = cedeprovince which = USA value = 69 } #Powhatan
		command = { type = cedeprovince which = USA value = 70 } #Shenandoah
		command = { type = cedeprovince which = USA value = 85 } #Susquehanna
		command = { type = cedeprovince which = USA value = 86 } #Delaware
		command = { type = cedeprovince which = USA value = 87 } #Manhattan
		command = { type = cedeprovince which = USA value = 88 } #Catskill
		command = { type = cedeprovince which = USA value = 89 } #Oswego
		command = { type = cedeprovince which = USA value = 100 } #Adirondak
		command = { type = cedeprovince which = USA value = 101 } #Sebago
		command = { type = cedeprovince which = USA value = 102 } #Connecticut
		command = { type = cedeprovince which = USA value = 103 } #Massachussetts
		command = { type = cedeprovince which = USA value = 104 } #Penobscot
		command = { type = cedeprovince which = USA value = 112 } #Bangor
	}
}
#(1775-1820) American Declaration of Independence
#by Garbon
event = {
	id = 338349
	trigger = {
		flag = [philadelphia]
		exists = USA
		NOT = { flag = [american_independence] }
	}
	random = no
	province = 86
	name = "EVENTNAME338344" #American Declaration of Independence
	desc = "EVENTHIST4982"
	#-#The traitorous rabble, called 'The Continental Congress', has declared that they are no longer subject to our authority. All of the colonies have joined the existing revolt.

	date = { day = 22 month = august year = 1775 }
	offset = 5
	deathdate = { year = 1820 }

	action_a = {
		name = "ACTIONNAME4982A" #Treason!
		command = { type = casusbelli which = USA value = 60 }
		command = { type = war which = USA }
		command = { type = stability value = -2 }
		command = { type = setflag which = [american_independence] }
		command = { type = cedeprovince which = USA value = 54 } #Savannah
		command = { type = cedeprovince which = USA value = 62 } #Carolina
		command = { type = cedeprovince which = USA value = 63 } #Santee
		command = { type = cedeprovince which = USA value = 64 } #Roanoke
		command = { type = cedeprovince which = USA value = 65 } #Catawba
		command = { type = cedeprovince which = USA value = 66 } #Appalache
		command = { type = cedeprovince which = USA value = 68 } #Chesapeake
		command = { type = cedeprovince which = USA value = 69 } #Powhatan
		command = { type = cedeprovince which = USA value = 70 } #Shenandoah
		command = { type = cedeprovince which = USA value = 85 } #Susquehanna
		command = { type = cedeprovince which = USA value = 86 } #Delaware
		command = { type = cedeprovince which = USA value = 87 } #Manhattan
		command = { type = cedeprovince which = USA value = 88 } #Catskill
		command = { type = cedeprovince which = USA value = 89 } #Oswego
		command = { type = cedeprovince which = USA value = 100 } #Adirondak
		command = { type = cedeprovince which = USA value = 101 } #Sebago
		command = { type = cedeprovince which = USA value = 102 } #Connecticut
		command = { type = cedeprovince which = USA value = 103 } #Massachussetts
		command = { type = cedeprovince which = USA value = 104 } #Penobscot
		command = { type = cedeprovince which = USA value = 112 } #Bangor
	}
}
#(1775-1820) American Declaration of Independence
#by Garbon
event = {
	id = 338350
	trigger = {
		flag = [boston]
		exists = USA
		NOT = { flag = [american_independence] }
	}
	random = no
	province = 87
	name = "EVENTNAME338344" #American Declaration of Independence
	desc = "EVENTHIST4982"
	#-#The traitorous rabble, called 'The Continental Congress', has declared that they are no longer subject to our authority. All of the colonies have joined the existing revolt.

	date = { day = 22 month = august year = 1775 }
	offset = 5
	deathdate = { year = 1820 }

	action_a = {
		name = "ACTIONNAME4982A" #Treason!
		command = { type = casusbelli which = USA value = 60 }
		command = { type = war which = USA }
		command = { type = stability value = -2 }
		command = { type = setflag which = [american_independence] }
		command = { type = cedeprovince which = USA value = 54 } #Savannah
		command = { type = cedeprovince which = USA value = 62 } #Carolina
		command = { type = cedeprovince which = USA value = 63 } #Santee
		command = { type = cedeprovince which = USA value = 64 } #Roanoke
		command = { type = cedeprovince which = USA value = 65 } #Catawba
		command = { type = cedeprovince which = USA value = 66 } #Appalache
		command = { type = cedeprovince which = USA value = 68 } #Chesapeake
		command = { type = cedeprovince which = USA value = 69 } #Powhatan
		command = { type = cedeprovince which = USA value = 70 } #Shenandoah
		command = { type = cedeprovince which = USA value = 85 } #Susquehanna
		command = { type = cedeprovince which = USA value = 86 } #Delaware
		command = { type = cedeprovince which = USA value = 87 } #Manhattan
		command = { type = cedeprovince which = USA value = 88 } #Catskill
		command = { type = cedeprovince which = USA value = 89 } #Oswego
		command = { type = cedeprovince which = USA value = 100 } #Adirondak
		command = { type = cedeprovince which = USA value = 101 } #Sebago
		command = { type = cedeprovince which = USA value = 102 } #Connecticut
		command = { type = cedeprovince which = USA value = 103 } #Massachussetts
		command = { type = cedeprovince which = USA value = 104 } #Penobscot
		command = { type = cedeprovince which = USA value = 112 } #Bangor
	}
}
#(1775-1820) American Declaration of Independence
#by Garbon
event = {
	id = 338351
	trigger = {
		flag = [philadelphia]
		exists = USA
		NOT = { flag = [american_independence] }
	}
	random = no
	province = 87
	name = "EVENTNAME338344" #American Declaration of Independence
	desc = "EVENTHIST4982"
	#-#The traitorous rabble, called 'The Continental Congress', has declared that they are no longer subject to our authority. All of the colonies have joined the existing revolt.

	date = { day = 22 month = august year = 1775 }
	offset = 5
	deathdate = { year = 1820 }

	action_a = {
		name = "ACTIONNAME4982A" #Treason!
		command = { type = casusbelli which = USA value = 60 }
		command = { type = war which = USA }
		command = { type = stability value = -2 }
		command = { type = setflag which = [american_independence] }
		command = { type = cedeprovince which = USA value = 54 } #Savannah
		command = { type = cedeprovince which = USA value = 62 } #Carolina
		command = { type = cedeprovince which = USA value = 63 } #Santee
		command = { type = cedeprovince which = USA value = 64 } #Roanoke
		command = { type = cedeprovince which = USA value = 65 } #Catawba
		command = { type = cedeprovince which = USA value = 66 } #Appalache
		command = { type = cedeprovince which = USA value = 68 } #Chesapeake
		command = { type = cedeprovince which = USA value = 69 } #Powhatan
		command = { type = cedeprovince which = USA value = 70 } #Shenandoah
		command = { type = cedeprovince which = USA value = 85 } #Susquehanna
		command = { type = cedeprovince which = USA value = 86 } #Delaware
		command = { type = cedeprovince which = USA value = 87 } #Manhattan
		command = { type = cedeprovince which = USA value = 88 } #Catskill
		command = { type = cedeprovince which = USA value = 89 } #Oswego
		command = { type = cedeprovince which = USA value = 100 } #Adirondak
		command = { type = cedeprovince which = USA value = 101 } #Sebago
		command = { type = cedeprovince which = USA value = 102 } #Connecticut
		command = { type = cedeprovince which = USA value = 103 } #Massachussetts
		command = { type = cedeprovince which = USA value = 104 } #Penobscot
		command = { type = cedeprovince which = USA value = 112 } #Bangor
	}
}
#End of Turmoil in the NA colonies
#-----------------------------------------------------------------------------------------------

#-----------------------------------------------------------------------------------------------
#Quebec Act Sequence

#(1774-1820) Quebec Act - Catholic/CRC
#by Garbon
event = {
	id = 338420
	trigger = {
		NOT = {
			exists = QUE
			continent = america
		}
		OR = {
			religion = catholic
			religion = counterreform
		}
		OR = {
			provincereligion = { province = 110 data = protestant } #Stadacone
			provincereligion = { province = 110 data = reformed } #Stadacone
		}
		OR = { #must own all of one group or a province from each group
			AND = {
				owned = { province = 54 data = -1 } #Savannah
				owned = { province = 62 data = -1 } #Carolina
				owned = { province = 63 data = -1 } #Santee
			}
			AND = {
				owned = { province = 86 data = -1 } #Delaware
				owned = { province = 87 data = -1 } #Manhattan
				owned = { province = 103 data = -1 } #Massachusetts
				owned = { province = 88 data = -1 } #Catskill
				owned = { province = 102 data = -1 } #Connecticut
			}
			AND = {
				owned = { province = 100 data = -1 } #Adirondak
				owned = { province = 101 data = -1 } #Sebago
				owned = { province = 104 data = -1 } #Penobscot
			}
			AND = {
				owned = { province = 64 data = -1 } #Roanoke
				owned = { province = 68 data = -1 } #Chesapeake
				owned = { province = 85 data = -1 } #Susquehanna
			}
			AND = {
				OR = {
					owned = { province = 64 data = -1 } #Roanoke
					owned = { province = 68 data = -1 } #Chesapeake
					owned = { province = 85 data = -1 } #Susquehanna
				}
				OR = {
					owned = { province = 100 data = -1 } #Adirondak
					owned = { province = 101 data = -1 } #Sebago
					owned = { province = 104 data = -1 } #Penobscot
				}
				OR = {
					owned = { province = 86 data = -1 } #Delaware
					owned = { province = 87 data = -1 } #Manhattan
					owned = { province = 103 data = -1 } #Massachusetts
					owned = { province = 88 data = -1 } #Catskill
					owned = { province = 102 data = -1 } #Connecticut
				}
				OR = {
					owned = { province = 54 data = -1 } #Savannah
					owned = { province = 62 data = -1 } #Carolina
					owned = { province = 63 data = -1 } #Santee
				}
			}
		}
	}
	random = no
	province = 110 #Stadacone
	name = "EVENTNAME338420" #Quebec Act
	desc = "EVENTHIST338420"
	#-#In 1774, the Quebec Act was approved which abolished the representative legislative system in the province of Quebec. Additionally it repealed many of the regulations designed to discriminate against members of the reformed faith. Protestants are now allowed membership in the appointed legislative council. Lastly, much of the land west of the colonies south of Quebec was given to the aforementioned province in hopes of providing the Crown with a strategic advantage should those southern colonies wage a war for independence.

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

	action_a = {
		name = "ACTIONNAME338420A" #Issue it!
		command = { type = sleepevent which = 338422 } #MUS: Check to see if Quebec revolts - No USA
		command = { type = sleepevent which = 338424 } #MUS: Check to see if Quebec revolts - USA exists
		command = { type = provincetax which = 106 value = -1 } #Hochelaga
		command = { type = provincetax which = 109 value = -1 } #Shawinigan
		command = { type = provincetax which = 110 value = -1 } #Stadacone
		command = { type = provincetax which = 121 value = -1 } #Saguenay
	}
	action_b = {
		name = "ACTIONNAME338420B" #Our terms are not negotiable
		command = { type = setflag which = [failed_quebec_act] }
		command = { type = province_revoltrisk which = 106 value = 2 } #Hochelaga
		command = { type = province_revoltrisk which = 109 value = 2 } #Shawinigan
		command = { type = province_revoltrisk which = 110 value = 2 } #Stadacone
		command = { type = province_revoltrisk which = 121 value = 2 } #Saguenay
	}
}
#(1774-1820) Quebec Act - Protestant/Reformed
#by Garbon
event = {
	id = 338421
	trigger = {
		NOT = {
			exists = QUE
			continent = america
		}
		OR = {
			religion = protestant
			religion = reformed
		}
		provincereligion = { province = 110 data = catholic } #Stadacone
		OR = { #must own all of one group or a province from each group
			AND = {
				owned = { province = 54 data = -1 } #Savannah
				owned = { province = 62 data = -1 } #Carolina
				owned = { province = 63 data = -1 } #Santee
			}
			AND = {
				owned = { province = 86 data = -1 } #Delaware
				owned = { province = 87 data = -1 } #Manhattan
				owned = { province = 103 data = -1 } #Massachusetts
				owned = { province = 88 data = -1 } #Catskill
				owned = { province = 102 data = -1 } #Connecticut
			}
			AND = {
				owned = { province = 100 data = -1 } #Adirondak
				owned = { province = 101 data = -1 } #Sebago
				owned = { province = 104 data = -1 } #Penobscot
			}
			AND = {
				owned = { province = 64 data = -1 } #Roanoke
				owned = { province = 68 data = -1 } #Chesapeake
				owned = { province = 85 data = -1 } #Susquehanna
			}
			AND = {
				OR = {
					owned = { province = 64 data = -1 } #Roanoke
					owned = { province = 68 data = -1 } #Chesapeake
					owned = { province = 85 data = -1 } #Susquehanna
				}
				OR = {
					owned = { province = 100 data = -1 } #Adirondak
					owned = { province = 101 data = -1 } #Sebago
					owned = { province = 104 data = -1 } #Penobscot
				}
				OR = {
					owned = { province = 86 data = -1 } #Delaware
					owned = { province = 87 data = -1 } #Manhattan
					owned = { province = 103 data = -1 } #Massachusetts
					owned = { province = 88 data = -1 } #Catskill
					owned = { province = 102 data = -1 } #Connecticut
				}
				OR = {
					owned = { province = 54 data = -1 } #Savannah
					owned = { province = 62 data = -1 } #Carolina
					owned = { province = 63 data = -1 } #Santee
				}
			}
		}
	}
	random = no
	province = 110 #Stadacone
	name = "EVENTNAME338420" #Quebec Act
	desc = "EVENTHIST338420"
	#-#In 1774, the Quebec Act was approved which abolished the representative legislative system in the province of Quebec. Additionally it repealed many of the regulations designed to discriminate against members of the reformed faith. Protestants are now allowed membership in the appointed legislative council. Lastly, much of the land west of the colonies south of Quebec was given to the aforementioned province in hopes of providing the Crown with a strategic advantage should those southern colonies wage a war for independence.

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

	action_a = {
		name = "ACTIONNAME338420A" #Issue it!
		command = { type = sleepevent which = 338422 } #MUS: Check to see if Quebec revolts - No USA
		command = { type = sleepevent which = 338424 } #MUS: Check to see if Quebec revolts - USA exists
		command = { type = provincetax which = 106 value = -1 } #Hochelaga
		command = { type = provincetax which = 109 value = -1 } #Shawinigan
		command = { type = provincetax which = 110 value = -1 } #Stadacone
		command = { type = provincetax which = 121 value = -1 } #Saguenay
	}
	action_b = {
		name = "ACTIONNAME338420B" #Our terms are not negotiable
		command = { type = setflag which = [failed_quebec_act] }
		command = { type = province_revoltrisk which = 106 value = 2 } #Hochelaga
		command = { type = province_revoltrisk which = 109 value = 2 } #Shawinigan
		command = { type = province_revoltrisk which = 110 value = 2 } #Stadacone
		command = { type = province_revoltrisk which = 121 value = 2 } #Saguenay
	}
}
#Check to see if Quebec revolts - No USA
event = {
	id = 338422
	trigger = {
		NOT = {
			exists = QUE
			exists = USA
		}
		OR = {
			event = 338420 #ProvinceSpec*110: Quebec Act - Catholic/CRC
			event = 338421 #ProvinceSpec*110: Quebec Act - Protestant/Reformed
		}
	}
	random = no
	country = MUS
	name = "AI_EVENT"
	desc = ""

	date = { day = 1 month = july year = 1776 }
	offset = 200
	deathdate = { year = 1820 }

	action_a = {
		name = "OK"
		#Cascade to next
		command = { type = trigger which = 338423 } #MUS: second revolt check event
		command = { type = sleepevent which = 338424 } #MUS: Check to see if Quebec revolts - USA exists
	}
	action_b = {
		name = "OK"
		command = { }
	}
	action_c = {
		name = "OK"
		command = { }
	}
	action_d = {
		name = "OK"
		command = { }
	}
}
#Check to see if Quebec revolts - No USA
event = {
	id = 338423 #triggered by MUS_338422 A
	random = no
	country = MUS
	name = "AI_EVENT"
	desc = ""

	action_a = {
		name = "OK"
		#Succesful revolt
		command = { type = trigger which = 338425 } #ProvinceSpec*110: The Quebecer Rebellion - No USA
		command = { type = sleepevent which = 338424 } #MUS: Check to see if Quebec revolts - USA exists
	}
	action_b = {
		name = "OK"
		command = { }
	}
	action_c = {
		name = "OK"
		command = { }
	}
	action_d = {
		name = "OK"
		command = { }
	}
}
#Check to see if Quebec revolts - USA exists
event = {
	id = 338424
	trigger = {
		exists = USA
		NOT = { exists = QUE }
		OR = {
			event = 338420 #ProvinceSpec*110: Quebec Act - Catholic/CRC
			event = 338421 #ProvinceSpec*110: Quebec Act - Protestant/Reformed
		}
	}
	random = no
	country = MUS
	name = "AI_EVENT"
	desc = ""

	date = { day = 1 month = july year = 1776 }
	offset = 200
	deathdate = { year = 1820 }

	action_a = {
		name = "OK"
		#Succesful revolt
		command = { type = trigger which = 338426 } #ProvinceSpec*110: The Quebecer Rebellion - USA exists
		command = { type = sleepevent which = 338422 } #MUS: Check to see if Quebec revolts - No USA
	}
	action_b = {
		name = "OK"
		#Succesful revolt
		command = { type = trigger which = 338426 } #ProvinceSpec*110: The Quebecer Rebellion - USA exists
		command = { type = sleepevent which = 338422 } #MUS: Check to see if Quebec revolts - No USA
	}
	action_c = {
		name = "OK"
		command = { }
	}
	action_d = {
		name = "OK"
		command = { }
	}
}
#(1776-1820) The Quebecer Rebellion - no USA
#by Garbon
event = {
	id = 338425 #triggered by MUS_338423 A
	random = no
	province = 110 #Stadacone
	name = "EVENTNAME338425" #The Quebecer Rebellion
	desc = "EVENTHIST338425"
	#-#Infuriated by the lack of compromise on the part of the Crown, the religious dissidents have begun to clamor for their independence.

	action_a = {
		name = "ACTIONNAME338425A" #They raise the banner of revolt
		command = { type = clrflag which = [failed_quebec_act] }
		command = { type = setflag which = [quebec_revolt] }
		command = { type = province_revoltrisk which = 106 value = 25 } #Hochelaga
		command = { type = province_revoltrisk which = 109 value = 25 } #Shawinigan
		command = { type = province_revoltrisk which = 110 value = 25 } #Stadacone
		command = { type = province_revoltrisk which = 121 value = 25 } #Saguenay
		command = { type = revolt which = 106 } #Hochelaga
		command = { type = revolt which = 109 } #Shawinigan
		command = { type = revolt which = 110 } #Stadacone
		command = { type = revolt which = 110 } #Stadacone
		command = { type = revolt which = 121 } #Saguenay
	}
}
#(1776-1820) The Quebecer Rebellion - USA exists
#by Garbon
event = {
	id = 338426 #triggered by MUS_338424 A / MUS_338424 B
	random = no
	province = 110 #Stadacone
	name = "EVENTNAME338425" #The Quebecer Rebellion
	desc = "EVENTHIST338425"
	#-#Infuriated by the lack of compromise on the part of the Crown, the religious dissidents have begun to clamor for their independence.

	action_a = {
		name = "ACTIONNAME338425A" #They raise the banner of revolt
		command = { type = clrflag which = [failed_quebec_act] }
		command = { type = setflag which = [quebec_revolt] }
		command = { type = province_revoltrisk which = 106 value = 25 } #Hochelaga
		command = { type = province_revoltrisk which = 109 value = 25 } #Shawinigan
		command = { type = province_revoltrisk which = 110 value = 25 } #Stadacone
		command = { type = province_revoltrisk which = 121 value = 25 } #Saguenay
		command = { type = revolt which = 106 } #Hochelaga
		command = { type = revolt which = 109 } #Shawinigan
		command = { type = revolt which = 110 } #Stadacone
		command = { type = revolt which = 110 } #Stadacone
		command = { type = revolt which = 121 } #Saguenay
	}
}
#-----------------------------------------------------------------------------------------------
#(1778-1820) All quiet in Hochelaga
event = {
	id = 338427
	trigger = {
		OR = {
			flag = [failed_quebec_act]
			flag = [quebec_revolt]
		}
		OR = {
			NOT = { exists = QUE }
			relation = { country = QUE data = 150 }
		}
	}
	random = no
	province = 106 #Hochelaga
	name = "EVENTNAME338427" #All quiet in Hochelaga
	desc = "EVENTHIST338427"
	#-#The rabble in Quebec have come to accept the reasonable policies of His Majesty's government and no longer threaten to revolt against us.

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

	action_a = {
		name = "ACTIONNAME338427A" #The 'Québécois' are tamed
		command = { type = province_revoltrisk which = 106 value = -30 } #Hochelaga
		command = { type = province_revoltrisk which = 109 value = -30 } #Shawinigan
		command = { type = province_revoltrisk which = 110 value = -30 } #Stadacone
		command = { type = province_revoltrisk which = 121 value = -30 } #Saguenay
		command = { type = clrflag which = [quebec_revolt] }
		command = { type = clrflag which = [failed_quebec_act] }
	}
}
#(1778-1820) All quiet in Shawinigan
event = {
	id = 338428
	trigger = {
		OR = {
			flag = [failed_quebec_act]
			flag = [quebec_revolt]
		}
		OR = {
			NOT = { exists = QUE }
			relation = { country = QUE data = 150 }
		}
	}
	random = no
	province = 109 #Shawinigan
	name = "EVENTNAME338428" #All quiet in Shawinigan
	desc = "EVENTHIST338427"
	#-#The rabble in Quebec have come to accept the reasonable policies of His Majesty's government and no longer threaten to revolt against us.

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

	action_a = {
		name = "ACTIONNAME338427A" #The 'Québécois' are tamed
		command = { type = province_revoltrisk which = 106 value = -30 } #Hochelaga
		command = { type = province_revoltrisk which = 109 value = -30 } #Shawinigan
		command = { type = province_revoltrisk which = 110 value = -30 } #Stadacone
		command = { type = province_revoltrisk which = 121 value = -30 } #Saguenay
		command = { type = clrflag which = [quebec_revolt] }
		command = { type = clrflag which = [failed_quebec_act] }
	}
}
#(1778-1820) All quiet in Stadacone
event = {
	id = 338429
	trigger = {
		OR = {
			flag = [failed_quebec_act]
			flag = [quebec_revolt]
		}
		OR = {
			NOT = { exists = QUE }
			relation = { country = QUE data = 150 }
		}
	}
	random = no
	province = 110 #Stadacone
	name = "EVENTNAME338429" #All quiet in Stadacone
	desc = "EVENTHIST338427"
	#-#The rabble in Quebec have come to accept the reasonable policies of His Majesty's government and no longer threaten to revolt against us.

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

	action_a = {
		name = "ACTIONNAME338427A" #The 'Québécois' are tamed
		command = { type = province_revoltrisk which = 106 value = -30 } #Hochelaga
		command = { type = province_revoltrisk which = 109 value = -30 } #Shawinigan
		command = { type = province_revoltrisk which = 110 value = -30 } #Stadacone
		command = { type = province_revoltrisk which = 121 value = -30 } #Saguenay
		command = { type = clrflag which = [quebec_revolt] }
		command = { type = clrflag which = [failed_quebec_act] }
	}
}
#(1778-1820) All quiet in Saguenay
event = {
	id = 338430
	trigger = {
		OR = {
			flag = [failed_quebec_act]
			flag = [quebec_revolt]
		}
		OR = {
			NOT = { exists = QUE }
			relation = { country = QUE data = 150 }
		}
	}
	random = no
	province = 121 #Saguenay
	name = "EVENTNAME338430" #All quiet in Saguenay
	desc = "EVENTHIST338427"
	#-#The rabble in Quebec have come to accept the reasonable policies of His Majesty's government and no longer threaten to revolt against us.

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

	action_a = {
		name = "ACTIONNAME338427A" #The 'Québécois' are tamed
		command = { type = province_revoltrisk which = 106 value = -30 } #Hochelaga
		command = { type = province_revoltrisk which = 109 value = -30 } #Shawinigan
		command = { type = province_revoltrisk which = 110 value = -30 } #Stadacone
		command = { type = province_revoltrisk which = 121 value = -30 } #Saguenay
		command = { type = clrflag which = [quebec_revolt] }
		command = { type = clrflag which = [failed_quebec_act] }
	}
}
#End of Quebec Act Sequence
#-----------------------------------------------------------------------------------------------

#(1775-1818) Benares and the Nawab of Oudh
event = {
	id = 338410
	trigger = {
		continent = asia
		OR = {
			owned = { province = 557 data = ENG } #Ganges
			owned = { province = 556 data = ENG } #Santal
			owned = { province = 571 data = ENG } #Madras
			owned = { province = 548 data = ENG } #Bombay
		}
		OR = {
			vassal = { country = ENG country = BGL }
			owned = { province = 558 data = ENG } #Howrah
		}
	}
	random = no
	province = 553 #Raipur
	name = "EVENTNAME338410" #Benares and the Nawab of Oudh
	desc = "EVENTHIST338410"
	#-#On May 21st of 1775, Warren Hastings, governor of Bengal, concluded a treaty with Asaf-ud-daula, Nawab of Oudh, to acquire Benares for the East India Company. In doing so, the Nawab hoped to remain on good terms with British Bengal.

	date = { day = 15 month = may year = 1775 }
	offset = 5
	deathdate = { day = 20 month = august year = 1818 }

	action_a = {
		name = "ACTIONNAME338410A" #Hopefully this will appease them
		command = { type = trigger which = 164105 } #ENG: Benares and the Nawab of Oudh
		command = { type = relation which = ENG value = 25 }
		command = { type = treasury value = 25 }
		command = { type = cedeprovince which = ENG value = 553 } #Raipur
	}
	action_b = {
		name = "ACTIONNAME338410B" #We do not want them as neighbors!
		command = { type = relation which = ENG value = -25 }
	}
}

#(1776-1820) Hessians return to Europe
event = {
	id = 338491
	trigger = {
		event = 164241 #ENG: Hessians return to Europe
		control = { province = 333 data = -1 } #Hessen
	}
	random = no
	province = 333 #Hessen
	name = "EVENTNAME338491" #Hessians back home
	desc = "EVENTNAME164241"
	#-#17,313 Hessians returned to their homelands after the war ended in 1783. Of the 12,526 who did not return, about 7,700 had died: some 1,200 were killed in action and 6,354 died from illness or accidents. Approximately 5,000 Hessians settled in North America, both in the United States and Canada, some because their commanders refused to take them back to Germany because they were criminals or physically unfit. Most of them married and settled amongst the population of the newly-formed United States. Many of them became farmers or craftsmen. The number of their direct descendants living in the U.S. and Canada today is still debated.

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

	action_a = {
		name = "GREAT"
		command = { type = INF which = 333 value = 10000 } #estimated number of survivors from Hesse-Kassel only
		#command = { type = domestic which = QUALITY value = 2 } #those soldiers are now veterans
		command = { type = provincetax which = 333 value = 1 } #they are back after years of being paid double wages
	}
}

#(1776) The 1776 Acapulco Earthquake
event = {
	id = 338224
	random = no
	province = 30 #Atlixco
	name = "EVENTNAME338224" #The 1776 Acapulco Earthquake
	desc = "EVENTHIST338224"
	#-#On 21 April 1776 Acapulco was hit by an earthquake that virtually levelled the city, including El Fuerte de San Diego that defended the city against pirates.

	date = { day = 22 month = april year = 1776 }

	action_a = {
		name = "ACTIONNAME338070A" #Earthquake
		command = { type = population which = 30 value = -2000 } #Atlixco
		command = { type = fortress which = 30 value = -1 } #Atlixco
	}
}

#(1778) Mount Api on Banda erupts
event = {
	id = 338048
	random = no
	province = 715 #Ceram
	name = "EVENTNAME338048" #Mount Api on Banda erupts
	desc = "EVENTHIST338048"
	#-#Mount Api on Banda erupted.

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

	action_a = {
		name = "DARN"
		command = { type = population which = 715 value = -500 } #Ceram
		command = { type = desertion which = 715 value = 500 } #Ceram
		command = { type = provincetax which = 715 value = -1 } #Ceram
		command = { type = provincemanpower which = 715 value = -1 } #Ceram
	}
}

#(1780) Plague in Batavia
event = {
	id = 338049
	random = no
	province = 702 #Jakarta
	name = "EVENTNAME338049" #Plague in Batavia
	desc = "EVENTHIST338049"
	#-#Plague in Batavia.

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

	action_a = {
		name = "DARN"
		command = { type = population which = 702 value = -500 } #Jakarta
		command = { type = desertion which = 702 value = 500 } #Jakarta
		command = { type = provincetax which = 702 value = -1 } #Jakarta
		command = { type = provincemanpower which = 702 value = -1 } #Jakarta
	}
}

#(1780) Smallpox epidemic on Sumatra
event = {
	id = 338050
	random = no
	province = 679 #Ajeh
	name = "EVENTNAME338050" #Smallpox epidemic on Sumatra
	desc = "EVENTHIST338050"
	#-#Smallpox epidemic on Sumatra.

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

	action_a = {
		name = "DARN"
		command = { type = population which = 679 value = -500 } #Ajeh
		command = { type = desertion which = 679 value = 500 } #Ajeh
		command = { type = provincetax which = 679 value = -1 } #Ajeh
		command = { type = provincemanpower which = 679 value = -1 } #Ajeh
	}
}

#(1780) Smallpox epidemic on Sumatra
event = {
	id = 338051
	random = no
	province = 680 #Riau
	name = "EVENTNAME338050" #Smallpox epidemic on Sumatra
	desc = "EVENTHIST338050"
	#-#Smallpox epidemic on Sumatra.

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

	action_a = {
		name = "DARN"
		command = { type = population which = 680 value = -500 } #Riau
		command = { type = desertion which = 680 value = 500 } #Riau
		command = { type = provincetax which = 680 value = -1 } #Riau
		command = { type = provincemanpower which = 680 value = -1 } #Riau
	}
}

#(1780) Smallpox epidemic on Sumatra
event = {
	id = 338052
	random = no
	province = 681 #Jambi
	name = "EVENTNAME338050" #Smallpox epidemic on Sumatra
	desc = "EVENTHIST338050"
	#-#Smallpox epidemic on Sumatra.

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

	action_a = {
		name = "DARN"
		command = { type = population which = 681 value = -500 } #Jambi
		command = { type = desertion which = 681 value = 500 } #Jambi
		command = { type = provincetax which = 681 value = -1 } #Jambi
		command = { type = provincemanpower which = 681 value = -1 } #Jambi
	}
}

#(1780) Smallpox epidemic on Sumatra
event = {
	id = 338053
	random = no
	province = 682 #Palembang
	name = "EVENTNAME338050" #Smallpox epidemic on Sumatra
	desc = "EVENTHIST338050"
	#-#Smallpox epidemic on Sumatra.

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

	action_a = {
		name = "DARN"
		command = { type = population which = 682 value = -500 } #Palembang
		command = { type = desertion which = 682 value = 500 } #Palembang
		command = { type = provincetax which = 682 value = -1 } #Palembang
		command = { type = provincemanpower which = 682 value = -1 } #Palembang
	}
}

#(1783) The Mist Hardships
#by Pietercornelis
event = {
	id = 338412
	random = no
	province = 1466 #Iceland
	name = "EVENTNAME338412" #The Mist Hardships
	desc = "EVENTHIST338412"
	#-#Móðuharðindin (literally, The Mist Hardships) was a natural disaster in Iceland in the years 1783-1785 following the volcanic eruption of Laki volcano. \n \nThe hardship began with the eruption of the volcano in Lakagígar on June 8, 1783, which was one of the greatest volcanic eruptions in historical times. The eruption devastated Iceland and the environmental effects could be felt in many places of the world due to the severe global meteorological effects of the rising sulphuric fumes. A contemporary account of the eruption can be found in the Eldrit of pastor Jón Steingrímsson, which was printed in 1788. \n \nAfter the volcano erupted, a poisonous mist settled over the entire country, burning up grazing lands and killing cattle. It is believed that 75 percent of all cattle died, and that one out of five Icelanders (approximately 10,000) perished.

	date = { day = 7 month = june year = 1783 }

	action_a = {
		name = "ACTIONNAME338412A" #Oh, the humanity!
		command = { type = population which = 1466 value = -2000 } #Iceland
		command = { type = provincetax which = 1466 value = -2 } #Iceland
	}
}

#(1795) James Hutton - Flavor
#by mfigueras - modified by YodaMaster
#should only happen to Scotland or England
event = {
	id = 338113
	trigger = {
		countrysize = 3
		owned = { province = 238 data = -1 }
		OR = {
			owned = { province = 238 data = SCO }
			owned = { province = 238 data = ENG }
		}
	}
	random = no
	province = 238 #Lothian
	name = "EVENTNAME338113" #James Hutton
	desc = "EVENTHIST338113"
	#-#The scot James Hutton is considered the father of geology. In 'Theory of the Earth with Proofs and Illustrations' (1795), Hutton became the first to show that, in general, the Earth changes slowly and uniformly by the same processes which are occurring today. Hutton did not have as much impact as he might have had, as a result of his cumbersome and difficult literary style. Hutton's idea became known as the Uniformitarian Principle, and served as an alternative to Catastrophism. Hutton believed that volcanic processes were the chief agent in rock formation, thus representing the Vulcanist (or Plutonist) view, in contrast to men such as Werner who supported the Neptunist view.

	date = { day = 1 month = march year = 1795 }
	offset = 90
	deathdate = { day = 29 month = december year = 1795 }

	action_a = {
		name = "ACTIONNAME338113A" #An interesting but polemic theory!
		command = { type = infra value = 50 }
	}
}

#(1800-1801) Alessandro Volta - Flavor
#text from Weisstein's World of Scientific Biography
#http://scienceworld.wolfram.com/biography/
#by mfigueras - modified by YodaMaster
#should only happen to Milan, Austria or KoI
event = {
	id = 338111
	trigger = {
		domestic = { type = innovative value = 3 }
		stability = 0
		owned = { province = 389 data = -1 }
		OR = {
			owned = { province = 389 data = MLO }
			owned = { province = 389 data = HAB }
			owned = { province = 389 data = ITA }
		}
	}
	random = no
	province = 389 #Lombardia
	name = "EVENTNAME338111" #Volta and the first battery
	desc = "EVENTHIST338111"
	#-#Volta was an italian physicist who constructed a device for accumulating a large charge by a series of inductions and groundings. He investigated the 'animal electricity' of Galvani and found that the current was generated from the contact of dissimilar metals, and that the frog leg was only acting as a detector. Using this principle, in 1800 he constructed the first battery to produce electricity. Volta's method of stacking round plates of copper and zinc separated by disks of cardboard moistened with salt solution was termed a Voltaic pile. By touching the copper and zinc disks together, Volta showed them to be oppositely charged.

	date = { day = 1 month = march year = 1800 }
	offset = 360
	deathdate = { day = 29 month = december year = 1801 }

	action_a = {
		name = "ACTIONNAME338111A" #Interesting! Any practical applications?
		command = { type = infra value = 50 }
	}
}

#(1800-1801) Giuseppe Piazzi and the discovery of Ceres - Flavor
#by mfigueras - modified by YodaMaster
#should only happen to Spain, Austria, Naples, Sicily or France
event = {
	id = 338114
	trigger = {
		stability = -1
		owned = { province = 396 data = -1 }
		OR = {
			owned = { province = 396 data = SPA }
			owned = { province = 396 data = HAB }
			owned = { province = 396 data = NAP }
			owned = { province = 396 data = SIC }
			owned = { province = 396 data = FRA }
		}
	}
	random = no
	province = 396 #Sicily
	name = "EVENTNAME338114" #Piazzi and the discovery of Ceres
	desc = "EVENTHIST338114"
	#-#On the first day of January 1801, the Italian astronomer Giuseppe Piazzi, who had established an observatory at Palermo, discovered an object which he first thought was a new comet. But after its orbit was determined it was clear that it was like a small planet. Piazzi named it Ceres, after the Sicilian goddess of grain. Three other small bodies were discovered in the next few years: Pallas, Vesta and Juno (now we know hundreds of thousands). Ceres was the first discovered object of the asteroid belt. Piazzi was able to make only three observations, but fortuitously, Gauss had recently developed mathematical techniques that allowed the orbit to be calculated with only three observed positions of the body. When the orbit was calculated by Gauss, it showed that Ceres was not a comet, but a new little planet.

	date = { day = 25 month = december year = 1800 }
	offset = 10
	deathdate = { day = 10 month = january year = 1801 }

	action_a = {
		name = "ACTIONNAME338114A" #Interesting!
		command = { type = infra value = 50 }
	}
}

#(1804-1809) Refugees from Haiti
event = {
	id = 338494
	trigger = {
		NOT = { provincereligion = { province = 45 data = pagan } } #not a TP
		event = 12130 #FRA: Francois Dominique Toussaint Louverture
		OR = {
			owned = { province = 141 data = FRA } #Les Cayes
			exists = HAI
		}
	}
	random = no
	province = 45 #Bayou
	name = "EVENTNAME338494" #Refugees from Haiti
	desc = "EVENTHIST338494"
	#-#The Haitian Revolution of 1804 established the second republic in the Western Hemisphere and the first led by blacks. Haitian refugees both white and free people of color (affranchis) arrived in New Orleans, often bringing slaves with them. While the American Governor Claiborne and other officials wanted to keep out more free black men, French Creoles wanted to increase the French-speaking population. As more refugees were allowed in Louisiana, Haitian émigrés who had gone to Cuba also arrived. Nearly 90 percent of the new immigrants settled in New Orleans. The 1809 migration brought 2,731 whites, 3,102 free persons of African descent, and 3,226 enslaved refugees to the city, doubling its French-speaking population.

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

	action_a = {
		name = "GREAT"
		command = { type = population which = 45 value = 2000 } #Bayou
		command = { type = provincetax which = 45 value = 1 } #Bayou
		command = { type = provincemanpower which = 45 value = 1 } #Bayou
	}
}

#(1807-1810) Gauss - Flavor
#text from Weisstein's World of Scientific Biography
#http://scienceworld.wolfram.com/biography/
#by mfigueras - modified by YodaMaster
#should only happen to Hanover, Austria, Prussia or Brandenburg
event = {
	id = 338115
	trigger = {
		stability = 0
		domestic = { type = innovative value = 3 }
		owned = { province = 310 data = -1 }
		OR = {
			owned = { province = 310 data = HAN }
			owned = { province = 310 data = HAB }
			owned = { province = 310 data = PRU }
			owned = { province = 310 data = BRA }
		}
	}
	random = no
	province = 310 #Hannover
	name = "EVENTNAME338115" #Gauss, the prince of mathematics
	desc = "EVENTHIST338115"
	#-#The German Karl Friedrich Gauss was one of the greatest mathematicians of all times. He proved the fundamental theorem of algebra and the fundamental theorem of arithmetics. At age 24, Gauss published one of the most brilliant achievements in mathematics, 'Disquisitiones Arithmeticae', where he systematized the study of number theory. In 1801, Gauss developed the method of least squares fitting, the method enabled him to calculate the orbit of the asteroid Ceres, which had been discovered by Piazzi, from only three observations. Gauss published his monumental treatise on celestial mechanics 'Theoria Motus' in 1806. He worked for the Duke of Brunswick, but when he was killed fighting for the Prussian army, Gauss left Brunswick. In 1807 he took up the position of director of the Göttingen observatory.

	date = { day = 1 month = march year = 1807 }
	offset = 720
	deathdate = { day = 29 month = december year = 1810 }

	action_a = {
		name = "ACTIONNAME338115A" #A truly impressive work
		command = { type = infra value = 100 }
	}
}

#(1815) Volcano destroy Sumbawa
event = {
	id = 338055
	random = no
	province = 710
	name = "EVENTNAME338055" #Volcano erupts in Sumbawa
	desc = "EVENTHIST338055"
	#-#The catastrophic Sumbawa eruption and earthquakes.

	date = { day = 18 month = january year = 1815 }
	offset = 20
	deathdate = { day = 29 month = december year = 1815 }

	action_a = {
		name = "ACTIONNAME338055A" #Oh, the humanity!
		command = { type = population which = 710 value = -15000 } #Sumbawa
		command = { type = provincetax which = 710 value = -2 } #Sumbawa
	}
}

#-----------------------------------------------------------------------------------------------
#(1550-1820) Vietnamese settlers
#by mandead
#should only happen to Annam or Dai Viet

#Da Nang
event = {
	id = 338501
	trigger = {
		OR = {
			AND = {
				core = { province = 664 data = ANN }
				owned = { province = 664 data = ANN }
				control = { province = 664 data = ANN }
			}
			AND = {
				core = { province = 664 data = DAI }
				owned = { province = 664 data = DAI }
				control = { province = 664 data = DAI }
			}
		}
		atwar = no
		NOT = { exists = CHA }
	}
	random = no
	province = 664 #Da Nang
	name = "EVENTNAME338501" #Vietnamese settlers in Da Nang
	desc = "EVENTHIST338501"
	#-#The destruction of the ancient Champa kingdom in 1471 led to settlers from Annam and Dai Viet migrating south in order to colonize the fertile valleys, eventually moving as far as the Mekong Delta. By the 19th century, the Cham people had been scattered to the periphery of their former lands, being almost entirely displaced by the Vietnamese.

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

	action_a = {
		name = "ACTIONNAME338501A" #Our culture spreads!
		command = { type = cityname which = 664 value = "Hue" }
		command = { type = provinceculture which = 664 value = vietnamese }
		command = { type = infra value = 50 }
		command = { type = vp value = 5 }
	}
}

#Da Lat
event = {
	id = 338502
	trigger = {
		OR = {
			AND = {
				core = { province = 665 data = ANN }
				owned = { province = 665 data = ANN }
				control = { province = 665 data = ANN }
			}
			AND = {
				core = { province = 665 data = DAI }
				owned = { province = 665 data = DAI }
				control = { province = 665 data = DAI }
			}
		}
		atwar = no
		NOT = { exists = CHA }
	}
	random = no
	province = 665 #Da Lat
	name = "EVENTNAME338502" #Vietnamese settlers in Da Lat
	desc = "EVENTHIST338501"
	#-#The destruction of the ancient Champa kingdom in 1471 led to settlers from Annam and Dai Viet migrating south in order to colonize the fertile valleys, eventually moving as far as the Mekong Delta. By the 19th century, the Cham people had been scattered to the periphery of their former lands, being almost entirely displaced by the Vietnamese.

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

	action_a = {
		name = "ACTIONNAME338501A" #Our culture spreads!
		command = { type = cityname which = 665 value = "Da Lat" }
		command = { type = provinceculture which = 665 value = vietnamese }
		command = { type = infra value = 50 }
		command = { type = vp value = 5 }
	}
}

#-----------------------------------------------------------------------------------------------
#Random events
#-----------------------------------------------------------------------------------------------

#Great Hajj
#by Pietercornelis, Garbon and YodaMaster
event = {
	id = 338411
	trigger = {
		OR = {
			AND = {
				OR = {
					religion = sunni
					religion = eastern_sunni
					religion = shia
					religion = eastern_shia
				}
				OR = {
					continent = asia
					continent = africa
					domestic = { type = centralization value = 7 }
					owned = { province = 498 data = TUR } #Mekkah
				}
			}
			AND = {
				NOT = {
					religion = sunni
					religion = eastern_sunni
					religion = shia
					religion = eastern_shia
				}
				domestic = { type = innovative value = 7 }
				domestic = { type = centralization value = 7 }
			}
		}
	}
	random = yes
	province = 498 #Mekkah
	name = "EVENTNAME338411" #Great Hajj
	desc = "EVENTHIST338411"
	#-#After the rise of the Islamic empire, Mecca attracted pilgrims from all over the extensive empire, as well as a year-round population of scholars, pious Muslims who wished to live close to the Kaaba, and local inhabitants who served the pilgrims. Due to the difficulty and expense of the Hajj, the annual pilgrimage was small compared to the millions that swell Mecca today. Pilgrims arrived by boat, at Jeddah, and came overland, or joined the annual caravans from Syria or Iraq. The city was small. 18th and 19th century maps and pictures show a small walled city of mud-brick houses crowded around the mosque. \nHowever, once in a while a larger group of pilgrims of a pilgrim of great reputation would make a Hajj, and stimulate the local economy. The most famous of those is probably Mansa Musa, ruler of Mali, in 1324. He was reportedly accompanied by a caravan that included thousands of people and nearly a hundred camels, giving away so much gold that it took over a decade for the economy across North Africa to recover, due to the rapid inflation that it initiated.

	action_a = {
		name = "ACTIONNAME338411A" #Praise be Allah!
		command = { type = infra value = 50 }
		command = { type = treasury value = 25 }
	}
}

#Pirates sack our capital!
#by MichaelM
event = {
	id = 338503
	trigger = {
		NOT = { countrysize = 3 }
	}
	random = no
	persistent = yes

	name = "EVENTNAME338503" #Pirates sack our capital!
	desc = "EVENTHIST338503"
	#-#Sire, pirate raiders have taken our capital and demand an outrageous ransom in exchange for their withdrawal. Shall we pay or not?

	action_a = {
		name = "ACTIONNAME338503A" #Pay them off
		command = { type = treasury value = -100 }
		command = { type = disbandrebels which = -2 }
		command = { type = control which = -2 value = -1 }
		command = { type = infantry which = -2 value = 5000 }
	}
	action_b = {
		name = "ACTIONNAME338503B" #We can handle this
		command = { type = vp value = 10 }
	}
}

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

#Reserved: 338352-338399

#First free id: 338504
