#####Ottoman Major Events#####
#			By      		 #
# Joakim 'Greven' Bergqwist  #
#				     		 #
# 			and	       		 #
#				     		 #
# Henrik 'Doomdark' Fhraeus #
##############################

event = {
	id = 643282
	trigger = {
	OR = {
		control = { province = 357 data = TUR }
		control = { province = 358 data = TUR }
		control = { province = 1369 data = TUR }
		control = { province = 1953 data = TUR }
		control = { province = 1956 data = TUR }
		}
                                        }
	random = no
	country = TUR
	name = "The vassalization of Byzantium"
	desc = "In 1373 Murad I, Sultan of the Ottoman Empire, force vassalized Byzantium."
	style = 2

	date = { day = 1 month = january year = 1373 }
	offset = 7
        deathdate = { day = 1 month = january year = 1374 }

	action_a ={
		name = "Force vassalize them"
                command = { type = vassal which = BYZ }
		command = { type = stability value = 1 }
	}
}

event = {
	id = 643288
	trigger = {
		control = { province = 1954 data = REB }
                                        }
	random = no
	country = TUR
	name = "The vassalization of Epirus"
	desc = "In 1430 Murad II, Sultan of the Ottoman Empire, force vassalized Epirus."
	style = 2

	date = { day = 1 month = january year = 1430 }
	offset = 7
        deathdate = { day = 1 month = january year = 1431 }

	action_a ={
		name = "Force vassalize them"
                command = { type = vassal which = TOX }
		command = { type = stability value = 1 }
	}
}

event = {
	id = 1234900
	random = no
	country = TUR
	name = "Achaea is offered"
	desc = "We are offered the princepality of Achaea."
	style = 1


	action_a = {
		name = "How nice of him"
		command = { type = inherit which = ALE }

	}
}



#Military Reforms#
event = {
	id = 3354
	random = no
	country = TUR
	name = "EVENTNAME3354"
	desc = "EVENTHIST3354"
	style = 1
	date = { day = 1 month = january year = 1419 }
	offset = 10950

	action_a ={ # Great Army Reform
		name = "ACTIONNAME3354A"
		command = { type = land value = 1000 }
		command = { type = naval value = 500 }
		command = { type = domestic which = LAND value = 1 }
		command = { type = domestic which = OFFENSIVE value = 1 }
	}
	action_b ={ # Reform Army and Navy
		name = "ACTIONNAME3354B"
		command = { type = land value = 750 }
		command = { type = naval value = 750 }
	}
	action_c ={ # Great Navy Reform 
		name = "ACTIONNAME3354C"
		command = { type = land value = 500 }
		command = { type = naval value = 1000 }
		command = { type = domestic which = LAND value = -1 }
		command = { type = domestic which = OFFENSIVE value = -1 }
	}
}

#Military Reforms#
event = {
	id = 3355
	random = no
	country = TUR
	name = "EVENTNAME3355"
	desc = "EVENTHIST3355"
	style = 1

	date = { day = 1 month = january year = 1450 }
	offset = 7300

	action_a ={ # Great Navy Reform
		name = "ACTIONNAME3355A"
		command = { type = land value = 500 }
		command = { type = naval value = 1000 }
		command = { type = domestic which = LAND value = -1 }
		command = { type = domestic which = OFFENSIVE value = -1 }
	}
	action_b ={ # Reform Army and Navy
		name = "ACTIONNAME3355B"
		command = { type = land value = 750 }
		command = { type = naval value = 750 }
	}
	action_c ={ # Great Army Reform
		name = "ACTIONNAME3355C"
		command = { type = land value = 1000 }
		command = { type = naval value = 500 }
		command = { type = domestic which = LAND value = 1 }
		command = { type = domestic which = OFFENSIVE value = 1 }
	}
}

#Sheikh-ul-Islam Office instituted#
event = {
	id = 3356
	random = no
	country = TUR
	name = "EVENTNAME3356"
	desc = "EVENTHIST3356"
	style = 1
	date = { day = 1 month = january year = 1425 }
	offset = 364

	action_a ={ # Institute the Office
		name = "ACTIONNAME3356A"
		command = { type = domestic which = CENTRALIZATION value = -1 }
		command = { type = domestic which = INNOVATIVE value = -1 }
		command = { type = stability value = 3 }
	}
	action_b ={ # Decline
		name = "ACTIONNAME3356B"
		command = { type = stability value = -2 }
		command = { type = domestic which = INNOVATIVE value = 1 }
	}
}

#Imperial College instituted#
event = {
	id = 3357
	trigger = {
		owned = {
			province = 1953
			data = -1
		}
	}
	random = no
	country = TUR
	name = "EVENTNAME3357"
	desc = "EVENTHIST3357"
	style = 1
	date = { day = 1 month = january year = 1454 }
	offset = 150
	deathdate = { day = 1 month = january year = 1620 }
	
	action_a ={ # Found the 'Enderun'.
		name = "ACTIONNAME3357A"
		command = { type = treasury value = -400 }
		command = { type = domestic which = CENTRALIZATION value = 1 }
		command = { type = domestic which = ARISTOCRACY value = -1 }
		command = { type = domestic which = QUALITY value = 2 }
		command = { type = stability value = -1 }
		command = { type = infra value = 250 }
		command = { type = gainbuilding which = -2 value = barrack }
	}
	action_b ={ # Expand the Timariot System instead
		name = "ACTIONNAME3357B"
		command = { type = domestic which = ARISTOCRACY value = 3 }
		command = { type = domestic which = OFFENSIVE value = 2 }
		command = { type = domestic which = QUALITY value = -2 }
		command = { type = stability value = 2 }
		# Possibly gain barracks elsewhere. Syria?
	}
}

#Atam-Dedem Kanunu Codified#
event = {
	id = 3358
	random = no
	country = TUR
	name = "EVENTNAME3358"
	desc = "EVENTHIST3358"
	style = 1

	date = { day = 1 month = january year = 1460 }
	offset = 3650
	
	action_a ={ # Codify the 'Laws of the Forefathers'
		name = "ACTIONNAME3358A"
		command = { type = domestic which = CENTRALIZATION value = 1 }
		command = { type = stability value = 1 }
	}
}

#The Veneto-Turkish Conflict#
event = {
	id = 3359
	trigger = {
		exists = VEN
		owned = {
			province = 744
			data = -1
		}
		NOT = {
			exists = BYZ
		}
	}
	random = no
	country = TUR
	name = "EVENTNAME3359"
	desc = "EVENTHIST3359"
	style = 2

	date = { day = 1 month = june year = 1492 }
	offset = 364
	deathdate = { day = 1 month = january year = 1559 }

	action_a ={				#Refuse even to discuss compensation#
		name = "ACTIONNAME3359A"
		command = { type = stability value = 1 }
		command = { type = trigger which = 3637 }
		command = { type = relation which = KNI value = -100 }
		command = { type = relation which = GEN value = -100 }
		command = { type = relation which = PAP value = -100 }
		command = { type = relation which = VEN value = -100 }
	}

	action_b ={				#Give Alexandria with CoT as compensation#
		name = "ACTIONNAME3359B"
		command = { type = stability value = 1 }
		command = { type = trigger which = 3715 }
		command = { type = secedeprovince which = VEN value = 744 }
		command = { type = relation which = VEN value = 100 }
	}
}

#The Turko-Persian Conflicts: Shiite rebels.#
event = {
	id = 3360
	random = no
	country = TUR
	name = "EVENTNAME3360"
	desc = "EVENTHIST3360"
	style = 2

# Triggered by Persian event 3560

	action_a ={ # Crush the Shiite rebellion under Ahmed.
		name = "ACTIONNAME3360A"
		command = { type = relation which = PER value = -100 }
		command = { type = stability value = 1 }
		command = { type = land value = 200 }
		command = { type = casusbelli which = PER value = 120 }
	}
	action_b ={ # Reconcile with Ahmed.
		name = "ACTIONNAME3360B"
		command = { type = stability value = 1 }
		command = { type = treasury value = -100 }
		command = { type = relation which = PER value = 40 }
	}
	action_c ={ # Support the Shiites.
		name = "ACTIONNAME3360C"
		command = { type = stability value = -6 }
		command = { type = relation which = PER value = 200 }
		command = { type = religion which = shiite }
		command = { type = provincereligion which = -1 value = shiite }
		command = { type = provincereligion which = -1 value = shiite }
		command = { type = provincereligion which = -1 value = shiite }
		command = { type = provincereligion which = -1 value = shiite }
	}
}

#The Turko-Persian Conflicts: Prince Beyazid flees to Persia.#
event = {
	id = 3361
	trigger = {
		exists = PER
	}
	random = no
	country = TUR
	name = "EVENTNAME3361"
	desc = "EVENTHIST3361"
	style = 2
	
	date = { day = 1 month = june year = 1553 }
	offset = 700

	action_a ={ # Pay the Shah for his extradition and then execute him.
		name = "ACTIONNAME3361A"
		command = { type = treasury value = -200 }
		command = { type = relation which = PER value = -50 }
		command = { type = stability value = 1 }
		command = { type = trigger which = 3561 }
		command = { type = DIP which = 3 value = 24 }
	}
	action_b ={ # Ignore him.
		name = "ACTIONNAME3361B"
		command = { type = relation which = PER value = -100 }
		command = { type = DIP which = -2 value = 24 }
		command = { type = ADM which = -2 value = 24 }
	}
	action_c ={ # Arrange to have Beyazid murdered.
		name = "ACTIONNAME3361C"
		command = { type = stability value = -1 }
		command = { type = relation which = PER value = -200 }
		command = { type = casusbelli which = PER value = 36 }
	}
}

#The Turko-Persian Conflicts: Murad III's campaigns against Persia.#
event = {
	id = 3362
	trigger = {
		exists = PER
	}
	random = no
	country = TUR
	name = "EVENTNAME3362"
	desc = "EVENTHIST3362"
	style = 2
	
	date = { day = 1 month = june year = 1578 }
	offset = 365

	action_a ={ # Fan the flames.
		name = "ACTIONNAME3362A"
		command = { type = casusbelli which = PER value = 120 }
		command = { type = relation which = PER value = -200 }
		command = { type = land value = 200 }
		command = { type = trigger which = 3562 }
	}
	action_b ={ # Maintain status quo.
		name = "ACTIONNAME3362B"
		command = { type = stability value = 1 }
	}
	action_c ={ # Seek reconciliation.
		name = "ACTIONNAME3362C"
		command = { type = DIP which = 3 value = 24 }
		command = { type = relation which = PER value = 50 }
	}
}

#The Turko-Persian Conflicts: Persians take advantage of Ottoman instability.#
event = {

	id = 3363
	random = no
	country = TUR
	name = "EVENTNAME3363"
	desc = "EVENTHIST3363"
	style = 3

# Triggered by Persian event 3563

	action_a ={ # This means war.
		name = "ACTIONNAME3363A"
		command = { type = war which = PER }
		command = { type = MIL which = 4 value = 24 }
		command = { type = land value = 200 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = stability value = -1 }
	}
	action_b ={ # Concentrate on suppressing the rebels.
		name = "ACTIONNAME3363B"
		command = { type = ADM which = 4 value = 24 }
		command = { type = infra value = 200 }
		command = { type = revolt which = -1}
		command = { type = revolt which = -1}
		command = { type = stability value = -1 }
	}
}

#The Great Carrack of Alexandria#
event = {
	id = 3364
	random = no
	country = TUR
	name = "EVENTNAME3364"
	desc = "EVENTHIST3364"
	style = 1
	
#	Triggered by a KNI event. Carrack plundered.

	action_a ={ # Ok
		name = "ACTIONNAME3364A"
		command = { type = relation which = KNI value = -200 }
		command = { type = treasury value = -400 }
	}
}

#The Great Carrack of Alexandria#
event = {
	id = 3365
	random = no
	country = TUR
	name = "EVENTNAME3365"
	desc = "EVENTHIST3365"
	style = 1

#	Triggered by a KNI event. Carrack not plundered.

	action_a ={
		name = "ACTIONNAME3365A"
		command = { type = relation which = KNI value = 50 }
		command = { type = treasury value = 400 }
	}
}

#The Expansion of the Royal Bureaucracy (Suleyman the Great)#
event = {
	id = 3366
	random = no
	country = TUR
	name = "EVENTNAME3366"
	desc = "EVENTHIST3366"
	style = 2
	
	date = { day = 1 month = june year = 1550 }
	offset = 3649

	action_a ={ # Expand the Royal Bureaucracy
		name = "ACTIONNAME3366A"
		command = { type = stability value = -2 }
		command = { type = revoltrisk which = 24 value = 6 }
		command = { type = infra value = 2000 }
		command = { type = provincetax which = -1 value = 2 }
		command = { type = provincetax which = -1 value = 2 }
		command = { type = provincetax which = -1 value = 2 }
		command = { type = provincetax which = -1 value = 2 }
		command = { type = domestic which = CENTRALIZATION value = 2 }
		command = { type = domestic which = ARISTOCRACY value = -1 }
	}
	action_b ={ # Limited reforms
		name = "ACTIONNAME3366B"
		command = { type = stability value = -1 }
		command = { type = revoltrisk which = 12 value = 4 }
		command = { type = infra value = 500 }
		command = { type = provincetax which = -1 value = 1 }
		command = { type = provincetax which = -1 value = 1 }
		command = { type = domestic which = CENTRALIZATION value = 1 }
	}
	action_c ={ # Reduce the Royal Bureucracy
		name = "ACTIONNAME3366C"
		command = { type = stability value = 3 }
		command = { type = infantry which = -2 value = 20000 }
		command = { type = domestic which = CENTRALIZATION value = -2 }
		command = { type = domestic which = ARISTOCRACY value = 1 }
	}
}

#The Great Naval Reform / Imperial Halic Shipyard. # 
event = {
	id = 3367
	random = no
	country = TUR
	name = "EVENTNAME3367"
	desc = "EVENTHIST3367"
	style = 2
	
	date = { day = 1 month = june year = 1515 }
	offset = 700

	action_a ={ # Build the Imperial Halic Shipyard.
		name = "ACTIONNAME3367A"
		command = { type = treasury value = -600 }
		command = { type = naval value = 1000 }
		command = { type = galleys which = -1 value = 20 }
		command = { type = gainbuilding which = 1953 value = shipyard }
		command = { type = vp value = 25 }
	}
	action_b ={ # Build a smaller shipyard.
		name = "ACTIONNAME3367B"
		command = { type = treasury value = -300 }
		command = { type = naval value = 500 }
		command = { type = gainbuilding which = 1953 value = shipyard }
	}
	action_c ={ # Reform the army instead
		name = "ACTIONNAME3367C"
		command = { type = land value = 500 }
	}
}

#Cem Sultan's Rebellion#
event = {
	id = 3368
	random = no
	country = TUR
	name = "EVENTNAME3368"
	desc = "EVENTHIST3368"
	style = 1
	
	date = { day = 1 month = june year = 1481 }
	offset = 700

	action_a ={ # Crush Cem's rebellion.
		name = "ACTIONNAME3368A"
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = stability value = -1 }
		command = { type = ADM which = 4 value = 24 }
		command = { type = infra value = 200 }
	}
	action_b ={ # Seek reconciliation.
		name = "ACTIONNAME3368B"
		command = { type = DIP which = 4 value = 24 }
		command = { type = treasury value = -100 }
		command = { type = domestic which = CENTRALIZATION value = -1 }
	}
}

#The 1st Celali Uprising#
event = {
	id = 3370
	trigger = {
		owned = {
			province = 482 # Sivas
			data = -1
		}
	}
	random = no
	country = TUR
	name = "EVENTNAME3370"
	desc = "EVENTHIST3370"
	style = 2
	date = { day = 1 month = january year = 1519 }
	offset = 364

	action_a ={ # Crush Celali and the Shiites.
		name = "ACTIONNAME3370A"
		command = { type = revolt which = 482 }
		command = { type = revolt which = -1 }
		command = { type = stability value = -1 }
		command = { type = ADM which = 3 value = 24 }
		command = { type = infra value = 200 }
	}
	action_b ={ # Heed their demands.
		name = "ACTIONNAME3370B"
		command = { type = provincereligion which = 482 value = shiite }
		command = { type = stability value = 1 }
		command = { type = ADM which = 4 value = 24 }
	}
}

#The Sultan become 'Khalifa'#
event = {
	id = 3371
	trigger = {
		control = { province = 746 data = TUR }
                                        }
	random = no
	country = TUR
	name = "EVENTNAME3371"
	desc = "EVENTHIST3371"
	style = 2
	
	date = { day = 1 month = january year = 1510 }
	offset = 30
                    deathdate = { day = 1 month = january year = 1914 }

	action_a ={ # Assume the title of Caliph
		name = "ACTIONNAME3371A"
		command = { type = flagname which = CALIPH }
		command = { type = inherit  which = EGY }
                command = { type = vassal which = ARA }
                command = { type = addcore which = 742 }
                command = { type = addcore which = 743 }
                command = { type = addcore which = 744 }
                command = { type = addcore which = 745 }
                command = { type = addcore which = 746 }
                command = { type = addcore which = 747 }
                command = { type = addcore which = 748 }
                command = { type = addcore which = 749 }
                command = { type = addcore which = 774 }
                command = { type = addcore which = 1727 }
                command = { type = addcore which = 490 }
                command = { type = addcore which = 491 }
                command = { type = addcore which = 492 }
                command = { type = addcore which = 493 }
                command = { type = addcore which = 495 }
                command = { type = addcore which = 494 }
                command = { type = addcore which = 1453 }
                command = { type = addcore which = 489 }
                command = { type = addcore which = 508 }
                command = { type = addcore which = 496 }
                command = { type = addcore which = 497 }
                command = { type = addcore which = 498 }
		command = { type = relation which = ARA value = 50 }
		command = { type = relation which = ALD value = 50 }
		command = { type = relation which = MOR value = 50 }
		command = { type = relation which = TRI value = 50 }
		command = { type = relation which = ADE value = 50 }
		command = { type = relation which = OMA value = 50 }
		command = { type = relation which = MOG value = 50 }
		command = { type = relation which = DLH value = 50 }
		command = { type = revolt which = -1 }
		command = { type = badboy   value = -7 } 
		command = { type = add_countryculture which = arabic }
	}
	action_b ={
		name = "Stick with the title of Sultan"
		command = { type = flagname which = SULTAN }
		command = { type = inherit  which = EGY }
                command = { type = addcore which = 742 }
                command = { type = addcore which = 743 }
                command = { type = addcore which = 744 }
                command = { type = addcore which = 745 }
                command = { type = addcore which = 746 }
                command = { type = addcore which = 747 }
                command = { type = addcore which = 748 }
                command = { type = addcore which = 749 }
                command = { type = addcore which = 774 }
                command = { type = addcore which = 1727 }
                command = { type = addcore which = 490 }
                command = { type = addcore which = 491 }
                command = { type = addcore which = 492 }
                command = { type = addcore which = 493 }
                command = { type = addcore which = 495 }
                command = { type = addcore which = 494 }
                command = { type = addcore which = 1453 }
                command = { type = addcore which = 489 }
                command = { type = addcore which = 508 }
                command = { type = addcore which = 496 }
                command = { type = addcore which = 497 }
                command = { type = addcore which = 498 }
                command = { type = vassal which = ARA }
		command = { type = stability value = 1 }
		command = { type = ADM which = 4 value = 24 }
		command = { type = badboy   value = -7 }
		command = { type = add_countryculture which = arabic }
	}
	action_c ={
		name = "Take the title of Osmanli Imparatorlugu"
		command = { type = flagname which = GREAT }
		command = { type = inherit  which = EGY }
                command = { type = vassal which = ARA }
                command = { type = addcore which = 742 }
                command = { type = addcore which = 743 }
                command = { type = addcore which = 744 }
                command = { type = addcore which = 745 }
                command = { type = addcore which = 746 }
                command = { type = addcore which = 747 }
                command = { type = addcore which = 748 }
                command = { type = addcore which = 749 }
                command = { type = addcore which = 774 }
                command = { type = addcore which = 1727 }
                command = { type = addcore which = 490 }
                command = { type = addcore which = 491 }
                command = { type = addcore which = 492 }
                command = { type = addcore which = 493 }
                command = { type = addcore which = 495 }
                command = { type = addcore which = 494 }
                command = { type = addcore which = 1453 }
                command = { type = addcore which = 489 }
                command = { type = addcore which = 508 }
                command = { type = addcore which = 496 }
                command = { type = addcore which = 497 }
                command = { type = addcore which = 498 }
		command = { type = relation which = ARA value = 50 }
		command = { type = relation which = ALD value = 50 }
		command = { type = relation which = MOR value = 50 }
		command = { type = relation which = TRI value = 50 }
		command = { type = relation which = ADE value = 50 }
		command = { type = relation which = OMA value = 50 }
		command = { type = relation which = MOG value = 50 }
		command = { type = relation which = DLH value = 50 }
		command = { type = revolt which = -1 }
		command = { type = badboy   value = -7 }
		command = { type = add_countryculture which = arabic }
	}
}


#The Ottoman Vassalization of Al-Djazar#
event = {

	id = 3372				#Triggered by ALD3651#
	random = no
	country = TUR
	name = "EVENTNAME3372"
	desc = "EVENTHIST3372"
	style = 2

	action_a ={				#We accept your submission - Vassal!##
		name = "ACTIONNAME3372A" 
                #command = { type = add_countryculture which = tuareg }        
		command = { type = vassal which = ALD }
		command = { type = sleepleader which = 09705 }
		command = { type = treasury value = 200 }
		command = { type = stability value = 1 }
		command = { type = INF which = 737 value = 7000 }
		command = { type = relation which = ALD value = 50 }
	}
}

#Ottoman Serbia#
event = {

	id = 789452100
	trigger = { 
        control = { province = 355 data = TUR }
        owned = { province = 355 data = TUR }
        NOT = { exists = SER }
        }
	random = no
	country = TUR
	name = "Ottoman Serbia"
	desc = "After the conquer of Serbia the Ottoman rulers invited Serbs into their court."
	style = 2
	
	date = { day = 1 month = january year = 1337 }
	offset = 720
	deathdate = { day = 1 month = january year = 1800 }

	action_a ={
		name = "Invite them to our court"
                command = { type = add_countryculture which = slavonic }
                command = { type = add_countryculture which = albanian }
		command = { type = treasury value = 200 }
		command = { type = stability value = -1 }
		command = { type = CAV which = 355 value = 5000 }
		command = { type = DIP which = 2 value = 24 }
		command = { type = domestic which = CENTRALIZATION value = -1 }
	}
	action_b ={
		name = "Only Turks have something to say here!"
		command = { type = stability value = 1 }
		command = { type = ADM which = 1 value = 12 }
		command = { type = domestic which = ARISTOCRACY value = 1 }
		command = { type = domestic which = CENTRALIZATION value = 1 }
		command = { type = revolt which = 355 }
	}
}

#Ottoman Bulgaria#
event = {

	id = 78793732
	trigger = { 
        control = { province = 356 data = TUR }
        owned = { province = 356 data = TUR }
        NOT = { exists = BUL }
        }
	random = no
	country = TUR
	name = "Ottoman Bulgaria"
	desc = "After the conquer of Bulgaria the Ottoman rulers invited Bulgars into their court."
	style = 2
	
	date = { day = 1 month = january year = 1337 }
	offset = 720
	deathdate = { day = 1 month = january year = 1800 }

	action_a ={
		name = "Invite them to our court"
                command = { type = add_countryculture which = syrian }
		command = { type = treasury value = 200 }
		command = { type = stability value = -1 }
		command = { type = CAV which = 356 value = 5000 }
		command = { type = DIP which = 2 value = 24 }
		command = { type = domestic which = CENTRALIZATION value = -1 }
	}
	action_b ={
		name = "Only Turks have something to say here!"
		command = { type = stability value = 1 }
		command = { type = ADM which = 1 value = 12 }
		command = { type = domestic which = ARISTOCRACY value = 1 }
		command = { type = domestic which = CENTRALIZATION value = 1 }
		command = { type = revolt which = 356 }
	}
}

#Mameluk Uprising under Canbirdi Ghazeli#
event = {
	id = 3373
	trigger = {
		owned = {
			province = 744
			data = -1
		}
		owned = {
			province = 745
			data = -1
		}
		owned = {
			province = 746
			data = -1
		}
		owned = {
			province = 747
			data = -1
		}
		NOT = {
			exists = EGY
		}
	}
	random = no
	country = TUR
	name = "EVENTNAME3373"
	desc = "EVENTHIST3373"
	style = 2
	date = { day = 1 month = january year = 1520 }
	offset = 720
	deathdate = { day = 1 month = january year = 1550 }
	
	action_a ={ # Ok
		name = "ACTIONNAME3373A"
		command = { type = revolt which = 744 }
		command = { type = revolt which = 744 }
		command = { type = revolt which = 745 }
		command = { type = revolt which = 745 }
		command = { type = revolt which = 746 }
		command = { type = revolt which = 747 }
	}
}

#Mimar Sinan's Great Constructions#
event = {
	id = 3374
	trigger = {
		owned = {
			province = 1953
			data = -1
		}
	}
	random = no
	country = TUR
	name = "EVENTNAME3374"
	desc = "EVENTHIST3374"
	style = 2
	
	date = { day = 1 month = january year = 1538 }
	offset = 720
	deathdate = { day = 1 month = january year = 1560 }

	action_a ={ # Great works
		name = "ACTIONNAME3374A"
		command = { type = treasury value = -800 }
		command = { type = infra value = 2000 }
		command = { type = stability value = 2 }
		command = { type = gainmanufactory which = -2 value = luxury }
		command = { type = vp value = 50 }
	}
	action_b ={ # Modest works
		name = "ACTIONNAME3374B"
		command = { type = infra value = 500 }
		command = { type = stability value = 1 }
	}
	action_c ={ # Invest in fortifications instead.
		name = "ACTIONNAME3374C"
		command = { type = fortress which = -2 value = 1 } # Capital
		command = { type = fortress which = -1 value = 1 } # Random province
		command = { type = fortress which = -1 value = 1 } # Random province
		command = { type = fortress which = -1 value = 1 } # Random province
	}
}

#The Legal Reforms of Suleyman the Magnificent#
event = {
	id = 3375
	random = no
	country = TUR
	name = "EVENTNAME3375"
	desc = "EVENTHIST3375"
	style = 2
	
	date = { day = 1 month = january year = 1540 }
	offset = 3649

	action_a ={ # Codify the Ottoman Laws.
		name = "ACTIONNAME3375A"
		command = { type = domestic which = CENTRALIZATION value = 1 }
		command = { type = stability value = 1 }
		command = { type = infra value = 200 }
	}
}

#The Spahi Uprising under 'Abd al-Halim (3rd Celali Uprising)#
event = {
	id = 3376
	random = no
	country = TUR
	name = "EVENTNAME3376"
	desc = "EVENTHIST3376"
	style = 2
	
	date = { day = 1 month = january year = 1599 }
	offset = 700

	action_a ={ # Crush the rebels.
		name = "ACTIONNAME3376A"
		command = { type = revolt which = 474}
		command = { type = revolt which = -1}
		command = { type = revolt which = -1}
		command = { type = stability value = -1 }
	}
	action_b ={ # Bribe the rebel leaders.
		name = "ACTIONNAME3376B"
		command = { type = treasury value = -100 }
		command = { type = stability value = 1 }
	}
}

#Ksem Sultana - domineering wife of Ahmed I.#
event = {
	id = 3377
	random = no
	country = TUR
	name = "EVENTNAME3377"
	desc = "EVENTHIST3377"
	style = 3
	
	date = { day = 1 month = january year = 1611 }
	offset = 1000
	
	action_a ={ # Wed Ksem
		name = "ACTIONNAME3377A"
		command = { type = DIP which = 4 value = 480 }
		command = { type = ADM which = 4 value = 480 }
		command = { type = MIL which = 4 value = 480 }
		command = { type = stability value = -2 }
	}
	action_b ={ # Choose another wife.
		name = "ACTIONNAME3377B"
		command = { type = sleepevent which = 3384 }
	}
}

#The Shuf Mountain Rebellion#
event = {
	id = 3378
	random = no
	country = TUR
	name = "EVENTNAME3378"
	desc = "EVENTHIST3378"
	style = 3
	
	date = { day = 1 month = january year = 1699 }
	offset = 364
	
	action_a ={ # Smash the rebellion by force
		name = "ACTIONNAME3378A"
		command = { type = revolt which = 490 }
		command = { type = revolt which = 491 }
		command = { type = revolt which = 485 }
		command = { type = MIL which = 3 value = 12 }
	}
	action_b ={ # Negotiate with the rebels.
		name = "ACTIONNAME3378B"
		command = { type = stability value = -1 }
		command = { type = treasury value = -50 }
		command = { type = DIP which = 3 value = 12 }
	}
}

#The Decentralizing Effect of the Provincial System#
event = {
	id = 3380
	random = no
	country = TUR
	name = "EVENTNAME3380"
	desc = "EVENTHIST3380"
	style = 3
	
	date = { day = 1 month = january year = 1690 }
	offset = 720
	
	action_a ={ # More power to the Beys
		name = "ACTIONNAME3380A"
		command = { type = provincetax which = -1 value = -2 }
		command = { type = provincetax which = -1 value = -2 }
		command = { type = provincetax which = -1 value = -2 }
		command = { type = provincetax which = -1 value = -2 }
		command = { type = provincetax which = -1 value = -2 }
		command = { type = provincetax which = -1 value = -2 }
		command = { type = domestic which = CENTRALIZATION value = -2 }
		command = { type = domestic which = ARISTOCRACY value = 2 }
		command = { type = domestic which = SERFDOM value = 2 }
		command = { type = stability value = 2 }
	}
	action_b ={ # Limit the concessions.
		name = "ACTIONNAME3380B"
		command = { type = provincetax which = -1 value = -1 }
		command = { type = provincetax which = -1 value = -1 }
		command = { type = provincetax which = -1 value = -1 }
		command = { type = provincetax which = -1 value = -1 }
		command = { type = provincetax which = -1 value = -1 }
		command = { type = provincetax which = -1 value = -1 }
		command = { type = domestic which = ARISTOCRACY value = 1 }
		command = { type = domestic which = CENTRALIZATION value = -1 }
		command = { type = revoltrisk which = 12 value = 6 }
		command = { type = stability value = -1 }
	}
	action_c ={ # Rein them in
		name = "ACTIONNAME3380C"
		command = { type = provincetax which = -1 value = 1 }
		command = { type = provincetax which = -1 value = 1 }
		command = { type = provincetax which = -1 value = 1 }
		command = { type = provincetax which = -1 value = 1 }
		command = { type = provincetax which = -1 value = 1 }
		command = { type = provincetax which = -1 value = 1 }
		command = { type = domestic which = ARISTOCRACY value = -2 }
		command = { type = domestic which = CENTRALIZATION value = 2 }
		command = { type = domestic which = SERFDOM value = -2 }
		command = { type = desertion which = -1 value = 5000 }
		command = { type = desertion which = -1 value = 5000 }
		command = { type = desertion which = -1 value = 5000 }
		command = { type = revoltrisk which = 12 value = 6 }
		command = { type = stability value = -6 }
		command = { type = sleepevent which = 3378 } # The Shusf rebellion
	}
}

#The Decentralizing Effect of the Provincial System#
event = {
	id = 3381
	random = no
	country = TUR
	name = "EVENTNAME3381"
	desc = "EVENTHIST3381"
	style = 4
	
	date = { day = 1 month = january year = 1740 }
	offset = 720
	
	action_a ={ # More power to the Beys
		name = "ACTIONNAME3381A"
		command = { type = provincetax which = -1 value = -2 }
		command = { type = provincetax which = -1 value = -2 }
		command = { type = provincetax which = -1 value = -2 }
		command = { type = provincetax which = -1 value = -2 }
		command = { type = provincetax which = -1 value = -2 }
		command = { type = provincetax which = -1 value = -2 }
		command = { type = domestic which = CENTRALIZATION value = -2 }
		command = { type = domestic which = ARISTOCRACY value = 2 }
		command = { type = domestic which = SERFDOM value = 2 }
		command = { type = stability value = 2 }
	}
	action_b ={ # Limit the concessions.
		name = "ACTIONNAME3381B"
		command = { type = provincetax which = -1 value = -1 }
		command = { type = provincetax which = -1 value = -1 }
		command = { type = provincetax which = -1 value = -1 }
		command = { type = provincetax which = -1 value = -1 }
		command = { type = provincetax which = -1 value = -1 }
		command = { type = provincetax which = -1 value = -1 }
		command = { type = domestic which = ARISTOCRACY value = 1 }
		command = { type = domestic which = CENTRALIZATION value = -1 }
		command = { type = revoltrisk which = 12 value = 6 }
		command = { type = stability value = -1 }
	}
	action_c ={ # Rein them in
		name = "ACTIONNAME3381C"
		command = { type = provincetax which = -1 value = 1 }
		command = { type = provincetax which = -1 value = 1 }
		command = { type = provincetax which = -1 value = 1 }
		command = { type = provincetax which = -1 value = 1 }
		command = { type = provincetax which = -1 value = 1 }
		command = { type = provincetax which = -1 value = 1 }
		command = { type = domestic which = ARISTOCRACY value = -2 }
		command = { type = domestic which = CENTRALIZATION value = 2 }
		command = { type = domestic which = SERFDOM value = -2 }
		command = { type = desertion which = -1 value = 5000 }
		command = { type = desertion which = -1 value = 5000 }
		command = { type = desertion which = -1 value = 5000 }
		command = { type = revoltrisk which = 12 value = 6 }
		command = { type = stability value = -6 }
		command = { type = sleepevent which = 3378 } # The Shusf rebellion
	}
}

#The 5th Celali Uprising#
event = {
	id = 3382
	random = no
	country = TUR
	name = "EVENTNAME3382"
	desc = "EVENTHIST3382"
	style = 3

	date = { day = 1 month = january year = 1658 }
	offset = 365

	action_a ={ # Crush the rebels.
		name = "ACTIONNAME3382A"
		command = { type = revolt which = 482 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = stability value = -1 }
	}
	action_b ={ # Bribe the rebel leaders.
		name = "ACTIONNAME3382B"
		command = { type = treasury value = -100 }
		command = { type = stability value = 1 }
	}
}

#Proposal for an Army Reform#
event = {
	id = 3383
	random = no
	country = TUR
	name = "EVENTNAME3383"
	desc = "EVENTHIST3383"
	style = 3
	
	date = { day = 1 month = january year = 1630 }
	offset = 3649
	
	action_a ={ # Let the Janissaries enjoy their privileges.
		name = "ACTIONNAME3383A"
		command = { type = stability value = 1 }
		command = { type = relation which = PER value = -150 }
		command = { type = relation which = HAB value = -150 }
		command = { type = relation which = POL value = -150 }
		command = { type = relation which = HUN value = -150 }
		command = { type = relation which = ALD value = -150 }
		command = { type = relation which = MOR value = -150 }
		command = { type = relation which = RUS value = -150 }
	}
	action_b ={ # Reform the military
		name = "ACTIONNAME3383B"
		command = { type = land value = 2000 }
		command = { type = naval value = 500 }
		command = { type = stability value = -1 }
		command = { type = revoltrisk which = 48 value = 4 }
	}
}

#The Murder of Ksem Sultana#
event = {
	id = 3384
	random = no
	country = TUR
	name = "EVENTNAME3384"
	desc = "EVENTHIST3384"
	style = 3
	
	date = { day = 1 month = january year = 1651 }
	offset = 364

	action_a ={ # Ksem is murdered
		name = "ACTIONNAME3384A"
		command = { type = revoltrisk which = 12 value = 5 }
	}
}

#The Age of the Kprls#
event = {
	id = 3385
	random = no
	country = TUR
	name = "EVENTNAME3385"
	desc = "EVENTHIST3385"
	style = 3
	
	date = { day = 1 month = january year = 1656 }
	offset = 1000

	action_a ={ # Support the Koprulu Family
		name = "ACTIONNAME3385A"
		command = { type = ADM which = 4 value = 240 }
		command = { type = domestic which = CENTRALIZATION value = 2 }
		command = { type = stability value = 1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
	}
	action_b ={ # Rely on other advisors.
		name = "ACTIONNAME3385B"
		command = { type = stability value = -1 }
		command = { type = domestic which = CENTRALIZATION value = -1 }
	}
}

#The Reforms of Kemankes (Kara Mustafa Pasha)#
event = {
	id = 3386
	random = no
	country = TUR
	name = "EVENTNAME3386"
	desc = "EVENTHIST3386"
	style = 3

	date = { day = 1 month = january year = 1640 }
	offset = 1000
	
	action_a ={ # Empower Kemankes
		name = "ACTIONNAME3386A"
		command = { type = infra value = 500 }
		command = { type = naval value = 1000 }
		command = { type = domestic which = CENTRALIZATION value = 2 }
		command = { type = stability value = -2 }
		command = { type = ADM which = 2 value = 240 }
		command = { type = DIP which = 3 value = 240 }
		command = { type = MIL which = 2 value = 240 }
	}
	action_b ={ # Compromise
		name = "ACTIONNAME3386B"
		command = { type = infra value = 200 }
		command = { type = naval value = 400 }
		command = { type = domestic which = CENTRALIZATION value = 1 }
		command = { type = stability value = -1 }
		command = { type = ADM which = 1 value = 240 }
		command = { type = DIP which = 2 value = 240 }
		command = { type = MIL which = 1 value = 240 }
	}
	action_c ={ # Ignore his advice.
		name = "ACTIONNAME3386B"
		command = { type = domestic which = CENTRALIZATION value = -1 }
	}
}

#The Treaty of Kasr-i Sirin with Persia#
event = {
	id = 3387
	trigger = {
		exists = PER
	}
	random = no
	country = TUR
	name = "EVENTNAME3387"
	desc = "EVENTHIST3387"
	style = 3
	
	date = { day = 1 month = january year = 1645 }
	offset = 1000
	
	action_a ={ # Full Reconciliation
		name = "ACTIONNAME3387A"
		command = { type = dynastic which = PER }
		command = { type = relation which = PER value = 300 }
		command = { type = DIP which = 4 value = 48 }
	}
	action_b ={ # Moderate Treaty
		name = "ACTIONNAME3387B"
		command = { type = relation which = PER value = 100 }
	}
	action_c ={ # No Treaty
		name = "ACTIONNAME3387C"
		command = {  }
	}
}

#Turko-Polish Tensions#
event = {
	id = 3388
	trigger = {
		event = 3488
	}
	random = no
	country = TUR
	name = "EVENTNAME3388"
	desc = "EVENTHIST3388"
	style = 3

	action_a ={ # Rattle the sabres.
		name = "ACTIONNAME3388A"
		command = { type = casusbelli which = POL value = 36 }
		command = { type = relation which = POL value = -150 }
	}
	action_b ={ # Seek reconciliation
		name = "ACTIONNAME3388B"
		command = { type = relation which = POL value = 50 }
	}
}

#Turko-Polish Tensions#
event = {
	id = 3389
	trigger = {
		event = 3489
	}
	random = no
	country = TUR
	name = "EVENTNAME3389"
	desc = "EVENTHIST3389"
	style = 3

	action_a ={ # Rattle the sabres.
		name = "ACTIONNAME3389A"
		command = { type = casusbelli which = POL value = 36 }
		command = { type = relation which = POL value = -150 }
	}
	action_b ={ # Seek reconciliation
		name = "ACTIONNAME3389B"
		command = { type = relation which = POL value = 50 }
	}
}

#Turko-Polish Tensions#
event = {
	id = 3390
	trigger = {
		event = 3490
	}
	random = no
	country = TUR
	name = "EVENTNAME3390"
	desc = "EVENTHIST3390"
	style = 3

	action_a ={ # Rattle the sabres.
		name = "ACTIONNAME3390A"
		command = { type = casusbelli which = POL value = 36 }
		command = { type = relation which = POL value = -150 }
	}
	action_b ={ # Seek reconciliation
		name = "ACTIONNAME3390B"
		command = { type = relation which = POL value = 50 }
	}
}

#Lale Devri (The Tulip Age)#
event = {
	id = 3393
	random = no
	country = TUR
	name = "EVENTNAME3393"
	desc = "EVENTHIST3393"
	style = 4
	
	date = { day = 1 month = january year = 1718 }
	offset = 700

	action_a ={ # Begin Westernization Process.
		name = "ACTIONNAME3393A"
		command = { type = stability value = -1 }
		command = { type = revoltrisk which = 36 value = 5 }
		command = { type = domestic which = CENTRALIZATION value = 1 }
		command = { type = domestic which = ARISTOCRACY value = -1 }
		command = { type = domestic which = INNOVATIVE value = 2 }
		command = { type = provincetax which = -1 value = 3 }
		command = { type = provincetax which = -1 value = 3 }
		command = { type = provincetax which = -1 value = 2 }
		command = { type = provincetax which = -1 value = 2 }
		command = { type = provincetax which = -1 value = 2 }
		command = { type = gainmanufactory which = -1 value = goods }
		command = { type = relation which = ENG value = 50 }
		command = { type = relation which = FRA value = 50 }
		command = { type = relation which = SPA value = 50 }
		command = { type = relation which = POR value = 50 }
		command = { type = relation which = POL value = 50 }
		command = { type = relation which = HAB value = 50 }
		command = { type = relation which = PER value = -50 }
		command = { type = relation which = ALD value = -50 }
		command = { type = relation which = MOR value = -50 }
		command = { type = relation which = TRI value = -50 }
		command = { type = relation which = TUN value = -50 }
		command = { type = relation which = OMA value = -50 }
		command = { type = relation which = ADE value = -50 }
		command = { type = relation which = ARA value = -50 }
	}
	action_b ={ # Moderate reforms.
		name = "ACTIONNAME3393B"
		command = { type = domestic which = INNOVATIVE value = 1 }
		command = { type = provincetax which = -1 value = 1 }
		command = { type = provincetax which = -1 value = 1 }
		command = { type = provincetax which = -1 value = 1 }
		command = { type = revoltrisk which = 12 value = 4 }
		command = { type = sleepevent which = 3397 }
	}
	action_c ={ # Islam is the Law!
		name = "ACTIONNAME3393C"
		command = { type = stability value = 3 }
		command = { type = infantry which = -2 value = 10000 }
		command = { type = cavalry which = -2 value = 10000 }
		command = { type = domestic which = INNOVATIVE value = -2 }
		command = { type = relation which = ENG value = -50 }
		command = { type = relation which = FRA value = -50 }
		command = { type = relation which = SPA value = -50 }
		command = { type = relation which = POR value = -50 }
		command = { type = relation which = POL value = -50 }
		command = { type = relation which = HAB value = -50 }
		command = { type = relation which = PER value = 50 }
		command = { type = relation which = ALD value = 50 }
		command = { type = relation which = MOR value = 50 }
		command = { type = relation which = TRI value = 50 }
		command = { type = relation which = TUN value = 50 }
		command = { type = relation which = OMA value = 50 }
		command = { type = relation which = ADE value = 50 }
		command = { type = relation which = ARA value = 50 }
		command = { type = sleepevent which = 3397 }
	}
}

#Ali Bey's Rebellion in Egypt#
event = {
	id = 3394
	trigger = {
		owned = {
			province = 746
			data = -1
		}
		NOT = {
			exists = EGY
		}
	}
	random = no
	country = TUR
	name = "EVENTNAME3394"
	desc = "EVENTHIST3394"
	style = 4
	
	date = { day = 1 month = january year = 1770 }
	offset = 1000

	action_a ={ # Crush the rebels
		name = "ACTIONNAME3394A"
		command = { type = revolt which = 743 }
		command = { type = revolt which = 744 }
		command = { type = revolt which = 745 }
		command = { type = revolt which = 746 }
		command = { type = revolt which = 747 }
		command = { type = stability value = -1 }
	}
	action_b ={ # Negotiate a solution
		name = "ACTIONNAME3394B"
		command = { type = stability value = -2 }
		command = { type = treasury value = -100 }
		command = { type = domestic which = CENTRALIZATION value = -1 }
	}
}

#The Horrible Plague in Anatolia#
event = {
	id = 3395
	random = no
	country = TUR
	name = "EVENTNAME3395"
	desc = "EVENTHIST3395"
	style = 4

	date = { day = 1 month = january year = 1738 }
	offset = 1000

	action_a ={ # Plague strikes Anatolia
		name = "ACTIONNAME3395A"
		command = { type = population which = 477 value = -15000 }
	}
}

#The Horrible Plague in Anatolia#
event = {
	id = 3396
	random = no
	country = TUR
	name = "EVENTNAME3396"
	desc = "EVENTHIST3396"
	style = 4
	
	date = { day = 1 month = january year = 1770 }
	offset = 365

	action_a ={ # Plague strikes Anatolia
		name = "ACTIONNAME3396A"
		command = { type = population which = 477 value = -15000 }
		command = { type = population which = 476 value = -5000 }
	}
}

#Patrona Halil Uprising - The End of Lale Devri#
event = {
	id = 3397
	random = no
	country = TUR
	name = "EVENTNAME3397"
	desc = "EVENTHIST3397"
	style = 4
	
	date = { day = 30 month = september year = 1730 }

	action_a = { # Allow Ahmed III to be deposed.
		name = "ACTIONNAME3397A"
		command = { type = domestic which = INNOVATIVE value = -1 }
		command = { type = domestic which = CENTRALIZATION value = -1 }
		command = { type = sleepmonarch which = 04089 }
	}
	action_b ={ # Crush revolt.
		name = "ACTIONNAME3397B"
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revoltrisk which = 24 value = 4 }
		command = { type = sleepmonarch which = 04090 }
	}
}

#Proposal for an Army Reform (Mahmud I)#
event = {
	id = 3400
	random = no
	country = TUR
	name = "EVENTNAME3400"
	desc = "EVENTHIST3400"
	style = 4
	
	date = { day = 1 month = january year = 1740 }
	offset = 3649
	
	action_a ={ # Reform military and establish the 'Kara Muhendishanesi'
		name = "ACTIONNAME3400A"
		command = { type = treasury value = -1000 }
		command = { type = land value = 2000 }
		command = { type = naval value = 1200 }
		command = { type = stability value = -2 }
		command = { type = revoltrisk which = 48 value = 4 }
	}
	action_b ={ # Reform military
		name = "ACTIONNAME3400B"
		command = { type = land value = 500 }
		command = { type = naval value = 300 }
		command = { type = stability value = -1 }
		command = { type = revoltrisk which = 24 value = 4 }
	}
	action_c ={ # Let the Janissaries enjoy their privileges.
		name = "ACTIONNAME3400C"
		command = { type = stability value = 1 }
		command = { type = relation which = PER value = -150 }
		command = { type = relation which = HAB value = -150 }
		command = { type = relation which = POL value = -150 }
		command = { type = relation which = HUN value = -150 }
		command = { type = relation which = ALD value = -150 }
		command = { type = relation which = MOR value = -150 }
		command = { type = relation which = RUS value = -150 }
	}
}

#Fate of the Patriarchate# 
event = { 
	id = 3750 
	trigger = { 
		owned = { 
			province = 1953 
			data = -1 
			} 
		NOT = { 
			exists = BYZ 
		} 
	} 
	random = no 
	country = TUR 
	name = "EVENTNAME3750" 
	desc = "EVENTHIST3750" 
	style = 1 

	date = { day = 1 month = january year = 1337 }
	offset = 150 
	deathdate = { day = 1 month = january year = 1620 } 

	action_a ={ #Allow the Patriarchate to exist and keep the current Patriarch# 
	name = "ACTIONNAME3750A" 
		command = { type = stability value = -1 } 
		command = { type = relation which = MOS value = 100 } 
		command = { type = relation which = SER value = 100 } 
		command = { type = relation which = NVG value = 100 } 
		command = { type = relation which = TRE value = 100 } 
		command = { type = domestic which = INNOVATIVE value = 1 } 
	} 

	action_b ={ #Allow the Patriarchate to exist, but appoint a new Patriarch# 
	name = "ACTIONNAME3750B" 
		command = { type = stability value = 1 } 
		command = { type = relation which = SER value = 50 } 
		command = { type = relation which = BOS value = 50 } 
		command = { type = relation which = TRE value = 50 } 
		command = { type = domestic which = CENTRALIZATION value = 1 } 
	} 
	action_c ={ #Close down the Patriarchate and confiscate its properties# 
	name = "ACTIONNAME3750C" 
		command = { type = relation which = MOS value = -100 } 
		command = { type = relation which = NVG value = -100 } 
		command = { type = relation which = RYA value = -100 } 
		command = { type = relation which = SUZ value = -100 } 
		command = { type = relation which = SER value = -100 } 
		command = { type = relation which = BOS value = -100 } 
		command = { type = relation which = TRE value = -100 } 
		command = { type = relation which = TVE value = -100 } 
		command = { type = domestic which = INNOVATIVE value = -1 } 
		command = { type = treasury value = 300 } 
	} 
} 

event = { 
	id = 3840
	
	# Triggered by BYZ 3833
	
	random = no
	country = TUR
	name = "EVENTNAME3840"
	desc = "EVENTHIST3840"
	style = 1 
	
	action_a ={ #Gain CB on Byzantium#
		name = "ACTIONNAME3840A"
		command = { type = casusbelli which = BYZ value = 60 }
		command = { type = domestic which = quality value = 1 }
		command = { type = INF which = -2 value = 10000 }
		command = { type = CAV which = -2 value = 5000 }
		command = { type = relation which = TEK value = 100 }
		command = { type = relation which = CAN value = 100 }
		command = { type = relation which = KAR value = 100 }
		command = { type = relation which = DUL value = 100 }
		command = { type = relation which = AKK value = 100 }
		command = { type = relation which = QAR value = 100 }
	}
}

#Turkish events from AoN modified by Hive

#Greek War for Independence#
event = { 
	id = 15005
	trigger = {
        owned = {
            province = 359 data = -1
        }
        NOT = {
            exists = GRE
        }
    }
	random = no
	country = TUR
	name = "War for Greek Independence"
	desc = "By the beginning of the 19th century Greek nationalism started to arouse, inspired by the French revolution and growing nationalism sentiments across Europe. Fueled by the Ottoman adversity in the wars against Russia, the Greek movement Philike Hetairia, led by Demetrios and Alexander Ypsilanti, raised a revolt at Jassy in Moldavia in 1821 and proclaimed the independence of Greece. The revolt was crushed, but it marked the start of the Greek War for Independence. The major European states supported the Greek in their struggle, and in 1827, when the Ottomans refused to obey the English-French-Russian demands for peace, an allied fleet decisively defeated the Egyptian fleet at Navarino. By 1828, Greece had finally won their independence."
	style = 5
	date = { day = 1 month = april year = 1821 } 
	offset = 150 
	deathdate = { day = 1 month = january year = 1828 }
	action_a = {
		name = "Crush the Greek nationalists!"
		command = { type = revolt which = 360 }
		command = { type = revolt which = 1369 }
		command = { type = revolt which = 1954 }
		command = { type = revolt which = 1956 }
        	command = { type = revolt which = 359 }
		command = { type = revolt which = 358 }
		command = { type = revolt which = 360 }
		command = { type = revolt which = 1369 }
		command = { type = revolt which = 1954 }
		command = { type = revolt which = 1956 }
        	command = { type = revolt which = 359 }
		command = { type = revolt which = 358 }
		command = { type = revolt which = 360 }
		command = { type = revolt which = 1369 }
		command = { type = revolt which = 1954 }
		command = { type = revolt which = 1956 }
        	command = { type = revolt which = 359 }
		command = { type = revolt which = 358 }
        	command = { type = province_revoltrisk which = 360 value = 8 }
		command = { type = province_revoltrisk which = 359 value = 8 }
		command = { type = province_revoltrisk which = 358 value = 8 }
        	command = { type = province_revoltrisk which = 1369 value = 8 }
		command = { type = province_revoltrisk which = 1954 value = 8 }
		command = { type = province_revoltrisk which = 1956 value = 8 }
        	command = { type = stability value = -4 }
		command = { type = remove_countryculture which = greek }
		command = { type = relation which = RUS value = -100 }
		command = { type = relation which = U14 value = -100 }
		command = { type = relation which = FRA value = -100 }
		command = { type = trigger which = 15006 }
		command = { type = trigger which = 15007 }
		command = { type = trigger which = 15008 }
	}
	action_b ={
		name = "Grant them their freedom"
		command = { type = independence which = GRE }
		command = { type = breakvassal which = GRE }
		command = { type = domestic which = CENTRALIZATION value = -2 }
		command = { type = stability value = -1 }
		command = { type = remove_countryculture which = greek }
		command = { type = relation which = RUS value = 100 }
		command = { type = relation which = U15 value = 100 }
		command = { type = relation which = FRA value = 100 }
		command = { type = DIP which = 3 value = 36 }
		command = { type = treasury value = 250 }
		command = { type = sleepevent which = 15006 }
		command = { type = sleepevent which = 15007 }
		command = { type = sleepevent which = 15008 }
		command = { type = sleepevent which = 15502 }
	}
	action_c ={
		name = "Grant them limited autonomy"
		command = { type = independence which = GRE } 
		command = { type = domestic which = CENTRALIZATION value = -1 }
		command = { type = stability value = -2 }
		command = { type = remove_countryculture which = greek }
		command = { type = relation which = RUS value = 50 }
		command = { type = relation which = U15 value = 50 }
		command = { type = relation which = FRA value = 50 } 
		command = { type = sleepevent which = 15006 }
		command = { type = sleepevent which = 15007 }
		command = { type = sleepevent which = 15008 }
		command = { type = sleepevent which = 15502 }
	}	
}

#Help from the Pasha of Egypt#
event = { 
	id = 15116
	random = no
	country = TUR
	name = "Help from the Pasha of Egypt"
	desc = "Muhammad Ali had became pasha of Egypt in 1805 and was a very succesful ruler. When the Greek war for independence began, he promised support to the Ottoman sultan in exchange for Syria."
	style = 5
	action_a = {
			name = "Accept his help"
			command = { type = INF which = -2 value = 15000 }
			command = { type = CAV which = -2 value = 15000 }
			command = { type = wakeleader which = 09724 }
			
	}
	action_b = {
			name = "Decline his help"
			command = { type = relation which = EGY value = -100 }
			command = { type = sleepevent which = 15117 }
			command = { type = sleepevent which = 15458 }#EGY
			command = { type = trigger which = 78793508 }#EGY
	}
}
#The Promise to the Pasha#
event = { 
	id = 15117	
	trigger = {	
		NOT = {
			war = { country = GRE country = TUR }
		}
		exists = EGY
		event = 15457
	}
	random = no
	country = TUR
	date = { day = 5 month = october year = 1820 }
	offset = 10
	deathdate = { day = 5 month = october year = 1850 }
	name = "The Promise to the Pasha"
	desc = "When the Greek war for independence was over, Sultan Mahmud II refused to fulfill his promise and give Syria to the Egyptian Pasha, Muhammad Ali. The Pasha responded by invading Asia Minor, but had to withdraw when he lost support from his ally, France."
	style = 5
	action_a = {
			name = "Break the vow"
			command = { type = stability value = -2 }
			command = { type = relation which = EGY value = -200 }
			command = { type = desertion which = -1 value = 15000 }
			command = { type = desertion which = -1 value = 15000 }
			command = { type = trigger which = 15458 }
	}
	action_b = {
			name = "Keep the promise to the Pasha"
			command = { type = secedeprovince which = EGY value = 490 }
			command = { type = secedeprovince which = EGY value = 491 }
			command = { type = secedeprovince which = EGY value = 492 }
			command = { type = secedeprovince which = EGY value = 493 }
			command = { type = secedeprovince which = EGY value = 495 }
			command = { type = secedeprovince which = EGY value = 483 }
			command = { type = relation which = EGY value = 100 }
			command = { type = sleepevent which = 15458 }#EGY
	}		
}

#Vanilla events modified by Hive

#The Economic Reforms of Mehmed II#
event = {
	id = 3352
	trigger ={
		event = 3353
    }
	random = no
	country = TUR
	name = "EVENTNAME3352"
	desc = "EVENTHIST3352"
	style = 1
	date = { day = 1 month = january year = 1337 }
	offset = 2000
	deathdate = { day = 1 month = january year = 1491 }
	
	action_a ={ # End trade agreements with Venice and Genoa.
		name = "ACTIONNAME3352A"
		command = { type = cot which = 1953 }
		command = { type = removecot which = 464 }
		command = { type = relation which = VEN value = -150 }
		command = { type = relation which = GEN value = -100 }
		command = { type = relation which = DAU value = 100 }
		command = { type = domestic which = MERCANTILISM value = 2 }
		command = { type = merchants value = 6 }
		command = { type = loansize which = 300 }
	}
	action_b ={ # Maintain agreements with Venice and Genoa.
		name = "ACTIONNAME3352B"
		command = { type = treasury value = 1000 }
		command = { type = domestic which = MERCANTILISM value = -2 }
		command = { type = relation which = VEN value = 100 }
		command = { type = relation which = GEN value = 50 }
		command = { type = relation which = DAU value = -50 }
		command = { type = trade value = 500 }
		command = { type = loansize which = 500 }
		command = { type = sleepevent which = 15093 }
	}
}

#The City of Men's Desire#		#Capital moved#
event = {
	id = 3353
	trigger = {
		owned = {
			province = 1953
			data = -1
		}
		NOT = {
			exists = BYZ
		}
	}
	random = no
	country = TUR
	name = "EVENTNAME3353"
	desc = "EVENTHIST3353"
	style = 1

	date = { day = 1 month = january year = 1337 }
	offset = 30
	deathdate = { day = 1 month = january year = 1700 }
	
	action_a ={			#Constantinople is new capital#
		name = "ACTIONNAME3353A"
		command = { type = capital which = 1953 }
		command = { type = domestic which = CENTRALIZATION  value = 1 }
		command = { type = provinceculture which = 1953 value = turkish }
		command = { type = provinceculture which = 357 value = turkish }
		command = { type = provinceculture which = 475 value = turkish }
		command = { type = provincereligion which = 357 value = sunni }
		command = { type = provincereligion which = 475 value = sunni }
		command = { type = provincereligion which = 1953 value = sunni }
		command = { type = stability value = -1 }
		command = { type = badboy   value = -5 }
		command = { type = technology which = torthodox }
		command = { type = flagname which = "Constantinople" }
	}
	action_b ={			#Let us keep the Old one instead#
		name = "ACTIONNAME3353B"
		command = { type = provinceculture which = 357 value = turkish }
		command = { type = provinceculture which = 475 value = turkish }
		command = { type = provincereligion which = 357 value = sunni }
		command = { type = provincereligion which = 475 value = sunni }
		command = { type = domestic which = CENTRALIZATION  value = -3 }
		command = { type = stability value = 2 }
		command = { type = badboy   value = -5 }
	}
}

#The Decentralizing Effect of the Provincial System#
event = {
	id = 3379
	random = no
	country = TUR
	name = "EVENTNAME3379"
	desc = "EVENTHIST3379"
	style = 3
	
	date = { day = 1 month = january year = 1615 }
	offset = 300
	
	action_a ={ # More power to the Beys
		name = "ACTIONNAME3379A"
		command = { type = provincetax which = -1 value = -2 }
		command = { type = provincetax which = -1 value = -2 }
		command = { type = provincetax which = -1 value = -2 }
		command = { type = provincetax which = -1 value = -2 }
		command = { type = provincetax which = -1 value = -2 }
		command = { type = provincetax which = -1 value = -2 }
		command = { type = domestic which = CENTRALIZATION value = -2 }
		command = { type = domestic which = ARISTOCRACY value = 2 }
		command = { type = domestic which = SERFDOM value = 2 }
		command = { type = stability value = 2 }
		command = { type = technology which = muslim }
	}
	action_b ={ # Limit the concessions.
		name = "ACTIONNAME3379B"
		command = { type = provincetax which = -1 value = -1 }
		command = { type = provincetax which = -1 value = -1 }
		command = { type = provincetax which = -1 value = -1 }
		command = { type = provincetax which = -1 value = -1 }
		command = { type = provincetax which = -1 value = -1 }
		command = { type = provincetax which = -1 value = -1 }
		command = { type = domestic which = ARISTOCRACY value = 1 }
		command = { type = domestic which = CENTRALIZATION value = -1 }
		command = { type = revoltrisk which = 12 value = 6 }
		command = { type = stability value = -1 }
		command = { type = technology which = muslim }
	}
	action_c ={ # Rein them in
		name = "ACTIONNAME3379C"
		command = { type = provincetax which = -1 value = 1 }
		command = { type = provincetax which = -1 value = 1 }
		command = { type = provincetax which = -1 value = 1 }
		command = { type = provincetax which = -1 value = 1 }
		command = { type = provincetax which = -1 value = 1 }
		command = { type = provincetax which = -1 value = 1 }
		command = { type = domestic which = ARISTOCRACY value = -2 }
		command = { type = domestic which = CENTRALIZATION value = 2 }
		command = { type = domestic which = SERFDOM value = -2 }
		command = { type = desertion which = -1 value = 5000 }
		command = { type = desertion which = -1 value = 5000 }
		command = { type = desertion which = -1 value = 5000 }
		command = { type = revoltrisk which = 60 value = 15 }
		command = { type = stability value = -6 }
		command = { type = sleepevent which = 3378 } # The Shusf rebellion
	}
}

#The Algerian Rebellion# 
event = {
    id = 3897
    trigger = {
        owned = {
            province = 737
            data = -1
        }
        NOT = {
            exists = ALD
        }
    }
    random = no
    country = TUR
    name = "EVENTNAME3897"
    desc = "EVENTHIST3897"
    style = 4

    date = { day = 1 month = january year = 1710 }
    offset = 1000

    action_a ={ # Grant limited autonomy#
        name = "ACTIONNAME3897A"
        #command = { type = remove_countryculture which = tuareg }    
        command = { type = independence which = ALD }
        command = { type = domestic which = CENTRALIZATION value = -1 }
	command = { type = sleepevent which = 15496 }
    }
    action_b ={ # Crush the rebels#
        name = "ACTIONNAME3897B"
        command = { type = revolt which = 734 }
        command = { type = revolt which = 735 }
        command = { type = revolt which = 736 }
        command = { type = revolt which = 737 }
        command = { type = revolt which = 738 }
        command = { type = revolt which = 1508 }
        command = { type = province_revoltrisk which = 734 value = 8 }
	command = { type = province_revoltrisk which = 735 value = 8 }
	command = { type = province_revoltrisk which = 736 value = 8 }
	command = { type = province_revoltrisk which = 737 value = 8 }
	command = { type = province_revoltrisk which = 738 value = 8 }
	command = { type = province_revoltrisk which = 1508 value = 8 }
        command = { type = stability value = -2 }
    }
}

#Serbian Independence#
event = {
	id = 3399
	trigger = {
		owned = {
			province = 355
			data = -1
		}
		NOT = {
			exists = SER
		}
	}
	random = no
	country = TUR
	name = "EVENTNAME3399"
	desc = "EVENTHIST3399"
	style = 5
	
	date = { day = 1 month = january year = 1800 }
	offset = 5000

	action_a ={ # Accept their freedom
		name = "ACTIONNAME3399A"
		command = { type = independence which = SER }
		command = { type = remove_countryculture which = slavonic }
		command = { type = domestic which = CENTRALIZATION value = -1 }
		command = { type = sleepevent which = 15497 }
	}
	action_b ={ # Crush the rebels
		name = "ACTIONNAME3399B"
		command = { type = revolt which = 355 }
		command = { type = revolt which = 355 }
		command = { type = revolt which = 1957 }
		command = { type = revolt which = 1000 }
		command = { type = revolt which = 363 }
		command = { type = revolt which = 364 }
		command = { type = province_revoltrisk which = 355 value = 8 }
		command = { type = province_revoltrisk which = 363 value = 8 }
		command = { type = province_revoltrisk which = 364 value = 8 }
		command = { type = province_revoltrisk which = 1000 value = 8 }
		command = { type = province_revoltrisk which = 1957 value = 8 }
        	command = { type = stability value = -2 }
	}
}

#The Tunisian Rebellion#
event = {
	id = 3391
	trigger = {
		owned = {
			province = 739
			data = -1
		}
		NOT = {
			exists = TUN
		}
	}
	random = no
	country = TUR
	name = "EVENTNAME3391"
	desc = "EVENTHIST3391"
	style = 4

	date = { day = 1 month = january year = 1703 }
	offset = 1000

	action_a ={ # Grant limited autonomy
		name = "ACTIONNAME3391A"
		#command = { type = remove_countryculture which = tuareg }
		command = { type = independence which = TUN }
		command = { type = domestic which = CENTRALIZATION value = -1 }
		command = { type = sleepevent which = 15498 }
	}
	action_b ={ # Crush the rebels
		name = "ACTIONNAME3391B"
		command = { type = revolt which = 739 }
		command = { type = revolt which = 739 }
		command = { type = revolt which = 739 }
		command = { type = revolt which = 985 }
		command = { type = revolt which = 985 }
		command = { type = revolt which = 985 }
		command = { type = revolt which = 986 }
		command = { type = revolt which = 986 }
		command = { type = revolt which = 986 }
		command = { type = province_revoltrisk which = 739 value = 8 }
		command = { type = province_revoltrisk which = 985 value = 8 }
		command = { type = province_revoltrisk which = 986 value = 8 }
        	command = { type = stability value = -2 }
	}
}

#The Tripolitanian Rebellion#
event = {
	id = 3392
	trigger = {
		owned = {
			province = 740
			data = -1
		}
		owned = {
			province = 741
			data = -1
		}
		NOT = {
			exists = TRI
		}
	}
	random = no
	country = TUR
	name = "EVENTNAME3392"
	desc = "EVENTHIST3392"
	style = 4

	date = { day = 1 month = january year = 1710 }
	offset = 1000

	action_a ={ # Grant limited autonomy
		name = "ACTIONNAME3392A"
		#command = { type = remove_countryculture which = tuareg }
		command = { type = independence which = TRI }
		command = { type = domestic which = CENTRALIZATION value = -1 }
		command = { type = sleepevent which = 15499 }
	}
	action_b ={ # Crush the rebels
		name = "ACTIONNAME3392B"
		command = { type = revolt which = 740 }
		command = { type = revolt which = 740 }
		command = { type = revolt which = 741 }
		command = { type = province_revoltrisk which = 740 value = 8 }
		command = { type = province_revoltrisk which = 741 value = 8 }
        	command = { type = stability value = -2 }
	}
}

#The Independence of the Mameluks in Egypt#
event = {
	id = 3398
	trigger = {
		owned = {
			province = 746
			data = -1
		}
		NOT = {
			exists = EGY
		}
	}
	random = no
	country = TUR 
	name = "EVENTNAME3398"
	desc = "EVENTHIST3398"
	style = 4
	
	date = { day = 29 month = june year = 1786 }
	offset = 720

	action_a ={ # Accept their freedom
		name = "ACTIONNAME3398A"
		command = { type = remove_countryculture which = arabic }
		command = { type = flagname which = 1780 }
		command = { type = independence which = EGY }
		command = { type = domestic which = CENTRALIZATION value = -1 }
                command = { type = removecore which = 494 }
                command = { type = removecore which = 742 }
                command = { type = removecore which = 743 }
                command = { type = removecore which = 744 }
                command = { type = removecore which = 745 }
                command = { type = removecore which = 746 }
                command = { type = removecore which = 747 }
                command = { type = removecore which = 748 }
                command = { type = removecore which = 749 }
                command = { type = removecore which = 774 }
                command = { type = removecore which = 1727 }
		command = { type = sleepevent which = 15500 }
	}
	action_b ={ # Crush the rebels
		name = "ACTIONNAME3398B"
		command = { type = flagname which = 1780 }
		command = { type = revolt which = 494 }
		command = { type = revolt which = 742 }
		command = { type = revolt which = 743 }
		command = { type = revolt which = 743 }
		command = { type = revolt which = 744 }
		command = { type = revolt which = 744 }
		command = { type = revolt which = 745 }
		command = { type = revolt which = 746 }
		command = { type = revolt which = 747 }
		command = { type = revolt which = 748 }
		command = { type = revolt which = 749 }
		command = { type = revolt which = 1727 }
                command = { type = revolt which = 774 }
 		command = { type = province_revoltrisk which = 494 value = 8 }
		command = { type = province_revoltrisk which = 742 value = 8 }
		command = { type = province_revoltrisk which = 743 value = 8 }
		command = { type = province_revoltrisk which = 744 value = 8 }
		command = { type = province_revoltrisk which = 745 value = 8 }
		command = { type = province_revoltrisk which = 746 value = 8 }
		command = { type = province_revoltrisk which = 747 value = 8 }
		command = { type = province_revoltrisk which = 748 value = 8 }
		command = { type = province_revoltrisk which = 749 value = 8 }
		command = { type = province_revoltrisk which = 1727 value = 8 }
		command = { type = province_revoltrisk which = 774 value = 8 }
        	command = { type = stability value = -2 }
	}
}

#Turkish events by Hive

#The Moroccan Rebellion#
event = {
	id = 15016
	trigger = {
		owned = {
			province = 1733
			data = -1
		}
		owned = {
			province = 806
			data = -1
		}
		NOT = {
			exists = MOR
		}
	}
	random = no
	country = TUR
	name = "The Moroccan Rebellion"
	desc = "In the first decades of the 18th century the Beys and Deys (Janissary leaders) of Northern Africa were in a rebellious mood in the wake of the Peace of Carlowitz between the Ottoman Empire and the Holy League. The Ottman Empire were forced to give the various North African nations more autonomy."
	style = 4

	date = { day = 1 month = january year = 1710 }
	offset = 1000

	action_a ={ # Grant limited autonomy
		name = "Grant limited autonomy"
		#command = { type = remove_countryculture which = tuareg } 
		command = { type = independence which = MOR }
		command = { type = domestic which = CENTRALIZATION value = -1 }
		command = { type = sleepevent which = 15501 }
	}
	action_b ={ # Crush the rebels
		name = "Crush the rebels"
		command = { type = revolt which = 733 }
		command = { type = revolt which = 806 }
		command = { type = revolt which = 732 }
		command = { type = revolt which = 805 }
		command = { type = revolt which = 1733 }
		command = { type = revolt which = 1729 }
		command = { type = revolt which = 1734 }
		command = { type = revolt which = 1500 }
		command = { type = province_revoltrisk which = 733 value = 8 }
		command = { type = province_revoltrisk which = 806 value = 8 }
		command = { type = province_revoltrisk which = 732 value = 8 }
		command = { type = province_revoltrisk which = 805 value = 8 }
		command = { type = province_revoltrisk which = 1733 value = 8 }
		command = { type = province_revoltrisk which = 1729 value = 8 }
		command = { type = province_revoltrisk which = 1734 value = 8 }
		command = { type = province_revoltrisk which = 1500 value = 8 }
        	command = { type = stability value = -2 }
	}
}

#The Bulgarian Struggle for Independence#
event = {
	id = 15503
	trigger = {
		owned = {
			province = 321
			data = -1
		}
		owned = {
			province = 356
			data = -1
		}
		NOT = {
			exists = BUL
		}
	}
	random = no
	country = TUR
	name = "The Bulgarian Struggle for Independence"
	desc = "In April 1876 the Bulgarians revolted in the so called 'April Uprising', which was brutally crushed by the Ottoman troops. Altogether approximately 30,000 people were massacred, leading to a broad public reaction amongst Europeans who condemned the 'Bulgarian Horrors'. The strongest reaction, however, came from Russia. The enormous public outcry which the April Uprising had caused in Europe gave the Russians a long-waited chance to realise their long-term objectives with regard to the Ottoman Empire. But the other great powers, like in The Crimean War, did not want to see Russia crush the Ottoman Empire. This lead to the Conference of Constantinople, an unsuccesful attempt to seek a compromise regarding Bulgaria. With the breakdown of the conference, Russia decided to attack the Ottomans together with Romania in 1877. The Ottomans were soundly beaten, and a new conference, resulting in the Treaty of Berlin in 1878, saw the creation of an independent Bulgaria under nominal Ottoman rule."
	style = 5

	date = { day = 1 month = january year = 1876 }
	offset = 150

	action_a ={ # Crush the rebels
		name = "Crush the rebels"
		command = { type = revolt which = 321 }
		command = { type = revolt which = 356 }
		command = { type = revolt which = 922 }
		command = { type = province_revoltrisk which = 321 value = 8 }
		command = { type = province_revoltrisk which = 356 value = 8 }
		command = { type = province_revoltrisk which = 922 value = 8 }
		command = { type = relation which = RUS value = -100 }
		command = { type = relation which = U11 value = -100 }
		command = { type = relation which = U14 value = -50 }
		command = { type = relation which = FRA value = -50 }
		command = { type = trigger which = 15507 }
		command = { type = trigger which = 15508 }
        	command = { type = stability value = -2 }
	}
	
	action_b ={ # Grant limited autonomy
		name = "Grant limited autonomy"
		command = { type = independence which = BUL }
		command = { type = remove_countryculture which = syrian }
		command = { type = domestic which = CENTRALIZATION value = -1 }
		command = { type = relation which = RUS value = 100 }
		command = { type = relation which = U11 value = 100 }
		command = { type = relation which = U14 value = 50 }
		command = { type = relation which = FRA value = 50 }
		command = { type = sleepevent which = 15505 }
		command = { type = sleepevent which = 15507 }
		command = { type = sleepevent which = 15508 }
	}
}

#The Romanian Struggle for Independence#
event = {
	id = 15504
	trigger = {
		OR = {
			owned = {
			province = 322
			data = -1
			}
			owned = {
			province = 318
			data = -1
			}
		}
		NOT = {
			exists = U11
		}
	}
	random = no
	country = TUR
	name = "The Romanian Struggle for Independence"
	desc = "As in most European countries, 1848 brought revolution to Moldavia, Wallachia, and Transylvania, announced by the Tudor Vladimirescu's rebellion in 1821. Its goals - complete independence for the first two and national emancipation in the third - remained unfulfilled, but were the basis of the subsequent evolutions. The 1859 ascendancy of Alexander John Cuza as prince of both Moldavia and Wallachia under the nominal suzerainty of the Ottoman Empire united an identifiably Romanian nation under a single ruler. In 1862 the two principalities were formally united to form Romania, with Bucharest as its capital. In 1877, following a Russian-Romanian-Turkish war, Romania was recognized independent by Treaty of Berlin in 1878. In this treaty Romania acquired Dobrujda but was forced to surrender southern Bessarabia to Russia. Charles was crowned as Carol, the first King of Romania, in 1881."
	style = 5

	date = { day = 1 month = january year = 1862 }
	offset = 150

	action_a ={ # Grant limited autonomy
		name = "Grant limited autonomy"
		command = { type = independence which = U11 }
		command = { type = domestic which = CENTRALIZATION value = -1 }
		command = { type = sleepevent which = 15506 }
	}
	
	action_b ={ # Crush the rebels
		name = "Crush the rebels"
		command = { type = revolt which = 322 }
		command = { type = revolt which = 318 }
		command = { type = revolt which = 319 }
		command = { type = revolt which = 1951 }
		command = { type = revolt which = 323 }
		command = { type = revolt which = 320 }
		command = { type = province_revoltrisk which = 322 value = 8 }
		command = { type = province_revoltrisk which = 318 value = 8 }
		command = { type = province_revoltrisk which = 319 value = 8 }
		command = { type = province_revoltrisk which = 1951 value = 8 }
		command = { type = province_revoltrisk which = 323 value = 8 }
		command = { type = province_revoltrisk which = 320 value = 8 }
        	command = { type = stability value = -2 }
	}	
}

#Black Sea Supremacy# #based on an event idea seen in the forum
event = {
	id = 15113
	random = no
	country = TUR
	name = "Black Sea Supremacy"
	desc = "With Genoa out of the Black Sea, nothing could stop The Ottomans from taking control over Genoa's Crimean possesions. Ottoman Turks started to migrate into Crimea, and soon there were no trace of Genovese presence left."
	style = 1
	
	action_a ={
		name = "Excellent!"
		command = { type = stability value = 1 }
		command = { type = galleys which = -1 value = 10 }
		command = { type = provinceculture which = 464 value = turkish }
		command = { type = provinceculture which = 465 value = turkish }
		command = { type = provincereligion which = 464 value = sunni }
		command = { type = provincereligion which = 465 value = sunni }
		command = { type = addcore which = 464 }
		command = { type = addcore which = 465 }
	}
}

#The Fall of Constantinople#
event = { 
	id = 15040 
	trigger = { 
		owned = { province = 1953 data = -1 }
		control = { province = 1953 data = GRE }
		owned = { province = 476 data = -1 }
		control = { province = 476 data = -1 }
		event = 15037
		atwar = yes
		} 
	random = no 
	country = TUR
	name = "The Fall of Constantinople - again" 
	desc = "Our capital has been captured by the Greek dogs! Perhaps we should move the capital deeper into our realm, so it is safe from the Europeans?" 
	style = 5 

	date = { day = 1 month = january year = 1840 } 
	deathdate = { day = 1 month = january year = 1920 } 

	action_a ={  
		name = "Move the capital to Ankara" 
		command = { type = capital which = 476 }
		command = { type = population which = 476  value = 2000 } 
		command = { type = stability value = -1 } 
		command = { type = domestic which = CENTRALIZATION value = 1 }
	} 
	action_b ={ 
		name = "We shall stay and fight!" 
		command = { type = stability value = 1 }  
	} 
}

#State Bankruptcy#
event = {

	id = 15118
	trigger = {
		countrysize = 25
	}
	random = no
	country = TUR
	name = "State Bankruptcy"
	desc = "Following the collapse of the Vienna stock market in 1873, the Ottomans faced a financial crisis. 'The Sick Man of Europe' was by this time unable to maintain a working economy without receiving huge loans from Europe - but following the crash of the Vienna stock market, these loans stopped pouring in. The Ottoman economy, unable to withstand the pressure, collapsed and resulted in a state bankruptcy in 1875."
	style = 5

	date = { day = 1 month = january year = 1873 }
	offset = 150
	deathdate = { day = 1 month = january year = 1877 }

	action_a ={			#Declare State Bankruptcy#
		name = "Declare State Bankruptcy"
		command = { type = treasury value = -1000 }
		command = { type = loansize which = 200 }
		command = { type = inflation value = 15 }
		command = { type = stability value = -4 }
		command = { type = losemanufactory which = -1 }
		command = { type = losemanufactory which = -1 }
		command = { type = losemanufactory which = -1 }
		command = { type = losebuilding which = -1 value = shipyard }
		command = { type = losebuilding which = -1 value = barrack }
		command = { type = losebuilding which = -1 value = barrack }
		command = { type = desertion which = -1 value = 25000 }
		command = { type = desertion which = -1 value = 15000 }
		command = { type = desertion which = -1 value = 10000 }
		command = { type = technology which = muslim }

	}
}

#End of The Algerian Rebellion# 
event = {
    	id = 15496
    	trigger = {
		owned = {
            		province = 737
            		data = -1
        	}
        	NOT = {
            		exists = ALD
        	}
		event = 3897
    }
    random = no
    country = TUR
    name = "End of The Algerian Rebellion"
    desc = "My lord, we have finally stamped out the Algerian Rebellion!"
    style = 4

    date = { day = 1 month = january year = 1750 }
    offset = 1000

    action_a ={
        name = "Excellent!"
        command = { type = province_revoltrisk which = 734 value = -8 }
	command = { type = province_revoltrisk which = 735 value = -8 }
	command = { type = province_revoltrisk which = 736 value = -8 }
	command = { type = province_revoltrisk which = 737 value = -8 }
	command = { type = province_revoltrisk which = 738 value = -8 }
	command = { type = province_revoltrisk which = 1508 value = -8 }
        command = { type = stability value = 1 }
    }
}

#End of The Serbian Rebellion#
event = {
	id = 15497
	trigger = {
		owned = {
			province = 355
			data = -1
		}
		NOT = {
			exists = SER
		}
		event = 3399
	}
	random = no
	country = TUR
	name = "End of The Serbian Rebellion"
	desc = "My lord, we have finally stamped out the Serbian Rebellion!"
	style = 5
	
	date = { day = 1 month = january year = 1840 }
	offset = 5000

	action_a ={
		name = "Excellent!"
		command = { type = province_revoltrisk which = 355 value = -8 }
		command = { type = province_revoltrisk which = 363 value = -8 }
		command = { type = province_revoltrisk which = 364 value = -8 }
		command = { type = province_revoltrisk which = 1000 value = -8 }
		command = { type = province_revoltrisk which = 1957 value = -8 }
        	command = { type = stability value = 1 }
	}
}

#End of The Tunisian Rebellion#
event = {
	id = 15498
	trigger = {
		owned = {
			province = 739
			data = -1
		}
		NOT = {
			exists = TUN
		}
		event = 3391
	}
	random = no
	country = TUR
	name = "End of The Tunisian Rebellion"
	desc = "My lord, we have finally stamped out the Tunisian Rebellion!"
	style = 4

	date = { day = 1 month = january year = 1743 }
	offset = 1000

	action_a ={
		name = "Excellent!"
		command = { type = province_revoltrisk which = 739 value = -8 }
		command = { type = province_revoltrisk which = 985 value = -8 }
		command = { type = province_revoltrisk which = 986 value = -8 }
        	command = { type = stability value = 1 }
	}
}

#End of The Tripolitanian Rebellion#
event = {
	id = 15499
	trigger = {
		owned = {
			province = 740
			data = -1
		}
		owned = {
			province = 741
			data = -1
		}
		NOT = {
			exists = TRI
		}
		event = 3392
	}
	random = no
	country = TUR
	name = "End of The Tripolitanian Rebellion"
	desc = "My lord, we have finally stamped out the Tripolitanian Rebellion!"
	style = 4

	date = { day = 1 month = january year = 1750 }
	offset = 1000

	action_a ={
		name = "Excellent!"
		command = { type = province_revoltrisk which = 740 value = -8 }
		command = { type = province_revoltrisk which = 741 value = -8 }
        	command = { type = stability value = 1 }
	}
}

#End of The Egyptian Rebellion#
event = {
	id = 15500
	trigger = {
		owned = {
			province = 746
			data = -1
		}
		NOT = {
			exists = EGY
		}
		event = 3398
	}
	random = no
	country = TUR 
	name = "End of The Egyptian Rebellion"
	desc = "My lord, we have finally stamped out the Egyptian Rebellion!"
	style = 5
	
	date = { day = 29 month = june year = 1826 }
	offset = 720

	action_a ={
		name = "Excellent!"
 		command = { type = province_revoltrisk which = 494 value = -8 }
		command = { type = province_revoltrisk which = 742 value = -8 }
		command = { type = province_revoltrisk which = 743 value = -8 }
		command = { type = province_revoltrisk which = 744 value = -8 }
		command = { type = province_revoltrisk which = 745 value = -8 }
		command = { type = province_revoltrisk which = 746 value = -8 }
		command = { type = province_revoltrisk which = 747 value = -8 }
		command = { type = province_revoltrisk which = 748 value = -8 }
		command = { type = province_revoltrisk which = 749 value = -8 }
		command = { type = province_revoltrisk which = 1727 value = -8 }
		command = { type = province_revoltrisk which = 774 value = -8 }
        	command = { type = stability value = 1 }
	}
}

#End of The Moroccan Rebellion#
event = {
	id = 15501
	trigger = {
		owned = {
			province = 733
			data = -1
		}
		owned = {
			province = 806
			data = -1
		}
		NOT = {
			exists = MOR
		}
		event = 15016
	}
	random = no
	country = TUR
	name = "End of The Moroccan Rebellion"
	desc = "My lord, we have finally stamped out the Moroccan Rebellion!"
	style = 4

	date = { day = 1 month = january year = 1750 }
	offset = 1000

	action_a ={
		name = "Excellent!"
		command = { type = province_revoltrisk which = 733 value = -8 }
		command = { type = province_revoltrisk which = 806 value = -8 }
		command = { type = province_revoltrisk which = 732 value = -8 }
		command = { type = province_revoltrisk which = 805 value = -8 }
		command = { type = province_revoltrisk which = 1733 value = -8 }
		command = { type = province_revoltrisk which = 1729 value = -8 }
		command = { type = province_revoltrisk which = 1734 value = -8 }
		command = { type = province_revoltrisk which = 1500 value = -8 }
        	command = { type = stability value = 1 }
	}
}

#End of The Greek Rebellion#
event = { 
	id = 15502
	trigger = {
        	owned = {
            		province = 359
			data = -1
        	}
        	NOT = {
            		exists = GRE
        	}
		event = 15005
    	}
	random = no
	country = TUR
	name = "End of The Greek Rebellion"
	desc = "My lord, we have finally stamped out the Greek Rebellion!"
	style = 5
	
	date = { day = 1 month = april year = 1861 } 
	offset = 150 
	deathdate = { day = 1 month = january year = 1868 }
	
	action_a = {
		name = "Excellent!"
        	command = { type = province_revoltrisk which = 360 value = -8 }
		command = { type = province_revoltrisk which = 359 value = -8 }
		command = { type = province_revoltrisk which = 358 value = -8 }
        	command = { type = province_revoltrisk which = 1369 value = -8 }
		command = { type = province_revoltrisk which = 1954 value = -8 }
		command = { type = province_revoltrisk which = 1956 value = -8 }
        	command = { type = stability value = 1 }
	}	
}

#End of The Bulgarian Rebellion#
event = {
	id = 15505
	trigger = {
		owned = {
			province = 321
			data = -1
		}
		owned = {
			province = 356
			data = -1
		}
		NOT = {
			exists = BUL
		}
		event = 15503
	}
	random = no
	country = TUR
	name = "End of The Bulgarian Rebellion"
	desc = "My lord, we have finally stamped out the Bulgarian Rebellion!"
	style = 5

	date = { day = 1 month = january year = 1916 }
	offset = 150

	action_a ={
		name = "Excellent!"
		command = { type = province_revoltrisk which = 321 value = -8 }
		command = { type = province_revoltrisk which = 356 value = -8 }
		command = { type = province_revoltrisk which = 922 value = -8 }
        	command = { type = stability value = 1 }
	}
}

#End of The Romanian Rebellion#
event = {
	id = 15506
	trigger = {
		owned = {
			province = 322
			data = -1
		}
		owned = {
			province = 318
			data = -1
		}
		NOT = {
			exists = U11
		}
		event = 15504
	}
	random = no
	country = TUR
	name = "End of The Romanian Rebellion"
	desc = "My lord, we have finally stamped out the Romanian Rebellion!"
	style = 5

	date = { day = 1 month = january year = 1902 }
	offset = 150
	
	action_a ={
		name = "Excellent!"
		command = { type = province_revoltrisk which = 322 value = -8 }
		command = { type = province_revoltrisk which = 318 value = -8 }
		command = { type = province_revoltrisk which = 319 value = -8 }
		command = { type = province_revoltrisk which = 1951 value = -8 }
		command = { type = province_revoltrisk which = 323 value = -8 }
		command = { type = province_revoltrisk which = 320 value = -8 }
        	command = { type = stability value = 1 }
	}	
}

event = {

	id = 12345820
		trigger = {
		owned = { province = 1953 data = -1 }
                 ai = yes }
	random = no
	country = TUR
	name = "AI_EVENT"
	desc = "AI_DESC"
	style = 2

	date = { day = 1 month = january year = 1337 }
	offset = 500
	deathdate = { day = 1 month = january year = 1460 }

	action_a ={
		name = "Fine"
                command = { type = ai   which = turkey2.ai }
	}
}

event = {

	id = 12345821
	trigger = { ai = yes }
	random = no
	country = TUR
	name = "AI_EVENT"
	desc = "AI_DESC"
	style = 2

	date = { day = 1 month = january year = 1460 }
	offset = 500
	deathdate = { day = 1 month = january year = 1550 }

	action_a ={
		name = "Fine"
                command = { type = ai   which = turkey3.ai }
	}
}

event = {

	id = 12345822
	trigger = { ai = yes }
	random = no
	country = TUR
	name = "AI_EVENT"
	desc = "AI_DESC"
	style = 2

	date = { day = 1 month = january year = 1550 }
	offset = 500
	deathdate = { day = 1 month = january year = 1914 }

	action_a ={
		name = "Fine"
                command = { type = ai   which = turkey.ai }
	}
}

event = {

	id = 12345823
	trigger = { 
                ai = yes 
                badboy = 20
                NOT = { badboy = 30 }
        }
	random = no
	country = TUR
	name = "AI_EVENT"
	desc = "AI_DESC"
	style = 2

	date = { day = 1 month = january year = 1337 }
	offset = 500
	deathdate = { day = 1 month = january year = 1550 }

	action_a ={
		name = "Fine"
                command = { type = badboy   value = -10 }
	}
}

event = {

	id = 12345824
	trigger = { 
	        event = 12345823
                ai = yes 
                badboy = 20
                NOT = { badboy = 30 }
        }
	random = no
	country = TUR
	name = "AI_EVENT"
	desc = "AI_DESC"
	style = 2

	date = { day = 1 month = january year = 1337 }
	offset = 500
	deathdate = { day = 1 month = january year = 1550 }

	action_a ={
		name = "Fine"
                command = { type = badboy   value = -10 }
	}
}

event = {

	id = 12345825
	trigger = {
	        event = 12345823
                ai = yes 
                badboy = 30
        }
	random = no
	country = TUR
	name = "AI_EVENT"
	desc = "AI_DESC"
	style = 2

	date = { day = 1 month = january year = 1550 }
	offset = 500
	deathdate = { day = 1 month = january year = 1650 }

	action_a ={
		name = "Fine"
                command = { type = badboy   value = -20 }
	}
}

#Suleyman demands the keys to Hungary#
event = {
	id = 12345826
	random = no
	country = TUR
	name = "Suleyman demands the keys to Hungary"
	desc = "When Suleyman I became Sultan of the Ottoman Empire in 1520, he was faced with a grave crisis. The rise of the Habsburgs in Austria and Spain had created a superpower. Moreover, the Habsburgs had a potential claim to the Hungarian throne. Should the Habsburgs seize that throne, their armies would be within striking distance of Constantinople itself. In order to fend off this developing threat, Ottoman diplomats strove to strengthen relations with Venice and France. Hungary, however, must pay tribute to the Sultan, must grant the Ottoman troops transit rights through their country, and must renounce all ties with the Habsburgs. If they refused, war would surely follow."
	style = 2

	date = { day = 22 month = September year = 1520 }
	offset = 10
	deathdate = { day = 22 month = August year = 1526 }

	action_a = {
		name = "ACTIONNAME19008A" #Send the messengers
		command = { type = relation which = HUN value = -200 }
		command = { type = relation which = HAB value = -200 }
		command = { type = addcore which = 316 } 
		command = { type = addcore which = 317 } 
		command = { type = addcore which = 323 } 
		command = { type = addcore which = 324 } 
		command = { type = addcore which = 325 } 
		command = { type = addcore which = 326 } 
		command = { type = addcore which = 352 } 
		command = { type = addcore which = 353 } 
		command = { type = addcore which = 354 } 
		command = { type = addcore which = 365 } 
		command = { type = addcore which = 366 } 
		command = { type = addcore which = 1615 } 
		command = { type = addcore which = 1952 } 
		command = { type = addcore which = 1950 } 
	}
}


#(1699-1780) The Treaty of Karlowitz
event = {
	id = 12345827
	trigger = {
		owned = { province = 353 data = HAB } #Buda
		owned = { province = 325 data = HAB } #Eger
	}
	random = no
	country = TUR
	name = "EVENTNAME12345827" #The Treaty of Karlowitz
	desc = "EVENTHIST12345827"
	#-#Having been defeated decisively by a coalition of Austria, Russia, Poland and Venice and lost control over large chunks of the Balkan, the Ottoman Empire was forced to sign a humiliating peace treaty in 1699 in the Serbian city of Karlowitz. All Hungary except the Banat of Temesvar, Croatia and Slavonia were ceded to Austria, Podolia to Poland, Dalmatia and the Peloponnesus to Venice. Russia got Azov in a separate treaty signed in 1700. Except for Greece, none of these losses was ever recovered permanently. The disintegration of the Empire had begun.

	date = { day = 26 month = january year = 1699 }
	offset = 200
	deathdate = { day = 29 month = december year = 1780 }

	action_a = {
		name = "ACTIONNAME301015A" #The Empire is doomed
		command = { type = removecore which = 316 } 
		command = { type = removecore which = 317 } 
		command = { type = removecore which = 323 } 
		command = { type = removecore which = 324 } 
		command = { type = removecore which = 325 } 
		command = { type = removecore which = 326 } 
		command = { type = removecore which = 352 } 
		command = { type = removecore which = 353 } 
		command = { type = removecore which = 354 } 
		command = { type = removecore which = 365 } 
		command = { type = removecore which = 366 } 
		command = { type = removecore which = 1615 } 
		command = { type = removecore which = 1952 } 
		command = { type = removecore which = 1950 } 
	}
}