#####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 = 1953 }
		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 }
                command = { type = trigger which = 174023 } #GEN
	}
	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 = {

               event = 3750 
		owned = {
			province = 1953
			data = -1
		    }
                 atwar = no
	}
	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 ={			
		name = "Османы-наследники погибшей империи Ромеев"
		command = { type = capital which = 1953 }
                command = { type = add_countryculture which = greek }
		command = { type = provinceculture which = 1953 value = turkish }
		command = { type = provinceculture which = 357 value = turkish }
                command = { type = provinceculture which = 931 value = turkish }
                command = { type = provinceculture which = 477 value = turkish }
		command = { type = stability value = 2 }
                command = { type = domestic which = CENTRALIZATION  value = 1 }
command = { type = losebuilding which = 483 value = barrack }
command = { type = losemanufactory which = 483 }
command = { type = losebuilding which = 476 value = barrack }
command = { type = losemanufactory which = 476 }
command = { type = provincemanpower which = 1953 value = 2 }
command = { type = provincemanpower which = 357 value = 2 }
command = { type = provincemanpower which = 483 value = -2 }
command = { type = provincemanpower which = 476 value = -2 }
	}
	action_b ={			#Let us keep the Old one instead#
		name = "Возврат к иделам отцов"
                command = { type = capital which = 1611 }
                command = { type = add_countryculture which = canary }
                command = { type = gainbuilding which = 1611 value = barrack }
                command = { type = provinceculture which = 931 value = turkish }
		command = { type = provinceculture which = 1958 value = turkish }
		command = { type = provinceculture which = 478 value = turkish }
		command = { type = provinceculture which = 477 value = turkish }
		command = { type = provincereligion which = 478 value = sunni }
                command = { type = provincereligion which = 1953 value = sunni }
                command = { type = provincereligion which = 1960 value = sunni }
command = { type = provincereligion which = 477 value = sunni }
                command = { type = provincereligion which = 1958 value = sunni }
  command = { type = provincereligion which = 1416 value = sunni }
		command = { type = domestic which = CENTRALIZATION  value = -3 }
command = { type = domestic which = LAND value = 3 }
		command = { type = domestic which = OFFENSIVE value = 3 }
		command = { type = stability value = -1 }
                command = { type = domestic which = INNOVATIVE value = -3 }
                command = { type = domestic which = QUALITY value = -2 }
command = { type = provincemanpower which = 1611 value = 2 }
command = { type = provincetax which = 1611 value = 7 }
command = { type = provincemanpower which = 1953 value = -2 }
command = { type = provincetax which = 1953 value = -7 }
command = { type = cav which = 1611 value = 20000 }
command = { type = cav which = 476 value = 20000 }
command = { type = cav which = 483 value = 20000 }
	}
}

#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 }
                command = { type = stability value = 1 }
	}
	action_b ={ # Reform Army and Navy
		name = "ACTIONNAME3354B"
		command = { type = land value = 750 }
		command = { type = naval value = 750 }
                command = { type = stability value = 1 }
	}
	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 = 4 }
                command = { type = galleys which = -1 value = 12 }
                command = { type = stability 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 }
                command = { type = sleepevent which = 50008 } #Power of Sheikh-ul-Islam curtailed
	}
}

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

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

#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 = 745
			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 }
                command = { type = addcore which = 484 }
	}
        action_b ={ 
		name = "выплатить им денежную компенсацию"
		command = { type = stability value = -1 }
		command = { type = treasury value = -500 }
		command = { type = relation which = VEN value = 200 }
                command = { type = trigger which = 329010 }
	}
	action_c ={				
		name = "ACTIONNAME3359B"
		command = { type = stability value = -1 }
		command = { type = trigger which = 3715 }
		command = { type = secedeprovince which = VEN value = 745 }
		command = { type = relation which = VEN value = 400 }
	}
}

#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 = -300 }
		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 }
command = { type = INF which = -1 value = 22000 }
command = { type = CAV which = -1 value = 14000 }
command = { type = ART which = -1 value = 40 }
command = { type = treasury value = -200 }
	}
	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 = 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 = -1}
command = { type = revolt which = -1}
		command = { type = revolt which = -1}
		command = { type = stability value = -2 }
	}
}

#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 = 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 = 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 = 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 = provincetax which = -1 value = 1 }
		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 = 25000 }
		command = { type = domestic which = CENTRALIZATION value = -2 }
		command = { type = domestic which = ARISTOCRACY value = 1 }
	}
}

#The Great Naval Reform / Imperial Halic Shipyard. # 
event = {
	id = 3367
trigger = {
		owned = {
			province = 1953  data = -1  
		}
	}
	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 = -700 }
		command = { type = naval value = 1000 }
		command = { type = galleys which = -1 value = 20 }
		command = { type = gainbuilding which = 1953 value = shipyard }
		command = { type = vp value = 25 }
command = { type = warships which = 1953 value = 12 }
command = { type = galleys which = -1 value = 30 }
	}
	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 }
command = { type = galleys which = -1 value = 30 }
	}
	action_c ={ # Reform the army instead
		name = "ACTIONNAME3367C"
		command = { type = land value = 500 }
	}
}

#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 = 1544 }
	offset = 364

	action_a ={ # Crush Celali and the Shiites.
		name = "ACTIONNAME3370A"
command = { type = stability value = -1 }
		command = { type = ADM which = 3 value = 24 }
		command = { type = infra value = 200 }
command = { type = revolt which = 482 }
command = { type = revolt which = 485 }
command = { type = revolt which = 482 }
command = { type = revolt which = 1805 }
command = { type = revolt which = 1611 }
command = { type = revolt which = 1431 }	
command = { type = revolt which = 474 }
command = { type = revolt which = 486 }
command = { type = revolt which = 1806 }
command = { type = revolt which = 483 }
command = { type = revolt which = 1432 }
command = { type = revolt which = 476 }
command = { type = revolt which = 483 }
command = { type = revolt which = 1610 }
command = { type = revolt which = 482 }
command = { type = revolt which = 485 }
command = { type = revolt which = 482 }
command = { type = revolt which = 1805 }
command = { type = revolt which = 1611 }
command = { type = revolt which = 1431 }	
command = { type = revolt which = 474 }
command = { type = revolt which = 486 }
command = { type = revolt which = 1806 }
command = { type = revolt which = 483 }
command = { type = revolt which = 1432 }
command = { type = revolt which = 476 }
command = { type = revolt which = 483 }
command = { type = revolt which = 1610 }
	}
	action_b ={ # Heed their demands.
		name = "ACTIONNAME3370B"
		command = { type = provincereligion which = 482 value = shiite }
command = { type = provincereligion which = 485 value = shiite }
command = { type = provincereligion which = 1432 value = shiite }
command = { type = provincereligion which = 486 value = shiite }
		command = { type = stability value = -3 }
		command = { type = ADM which = -4 value = 80 }
	}
}



#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 = 743
			data = -1
		}
		NOT = {
			exists = MAM
		}
	}
	random = no
	country = TUR
	name = "EVENTNAME3373"
	desc = "EVENTHIST3373"
	style = 2
	date = { day = 1 month = may 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 }
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 }
command = { type = revolt which = 748 }
		command = { type = revolt which = 749 }
		
command = { type = revolt which = 748 }
		command = { type = revolt which = 749 }
		
command = { type = revolt which = 742 }
command = { type = revolt which = 743 }
command = { type = revolt which = 494 }
command = { type = revolt which = 1010 }
command = { type = revolt which = 1010 }
	}
}

#Mimar Sinan's Great Constructions#
event = {
	id = 3374
	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 = stability value = -1 }
		command = { type = revolt which = 482 }
		command = { type = revolt which = 1432 }
command = { type = revolt which = 482 }
		command = { type = revolt which = 1432 }
command = { type = revolt which = 482 }
		command = { type = revolt which = 1432 }
command = { type = revolt which = 485 }
command = { type = revolt which = 485 }
command = { type = revolt which = 485 }
command = { type = revolt which = 1805 }
command = { type = revolt which = 1805 }
command = { type = revolt which = 1805 }
command = { type = revolt which = 1611 }
command = { type = revolt which = 474 }
command = { type = revolt which = 1611 }
command = { type = revolt which = 474 }
command = { type = revolt which = 1611 }
command = { type = revolt which = 474 }
		
	}
	action_b ={ # Bribe the rebel leaders.
		name = "ACTIONNAME3376B"
		command = { type = treasury value = -1000 }
		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 = revolt which = 1805 }
command = { type = revolt which = 509 }
		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 }
	}
}



event = {
id = 299661

trigger = {

NOT = { 
domestic = { type = centralization value = 8 } 
domestic = { type = INNOVATIVE value = 7 }
domestic = { type = serfdom value = 4 }
}

}
random = no
country = TUR
name = "Обесценивание акче"
desc = "Из-за притока европейского серебра османская валюта - акче - начинает стремительно обесцениваться. Это грозный признак того, что золотой век Османской империи закончился!"
style = 3

date = { day = 1 month = january year = 1584 }
offset = 300

action_a ={ 
name = "Кризис близок"
command = { type = inflation value = 10 }
command = { type = stability value = -1 }
}
}

#The Decentralizing Effect of the Provincial System#
event = {
id = 3379

trigger = {

domestic = { type = aristocracy value = 5 }
domestic = { type = serfdom value = 5 }
NOT = { domestic = { type = centralization value = 8 } }

}
random = no
country = TUR
name = "Системный кризис империи: откупа"
desc = "На рубеже XVI и XVII веков в Османской империи начинается системый кризис. Из-за'революции цен' обесценивается акче. Османские торговцы и ремесленники не выдерживают конкуренции с европейцами и постепено разоряются. Наконец, кризис претерпевает и тимарная система, веками служившая империи. Доходы с тимаров более не покрывают расходы тимариотов, всё время проводящих в дальних походах. Казна пытается компенсировать убытки вводя откупа. Откупщики обязуются выплачивать определённую сумму в казну, в обмен на это им предастваляется право сбора налогов. Эта практика приводила к многочисленным злоупотреблениям, и резко ухудшила положение податного населения - 'райи'. В провинциях начинает образовываться новая знать - аяны, которые своим положением обязаны не государственной службе, а накопленным богатствам. Всё это снижала эффективность власти на местах, особенно в отдалённых регионах"
style = 3

date = { day = 1 month = january year = 1615 }
offset = 300
deathdate = { day = 31 month = december year = 1680 }

action_a ={ # More power to the Beys
name = "Дозволить практику откупов"
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 = inflation value = 10 }
command = { type = technology which = muslim }
}
action_b ={ # Limit the concessions.
name = "Пытаться поддерживать старую систему"
command = { type = domestic which = ARISTOCRACY value = 1 }
command = { type = domestic which = CENTRALIZATION value = -1 }
command = { type = domestic which = quality value = -1 }
command = { type = domestic which = SERFDOM value = 1 }
command = { type = revoltrisk which = 36 value = 6 }
command = { type = stability value = -2 }
command = { type = treasury value = -1000 }
command = { type = technology which = muslim }
command = { type = inflation value = 10 }
}
action_c ={ 
		name = "Реформировать всю систему управления"
		command = { type = domestic which = ARISTOCRACY value = -2 }
		command = { type = domestic which = CENTRALIZATION value = 2 }
		command = { type = domestic which = SERFDOM value = -1 }
		command = { type = desertion which = -1 value = 5000 }
		command = { type = desertion which = -1 value = 5000 }
		command = { type = desertion which = -1 value = 5000 }
command = { type = desertion which = -1 value = 5000 }
		command = { type = desertion which = -1 value = 5000 }
		command = { type = desertion which = -1 value = 5000 }
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 = 10 }
		command = { type = stability value = -6 }
		command = { type = technology which = torthodox }
command = { type = inflation value = 5 }
	}

}

#The Decentralizing Effect of the Provincial System#
event = {
id = 3380
random = no

trigger = {

domestic = { type = aristocracy value = 5 }
domestic = { type = serfdom value = 5 }
NOT = { domestic = { type = centralization value = 7 } }

}

country = TUR
name = "Системный кризис империи: отдалённый провинции"
desc = "Системный кризис становится всё глубже. Многие владения Порты - Египет, Сирия, Ирак, Аравия, не говоря уж о странах Магриба, теперь подчиняются центру лишь номинально. Реальной властью здесь обладают местные элиты: от мамлюков в Египте до янычар в Тунисе."
style = 3

date = { day = 1 month = january year = 1680 }
offset = 720
deathdate = { day = 31 month = december year = 1880 }

action_a ={ # More power to the Beys
name = "Отдалённые провинции живут своей жизнью..."
command = { type = treasury value = -500 }
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 = remove_countryculture which = arabic } #Iraq
command = { type = stability value = -1 }
command = { type = inflation value = 10 }
}
}



#The Decentralizing Effect of the Provincial System#
event = {
id = 299668

trigger = {

domestic = { type = aristocracy value = 5 }
domestic = { type = serfdom value = 6 }
NOT = { domestic = { type = centralization value = 7 } }

}

random = no
country = TUR
name = "Углубление кризиса"
desc = "Проходили десятилетия, а султанская власть так и не могла справится с нароставшими кризисными явлениями. Разговоры о том, что следует управлять империей по заветам великого Сулеймана Кануни - вот лучшее, что могут предложить придворные. А в это время на Балканах поднимаются могущественные аяны, создающие настоящие микрогосударства, занимающие целые санждаки. Хотя аяны и не позволяют сутанским чиновникам вмешиваться в свои дела, но они по-прежнему не мыслят себя вне империи и вовсе не желают создавать самостоятельные государства"
style = 4

date = { day = 1 month = january year = 1740 }
offset = 720
deathdate = { day = 31 month = december year = 1880 }

action_a ={ # More power to the Beys
name = "Аяны властвуют на Балканах. "

command = { type = domestic which = CENTRALIZATION value = -1 }
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 = -1 }
command = { type = remove_countryculture which = slavonic }
command = { type = remove_countryculture which = greek }
}
}

#The Decentralizing Effect of the Provincial System#
event = {
id = 299663

trigger = {

NOT = { domestic = { type = aristocracy value = 5 } }
domestic = { type = centralization value = 6 } 

}

random = no
country = TUR
name = "Подчинение балканских аянов"
desc = "Благодаря ряду эффективных мер, Порте удалось вновь наладит централизованное управление балканскими провинциями и подчинит тамошних аянов. Однако это подчинение вылилось в локальную войну..."
style = 4

date = { day = 1 month = january year = 1740 }
offset = 720
deathdate = { day = 31 month = december year = 1880 }

action_a ={ # More power to the Beys
name = "Балканские аяны подчинены!"
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 = quality value = 1 }
command = { type = domestic which = SERFDOM value = -1 }
command = { type = add_countryculture which = slavonic }
command = { type = revolt which = 355 }
command = { type = revolt which = 356 }
command = { type = revolt which = 361 }
command = { type = revolt which = 363 }
command = { type = revolt which = 364 }
command = { type = revolt which = 321 }
command = { type = revolt which = 1000 }
command = { type = revolt which = 1017 }

}
}

event = {
id = 299664

trigger = {

NOT = { domestic = { type = aristocracy value = 6 } }
domestic = { type = centralization value = 6 } 

}

random = no
country = TUR
name = "Усиление султанской власти и подчинение Ближнего Востока"
desc = "Благодаря ряду эффективных мер, Порте удалось вновь наладит централизованное управление арабскими провинциями. Сирия, самая османизированная из арабских провинций империи теерь вполне подчиняется указам из Константинополя. Однако в Ираке наведение порядка привело к острым столкновениям с местной элитой."
style = 4

date = { day = 1 month = january year = 1700 }
offset = 720
deathdate = { day = 31 month = december year = 1880 }

action_a ={ # More power to the Beys
name = "Сирия снова послушна воле султана. Ирак умоется кровью."
command = { type = domestic which = quality value = 1 }
command = { type = domestic which = SERFDOM value = -1 }
command = { type = add_countryculture which = arabic }
command = { type = independence which = IRA }
command = { type = breakvassal which = IRA }
command = { type = war which = IRA }


}
}


event = {
id = 299665

trigger = {

NOT = { domestic = { type = aristocracy value = 6 } }
domestic = { type = centralization value = 7 } 

}

random = no
country = TUR
name = "Восстановление власти в Египте и мятеж мамлюков"
desc = "Благодаря ряду эффективных мер, Порте удалось вновь наладит централизованное управление арабскими провинциями. однако египетские мамлюки привыкли к тому, что они - хозяева своей страны. После того, как присланный из Стамбула паша начал наводить ограничивать права мамлюков, последние подняли грандиозное восстание"
style = 4

date = { day = 1 month = january year = 1700 }
offset = 720
deathdate = { day = 31 month = december year = 1880 }

action_a ={ # 
name = "Уничтожить весь их род под корень!"
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 = 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 = 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 = revolt which = 748 }
command = { type = revolt which = 742 }
command = { type = revolt which = 743 }
command = { type = revolt which = 494 }
command = { type = revolt which = 749 }
command = { type = revolt which = 1727 }
command = { type = revolt which = 742 }
command = { type = revolt which = 743 }
command = { type = revolt which = 494 }
command = { type = revolt which = 748 }
command = { type = revolt which = 1010 }
command = { type = revolt which = 1010 }
command = { type = revolt which = 1010 }
command = { type = revolt which = 749 }
command = { type = revolt which = 1727 }
command = { type = domestic which = quality value = 1 }
command = { type = domestic which = SERFDOM value = -1 }
command = { type = add_countryculture which = arabic }

}
}



event = {
id = 299666
trigger = { 
owned = { province = 364 data = TUR }

}
random = no
province = 364
name = "Ислам в Боснии"
desc = "Значительную часть населения Боснии придерживалась ереси богомильства. После турецкого завоевания Боснии местные богомилы обратились к султану с просьбой. Они соглашались принять ислам, но проили разрешить их детям служить в янычарском корпусе (как известно янычары набирались из христианских мальчиков). Султан дал согласие и получил надёжный оплот своей власти на западе Балкан"
style = 3
date = { day = 1 month = January year = 1400 }
offset = 10
deathdate = { day = 30 month = December year = 1854 }
action_a ={ 
name = "Хорошо!"
command = { type = provincereligion which = 364 value = sunni } 
}

}


event = {
id = 299667
trigger = { 
owned = { province = 361 data = TUR }

}
random = no
province = 361
name = "Ислам в Албании"
desc = "После турецкого завоевания значительная ччасть албанских общин приняла ислам"
style = 3
date = { day = 1 month = January year = 1450 }
offset = 10
deathdate = { day = 30 month = December year = 1554 }
action_a ={ 
name = "А написано, что шанс успеха миссионера - 20%..."
command = { type = provincereligion which = 364 value = sunni } 
}

}


#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 = 482 }
		command = { type = revolt which = 1432 }
command = { type = revolt which = 482 }
		command = { type = revolt which = 1432 }
command = { type = revolt which = 482 }
		command = { type = revolt which = 1432 }
command = { type = revolt which = 485 }
command = { type = revolt which = 485 }
command = { type = revolt which = 485 }
command = { type = revolt which = 1805 }
command = { type = revolt which = 1805 }
command = { type = revolt which = 1805 }
		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
		}
NOT = {  domestic = { type = centralization value = 7 } }
	}
	random = no
	country = TUR
	name = "EVENTNAME3391"
	desc = "EVENTHIST3391"
	style = 4

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

	action_a ={ # Grant limited autonomy
		name = "ACTIONNAME3391A"
		command = { type = independence which = TUN }
command = { type = secedeprovince which = TUN value = 1614 } 
command = { type = secedeprovince which = TUN value = 1727 } 
command = { type = removecore which = 740 } 
command = { type = removecore which = 739 }     
command = { type = removecore which = 1614 } 
command = { type = removecore which = 1727 }               
		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 = revolt which = 740 }
command = { type = revolt which = 740 }
command = { type = revolt which = 740 }
		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 = 1640 }
	offset = 1000

	action_a ={ # Grant limited autonomy
		name = "ACTIONNAME3392A"
		command = { type = independence which = TRI }
command = { type = secedeprovince which = TRI value = 741 }  
command = { type = secedeprovince which = TRI value = 739 } 
command = { type = removecore which = 740 } 
                command = { type = removecore which = 739 }  
		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 = 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 = may 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 = 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 = 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 = revolt which = 748 }
command = { type = revolt which = 742 }
command = { type = revolt which = 743 }
command = { type = revolt which = 494 }
		command = { type = revolt which = 749 }
		
command = { type = revolt which = 742 }
command = { type = revolt which = 743 }
command = { type = revolt which = 494 }
command = { type = revolt which = 748 }
command = { type = revolt which = 1010 }
command = { type = revolt which = 1010 }
command = { type = revolt which = 1010 }
		command = { type = revolt which = 749 }
		
		command = { type = stability value = -1 }
	}
	action_b ={ # Negotiate a solution
		name = "ACTIONNAME3394B"
		command = { type = stability value = -2 }
		command = { type = treasury value = -500 }
		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 }
		command = { type = secedeprovince which = MAM value = 749 } 
		command = { type = secedeprovince which = MAM value = 494 }
		command = { type = secedeprovince which = MAM value = 745 }#Nile 
		command = { type = secedeprovince which = MAM value = 746 }
		command = { type = secedeprovince which = MAM value = 744 } 

command = { type = secedeprovince which = MAM value = 1010 }
		
		
command = { type = removecore which = 742 } 
                command = { type = removecore which = 743 } 
                command = { type = removecore which = 747 } 
                command = { type = removecore which = 748 }
command = { type = removecore which = 749 } 
                command = { type = removecore which = 494 } 
 command = { type = removecore which = 746 } 
                command = { type = removecore which = 745 } 
                command = { type = removecore which = 744 }
  command = { type = removecore which = 1010 } 
               
                
	}
	action_b ={ # Crush the rebels
		name = "ACTIONNAME3398B"
command = { type = revolt which = 748 }
		command = { type = revolt which = 749 }
		
command = { type = revolt which = 748 }
		command = { type = revolt which = 749 }
		
		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 = 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 = 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 = 1010 }
command = { type = revolt which = 1010 }
command = { type = revolt which = 1010 }
command = { type = revolt which = 748 }
command = { type = revolt which = 742 }
command = { type = revolt which = 743 }
command = { type = revolt which = 494 }
		command = { type = revolt which = 749 }
		
command = { type = revolt which = 748 }
command = { type = revolt which = 742 }
command = { type = revolt which = 743 }
command = { type = revolt which = 494 }
		command = { type = revolt which = 749 }
		
		command = { type = stability value = -3 }
	}
}

#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 }
command = { type = secedeprovince which = SER value = 363 }
command = { type = secedeprovince which = SER value = 1417 }
command = { type = secedeprovince which = SER value = 1017 }
command = { type = removecore which = 1017 } 
command = { type = removecore which = 355 } 
                command = { type = removecore which = 363 } 
                command = { type = removecore which = 1417 } 
                command = { type = removecore which = 1000 }
	}
	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 = 1417 }
command = { type = revolt which = 355 }
		command = { type = revolt which = 355 }
		command = { type = revolt which = 363 }
		command = { type = revolt which = 1417 }
		command = { type = stability value = -2 }
command = { type = removecore which = 355 } 
                command = { type = removecore which = 363 } 
                command = { type = removecore which = 1417 } 
                command = { type = removecore which = 1000 }
command = { type = removecore which = 1017 } 
	}
}

#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 = april year = 1419 } 
	offset = 30 
	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 } 
                command = { type = provincereligion which = 1953 value = sunni }
                command = { type = provincereligion which = 474 value = sunni }
                command = { type = provincereligion which = 475 value = sunni }
		
	} 

	action_b ={ #Allow the Patriarchate to exist, but appoint a new Patriarch# 
	name = "ACTIONNAME3750B" 
		command = { type = stability value = -1 }
                command = { type = domestic which = CENTRALIZATION value = 1 }
                command = { type = provincereligion which = 1953 value = sunni }
		command = { type = provincereligion which = 1960 value = sunni }
                command = { type = provincereligion which = 357 value = sunni }
                command = { type = provincereligion which = 474 value = sunni }
                command = { type = provincereligion which = 475 value = sunni }
	} 
	action_c ={ #Close down the Patriarchate and confiscate its properties# 
	name = "ACTIONNAME3750C" 
                command = { type = provincereligion which = 1953 value = sunni }
		command = { type = provincereligion which = 1960 value = sunni }
                command = { type = provincereligion which = 321 value = sunni }
                command = { type = provincereligion which = 1416 value = sunni }
                command = { type = provincereligion which = 357 value = sunni }
                command = { type = provincereligion which = 474 value = sunni }
                command = { type = provincereligion which = 475 value = sunni }
                command = { type = domestic which = INNOVATIVE value = -2 } 
                command = { type = revoltrisk which = 72 value = 4 }
                command = { type = stability value = -2 } 
		command = { type = treasury value = 500 } 
		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 = revolt which = 1953 }
command = { type = revolt which = 1960 }
command = { type = revolt which = 321 }
command = { type = revolt which = 1415 }
command = { type = revolt which = 357 }
command = { type = revolt which = 1953 }
command = { type = revolt which = 1960 }
command = { type = revolt which = 321 }
command = { type = revolt which = 1415 }
command = { type = revolt which = 357 }
command = { type = revolt which = 1953 }
command = { type = revolt which = 1960 }
command = { type = revolt which = 321 }
command = { type = revolt which = 1415 }
command = { type = revolt which = 357 }
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 = -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 = -1 }
command = { type = revolt which = -1 }
command = { type = revolt which = -1 }
		
	} 
} 

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 = INF which = -2 value = 7000 }
		command = { type = CAV which = -2 value = 3000 }
		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 } 
                    command = { type = relation which = VEN value = -100 } 
                   } 
        } 

# Fool Me Once # 
event = { 
        id = 23013 
trigger = { 
vassal = { country = TUR country = BYZ } 
} 
        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 }
                   command = { type = stability value = 1 } 
                   } 
        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 = galleys which = -1 value = 20 }
		command = { type = domestic which = OFFENSIVE value = 1 }
 command = { type = badboy value = -1 }
	}
	action_b ={
		name = "ACTIONNAME50000B"
		command = { type = land value = 500 }
		command = { type = naval value = 500 }
		command = { type = galleys which = -1 value = 10 }
		command = { type = revoltrisk which = 48 value = 4 }
		command = { type = stability value = -1 }
		command = { type = domestic which = OFFENSIVE value = 1 }
 command = { type = badboy 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 = 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 = -500 }
		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 = 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 = -2 }
		command = { type = revoltrisk which = 36 value = 5 }
                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 = -1}
		command = { type = revolt which = -1}
		command = { type = revolt which = -1}
		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 = revolt which = -1}
		command = { type = revolt which = -1}
		command = { type = revolt which = -1}
		command = { type = revolt which = -1}
		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 = 4 }
		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 = 1 }
		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 }
                command = { type = revolt which = -1}
		command = { type = revolt which = -1}
		command = { type = revolt which = -1}
		command = { type = revolt which = -1}
	}
}

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



#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 = {
		
		OR = {  event = 23002
			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 = 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 = -1}
		   command = { type = revolt which = -1}
		   command = { type = revolt which = -1}
                   command = { type = stability value = -3 }	   	   
                   command = { type = MIL which = -3 value = 3 }		   
		   command = { type = revoltrisk which = 48 value = 5 }
        } 
} 

#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 = 5 }
		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 = 323 } 
		command = { type = addcore   which = 1952 } 
		command = { type = addcore   which = 1957 } 
		command = { type = addcore   which = 1417 } 
		command = { type = addcore which = 316 }
			command = { type = addcore which = 352 }
			command = { type = addcore which = 326 }
			command = { type = addcore which = 353 }
			command = { type = addcore which = 325 }
			command = { type = addcore which = 324 }
			command = { type = addcore which = 317 }
			command = { type = addcore which = 1950 }
		command = { type = addcore   which = 365 } #Dalmatia
		command = { type = addcore   which = 366 } #Croatia
		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 = 325  data = HUN }
			control = { province = 325  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 = 1419 } #Ruthenia
		command = { type = secedeprovince  which = HUN  value = 323 } #Transylvania
		command = { type = secedeprovince  which = HUN  value = 354 } #Maros
                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
command = { type = secedeprovince which = HAB value = 352 } #Pest
		command = { type = secedeprovince which = HAB value = 1402 }
	} 

	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 = addcore which = 736 }
                command = { type = addcore which = 1687 }
                command = { type = addcore which = 735 }
 command = { type = addcore which = 1674 }
                command = { type = addcore which = 1675 }
		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 }

NOT = {  domestic = { type = centralization value = 7 } }

}
	random = no
	country = TUR
	name = "EVENTNAME3897"
	desc = "EVENTHIST3897"
	style = 4
	date = { day = 1 month = january year = 1610 }
	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 = secedeprovince which = ALD value = 734 }
command = { type = secedeprovince which = ALD value = 735 }
command = { type = secedeprovince which = ALD value = 737 }
command = { type = secedeprovince which = ALD value = 738 }
command = { type = secedeprovince which = ALD value = 1674 }
command = { type = secedeprovince which = ALD value = 1675 }
command = { type = secedeprovince which = ALD value = 1687 }

        	command = { type = domestic which = CENTRALIZATION value = -1 }
        	command = { type = removecore which = 734 }
        	command = { type = removecore which = 737 }
        	command = { type = removecore which = 738 }
command = { type = removecore which = 735 }
        	command = { type = removecore which = 736 }
command = { type = removecore which = 1687 }
command = { type = removecore which = 1674 }
        	command = { type = removecore which = 1675 }
		}
	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 = 735 }
        	command = { type = revolt which = 1687 }
        	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 }
	}
}





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

#by Garbon
event = { 
	id = 301000 
	trigger = { 
		atwar = no
		exists = SPA
		NOT = { 
			exists = GRA 
		} 
	} 
	random = no 
	country = TUR 
	name = "Признание Морискоса" 
	desc = "Морискос подал прошение туркам относительно их поддержки, они должны были освободить его из католической Испании. Оттоманская империя стала главной силой на Ближнем Востоке, Балканах и в Средиземноморье, в течении XV-XVI столетий. К сожалению для Морискоса, турки постоянны были вовлечены в войны. Но всё же, Оттоманская империя как могла, помогала Морискосу." 
	style = 2 
	date = { day = 1 month = january year = 1492 } 
	offset = 1500 
	deathdate = { day = 30 month = december year = 1550 }
	action_a = { 
		name = "Мы заботимся не о них!" 
		command = { type = relation which = SPA value = 50 } 
		command = { type = infra value = 10 } 
	} 
	action_b = { 
		name = "Признание даёт нам повод!" 
		command = { type = casusbelli which = SPA value = 24 } 
		command = { type = inf which = -2 value = 5000 } 
		command = { type = addcore which = 1413 }
                command = { type = addcore which = 444 }
		command = { type = stability value = -2 } 
		command = { type = relation which = SPA value = -150 } 
		command = { type = sleepevent which = 166003 } #FEZ# 
#		command = { type = sleepevent which = 219000 } #MAM#
		command = { type = sleepevent which = 232011 } #MOR#
		command = { type = sleepevent which = 300000 } #TUN#

	} 
} 


#The Conquests of Murad II #
#Conquest Events301001-301008 by Chegitz Guevara#
event = {

id = 301001
random = no
country = TUR
name = "Завоевания Мурада II" 
desc = "Во время правления Мурада II, османами были завоёваны Сербия с Боснией, при этом ещё велась война против Албании."
style = 1

date = { day = 26 month = may year = 1421 }

action_a ={ #I Will Restore the Empire#
name = "Я восстановлю империю!"
command = { type = addcore which = 361 } 
command = { type = addcore which = 1013 }  
command = { type = addcore which = 1954 } 
command = { type = addcore which = 363 } 
command = { type = addcore which = 1000 } 
command = { type = addcore which = 1417 } 
command = { type = addcore which = 355 }
command = { type = addcore which = 1017 } 
command = { type = addcore which = 364 } 
command = { type = addcore which = 1957 } 
command = { type = stability value = 1 }
command = { type = relation which = SER value = -150 }
command = { type = casusbelli which = SER value = 360 }
command = { type = casusbelli which = HUN value = 360 }
command = { type = casusbelli which = VEN value = 360 }
#command = { type = ai which = TUR_MuradII.ai }
command = { type = badboy value = -5 }
}
}

#The Conquests of Mehmed II The Conqueror#
event = {

id = 301002
random = no
country = TUR
name = "Завоевания Мехмеда II (Завоевателя)" #The Conquests of Mehmed II The Conqueror
desc = "Во время правления Мехмеда II, такие земли как, Константинополь, Афины, Морея, Сербия, Босния, Караман, Кандар, Трапезунд, Албания, Герцеговина, Керча, Каффа и Отранто, принадлежали Оттоманскому султану. Кроме того, он пробовал захватить Родос. Во время вторжения в Италию, султан умер." 
style = 1

date = { day = 3 month = february year = 1451 }

action_a ={ 
name = "Мы нуждаемся в жизненном пространстве"
command = { type = addcore which = 359 } #Athens
command = { type = addcore which = 1995 } 
command = { type = addcore which = 360 } #Morea
command = { type = addcore which = 464 } #Kaffa
command = { type = addcore which = 475 } #Trabzon
command = { type = addcore which = 481 } #Rhodes  
command = { type = addcore which = 474 }    
command = { type = stability value = 1 }
command = { type = relation which = KAR value = -150 }
command = { type = casusbelli which = HUN value = 362 }
command = { type = casusbelli which = VEN value = 362 }
command = { type = casusbelli which = KAR value = 362 }
command = { type = casusbelli which = DUL value = 362 }  
#command = { type = ai which = TUR_MehmetII.ai }
command = { type = badboy value = -5 }  
}
}

#The Conquests of Bayezid II The Law-Abiding#
event = {

id = 301003
random = no
country = TUR
name = "Завования Беизида II (Законопослушного)" 
desc = "Царствование Беизида II ознаменовалось отъездом отца. Беизид увеличил подконтрольную территорию османовов, оккупировав Буяк в Молдавии и ведя войну с Мамелюками, по захвату Рамазана и Дулкадира. Так же было  всё приготовлено для вторжения в Италию, но неожиданно началась война с Венецией и пришлось всё отложить, в место этого Беизид попробовал взять штурмом Керкир." #
style = 1

date = { day = 3 month = may year = 1481 }

action_a ={
name = "Пришло время для всеобщего мира"
command = { type = addcore which = 319 } #Bujak
command = { type = addcore which = 1432 } #Sivas
command = { type = addcore which = 483 } #Adana
command = { type = addcore which = 820 } #Corfu
command = { type = addcore which = 479 } 
command = { type = addcore which = 473 } 
command = { type = addcore which = 1955 } 
command = { type = addcore which = 320 } 
command = { type = addcore which = 319 }
command = { type = stability value = 1 } 
#command = { type = ai which = TUR_BayezidII.ai }
command = { type = badboy value = -5 }  
     }
}

#The Conquests of Selim I The Grim#
event = {
id = 301004
random = no
country = TUR
name = "Завоевания Селима I (Мрачного)" #
desc = "Селим I, или Явуз Селим (Селим Мрачный) управлял империей только восемь лет, но за это время он успел удвоить свои владения, завоевав Восточную Анатолию (1514) и всю Империю Мамелюков (1516-1517). Кроме того, корсары Барбэри и Барбаросса завоевали для султана Аль-Джазир в 1517 году."
style = 2

date = { day = 1 month = may year = 1512 }

action_a ={ #A Time For War#
name = "Пришло время для войны"
command = { type = addcore which = 1003 }
command = { type = addcore which = 490 } #Syria
command = { type = addcore which = 491 } #Lebanon
command = { type = addcore which = 492 } #Samaria
command = { type = addcore which = 493 } #Judea
command = { type = addcore which = 494 } #Sinai
command = { type = addcore which = 495 } #Jordan
command = { type = addcore which = 496 } #Arabia
command = { type = addcore which = 497 } #Medina
command = { type = addcore which = 498 } #Mekkah
command = { type = addcore which = 741 } #Cyrenaica
command = { type = addcore which = 509 }
command = { type = addcore which = 742 } #Quattara
command = { type = addcore which = 743 } #Cataract
command = { type = addcore which = 744 } #Alexandria
command = { type = addcore which = 745 } #Delta
command = { type = addcore which = 746 } #Egypt
command = { type = addcore which = 747 } #Nile
command = { type = addcore which = 749 } #Nubia
command = { type = addcore which = 748 } #Batn al Hajar 

command = { type = addcore which = 1010 }
command = { type = addcore which = 1432 }
command = { type = addcore which = 1806 }
command = { type = addcore which = 1004 }
command = { type = addcore which = 486 }
command = { type = relation which = MAM value = -150 }
command = { type = casusbelli which = MAM value = 362 }
command = { type = stability value = 1 } 
command = { type = addcore which = 494 }
#command = { type = ai which = TUR_SelimI.ai } 
command = { type = badboy value = -5 } 
}
}

#The Conquests of Suleyman I The Law Giver#
event = {

id = 301005
random = no
country = TUR
name = "Завоевания Сулеймана I (Реформатор)" 
desc = "Во время правления Сулеймана I, империя находилась в самом зените своего могущества. Венгрия, Ядисан, Ирак, Армения, Грузия, Йемен, Оман, Ливия и столица Саффавидов Тебриз, ни кто не устоял перед армиями Сулеймана. Во время вторжения на Мальту, султан пробовал уничтожить рыцарей Ордена Святого Иоанна. При Сулеймане состоялась грандиозная битва под Веной, между мусульманскими и христианскими армиями, так же султан присоединил огромные территории Далмации, отнятые у Венеции и вассализировал пиратов Алжира." 
style = 2

date = { day = 22 month = september year = 1520 }

action_a ={ #I am truly Lord of the Horizons#
name = "Я единственный правитель всех горизонтов!"

command = { type = addcore which = 473 } #Austria
command = { type = addcore which = 819 } #Georgia 
command = { type = addcore which = 479 } #Ionia
command = { type = addcore which = 489 } 
command = { type = addcore which = 508 } 
command = { type = addcore which = 488 } 
command = { type = addcore which = 1453 } 
command = { type = addcore which = 1454 } 

command = { type = addcore which = 507 } 
command = { type = addcore which = 740 } #Tripolitania
command = { type = addcore which = 739 } 
command = { type = addcore which = 1952 } 
command = { type = addcore which = 362 } #Dalmatia
command = { type = addcore which = 1007 }
command = { type = addcore which = 354 }
command = { type = stability value = 3 } 
#command = { type = ai which = TUR_SuleymanI.ai }  
command = { type = badboy value = -5 }
}
}
#The Conquests of Selim II The Sot#
event = {

id = 301006
random = no
country = TUR
name = "Завоевания Селима II (Пьяницы)" 
desc = "Селим II любивший хорошо выпить и охочий до женщин, практически забросил управление империи, вся тяжесть которой  легла на плечи Великого визиря Соколлу Мехмед Паши, занимавший этот пост ещё со времён правления Сулеймана. В 1579 Соколлу начал собирать войска для вторжения в Испанию, для освободить мусульман. К счастью для Испании, Селим пожелал любыми средствами сначала захватить Кипр, производящий любимое вино султана. В 1574 году, Тунис пал перед союзом Оттоманской Империи и Алжира." 
style = 2

date = { day = 7 month = september year = 1566 }

action_a ={ #Get Me My Wine#
name = "Я хочу получить своё вино!"
command = { type = addcore which = 484 } #Cyprus
command = { type = stability value = 1 } 
#command = { type = ai which = TUR_SelimII.ai } 
command = { type = badboy value = -3 } 
          }
}

#The Conquests of Murad III#
event = {

id = 301007
random = no
country = TUR
name = "Звоевания Мурада III" 
desc = "При Мурада III, империя разрослась до невиданных масштабов. Новыми приобретениями были Азербайджан и Дагестан, подконтрольные территории турок и персов." 
style = 2

date = { day = 1 month = december year = 1574 }

action_a ={ #Reaching the limits#
name = "Достичь предела величия"
command = { type = addcore which = 1327 } #Daghestan
command = { type = addcore which = 487 } #Azerbaijan
command = { type = addcore which = 472 }
command = { type = addcore which = 1060 }
command = { type = addcore which = 1961 }
command = { type = stability value = 1 } 
#command = { type = ai which = TUR_MuradIII.ai } 
command = { type = badboy value = -3 }
}
}

#The Conquests of Mehmed IV#
event = {

id = 301008
random = no
country = TUR
name = "Завоевания Мехмеда IV" 
desc = "В 1648 году, турки вторглись на остров Кипр. После двадцати лет войны, в 1668 году они захватили остров. В 1672 году украинские казаки попросили помощи у турок, против Польши, предлагая свою верность. Визирь Мехмеда, Ахмед прибыл на зов помощи и нанёс несколько поражений полякам, при этом присоединив Подолье к империи. Однако казаки нарушили своё обещания о верности." 
style = 3

date = { day = 8 month = August year = 1648 }

action_a ={ #Help the Cossaks#
name = "Помочь казакам"
command = { type = addcore which = 480 } #Crete
command = { type = addcore which = 297 } #Podolia
command = { type = addcore which = 295 } 
command = { type = addcore which = 994 } 
command = { type = addcore which = 296 } 
command = { type = stability value = 1 }  
command = { type = badboy value = -3 }
         }
}



event = { 
	id = 301027	
	random = NO
	country = TUR
	name = "Тврко II просит помощи" 
	desc = "Мой султан, прежний король Боснии, Тврко II был свергнут Вадиводжом. Несколько лет назад, ваш великий отец Мехмед I помог ему вернуться на трон. Теперь он опять здесь, прося поддержки. Будем ли мы помогать ему снова?"

	style = 1 

	action_a = { 
		name = "Оказать поддержку этой собаке!"
		command = { type = vassal which = BOS }
		command = { type = trigger which = 189206 }
		command = { type = alliance which = BOS }	#I doubt this will work#
		command = { type = relation which = BOS value = 75 }
	}
	action_b = { 
		name = "Достаточно! Казнить его и вторгнуться в Боснию!"
		command = { type = war which = BOS }
                 command = { type = stability value = 2 }
	}
}


#Claims on Hungary
event = {
      id = 301029
      random = no
      country = TUR
      name = "Королевство Венгрия"
      desc = "Королевство Венгрия приняло нового монарха, который испытывал недостаток в поддержке большей части знати. Можно ожидать длительной внутренней борьбой, которая вероятно дала бы султану возможность расширить свои северные территории."
      style = 1

      action_a = {
               name = "Воспользоваться ситуацией"
                command = { type = addcore which = 326 }
		command = { type = addcore which = 352 }
		command = { type = addcore which = 353 }
		command = { type = addcore which = 325 }
		command = { type = addcore which = 324 }
		command = { type = addcore which = 1950 }
		command = { type = addcore which = 326 }
		command = { type = addcore which = 316 }
		command = { type = addcore which = 317 }
		command = { type = addcore which = 354 }
		command = { type = addcore which = 367 }
                command = { type = addcore which = 366 }
                command = { type = addcore which = 1952 }
command = { type = addcore which = 1402 }
command = { type = addcore which = 1999 }
                command = { type = stability value = 1 }
command = { type = badboy value = -6 }
                 }
}





#Ottoman flavour events by Emre Yigits, modified and submitted by Norrefeldt

event = {
id = 301031
random = no
country = TUR
name = "Бард Багдада"
desc = "Сулейман Фузули (1480-1556) второй по значимости поэт после Баки. Сулейман, перс по национальности, всю жизнь провёл в Османской империи."
style = 2
date = { day = 1 month = january year = 1534 }
offset = 5000

action_a = {
name = "О, великий!"
command = { type = infra value = 50 }
command = { type = badboy value = -1 }
command = { type = stability value = 1 }
}
}

event = {
id = 301032
random = no
country = TUR
name = "Султан поэтов"
desc = "Мехмед Баки (1526-1600) был самым выдающимся турецким поэтом. Сын бедного священнослужителя, чтобы учиться в университете, продавал свои поэзии и вскоре стал известным, в конечном счёте, он его представили султану. Смерть Мехмеда погрузила весь Константинополь в печаль, похоронен он был, как государственный деятель."
style = 2
date = { day = 1 month = january year = 1546 }
offset = 10000

action_a ={
name = "Ох, как это великолепно!"
command = { type = infra value = 100 } 
command = { type = badboy value = -1 }
command = { type = stability value = 1 }
}
}

event = {
id = 301033
random = no
country = TUR
name = "Астролог или астроном?"
desc = "Такиюддин Эфенди (1521-1585) ‘небесный’ студент, повлиял на султана, чтобы построить обсерваторию в Константинополе. Однако, ведущие религиозные деятели были встревожены, что он занимается запрещённой наукой-астрологией и сделали всё возможное, чтобы сорвать строительство."
style = 2
date = { day = 1 month = january year = 1579 }
offset = 720

action_a = { # Astrologer!
name = "Сорвать строительство обсерватории"
command = { type = missionaries   value = 1 } 
command = { type = infra value = -50 }
command = { type = badboy value = -1 }
command = { type = stability value = 1 }
}
action_b = { # Astronomer!
name = "Мы должны всё знать о небесах!"
command = { type = missionaries   value = -1 } 
command = { type = infra value = 50 }
command = { type = badboy value = -1 }
command = { type = stability value = 1 }
}
}

event = {
id = 301034
random = no
country = TUR
name = "Турецикий фаворит"
desc = "Кульминацией поэтов проповедующих персидский стиль был Юсуф Наби (1642-1712), ещё при жизни были высоко расценены его биографические, исторические и географические работы."
style = 3
date = { day = 1 month = january year = 1672 }
offset = 5000

action_a = {
name = "О, как это восхитительно"
command = { type = infra value = 50 }
command = { type = badboy value = -1 }
command = { type = stability value = 1 }
}
}

event = {
id = 301035
random = no
country = TUR
name = "Выдающийся географ"
desc = "Катир Челеди (1609-1657) самый выдающийся османский картограф и путешественник. Его работы включали массивный труд ‘Представление о Мире’. Впервые турки смогли воочию увидеть подробную карту Европы и Ближнего Востока."
style = 3
date = { day = 1 month = january year = 1635 }
offset = 1000

action_a = { 
name = "Как велик Мир!"
command = { type = relation which = -1 value = 10 }
command = { type = diplomats  value = 2 } 
command = { type = badboy value = -1 }
command = { type = stability value = 1 }
}
}

event = {
id = 301036
random = no
country = TUR
name = "Доверенное лицо султана"
desc = "Ахмет Недин (1681-1730) самый преданный компаньон султана Ахмеда III во время легкомысленного периода Тюльпанов. В отличаи от своих предшественников, писал в более свободном и лёгком стиле, его влиянию было подчинено турецкое общество, на протяжении всего XVII века."
style = 4
date = { day = 1 month = january year = 1705 }
offset = 3000

action_a = { 
name = "Отвратительно"
command = { type = infra value = 150 }
command = { type = badboy value = -1 }
command = { type = stability value = 1 }
}
action_b = { 
name = "Восхитительно"
command = { type = infra value = 150 }
command = { type = badboy value = -1 }
command = { type = stability value = 1 }
}
}


# Болгары присягают султану
event = {
	id = 299651
	trigger = {
               event = 3353 

owned = { province = 1953 data = -1 }
owned = { province = 321 data = -1 }
owned = { province = 357 data = -1 }
owned = { province = 356 data = -1 }     
            
	}
	random = no
	country = TUR
	name = "Болгары смиряются с османским владычеством"
	desc = "Болгарские царства были захвачены Османами в конце 14-го века. Несмотря на отчанное сопротивление, турки покорили эту страну и физически уничтожили всю её аристократию и элиту, а земли раздали на поместья сипахиях. После завоевания Болгарии сотни тысяч турок переселись в Румелию, все это привело к тому, что Болгария-Румелия, надолго стала верной и спокойной Османской провинцией."
	style = 1

	date = { day = 1 month = january year = 1419 }
	offset = 30
	deathdate = { day = 1 month = january year = 1560 }
	
	action_a ={			
		name = "Да здравствует бейлербейлик Румелия!"
                command = { type = provincereligion which = 321 value = sunni }
		command = { type = stability value = 1 }
	}
}

# Сербо-хорваты присягают султану
event = {
	id = 299652
	trigger = {

               event = 3353 

owned = { province = 1953 data = -1 }
owned = { province = 355 data = -1 }
owned = { province = 364 data = -1 }
owned = { province = 1000 data = -1 }
owned = { province = 363 data = -1 }   
              
	}
	random = no
	country = TUR
	name = "Сербо-хорваты смиряются с османским владычеством"
	desc = "В 1460году окончательно покорили Сербию и Боснию. После чего эти провинции на сотни лет попали под иго турок. Местная знать была или истреблена, или перешла в мусульманство. Тяготы имперсокго и религиозного гнета приводили к тому, что многие жители принимали ислам - становясь "портученцами". Для таких людей в интернационально-мусульманской Османской империи открывалось множество перспектив. Несколько Великих Визирей, были сербами по происхождени, и не забывали об этом, помогая родине. "
	style = 1

	date = { day = 1 month = january year = 1419 }
	offset = 30
	deathdate = { day = 1 month = january year = 1560 }
	
	action_a ={			
		name = "Да здравствует санджак Босния!"
                command = { type = add_countryculture which = slavonic }
                command = { type = provincereligion which = 364 value = sunni }
		command = { type = stability value = 1 }
	}
}
