#####Ottoman Major Events#####
#			By   #
# Joakim 'Greven' Bergqwist  #
#			     #
# 			and  #
#			     #
# Henrik 'Doomdark' Fåhraeus #
##############################
######EEP RUS Additions#######
#Chimera, Ale & Panzerkreuzer#
##############################

#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 = 1419 }
	offset = 2000
	deathdate = { day = 1 month = january year = 1491 }
	
	action_a ={ # End trade agreements with Venice and Genoa.
		name = "ACTIONNAME3352A"
		command = { type = cot which = 357 }
		command = { type = relation which = VEN value = -150 }
		command = { type = relation which = GEN value = -100 }
		command = { type = domestic which = MERCANTILISM value = 2 }
		command = { type = merchants value = 6 }
	}
	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 = trade value = 500 }
	}
}

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

	date = { day = 1 month = january year = 1419 }
	offset = 30
	deathdate = { day = 1 month = january year = 1491 }
	
	action_a ={			#Constantinople is new capital#
		name = "ACTIONNAME3353A"
		command = { type = capital which = 357 }
		command = { type = domestic which = CENTRALIZATION  value = 1 }
		command = { type = provinceculture which = 357 value = turkish }
		command = { type = provinceculture which = 477 value = turkish }
		command = { type = provinceculture which = 478 value = turkish }
		command = { type = provincereligion which = 477 value = sunni }
		command = { type = provincereligion which = 478 value = sunni }
		command = { type = provincereligion which = 357 value = sunni }
		command = { type = stability value = 2 }
	}
	action_b ={			#Let us keep the Old one instead#
		name = "ACTIONNAME3353B"
		command = { type = provinceculture which = 358 value = turkish }
		command = { type = provinceculture which = 477 value = turkish }
		command = { type = provinceculture which = 478 value = turkish }
		command = { type = provincereligion which = 477 value = sunni }
		command = { type = provincereligion which = 478 value = sunni }
		command = { type = domestic which = CENTRALIZATION  value = -3 }
		command = { type = stability value = -1 }
	}
}

#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 }
		command = { type = inf which = -1 value = 5000 }
		command = { type = cav which = -3 value = 5000 }
	}
	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 }
		command = { type = warships which = -1 value = 5 }
	}
}

#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
	random = no
	country = TUR
	name = "EVENTNAME3357"
	desc = "EVENTHIST3357"
	style = 1
	date = { day = 1 month = january year = 1454 }
	offset = 364
	
	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 = 4 }
		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 = 2 }
		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 = 357 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 = 357 value = shipyard }
	}
	action_c ={ # Reform the army instead
		name = "ACTIONNAME3367C"
		command = { type = land value = 500 }
	}
}

#The 1st Celali Uprising#
event = {
	id = 3370
	trigger = {
		owned = {
			province = 474 # 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 = 474}
		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 = 474 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 }
		ai = yes
		NOT = {
			exists = CAL
		}
	}
	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 = 1819 }

	action_a ={ # Assume the title of Caliph
		name = "ACTIONNAME3371A"
		command = { type = inherit  which = MAM }
		command = { type = vassal which = ARA }
		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 }
	}
}

#The Ottoman Vassalization of Al-Djazaïr#
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 = 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 }
	}
}

#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 = MAM
		}
	}
	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 = 357
			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 = -1000 }
		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 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 }
	}
}

#Kösem 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 Kösem
		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 = 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 = quality 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 = domestic which = quality 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 = 48 value = 8 }
		command = { type = stability value = -6 }
		command = { type = technology which = torthodox }
		command = { type = sleepevent which = 3378 } # The Shusf rebellion
	}
}

#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 = quality 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 = domestic which = quality 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 = quality value = -1 }
		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 = 474}
		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 }
	}
}

#The Murder of Kösem 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 ={ # Kösem is murdered
		name = "ACTIONNAME3384A"
		command = { type = revoltrisk which = 12 value = 5 }
	}
}

#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 = "ACTIONNAME3386C"
		command = { type = domestic which = CENTRALIZATION value = -1 }
	}
}

#The Treaty of Kasr-i Sirin with Persia#
event = {
	id = 3387
	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 }
	}
}

#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 = independence which = TUN }
		command = { type = domestic which = CENTRALIZATION value = -1 }
	}
	action_b ={ # Crush the rebels
		name = "ACTIONNAME3391B"
		command = { type = revolt which = 739 }
		command = { type = revolt which = 739 }
		command = { type = revolt which = 739 }
		command = { type = revoltrisk which = 36 value = 4 }
		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 = independence which = TRI }
		command = { type = domestic which = CENTRALIZATION value = -1 }
	}
	action_b ={ # Crush the rebels
		name = "ACTIONNAME3392B"
		command = { type = revolt which = 740}
		command = { type = revolt which = 740}
		command = { type = revolt which = 741}
		command = { type = revoltrisk which = 36 value = 4 }
		command = { type = stability value = -2 }
	}
}

#Ali Bey's Rebellion in Egypt#
event = {
	id = 3394
	trigger = {
		owned = {
			province = 746
			data = -1
		}
		NOT = {
			exists = MAM
		}
	}
	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 Independence of the Mameluks in Egypt#
event = {
	id = 3398
	trigger = {
		owned = {
			province = 746
			data = -1
		}
		NOT = {
			exists = MAM
		}
	}
	random = no
	country = TUR 
	name = "EVENTNAME3398"
	desc = "EVENTHIST3398"
	style = 4
	
	date = { day = 29 month = june year = 1786 }
	offset = 720
	deathdate = { day = 1 month = january year = 1808 }

	action_a ={ # Accept their freedom
		name = "ACTIONNAME3398A"
		command = { type = independence which = MAM }
		command = { type = domestic which = CENTRALIZATION value = -1 }
		command = { type = secedeprovince which = MAM value = 742 }#Quattara 
		command = { type = secedeprovince which = MAM value = 743 }#Cataract 
		command = { type = secedeprovince which = MAM value = 747 }#Nile 
		command = { type = secedeprovince which = MAM value = 748 }#Batn al Hajar 
		command = { type = secedeprovince which = MAM value = 749 }#Nubia 
		command = { type = secedeprovince which = MAM value = 494 }#Sinai 
	}
	action_b ={ # Crush the rebels
		name = "ACTIONNAME3398B"
		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 = 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 = domestic which = CENTRALIZATION value = -1 }
	}
	action_b ={ # Crush the rebels
		name = "ACTIONNAME3399B"
		command = { type = revolt which = 355 }
		command = { type = revolt which = 355 }
		command = { type = revolt which = 363 }
		command = { type = revolt which = 364 }
		command = { type = stability value = -2 }
	}
}

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

	date = { day = 1 month = april year = 1419 } 
	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 }
	}
}

##############################
#####    Turkey Events   #####
#####    by  driftwood   #####
##############################


event = { 
        id = 23002 
        random = no 
        country = TUR 
        name = "EVENTNAME23002" 
        desc = "EVENTHIST23002" 
        style = 1 
        action_a = { # OK 
                   name = "ACTIONNAME23002A" 
                   command = { type = revolt which = 358 } 
                   command = { type = revolt which = 477 } 
		   command = { type = inf which = -1 value = 5000 }
	           command = { type = cav which = -3 value = 5000 }
                   command = { type = trigger which = 95707 } 
                   command = { type = trigger which = 95708 } #BYZ
        } 
} 

event = { 
        id = 23003 
        random = no 
        country = TUR 
        name = "EVENTNAME23003" 
        desc = "EVENTHIST23003" 
        style = 1 

        action_a = { # OK 
                   name = "ACTIONNAME23003A" 
                   command = { type = revolt which = 358 } 
                   command = { type = revolt which = 358 } 
                   command = { type = revolt which = 477 } 
                   command = { type = revolt which = 477 } 
		   command = { type = inf which = -1 value = 5000 }
	           command = { type = cav which = -3 value = 5000 }
                   command = { type = trigger which = 95707 } 
                   command = { type = trigger which = 95708 } #BYZ
        } 
} 

# Treaty of 1424 - Ottomans # 

event = { 
        id = 23006 
        random = no 
        country = TUR 
        style = 1 
        name = "EVENTNAME23006" 
        desc = "EVENTHIST23006" 

        action_a = { # Accept the treaty 
                   name = "ACTIONNAME23006A" 
                   command = { type = vassal which = BYZ } 
                   } 
        } 

# Fool Me Once # 
event = { 
        id = 23013 
        random = NO 
        country = TUR 
        name = "EVENTNAME23013" 
        desc = "EVENTHIST23013" 
        style = 1 

        action_a = { # Cancel the treaty 
                   name = "ACTIONNAME23013A" 
                   command = { type = relation which = BYZ value = -200 } 
                   command = { type = INF which = -2 value = 10000 } 
		   command = { type = trigger which = 23021 }
                   } 
        action_b = { # Feebly accept Constantine's demands 
                   name = "ACTIONNAME23013B" 
                   command = { type = treasury value = -100 } 
                   command = { type = relation which = BYZ value = 100 } 
                   command = { type = stability value = -1 } 
                   command = { type = revoltrisk value = 2 } 
                   command = { type = revolt which = -1 } 
		   command = { type = trigger which = 23018 }
                   } 
        } 

event = { 
        id = 23015 
        random = NO 
        country = TUR 
        name = "EVENTNAME23015" 
        desc = "EVENTHIST23015" 
        style = 1 

        action_a = { # Hire Urban 
                   name = "ACTIONNAME23014B" 
                   command = { type = treasury value = -150 } 
                   command = { type = domestic which = offensive value = -1 } 

                   command = { type = ART which = -2 value = 10 } 
                   } 
        action_b = { # We can't afford him 
                   name = "ACTIONNAME23014A" 
                   command = { type = domestic which = offensive value = 1 } 
		   command = { type = domestic which = quality value = -1 }
                   } 
        } 



##############################
#####    Turkey Events   #####
#####      by  Crook     #####
##############################


#Military Reforms#
event = {
	id = 50000
	random = no
	country = TUR
	name = "EVENTNAME50000"
	desc = "EVENTHIST50000"
	style = 1

	date = { day = 1 month = january year = 1481 }
	offset = 1500
	deathdate = { day = 1 month = june year = 1512 }

	action_a ={ 
		name = "ACTIONNAME50000A"
		command = { type = land value = 1000 }
		command = { type = naval value = 1000 }
		command = { type = infra value = 500 }
		command = { type = treasury value = -200 }
		command = { type = domestic which = centralization value = -1 }
		command = { type = warships which = -1 value = 10 }
		command = { type = domestic which = OFFENSIVE value = 1 }
	}
	action_b ={
		name = "ACTIONNAME50000B"
		command = { type = land value = 500 }
		command = { type = naval value = 500 }
		command = { type = warships which = -1 value = 5 }
		command = { type = revoltrisk which = 48 value = 4 }
		command = { type = stability value = -1 }
		command = { type = domestic which = OFFENSIVE value = 1 }
	}
	action_c ={ 
		name = "ACTIONNAME50000C"
		command = { type = infra value = 1000 }
		command = { type = treasury  value = -100 }
		command = { type = domestic which = centralization value = -1 }
	}
}

#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 }
		command = { type = gainbuilding which = -1 value = courthouse }
		command = { type = gainbuilding which = -1 value = courthouse }
		command = { type = gainbuilding which = -1 value = courthouse }
	}
}

#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 }
		command = { type = stability value = 2 }
		command = { type = sleepevent which = 24046 }
	}
}

#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 = -50 }
		command = { type = relation which = HAB value = -50 }
		command = { type = relation which = POL value = -50 }
		command = { type = relation which = HUN value = -50 }
		command = { type = relation which = ALD value = -50 }
		command = { type = relation which = MOR value = -50 }
		command = { type = relation which = RUS value = -50 }
		command = { type = domestic which = offensive value = -1}
	}
	action_b ={ # Reform the military
		name = "ACTIONNAME3383B"
		command = { type = land value = 1500 }
		command = { type = naval value = 500 }
		command = { type = treasury value = -300 }
		command = { type = stability value = -1 }
		command = { type = revoltrisk which = 48 value = 5 }
	}
}

#The Age of the Köprülüs#
event = {
	id = 3385
	random = no
	country = TUR
	name = "EVENTNAME3385"
	desc = "EVENTHIST3385"
	style = 3
	
	date = { day = 15 month = september year = 1656 }

	action_a ={ # Support the Koprulu Family
		name = "ACTIONNAME3385A"
		command = { type = ADM which = 6 value = 60 }
		command = { type = MIL which = 5 value = 60 }
		command = { type = domestic which = CENTRALIZATION value = 2 }
		command = { type = stability value = 2 }
		command = { type = revolt which = -1}
		command = { type = revolt which = -1}
		command = { type = revolt which = -1}
		command = { type = revolt which = -1}
		command = { type = domestic which = aristocracy value = -1 }
		command = { type = gainbuilding which = -1 value = courthouse }
		command = { type = gainbuilding which = -1 value = courthouse }
		command = { type = land value = 500 }
	}
	action_b ={ # Rely on other advisors.
		name = "ACTIONNAME3385B"
		command = { type = stability value = -1 }
		command = { type = domestic which = CENTRALIZATION value = -1 }
	}
}

#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 = 4300
	deathdate = {day = 30 month = may year = 1736 }
	
	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 }
		command = { type = DIP which = 3 value = 145 }
		command = { type = ADM which = 4 value = 145 }
		command = { type = MIL which = 2 value = 145 }
	}
	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 }
	}
}

#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 = -5000 }
	}
}

#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 = -5000 }
		command = { type = population which = 476 value = -2000 }
	}
}

#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 = provincetax which = -2 value = -2 }
		command = { type = sleepmonarch which = 04089 }
		command = { type = stability value = -1 }
	}
	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 = revolt which = -2 }
		command = { type = stability value = -3 }
		command = { type = revoltrisk which = 24 value = 4 }
		command = { type = sleepevent which = 50001 }
		command = { type = sleepmonarch which = 04090 }
		command = { type = wakemonarch which = 04099 }
	}
}

#Execution of Patrona Halil#
event = {
	id = 50001
	random = no
	country = TUR
	name = "EVENTNAME50001"
	desc = "EVENTHIST50001"
	style = 4
	
	date = { day = 15 month = november year = 1730 }

	action_a = { 
		name = "ACTIONNAME50001A"
		command = { type = stability value = 1 }
		command = { type = revolt which = -2  }
	}
}


#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 = -700 }
		command = { type = land value = 2000 }
		command = { type = naval value = 1200 }
		command = { type = stability value = -1 }
		command = { type = revoltrisk which = 48 value = 3 }
		command = { type = MIL which = 3 value = 72 }
		command = { type = ART which = -1 value = 20 }
		
	}
	action_b ={ # Reform military
		name = "ACTIONNAME3400B"
		command = { type = land value = 600 }
		command = { type = naval value = 300 }
		command = { type = stability value = -1 }
		command = { type = revoltrisk which = 24 value = 2 }
	}
	action_c ={ # Let the Janissaries enjoy their privileges.
		name = "ACTIONNAME3400C"
		command = { type = stability value = 1 }
		command = { type = relation which = PER value = -50 }
		command = { type = relation which = HAB value = -50 }
		command = { type = relation which = POL value = -50 }
		command = { type = relation which = HUN value = -50 }
		command = { type = relation which = ALD value = -50 }
		command = { type = relation which = MOR value = -50 }
		command = { type = relation which = RUS value = -50 }
	}
}

#Husseyn Koprollu reforms#
event = {
	id = 50002
	random = no
	country = TUR
	name = "EVENTNAME50002"
	desc = "EVENTHIST50002"
	style = 3

	date = { day = 1 month = june year = 1698 }


	action_a ={		#An Excellent Minister!#
		name = "ACTIONNAME50002A"
		command = { type = DIP which = 4 value = 52 }
		command = { type = ADM which = 6 value = 52 }
		command = { type = MIL which = 4 value = 52 }
		command = { type = stability value = 1 }
		command = { type = land value = 200 }
		command = { type = infra value = 800 }
		command = { type = provincetax which = -1 value = 1 }
		command = { type = provincetax which = -1 value = 1 }
	}
}

#Raghib Pasha reforms#
event = {

	id = 50003
	random = no
	country = TUR
	name = "EVENTNAME50003"
	desc = "EVENTHIST50003"
	style = 4

	date = { day = 1 month = june year = 1758 }


	action_a ={		#An Excellent Minister!#
		name = "ACTIONNAME50003A"
		command = { type = DIP which = 3 value = 60 }
		command = { type = ADM which = 4 value = 60 }
		command = { type = MIL which = 3 value = 60 }
		command = { type = stability value = 1 }
		command = { type = land value = 200 }
		command = { type = infra value = 800 }
		command = { type = provincetax which = -1 value = 2 }
		command = { type = provincetax which = -1 value = 1 }
		command = { type = domestic which = centralization value = 1 }
	}
}

#The Economic Reforms of Mehmed II#
event = {
	id = 50004
	random = no
	country = TUR
	name = "EVENTNAME50004"
	desc = "EVENTHIST50004"
	style = 1
	date = { day = 1 month = january year = 1455 }
	offset = 2000
	deathdate = { day = 1 month = january year = 1481 }
	
	action_a ={
		name = "ACTIONNAME50004A"
		command = { type = treasury value = 900 }		
		command = { type = INFLATION value = 6 }
		command = { type = domestic which = centralization value = 1 }
		command = { type = domestic which = aristocracy value = -1 }
		command = { type = stability value = -1 }
		command = { type = gainbuilding which = -1 value = bailiff }
	}
	action_b ={ 
		name = "ACTIONNAME50004B"
		command = { type = treasury value = 150 }
		command = { type = gainbuilding which = -1 value = bailiff }
		command = { type = stability value = -1 }
		command = { type = domestic which = aristocracy value = 1 }
	}
}

#Before the Köprülüs#
event = {
	id = 50005
	random = no
	country = TUR
	name = "EVENTNAME50005"
	desc = "EVENTHIST50005"
	style = 3
	
	date = { day = 1 month = january year = 1651 }

	action_a ={ 
		name = "ACTIONNAME50005A"
		command = { type = ADM which = 4 value = 24 }
		command = { type = MIL which = 3 value = 24 }
		command = { type = treasury value = 70 }
	}
}

#Before the Köprülüs#
event = {
	id = 50006
	random = no
	country = TUR
	name = "EVENTNAME50006"
	desc = "EVENTHIST50006"
	style = 3
	
	date = { day = 1 month = february year = 1653 }

	action_a ={ 
		name = "ACTIONNAME50006A"
		command = { type = ADM which = -1 value = 43 }
		command = { type = MIL which = -1 value = 43 }
		command = { type = domestic which = centralization value = -2 }
		command = { type = domestic which = quality 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 = stability value = -2 }
		command = { type = revoltrisk which = 36 value = 3 }
		command = { type = land value = -300 }
		command = { type = infra value = -300 }
	}
}

#The Age of the Köprülüs#
event = {
	id = 50007
	random = no
	country = TUR
	name = "EVENTNAME50007"
	desc = "EVENTHIST3385"
	style = 3
	
	date = { day = 1 month = november year = 1661 }

	action_a ={ # Support the Koprulu Family
		name = "ACTIONNAME50007A"
		command = { type = ADM which = 6 value = 180 }
		command = { type = MIL which = 5 value = 180 }
		command = { type = domestic which = CENTRALIZATION value = 1 }
		command = { type = domestic which = offensive value = 1 }
		command = { type = gainbuilding which = -1 value = cityrights }
		command = { type = gainbuilding which = -1 value = cityrights }
		command = { type = infra value = 500 }
	}
}

#Sheikh-ul-Islam Office Powers Curtailed#
event = {
	id = 50008
	random = no
	country = TUR
	name = "EVENTNAME50008"
	desc = "EVENTHIST50008"
	style = 3
	date = { day = 1 month = january year = 1605 }
	offset = 364

	action_a ={ 
		name = "ACTIONNAME50008A"
		command = { type = domestic which = CENTRALIZATION value = 1 }
		command = { type = domestic which = INNOVATIVE value = 1 }
		command = { type = stability value = -1 }
	}
	action_b ={ # Decline
		name = "ACTIONNAME50008B"
		command = { type = stability value = 1 }
		command = { type = domestic which = INNOVATIVE value = -1 }
	}
}

#Big Suzerain for a Small Country!#
event = {
	id = 95461
	trigger = {
		event = 95458
		NOT = {
			vassal   = { country = TUR country = u19 }
			}
		}
	random = no
	country = TUR
	name = "EVENTNAME95461"
	desc = "EVENTHIST95461"
	style = 1
	
	action_a = { #Great!#
		   name = "ACTIONNAME95461A"
		   command = { type = stability value = 1 }
		   command = { type = relation which = u19 value = 100 }
		   command = { type = vassal which = u19 }
		   command = { type = treasury value = 80 }
		   command = { type = vp value = 20 }
		   command = { type = domestic which = centralization value = 1 }
		   command = { type = domestic which = aristocracy value = -1 }
	 	   command = { type = domestic which = serfdom value = 3 }
	}
}

#Siege of Constantinople has failed#
event = { 
        id = 95707 
	trigger = {
		event = 23002
		OR = {
			event = 23003
			}
		}
        random = no 
        country = TUR 
        name = "EVENTNAME95707" 
        desc = "EVENTHIST95707" 
	date = { day = 1 month = august year = 1422 }
        style = 1 

        action_a = { # OK 
                   name = "ACTIONNAME95707A" 
                   command = { type = revolt which = 476 } 
                   command = { type = revolt which = 477 } 
                   command = { type = revolt which = 478 } 
                   command = { type = treasury value = -200 }
                   command = { type = stability value = -2 }	   	   
                   command = { type = MIL which = -3 value = 3 }		   
		   command = { type = revoltrisk which = 24 value = 7 }
        } 
} 

#Candar#
event = {

	id = 50009
	trigger = { exists = CAN 
	}
	random = no
	country = TUR
	name = "EVENTNAME50009"
	desc = "EVENTHIST50009"
	style = 1

	date = { day = 1 month = january year = 1423}
	offset = 100
	deathdate = { day = 1 month = january year = 1454 }

	action_a ={			
		name = "ACTIONNAME50009A"
		command = { type = provincetax which = 477 value = 2 }
	}
	action_b ={			
		name = "ACTIONNAME50009B"
		command = { type = provincetax which = 477 value = 2 }
		command = { type = relation which = CAN value = 35 }
		command = { type = sleepevent which = 50010 }
	}
}

#Candar#
event = {

	id = 50010
	trigger = { event = 50009
	}
	random = no
	country = CAN	
	name = "EVENTNAME50009"
	desc = "EVENTHIST50009"
	style = 1

	date = { day = 1 month = january year = 1423}
	offset = 30
	deathdate = { day = 1 month = january year = 1454 }

	action_a ={			
		name = "ACTIONNAME50010A"
		command = { type = stability value = 1 }
		command = { type = sleepevent which = 50012 }
	}
	action_b ={			
		name = "ACTIONNAME50010B"
		command = { type = stability value = -6 }
		command = { type = relation which = TUR value = -400 }
		command = { type = revoltrisk which = 60 value = 7 }
		command = { type = revolt which = -2 }
		command = { type = revolt which = -2 }
		command = { type = domestic which = centralization value = -2 }
		command = { type = sleepevent which = 50011 }
	}
}

#Candar#
event = {

	id = 50011
	trigger = { event = 50010
	}
	random = no
	country = TUR
	name = "EVENTNAME50011"
	desc = "EVENTHIST50011"	style = 1

	date = { day = 1 month = january year = 1423}
	offset = 100
	deathdate = { day = 1 month = january year = 1454 }

	action_a ={			
		name = "ACTIONNAME40116A"
		command = { type = vassal which = CAN }
		command = { type = relation which = CAN value = 100 }
		command = { type = dynastic which = CAN }
	}
}

#Candar#
event = {

	id = 50012
	trigger = { event = 50010
	}
	random = no
	country = TUR
	name = "EVENTNAME50012"
	desc = "EVENTHIST50012"
	style = 1

	date = { day = 1 month = january year = 1423}
	offset = 100
	deathdate = { day = 1 month = january year = 1454 }

	action_a ={			
		name = "ACTIONNAME40098A"
		command = { type = casusbelli which = CAN value = 60 }
	}
}

#Teke#
event = {

	id = 50013
	trigger = { event = 23000
			event = 23001
		NOT = { war = { country = TEK country = TUR } }
		NOT = { alliance = { country = TUR country = TEK } }
	}
	random = no
	country = TEK
	name = "EVENTNAME50013"
	desc = "EVENTHIST50013"
	style = 1

	date = { day = 1 month = january year = 1422}
	offset = 30
	deathdate = { day = 1 month = january year = 1425 }

	action_a ={			
		name = "ACTIONNAME50013A"
		command = { type = war which = TUR }
		command = { type = stability value = 1 }
}
	action_b = {
		name = "ACTIONNAME50013B"
		command = { type = relation which = TUR value = 50 }
	}
}

#Dulkadir#
event = {

	id = 50014
	random = no
	country = DUL	
	name = "EVENTNAME50014"
	desc = "EVENTHIST50014"
	style = 1

	date = { day = 1 month = june year = 1515}
	offset = 30
	deathdate = { day = 1 month = august year = 1515 }

	action_a ={			
		name = "ACTIONNAME50014A"
		command = { type = revoltrisk which = 60 value = 8 }
		command = { type = stability value = -6 }
		command = { type = revolt which = -2 }
		command = { type = revolt which = -1 }
		}
}

#Dulkadir#
event = {

	id = 50015
	random = no
	country = DUL	
	trigger = { control = { province = 474 data = REB } }
	name = "EVENTNAME50015"
	desc = "EVENTHIST50015"
	style = 1

	date = { day = 1 month = june year = 1515}
	offset = 30
	deathdate = { day = 1 month = august year = 1525 }

	action_a ={			
		name = "ACTIONNAME50015A"
		command = { type =  trigger which = 50016 }
		}	
	action_b ={			
		name = "ACTIONNAME50015B"
		command = { type = inf which = -1 value = 6000 }
		command = { type = stability value = -2 }
		command = { type = revoltrisk which = 48 value = 3 }
		command = { type = revolt which = -1 }
		}
}

#Candar#
event = {

	id = 50016
	random = no
	country = TUR
	name = "EVENTNAME50016"
	desc = "EVENTHIST50016"
 	style = 1

	action_a ={			
		name = "ACTIONNAME50016A"
		command = { type = inherit which = DUL }
		command = { type = relation which = MAM value = -100 }
	}
	action_b ={			
		name = "ACTIONNAME50016B"
		command = { type = vassal which = DUL }
		command = { type = relation which = DUL value = 70 }
		command = { type = relation which = MAM value = -50 }
	}
	action_c ={			
		name = "ACTIONNAME50016C"
		command = { type = relation which = DUL value = -50 }
	}
}


###################################
#####  Events by Emre Yigit   #####
#####    (edited by Crook)    #####
###################################

event = { 
	id = 50017
	trigger = { exists = FRA  
		domestic = { type = mercantilism value = 7 } 
		NOT = { war = { country = TUR country = FRA } } 
} 
	random = no 
	country = TUR 
	name = "EVENTNAME50017" 
	desc = "EVENTHIST50017"
	style = 2 
	date = { day = 19 month = september year = 1535 } 
	offset = 1000
	deathdate = { day = 1 month = january year = 1550 } 

	action_a = { 
		name = "ACTIONNAME50017A" 
		command = { type = domestic which = MERCANTILISM value = -1 }  
		command = { type = trade value = 500 } 
		command = { type = relation which = FRA value = 200 } 
		}
	action_b = { 
		name = "ACTIONNAME50017B" 
		command = { type = trade value = -300 } 
		command = { type = relation which = FRA value = -100 } 
		command = { type = relation which = HAB value = 50 }
		} 
} 
event = { 
	id = 50018
	trigger = { OR = { exists = HUN 
			exists = FRA }
} 
	random = no 
	country = TUR 
	name = "EVENTNAME50018" 
	desc = "EVENTHIST50018"
	style = 1 
	date = { day = 1 month = january year = 1465 } 
	offset = 2000 
	deathdate = { day = 1 month = january year = 1475 }
	action_a ={ # 
		name = "ACTIONNAME50018A" 
		command = { type = INF which = -1 value = 5000 }
		} 
} 

#Vassalage of Wallachia#
event = {

	id = 19002
	random = no
	country = TUR
	name = "EVENTNAME19002"
	desc = "EVENTHIST19001"
	style = 1


	action_a ={		#Excellent#
		name = "ACTIONNAME40116A"
		command = { type = vassal  which = WAL }
	}
}

#Hostage from Wallachia#
event = {

	id = 19003
	random = no
	country = TUR
	name = "EVENTNAME19003"
	desc = "EVENTHIST19003"
	style = 1


	action_a ={		#Excellent#
		name = "ACTIONNAME40116A"
		command = { type = dynastic  which = WAL }
	}
}

#Vassalage of Wallachia#
event = {

	id = 19006
	random = no
	country = TUR
	name = "EVENTNAME19006"
	desc = "EVENTHIST19006"
	style = 1


	action_a ={		#Excellent#
		name = "ACTIONNAME40116A"
		command = { type = vassal  which = WAL }
	}
}

############################
#New events for the Ottmans#
#           AlanC9         #
#      chegitz guevara     #
############################

# Suleyman demands the keys to Hungary

event = { 
	id = 19008
	trigger = {
		exists = HAB  #Austria must exist
		control = { province = 357 data = -1 } #OE owns Constantinople
		NOT = { 
			owned = { province = 356 data = HUN } #Bulgaria
		}
		NOT = {
			alliance = { country = HUN country = TUR }
		} 
	} 
	random = no 
	country = TUR 
	name = "EVENTNAME19008" 
	desc = "EVENTHIST19008"
	style = 2 
	date = { day = 22 month = September year = 1520 } 
	offset = 0 
	deathdate = { day = 22 month = August year = 1526 } 

	action_a ={ 
		name = "ACTIONNAME19008A" 
		command = { type = relation  which = VEN value = 100 } 
		command = { type = relation  which = FRA value = 100 }
		command = { type = addcore   which = 316 } #Carpathia
		command = { type = addcore   which = 317 } #Ruthenia
		command = { type = addcore   which = 323 } #Transylvania
		command = { type = addcore   which = 324 } #Maros
		command = { type = addcore   which = 325 } #Magyar
		command = { type = addcore   which = 326 } #Pressburg
		command = { type = addcore   which = 352 } #Oldenburg
		command = { type = addcore   which = 353 } #Pest
		command = { type = addcore   which = 354 } #Banat
		command = { type = addcore   which = 365 } #Dalmatia
		command = { type = addcore   which = 366 } #Croatia
		command = { type = addcore   which = 367 } #Krain
		command = { type = addcore   which = 368 } #Istria
		command = { type = trigger  which = 19009 }
	} 

	action_b = {
		name = "ACTIONNAME19008B"
		command = { type = relation  which = HUN value = 100 } 
		command = { type = relation  which = HAB value = 100 }
		command = { type = sleepevent  which = 19009 }
	} 
}

#Lajos Insults the Emperor
event = { 
	id = 19010
	trigger = {
		event = 19009
	}
	random = no 
	country = TUR 
	name = "EVENTNAME19010" 
	desc = "EVENTHIST19010"
	style = 2
	date = { day = 1 month = May year = 1521 }
	offset = 30

	action_a ={ 
		name = "ACTIONNAME19010A" 
		command = { type = relation which = HUN value = -100 } 
	}
} 

#Lajos Submits to the Great Suleyman
event = { 
	id = 19011
	trigger = {
		event = 19009
	}
	random = no 
	country = TUR 
	name = "EVENTNAME19011" 
	desc = "EVENTHIST19011"
	style = 2 

	action_a ={ 
		name = "ACTIONNAME40116A" 
		command = { type = vassal which = HUN } 
	}
}

# To Vienna!
	event = { 
	id = 19022 #triggered from 3186
	random = no 
	country = TUR 
	name = "EVENTNAME19022" 
	desc = "EVENTHIST19022"
	style = 2 

	action_a ={ 
		name = "ACTIONNAME19023A" 
		command = { type = war which = HAB } 
		command = { type = vassal which = HUN } 
		command = { type = stability value = 5 }
	} 

	action_b ={ 
		name = "ACTIONNAME19023B" 
		command = { type = relation which = HAB value = 100 }
		command = { type = relation which = HUN value = 100 } 
		command = { type = revoltrisk which = 120 value = 5 } 
		command = { type = stability value = -4 } 
	} 
}


# To Buda!
	event = { 
	id = 19023 #triggered from EEP_EEP_HUN120009 and EEP_HUN120010
	random = no 
	country = TUR 
	name = "EVENTNAME19022" 
	desc = "EVENTHIST19023"
	style = 2 

	action_a ={ 
		name = "ACTIONNAME19023A" 
		command = { type = war which = HAB } 
		command = { type = war which = HUN }
	} 

	action_b ={ 
		name = "ACTIONNAME19023B" 
		command = { type = relation which = HAB value = 100 }
		command = { type = relation which = HUN value = 100 } 
		command = { type = revoltrisk which = 120 value = 5 } 
		command = { type = stability value = -4 } 
	} 
}


#The Death of János Zápolya# 
event = { 
	id = 19019 
	trigger = { 
		exists = HAB 
		exists = HUN
		event = 19016
		event = 3186
		vassal = { country = TUR  country = HUN }
		OR = {
			control = { province = 323  data = HUN }
			control = { province = 323  data = -1 }
		} 
	} 
	random = no 
	country = TUR
	name = "EVENTNAME19019" 
	desc = "EVENTHIST19019"
	style = 2 

	date = { day = 21 month = july year = 1540 } 
	offset = 0 
	deathdate = { day = 22 month = july year = 1540 } 

	action_a ={ #Enough is enough!# 
		name = "ACTIONNAME19019A" 
		command = { type = secedeprovince  which = HUN  value = 317 } #Ruthenia
		command = { type = secedeprovince  which = HUN  value = 323 } #Transylvania
		command = { type = secedeprovince  which = HUN  value = 324 } #Maros
		command = { type = trigger  which = 19020 }  
	}

	action_b ={ #Give it to the boy.# 
		name = "ACTIONNAME19019B" 
		command = { type = vassal  which = HUN } 
		command = { type = alliance  which = HUN } 
	} 

	action_c ={ #I'm sick of this!# 
		name = "ACTIONNAME19019C" 
		command = { type = trigger  which = 3185 }
		command = { type = trigger  which = 19018 }
	}
} 

#The Death of János Zápolya#
 event = { 
	id = 19021
	trigger = { 
		exists = HAB 
		exists = HUN
		vassal = { country = TUR  country = HUN }
		event = 19016
		event = 3186
		NOT = { 
			event = 19019
		}
	} 
	random = no 
	country = TUR 
	name = "EVENTNAME19019" 
	desc = "EVENTHIST19021"
	style = 2 
	date = { day = 23 month = july year = 1540 } 
	offset = 0 
	deathdate = { day = 24 month = july year = 1540 } 

	action_a ={ #Enough is enough!# 
		name = "ACTIONNAME19019A" 
		command = { type = inherit which = HUN } 
		command = { type = secedeprovince which = HAB value = 325 } #Magyar
		command = { type = secedeprovince which = HAB value = 353 } #Pest
		command = { type = secedeprovince which = HAB value = 316 } #Carpathia
	} 

	action_b ={ #I'm sick of this!# 
		name = "ACTIONNAME19019C" 
		command = { type = trigger which = 3185 } 
		command = { type = trigger  which = 19018 }
	} 
}

#############################
####    Turkey Events    ####
####      by Garbon      ####
#############################

event = {
	id = 50020
	trigger = {
		exists = TUN
		exists = MOR
		exists = ALD
		OR = {
			owned   = { province = 741 data = TUR }
			owned   = { province = 742 data = TUR }
		}
	}
	random = no
	country = TUR
	name = "EVENTNAME50020"
	desc = "EVENTHIST50020"
	style = 1
	date = { day = 1 month = december year = 1570 }
	offset = 45
	deathdate = { day = 1 month = january year = 1590 }
	action_a = {
		name = "ACTIONNAME50020A"
		command = { type = relation which = SPA value = -100 }
		command = { type = relation which = TUN value = -150 }
		command = { type = trigger which = 51017 }
		command = { type = sleepevent which = 50021 }
		}
	action_b = {
		name = "ACTIONNAME50020B"
		command = { type = relation which = TUN value = -100 }
		command = { type = trigger which = 51017 }
		command = { type = sleepevent which = 50021 }
		}
	action_c = {
		name = "ACTIONNAME50020C"
		command = { type = relation which = TUN value = -200 }
		command = { type = war which = TUN }
		command = { type = sleepevent which = 50021 }
		}
}

event = {
	id = 50021
	trigger = {
		exists = TUN
		exists = ALD
		OR = {
			owned   = { province = 741 data = TUR }
			owned   = { province = 742 data = TUR }
		}
		NOT = { exists = MOR }
	}
	random = no
	country = TUR
	name = "EVENTNAME50020"
	desc = "EVENTHIST50020"
	style = 1
	date = { day = 1 month = december year = 1570 }
	offset = 45
	deathdate = { day = 1 month = january year = 1590 }
	action_a = {
		name = "ACTIONNAME50020A"
		command = { type = relation which = SPA value = -100 }
		command = { type = relation which = TUN value = -150 }
		command = { type = war which = TUN }
		command = { type = addcore which = 739 }
		command = { type = sleepevent which = 50020 }
		}
	action_b = {
		name = "ACTIONNAME50020C"
		command = { type = relation which = TUN value = -100 }
		command = { type = war which = TUN }
		command = { type = sleepevent which = 50020 }
		}
}

event = {
	id = 50022
	random = no
	country = TUR
	name = "EVENTNAME51017"
	desc = "EVENTHIST50022"
	style = 2
	action_a = {
		name = "ACTIONNAME51017A"
		command = { type = relation which = TUN value = -200 }
		command = { type = war which = TUN }
		command = { type = addcore which = 739 }
	}
	action_b = {
		name = "ACTIONNAME50022B"
		command = { type = relation which = TUN value = -100 }
		command = { type = stability value = 1 }
		command = { type = sleepevent which = 51018 }
		command = { type = addcore which = 739 }
		command = { type = casusbelli which = TUN value = 24 }
	}
}

event = {
	id = 50023
	random = no
	country = TUR
	name = "EVENTNAME51017"
	desc = "EVENTHIST50023"
	style = 2
	action_a = {
		name = "ACTIONNAME50023A"
		command = { type = relation which = TUN value = -200 }
		command = { type = relation which = MOR value = -100 }
		command = { type = war which = TUN }
		command = { type = casusbelli which = MOR value = 12 }
		command = { type = addcore which = 739 }
		command = { type = sleepevent which = 51018 }
	}
	action_b = {
		name = "ACTIONNAME50022B"
		command = { type = casusbelli which = TUN value = 24 }
		command = { type = casusbelli which = MOR value = 24 }
		command = { type = relation which = TUN value = -100 }
		command = { type = stability value = 1 }
		command = { type = sleepevent which = 51018 }
		command = { type = addcore which = 739 }
	}
}

event = {
	id = 50024
	trigger = {
		exists = TUN
	}
	random = no
	country = TUR
	name = "EVENTNAME51023"
	desc = "EVENTHIST50024"
	style = 1
	date = { day = 1 month = november year = 1509 }
	offset = 300
	deathdate = { day = 1 month = january year = 1520 }
	action_a = {
		name = "ACTIONNAME51024A"
		command = { type = trigger which = 51023 }
		command = { type = cash value = -50 }
		command = { type = sleepevent which = 50025 }
		}
	action_b = {
		name = "ACTIONNAME51024B"
		command = { type = cash value = -150 }
		command = { type = trigger which = 51023 }
		command = { type = stability value = 1 }
		command = { type = casusbelli which = XHO value = 24 }
		command = { type = sleepevent which = 50025 }
		}
	action_c = {
		name = "ACTIONNAME51024C"
		command = { type = stability value = -1 }
		command = { type = sleepevent which = 50025 }
		}
}

event = {
	id = 50025
	trigger = {
		NOT = { exists = TUN }
	}
	random = no
	country = TUR
	name = "EVENTNAME51023"
	desc = "EVENTHIST50024"
	style = 1
	date = { day = 1 month = november year = 1509 }
	offset = 300
	deathdate = { day = 1 month = january year = 1520 }
	action_a = {
		name = "ACTIONNAME50024A"
		command = { type = cash value = -50 }
		command = { type = sleepevent which = 51025 }
		command = { type = sleepevent which = 50024 }
		}
	action_b = {
		name = "ACTIONNAME50024B"
		command = { type = cash value = -150 }
		command = { type = sleepevent which = 51025 }
		command = { type = stability value = 1 }
		command = { type = casusbelli which = XHO value = 24 }
		command = { type = sleepevent which = 50024 }
		}
	action_c = {
		name = "ACTIONNAME50024C"
		command = { type = stability value = -1 }
		command = { type = sleepevent which = 51024 }
		command = { type = sleepevent which = 50024 }
		}
}

#The Ottoman incorporation of Al-Djazaïr#
event = {
	id = 50019
	trigger = {
		exists = ALD
		vassal = {country = TUR country = ALD}
	}
	random = no
	country = TUR
	name = "EVENTNAME50019"
	desc = "EVENTHIST50019"
	style = 1
	date = {day = 1 month = January year = 1577}
	offset = 300
	deathdate = { day = 1 month = january year = 1600 }
	offset = 1000
	action_a ={ #Incorporate them!#
		name = "ACTIONNAME50019A"
		command = { type = inherit which = ALD }
		command = { type = addcore which = 734 }
		command = { type = addcore which = 737 }
		command = { type = addcore which = 738 }
		command = { type = stability value = 2 }
		command = { type = DIP which = 3 value = 36 }
		}
}

#This next event replaces current 3897#
#A new Dey#
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 = 300
	deathdate = { day = 1 month = january year = 1730 }
	offset = 1000
	action_a ={ # Grant limited autonomy#
        	name = "ACTIONNAME3897A"
        	command = { type = independence which = ALD }
        	command = { type = domestic which = CENTRALIZATION value = -1 }
        	command = { type = removecore which = 734 }
        	command = { type = removecore which = 737 }
        	command = { type = removecore which = 738 }
		}
	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 = revoltrisk which = 36 value = 4 }
        	command = { type = stability value = -2 }
		}
}

####################
#EEP RUS events by #
#   Panzerkreuzer  #
####################

#Ottoman proposal#
event = {

	id = 95558
	trigger = { 
		exists = AST
		neighbour = AST
		NOT = { 
			vassal = { country = TUR country = AST }
		}
		provincereligion = { province = 457 data = sunni }
		relation = { country = AST value = 100 }
	}
	random = no
	country = TUR
	name = "EVENTNAME95558"
	desc = "EVENTHIST95558"
	style = 3

	date = { day = 1 month = january year = 1589 }
	offset = 365
	deathdate = { day = 1 month = january year = 1591 }

	action_a = { #Vassalize#
		name = "ACTIONNAME95558A"
		command = { type = treasury value = -300 }
		command = { type = trigger which = 93261 }
	}
	action_b = { #Ignore it#
		name = "ACTIONNAME95558B"
		command = { type = relation which = AST value = -100 }
	}
}

#Answer from Astrakhan'#
event = {

	id = 95559
	random = no
	country = TUR
	name = "EVENTNAME95559"
	desc = "EVENTHIST95559"
	style = 3

	action_a = { #OK#
		name = "ACTIONNAME95559A"
		command = { type = vassal which = AST }
		command = { type = diplomats value = 2 }
	}
}

