#Ottoman Empire (TUR)

#-----------------------------------------------------------------------------------------------
#Badboy regulation events

#(1419-1650) The Empire is growing
event = {
	id = 301054
	trigger = {
		OR = {
			owned = { province = 357 data = -1 } #Thrace
			owned = { province = 359 data = -1 } #Hellas
			owned = { province = 360 data = -1 } #Morea
		}
		badboy = 30
		ai = no
	}
	random = no
	country = TUR
	name = "EVENTNAME301054" #The Empire is growing
	desc = "EVENTHIST301054"
	#-#With our Empire growing, some of our previous conquests are now firmly in our hands.

	date = { day = 0 month = january year = 1419 }
	offset = 180
	deathdate = { day = 0 month = january year = 1650 }

	action_a = {
		name = "OK"
		command = { type = badboy value = -5 }
	}
}
#(1419-1650) The Empire is growing
event = {
	id = 301055
	trigger = {
		OR = {
			owned = { province = 357 data = -1 } #Thrace
			owned = { province = 359 data = -1 } #Hellas
			owned = { province = 360 data = -1 } #Morea
		}
		badboy = 30
		ai = yes
	}
	random = no
	country = TUR
	name = "EVENTNAME301054" #The Empire is growing
	desc = "EVENTHIST301054"
	#-#With our Empire growing, some of our previous conquests are now firmly in our hands.

	date = { day = 0 month = january year = 1419 }
	offset = 180
	deathdate = { day = 0 month = january year = 1650 }

	action_a = {
		name = "OK"
		command = { type = badboy value = -10 }
	}
}
#(1419-1650) BB regulation - AI only
event = {
	id = 301056
	trigger = {
		OR = {
			owned = { province = 355 data = -1 } #Serbia
			owned = { province = 361 data = -1 } #Albania
			owned = { province = 364 data = -1 } #Bosnia
		}
		badboy = 30
		ai = yes
	}
	random = no
	country = TUR
	name = "AI_EVENT"
	desc = ""

	date = { day = 0 month = january year = 1419 }
	offset = 180
	deathdate = { day = 0 month = january year = 1650 }

	action_a = {
		name = "OK"
		command = { type = badboy value = -10 }
	}
}
#(1419-1650) BB regulation - AI only
event = {
	id = 301057
	trigger = {
		OR = {
			owned = { province = 475 data = -1 } #Trabzon
			owned = { province = 483 data = -1 } #Adana
			owned = { province = 1609 data = -1 } #Kastamonu
			owned = { province = 1611 data = -1 } #Taurus
		}
		badboy = 30
		ai = yes
	}
	random = no
	country = TUR
	name = "AI_EVENT"
	desc = ""

	date = { day = 0 month = january year = 1419 }
	offset = 180
	deathdate = { day = 0 month = january year = 1650 }

	action_a = {
		name = "OK"
		command = { type = badboy value = -10 }
	}
}
#(1419-1650) BB regulation - AI only
event = {
	id = 301058
	trigger = {
		event = 301030 #TUR: The Sultan becomes 'Khalifa'
		badboy = 30
		ai = yes
	}
	random = no
	country = TUR
	name = "AI_EVENT"
	desc = ""

	date = { day = 0 month = january year = 1419 }
	offset = 180
	deathdate = { day = 0 month = january year = 1650 }

	action_a = {
		name = "OK"
		command = { type = badboy value = -10 }
	}
}
#(1650-1820) BB regulation - AI only
event = {
	id = 301088
	trigger = {
		badboy = 40
		ai = yes
	}
	random = no
	country = TUR
	name = "AI_EVENT"
	desc = ""

	date = { day = 0 month = january year = 1650 }
	offset = 180
	deathdate = { year = 1820 }

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

#(1419-1430 or 1426-1430) Absorption of Aydin
event = {
	id = 301017 #also triggered by GZI_293000 A
	trigger = {
		owned = { province = 478 data = -1 } #Smyrna
	}
	random = no
	country = TUR
	name = "EVENTNAME301017" #Absorption of Aydin
	desc = "EVENTHIST293000"
	#-#The emirate of Aydin was first conquered by the Ottomans in 1390. Soon after Aydin was re-instated as an independent country by Timurlane, it found itself under the cloak of the Ottoman state again. One of the ghazi states to have supported a pretender to the Ottoman throne, the coastal state of Aydin was permanently annexed in 1426.

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

	action_a = {
		name = "ACTIONNAME301017A" #Smyrna is ours!
		command = { type = domestic which = CENTRALIZATION value = 2 }
		command = { type = provincemanpower which = 478 value = 3 } #Smyrna
		command = { type = provincetax which = 478 value = 6 } #Smyrna
	}
}

#(1419-1491) The City of Men's Desire - Capital moved
event = {
	id = 3353
	trigger = {
		owned = { province = 357 data = -1 } #Thrace
		control = { province = 357 data = -1 } #Thrace
	}
	random = no
	country = TUR
	name = "EVENTNAME3353" #The City of Men's Desire
	desc = "EVENTHIST3353"
	#-#Mehmed II's first action upon conquering Constantinople was marching into the Hagia Sofia and converting it into a mosque. The Sultan planned to make the great city the capital of a new revitalized--and Muslim--version of the Eastern Roman Empire. Mehmed dreamed of expanding the borders of his empire to match the Byzantines at their peak. He did not live to see that happen, but he did oversee the move of the Ottoman capital to Constantinople, which henceforth became known as Istanbul.

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

	action_a = {
		ai_chance = 100
		name = "ACTIONNAME3353A" #Make Constantinople the new Capital
		command = { type = flagname which = "" } #default set
		command = { type = capital which = 357 } #Thrace
		command = { type = domestic which = CENTRALIZATION value = 1 }
		command = { type = provinceculture which = 357 value = turkish } #Thrace
		command = { type = provincereligion which = 357 value = sunni } #Thrace
		command = { type = population which = 357 value = 20000 } #Thrace
		command = { type = population which = 477 value = -5000 } #Anatolia
		command = { type = population which = 478 value = -4000 } #Smyrna
		command = { type = population which = 356 value = -3000 } #Bulgaria
		command = { type = population which = 358 value = -2000 } #Macedonia
		command = { type = population which = 1610 value = -2000 } #Antalya
		command = { type = population which = 476 value = -2000 } #Angora
		command = { type = population which = 321 value = -1000 } #Rumelia
		command = { type = population which = 320 value = -1000 } #Dobrudja
		command = { type = provincemanpower which = 357 value = 3 } #Thrace
		command = { type = stability value = 2 }
		command = { type = setflag which = [Constantinople] }
		command = { type = sleepevent which = 301127 } #TUR: Consequences of the Conquest of Constantinople -II-
	}
	action_b = {
		ai_chance = 0
		name = "ACTIONNAME3353B" #Keep the old one
		command = { type = flagname which = "" } #default set
		command = { type = domestic which = CENTRALIZATION value = -3 }
		command = { type = stability value = -1 }
		command = { type = setflag which = [OldCapital] }
		command = { type = sleepevent which = 301091 } #TUR: Consequences of the Conquest of Constantinople -I-
	}
}
#(1419-1500) Consequences of the Conquest of Constantinople -I-
event = {
	id = 301091
	trigger = {
		owned = { province = 357 data = -1 } #Thrace
		control = { province = 357 data = -1 } #Thrace
		flag = [Constantinople]
		atwar = no
		OR = {
			owned = { province = 477 data = -1 } #Anatolia
			owned = { province = 478 data = -1 } #Smyrna
		}
	}
	random = no
	country = TUR
	name = "EVENTNAME301091" #Consequences of the Conquest of Constantinople
	desc = "EVENTHIST301091"
	#-#After the conquest of Constantinople, Turkish culture and Muslim faith spread in former Orthodox provinces in the area.

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

	action_a = {
		name = "GREAT"
		command = { type = provinceculture which = 477 value = turkish } #Anatolia
		command = { type = provinceculture which = 478 value = turkish } #Smyrna
		command = { type = provincereligion which = 477 value = sunni } #Anatolia
		command = { type = provincereligion which = 478 value = sunni } #Smyrna
	}
}
#(1419-1500) Consequences of the Conquest of Constantinople -II-
event = {
	id = 301127
	trigger = {
		owned = { province = 357 data = -1 } #Thrace
		control = { province = 357 data = -1 } #Thrace
		flag = [OldCapital]
		atwar = no
		OR = {
			owned = { province = 358 data = -1 } #Macedonia
			owned = { province = 477 data = -1 } #Anatolia
			owned = { province = 478 data = -1 } #Smyrna
		}
	}
	random = no
	country = TUR
	name = "EVENTNAME301091" #Consequences of the Conquest of Constantinople
	desc = "EVENTHIST301091"
	#-#After the conquest of Constantinople, Turkish culture and Muslim faith spread in former Orthodox provinces in the area.

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

	action_a = {
		name = "GREAT"
		command = { type = provinceculture which = 358 value = turkish } #Macedonia
		command = { type = provinceculture which = 477 value = turkish } #Anatolia
		command = { type = provinceculture which = 478 value = turkish } #Smyrna
		command = { type = provincereligion which = 477 value = sunni } #Anatolia
		command = { type = provincereligion which = 478 value = sunni } #Smyrna
	}
}

#(1419-1491) The Economic Reforms of Mehmed II
event = {
	id = 3352
	trigger = {
		event = 3353 #TUR: The City of Men's Desire
	}
	random = no
	country = TUR
	name = "EVENTNAME3352" #The Economic Reforms of Mehmed II
	desc = "EVENTHIST3352"
	#-#Prior to his conquest of Constantinople Mehmed II signed several generous agreements with the mercantile empires of Venice and Genoa to ensure their neutrality, but when the great city had fallen he was not late in breaking the western merchants' strangle-hold on the Black Sea trade. Mehmed was a mercantilist who strived to maintain state control over the merchants, yet his protectionist measures had the intended effect and the Ottoman economy thrived.

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

	action_a = {
		name = "ACTIONNAME3352A" #Break the Agreements
		command = { type = removecot which = 465 } #Kerch
		command = { type = cot which = 357 } #Thrace
		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: The trade in the Black Sea
	}
}

#(1419-1449) Military Reforms
event = {
	id = 3354
	random = no
	country = TUR
	name = "EVENTNAME3354" #Military Reforms
	desc = "EVENTHIST3354"
	#-#The reigns of Mehmed I and Murad II saw the Ottoman Empire reunified after the crushing defeat it had suffered at the hands of Tamerlane. The military was expanded and reformed to match any potential threat and ensure further expansion. It was also during this period that the Ottomans started to realize the vital importance of a strong navy.

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

	action_a = {
		name = "ACTIONNAME3354A" #Great Army Reform
		command = { type = land value = 1000 }
		command = { type = naval value = 500 }
		command = { type = domestic which = quality value = 1 }
		command = { type = domestic which = LAND value = 2 }
		command = { type = domestic which = OFFENSIVE value = 2 }
		command = { type = inf which = -1 value = 5000 }
		command = { type = cav which = -3 value = 5000 }
	}
	action_b = {
		name = "ACTIONNAME3354B" #Reform Army and Navy
		command = { type = land value = 750 }
		command = { type = naval value = 750 }
	}
	action_c = {
		name = "ACTIONNAME3354C" #Great Naval Reform
		command = { type = land value = 500 }
		command = { type = naval value = 1000 }
		command = { type = domestic which = LAND value = -1 }
		command = { type = domestic which = OFFENSIVE value = -1 }
		command = { type = warships which = -1 value = 5 }
	}
}

#(1419-1620) Fate of the Patriarchate
event = {
	id = 3750
	trigger = {
		owned = { province = 357 data = -1 } #Thrace
		NOT = { exists = BYZ }
	}
	random = no
	country = TUR
	name = "EVENTNAME3750" #Fate of the Patriarchate
	desc = "EVENTHIST3750"
	#-#With Constantinople in our hands, we must decide the fate of the Christian Patricarch. There are many Christians still in the city, it might be prudent to show some leniency. This time...

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

	action_a = {
		name = "ACTIONNAME3750A" #Allow the Patriarchate to exist and keep the current Patriarch
		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 = sleepevent which = 233004 } #MOS: Elections of the New Metropolitan -II-
	}
	action_b = {
		name = "ACTIONNAME3750B" #Allow the Patriarchate to exist, but appoint a new Patriarch
		command = { type = stability value = 1 }
		command = { type = relation which = SER value = 50 }
		command = { type = relation which = BOS value = 50 }
		command = { type = relation which = TRE value = 50 }
		command = { type = domestic which = CENTRALIZATION value = 1 }
		command = { type = sleepevent which = 233004 } #MOS: Elections of the New Metropolitan -II-
	}
	action_c = {
		name = "ACTIONNAME3750C" #Close down the Patriarchate and confiscate its properties
		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 } #Suzdal
		command = { type = relation which = SER value = -100 }
		command = { type = relation which = BOS value = -100 }
		command = { type = relation which = TRE value = -100 }
		command = { type = relation which = TVE value = -100 }
		command = { type = domestic which = INNOVATIVE value = -1 }
		command = { type = treasury value = 300 }
		command = { type = sleepevent which = 40094 } #MOS: Elections of the New Metropolitan -I-
	}
}

#(1421) The Conquests of Murad II
#by Chegitz Guevara
event = {
	id = 301001
	random = no
	country = TUR
	name = "EVENTNAME301001" #The Conquests of Murad II
	desc = "EVENTHIST301001"
	#-#During the reign of Murad II, Serbia and Bosnia were conquered briefly and the Ottomans attempted to conquer Albania.

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

	action_a = {
		name = "ACTIONNAME301001A" #I will restore the Empire
		command = { type = addcore which = 355 } #Serbia
		command = { type = addcore_claim which = 361 } #Albania resisted first attempts to conquer it
		command = { type = addcore which = 364 } #Bosnia
		command = { type = casusbelli which = HUN value = 360 }
		command = { type = casusbelli which = VEN value = 120 }
		#command = { type = AI which = TUR_MuradII.txt }
	}
}

#(1421) Pretender to the Ottoman Throne
event = {
	id = 23002 #triggered by BYZ_23000 A
	random = no
	country = TUR
	name = "EVENTNAME23000" #Pretender to the Ottoman Throne
	desc = "EVENTHIST23000"
	#-#In 1421 the Ottoman Sultan, Mehmed I, died. His son, Murad II, ascended the throne. However, the Byzantines were holding Mehmed's brother, Mustafa, prisoner on the island of Lemnos. Hoping for the best, and urged on by his son (John VIII), Manuel II released this pretender to the throne, creating civil war in the Ottoman Empire. The Venetians took the opportunity to attack the Ottoman navy.

	action_a = {
		name = "ACTIONNAME23002A" #Focus on the revolts
		command = { type = revolt which = 358 } #Macedonia
		command = { type = inf which = -1 value = 5000 }
		command = { type = cav which = -3 value = 5000 }
	}
}
#(1421) Pretender to the Ottoman Throne
event = {
	id = 23003 #triggered by BYZ_23000 D
	random = no
	country = TUR
	name = "EVENTNAME23000" #Pretender to the Ottoman Throne
	desc = "EVENTHIST23000"
	#-#In 1421 the Ottoman Sultan, Mehmed I, died. His son, Murad II, ascended the throne. However, the Byzantines were holding Mehmed's brother, Mustafa, prisoner on the island of Lemnos. Hoping for the best, and urged on by his son (John VIII), Manuel II released this pretender to the throne, creating civil war in the Ottoman Empire. The Venetians took the opportunity to attack the Ottoman navy.

	action_a = {
		name = "ACTIONNAME23002A" #Focus on the revolts
		command = { type = revolt which = 358 } #Macedonia
		command = { type = revolt which = 358 } #Macedonia
		command = { type = inf which = -1 value = 5000 }
		command = { type = cav which = -3 value = 5000 }
	}
}

#(1421) Serbia aids the pretender
event = {
	id = 301119 #triggered by SER_277031 B
	random = no
	country = TUR
	name = "EVENTNAME301119" #Serbia aids the pretender
	desc = "EVENTHIST301119"
	#-#Treacherous vassal, Despot Stefan Lazarevic of Serbia, decided to aid Mustafa in his rebellion.

	action_a = {
		name = "ACTIONNAME301119A" #He shall pay for this
		command = { type = revolt which = 358 } #Macedonia
	}
}

#(1424) Treaty of 1424
event = {
	id = 23006 #triggered by BYZ_23004 A
	random = no
	country = TUR
	name = "EVENTNAME23004" #Treaty of 1424
	desc = "EVENTHIST23004"
	#-#Murad rapidly put down Mustafa's revolt, and angrily attacked Byzantium. Manuel released another pretender, also named Mustafa, who was the brother of Murad, but this one fared no better. In 1423 the Turks invaded Morea, smashing through the Hexamilium (6 mile wall) that Manuel II had built across the Isthmus of Corinth for protection in 1414. They also pressed Thessalonica, still a Byzantine city, so hard that the governor turned it over to the Venetians and wished them better luck. By 1424, with no help forthcoming, the Byzantines sadly accepted vassalage to the Turks. Venice held onto Thessalonica until 1430.

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

#(1425) Sheikh-ul-Islam Office instituted
event = {
	id = 3356
	random = no
	country = TUR
	name = "EVENTNAME3356" #Sheikh-ul-Islam Office instituted
	desc = "EVENTHIST3356"
	#-#Molla Fenari becomes the first Sheikh-ul-Islam in 1425. This was an office whose main function was to ensure that the conduct of government was in accordance with Islamic law. In later eras, Sheikh-ul-Islams were to wield tremendous influence in government affairs, plot against the Sultans, incite Janissary uprisings and prevent the modernization of the army and civil service.

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

	action_a = {
		name = "ACTIONNAME3356A" #Institute the office
		command = { type = domestic which = CENTRALIZATION value = -1 }
		command = { type = domestic which = INNOVATIVE value = -1 }
		command = { type = missionaries value = 1 }
		command = { type = stability value = 3 }
	}
	action_b = {
		name = "ACTIONNAME3356B" #Reject the idea
		command = { type = stability value = -2 }
		command = { type = missionaries value = -1 }
		command = { type = domestic which = INNOVATIVE value = 1 }
		command = { type = sleepevent which = 50008 } #TUR: Power of Sheikh-ul-Islam
	}
}

#(1427) Ottomans in Golubac
event = {
	id = 301093 #triggered by SER_277011 A
	random = no
	country = TUR
	name = "EVENTNAME301093" #Ottomans in Golubac
	desc = "EVENTHIST301093"
	#-#Golubac was one of the strategically most important fortresses on Danube. It was of uncertain origins, either Hungarian or Serbian. Golubac was awared to Despot Stefan Lazarevic along with Belgrade when he swore vassalage to Sigismund. When Djuradj Brankovic returned the territories to Sigismund, Duke Jeremija, Serbian governor of the fortress, refused to turn it over to Hungarians unless he is paid a compensation. Sigismund refused to be blackmailed and Jeremija turned the fortress over to Ottomans, starting another bloody conflict between Hungary and the Ottoman Empire.

	action_a = {
		name = "ACTIONNAME301093A" #The most favorable turn of events!
		command = { type = relation which = SER value = -100 }
		command = { type = relation which = HUN value = -100 }
		command = { type = addcore which = 355 } #Serbia, although it would be in Banat had it been returned to Hungary, Golubac would be in Serbia under Ottoman rule.
		command = { type = trigger which = 188021 } #HUN: Ottomans in Golubac
	}
}

#(1427-1430) Pretender in Zeta
event = {
	id = 301120
	trigger = {
		owned = { province = 362 data = SER } #Ragusa
	}
	random = no
	country = TUR
	name = "EVENTNAME301120" #Pretender in Zeta
	desc = "EVENTHIST301120"
	#-#Trying to use the succession in Serbia to gain lordship over Zeta, Stefan Balsic de Marmonte, the last of Baslic family, allied with disloyal noble Gojcin Crnojevic. An old enemy of Venice, Marmonte could only ask the Ottomans for help. Sultan Murad II gladly used any opportunity to destabilize Christian realms on the Balkans.

	date = { day = 1 month = january year = 1427 }
	offset = 30
	deathdate = { day = 1 month = december year = 1430 }

	action_a = {
		name = "ACTIONNAME301120A" #Aid the rebels in Zeta
		command = { type = desertion which = -1 value = 5000 }
		command = { type = relation which = SER value = -100 }
		command = { type = relation which = VEN value = -50 }
		command = { type = relation which = HUN value = -50 }
		command = { type = trigger which = 277034 } #SER: Rebellion in Zeta
	}
	action_b = {
		name = "ACTIONNAME301120B" #Refuse
		command = { type = relation which = SER value = 50 }
		command = { type = relation which = VEN value = 50 }
	}
}

#(1428-1444) Serbia submits
event = {
	id = 301094 #triggered by SER_277012 A
	trigger = {
		NOT = { vassal = { country = SER country = TUR } }
	}
	random = no
	country = TUR
	name = "EVENTNAME301094" #Serbia submits
	desc = "EVENTHIST301094"
	#-#After the transfer of Belgrade to Hungary and Ottoman occupation of Golubac, Ottman Sultan sent his army against Serbia and occupied it's southern strongholds of Nis and Krusevac. Having defeated Hungarian army at Golubovac, the Ottomans were clearly having the upper hand. Struggling to save Serbia from destruction, Djuradj Brankovic swore a dual vassalage to Hungary and Ottoman Empire, paying 50000 ducats and a cavalry unit to fight for the Sultan in internal conflicts of the Ottoman Empire.

	action_a = {
		name = "ACTIONNAME301094A" #Welcome our new vassal...and his gold and troops
		command = { type = relation which = SER value = 100 }
		command = { type = relation which = HUN value = -50 }
		command = { type = CAV which = -2 value = 2000 } #unit of Serbian cavalry available in the capital
		command = { type = treasury value = 50 } #tribute from Serbian Despot
		command = { type = vassal which = SER }
		command = { type = trigger which = 188033 } #HUN: Dual vassalage of Serbia
	}
}
#(1428-1444) Bosnia submits
event = {
	id = 301121
	trigger = {
		NOT = { vassal = { country = BOS country = TUR } }
		exists = BOS
		event = 130007 #BOS: Consequences of Golubac conflict
	}
	random = no
	country = TUR
	name = "EVENTNAME301121" #Bosnia submits
	desc = "EVENTHIST130007"
	#-#Emperor Sigismund's crushing defeat in battle for fortress of Golubac on Danube had its consequences in Bosnia as well. After defeat of Hungary and submission of Serbia, Bosnia was suddenly left without protection from the Ottomans. King Tvrtko II followed Serbian Despot's example and swore vassalage to Ottoman Sultan, but he could not afford the tribute when the time came to pay. Ottomans invaded Bosnia and seized several forts in the most fertile parts of the Kingdom.

	date = { day = 1 month = may year = 1428 }
	offset = 0
	deathdate = { day = 29 month = january year = 1444 }

	action_a = {
		name = "ACTIONNAME301121A" #Teach him a lesson
		command = { type = relation which = HUN value = -100 }
		command = { type = treasury value = 10 } #plunder from Bosnia
		command = { type = desertion which = -1 value = 3000 } #garrison for Bosnian forts
		command = { type = vassal which = BOS }
	}
}

#(1428-1444) Devastation of Serbian towns
event = {
	id = 301096
	trigger = {
		owned = { province = 363 data = -1 } #Kosovo
	}
	random = no
	country = TUR
	name = "EVENTNAME301096" #Devastation of Serbian towns
	desc = "EVENTHIST301096"
	#-#When Ottomans conquered southern Serbia for the first time, their armies plundered the Serbian towns and villages and left them devastated. A number of residents of those settlements was taken east as slaves, and the whole area suffered greatly during this occupation. Whatever was rebuilt after the initial plunder was repeatedly burned by Hungarian raids.

	date = { day = 1 month = january year = 1428 }
	offset = 100
	deathdate = { day = 1 month = january year = 1444 }

	action_a = {
		name = "ACTIONNAME301096A" #Who cares about those borderlands?
		command = { type = treasury value = 25 }
		command = { type = provincetax which = 363 value = -2 } #With destruction of major centers of commerce, the economy of the province is greatly reduced
		command = { type = provincemanpower which = 363 value = -1 } #Taking people into slavery reduces manpower
	}
}

#(1429-1439) Inheritance of Germiyan
event = {
	id = 301018 #triggered by GZI_293001 A
	random = no
	country = TUR
	name = "EVENTNAME301018" #Inheritance of Germiyan
	desc = "EVENTHIST301018"
	#-#When the Byzantines released Mustafa Celebi as a pretender to the Ottoman throne, Germiyan and many of the other ghazi states supported him against Sultan Murad II. However, when Mustafa was murdered in 1423, in a flash of divine inspiration, Yakub Bey, ruler of Germiyan, realized that he had been in the wrong and decided to develop a good relationship with the Ottomans. Never having any sons, Yakub willed his country to the Ottoman state pursuant to his death in February of the year 1429.

	action_a = {
		name = "ACTIONNAME301018A" #Germiyan is no more!
		command = { type = inherit which = GZI }
		command = { type = relation which = MAM value = -100 }
		command = { type = domestic which = CENTRALIZATION value = 1 }
	}
}

#(1430-1456) Djuradj Brankovic pays ransom for captives from Thessalonica
event = {
	id = 301095 #triggered by SER_277015 A
	random = no
	country = TUR
	name = "EVENTNAME301095" #Djuradj Brankovic pays ransom for captives from Thessalonica
	desc = "EVENTHIST301095"
	#-#When Thessalonica, defended by Republic of Venice, fell to the Ottoman Empire in 1430, Djuradj's son Grgur lead the unit of Serbian knights provided as part of Serbia's tribute. Due to Grgur's proximity to the field of battle and Djuradj's influence in Sultan's court, Serbian Despot was the first to react when Ottomans offered a number of high-ranking Greek captives for ransom. The tradition continued afterwards and many Greek, Bulgarian and Albanian captives found shelter in Djuradj's court, bringing with them their Byzantine experience and prestige.

	action_a = {
		name = "ACTIONNAME301095A" #Better send them to our vassal than to an enemy
		command = { type = treasury value = 200 }
	}
}

#(1435) Athenian Envoy - Ahistorical
event = {
	id = 301071 #triggered by ATH_23009 B
	random = no
	country = TUR
	name = "EVENTNAME301071" #Athenian Envoy
	desc = "EVENTHIST301071"
	#-#When the Athenian Duke Antonio I died (1435), his widow Maria Melissene occupied the Acropolis and sent her Arkhon Georgios Chalkokondylos (with a large bribe) to Murād II to invest him with the Dukedom of Athens. The Sultan responded by throughing him in prison.

	action_a = {
		name = "ACTIONNAME301071A" #Lock Chalkokondylos up
		command = { type = relation which = ATH value = -50 }
		command = { type = stability value = 1 }
		command = { type = treasury value = 50 }
	}
	action_b = {
		name = "ACTIONNAME301071B" #Install Chalkokondylos as Duke
		command = { type = vassal which = ATH }
		command = { type = trigger which = 117002 } #ATH: Chalkokondylos Dyn
	}
}

#(1435) Tvrko II begging for help
event = {
	id = 301027
	trigger = {
		NOT = { vassal = { country = BOS country = TUR } }
		exists = BOS
		event = 130002 #BOS: Return of Tvrko II
	}
	random = no
	country = TUR
	name = "EVENTNAME301027" #Tvrko II begging for help
	desc = "EVENTHIST301027"
	#-#The former King of Bosnia, Tvrko II had been overthrown by his relative, Radivoj. A few years ago, Mehmet I helped him to claim his throne yet it seems that he is unable to retain his position. Now, he's here, begging for support. Shall we help him again?

	date = { day = 5 month = december year = 1435 }
	offset = 0
	deathdate = { day = 29 month = december year = 1435 }

	action_a = {
		name = "ACTIONNAME301027A" #Give support to that dog once more!
		command = { type = vassal which = BOS }
		command = { type = trigger which = 130003 } #BOS: Aid received
		command = { type = alliance which = BOS } #I doubt this will work
		command = { type = relation which = BOS value = 75 }
		command = { type = badboy value = -1 }
	}
	action_b = {
		name = "ACTIONNAME301027B" #Enough! Execute him and invade Bosnia!
		command = { type = war which = BOS }
	}
}

#(1439) The Council of Florence and the Union of the Churches
event = {
	id = 3840 #triggered by BYZ_3833 A / BYZ_23020 B
	random = no
	country = TUR
	name = "EVENTNAME3833" #The Council of Florence and the Union of the Churches
	desc = "EVENTHIST3840"
	#-#Faced with the terrible onslaught of the Ottoman Turks, representatives of the Byzantine Empire and the Greek Orthodox Church have gone to the Council of Florence in order to negotiate a Union of the Churches. The Byzantines and their patriarch have agreed to great concessions, and Orthodoxy has virtually surrendered to Rome. I fear that the Christians might be preparing for another Crusade.

	action_a = {
		name = "ACTIONNAME3840A" #Let them come!
		command = { type = casusbelli which = BYZ value = 60 }
		command = { type = domestic which = quality value = 1 }
		command = { type = INF which = -2 value = 10000 }
		command = { type = CAV which = -2 value = 5000 }
		command = { type = relation which = GZI 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 }
	}
}

#(1439-1444) Serbian Despot defies the Sultan
event = {
	id = 301097 #triggered by SER_277019 A
	trigger = {
		NOT = { war = { country = TUR country = SER } }
	}
	random = no
	country = TUR
	name = "EVENTNAME301097" #Serbian Despot defies the Sultan
	desc = "EVENTHIST301097"
	#-#In April 1439, a great Ottoman army lead by the Sultan himself approached the borders of Serbia. Murad II demanded that Despot Djuradj joins his invasion Bosnia and Hungary and allows unhindered passage of Ottoman troops through Serbia. After failing in attempts to secure Serbia's neutrality in the war, Djuradj refused Sultan's demands and the Ottomans attacked. Only Smederevo and Novo Brdo managed to withstand the initial assault of Turksih troops, and Djuradj fled to Hungary to seek help from the new Emperor Albrecht. Hungary didn't have enough troops to defend its borders and help Serbia at the same time, and Hungarian nobility blocked any attempt by Emperor Albrecht to bring German troops as reinforcements. Smederevo, the capital of Serbia, finally fell on August 18th.

	action_a = {
		name = "ACTIONNAME301097A" #He shall pay then
		command = { type = war which = SER }
	}
}
#(1439-1444) Serbian Despot accepts our demands
event = {
	id = 301098
	trigger = {
		NOT = { vassal = { country = SER country = TUR } }
		exists = SER
		event = 277019 #SER: Ottoman Ultimatum
	}
	random = no
	country = TUR
	name = "EVENTNAME301098" #Serbian Despot accepts our demands
	desc = "EVENTHIST301098"
	#-#In April 1439, a great Ottoman army lead by the Sultan himself approached the borders of Serbia. Murad II demanded that Despot Djuradj joins his invasion Bosnia and Hungary and allows unhindered passage of Ottoman troops through Serbia. After failing in attempts to secure Serbia's neutrality in the war, Despot Djuradj submitted to Sultan's wishes and joined him in war against Hungary and Bosnia.

	date = { day = 1 month = april year = 1439 }
	offset = 0
	deathdate = { day = 29 month = december year = 1444 }

	action_a = {
		name = "GOOD"
		command = { type = vassal which = SER }
		command = { type = alliance which = SER }
		command = { }
	}
}

#(1442) Vassalage of Wallachia
event = {
	id = 19002
	trigger = {
		neighbour = WAL
		OR = {
			event = 19001 #WAL: The Dragon in Chains -I-
			event = 329043 #WAL: The Dragon in Chains -II-
		}
	}
	random = no
	country = TUR
	name = "EVENTNAME19002" #Vassalage of Wallachia
	desc = "EVENTHIST19001"
	#-#In the spring of 1442, Sultan Murad II beguiled Dracul into a meeting, and insensitive to the snare, Dracul crossed the Danube with his 2nd son, Vlad Dracula (son of the Dragon), and his youngest son Radu cel Frumas (the handsome) in tow. Dracul was captured, bound in chains, and brought before the Sultan. Vlad Dracul was forced to swear fealty to Murad II, and both Dracula and Radu were kept as hostages, although each child had remarkably different reactions to their captivity. Radu developed marked pro-Turkish attitudes, while Dracula's thoughts were more difficult to fathom.

	date = { day = 16 month = april year = 1442 }

	action_a = {
		name = "EXCELLENT"
		command = { type = vassal which = WAL }
		command = { }
	}
}
#(1442) Hostage from Wallachia
event = {
	id = 19003 #triggered by WAL_19001 B
	trigger = {
		neighbour = WAL
	}
	random = no
	country = TUR
	name = "EVENTNAME19003" #Hostage from Wallachia
	desc = "EVENTHIST19003"
	#-#In the spring of 1442, Sultan Murad II beguiled Dracul into a meeting, and insensitive to the snare, Dracul crossed the Danube with his 2nd son, Vlad Dracula (son of the Dragon), and his youngest son Radu cel Frumas (the handsome) in tow. It was intended that Dracul be brought in chains before the Sultan and forced to swear fealty, using his sons as hostages, however, the wily Dragon avoided the trap. However, his emissary still acknowledges a debt of gratitude to the Sublime Porte, and realizing our superiority, has offered to send Radu to our court to be raised properly.

	action_a = {
		name = "EXCELLENT"
		command = { type = dynastic which = WAL }
	}
}

#(1442) The Death of Gjon Kastrioti
event = {
	id = 301025 #triggered by ALB_104000
	random = no
	country = TUR
	name = "EVENTNAME104000" #The Death of Gjon Kastrioti
	desc = "EVENTHIST104000"
	#-#In 1442 while Skanderbeg was fighting under the banner of Sultan Murat II, his father Gjon died. The death of this valiant Albanian Prince induced the Sultan to occupy, without losing time, this region also, thus adding more territory to his conquests. Gjergj Kastrioti, undoubtedly the ablest of the sons of Gjon was islamized and the other three sons were of no value whatsoever, and Murat II therefore bequeathed the principality to an Albanian renegade named Hassan Bey, who in a short time betrayed his country by putting the entire domain under the rule of the Crescent Moon.

	action_a = {
		name = "ACTIONNAME301025A" #Put Hassan Bey in command
		command = { type = vassal which = ALB }
		command = { type = alliance which = ALB }
		command = { type = badboy value = -1 }
		command = { type = relation which = ALB value = 50 }
		command = { type = trigger which = 104002 } #ALB: The Rule of Hassan Bey
	}
	action_b = {
		name = "ACTIONNAME301025B" #Take direct control
		command = { type = addcore which = 361 } #Albania
		command = { type = inherit which = ALB }
		command = { type = vassal which = ALB } #for human player
		command = { type = alliance which = ALB } #for human player
	}
}

#(1443-1468) The Betrayal of Iskander Bey
event = {
	id = 301026
	trigger = {
		owned = { province = 361 data = -1 }
		atwar = yes
		NOT = { event = 104004 } #ALB: Albanian Independence
	}
	random = no
	country = TUR
	name = "EVENTNAME301026" #The Betrayal of Iskander Bey
	desc = "EVENTHIST301026"
	#-#In 1443, during the battle against the Hungarians of Hunyadi in Nish (in present day Serbia), he abandoned the Ottoman Army and captured Kruja, his father's seat in middle Albania. Above the castle he rose the Albanian flag, a red flag with the black double-headed eagle, the present-day Albanian flag, and pronounced to his countrymen the famous words: 'I have not brought you liberty, I found it here, among you'.

	date = { day = 11 month = november year = 1443 }
	offset = 90
	deathdate = { day = 17 month = january year = 1468 }

	action_a = {
		name = "ACTIONNAME301026A" #We will have our revenge!
		command = { type = independence which = ALB }
		command = { type = trigger which = 104004 } #ALB: Albanian Independence
		command = { type = sleepevent which = 301084 } #TUR: The end of Albanian resistance -I-
		command = { type = sleepevent which = 301085 } #TUR: The end of Albanian resistance -II-
	}
	action_b = {
		name = "ACTIONNAME301026B" #We will never allow it to happen!
		command = { type = badboy value = 1 }
		command = { type = relation which = WAL value = -30 }
		command = { type = relation which = SER value = -30 }
		command = { type = relation which = TRE value = -30 }
		command = { type = relation which = BYZ value = -50 }
		command = { type = relation which = MOL value = -30 }
		command = { type = relation which = MRE value = -30 }
		command = { type = DIP which = -2 value = 12 }
		command = { type = revolt which = 361 } #Albania
		command = { type = revolt which = 361 } #Albania
		command = { type = population which = 361 value = -1000 } #Albania
		command = { type = province_revoltrisk which = 361 value = 10 } #Albania
	}
}

#(1443) Radivoj inherits Bosnia
event = {
	id = 301122 #triggered by BOS_130010 B
	trigger = {
		NOT = { vassal = { country = BOS country = TUR } }
	}
	random = no
	country = TUR
	name = "EVENTNAME301122" #Radivoj inherits Bosnia
	desc = "EVENTHIST301122"
	#-#Close to the end of his life, Tvrtko II was scared of Ottoman progress in the Balkans and feld to Venice. He died in November 1443 without a male heir, but he outlived Hermann of Cilli who was supposed to inherit Bosnia in such case. With Hungary loosing a war against Ottoman Empire, Emperor Albrecht I was not in a position to press the claims of Hermann's successors. The only two remaining choices were the two sons of Stefan Ostoja, Tvrtko's predecessor, Radivoj and Tomas. King Tvrtko choose the aggressive and ambitious Radivoj, our loyal vassal, as his successor.

	action_a = {
		name = "AWESOME"
		command = { type = vassal which = BOS }
		command = { type = alliance which = BOS }
		command = { }
	}
}

#(1444-1460) Peace of Szeged
event = {
	id = 301117 #triggered by HUN_188023 / SER_277002
	trigger = {
		NOT = {
			vassal = { country = SER country = TUR }
			vassal = { country = SER country = HUN }
		}
		NOT = { war = { country = SER country = TUR } }
		OR = {
			owned = { province = 356 data = -1 } #Bulgaria
			owned = { province = 358 data = -1 } #Macedonia
			owned = { province = 361 data = -1 } #Albania
		}
		exists = SER
	}
	random = no
	country = TUR
	name = "EVENTNAME188023" #Peace of Szeged
	desc = "EVENTHIST188023"
	#-#Plagued with internal conflicts and wars in the east, Sultan Murad II offered to negotiate a peace as soon as the crusade was resumed in 1444. King Wladyslaw was against signing peace when the war was going so well, but he changed his mind after being persuaded by Janos Hunyadi and Djuradj Brankovic. Peace of Szeged was signed in which Sultan Murad II agreed to restore the Despotate of Serbia as dual vassal, to pay a compensation to Hungary and to aid the Hungarian King with an army of 25,000 soldiers against his enemies during the next ten years.

	action_a = {
		name = "ACTIONNAME301117A" #We have no other choice
		command = { type = vassal which = SER }
		command = { type = trigger which = 188035 } #HUN: Dual vassalage of Serbia
	}
}

#(1444-1478) The Weakened Karamani State
event = {
	id = 301504
	trigger = {
		war = { country = TUR country = KAR }
		NOT = { vassal = { country = KAR country = TUR } }
		OR = {
			AND = {
				owned = { province = 482 data = KAR }
				control = { province = 482 data = -1 } #Konya
			}
			AND = {
				owned = { province = 1611 data = KAR }
				control = { province = 1611 data = -1 } #Taurus
			}
		}
	}
	random = no
	country = TUR
	name = "EVENTNAME301504" #The Weakened Karamani State
	desc = "EVENTHIST301504"
	#-#The armies of Ottoman Sultan Murad were sent to Anatolia where they defeated Karaman in 1428. In 1444 a treaty was finally signed forcing the Karamani Emir Ibrahim to accept a humiliating treaty which reduced the Karamanis to be Ottoman vassals. This form of new treaty was clearly that of a vassal unilaterally making a promise to his lord to maintain peace and to abstain from actions which would damage interests to his sovereign.

	date = { day = 1 month = july year = 1444 }
	offset = 30
	deathdate = { day = 9 month = august year = 1478 }

	action_a = {
		name = "ACTIONNAME301504A" #We shall rule them!
		command = { type = vassal which = KAR }
		command = { type = relation which = KAR value = 100 }
		command = { type = trigger which = 197000 } #KAR: The Weakened Karamani State
	}
}

#(1446-1447) Boyars Revolt in Wallachia
event = {
	id = 301075 #triggered by WAL_329004 / WAL_329017
	trigger = {
		neighbour = WAL
	}
	random = no
	country = TUR
	name = "EVENTNAME188012" #Boyars Revolt in Wallachia
	desc = "EVENTHIST329004"
	#-#Boyars revolt against Vlad II, who is killed along with the eldest son. Some speculate that the Hungarians had something to do with it, due to Vlad's reluctance of aiding the Crusade at Varna. Nevertheless, the country is in turmoil. Hunyadi restores the 'Danesti' faction to power in the person of Vladislav II.

	action_a = {
		name = "ACTIONNAME188012A" #Wallachia is in turmoil!
		command = { type = casusbelli which = WAL value = 24 }
	}
}

#(1451-1454) Fool Me Once Part II
event = {
	id = 23013 #triggered by BYZ_23017 A
	random = no
	country = TUR
	name = "EVENTNAME23013" #Fool me once...
	desc = "EVENTHIST23017"
	#-#Despite his prior behavior, Constantine XI actually held another royal Ottoman prince, Orhan, in exchange for modest payments from the Sultan drawn from Orhan's estates. Murad II had just died and his 19 year old son, Mehmed II, risen to the throne. In 1451, desperate for more money, the ever-bold Constantine requested an increase in the payments.

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

#(1451) The Conquests of Mehmed II The Conqueror
event = {
	id = 301002
	random = no
	country = TUR
	name = "EVENTNAME301002" #The Conquests of Mehmed II The Conqueror
	desc = "EVENTHIST301002"
	#-#During Mehmed II's rule, Constantinople, Athens, Morea, Serbia, Bosnia, Karaman, Candar, Trebizond, Albania, Hercegovnia, Kercha, Kaffa and Otranto all fell to the Ottoman Sultan. In addition, he tried to take Rhodes. During his invasion of Italy, the Sultan died, which led to the evacuation of Otranto.

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

	action_a = {
		name = "ACTIONNAME301002A" #We need expansion
		command = { type = addcore which = 359 } #Hellas
		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 = 482 } #Konya
		command = { type = addcore which = 1609 } #Kastamonu
		command = { type = addcore which = 1611 } #Taurus
		command = { type = addcore_national which = 361 } #Albania 
		command = { type = addcore_claim which = 394 } #Apulia
		command = { type = casusbelli which = HUN value = 362 }
		command = { type = casusbelli which = VEN value = 362 }
		#command = { type = AI which = TUR_MehmetII.txt }
	}
}

#(1451-1453) Serbia submits again
event = {
	id = 301118
	trigger = {
		NOT = { vassal = { country = SER country = TUR } }
		NOT = { war = { country = SER country = TUR } }
		exists = SER
		event = 277029 #SER: Sultan Mehmed II
	}
	random = no
	country = TUR
	name = "EVENTNAME301118" #Serbia submits again
	desc = "EVENTHIST301118"
	#-#Mehmed II was determined to either gain leaders of small Balkan states as loyal vassals or conquer them. Of all those leaders, he was most lax towards Despot Djuradj, probably because of influence his late father's wife, Mara Brankovic, who taught him about European culture. Mehmed II renewed Djuradj's oath of vassalage and gave him over some towns in southern Serbia as a token of gratitude for his loyalty.

	date = { day = 4 month = february year = 1451 }
	offset = 0
	deathdate = { day = 29 month = december year = 1453 }

	action_a = {
		name = "GOOD"
		command = { type = vassal which = SER }
		command = { }
	}
}

#(1452) The Cannons
event = {
	id = 23015 #triggered by BYZ_23014 A
	random = no
	country = TUR
	name = "EVENTNAME23014" #It's not the size of the cannon, but who owns it
	desc = "EVENTHIST23014"
	#-#Artillery had become increasingly useful over the previous 150 years, and were now beginning to have a major impact on sieges. In 1452, a Hungarian engineer named Urban approached Constantine XI with a proposal for a major artillery development program. The cash-strapped emperor could not afford to finance it, and instead Urban went to Mehmed II. Mehmed was delighted to finance Urban, who eventually created a cannon with a 27 foot barrel that shot 1200 pound balls.

	action_a = {
		name = "ACTIONNAME23014B" #Yes, we need Urban
		command = { type = treasury value = -150 }
		command = { type = MIL which = 2 value = 18 }
		command = { type = ART which = -2 value = 50 }
		command = { type = land value = 900 }
		command = { type = naval value = 200 }
	}
	action_b = {
		name = "ACTIONNAME23014A" #We can't afford him
		command = { type = domestic which = quality value = -1 }
		command = { type = MIL which = -2 value = 6 }
	}
}

#(1454-1481) Imperial College instituted
event = {
	id = 3357
	trigger = {
		event = 3353 #TUR : The City of Men's Desire
		countrysize = 6
	}
	random = no
	country = TUR
	name = "EVENTNAME3357" #Imperial College Instituted
	desc = "EVENTHIST3357"
	#-#Enderun (the Imperial College) was established by Mehmed II in Constantinople. Promising devsirmes (kidnapped Christian children from the Balkans) and sons of prominent Ottoman officials were trained in literature, theology, engineering, mathematics etc. at Enderun, preparing them for government service as civil servants and janissaries. The janissaries became rivals to the landed timariot spahi soldiers that made up the bulk of the Ottoman army, and tensions were inevitable between the two classes.

	date = { day = 1 month = january year = 1454 }
	offset = 360
	deathdate = { day = 3 month = may year = 1481 }

	action_a = {
		name = "ACTIONNAME3357A" #Found the 'Enderun'
		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 = {
		name = "ACTIONNAME3357B" #Expand the timariot system instead
		command = { type = domestic which = ARISTOCRACY value = 3 }
		command = { type = domestic which = OFFENSIVE value = 2 }
		command = { type = domestic which = QUALITY value = -2 }
		command = { type = stability value = 2 }
		#Possibly gain barracks elsewhere. Syria?
	}
}

#(1454-1456) Serbia submits yet again
event = {
	id = 301123
	trigger = {
		NOT = { vassal = { country = SER country = TUR } }
		exists = SER
		event = 277039 #SER: West or East
	}
	random = no
	country = TUR
	name = "EVENTNAME301123" #Serbia submits yet again
	desc = "EVENTHIST301123"
	#-#After 1454, the political sentiment among Serbian nobility began to change. After many years of Hungarian failure to protect Serbia against Ottoman onslaught and with great support from Djuradj's daughter Mara, Serbian nobles began thinking that honest and loyal alliance with Ottoman Empire is the best option for Serbia. Internal conflicts of Hungary and actions of disloyal Lord of Belgrade against Despot Djuradj only strenghtened Turkophilic nobles in Serbia. Sultan Memhed II, aware of this change and with most of Serbia under his control, offered Despot Djuradj to let him rule a smaller despotate but with reduced tribute. Despot initially agreed, but changed his mind as Ottoman army was crossing Serbia to attack Belgrade. After suffering great losses in defense of Smederevo and Belgrade and even more to the plague that came afterwards and also took life of Janos Hunyadi, Despot Djuradj was forced to negotiate and new peace and vassalage with Ottoman Empire. He was stopped by death in 1456.

	date = { day = 1 month = january year = 1454 }
	offset = 0
	deathdate = { day = 29 month = december year = 1456 }

	action_a = {
		name = "GOOD"
		command = { type = vassal which = SER }
		command = { type = alliance which = SER }
		command = { }
	}
}

#(1455-1481) The Economic Reforms of Mehmed II
event = {
	id = 50004
	random = no
	country = TUR
	name = "EVENTNAME50004" #Fiscal Policies of Mehmed II
	desc = "EVENTHIST50004"
	#-#In order to finance his wars, Mehmed II has conducted harsh fiscal policies, which included introduction of new taxes and confiscation of private lands. Those lands then were later distributed as timar as part of the payment to his military. Not surprisingly, these measures resulted in a violent discontent upon his death, which had to be dealt with by his successors.

	date = { day = 1 month = january year = 1455 }
	offset = 2000
	deathdate = { day = 1 month = january year = 1481 }

	action_a = {
		name = "ACTIONNAME50004A" #We need the money!
		command = { type = treasury value = 900 }
		command = { type = inflation value = 4 }
		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 }
		command = { type = gainbuilding which = -1 value = bailiff }
		command = { type = provincetax which = -1 value = 1 }
		command = { type = provincetax which = -1 value = 1 }
	}
	action_b = {
		name = "ACTIONNAME50004B" #New Taxes Only
		command = { type = treasury value = 150 }
		command = { type = gainbuilding which = -1 value = bailiff }
		command = { type = stability value = -1 }
		command = { type = provincetax which = -1 value = 1 }
		command = { type = domestic which = aristocracy value = 1 }
	}
}

#(1456-1820) Athens submits
event = {
	id = 301134 #triggered by ATH_117006A
	random = no
	country = TUR
	name = "EVENTNAME301134" #Athens submits
	desc = "EVENTHIST117006"
	#-#Historically, in 1456, Ottoman troops occupied the Duchy of Athens except the Acropolis, where the last followers of Duke Francesco II had fled. Mehmed II had been informed by Contarini about the order to murder the former Duchess of Athens at Megara - and the Sultan did not take it lightly that his authority was questioned. Under terms of surrender, Mehmed graciously allowed the duke to continue to live and retain the lordship of Thebes.

	action_a = {
		name = "ACTIONNAME301134" #Athens is ours
		command = { type = treasury value = -60 }
		command = { type = inherit which = ATH }
	}
}

#(1459-1463) Too much provocation from Trebizond
event = {
	id = 301040 #triggered by TRE_298005 A
	trigger = {
		countrysize = 6
	}
	random = no
	country = TUR
	name = "EVENTNAME301040" #Komnenos provokes the Sultan
	desc = "EVENTHIST301040"
	#-#Dauid II Komnenos's intrigues with Christendom along with his haughty behaviour towards the Sultan prompted Mehmed II to attack Trebizond. In the summer of 1461, a joint land and naval operation neutralized Komnenos's potential allies - in particular the Emir of Sinope and Uzun Hasan of the Ak-Koyunlu. Trapezountas was then besieged for a month before its treasurer Georgios Amiroutzes convinced Dauid to capitulate.

	action_a = {
		name = "ACTIONNAME301040A" #Crush them
		command = { type = relation which = TRE value = -200 }
		command = { type = war which = TRE }
	}
	action_b = {
		name = "ACTIONNAME301040B" #He's no threat to us
		command = { type = relation which = TRE value = 20 }
		command = { type = stability value = -1 }
	}
}

#(1459-1463) A new province added to the empire
event = {
	id = 301041 #triggered by TRE_298009 A
	random = no
	country = TUR
	name = "EVENTNAME301041" #Conquest of Trebizond
	desc = "EVENTHIST301041"
	#-#Through the intercession of Georgios Amiroutzes, the Megas Komnenos surrendered to Ottoman forces on 15 August 1461. He was allowed to keep his family, household and wealth and retired to Adrianople. Continued correspondence with Uzun Hasan gave the Sultan premise to execute all the male Komnenoi on 1 November 1463.

	action_a = {
		name = "ACTIONNAME301041A" #A small price to pay
		command = { type = treasury value = -30 }
		command = { type = inherit which = TRE }
	}
}

#(1460-1470) Atam-Dedem Kanunu Codified
event = {
	id = 3358
	random = no
	country = TUR
	name = "EVENTNAME3358" #Atam-Dedem Kanunu Codified
	desc = "EVENTHIST3358"
	#-#Mehmed II codified the tribal laws of Kayi Turks--the 'Atam-Dedem Kanunu' (Laws of the Forefathers)--thus giving them official recognition along with Islamic and Roman laws which were already in use. Together, they are known as the 'Kanunname-i Ali Osman' in the Ottoman Turkish language. Mehmed II thus becomes the first Lawgiver.

	date = { day = 1 month = january year = 1460 }
	offset = 3600
	deathdate = { day = 1 month = january year = 1470 }

	action_a = {
		name = "OK"
		command = { type = domestic which = CENTRALIZATION value = 1 }
		command = { type = stability value = 1 }
	}
}

#(1460-1485) Serbians flee to Hungary
event = {
	id = 301028 #triggered by HUN_188116
	trigger = {
		owned = { province = 355 data = -1 } #Serbia
	}
	random = no
	country = TUR
	name = "EVENTNAME301028" #Serbians flee to Hungary
	desc = "EVENTHIST301028"
	#-#Serbia was annexed by the Ottoman Empire in 1459. As a consequence, many Serbs fled north, to the Kingdom of Hungary.

	action_a = {
		name = "ACTIONNAME301028A" #Curse the infidels
		command = { type = population which = 363 value = -3000 } #Kosovo
		command = { type = population which = 355 value = -5000 } #Serbia
		command = { type = provincemanpower which = 363 value = -1 } #Kosovo
		command = { type = provincemanpower which = 355 value = -1 } #Serbia
		command = { type = provincetax which = 363 value = -1 } #Kosovo
		command = { type = provincetax which = 355 value = -1 } #Serbia
		command = { type = relation which = HUN value = -50 }
	}
}

#(1461-1483) Candar submits
event = {
	id = 301130 #triggered by CAN_141000 A
	random = no
	country = TUR
	name = "EVENTNAME301130" #Candar submits
	desc = "EVENTHIST301130"
	#-#In 1461, the grand vezir, Mahmud Pasha, marched on Sinop with the support of a rival prince of Candar. Skilled at diplomacy, Mahmud invited the reigning prince, Abu'l Hasan Ismail, to surrender the city peacefully, with the promise that his family would go unharmed and he would be granted a governership elsewhere in the Empire. He cautioned Ismail that should he refuse to comply, the city fortifications would not withstand the powerful assembled army. Ismail agreed to the grand vezir's generous terms and the Candar beylik came to an end. True to his word, Ismail was assigned territory in the Balkans, while his rebellious brother, Ahmad, was assigned Candar. However, before a year was up, Mehmed II revoked Ahmad's governorship and the latter was forced to flee to the Ak Koyunlu for protection.

	action_a = {
		name = "ACTIONNAME301130A" #Candar is ours
		command = { type = treasury value = -60 }
		command = { type = inherit which = CAN }
	}
}

#(1465-1475) The Jews of France and Hungary are oppressed
event = {
	id = 50018
	trigger = {
		OR = {
			exists = HUN
			exists = FRA
		}
	}
	random = no
	country = TUR
	name = "EVENTNAME50018" #The Jews of France and Hungary are oppressed
	desc = "EVENTHIST50018"
	#-#Given the general climate of intolerance in Europe, the situation for minorities in the Ottoman Empire was surprisingly good. So good, in fact, and so ready for revenge, that the Sultan could form a new regiment, 'The Sons of Moses', for use especially against the Hungarians.

	date = { day = 1 month = january year = 1465 }
	offset = 2000
	deathdate = { day = 1 month = january year = 1475 }

	action_a = {
		name = "ACTIONNAME50018A" #Let us form a new regiment
		command = { type = INF which = -1 value = 5000 }
	}
}

#(1466) Vassalage of Wallachia
event = {
	id = 19006
	trigger = {
		NOT = { vassal = { country = WAL country = TUR } }
		NOT = { war = { country = TUR country = WAL } }
		neighbour = WAL
		OR = {
			event = 19005 #WAL: Contested Throne -I-
			event = 329012 #WAL: Contested Throne -II-
		}
	}
	random = no
	country = TUR
	name = "EVENTNAME19006" #Vassalage of Wallachia
	desc = "EVENTHIST19006"
	#-#Radu cel Frumas (the handsome) has been decidly pro-Turkish since he was held hostage at the court of Murad II as a boy. Gossip even accused him, largely because of his good looks, of being one of the male minions in the harem of Mehmed, heir to the Ottoman throne. With our support, Radu has finally secured the throne of Wallachia and sworn fealty to the Sublime Porte.

	date = { day = 6 month = april year = 1466 }

	action_a = {
		name = "EXCELLENT"
		command = { type = relation which = WAL value = 80 }
		command = { type = vassal which = WAL }
		command = { }
	}
}
#(1466) Contested Throne
event = {
	id = 301076 #triggered by WAL_19005 B / WAL_329012 B
	trigger = {
		neighbour = WAL
	}
	random = no
	country = TUR
	name = "EVENTNAME19005" #Contested Throne
	desc = "EVENTHIST19005"
	#-#In 1462, under pressure from Turkish incursions, Dracula sought the help of the throne of Hungary. Meanwhile, the Turkish sultan gave Dracula's younger brother, Radu, an army with which to support his claim to the throne. In addition, the boyars, rose up against Dracula due to his well-known cruelty and the suppression of their rights. Matthias Corvinus, King of Hungary, realizing Dracula's precarious position, and wary of his volatility and devious nature, treacherously took Dracula to Hungary as a political prisoner, while Radu was left free to reign in Wallachia. Now, in 1466, Dracula has converted to catholicism and married into the Hungarian royal family. The state is divided between the cruel, yet heroic anti-Turkish Dracula, and the pro-Turkish Radu.

	action_a = {
		name = "ACTIONNAME301076A" #We hate Vlad!
		command = { type = casusbelli which = WAL value = 180 }
	}
}

#(1468-1500) The Growing Might of the Ak Koyunlu
event = {
	id = 301129
	trigger = {
		NOT = { exists = QAR }
		event = 103014 #AKK: Ak Koyunlu in Azerbaijan
		exists = AKK
	}
	random = no
	country = TUR
	name = "EVENTNAME301129" #The Growing Might of the Ak Koyunlu
	desc = "EVENTHIST301129"
	#-#Although the Ak Koyunlu had started as a relatively small state at the start of Usun Hasan's reign, their destruction of the Kara Koyunlu put the state on equal footing with the Ottomans and Mamluks. The Ak Koyunlu had become a formidable state.

	date = { day = 1 month = january year = 1468 }
	offset = 5
	deathdate = { day = 29 month = december year = 1500 }

	action_a = {
		name = "ACTIONNAME301129A" #The Ak Koyunlu are a threat to our interests
		command = { type = relation which = AKK value = -200 }
		command = { type = INF which = -1 value = 2500 }
		command = { type = INF which = -1 value = 2500 }
	}
	action_b = {
		name = "ACTIONNAME301129B" #Congratulate them on their victory
		command = { type = relation which = AKK value = 25 }
		command = { type = trigger which = 103016 } #AKK: Ottoman recognition
	}
}

#(1475-1820) Conquest of Genoese strongholds
event = {
	id = 301009 #triggered by GEN_174022
	random = no
	country = TUR
	name = "EVENTNAME301009" #Conquest of Genoese strongholds
	desc = "EVENTHIST301009"
	#-#After the fall of Constantinople to the Ottomans, it became increasingly difficult for Genoa to maintain its possessions in the Black Sea. The Bank of San Giorgio in Genoa was administrating the holdings since 1453, the most important strongholds were the two fortresses Chembalo and Sudak, and the city Kaffa. In 1475, after an invitation from disatisfied Crimean nobles to invade the peninsula in exchange for Turkish support against their khan, a large Turkish fleet under Grand Vizier Keduk Akhmet Pasha arrived to conduct a naval landing and started to besiege Kaffa. After five days Kaffa surrendered and 500 Genoese families were sent to Constantinople, many leaders manage to flee to Mangup, including the governor Antonietto da Cabella and the general Francisco Guasconcini.

	action_a = {
		name = "ACTIONNAME301009A" #It is ours
		command = { type = addcore which = 465 } #Kerch
		command = { type = population which = 465 value = -2000 } #Kerch
		command = { type = population which = 357 value = 2000 } #Thrace
		command = { type = relation which = GEN value = -100 }
	}
}

#(1478) Mengli Giray's Promise
event = {
	id = 301132
	trigger = {
		exists = CRI
		NOT = { war = { country = CRI country = TUR } }
		OR = {
			event = 152010 #CRI: The Golden Horde revives its claim
			AND = {
				event = 152008 #CRI: Nur Dawlat returns
				NOT = { event = 152009 } #CRI: Mengli and the Ottomans
			}
			NOT = { event = 152007 } #CRI: Genoa backs the pretender
		}
	}
	random = no
	country = TUR
	name = "EVENTNAME301132" #Mengli Giray's Promise
	desc = "EVENTHIST301132"
	#-#In 1478, annoyed with their khan, several prominent Crimean beys approached the Ottoman sultan about support the claims of the khan's brother, Mengli Giray. Their candidate for the khanship was very friendly to the Ottomans and even went so far as to promise a pledge of obedience.

	date = { day = 5 month = january year = 1478 }
	offset = 10
	deathdate = { day = 10 month = december year = 1478 }

	action_a = {
		name = "ACTIONNAME301132A" #Support him!
		command = { type = relation which = CRI value = 150 }
		command = { type = treasury value = -15 }
		command = { type = trigger which = 152011 } #CRI: Ottoman authority over Crimea
	}
	action_b = {
		name = "ACTIONNAME301132B" #We have bigger concerns
		command = { type = merchants value = -2 }
		command = { type = trade value = -25 }
	}
}

#(1478-1700) Crimean Khanate seeks Ottoman support
event = {
	id = 301050 #triggered by CRI_152060 A
	random = no
	country = TUR
	name = "EVENTNAME301050" #Crimean Khanate seeks Ottoman support
	desc = "EVENTHIST301050"
	#-#While Russia managed to overtake the other Khanates of the European steppe in the 16th century, the Khanate of Crimea lasted well into the 1700s. A major reason for this longevity was the support of the Ottoman Empire.

	action_a = {
		name = "ACTIONNAME301050A" #We accept them as our allies and vassals
		command = { type = vassal which = CRI }
		command = { type = alliance which = CRI }
		command = { type = cedeprovince which = CRI value = 459 } #Lugansk
		command = { type = cedeprovince which = CRI value = 460 } #Donetsk
		command = { type = cedeprovince which = CRI value = 461 } #Poltava
		command = { type = cedeprovince which = CRI value = 462 } #Krementjug
	}
	action_b = {
		name = "ACTIONNAME301050B" #Avoid northern entanglements
		command = { type = vp value = -50 }
	}
}

#(1478-1508) Pacification of Albania complete -I- Ahistorical
event = {
	id = 301084
	trigger = {
		owned = { province = 361 data = -1 } #Albania
		control = { province = 361 data = -1 } #Albania
		NOT = { provincereligion = { province = 361 data = sunni } } #Albania
		event = 301026 #TUR: #The Betrayal of Iskandar Bey
		NOT = { event = 301085 } #TUR: The end of Albanian resistance -II-
	}
	random = no
	country = TUR
	name = "EVENTNAME301084" #The end of Albanian resistance
	desc = "EVENTHIST301084"
	#-#After Gjergj Skanderbeg Kastrioti's death and without leader to rule them, people from Albania drop the fight. What must we do now, let the matter fall or punish these heretics?

	date = { day = 18 month = january year = 1478 }
	offset = 5
	deathdate = { day = 18 month = january year = 1508 }

	action_a = {
		name = "ACTIONNAME301084A" #Forgive them
		command = { type = province_revoltrisk which = 361 value = -10 }
		command = { type = add_countryculture which = albanian }
		command = { type = sleepevent which = 301085 } #TUR: The end of Albanian resistance -II-
	}
	action_b = {
		name = "ACTIONNAME301084B" #Now let's convert those dogs to our faith!
		command = { type = conversion which = 361 } #Albania
		command = { type = revolt which = 361 } #Albania
		command = { type = badboy value = 1 }
		command = { type = population which = 361 value = -3000 }
		command = { type = province_revoltrisk which = 361 value = -10 } #Albania
		command = { type = treasury value = -30 }
		command = { type = losemanufactory which = 361 } #Albania
		command = { type = missionaries value = -1 }
		command = { type = provincemanpower which = 361 value = -2 } #Albania
		command = { type = sleepevent which = 301085 } #TUR: The end of Albanian resistance -II-
	}
}
#(1478-1508) Pacification of Albania complete -II- Ahistorical
event = {
	id = 301085
	trigger = {
		owned = { province = 361 data = -1 } #Albania
		control = { province = 361 data = -1 } #Albania
		provincereligion = { province = 361 data = sunni } #Albania
		event = 301026 #TUR: #The Betrayal of Iskandar Bey
		NOT = { event = 301084 } #TUR: The end of Albanian resistance -I-
	}
	random = no
	country = TUR
	name = "EVENTNAME301084" #The end of Albanian resistance
	desc = "EVENTHIST301085"
	#-#After Gjergj Skanderbeg Kastrioti's death and without leader to rule them, people from Albania drop the fight. Albania is finally pacified and firmly under Turkish control.

	date = { day = 18 month = january year = 1478 }
	offset = 5
	deathdate = { day = 18 month = january year = 1508 }

	action_a = {
		name = "GOOD_NEWS"
		command = { type = province_revoltrisk which = 361 value = -10 } #Albania
		command = { type = add_countryculture which = albanian }
		command = { type = sleepevent which = 301084 } #TUR: The end of Albanian resistance -I-
	}
}

#(1480) Morean revolts
event = {
	id = 301065
	trigger = {
		owned = { province = 360 data = -1 } #Morea
		NOT = {
			war = { country = TUR country = VEN }
			provincereligion = { province = 360 data = sunni }
		}
	}
	random = no
	country = TUR
	name = "EVENTNAME301065" #The Morean revolts
	desc = "EVENTHIST301065"
	#-#From 1463 to 1479, the people of Mani defended their territories and sided with the Venetians during the Turco-Venetian War. Moreover, the Maniots prevented the Turks from building guard posts on their lands. Kladas was honored in Venice and acquired Venetian citizenship. During these tumultuous years, the entire Morea revolted against the Ottomans. The territories of Patra, Mystras, Corinth, Sparta, and Argos were liberated. After the end of the Turco-Venetian War, the Venetians left the Maniots to fend for themselves. Many of the Greeks who had revolted alongside the Venetians were massacred by the Ottomans, but many of them fled to find refuge in Mani. Korkodeilos Kladas never accepted the clauses of the agreement made between the Turks and the Venetians. He not only refused Turkish offers, but he also began to revolt against them. On the 9th October 1480, Kladas and his followers gathered an army and captured all the Turkish held castles in the Morea. The Ottoman government was enraged. An army sent by the Sultan was defeated between Passavas and Oitylo during February of 1481. Later that month a bigger force under Mohammed Bey drove Kladas to Porto Kagio. Kladas kept Mani as an autonomous region for 9 years and also went to Northern Epirus to fight. He was killed in battle near Monemvasia in 1490.

	date = { day = 0 month = october year = 1480 }
	offset = 90
	deathdate = { day = 0 month = march year = 1490 }

	action_a = {
		name = "ACTIONNAME301065A" #Destroy the mani
		command = { type = revolt which = 360 } #Morea
		command = { type = revolt which = 360 } #Morea
		command = { type = INF which = -2 value = 10000 }
	}
	action_b = {
		name = "ACTIONNAME301065B" #Not worth the cost
		command = { type = removecore which = 360 } #Morea
		command = { type = independence which = MRE }
		command = { type = badboy value = -1 }
	}
}

#(1481-1512) Military Reforms
event = {
	id = 50000
	random = no
	country = TUR
	name = "EVENTNAME50000" #Navy and Administrative Reforms of Bayezid II
	desc = "EVENTHIST50000"
	#-#A violent reaction to the fiscal policies of Mehmed II has prompted his successor Bayezid II to return some lands to their former owners and in general conduct a reconciliatory and peaceful policy. Under his rule, Ottoman empire has witnessed significant administrative developments. Full treasury allowed to reinforce the Janissaries and re-equip the Navy with ships of the size not seen before in the Mediterranean.

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

	action_a = {
		name = "ACTIONNAME50000A" #Reconcile and Reform
		command = { type = land value = 1000 }
		command = { type = naval value = 1000 }
		command = { type = infra value = 500 }
		command = { type = treasury value = -200 }
		command = { type = domestic which = centralization value = -1 }
		command = { type = warships which = -1 value = 10 }
		command = { type = domestic which = OFFENSIVE value = 1 }
	}
	action_b = {
		name = "ACTIONNAME50000B" #Just Reform
		command = { type = land value = 500 }
		command = { type = naval value = 500 }
		command = { type = warships which = -1 value = 5 }
		command = { type = revoltrisk which = 24 value = 3 }
		command = { type = stability value = -1 }
		command = { type = domestic which = OFFENSIVE value = 1 }
	}
	action_c = {
		name = "ACTIONNAME50000C" #Reconcile only
		command = { type = infra value = 1000 }
		command = { type = treasury value = -100 }
		command = { type = domestic which = centralization value = -1 }
	}
}

#(1481-1820) We have failed to defend our foothold in Italy
event = {
	id = 301133
	trigger = {
		NOT = {
			control = { province = 394 data = -1 } #Apulia
		}
		core_claim = { province = 394 data = -1 }
	}
	random = no
	country = TUR
	name = "EVENTNAME301133" #We have failed to defend our foothold in Italy
	desc = "EVENTHIST301002"
	#-#

	date = { day = 3 month = may year = 1481 }
	offset = 30
	deathdate = { year = 1820 }

	action_a = {
		name = "OK"
		command = { type = removecore which = 394 } #Apulia
		command = { type = relation which = FRA value = 50 }
	}
}

#(1481) The Conquests of Bayezid II The Law-Abiding
event = {
	id = 301003
	random = no
	country = TUR
	name = "EVENTNAME301003" #The Conquests of Bayezid II The Law-Abiding
	desc = "EVENTHIST301003"
	#-#Bayezid II reign was a marked departure from that of his father. He rounded out the edges of the realm, conquering the Bujak region of Moldavia and fought a war with the Mamluks over the control of Ramazan and Dulkadir. Preparations were made to invade Italy, but war against Venice was declared, and Beyezid tried to take Corfu instead.

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

	action_a = {
		name = "ACTIONNAME301003A" #A Time For Peace
		command = { type = add_countryculture which = albanian }
		command = { type = addcore which = 319 } #Bujak
		command = { type = addcore which = 474 } #Sivas
		command = { type = addcore which = 483 } #Adana
		command = { type = addcore which = 479 } #Negroponte/Ionia
		#command = { type = AI which = TUR_BayezidII.txt }
	}
}

#(1481-1483) Cem Sultan's Rebellion
event = {
	id = 3368
	random = no
	country = TUR
	name = "EVENTNAME3368" #Cem Sultan's Rebellion
	desc = "EVENTHIST3368"
	#-#Cem Sultan, the governor of Karaman and Konya rebelled against his older brother Sultan Beyazid II upon the death of their father. However, Bayezid had broader support in court and Cem was ultimately defeated. He fled to Rhodes, where he remained a captive of the Knights of St. John until his death in 1494.

	date = { day = 1 month = june year = 1481 }
	offset = 700
	deathdate = { day = 1 month = june year = 1483 }

	action_a = {
		name = "ACTIONNAME3368A" #Crush Cem's rebellion
		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 = {
		name = "ACTIONNAME3368B" #Seek reconciliation
		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 } #MAM: Sultan Cem asks for asylum
	}
}

#(1484-1489) Bayezid and the Mamluks -I-
event = {
	id = 301500
	trigger = {
		exists = DUL
		exists = MAM
		NOT = {
			vassal = { country = DUL country = TUR }
			event = 301501 #TUR: Bayezid and the Mamluks -II-
		}
	}
	random = no
	country = TUR
	name = "EVENTNAME301500" #Bayezid and the Mamluks
	desc = "EVENTHIST301500"
	#-#Since his acension, Bayezid had maintained positive relations with Mamluk sultan, Qa'itbay. However, in 1484, under pressue to renew the empire's expansive drive eastward, he considered harassing the Dulkadir principality, a vassal state of the Mamluks in Elbistan.

	date = { day = 1 month = january year = 1484 }
	offset = 30
	deathdate = { day = 29 month = december year = 1489 }

	action_a = {
		name = "ACTIONNAME301500A" #Send an expeditionary force to Elbistan
		command = { type = trigger which = 219005 } #MAM: Qa'itbay and the Ottomans
		command = { type = inf which = -1 value = 2500 }
		command = { type = treasury value = -25 }
		command = { type = relation which = MAM value = -100 }
		command = { type = relation which = DUL value = -200 }
		command = { type = casusbelli which = DUL value = 24 }
	}
	action_b = {
		name = "ACTIONNAME301500B" #Foreign relations are more important!
		command = { type = relation which = MAM value = 25 }
		command = { type = relation which = DUL value = 25 }
		command = { type = sleepevent which = 301502 } #TUR: Bayezid's Peace with Qa'itbay
	}
}
#(1484-1489) Bayezid and the Mamluks -II-
event = {
	id = 301501
	trigger = {
		owned = { province = 485 data = MAM }
		NOT = {
			exists = DUL
			event = 301500 #TUR: Bayezid and the Mamluks -I-
		}
	}
	random = no
	country = TUR
	name = "EVENTNAME301501" #Bayezid and the Mamluks
	desc = "EVENTHIST301501"
	#-#Since his acension, Bayezid had maintained positive relations with Mamluk sultan, Qa'itbay. However, in 1484, under pressue to renew the empire's expansive drive eastward, he considered harassing the Dulkadir principality, a vassal state of the Mamluks in Elbistan.

	date = { day = 1 month = january year = 1484 }
	offset = 30
	deathdate = { day = 29 month = december year = 1489 }

	action_a = {
		name = "ACTIONNAME301501A" #Send an expeditionary force to Elbistan
		command = { type = trigger which = 219005 } #MAM: Qa'itbay and the Ottomans
		command = { type = inf which = -1 value = 2500 }
		command = { type = treasury value = -25 }
		command = { type = relation which = MAM value = -150 }
		command = { type = casusbelli which = MAM value = 24 }
	}
	action_b = {
		name = "ACTIONNAME301501B" #Foreign relations are more important!
		command = { type = relation which = MAM value = 25 }
		command = { type = sleepevent which = 301502 } #TUR: Bayezid's Peace with Qa'itbay
	}
}

#(1485-1566 or 1510-1820) Annexation of the Mamluk Empire
event = {
	id = 301022 #triggered by MAM_219001 A or MAM_219014
	random = no
	country = TUR
	name = "EVENTNAME301022" #Annexation of the Mamluk Empire
	desc = "EVENTHIST301022"
	#-#The Ottoman Sultan Selim I was determined to eliminate all potential enemies in the east in order to be able to overrun Europe without fearing an attack from the other direction. Having defeated Safavid Persia, he turned to the Mamluk Empire. At that time, the Mamluk state already was in a state of anarchy and its armies hopelessly inferior to those of the Ottomans, and thus Selim's armies rushed through its defenses at an incredible speed. On August 24 the Syrian army led by the Sultan himself who got killed in that battle was destroyed near Aleppo, the city of Damaskus conquered on October 12th and the rest of Syria and Palestina quickly overrun. After wintering in Damaskus, Selim progressed to Egypt. On January21st, the last remaining Mamluk army engaged for the final battle near Radania and was decisively defeated. This battle marked the end of the Mamluk Empire. Selim offered vassal status to the last Sultan Tumanbeg, but he proudly refused and preferred being beheaded. Syria, Palestina and Egypt were incorporated into the Ottoman Empire that now stretched over three continents.For the administration of the new African possessions a third Beglerbeg with his seat in Kairo was appointed.

	action_a = {
		name = "ACTIONNAME301022A" #Install a Beglerbeg for Africa
		command = { type = add_countryculture which = arabic }
		command = { type = annex which = MAM }
		command = { type = domestic which = centralization value = -2 }
		command = { type = stability value = 1 }
	}
	action_b = {
		name = "ACTIONNAME301022B" #Administrate Egypt from Constantinople
		command = { type = add_countryculture which = arabic }
		command = { type = domestic which = centralization value = 1 }
		command = { type = annex which = MAM }
		command = { type = stability value = -1 }
	}
}
#(1485-1566) Submission of the Mamluk Sultan
event = {
	id = 301023 #triggered by MAM_219001 B
	random = no
	country = TUR
	name = "EVENTNAME301023" #Submission of the Mamluk Sultan
	desc = "EVENTHIST301023"
	#-#The Ottoman Sultan Selim I was determined to eliminate all potential enemies in the east in order to be able to overrun Europe without fearing an attack from the other direction. Having defeated Safavid Persia, he turned to the Mamluk Empire. At that time, the Mamluk state already was in a state of anarchy and its armies hopelessly inferior to those of the Ottomans, and thus Selim's armies rushed through its defenses at an incredible speed. On August 24 the Syrian army led by the Sultan himself who got killed in that battle was destroyed near Aleppo, the city of Damaskus conquered on October12th and the rest of Syria and Palestina quickly overrun. After wintering in Damaskus, Selim progressed to Egypt. On January21st, the last remaining Mamluk army engaged for the final battle near Radania and was decisively defeated. This battle marked the end of the Mamluk Empire. Selim offered vassal status to the last Sultan Tumanbeg. The cowardly dog has acceptedthis humiliation and will now rule Egypt as a subject of the Ottoman Sultan.

	action_a = {
		name = "GREAT"
		command = { type = vassal which = MAM }
		command = { type = badboy value = -5 }
	}
}

#(1485-1820) The Sultan becomes 'Khalifa'
event = {
	id = 301030
	trigger = {
		OR = {
			AND = {
				owned = { province = 746 data = -1 } #Egypt
				control = { province = 746 data = -1 } #Egypt
				NOT = { exists = MAM }
			}
			vassal = { country = MAM country = TUR }
		}
		OR = {
			AND = {
				exists = ARA
				NOT = { vassal = { country = ARA country = TUR } }
				NOT = {	war = { country = TUR country = ARA } }
			}
			AND = {
				NOT = { exists = ARA }
				owned = { province = 496 data = -1 } #Arabia
				control = { province = 496 data = -1 } #Arabia
			}
		}
		OR = {
			AND = {
				ai = no
				NOT = { year = 1567 }
			}
			ai = yes
		}
	}
	random = no
	country = TUR
	name = "EVENTNAME301030" #The Sultan becomes 'Khalifa'
	desc = "EVENTHIST301030"
	#-#Following the spectacularly successful Mamluk campaign, the Sultan brought the last of the Abbasid caliphs to Istanbul as his 'guest'. The title of Caliph was then transferred to the House of Osman. Henceforth Ottoman monarchs were also the spiritual leaders of all Sunni Muslims.

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

	action_a = {
		name = "ACTIONNAME301030A" #Assume the title of Caliph
		command = { type = vassal which = ARA }
		command = { type = vp value = 50 }
		command = { type = add_countryculture which = arabic }
		command = { type = relation which = ARA value = 50 }
		command = { type = relation which = ALD value = 50 }
		command = { type = relation which = MOR value = 50 }
		command = { type = relation which = TRI value = 50 }
		command = { type = relation which = ADE value = 50 }
		command = { type = relation which = OMA value = 50 }
		command = { type = relation which = MOG value = 50 }
		command = { type = relation which = DLH value = 50 }
		command = { type = badboy value = -1 }
		command = { type = revoltrisk which = 64 value = -1 }
		command = { type = stability value = 2 }
	}
}


#(1487-1820) End of the Karamani beylik
event = {
	id = 301135 #triggered by KAR_197002A
	random = no
	country = TUR
	name = "EVENTNAME197002" #End of the Karamani beylik
	desc = "EVENTHIST197002"
	#-#In 1487 the Karamanli state was finally absorbed as a province into the Ottoman Empire.

	action_a = {
		name = "ACTIONNAME301135A" #Karaman is ours
		command = { type = treasury value = -60 }
		command = { type = inherit which = KAR }
    }
}

#(1489-1819) Ottoman rule in the Balkans solidified
event = {
	id = 301062
	trigger = {
		NOT = { exists = ALB }
		owned = { province = 357 data = -1 } #Thrace
		control = { province = 357 data = -1 }
		owned = { province = 358 data = -1 } #Macedonia
		control = { province = 358 data = -1 }
		owned = { province = 361 data = -1 } #Albania
		control = { province = 361 data = -1 }
	}
	random = no
	country = TUR
	name = "EVENTNAME301062" #Ottoman Rule solidified
	desc = "EVENTHIST301062"
	#-#With the traitorous dog Iskander Bey dead and the lands between Adria and Bosporus firmly under our control we have a solid position to rule the Balkans.

	date = { day = 9 month = may year = 1489 }
	offset = 30
	deathdate = { day = 1 month = january year = 1819 }

	action_a = {
		name = "ACTIONNAME301062A" #Now we have a solid base to expand from
		command = { type = provinceculture which = 357 value = turkish } #Thrace in case that the ottomans did not have the City of Mens desire event when they took Byzanz later 1491 or were always at war
		command = { type = provinceculture which = 477 value = turkish } #Anatolia
		command = { type = provinceculture which = 478 value = turkish } #Smyrna
		command = { type = provincereligion which = 477 value = sunni } #Anatolia
		command = { type = provincereligion which = 478 value = sunni } #Smyrna
		command = { type = provincereligion which = 357 value = sunni } #Thrace
		command = { type = provincereligion which = 361 value = sunni } #Albania
		command = { type = provinceculture which = 358 value = turkish } #Macedonia
		command = { type = stability value = 1 }
	}
}

#(1490-1496) Bayezid's Peace with Qa'itbay
event = {
	id = 301502
	trigger = {
		OR = {
			event = 301500 #TUR: Bayezid and the Mamluks -I-
			event = 301501 #TUR: Bayezid and the Mamluks -II-
		}
		OR = {
			owned = { province = 485 data = MAM }
			owned = { province = 490 data = MAM }
			owned = { province = 491 data = MAM }
			owned = { province = 485 data = DUL }
		}
		NOT = {
			war = { country = TUR country = MAM }
			vassal = { country = MAM country = TUR }
		}
	}
	random = no
	country = TUR
	name = "EVENTNAME301502" #Bayezid's Peace with Qa'itbay
	desc = "EVENTHIST301502"
	#-#As the result of Qa'itbay's large expeditions against the Ottomans, Bayezid's emissaries eventually concluded a peace with the Mamluk sultan that recognized him as the paramount suzerain of Syria and Southeastern Anatolia.

	date = { day = 1 month = january year = 1490 }
	offset = 30
	deathdate = { day = 29 month = december year = 1495 }

	action_a = {
		name = "ACTIONNAME301502A" #We admit to their superiority for now
		command = { type = cedeprovince which = MAM value = 483 } #Adana
		command = { type = cedeprovince which = MAM value = 485 } #Aleppo
		command = { type = cedeprovince which = MAM value = 490 } #Syria
		command = { type = cedeprovince which = MAM value = 491 } #Lebanon
		command = { type = relation which = MAM value = 75 }
		command = { type = trigger which = 219006 } #MAM: Bayezid's Peace with Qa'itbay
	}
}

#(1490) Claims on Hungary
event = {
	id = 301029 #triggered by HUN_188122 B/C / HUN_188123 B
	random = no
	country = TUR
	name = "EVENTNAME301029" #The Kingdom of Hungary
	desc = "EVENTHIST301029"
	#-#The Kingdom of Hungary has received a new monarch who lacks the support of a huge part of a nobility. There can be expected to be a long internal struggle which would probably give the Sultan an excellent opportunity to expand north.

	action_a = {
		name = "ACTIONNAME301029A" #Take advantage of the situation
		command = { type = addcore which = 316 } #Carpathia
		command = { type = addcore which = 317 } #Ruthenia
		command = { type = addcore which = 323 } #Transylvania
		command = { type = addcore which = 324 } #Maros
		command = { type = addcore which = 325 } #Magyar
		command = { type = addcore which = 326 } #Presburg
		command = { type = addcore which = 352 } #Odenburg
		command = { type = addcore which = 353 } #Pest
		command = { type = addcore which = 354 } #Banat
		command = { type = addcore which = 366 } #Croatia
		command = { type = addcore which = 367 } #Krain
	}
}

#(1492-1550) Recognition of the Moriscos
#by Garbon
event = {
	id = 301000
	trigger = {
		atwar = no
		exists = SPA
		NOT = { exists = GRA }
	}
	random = no
	country = TUR
	name = "EVENTNAME301000" #Recognition of the Moriscos
	desc = "EVENTHIST301000"
	#-#For ages, the Moriscos of Spain petitioned the Ottomans for the support they needed to break free of Catholic Spain. The Ottoman Empire had become a major power in the Middle East, the Balkans, and the Mediterranean during the course of the fifteenth and sixteenth centuries. Unfortunately for the Moriscos, as such a power, the Ottomans were up to their shoulders in wars. An Ottoman Empire free from such struggles may have chosen to liberate the Moriscos.

	date = { day = 1 month = january year = 1492 }
	offset = 1500
	deathdate = { day = 29 month = december year = 1550 }

	action_a = {
		name = "ACTIONNAME301000A" #We care not for them!
		command = { type = relation which = SPA value = 30 }
		command = { type = infra value = 10 }
	}
	action_b = {
		name = "ACTIONNAME301000B" #Recognition gives us a perfect oppurtunity!
		command = { type = casusbelli which = SPA value = 36 }
		command = { type = inf which = -2 value = 5000 }
		command = { type = stability value = -2 }
		command = { type = relation which = SPA value = -150 }
		command = { type = sleepevent which = 166003 } #SUS: The Moriscos Request Aid
		command = { type = sleepevent which = 232011 } #MOR: The Moriscos Request Aid
		command = { type = sleepevent which = 300000 } #TUN: The Moriscos Request Aid
	}
}

#(1497-1515) Jewish refugees from Portugal - Ahistorical
event = {
	id = 301072 #triggered by POR_260054 B
	trigger = {
		OR = {
			owned = { province = 358 data = -1 } #Macedonia
			owned = { province = 355 data = -1 } #Serbia
			owned = { province = 356 data = -1 } #Bulgaria
		}
	}
	random = no
	country = TUR
	name = "EVENTNAME338273" #Jewish refugees from Portugal
	desc = "EVENTHIST338273"
	#-#Expelled by Portugal, many Jewish families went to Amsterdam, Salonika and other, more hospitable, places.

	action_a = {
		name = "GOOD"
		command = { type = population which = 358 value = 1500 } #Macedonia
		command = { type = provincetax which = 358 value = 1 } #Macedonia
		command = { type = population which = 355 value = 500 } #Serbia
		command = { type = population which = 356 value = 500 } #Bulgaria
	}
}

#(1500-1820) The Golden Horde Vanishes
event = {
	id = 301083 #triggered by CRI_152050
	trigger = {
		NOT = {
			#no need if all involved provinces are already owned by OE
			owned = { province = 296 data = -1 } #Jedisan
		}
		OR = {
			owned = { province = 319 data = -1 } #Bujak
			owned = { province = 463 data = -1 } #Crimea
		}
		owned = { province = 296 data = CRI } #Jedisan
		NOT = {
			owned = { province = 295 data = CRI } #Ukraina
			owned = { province = 297 data = CRI } #Podolia
			owned = { province = 318 data = CRI } #Moldova
			owned = { province = 319 data = CRI } #Bujak
		}
	}
	random = no
	country = TUR
	name = "EVENTNAME152050" #The Golden Horde Vanishes
	desc = "EVENTHIST152050"
	#-#In 1502, Mengli Giray of Crimea captured and destroyed the city of Sarai capital of the Golden Horde. The last piece in its decline, the Golden Horde vanished as a political entity, with this act. Members of the Golden Horde still lived on hoping to rekindle lost glory, but the days of the Golden Horde were over.

	action_a = {
		name = "GREAT"
		command = { type = trigger which = 152005 } #CRI: Ottoman Empire and the disintegration of the Golden Horde
	}
}

#(1500-1820) Ottoman claim on Massawa
#by ConjurerDragon
event = {
	id = 301136
	trigger = {
		stability = 0 # at least somewhat stable and not too much internal unrest
		NOT = { 
			exists = MAM  #Mamluks defeated
			war = { country = TUR country = HAB }
			war = { country = TUR country = PER } #not distracted by major war
		} 
		OR = {
		   owned = { province = 498 data = -1 } #Mekkah
		   owned = { province = 746 data = -1 } #Egypt
		}
		OR = {
			year = 1557
			control = { province = 752 data = -1 } #Massawa
		}
	}
	random = no
	country = TUR
	name = "EVENTNAME301136" #Ottoman claim on Massawa
	desc = "EVENTHIST301136"
	#-#After their brilliant victory over the Mamluk Empire, the Ottomans continued to expand their rule southward slowed only when they were preoccupied with their larger wars in Europe or against the Safavid heretics.

	date = { year = 1500 }
	offset = 100
	deathdate = { year = 1820 }

	action_a = {
		name = "OK" 
		command = { type = addcore_claim which = 752 }  #Massawa
	}
}

#(1508) Radu's Death
event = {
	id = 301077
	trigger = {
		NOT = { vassal = { country = WAL country = TUR } }
		NOT = { war = { country = TUR country = WAL } }
		neighbour = WAL
		OR = {
			event = 329018 #WAL: Radu's death -I-
			event = 329019 #WAL: Radu's death -II-
			event = 329020 #WAL: Radu's death -III-
		}
	}
	random = no
	country = TUR
	name = "EVENTNAME329018" #Radu's Death
	desc = "EVENTHIST329018"
	#-#Following Radu's death, the Ottoman Empire strengthened its control over Wallachia by naming Mihnea, son of Vlad Dracula, as ruler. Mihnea's two years in power represented a drastic step back, his foreign policy would be totally asserved to the Porte, while his internal policy would gain him the surname 'cel Rau' (the Bad).

	date = { day = 1 month = april year = 1508 }
	offset = 0
	deathdate = { day = 1 month = june year = 1508 }

	action_a = {
		name = "ACTIONNAME301077A" #Mihnea is our ally
		command = { type = vassal which = WAL }
		command = { }
	}
}

#(1509-1520) The Barbarossas
event = {
	id = 50024
	trigger = { exists = TUN }
	random = no
	country = TUR
	name = "EVENTNAME51023" #The Barbarossas
	desc = "EVENTHIST50024"
	#-#In the 16th century, Spain occupied various ports in North Africa. Algiers was blockaded and forced to pay tribute. Other ports were captured outright. The desperate Muslims called for help from the Ottoman sultan, then the caliph of all Islam. Two corsair brothers, the Barbarossas petitioned the sultan to send them with a fleet to North Africa. Their accomplishments would lead to further Ottoman influence in North Africa.

	date = { day = 1 month = november year = 1509 }
	offset = 300
	deathdate = { day = 1 month = january year = 1520 }

	action_a = {
		name = "ACTIONNAME51024A" #Curse them!
		command = { type = trigger which = 51023 } #TUN: The Barbarossas
		command = { type = treasury value = -50 }
		command = { type = sleepevent which = 50025 } #TUR: The Barbarossas
	}
	action_b = {
		name = "ACTIONNAME51024B" #We shall ready our last defenses
		command = { type = treasury value = -150 }
		command = { type = trigger which = 51023 } #TUN: The Barbarossas
		command = { type = stability value = 1 }
		command = { type = casusbelli which = TLE value = 24 }
		command = { type = sleepevent which = 50025 } #TUR: The Barbarossas
	}
	action_c = {
		name = "ACTIONNAME51024C" #We submit to their power
		command = { type = stability value = -1 }
		command = { type = sleepevent which = 50025 } #TUR: The Barbarossas
	}
}
#(1509-1520) The Barbarossas
event = {
	id = 50025
	trigger = {
		NOT = { exists = TUN }
	}
	random = no
	country = TUR
	name = "EVENTNAME51023" #The Barbarossas
	desc = "EVENTHIST50024"
	#-#In the 16th century, Spain occupied various ports in North Africa. Algiers was blockaded and forced to pay tribute. Other ports were captured outright. The desperate Muslims called for help from the Ottoman sultan, then the caliph of all Islam. Two corsair brothers, the Barbarossas petitioned the sultan to send them with a fleet to North Africa. Their accomplishments would lead to further Ottoman influence in North Africa.

	date = { day = 1 month = november year = 1509 }
	offset = 300
	deathdate = { day = 1 month = january year = 1520 }

	action_a = {
		name = "ACTIONNAME51024A" #Curse them!
		command = { type = treasury value = -50 }
		command = { type = sleepevent which = 51025 } #TLE: Arudj and Khayr al-Din Barbarossa
		command = { type = sleepevent which = 50024 } #TUR: The Barbarossas
	}
	action_b = {
		name = "ACTIONNAME51024B" #We shall ready our last defenses
		command = { type = treasury value = -150 }
		command = { type = sleepevent which = 51025 } #TLE: Arudj and Khayr al-Din Barbarossa
		command = { type = stability value = 1 }
		command = { type = casusbelli which = TLE value = 24 }
		command = { type = sleepevent which = 50024 } #TUR: The Barbarossas
	}
	action_c = {
		name = "ACTIONNAME51024C" #We submit to their power
		command = { type = stability value = -1 }
		command = { type = sleepevent which = 51024 } #TLE: Arudj and Khayr al-Din Barbarossa
		command = { type = sleepevent which = 50024 } #TUR: The Barbarossas
	}
}

#(1510-1820) Fall of the Mamluk Empire
event = {
	id = 301086
	trigger = {
		control = { province = 746 data = -1 } #Egypt
		exists = MAM
		NOT = { event = 219001 } #MAM: Fall of the Mamluk Empire -I-
		ai = yes
	}
	random = no
	country = TUR
	name = "EVENTNAME219001" #Fall of the Mamluk Empire
	desc = "EVENTHIST301086"
	#-#The Mamluk Empire is under Ottoman hands...

	date = { day = 1 month = january year = 1510 }
	offset = 5
	deathdate = { year = 1820 }

	action_a = {
		name = "OK"
		command = { type = trigger which = 219014 } #MAM: Fall of the Mamluk Empire -II-
		command = { type = sleepevent which = 219001 } #MAM: Fall of the Mamluk Empire -I-
	}
}

#(1512-1520) Selim's Thoughts on the Mamluk Sultanate
event = {
	id = 301503
	trigger = {
		exists = MAM
		monarch = 0139006 #Selim I
		NOT = {
			war = { country = TUR country = MAM }
			owned = { province = 746 data = -1 } #Egypt
			vassal = { country = MAM country = TUR }
		}
	}
	random = no
	country = TUR
	name = "EVENTNAME301503" #Selim's Thoughts on the Mamluk Sultanate
	desc = "EVENTHIST301503"
	#-#During the reign of Bayezid II, relations between the Ottomans and Mamluks were quite cordial. Although initially there was some quarreling over southeastern Anatolia, Bayezid II largely preferred co-existance. All of this was to change when his youngest son, Selim rose to the throne. Unlike his father, Selim was an expansionist. His policies put the two states on a collision course when he began harassing Dulkadir.

	date = { day = 1 month = may year = 1512 }
	offset = 30
	deathdate = { day = 22 month = september year = 1520 }

	action_a = {
		name = "ACTIONNAME301503A" #They are weak!
		command = { type = relation which = MAM value = -200 }
		command = { type = relation which = DUL value = -200 }
		command = { type = inf which = -1 value = 3000 }
		command = { type = trigger which = 219007 } #MAM: Our Ottoman Neighbors
	}
}

#(1512-1522) The Turko-Persian Conflicts: Shi'a rebels
event = {
	id = 3360 #triggered by PER_3560 A
	random = no
	country = TUR
	name = "EVENTNAME3360" #Turko-Persian Conflicts: Shi'a rebels
	desc = "EVENTHIST3360"
	#-#Ever since the Safavid Shah Ismail the Great threw off the yoke of the White Sheep Turks to re-establish Persia as a nation, the Shi'a heresy had grown stronger in Anatolia. Near the end of the reign of Bayezid II, the Kizilbash (Shi'a Turkmen) rose up in revolt against the Sunni regime. Supported by Shah Ismail and Bayezid's own son Ahmed, the rebels threatened to change the course of Ottoman history...

	action_a = {
		name = "ACTIONNAME3360A" #Crush the heretics!
		command = { type = addcore which = 486 } #Nuyssaybin
		command = { type = addcore which = 508 } #Basrah
		command = { type = relation which = PER value = -150 }
		command = { type = stability value = 1 }
		command = { type = land value = 200 }
		command = { type = casusbelli which = PER value = 120 }
		command = { type = revoltrisk which = 6 value = 5 }
		command = { type = sleepevent which = 104012 } #ALB: Muslim Administration -II-
	}
	action_b = {
		name = "ACTIONNAME3360B" #Try to reconcile with Ahmed
		command = { type = stability value = 1 }
		command = { type = treasury value = -100 }
		command = { type = relation which = PER value = 50 }
		command = { type = badboy value = -1 }
		command = { type = manpower value = -15 }
		command = { type = provincereligion which = -1 value = shia }
		command = { type = domestic which = offensive value = -1 }
		command = { type = MIL which = -2 value = 6 }
		command = { type = sleepevent which = 104012 } #ALB: Muslim Administration -II-
	}
	#needs a new sequence to be written
	#action_c = {
		#name = "ACTIONNAME3360C" #Adopt the Shi'a faith => to be added in text.csv
		#command = { type = stability value = -6 }
		#command = { type = relation which = PER value = 200 }
		#command = { type = religion which = shia }
		#command = { type = provincereligion which = -1 value = shia }
		#command = { type = provincereligion which = -1 value = shia }
		#command = { type = provincereligion which = -1 value = shia }
		#command = { type = provincereligion which = -1 value = shia }
		#command = { type = provincereligion which = -1 value = shia }
		#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 = revolt which = -1 }
		#command = { type = revolt which = -1 }
		#command = { type = revolt which = -1 }
		#command = { type = technology which = orthodox }
		#command = { type = add_countryculture which = kurdish }
		#command = { type = domestic which = innovative value = -1 }
		#command = { type = infra value = -1000 }
		#command = { type = trade value = -1000 }
		#command = { type = land value = -1000 }
		#command = { type = naval value = -1000 }
		#command = { type = revoltrisk which = 180 value = 5 }
		#command = { type = sleepevent which = 65050 } #PER: Move to Qazvin
		#command = { type = sleepevent which = 3361 } #TUR: Turko-Persian Conflicts: Prince Bayezid flees to Persia
		#command = { type = sleepevent which = 301007 } #TUR: The Conquests of Murad III
		#command = { type = sleepevent which = 3362 } #TUR: Turko-Persian Conflicts: Murad III's campaigns
		#command = { type = sleepevent which = 3563 } #PER: Turko-Persian Tension
		#command = { type = sleepevent which = 104011 } #ALB: Muslim Administration -I-
	#}
}

#(1512) The Conquests of Selim I The Grim
event = {
	id = 301004
	random = no
	country = TUR
	name = "EVENTNAME301004" #The Conquests of Selim I The Grim
	desc = "EVENTHIST301004"
	#-#Selim I, aka Yavuz Selim (Selim the Grim) ruled only eight short years, but in that time he more than doubled the size of the Empire, conquering Eastern Anatolia from the remnants of the Safavids (1514) and the whole of the Mamluk Empire (1516-1517). In addition, the Barbary corsairs, the Barbarossas, conquered Al-Djazaļr for the Sultan (1517).

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

	action_a = {
		name = "ACTIONNAME301004A" #A Time For War
		command = { type = add_countryculture which = arabic }
		command = { type = add_countryculture which = maghrebi }
		command = { type = addcore which = 473 } #Armenia
		command = { type = addcore which = 485 } #Aleppo
		command = { type = addcore which = 488 } #Kirkuk
		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 = 734 } #Orania
		command = { type = addcore which = 735 } #Atlas
		command = { type = addcore which = 736 } #Aures
		command = { type = addcore which = 737 } #Al Djazair
		command = { type = addcore which = 738 } #Kabylia
		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 = AI which = TUR_SelimI.txt }
	}
}

#(1513-1700) Ottoman claim on Aden
#by ConjurerDragon
event = {
	id = 301137
	trigger = {
		stability = 0
		NOT = { 
			exists = ADE  #Aden does not exist
			war = { country = TUR country = HAB }
			war = { country = TUR country = PER }
			core_national = { province = 500 data = -1 }
		}  #no major distractions in the north and not already a core
		OR = {
			owned = { province = 498 data = -1 } #Mekkah
			owned = { province = 747 data = -1 } #Nile
		}
		OR = {
			leader = 0139330 # Piri Reis historically captured Aden 1548
			control = { province = 500 data = -1 } #Aden
		}
	}
	random = no
	country = TUR
	name = "EVENTNAME301137" #Ottoman claim on Aden
	desc = "EVENTHIST301137"
	#-#Under Piri Reis, the Ottomans managed to take the harbour of Aden in Yemen from the Portuguese on 26 February 1548.

	date = { year = 1513 }
	offset = 100
	deathdate = { year = 1700 }

	action_a = {
		name = "OK" 
		command = { type = addcore_claim which = 500 } #Aden
	}
}

#(1515-1517) The Great Naval Reform / Imperial Halic Shipyard
event = {
	id = 3367
	trigger = {
		owned = { province = 357 data = -1 } #Thrace
		control = { province = 357 data = -1 } #Thrace
		countrysize = 8
	}
	random = no
	country = TUR
	name = "EVENTNAME3367" #The Great Naval Reform
	desc = "EVENTHIST3367"
	#-#Selim I, called the Grim, was an ascetic man with a sharp mind. Seeing the threat of the great Christian navies, especially the Venetian one, he realized that the Ottoman Empire had to greatly expand its navy. In emulation of the Arsenale in Venice, he thus ordered the construction of the 'Imperial Halic Shipyard' in Constantinople. The great shipyard stood complete in 1517.

	date = { day = 1 month = june year = 1515 }
	offset = 700
	deathdate = { day = 1 month = june year = 1517 }

	action_a = {
		name = "ACTIONNAME3367A" #Build the Imperial Halic Shipyard
		command = { type = treasury value = -600 }
		command = { type = naval value = 1000 }
		command = { type = domestic which = LAND value = -1 }
		command = { type = galleys which = -1 value = 20 }
		command = { type = gainbuilding which = 357 value = shipyard } #Thrace
		command = { type = vp value = 25 }
	}
	action_b = {
		name = "ACTIONNAME3367B" #Build a lesser shipyard
		command = { type = treasury value = -300 }
		command = { type = naval value = 500 }
		command = { type = gainbuilding which = 357 value = shipyard } #Thrace
	}
	action_c = {
		name = "ACTIONNAME3367C" #Reform the army instead
		command = { type = fortress which = -1 value = 1 }
		command = { type = INF which = -2 value = 10000 }
		command = { type = land value = 500 }
		command = { type = vp value = -10 }
	}
}

#(1515-1520) Inheritance of Dulkadir
event = {
	id = 50016 #triggered by DUL_50015 A
	random = no
	country = TUR
	name = "EVENTNAME50016" #Dulkadir Troubles
	desc = "EVENTHIST50016"
	#-#The rightful ruler of Dulkadir has asked our glorious Sultan to help him to wipe out the rebels in his Kingdom. Should we help him?

	action_a = {
		name = "ACTIONNAME50016A" #Interfere and annex
		command = { type = inherit which = DUL }
		command = { type = relation which = MAM value = -100 }
	}
	action_b = {
		name = "ACTIONNAME50016B" #Interfere and make him our vassal
		command = { type = vassal which = DUL }
		command = { type = relation which = DUL value = 70 }
		command = { type = relation which = MAM value = -200 }
	}
	action_c = {
		name = "ACTIONNAME50016C" #Do not Interfere
		command = { type = relation which = DUL value = -50 }
	}
}

#(1517-1820) Ottoman claim on Yemen
#by ConjurerDragon
event = {
	id = 301138
	trigger = {
		stability = 0
		NOT = { 
			exists = MAM  #Mamluks are gone
			war = { country = TUR country = HAB }
			war = { country = TUR country = PER }
			core_national = { province = 499 data = -1 }
		}  #no major distractions in the north and not already a core
		OR = {
			owned = { province = 498 data = -1 } #Mekkah
			owned = { province = 747 data = -1 } #Nile
		}
		OR = {
			leader = 0139330 # Piri Reis 
			control = { province = 499 data = -1 } #Yemen
		}
	}
	random = no
	country = TUR
	name = "EVENTNAME301138" #Ottoman claim on Yemen
	desc = "EVENTHIST301138"
	#-#In 1517, Yemen was overrun by Ottoman troops after the fall of the Mamluk empire.

	date = {  year = 1517 }
	offset = 100
	deathdate = {  year = 1820 }

	action_a = {
		name = "OK" 
		command = { type = addcore_claim which = 499 } #Yemen
	}
}

#(1518-1569) The Ottoman claim on Cyprus
#by Fodoron
event = {
	id = 3359
	trigger = {
		owned = { province = 484 data = VEN }
		NOT = { war = { country = TUR country = VEN } }
		NOT = { exists = MAM }
		atwar = no
	}
	random = no
	country = TUR
	name = "EVENTNAME3359" #The Sultan claims Cyprus suzerainty
	desc = "EVENTHIST3359"
	#-#The Bey of the Mamluks had been the suzerain of Cyprus since 1427, when Janus Lusignan, King of Cyprus, accepted vassalage to Barsbey after being defeated and captured. When the Venetians inherited Cyprus, they offered to continue paying the tribute to maintain their privileged commercial relations with Egypt. That was a mistake, because now the Sultan of the Ottomans, as new overlord of Egypt, can claim also suzerainty over Cyprus.

	date = { day = 1 month = june year = 1518 }
	offset = 180
	deathdate = { day = 1 month = january year = 1569 }

	action_a = {
		name = "ACTIONNAME3359A" #Venice can keep Cyprus but must pay tribute
		command = { type = addcore which = 484 } #Cyprus
		command = { type = trigger which = 3637 } #VEN: The Ottoman claim on Cyprus
	}
}
#(1518-1569) Venice pays tribute
event = {
	id = 301059 #triggered by VEN_3637 A
	random = no
	country = TUR
	name = "EVENTNAME301059" #Venice pays tribute
	desc = "EVENTHIST301059"
	#-#The Venetians, keen to avoid conflict with the new master of the Levant trade, congratulated the Sultan on his conquest and agreed to continue paying the tribute for Cyprus, now in gold instead of cloths.

	action_a = {
		name = "GOOD_NEWS"
		command = { type = treasury value = 100 }
	}
}
#(1518-1569) Venice refuses to pay tribute - Ahistorical
event = {
	id = 301060 #triggered by VEN_3637 B
	random = no
	country = TUR
	name = "EVENTNAME301060" #Venice refuses to pay tribute
	desc = "EVENTHIST301060"
	#-#The Venetians are now in conflict with the new master of the Levant trade.

	action_a = {
		name = "DAMN"
		command = { }
	}
}
#(1518-1569) Venice abandons Cyprus - Ahistorical
event = {
	id = 301061 #triggered by VEN_3637 C
	random = no
	country = TUR
	name = "EVENTNAME301061" #Venice abandons Cyprus
	desc = "EVENTHIST301061"
	#-#We are the new uncontested master of the Levant trade.

	action_a = {
		name = "GREAT"
		command = { }
	}
}

#(1519) Turkish dominance on the Black See
event = {
	id = 301049
	trigger = {
		OR = {
			owned = { province = 464 data = -1 } #Kaffa
			owned = { province = 465 data = -1 } #Kerch
		}
	}
	random = no
	country = TUR
	name = "EVENTNAME301049" #Turkish dominance on the Black Sea
	desc = "EVENTHIST301049"
	#-#Black Sea has became our internal sea!

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

	action_a = {
		name = "GREAT"
		command = { type = addcore which = 465 } #Kerch - just in case Genoa did not secede
		command = { type = stability value = 1 }
		command = { type = trade value = 200 } #full control of trade routes
		command = { type = provinceculture which = 464 value = turkish } #Kaffa
		command = { type = provinceculture which = 465 value = turkish } #Kerch
		command = { type = relation which = CRI value = 50 }
	}
}

#(1519) The 1st Celali Uprising
event = {
	id = 3370
	trigger = {
		owned = { province = 474 data = -1 } #Sivas
		NOT = { religion = shia }
	}
	random = no
	country = TUR
	name = "EVENTNAME3370" #The Celali Uprising
	desc = "EVENTHIST3370"
	#-#Yet again the Shi'as of Eastern Anatolia rose up in rebellion, this time led by a charismatic man named Celal. For centuries, subsequent uprisings in Asia Minor, whether of religious nature or not, were to be called Celali.

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

	action_a = {
		name = "ACTIONNAME3370A" #Crush Celali and the Shi'as
		command = { type = revolt which = 474 } #Sivas
		command = { type = revolt which = -1 }
		command = { type = stability value = -1 }
		command = { type = infra value = 200 }
	}
	action_b = {
		name = "ACTIONNAME3370B" #Heed their demands
		command = { type = provincereligion which = 474 value = shia } #Sivas
		command = { type = stability value = 1 }
	}
}

#(1520-1550) Mamluk Uprising under Canbirdi Ghazeli
event = {
	id = 3373
	trigger = {
		owned = { province = 744 data = -1 }
		owned = { province = 745 data = -1 }
		owned = { province = 746 data = -1 }
		owned = { province = 747 data = -1 }
		NOT = { exists = MAM }
	}
	random = no
	country = TUR
	name = "EVENTNAME3373" #Mamluk Uprising
	desc = "EVENTHIST3373"
	#-#The treacherous governor of the newly conquered Mamluk Egypt, Canbirdi Ghazeli, rose up in rebellion against the Ottomans hoping to re-establish the Mamluk state under his own leadership.

	date = { day = 1 month = january year = 1520 }
	offset = 720
	deathdate = { day = 1 month = january year = 1550 }

	action_a = {
		name = "OK"
		command = { type = revolt which = 744 } #Alexandria
		command = { type = revolt which = 744 } #Alexandria
		command = { type = revolt which = 745 } #Delta
		command = { type = revolt which = 745 } #Delta
		command = { type = revolt which = 746 } #Egypt
		command = { type = revolt which = 747 } #Nile
	}
}

#(1520) The Conquests of Suleyman I The Law Giver
event = {
	id = 301005
	random = no
	country = TUR
	name = "EVENTNAME301005" #The Conquests of Suleyman I The Law Giver
	desc = "EVENTHIST301005"
	#-#Under Suleyman I, the Empire reached its greatest heights, even as the internal decay which would later bring down the Empire began. Hungary, Jedisan, Irak, Armenia, Georgia, Yemen, Oman, Libya, and the Safavid capital of Tabriz all would fall to Suleyman's armies. The Sultan tried to destroy the Knights of St. John once and for all, with an invasion of Malta. He laid seige to the capital of Austria, took ever more territory from the Venetians in Dalmatia, and vassalized the pirates of Algeria.

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

	action_a = {
		name = "ACTIONNAME301005A" #I am truely Lord of the Horizons
		command = { type = addcore which = 365 } #Dalmatia
		command = { type = add_countryculture which = dalmatian }
		command = { type = addcore which = 470 } #Kolkhis
		command = { type = addcore which = 472 } #Iveria
		command = { type = addcore which = 489 } #Iraq
		command = { type = addcore which = 740 } #Tripolitania
		command = { type = addcore which = 362 } #Ragusa
		command = { type = addcore which = 296 } #Jedisan
		command = { type = addcore which = 820 } #Corfu
		#command = { type = AI which = TUR_SuleymanI.txt }
	}
}

#(1520-1526) Suleyman demands the keys to Hungary
event = {
	id = 19008
	trigger = {
		exists = HAB
		exists = HUN
		OR = {
			neighbour = HAB
			neighbour = HUN
		}
		countrysize = 6
		owned = { province = 357 data = -1 } #Thrace
		control = { province = 357 data = -1 }
		NOT = { owned = { province = 356 data = HUN } } #Bulgaria
		NOT = {
			vassal = { country = HUN country = TUR }
			vassal = { country = HUN country = HAB }
		}
	}
	random = no
	country = TUR
	name = "EVENTNAME19008" #Suleyman demands the keys to Hungary
	desc = "EVENTHIST19008"
	#-#When Suleyman I became Sultan of the Ottoman Empire in 1520, he was faced with a grave crisis. The rise of the Habsburgs in Austria and Spain had created a superpower. Moreover, the Habsburgs had a potential claim to the Hungarian throne. Should the Habsburgs seize that throne, their armies would be within striking distance of Constantinople itself. In order to fend off this developing threat, Ottoman diplomats strove to strengthen relations with Venice and France. Hungary, however, must pay tribute to the Sultan, must grant the Ottoman troops transit rights through their country, and must renounce all ties with the Habsburgs. If they refused, war would surely follow.

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

	action_a = {
		name = "ACTIONNAME19008A" #Send the messengers
		command = { type = relation which = VEN value = 100 }
		command = { type = relation which = FRA value = 100 }
		command = { type = trigger which = 19009 } #HUN: Suleyman Demands Our Submission
		command = { type = trigger which = 188009 } #HUN: Suleyman Demands Our Submission (Janos Corvinus prevailed)
		command = { type = sleepevent which = 301064 } #TUR: The Habsburgs' threat
	}
}
#(1520-1526) Lajos Insults the Sultan
event = {
	id = 19010 #triggered by HUN_19009 A
	random = no
	country = TUR
	name = "EVENTNAME19010" #Lajos insults Suleyman
	desc = "EVENTHIST19010"
	#-#When King Lajos of Hungary refused to answer the Sultan's ambassador, the Ottoman Empire had no option but to go to war. It was thought that the seizure of a few key forts would be enough to bring the Hungarians to heel. But things would not be that simple.

	action_a = {
		name = "ACTIONNAME19010A" #Prepare for battle!
		command = { type = relation which = HUN value = -100 }
		command = { type = addcore which = 354 } #Banat
	}
}
#(1520-1526) Lajos Submits to the Great Suleyman
event = {
	id = 19011
	trigger = {
		event = 19009 #HUN: Suleyman Demands Our Submission
	}
	random = no
	country = TUR
	name = "EVENTNAME19011" #Lajos submits to Suleyman
	desc = "EVENTHIST19011"
	#-#When King Lajos agreed to Suleyman's terms, it seemed that Hungary would be secure, if somewhat poorer and no longer quite independent. Suleyman was now free to deal with the growing threat of the Portuguese in the Indian Ocean. Lajos' act of statesmanship, however, was to prove his undoing.

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

	action_a = {
		name = "EXCELLENT"
		command = { type = vassal which = HUN }
		command = { type = relation which = HUN value = 50 }
		command = { type = DIP which = 1 value = 24 }
	}
}
#(1520-1526) Jįnos II Insults the Sultan - Ahistorical
event = {
	id = 301066 #triggered by HUN_188009 A
	random = no
	country = TUR
	name = "EVENTNAME301066" #Jįnos II insults Suleyman
	desc = "EVENTHIST301066"
	#-#When King Jįnos II of Hungary refused to answer the Sultan's ambassador, the Ottoman Empire had no option but to go to war. It was thought that the seizure of a few key forts would be enough to bring the Hungarians to heel. But things would not be that simple.

	action_a = {
		name = "ACTIONNAME19010A" #Prepare for battle!
		command = { type = relation which = HUN value = -100 }
		command = { type = addcore which = 354 } #Banat
	}
}
#(1520-1526) Jįnos II Submits to the Great Suleyman - Ahistorical
event = {
	id = 301067
	trigger = {
		event = 188009 #HUN: Suleyman Demands Our Submission (Janos II ruling)
	}
	random = no
	country = TUR
	name = "EVENTNAME301067" #Jįnos II submits to Suleyman
	desc = "EVENTHIST301067"
	#-#When King Jįnos II agreed to Suleyman's terms, it seemed that Hungary would be secure, if somewhat poorer and no longer quite independent. Suleyman was now free to deal with the growing threat of the Portuguese in the Indian Ocean. Jįnos II' act of statesmanship, however, was to prove his undoing.

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

	action_a = {
		name = "EXCELLENT"
		command = { type = vassal which = HUN }
		command = { type = relation which = HUN value = 50 }
		command = { type = DIP which = 1 value = 24 }
	}
}

#(1523-1798) The Order of St. John is offered Malta
event = {
	id = 301092 #triggered by KNI_24001
	random = no
	country = TUR
	name = "EVENTNAME24001" #The Order of St. John is offered Malta
	desc = "EVENTHIST285123"
	#-#When the Order of St. John was expelled from Rhodes in 1523, it underwent a crisis. Their possessions were being confiscated all over Europe, both by Catholic, and Protestant rulers, their income dwindled, their recruits stopped coming. They desperately needed a base, preferably by reconquering Rhodes, otherwise an island in the Aegean, but nobody helped and Venice opposed them. Europe was at war and there was no place for their neutrality. The emperor Carlos however came up with a master idea. He offered Malta to the Hospitallers. Malta was difficult to defend from the growing Ottoman power, but the Knights were a tough breed. They would give their life defending his shipping lines with Sicily. In 1524 the Hospitallers sent a commission to Malta. Their report was very negative. The island could not sustain itself, and the defences were very poor. Then Carlos decided to include Tripoli in the deal as a take it all or leave it all. The Knights opinion on Tripoli was even worse. They did not have the resources to upgrade its defences. But having no other option, the Chapter General decided in 1527 to accept the offer with the opposition of the French Langues. They still had hopes of recovering Rhodes, but in 1530 they gave up and moved to Malta, taking possession also of Tripoli. From then on, the Spaniards and the Knights of St. John would fight their battles in North Africa together.

	action_a = {
		name = "ACTIONNAME301092A" #Rhodes is ours!
		command = { type = vp value = 5 }
	}
}

#(1525-1554) The Ottoman protection of Al-Djazaļr
event = {
	id = 3372 #triggered by ALD_3651 A
	random = no
	country = TUR
	name = "EVENTNAME3651" #The Ottoman protection of Al-Djazaļr
	desc = "EVENTHIST3372"
	#-#In the 1520's, the brothers Barberus, who were Greek renegades who had gone on piracy ventures in the Barbary Coast of Algiers. After much fighting, Arudj, the elder brother, assassinated the pasha of Algiers, but was later himself killed in a combat. His brother Kayr al Din succeeded him and had, at some time, 100 galleys and 4,000 pirates that he used to terrorize the whole Mediterranean. Having received a regular commission of admiral from the Sultan, he placed Al Djazaļr (Algeria) under Ottoman sovereignty prompting Spanish expeditions against Algiers.

	action_a = {
		name = "ACTIONNAME3372A" #We accept this submission!
		command = { type = vassal which = ALD }
		command = { type = sleepleader which = 0139318 } #Khayr-ad-Din (TUR)
		command = { type = treasury value = 200 }
		command = { type = stability value = 1 }
		command = { type = INF which = 737 value = 7000 } #Al Djazair
		command = { type = relation which = ALD value = 100 }
		command = { type = naval value = 100 }
	}
}

#(1526) A foothold in Hungary
#(it can fire with both Lajos' deaths, HUN_19014 A or 19017 A)
event = {
	id = 19022 #triggered by HAB_3186 A / HAB_179143 A
	random = no
	country = TUR
	name = "EVENTNAME19022" #A foothold in Hungary
	desc = "EVENTHIST19022"
	#-#When Ferdinand attempted to uphold his claims in the Balkans by force, Suleyman felt that he had no choice but to respond in the same vein, lest Ferdinand expand his domain right up to the Sultan's border.

	action_a = {
		name = "ACTIONNAME19023A" #We will defend our interests
		command = { type = vassal which = HUN }
		command = { type = stability value = 5 }
		command = { type = addcore which = 316 } #Carpathia
		command = { type = addcore which = 317 } #Ruthenia
		command = { type = addcore which = 323 } #Transylvania
		command = { type = addcore which = 324 } #Maros
		command = { type = addcore which = 325 } #Magyar
		command = { type = addcore which = 326 } #Presburg
		command = { type = addcore which = 353 } #Pest
		command = { type = addcore which = 354 } #Banat
		command = { type = addcore which = 366 } #Croatia
		command = { type = addcore which = 352 } #Odenburg
		command = { type = addcore which = 367 } #Krain
		command = { type = trigger which = 301087 } #TUR: To Vienna
	}
	action_b = {
		name = "ACTIONNAME19023B" #Let that infidel Ferdinand have Hungary so we can expand elsewhere
		command = { type = relation which = HAB value = 100 }
		command = { type = relation which = HUN value = 100 }
		command = { type = revoltrisk which = 120 value = 3 }
		command = { type = stability value = -2 }
	}
}
#(1526) To Vienna
event = {
	id = 301087 #triggered by TUR_19022 A
	random = no
	country = TUR
	name = "EVENTNAME301087" #To Vienna
	desc = "EVENTHIST301087"
	#-#The policy that was intended to secure the Ottoman Empire against the Habsburg threat had instead plunged the two empires into war.

	action_a = {
		name = "ACTIONNAME301087A" #Let's protect Hungary
		command = { type = alliance which = HUN } #in order HUN not to be alone versus HAB later
		command = { type = war which = HAB }
         	command = { type = addcore_claim which = 351 } #Austria
	}
}
#(1526) Hungary submits - Lajos' historical death at Mohacs
event = {
	id = 301125 #triggered by HAB_3186 B
	random = no
	country = TUR
	name = "EVENTNAME301125" #Hungary submits
	desc = "EVENTHIST3186"
	#-#Lajos II (Louis), 1506-26, King of Hungary and Bohemia (1516-26), son and successor of Uladislaus II. He was the last of the Jagiello dynasty in the two Kingdoms. In the face of intensified attacks by Sultan Sulayman I, Lajos hastily sought (1526) to unite Hungary and Christendom behind him, but only the Pope sent help. With a pitiful army, Lajos joined battle with the Ottomans at Mohįcs. The Hungarian army was destroyed, and Lajos was killed. Only the ambitious John Zapolya had failed to arrive in time for the battle with the army he was bringing from Transylvania. Through the marriage treaty concluded by Lajos father the crowns of Hungary and Bohemia passed to Louis's brother-in-law, Ferdinand of Habsburg (later Holy Roman Emperor Ferdinand I), but Hungary fell under Ottoman rule.

	action_a = {
		name = "EXCELLENT"
		command = { type = vassal which = HUN }
		command = { type = relation which = HUN value = 50 }
		command = { type = DIP which = 1 value = 24 }
		command = { type = stability value = 5 }
		command = { type = addcore which = 316 } #Carpathia
		command = { type = addcore which = 317 } #Ruthenia
		command = { type = addcore which = 323 } #Transylvania
		command = { type = addcore which = 324 } #Maros
		command = { type = addcore which = 325 } #Magyar
		command = { type = addcore which = 326 } #Presburg
		command = { type = addcore which = 353 } #Pest
		command = { type = addcore which = 354 } #Banat
		command = { type = addcore which = 366 } #Croatia
		command = { type = addcore which = 352 } #Odenburg
		command = { type = addcore which = 367 } #Krain
         	command = { type = addcore_claim which = 351 } #Austria
	}
}
#(1526) Hungary submits - Lajos' ahistorical assassination by nobles
event = {
	id = 301126 #triggered by HAB_179143 B
	random = no
	country = TUR
	name = "EVENTNAME301125" #Hungary submits
	desc = "EVENTHIST301126"
	#-#The nobles of Hungary were growing increasingly dissatisfied with the leadership of the boy-king. His failure to join the League of Cambrai against Venice and take back Dalmatia was not well-received. Submitting to be the vassal of the heathen Turks was the last straw. On August, 22, 1526, King Lajos of Hungary and Bohemia was assassinated by a conspiracy of nobles. With Lajos II dead, Suleyman ordered the nobility of Hungary to chose whomever they wished to be King, so long as he was not a Habsburg. Most of the nobles voted for Jįnos Zįpolya of Transylvania swearing allegiance to the Sultan.

	action_a = {
		name = "EXCELLENT"
		command = { type = vassal which = HUN }
		command = { type = relation which = HUN value = 50 }
		command = { type = DIP which = 1 value = 24 }
		command = { type = stability value = 5 }
		command = { type = addcore which = 316 } #Carpathia
		command = { type = addcore which = 317 } #Ruthenia
		command = { type = addcore which = 323 } #Transylvania
		command = { type = addcore which = 324 } #Maros
		command = { type = addcore which = 325 } #Magyar
		command = { type = addcore which = 326 } #Presburg
		command = { type = addcore which = 353 } #Pest
		command = { type = addcore which = 354 } #Banat
		command = { type = addcore which = 366 } #Croatia
		command = { type = addcore which = 352 } #Odenburg
		command = { type = addcore which = 367 } #Krain
         	command = { type = addcore_claim which = 351 } #Austria
	}
}
#(1526) Lajos Submits to the Great Suleyman
event = {
	id = 301124 #triggered by HUN_19013 B
	random = no
	country = TUR
	name = "EVENTNAME301124" #Lajos eventually submits to Suleyman
	desc = "EVENTHIST301124"
	#-#At the end King Lajos agreed to Suleyman's terms and it seemed that Hungary would be secure, if somewhat poorer and no longer quite independent. Suleyman was now free to deal with the growing threat of the Portuguese in the Indian Ocean. Lajos' act of statesmanship, however, was to prove his undoing.

	action_a = {
		name = "EXCELLENT"
		command = { type = vassal which = HUN }
		command = { type = relation which = HUN value = 50 }
		command = { type = DIP which = 1 value = 24 }
	}
}
#(1526 or 1540) To Buda!
event = {
	id = 19023 #triggered by HAB_179130 or HAB_179135 / HAB_179136
	random = no
	country = TUR
	name = "EVENTNAME19023" #The invasion of Hungary
	desc = "EVENTHIST19023"
	#-#When Ferdinand attempted to uphold his claims in the Balkans by force, Suleyman felt that he had no choice but to respond in the same vein, lest Ferdinand expand his domain right up to the Sultan's border. The policy that was intended to secure the Ottoman Empire against the Habsburg threat had instead plunged the two empires into war.

	action_a = {
		name = "ACTIONNAME19023A" #We will defend our interests
		command = { type = addcore which = 316 } #Carpathia
		command = { type = addcore which = 317 } #Ruthenia
		command = { type = addcore which = 323 } #Transylvania
		command = { type = addcore which = 324 } #Maros
		command = { type = addcore which = 325 } #Magyar
		command = { type = addcore which = 326 } #Presburg
		command = { type = addcore which = 353 } #Pest
		command = { type = addcore which = 354 } #Banat
		command = { type = addcore which = 366 } #Croatia
		command = { type = addcore which = 352 } #Odenburg
		command = { type = addcore which = 367 } #Krain
         	command = { type = addcore_claim which = 351 } #Austria
		command = { type = war which = HAB }
		command = { type = war which = HUN }
	}
	action_b = {
		name = "ACTIONNAME19023B" #Let that infidel Ferdinand have Hungary so we can expand elsewhere
		command = { type = relation which = HAB value = 100 }
		command = { type = relation which = HUN value = 100 }
		command = { type = revoltrisk which = 120 value = 3 }
		command = { type = stability value = -2 }
	}
}

#(1526) The Habsburgs' threat - Ahistorical
event = {
	id = 301064
	trigger = {
		exists = HAB #Austria must exist
		owned = { province = 357 data = -1 } #Thrace
		owned = { province = 356 data = -1 } #Bulgaria
		NOT = { exists = HUN }
		NOT = { event = 19008 } #TUR: Suleyman demands the keys to Hungary
	}
	random = no
	country = TUR
	name = "EVENTNAME301064" #The Habsburgs' threat
	desc = "EVENTHIST301064"
	#-#After Suleyman I became Sultan of the Ottoman Empire in 1520, he was faced with a grave crisis. The rise of the Habsburgs in Austria and Spain had created a superpower. In order to fend off this developing threat, Ottoman diplomats strove to strengthen relations with Venice and France.

	date = { day = 29 month = august year = 1526 }
	offset = 30
	deathdate = { day = 6 month = september year = 1566 } #Suleyman's death

	action_a = {
		name = "ACTIONNAME19008A" #Send the messengers
		command = { type = relation which = VEN value = 100 }
		command = { type = relation which = FRA value = 100 }
		command = { type = addcore which = 316 } #Carpathia
		command = { type = addcore which = 317 } #Ruthenia
		command = { type = addcore which = 323 } #Transylvania
		command = { type = addcore which = 324 } #Maros
		command = { type = addcore which = 325 } #Magyar
		command = { type = addcore which = 326 } #Presburg
		command = { type = addcore which = 353 } #Pest
		command = { type = addcore which = 354 } #Banat
		command = { type = addcore which = 366 } #Croatia
		command = { type = addcore which = 352 } #Odenburg
		command = { type = addcore which = 367 } #Krain
         	command = { type = addcore_claim which = 351 } #Austria
	}
}

#(1534-1554) The bard of Baghdad - Flavor
event = {
	id = 301031
	random = no
	country = TUR
	name = "EVENTNAME301031" #The bard of Baghdad
	desc = "EVENTHIST301031"
	#-#Süleyman Fuzuli (1480-1556) was second only to Baki amongst the poets of the age. Of Persian origin, he switched allegiance to the Ottomans and was granted a pension for life. \n \nIs it strange if beauties' hearts turn blood through envy of thy cheek most fair? \nFor that which stone to ruby turns is but the radiant sunlight's glare. \nOr strange is it if thine eyelash conquer all the stony-hearted ones? \nFor meet an ebon shaft like that a barb of adamant should bear!

	date = { day = 1 month = january year = 1534 }
	offset = 5000
	deathdate = { day = 1 month = january year = 1554 }

	action_a = {
		name = "ACTIONNAME301031A" #Oh, the delight!
		command = { type = infra value = 50 }
	}
}

#(1535-1557) Tlemcen submits to the Ottoman Empire
#by Fodoron
event = {
	id = 301042 #triggered by TLE_332002 B / TLE_332003 B / TLE_332004
	random = no
	country = TUR
	name = "EVENTNAME301042" #Tlemcen submits to the Ottoman Empire
	desc = "EVENTHIST301042"
	#-#The Zayyanid dynasty had ruled Tlemcen for 300 years, however between the 1530s and 1550s, the combined assault of Spain, Al-Djazaīr, under Ottoman support, and Morocco, throw them into a civil war. One of the candidates was supported by Spain, while the other had the support of Barbarossa and his Janissaries. In the end, Tlemcen disappeared becoming another Ottoman protectorship.

	action_a = {
		name = "ACTIONNAME301042A" #The Mediterranean is ours
		command = { type = vassal which = TLE } #Tlemcen
	}
}

#(1536-1544) The alliance with the Infidels
#by Bordic
event = {
	id = 301019 #triggered by FRA_170051 A
	random = no
	country = TUR
	name = "EVENTNAME301019" #The alliance with the Infidels
	desc = "EVENTHIST170051"
	#-#Since Genoa and Milan returned within the Spanish-Habsburgs influence while Firenze, Venice and Papal States were too weak to withstand the Habsburgs military power, in order to open a second front against Charles V, Franēois Ier, 'the most Christian King', decided to seek the help of 'the Turk', Sultan Süleyman I, who was ruling a power on the rise, a menace to both the Empire and Spain, the Ottoman Empire. The main purposes of this alliance, stipulated in disguise of a trade agreement, was the planned combined attack to the Empire from two opposite fronts and the use of the Turkish galleys led by Kair-ed-din Barbarossa to engage the enemy's fleet and to raid the coastal villages of Italy and Spain. The alliance that had been under discussion since 1525 was preliminarily agreed in February 1535 and formalized in February 1536 between French ambassador Laforest and Grand Vizier Ibrahim. The treaty also granted the French commercial concessions in the Ottoman Empire replacing Venice, as well as conceded the so called capitulations which also allowed French consuls legal jurisdiction over French subjects in Ottoman domains and recognized the French King as protector of the Christian holy places in Palestine, concessions that would have long-term effects on Ottoman relations with other foreign powers as well as internal development. The pact was kept secret, though, because to the Christians, the impious alliance between the Most Christian King and the worst enemy of Christendom was a heinous act.

	action_a = {
		name = "ACTIONNAME301019A" #Support the Most Christian King!
		command = { type = casusbelli which = SPA value = 60 }
		command = { type = casusbelli which = HAB value = 60 }
		command = { type = casusbelli which = GEN value = 60 }
		command = { type = casusbelli which = VEN value = 60 }
		command = { type = relation which = FRA value = 125 }
		command = { type = relation which = SPA value = -100 }
		command = { type = relation which = HAB value = -50 }
		command = { type = relation which = VEN value = -50 }
		command = { type = relation which = PAP value = -50 }
		command = { type = relation which = GEN value = -50 }
		command = { type = relation which = NAP value = -50 }
	}
	action_b = {
		name = "ACTIONNAME301019B" #I changed my mind
		command = { type = relation which = FRA value = -125 }
		command = { type = cancelaccess which = FRA}
		command = { type = revokeaccess which = TUR }
		command = { type = sleepevent which = 50017 } #TUR: The Capitulations
	}
}

#(1536-1550) The Capitulations
event = {
	id = 50017
	trigger = {
		event = 170051 #FRA: The alliance with the Turk
		exists = FRA
		domestic = { type = mercantilism value = 7 }
		NOT = { war = { country = TUR country = FRA } }
	}
	random = no
	country = TUR
	name = "EVENTNAME50017" #The Capitulations
	desc = "EVENTHIST50017"
	#-#Süleyman intended to support France against Austria, and was therefore not averse to reducing tariffs on French goods, and allowing the French diplomatic representatives greater powers within the Empire. While initially this led to an increase in wealth, the system would ultimately come to be abused by most European powers.

	date = { day = 2 month = april year = 1536 }
	offset = 1000
	deathdate = { day = 1 month = january year = 1550 }

	action_a = {
		name = "ACTIONNAME50017A" #Reduce tariffs
		command = { type = domestic which = MERCANTILISM value = -1 }
		command = { type = givetrade which = FRA }
		command = { type = trade value = 500 }
		command = { type = relation which = FRA value = 125 }
	}
	action_b = {
		name = "ACTIONNAME50017B" #The French will pay as the others
		command = { type = domestic which = MERCANTILISM value = 1 }
		command = { type = trade value = -300 }
		command = { type = relation which = FRA value = -100 }
		command = { type = relation which = HAB value = 50 }
		}
}

#(1538-1560) Mimar Sinan's Great Constructions
event = {
	id = 3374
	trigger = {
		owned = { province = 357 data = -1 } #Thrace
		control = { province = 357 data = -1 } #Thrace
		controlchange = { province = 357 years = 7 }#took 8 years to complete the Süleimaniye
	}
	random = no
	country = TUR
	name = "EVENTNAME3374" #Mimar Sinan's Great Constructions
	desc = "EVENTHIST3374"
	#-#Mimar Sinan planned and oversaw the construction of countless mosques, aqueducts, bathhouses, bridges, palaces, caravanserais and schools during his half-a-century long career. His masterpieces are the Selimiye and Suleymaniye Mosques in Adrianople and Constantinople respectively.

	date = { day = 1 month = january year = 1538 }
	offset = 720
	deathdate = { day = 1 month = january year = 1560 }

	action_a = {
		name = "ACTIONNAME3374A" #Build great works
		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 = {
		name = "ACTIONNAME3374B" #Build modest works
		command = { type = treasury value = -200 }
		command = { type = infra value = 800 }
		command = { type = stability value = 1 }
	}
	action_c = {
		name = "ACTIONNAME3374C" #Invest in fortifications instead
		command = { type = treasury value = -300 }
		command = { type = fortress which = -2 value = 1 }
		command = { type = fortress which = -1 value = 1 }
		command = { type = fortress which = -1 value = 1 }
		command = { type = fortress which = -1 value = 1 }
		command = { type = land value = 500 }
	}
	action_d = {
		name = "ACTIONNAME3374D" #We have no money for such things!
		command = { type = vp value = -30 }
		command = { type = infra value = -200 }
		command = { type = land value = -200 }
		command = { type = stability value = -2 }
	}
}

#(1539) Expedition of Sulaiman Pasha
event = {
	id = 301101 #triggered by ADE_101003 A
	random = no
	country = TUR
	name = "EVENTNAME301101" #Expedition of Sulaiman Pasha
	desc = "EVENTHIST301101"
	#-#Red Sea Admiral Sulaiman Pasha delivered the wealthy city of Aden to the Empire.

	action_a = {
		name = "ACTIONNAME301101A" #A Fine Prize
		command = { type = vassal which = ADE }
		command = { type = addcore which = 500 } #Aden
	}
}

#(1540-1550) The Legal Reforms of Suleyman the Magnificent
event = {
	id = 3375
	random = no
	country = TUR
	name = "EVENTNAME3375" #The Great Legal Reform
	desc = "EVENTHIST3375"
	#-#Sultan Süleyman I became known as Kanuni (Lawgiver) to his own people thanks to his huge legal reforms and just rule. By codifying the secular laws, 'kanun', he lessened the importance of the rigid Muslim Shari'ah laws.

	date = { day = 1 month = january year = 1540 }
	offset = 3600
	deathdate = { day = 1 month = january year = 1550 }

	action_a = {
		name = "ACTIONNAME3375A" #Codify the Ottoman Laws
		command = { type = domestic which = CENTRALIZATION value = 1 }
		command = { type = domestic which = innovative value = 1 }
		command = { type = stability value = 2 }
		command = { type = infra value = 500 }
		command = { type = gainbuilding which = -1 value = courthouse }
		command = { type = gainbuilding which = -1 value = courthouse }
		command = { type = gainbuilding which = -1 value = courthouse }
		command = { type = gainbuilding which = -1 value = courthouse }
		command = { type = gainbuilding which = -1 value = courthouse }
	}
}

#(1540-1770) Ottoman claim to Muscat 
#by ConjurerDragon
event = {
	id = 301139
	trigger = {
		owned = { province = 500 data = -1 } #Aden base for Piri Reis to attack Muscat
		owned = { province = 747 data = -1 } #Nile
		stability = 0 # not tot much internal unrest
		NOT = { 
			exists = MAM  #Mamluks are gone
			war = { country = TUR country = HAB }
			war = { country = TUR country = SPA }
		}  #no major distractions in the north 
		OR = {
			leader = 0139330 # Piri Reis 
			control = { province = 504 data = -1 } # Muscat
		}
	}
	random = no
	country = TUR
	name = "EVENTNAME301139" #Ottoman claim to Muscat
	desc = "EVENTHIST301139"
	#-#In 1552, after the capture of Aden, Muscat was captured by forces under the leadership of Piri Reis.

	date = { year = 1540 }
	offset = 100
	deathdate = { year = 1770 }

	action_a = {
		name = "OK" 
		command = { type = addcore_claim which = 504 } #Muscat
	}
}

#(1540-1820) Wartime devastation of Banat (after conquest of Hungary)
event = {
	id = 301089
	trigger = {
		owned = { province = 354 data = -1 } #Banat
		OR = { #Do the Habsburgs own or control any province neighbouring Banat or Banat itself?
			control = { province = 354 data = HAB } #Banat
			control = { province = 322 data = HAB } #Wallachia
			control = { province = 323 data = HAB } #Transylvania
			control = { province = 324 data = HAB } #Maros
			control = { province = 353 data = HAB } #Pest
			control = { province = 355 data = HAB } #Serbia
			control = { province = 366 data = HAB } #Croatia
			owned = { province = 322 data = HAB } #Wallachia
			owned = { province = 323 data = HAB } #Transylvania
			owned = { province = 324 data = HAB } #Maros
			owned = { province = 353 data = HAB } #Pest
			owned = { province = 355 data = HAB } #Serbia
			owned = { province = 366 data = HAB } #Croatia
		}
		atwar = yes
	}
	random = no
	country = HAB
	name = "EVENTNAME179147" #Wartime devastation of Banat
	desc = "EVENTHIST179147"
	#-#The struggle on the military border between the Habsburg and the Ottoman Empire continued for years and years not only of large-scale warfare, sieges and occupation but also of raids and other incursions. The people living in the border regions of the empire suffered.

	date = { day = 21 month = july year = 1540 }
	offset = 30
	deathdate = { year = 1820 }

	action_a = {
		name = "ALAS"
		command = { type = population which = 354 value = -1000 } #Banat
	}
}

#(1540-1551) Erdil Submits
event = {
	id = 301063 #triggered by TRA_282001 B
	random = no
	country = TUR
	name = "EVENTNAME301063" #Erdil Submits
	desc = "EVENTHIST301063"
	#-#The scheming Frįter György of Erdil recognises the Sultan as his suzerain. In time we'll occupy all of Macristan but for now we'll be content with having the future King of Hungary as our vassal.

	action_a = {
		name = "EXCELLENT"
		command = { type = casusbelli which = HAB value = 48 }
		command = { type = relation which = HAB value = -100 }
		command = { type = relation which = TRA value = 100 }
		command = { type = vassal which = TRA }
		command = { type = vp value = 10 }
	}
}
#-----------------------------------------------------------------------------------------------
#"Janissary decadence" Sequence

#(1540) Janissary decadence I
#by Fodoron
event = {
	id = 301104
	random = no
	country = TUR
	name = "EVENTNAME301104" #Muslims admitted to the Janissary
	desc = "EVENTHIST301104"
	#-#The janissaries (from Yani Ceri or new army) were the elite of the Ottoman army. They were recruited as children from the Christians, from raid prisoners and through the devshirmeh, a children tax levy imposed on the Christian subjects. Their training was very hard and their quality outstanding. After the first revolt of the janissaries in 1449 they started to acquire power and prestige and some Muslims found the way for their sons to be admitted. After the great wars of Selim and Suleyman, Muslims started to be admitted openly to increase the size of the Janissary beyond what the devshirmeh could provide. This apparently innocuous measure changed the peculiar status of the Janissary breaking the balance of power in their favor. The slow decadence of the Janissary was only one of the factors in the Ottoman decline, but a fine ruler could steer the Empire even if he takes the historical decisions.

	date = { day = 1 month = february year = 1540 }

	action_a = {
		name = "ACTIONNAME301104A" #More janissaries are surely better for the country
		command = { type = land value = -1000 }
		command = { type = naval value = -500 }
		command = { type = domestic which = OFFENSIVE value = -1 }
		command = { type = domestic which = INNOVATIVE value = -1 }
		command = { type = technology which = orthodox }
		command = { type = inf which = -1 value = 5000 }
		command = { type = sleepevent which = 301116 } #TUR: The destruction of the Janissary
	}
	action_b = {
		name = "ACTIONNAME301104B" #Better keep the elite corps small and under control
		command = { type = domestic which = OFFENSIVE value = -2 } #small janissary
		command = { type = domestic which = ARISTOCRACY value = 1 }
		command = { type = trigger which = 301115 } #TUR: Muslim uproar for the closure of the Janissary
	}
}
#(1540) Against the tide
#by Fodoron
event = {
	id = 301115 #triggered by TUR_301104 B
	random = no
	country = TUR
	name = "EVENTNAME301115" #Muslim uproar for the closure of the Janissary
	desc = "EVENTHIST301115"
	#-#The decision to close the Janissary to Muslims has proven to be wildly impopular. Both religious class and the society at large are contesting it. The religious tolerance and modern views of the ruling class are not understood by the uneducated masses. If we persist in our reformation ideas we will face stern resistance.

	action_a = {
		name = "ACTIONNAME301115A" #We have reconsidered our previous decision
		command = { type = land value = -1000 }
		command = { type = naval value = -500 }
		command = { type = domestic which = QUALITY value = -1 }
		command = { type = domestic which = INNOVATIVE value = -1 }
		command = { type = technology which = orthodox }
		command = { type = inf which = -1 value = 5000 }
		command = { type = sleepevent which = 301116 } #TUR: The destruction of the Janissary
	}
	action_b = {
		name = "ACTIONNAME301115B" #The sultan decisions shall not be resisted
		command = { type = revoltrisk which = 36 value = 4 }
		command = { type = stability value = -4 }
		command = { type = desertion which = -1 value = 5000 }
		command = { type = desertion which = -1 value = 5000 }
		command = { type = desertion which = -1 value = 5000 }
		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 = sleepevent which = 301106 } #TUR: Janissaries allowed to marry
		command = { type = sleepevent which = 301111 } #TUR: Janissaries engage in trade
	}
}
#(1550-1590) Timar crisis
#by Fodoron
event = {
	id = 301105
	trigger = {
		AND = {
			owned = { province = 354 data = -1 } #Banat
			owned = { province = 324 data = -1 } #Maros
		}
		NOT = {
			owned = { province = 326 data = -1 } #Presburg
			owned = { province = 529 data = -1 } #Tabaristan
		}
	}
	random = no
	country = TUR
	name = "EVENTNAME301105" #Timar crisis
	desc = "EVENTHIST301105"
	#-#The lands gained through conquest belonged to the sultan, and they were assigned to soldiers according to the timar system. The timariots could enjoy the land and its peasants as serfs for life, but both lands and serfs reverted to the sultan at their death. The timariots were responsible for production and tax collection, and had to provide also soldiers for the sultan's army. This system proved to be a great source of income and an incentive for new conquests. But by 1550 the timar system entered a crisis. Lack of new conquests from the Christians and a population boom from 12 to 22 million, strained the resources increasing unemployment and dropping wages, while new taxes were imposed to support the huge military expenses. Timars became less productive, abandoned by the peasants, or converted into hereditary chiftliks (large private estates made out of Timar land). The loss of power by the impoverished Turkish nobility and their sipahi cavalry left the janissaries as the main force.

	date = { day = 1 month = march year = 1550 }
	offset = 300
	deathdate = { day = 1 month = january year = 1590 }

	action_a = {
		name = "ACTIONNAME301105A" #We need constant conquests!
		command = { type = land value = -1000 }
		command = { type = naval value = -500 }
		command = { type = domestic which = QUALITY value = -1 }
		command = { type = domestic which = INNOVATIVE value = -1 }
	}
}
#(1566) Janissary decadence II
#by Fodoron
event = {
	id = 301106
	random = no
	country = TUR
	name = "EVENTNAME301106" #Janissaries allowed to marry
	desc = "EVENTHIST301106"
	#-#The admittance of Muslims into the Janissary brought an unexpected problem as part of them were married. The restrictions to marry became more lax and finally the janissaries were able to extract from Selim II a general permission to all janissaries to marry. The janissaries, now with families to take care of, lost a great deal of warrior ardour. Their cost also raised greatly, as their adequate salary became insufficient to support a family. More problems followed as the janissaries insisted in their sons being admitted, and soon obtained it. The transformation from a military elite into a powerful and dangerous conservative guild was taking place and was accompanied by an increasing difficulty in obtaining victories at war.

	date = { day = 1 month = august year = 1566 }
	offset = 90
	deathdate = { day = 29 month = december year = 1566 }

	action_a = {
		name = "ACTIONNAME301106A" #No longer an elite corps
		command = { type = land value = -2500 }
		command = { type = naval value = -1000 }
		command = { type = domestic which = OFFENSIVE value = -1 }
	}
}
#(1584-1650) Economical crisis
#by Fodoron
event = {
	id = 301107
	trigger = {
		OR = {
			AND = {
				owned = { province = 473 data = -1 } #Armenia
				owned = { province = 474 data = -1 } #Sivas
				owned = { province = 485 data = -1 } #Aleppo
				owned = { province = 486 data = -1 } #Nuyssaybin
				owned = { province = 490 data = -1 } #Syria
				owned = { province = 491 data = -1 } #Lebanon
				owned = { province = 495 data = -1 } #Jordan
			}
			AND = {
				countrysize = 25
				event = 301105 #TUR: Timar crisis
			}
		}
	}
	random = no
	country = TUR
	name = "EVENTNAME301107" #Price revolution crisis
	desc = "EVENTHIST301107"
	#-#In 1584, unable to meet the costs of the Persian wars and with a reduced tax base due to the timariot crisis, the Divan or High Council ordered a debasement of the coin. It was a huge mistake. The ratio of the akche to the ducat went soon from 60 to 200. Together with the overabundance of precious metals, the prices increased sharply, and the low wages ruined the people. Nobody understood the problem and the coinage debasements continued. In 70 years inflation rose 500 percent. Tax pressure increased to compensate for the loss of income. The ruined peasants abandoned the fields forming vagrant bands (levendat). Population decreased and instability rose, triggering multiple revolts. The damage was very profound since the crisis lasted almost a century.

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

	action_a = {
		name = "ACTIONNAME301107A" #Rats!
		command = { type = treasury value = -500 }
		command = { type = loansize which = 200 }
		command = { type = inflation value = 10 }
		command = { type = stability value = -3 }
		command = { type = losemanufactory which = -1 }
		command = { type = losemanufactory which = -1 }
		command = { type = domestic which = CENTRALIZATION value = -2 }
		command = { type = revoltrisk which = 120 value = 3 }
		command = { type = infra value = -5000 }
		command = { type = population which = 477 value = -5000 } #Anatolia
		command = { type = population which = 476 value = -2000 } #Angora
		command = { type = population which = 483 value = -2000 } #Adana
		command = { type = population which = 1610 value = -2000 } #Antalya
		command = { type = population which = 478 value = -2000 } #Smyrna
		command = { type = population which = 482 value = -2000 } #Konya
		command = { type = population which = 356 value = -2000 } #Bulgaria
		command = { type = population which = 359 value = -2000 } #Hellas
		command = { type = population which = 358 value = -2000 } #Macedonia
		command = { type = population which = 360 value = -2000 } #Morea
		command = { type = population which = 357 value = -5000 } #Thrace
		command = { type = population which = 484 value = -1000 } #Cyprus
	}
}
#(1589) Janissary decadence III
#by Fodoron
event = {
	id = 301108
	trigger = {
		domestic = { type = innovative value = 1 }
		NOT = { domestic = { type = aristocracy value = 9 } }
		event = 301107 #TUR: Price revolution crisis
	}
	random = no
	country = TUR
	name = "EVENTNAME301108" #The Janissary rebellion of 1589
	desc = "EVENTHIST301108"
	#-#The military was also affected by the economical crisis, and after the war with Persia the Janissary started to seize lands illegally. In 1589 the janissaries rebelled on claims that they were being robbed from their pay, because salary was given in debased coinage. Three years later the sipahi also mutinied because they were not given their full pay. In 1596, 30,000 sipahi refused to fight at Mezo-Keresztes in Hungary. Yet the janissaries forcefully resisted any attempt of reformation.

	date = { day = 1 month = april year = 1589 }
	offset = 90
	deathdate = { day = 29 month = december year = 1589 }

	action_a = {
		name = "ACTIONNAME301108A" #The army refuses to fight unless paid in full in advance
		command = { type = land value = -1500 }
		command = { type = naval value = -1000 }
		command = { type = domestic which = QUALITY value = -1 }
		command = { type = domestic which = INNOVATIVE value = -1 }
		command = { type = revolt which = -2 }
	}
}
#(1595-1655) Agricultural crisis
#by Fodoron
event = {
	id = 301109
	trigger = {
		event = 301107 #TUR: Price revolution crisis
	}
	random = no
	country = TUR
	name = "EVENTNAME301109" #Agricultural crisis and famine
	desc = "EVENTHIST301109"
	#-#The price revolution crisis soon led to deteriorating living conditions and peasant oppression. As the Ottoman taxation system was based on agriculture the preassure on country laborers became unbearable and was increased by widespread corruption. The conditions for Christian peasants were worse, and the Balkans impoverished. Marginal farmlands were abandoned to stocks, and a general decline of agriculture took place, especially commercial agriculture, causing widespread famine and population decline. In Anatolia and Smyrna wandering bands of landless peasants with military experience (levendat) became the ferment for the Celali revolts. The Ottoman Government went from having the highest income in Europe to being permanently strapped for cash.

	date = { day = 1 month = february year = 1595 }
	offset = 720
	deathdate = { day = 1 month = january year = 1655 }

	action_a = {
		name = "ACTIONNAME301109A" #Rats!
		command = { type = provincetax which = 477 value = -2 } #Anatolia
		command = { type = provincetax which = 478 value = -2 } #Smyrna
		command = { type = provincetax which = 356 value = -2 } #Bulgaria
		command = { type = provincetax which = 359 value = -2 } #Hellas
		command = { type = provincetax which = 358 value = -2 } #Macedonia
		command = { type = provincetax which = 360 value = -1 } #Morea
		command = { type = provincetax which = 484 value = -2 } #Cyprus
		command = { type = provincetax which = 479 value = -1 } #Ionia
		command = { type = provincetax which = 364 value = -2 } #Bosnia
		command = { type = provincetax which = 366 value = -2 } #Croatia
		command = { type = provincetax which = 363 value = -1 } #Kosovo
		command = { type = provincetax which = 321 value = -2 } #Rumelia
		command = { type = provincetax which = 355 value = -1 } #Serbia
		command = { type = provincetax which = -1 value = -2 }
		command = { type = provincetax which = -1 value = -1 }
		command = { type = provincetax which = -1 value = -2 }
		command = { type = provincetax which = -1 value = -1 }
	}
}
#(1622) Janissary decadence IV
#by Fodoron
event = {
	id = 301110
	random = no
	country = TUR
	name = "EVENTNAME301110" #The sultan dies at the hands of the Janissaries
	desc = "EVENTHIST301110"
	#-#Osman II started a campaign against his vassals of Moldavia and Wallachia, but was defeated by the Poles at Khotyn, Ukraine in 1621, when the janissaries broke and fled the battle. Realizing what was the problem he started to reform the Janissary. When he met strong opposition, he announced his pilgrimage to Mecca, with the secret intention of recruiting a new army in Egypt and Syria to break the Janissary. But he did not fool the janissaries and they revolted and strangled him. Osman was the first sultan to die at the hands of his janissaries, but would not be the last. In total four sultans were killed and four more lost their thrones due to the Janissary. The janissaries became more dangerous to their own country than to any other. Did Osman have a chance against the Janissary?

	date = { day = 18 month = may year = 1622 }

	action_a = {
		name = "ACTIONNAME301110A" #They are too powerful
		command = { type = land value = -1500 }
		command = { type = naval value = -1000 }
		command = { type = stability value = -2 }
		command = { type = domestic which = QUALITY value = -1 }
		command = { type = domestic which = INNOVATIVE value = -1 }
		command = { type = revolt which = -2 }
	}
	action_b = {
		name = "ACTIONNAME301110B" #Osman has escaped
		command = { type = domestic which = INNOVATIVE value = 1 }
		command = { type = losebuilding which = -1 value = barrack }
		command = { type = ADM which = -2 value = 120 }
		command = { type = MIL which = 1 value = 120 }
		command = { type = revoltrisk which = 120 value = 5 }
		command = { type = stability value = -4 }
		command = { type = treasury value = -400 }
		command = { type = manpower value = -50 }
		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 = desertion which = -1 value = 5000 }
		command = { type = desertion which = -1 value = 5000 }
		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 = -2 }
		command = { type = revolt which = -2 }
		command = { type = revolt which = -2 }
		command = { type = sleepevent which = 301111 } #TUR: Janissaries engage in trade
		command = { type = sleepevent which = 301112 } #TUR: Janissaries oppose reforms
		command = { type = sleepevent which = 301113 } #TUR: End of the devshirmeh
		command = { type = sleepevent which = 3383 } #TUR: Proposal for an Army Reform
		command = { type = sleepevent which = 3400 } #TUR: Proposal for an Army Reform
		command = { type = sleepmonarch which = 0139014 } #Mustafa I
		command = { type = sleepmonarch which = 0139015 } #Murad IV
		command = { type = wakeleader which = 0139341 } #Osman II (TUR)
		command = { type = wakemonarch which = 0139016 } #Murad IV
	}
}
#(1634) Janissary decadence V
#by Fodoron
event = {
	id = 301111
	random = no
	country = TUR
	name = "EVENTNAME301111" #Janissaries engage in trade
	desc = "EVENTHIST301111"
	#-#With families to support, in the midst of an economical crisis, and with problems to get their payment, the janissaries looked for additional sources of income, and they had the power to take them from others. In addition to land ownership, soon they also took to trade. The members of each orta (regiment) engaged in the same trade and soon started monopolistic practices. By 1634 the janissaries controlled many guilds in Istanbul, like the butchers, fruit and vegetables and coffee-roasting. Once they were able to secure the duty-free importing of goods, a big part of the international trade also fell in their hands. With economic power they attracted all classes and soon corruption took over the enlistment process.

	date = { day = 1 month = april year = 1634 }

	action_a = {
		name = "ACTIONNAME301111A" #An army of traders
		command = { type = land value = -1500 }
		command = { type = naval value = -1000 }
		command = { type = trade value = 500 }
		command = { type = domestic which = QUALITY value = -1 }
		command = { type = domestic which = INNOVATIVE value = -1 }
		command = { type = domestic which = MERCANTILISM value = 1 }
	}
}
#(1658) Janissary decadence VI
#by Fodoron
event = {
	id = 301112
	random = no
	country = TUR
	name = "EVENTNAME301112" #Janissaries oppose reforms
	desc = "EVENTHIST301112"
	#-#With the admittance of the sons of Janissaries, the former rigorous and harsh training that had guaranteed the quality of the corps had entered decadence, as the fathers did not want to impose on their sons the almost brutal training that the Janissary academy, the Acemi Oglan, required in the past. During the war against Venice, and while the janissaries deposed and killed sultan Ibrahim, attempts were made to improve the training and increase its duration, but the cadets at the Acemi Oglan rebelled twice, in 1657 and 1659, to oppose such changes. As a result, while the western armies were introducing the reforms pioneered by Maurice of Nassau, of the Netherlands and Gustav Adolf of Sweden, the Ottoman army remained in the past, ignoring the military revolutions introduced since the Italian wars.

	date = { day = 1 month = april year = 1658 }

	action_a = {
		name = "ACTIONNAME301112A" #We are falling back
		command = { type = land value = -1500 }
		command = { type = naval value = -1000 }
		command = { type = domestic which = INNOVATIVE value = -1 }
	}
}
#(1683) Janissary decadence VII
#by Fodoron
event = {
	id = 301113
	trigger = {
		domestic = { type = innovative value = 1 }
		NOT = { domestic = { type = aristocracy value = 9 } }
	}
	random = no
	country = TUR
	name = "EVENTNAME301113" #End of the devshirmeh
	desc = "EVENTHIST301113"
	#-#Despite their obvious decadence, the Janissary, allied to the Bektashi order of dervishes (Muslim monks) and the Ulema (learned), as defenders of the old tradition, conserved and increased their reputation, associated by people with the former glory of the past Muslim victories, and resisted any reformation attempt until their end in 1826. During the disastrous war against Austria and Poland of 1683-1698 the rules of admission were suspended, and the janissaries doubled their size. The devshirmeh or Christian boys levy was gradually abandoned. From then on, only sons of the janissaries, family members, or those who bought admission could enter this social elite. For all practical purposes the Janissary had become hereditary, and their numbers continued to increase.

	date = { day = 1 month = april year = 1683 }

	action_a = {
		name = "ACTIONNAME301113A" #The old ways are tried and true
		command = { type = land value = -3000 }
		command = { type = naval value = -1000 }
		command = { type = domestic which = OFFENSIVE value = -1 }
	}
}
#(1604-1608) Janissary decadence VIIb
#by Fodoron
event = {
	id = 301116
	trigger = { atwar = no }
	random = no
	country = TUR
	name = "EVENTNAME301116" #The destruction of the Janissary
	desc = "EVENTHIST301116"
	#-#The Janissary rebellion of 1589 made the sultans aware that the Janissary had become an obsolete corps. Not only they were not performing as well as they used to, but they had also become very dangerous to their own country, periodically rebelling to increase their privileges and opposing any reform. Sultan Ahmed now was thankful that his predecessors had chosen to keep the Janissary closed to all but the devshirme, as they had not been allowed to grow out of control. For ten years Mehmed III, his father, had planned their destruction, gathering enough loyal forces to confront them. However at the last moment he lacked the courage to carry on. Ahmed is aware that the Janissary has the support of the Ulema (learned), the Bektashi order of dervishe (monks), ample parts of the population that sees them as Islam fighters responsible for the glorious past against the Christians, and more importantly, a big part of the military that will fight at their side...

	date = { day = 10 month = march year = 1604 }
	offset = 30
	deathdate = { day = 10 month = march year = 1608 }

	action_a = {
		name = "ACTIONNAME301116A" #I would be risking my own life
		command = { type = stability value = 1 }
	}
	action_b = {
		name = "ACTIONNAME301116B" #It must be done at whatever cost
		command = { type = domestic which = INNOVATIVE value = 1 }
		command = { type = domestic which = QUALITY value = 1 }
		command = { type = land value = 3000 }
		command = { type = losebuilding which = -1 value = barrack }
		command = { type = ADM which = -3 value = 120 }
		command = { type = MIL which = 1 value = 120 }
		command = { type = revoltrisk which = 120 value = 5 }
		command = { type = stability value = -4 }
		command = { type = treasury value = -400 }
		command = { type = manpower value = -50 }
		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 = 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 = -2 }
		command = { type = revolt which = -2 }
		command = { type = sleepevent which = 301110 } #TUR: The sultan dies at the hands of the Janissaries
		command = { type = sleepevent which = 301112 } #TUR: Janissaries oppose reforms
		command = { type = sleepevent which = 301113 } #TUR: End of the devshirmeh
		command = { type = sleepevent which = 3383 } #TUR: Proposal for an Army Reform
		command = { type = sleepevent which = 3400 } #TUR: Proposal for an Army Reform
	}
}
#End of "Janissary decadence" Sequence
#-----------------------------------------------------------------------------------------------

#(1540) The Death of Jįnos Zįpolya
event = {
	id = 19019
	trigger = {
		exists = HAB
		exists = HUN
		NOT = { exists = TRA }
		OR = {
			event = 301067 #TUR: Jįnos II submits to Suleyman (ahistorical, no Lajos II Jagiellon)
			event = 3186 #HAB: The Turk is expanding in Hungary (Lajos' death at Mohacs)
			event = 179143 #HAB: The Turk is expanding in Hungary (Lajos' ahistorical death)
		}
		vassal = { country = TUR country = HUN } #HUN should have become both TUR vassal and ally
		OR = {
			AND = {
				owned = { province = 323 data = HUN } #Transylvania
				control = { province = 323 data = HUN }
			}
			AND = {
				owned = { province = 323 data = -1 }
				control = { province = 323 data = -1 }
			}
		}
	}
	random = no
	country = TUR
	name = "EVENTNAME19019" #The Death of Jįnos Zįpolya
	desc = "EVENTHIST19019"
	#-#Zįpolya's reign was contested from the very beginning. In 1538, Zįpolya had secretly promised Ferdinand of Austria the Hungarian crown in order to buy peace. In 1540, while putting down a revolt in Transylvania, Jįnos died from illness, just three weeks after his Polish princess-bride had given him a son, Jįnos Sigusmund. With Zapolya's death, Ferdinand again invaded Hungary to try to claim his inheritance. Finally the Ottoman Sultan, having had enough with the chaos in his vassal, Hungary, split the country into three parts. He kept Southern and Central Hungary for himself, giving Eastern Hungary to Jįnos Sigusmund, while Ferdinand held the Western portion. Hungary would remain divided between the three countries for the next 170 years.

	date = { day = 21 month = july year = 1540 }

	action_a = {
		name = "ACTIONNAME19019A" #Split the Kingdom
		command = { type = cedeprovince which = HUN value = 317 } #Ruthenia
		command = { type = cedeprovince which = HUN value = 323 } #Transylvania
		command = { type = cedeprovince which = HUN value = 324 } #Maros
		command = { type = trigger which = 19020 } #HUN: The Death of Jįnos Zįpolya
		command = { type = sleepevent which = 179134 } #HAB: The Habsburg Inheritance of Hungary
	}
	action_b = {
		name = "ACTIONNAME19019B" #Support Jįnos Sigusmund
		command = { type = alliance which = HUN }
		command = { }
		command = { type = sleepevent which = 179134 } #HAB: The Habsburg Inheritance of Hungary
	}
	action_c = {
		name = "ACTIONNAME19019C" #Let Ferdinand have it!
		command = { type = trigger which = 19018 } #HUN: The Habsburg rule in Hungary
	}
}
#(1540) The Death of Jįnos Zįpolya
event = {
	id = 19021
	trigger = {
		exists = HAB
		vassal = { country = TUR country = HUN }
		OR = {
			event = 301067 #TUR: Jįnos II submits to Suleyman (ahistorical, no Lajos II Jagiellon)
			event = 3186 #HAB: The Turk is expanding in Hungary (Lajos' death at Mohacs)
			event = 179143 #HAB: The Turk is expanding in Hungary (Lajos' ahistorical death)
		}
		event = 3186 #HAB: The Turk is expanding in Hungary
		NOT = { event = 19019 } #TUR: The Death of Jįnos Zįpolya
	}
	random = no
	country = TUR
	name = "EVENTNAME19019" #The Death of Jįnos Zįpolya
	desc = "EVENTHIST19021"
	#-#Zįpolya's reign was contested from the very beginning. In 1538, Zįpolya had secretly promised Ferdinand of Austria the Hungarian crown in order to buy peace. In 1540, while putting down a revolt in Transylvania, Jįnos died from illness. With Zapolya's death, Ferdinand again invaded Hungary to try to claim his inheritance. Finally the Ottoman Sultan, having had enough with the chaos in his vassal, Hungary, split the country in two. He annexed Hungary, while Ferdinand held the Western portion.

	date = { day = 22 month = july year = 1540 }

	action_a = {
		name = "ACTIONNAME19019A" #Split the Kingdom
		command = { type = annex which = HUN }
		command = { type = sleepevent which = 179135 } #HAB: The Habsburg Inheritance of Hungary
		command = { type = trigger which = 301068 } #TUR: The partition of Hungary
	}
	action_b = {
		name = "ACTIONNAME19019C" #Let Ferdinand have it!
		command = { type = trigger which = 19018 } #HUN: The Habsburg rule in Hungary
                command = { type = relation which = HAB value = 100 }
                command = { type = badboy value = -1 } 
	}
}
#(1540) The partition of Hungary
event = {
	id = 301068 #triggered by TUR_19021 A
	trigger = {
		owned = { province = 316 data = -1 } #Carpathia
	}
	random = no
	country = TUR
	name = "EVENTNAME301068" #The partition of Hungary
	desc = "EVENTHIST301068"
	#-#Hungary would remain divided between the two countries for the next 170 years.

	action_a = {
		name = "ACTIONNAME301068A" #The western part to Austria
		command = { type = cedeprovince which = HAB value = 316 } #Carpathia
	}
}

#(1546-1556) The Sultan of Poets - Flavor
event = {
	id = 301032
	random = no
	country = TUR
	name = "EVENTNAME301032" #The Sultan of Poets
	desc = "EVENTHIST301032"
	#-#Mehmed Baki (1526-1600) was the greatest classical Turkish poet. Son of a poor clergyman, he paid his way through university by selling his poetry, and soon gained the attention of the Court and eventually the Sultan. His death was greeted with paroxysms of grief in Constantinople and he was given a state burial.\n \n There, at the banquet of the sky, had Venus struck her lyre, \n In mirth and happiness, delighted, joyed and smiling gay. \n Taking the keynote for her tune beneath the vaulted sphere, \n The tambourinist Sun her visage bright had hid away.

	date = { day = 1 month = january year = 1546 }
	offset = 3600
	deathdate = { day = 1 month = january year = 1556 }

	action_a = {
		name = "ACTIONNAME301032A" #Oh, the delight!
		command = { type = infra value = 100 }
	}
}

#(1546-1600) The Ottoman incorporation of Al-Djazaīr, by chegitz guevara
#Modified by Fodoron to be triggered by ALD at an earlier date
event = {
	id = 50019 #triggered by ALD_105002 A
	random = no
	country = TUR
	name = "EVENTNAME50019" #Al-Djazaīr becomes part of the Ottoman Empire
	desc = "EVENTHIST50019"
	#-#At the death of Khayr ad-Din Barbarossa in Istanbul, the sultan named his son Hassan Pasha the new Pasha of Al-Djazaīr. In 1587 the institution of a regular Ottoman administration began. Governors with the title of pasha ruled for three-year terms. Turkish was the official language, and Arabs and Berbers were excluded from government posts. For over a century, the rulers of Al-Djazaīr were chosen by the Porte, incorporating it to the domains of the Ottoman Empire.

	action_a = {
		name = "ACTIONNAME50019A" #Incorporate them!
		command = { type = inherit which = ALD }
		command = { type = addcore which = 734 } #Orania
		command = { type = addcore which = 737 } #Al Djazair
		command = { type = addcore which = 738 } #Kabylia
		command = { type = stability value = 1 }
	}
}

#(1547-1552) A new alliance with France
#by Bordic
event = {
	id = 301053 #triggered by FRA_170156 A
	trigger = { event = 301019 } #TUR: The alliance with the Infidels
	random = no
	country = TUR
	name = "EVENTNAME301053" #A new alliance with France
	desc = "EVENTHIST170156"
	#-#When Henri II succeeded his father Franēois Ier to the throne of France he soon reopened the hostilities with Spain and the Empire. He proceeded to renew the old alliance France had with 'the Turk', Sultan Süleyman I, whose fleet was so important to face the Spanish-Genoese alliance, and gain control of the accesses to the Italian peninsula in case of invasion from the sea. With the imperial Lutheran Princes he then stipulated the treaty of Chambord, under whose terms in exchange of financial and military help against the Habsburgs he was given a free hand in occupying the three neighbouring bishoprics of Metz, Toul and Verdun. In 1552-1557 King Henri II would also arrange further military expeditions to Italy, mainly to help the Republic of Siena lift the siege laid by the imperial troops in order to punish Siena's pro-French attitude, and to support Pope Paulus IV, with strong anti-Spanish attitude, in a league aiming at liberating Italy from the Spanish yoke in a last resolute attempt. In case of success the Pope would acknowledge French possession of Milan and Naples.

	action_a = {
		name = "ACTIONNAME301053A" #Grant them the support of our fleet
		command = { type = casusbelli which = SPA value = 36 }
		command = { type = casusbelli which = HAB value = 36 }
		command = { type = casusbelli which = GEN value = 36 }
		command = { type = casusbelli which = NAP value = 36 }
		command = { type = relation which = SPA value = -100 }
		command = { type = relation which = HAB value = -50 }
		command = { type = relation which = GEN value = -50 }
		command = { type = relation which = NAP value = -50 }
	}
	action_b = {
		name = "ACTIONNAME301053B" #Offer a few galleys and stay neutral
		command = { type = treasury value = 50 }
		command = { type = relation which = FRA value = -100 }
	}
}

#(1550-1560) The Expansion of the Royal Bureaucracy (Suleyman the Great)
event = {
	id = 3366
	random = no
	country = TUR
	name = "EVENTNAME3366" #The Expansion of the Royal Bureaucracy
	desc = "EVENTHIST3366"
	#-#Süleyman I was probably the greatest of the Ottoman Sultans. Called Kanuni (Lawgiver), he was an unsurpassed administrator who realized that the power of the provincial Beys had to be curbed by a strong central government. Thus he struggled to promote a powerful royal bureaucracy which was not popular in all camps...

	date = { day = 1 month = june year = 1550 }
	offset = 3600
	deathdate = { day = 1 month = june year = 1560 }

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

#(1553-1570) The Turko-Persian Conflicts: Prince Beyazid flees to Persia
event = {
	id = 3361
	trigger = {
		exists = PER
		event = 3360 #TUR: Turko-Persian Conflicts: Shi'a rebels
	}
	random = no
	country = TUR
	name = "EVENTNAME3361" #Turko-Persian Conflicts: Prince Bayezid flees to Persia
	desc = "EVENTHIST3361"
	#-#Süleyman the Great fought many wars with Persia to the overall advantage of the Ottomans. Yet another serious conflict sailed up on the horizon in 1559, when the Princes Selim and Bayezid fought each other in a civil war. Bayezid lost and fled to Persia in 1561, where he probably hoped to gain the support of the Shah, but Süleyman managed to get him returned for a large sum of gold. Bayezid and his sons were then executed in the most tragic event of Süleyman's life.

	date = { day = 1 month = june year = 1553 }
	offset = 700
	deathdate = { day = 1 month = june year = 1570 }

	action_a = {
		name = "ACTIONNAME3361A" #Pay the Shah to have Bayezid extradited
		command = { type = treasury value = -200 }
		command = { type = relation which = PER value = -50 }
		command = { type = stability value = 1 }
		command = { type = trigger which = 3561 } #PER: Turko-Persian Conflicts: Prince Beyazid flees to Persia
		command = { type = DIP which = 3 value = 24 }
	}
	action_b = {
		name = "ACTIONNAME3361B" #Leave the Prince to his fate
		command = { type = relation which = PER value = -100 }
		command = { type = DIP which = -2 value = 24 }
		command = { type = ADM which = -2 value = 24 }
	}
	action_c = {
		name = "ACTIONNAME3361C" #Arrange to have him murdered
		command = { type = stability value = -1 }
		command = { type = relation which = PER value = -200 }
		command = { type = casusbelli which = PER value = 36 }
	}
}

#(1555-1820) Tlemcen incorporated
#by Fodoron
event = {
	id = 301043 #triggered by TLE_332005 A
	random = no
	country = TUR
	name = "EVENTNAME301043" #Tlemcen incorporated
	desc = "EVENTHIST332005"
	#-#With the disappearance of the Zayyanid dynasty in Tlemcen, and with the country under Ottoman control, the sultan decided that the Pasha of Al-Djazaīr, then Salah Raļs, should rule also over Tlemcen. This effectively put an end to the existence of this country that became part of what would eventually be Algeria.

	action_a = {
		name = "ACTIONNAME301042A" #The Mediterranean is ours
		command = { type = inherit which = TLE } #Tlemcen
	}
}

#(1566) The Conquests of Selim II The Sot
event = {
	id = 301006
	random = no
	country = TUR
	name = "EVENTNAME301006" #The Conquests of Selim II The Sot
	desc = "EVENTHIST301006"
	#-#The Sot took little active interest in the governing of his Empire, prefering to wallow in his women. The Empire was left in the capable hands of Grand Vizier Sokollu Mehmet Pasha, who served his father Suleyman, and would serve his son, Murad III. In 1570 Sokollu began assembling a large force to invade Spain to liberate the Muslims from the Spanish Inquisition. Fortunately for Spain, the Sot chose that moment to get involved in his government's affairs, and ordered Sokollu to invade Cyprus in order to secure the supply of his favorite wines. Tunis fell to the Ottomans and Algerians in 1574.

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

	action_a = {
		name = "ACTIONNAME301006A" #Get me my Wine
		command = { type = addcore which = 484 } #Cyprus
		command = { }
		#command = { type = AI which = TUR_SelimII.txt }
	}
}

#(1570-1590) Tunisia - Episode Three
event = {
	id = 50020
	trigger = {
		exists = TUN
		exists = MOR
		exists = ALD
		OR = {
			owned = { province = 741 data = -1 } #Cyrenaica
			owned = { province = 742 data = -1 } #Quattara
		}
	}
	random = no
	country = TUR
	name = "EVENTNAME50020" #Tunisia - Episode Three
	desc = "EVENTHIST50020"
	#-#In 1574, the Ottoman Empire launched its third attack on Tunisia. In establishing control, the Ottomans hoped to destroy the Hafsid dynasty and put an end to the Spanish presence in Tunisia. Taking Tunisia would also allow them to establish better control over Algiers and North Africa.

	date = { day = 1 month = december year = 1570 }
	offset = 45
	deathdate = { day = 1 month = january year = 1590 }

	action_a = {
		name = "ACTIONNAME50020A" #We shall inform all of our intentions on Tunisia!
		command = { type = relation which = SPA value = -100 }
		command = { type = relation which = TUN value = -150 }
		command = { type = trigger which = 51017 } #MOR: Abd al-Malik and the Ottomans
		command = { type = sleepevent which = 50021 } #TUR: Tunisia - Episode Three
	}
	action_b = {
		name = "ACTIONNAME50020B" #We shall inform only Abd al-Malik
		command = { type = relation which = TUN value = -100 }
		command = { type = trigger which = 51017 } #MOR: Abd al-Malik and the Ottomans
		command = { type = sleepevent which = 50021 } #TUR: Tunisia - Episode Three
	}
	action_c = {
		name = "ACTIONNAME50020C" #We shall give no warning! Attack!
		command = { type = relation which = TUN value = -200 }
		command = { type = war which = TUN }
		command = { type = sleepevent which = 50021 } #TUR: Tunisia - Episode Three
	}
}
#(1570-1590) Abd al-Malik and the Ottomans
event = {
	id = 50022 #triggered by MOR_51017 A
	random = no
	country = TUR
	name = "EVENTNAME51017" #Abd al-Malik and the Ottomans
	desc = "EVENTHIST50022"
	#-#Abd al-Malik took part in the Ottoman conquest of Tunis, in 1574, in an attempt to gain Ottoman support to oust his nephew, Muhammad al-Mutawakkil, from the throne. After the conflict, he was placed on the throne and agreed to recognize the Ottoman Sultan as the caliph.

	action_a = {
		name = "ACTIONNAME51017A" #We shall crush Tunis!
		command = { type = relation which = TUN value = -200 }
		command = { type = war which = TUN }
		command = { type = addcore which = 739 } #Tunisia
	}
	action_b = {
		name = "ACTIONNAME50022B" #We shall hold our claim for later
		command = { type = relation which = TUN value = -100 }
		command = { type = stability value = 1 }
		command = { type = sleepevent which = 51018 } #MOR: Price to Pay
		command = { type = addcore which = 739 } #Tunisia
		command = { type = casusbelli which = TUN value = 24 }
	}
}
#(1570-1590) Abd al-Malik and the Ottomans
event = {
	id = 50023 #triggered by MOR_51017 B
	random = no
	country = TUR
	name = "EVENTNAME51017" #Abd al-Malik and the Ottomans
	desc = "EVENTHIST50023"
	#-#In 1574, Abd al-Malik should have taken part in the Ottoman conquest of Tunis. He would have gained support from a major Sunni power to oust his nephew, Muhammad al-Mutawakkil, from the throne. However, the fool chose to provide minimal assistance which ensured he would receive no Ottoman support.

	action_a = {
		name = "ACTIONNAME50023A" #We shall crush Tunis without them, but they are next!
		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 } #Tunisia
		command = { type = sleepevent which = 51018 } #MOR: Price to Pay
	}
	action_b = {
		name = "ACTIONNAME50022B" #We shall hold our claim for later
		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 } #MOR: Price to Pay
		command = { type = addcore which = 739 } #Tunisia
	}
}
#(1570-1590) Tunisia - Episode Three
event = {
	id = 50021
	trigger = {
		exists = TUN
		exists = ALD
		OR = {
			owned = { province = 741 data = -1 } #Cyrenaica
			owned = { province = 742 data = -1 } #Quattara
		}
		NOT = { exists = MOR }
	}
	random = no
	country = TUR
	name = "EVENTNAME50020" #Tunisia - Episode Three
	desc = "EVENTHIST50020"
	#-#In 1574, the Ottoman Empire launched its third attack on Tunisia. In establishing control, the Ottomans hoped to destroy the Hafsid dynasty and put an end to the Spanish presence in Tunisia. Taking Tunisia would also allow them to establish better control over Algiers and North Africa.

	date = { day = 1 month = december year = 1570 }
	offset = 45
	deathdate = { day = 1 month = january year = 1590 }

	action_a = {
		name = "ACTIONNAME50020A" #We shall inform all of our intentions on Tunisia!
		command = { type = relation which = SPA value = -100 }
		command = { type = relation which = TUN value = -150 }
		command = { type = war which = TUN }
		command = { type = addcore which = 739 } #Tunisia
		command = { type = sleepevent which = 50020 } #TUR: Tunisia - Episode Three
	}
	action_b = {
		name = "ACTIONNAME50020C" #We shall give no warning! Attack!
		command = { type = relation which = TUN value = -100 }
		command = { type = war which = TUN }
		command = { type = sleepevent which = 50020 } #TUR: Tunisia - Episode Three
	}
}

#(1572) Expedition to the Yemen
event = {
	id = 301102 #triggered by YEM_321001 A
	random = no
	country = TUR
	name = "EVENTNAME301102" #Expedition to the Yemen
	desc = "EVENTHIST301102"
	#-#From 1571, Sinan Pasha led an Ottoman army into Yemen, where the rebellious Zayidis were finally conquered after the defeat and death of Mutahhar in 1572.

	action_a = {
		name = "ACTIONNAME301102A" #We Have Subdued Them at Last
		command = { type = vassal which = YEM }
		command = { type = addcore which = 499 } #Yemen
	}
}

#(1574) The Conquests of Murad III
event = {
	id = 301007
	trigger = {
		event = 3360 #TUR: Turko-Persian Conflicts: Shi'a rebels
	}
	random = no
	country = TUR
	name = "EVENTNAME301007" #The Conquests of Murad III
	desc = "EVENTHIST301007"
	#-#By the time of Murad III, the Empire had stretched beyond its natural limits. Azerbaijan and Daghestan were added to the Empire, but only for twenty years, though the Ottomans would despute control with Persia until 1639.

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

	action_a = {
		name = "ACTIONNAME301007A" #Reaching the limits
		command = { type = addcore which = 486 } #Nuyssaybin
		command = { type = addcore which = 508 } #Basrah
		command = { type = addcore which = 471 } #Daghestan
		command = { type = addcore which = 487 } #Azerbaijan
		#command = { type = AI which = TUR_MuradIII.txt }
	}
}

#(1575-1580) The Turko-Persian Conflicts: Murad III's campaigns against Persia
event = {
	id = 3362
	trigger = {
		exists = PER
		event = 3360 #TUR: Turko-Persian Conflicts: Shi'a rebels
	}
	random = no
	country = TUR
	name = "EVENTNAME3362" #Turko-Persian Conflicts: Murad III's campaigns
	desc = "EVENTHIST3362"
	#-#Murad III, a Sultan ruled by women, fought the Persians in an exhausting war (1578-90) that severely strained the Empire and forced heavy taxes upon the citizens. Though the war was not for nothing--Persia had to cede Azerbaijan, Tiflis and Hamadan to the Ottomans--the resources might have been better spent elsewhere.

	date = { day = 1 month = june year = 1578 }
	offset = 360
	deathdate = { day = 1 month = june year = 1580 }

	action_a = {
		name = "ACTIONNAME3362A" #Fan the Flames of War
		command = { type = casusbelli which = PER value = 120 }
		command = { type = relation which = PER value = -200 }
		command = { type = land value = 200 }
		command = { type = trigger which = 3562 } #PER: Turko-Persian Conflicts: Murad III's campaigns against Persia
	}
	action_b = {
		name = "ACTIONNAME3362B" #Maintain the status quo
		command = { type = stability value = 1 }
	}
	action_c = {
		name = "ACTIONNAME3362C" #Seek reconciliation
		command = { type = DIP which = 3 value = 24 }
		command = { type = relation which = PER value = 50 }
	}
}

#(1577) The end of Adal
#by Fodoron
event = {
	id = 301052 #triggered by ADA_155007 * / ADA_155008
	random = no
	country = TUR
	name = "EVENTNAME301052" #The end of Adal
	desc = "EVENTHIST301052"
	#-#Between 1526 and 1576, the sultanate of Adal conducted a full fledged war of conquest against Ethiopia. With firearms bought from Ottoman merchants and using Ottoman tactics, Adal almost succeeded, but last minute help from Portugal allowed Ethiopia to ultimately defeat Adal. The Ottoman governor of Yemen lent help to Adal to try to overcome the Portuguese, under promise of vassalage. In the end Adal disintegrated consumed by the war effort, the defeat, and the invasion from nomads that seized the opportunity. The Ottomans then took control of several of the former ports of Adal in the Red Sea, without anybody opposing them.

	action_a = {
		name = "ACTIONNAME301052A" #Free ports in the Red Sea
		command = { type = trade value = 200 }
	}
}

#(1577-1581) Peace with Spain
#by Fodoron
event = {
	id = 301044 #triggered by SPA_285141 A
	random = no
	country = TUR
	name = "EVENTNAME301044" #Peace with Spain
	desc = "EVENTHIST301044"
	#-#The Mediterranean offensives of Suleiman and Selim II, achieved only partial success. Cyprus was conquered, and Tunis recovered, but the invasion of Malta failed, and the fleet was destroyed at Lepanto. But the main problem was that neither Spain nor the Ottoman Empire could afford to continue such expensive war at a time when both their economies were in trouble, and both had more pressing matters. For Spain it was the rebellion in the Low Countries, and for the Ottoman Empire the Persian wars and the rebellions in the Balkans. Under these circumstances, Felipe II and Murad III negotiated a series of truces between 1577 and 1581. In these truces Felipe II renounced to Spanish former conquests in North Africa, while the Ottoman sultan renounced to Oran, and to lend help to the Moriscos. The peace between Spain and the Ottoman Empire would be permanent, and would allow both empires to abandon the Mediterranean, that was left in the hands of the Barbary pirates, periodically checked by the European navies.

	action_a = {
		name = "ACTIONNAME301044A" #Sign the truces
		command = { type = stability value = 1 }
		command = { type = relation which = SPA value = 100 }
	}
	action_b = {
		name = "ACTIONNAME301044B" #Holy war
		command = { type = stability value = -1 }
		command = { type = relation which = SPA value = -50 }
		command = { type = treasury value = -50 }
	}
}

#(1579-1584) Astrologer or Astronomer? - Flavor
event = {
	id = 301033
	random = no
	country = TUR
	name = "EVENTNAME301033" #Astrologer or Astronomer
	desc = "EVENTHIST301033"
	#-#Takiyüddin Efendi (1521-1585), a student of the heavens, had prevailed upon the Sultan to build an observatory on the outskirts of Constantinople. However, the leading religious figures were alarmed that he was practising the forbidden art of astrology - and openly! - and pressured the Sultan to tear the building down.

	date = { day = 1 month = january year = 1579 }
	offset = 2000
	deathdate = { day = 1 month = january year = 1584 }

	action_a = {
		name = "ACTIONNAME301033A" #Tear the accursed building down
		command = { type = missionaries value = 1 }
		command = { type = infra value = -50 }
	}
	action_b = {
		name = "ACTIONNAME301033B" #The skies need to be studied
		command = { type = missionaries value = -1 }
		command = { type = infra value = 50 }
	}
}

#(1584-1600) Turkish reaction
event = {
	id = 301045 #triggered by RUS_271001 A
	random = no
	country = TUR
	name = "EVENTNAME301045" #Kakheti is a Russian vassal
	desc = "EVENTHIST301045"
	#-#On the 15th of October 1586, Alexander of Kakheti has sworn loyality to Feodor of Russia. Since then he has refused to send any aid to our forces at Tabriz. Seeing the cordiality between the Shah and the Tsar, we can foresee that for us this is not good at all. How shall we react?

	action_a = {
		name = "ACTIONNAME301045A" #They are foolish to anger us
		command = { type = stability value = 1 }
		command = { type = relation which = KAK value = -100 }
		command = { type = relation which = RUS value = -100 }
		command = { type = casusbelli which = KAK value = 60 }
		command = { type = casusbelli which = RUS value = 60 }
		command = { type = vp value = 10 }
	}
	action_b = {
		name = "ACTIONNAME301045B" #Let us wait for a better time to strike
		command = { type = vp value = -10 }
	}
	action_c = {
		name = "ACTIONNAME301045C" #We have no use of another enemy
		command = { type = removecore which = 472 } #vanilla Armenia, do they get it as a core anywhere? They should, I guess. #Iveria
		command = { type = relation which = RUS value = 100 }
		command = { type = vp value = -25 }
	}
}

#(1585-1586) Mischief in East Africa
#by sturmvogel
event = {
	id = 301073
	trigger = {
		OR = {
			owned = { province = 497 data = -1 } #Medina
			owned = { province = 498 data = -1 } #Mekkah
			owned = { province = 500 data = -1 } #Aden
		}
		OR = {
			owned = { province = 763 data = POR } #Mombasa
			vassal = { country = POR country = MOM } #Mombasa
			vassal = { country = POR country = MLI } #Malindi
			vassal = { country = POR country = KIL } #Kilwa
		}
	}
	random = no
	country = TUR
	name = "EVENTNAME301073" #Mischief in East Africa
	desc = "EVENTHIST301073"
	#-#A faction in the Ottoman court had long pushed for greater Ottoman involvement in the Indian Ocean. The Governors-General of the Yemen and Egypt were members of this faction and conspired to use their position to inflate the Portuguese threat to Ottoman territories in the Red Sea to persuade the Sultan follow their ideas. They were able to dispatch the corsair Mir Ali Beg to operate off the East African coast with two galleots that they'd persuaded the Sultan to build.

	date = { day = 18 month = august year = 1585 }
	offset = 10
	deathdate = { day = 1 month = may year = 1586 }

	action_a = {
		name = "ACTIONNAME301073A" #This should give them something to think about!
		command = { type = treasury value = 25 }
		command = { type = trigger which = 336006 } #MOM: Mirale Beque's first visit
	}
}

#(1588-1589) More Mischief in East Africa
event = {
	id = 301074
	trigger = {
		event = 301073 #TUR: Mischief in East Africa
		OR = {
			owned = { province = 497 data = -1 } #Medina
			owned = { province = 498 data = -1 } #Mekkah
			owned = { province = 500 data = -1 } #Aden
		}
		OR = {
			owned = { province = 763 data = POR } #Mombasa
			vassal = { country = POR country = MOM } #Mombasa
			vassal = { country = POR country = MLI } #Malindi
			vassal = { country = POR country = KIL } #Kilwa
		}
	}
	random = no
	country = TUR
	name = "EVENTNAME301074" #More Mischief in East Africa
	desc = "EVENTHIST301074"
	#-#The Governors-General of Egypt and Yemen painted a picture of a real threat by the Portuguese, even turning the captives and treasures captured by Mir Ali Beg's visit to East Africa into material captured from the Portuguese fleet that (unsuccessfully) attempted to ravage Muslim shipping along the Arabian coast in 1586. But things began to fall apart when the new Governor-General of Egypt wasn't as sympathetic to the idea as his predecessor. However, Mir Ali Beg was sent to operate off the East African coast again with 5 galleots before the whole scheme collapsed.

	date = { day = 1 month = december year = 1588 }
	offset = 45
	deathdate = { day = 1 month = may year = 1589 }

	action_a = {
		name = "ACTIONNAME301074A" #Let's try it again
		command = { }
		command = { type = trigger which = 336007 } #MOM: Mirale Beque's second visit
	}
}

#(1590) Claim on Tunisia
event = {
	id = 301082
	trigger = {
		NOT = {
			core = { province = 739 data = -1 } #Tunisia
		}
	}
	random = no
	country = TUR
	name = "EVENTNAME301082" #Claim on Tunisia
	desc = "EVENTHIST301082"
	#-#Tunisia is the key to establish control over North Africa.

	date = { day = 1 month = june year = 1590 }
	offset = 45
	deathdate = { day = 29 month = december year = 1590 }

	action_a = {
		name = "ACTIONNAME301082A" #Tunisia is ours!
		command = { type = addcore which = 739 } #Tunisia
	}
}

#(1598-1619) The Anti-Turkish Resistance
#by sturmvogel
event = {
	id = 301131
	trigger = {
		OR = {
			owned = { province = 500 data = -1 } #Aden
			owned = { province = 499 data = -1 } #Yemen
		}
	}
	random = no
	country = TUR
	name = "EVENTNAME321002" #The Anti-Turkish Resistance
	desc = "EVENTHIST321002"
	#-#After nearly three decades of Turkish rule, Mansur al-Qasim led a resistance movement to regain Yemeni independence. Though Mansur would not live to see it, the Ottomans would withdraw from the Yemen by 1635.;;;;;;;;;;

	date = { day = 1 month = january year = 1598 }
	offset = 60
	deathdate = { day = 29 month = december year = 1619 }

	action_a = {
		name = "DAMN"
		command = { type = revolt which = 500 } #Aden
		command = { type = revolt which = 499 } #Yemen
		command = { type = province_revoltrisk which = 500 value = 10 } #Aden
		command = { type = province_revoltrisk which = 499 value = 10 } #Yemen
	}
}

#(1599-1602) The Spahi Uprising under 'Abd al-Halim (3rd Celali Uprising)
event = {
	id = 3376
	random = no
	country = TUR
	name = "EVENTNAME3376" #The Spahi Uprisings
	desc = "EVENTHIST3376"
	#-#In 1598 a sekban leader, Karayazici Abdülhalim, united the dissatisfied groups in Anatolia, forcing the towns to pay tribute and dominating the Sivas and Dulkadir provinces in central Anatolia. When Ottoman forces were sent against them the Jelalis withdrew to Urfa in southeastern Anatolia, making it the centre of resistance. Karayazici rejected offers of governorships in Anatolia and died in 1602. His brother Deli Hasan then seized Kutahya, in western Anatolia, but later he and his followers were won over by grants of governorships. The unrest, however, continued under the leadership of Janbuladoglu in Aleppo and Yusuf Pasa and Kalenderoglu in western Anatolia. They were finally suppressed by the grand vizier Kuyucu Murad Pasa, who by 1610 had eliminated a large number of Jelalis.

	date = { day = 1 month = january year = 1599 }
	offset = 700
	deathdate = { day = 1 month = january year = 1602 }

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

#(1601) Vassalage of Wallachia
event = {
	id = 301078 #triggered by WAL_329031 A
	trigger = {
		NOT = { vassal = { country = WAL country = TUR } }
		NOT = { war = { country = TUR country = WAL } }
		neighbour = WAL
	}
	random = no
	country = TUR
	name = "EVENTNAME19002" #Vassalage of Wallachia
	desc = "EVENTHIST329031"
	#-#The period between Michael the Brave's death and Matei Basarab's ascension is a customary anarchical period, with again a number of colourless pretenders fighting for power (Simon and Gavril Movila, Radu Mihnea, Radu Serban, Alexandru Ilias, etc. etc.).\n \n The Ottoman Empire uses this period to reinstate its political and economical control over the principality while forcing the princes of Moldova and Walachia to demolish their fortfications. As if that was not enough, Transylvania invades in 1610-1611.

	action_a = {
		name = "GREAT"
		command = { type = vassal which = WAL }
	}
}
#(1601) Anarchy in Wallachia
event = {
	id = 301079 #triggered by WAL_329031 B
	trigger = {
		neighbour = WAL
	}
	random = no
	country = TUR
	name = "EVENTNAME329024" #Anarchy in Wallachia
	desc = "EVENTHIST301079"
	#-#The period between Michael the Brave's death and Matei Basarab's ascension is a customary anarchical period, with again a number of colourless pretenders fighting for power (Simon and Gavril Movila, Radu Mihnea, Radu Serban, Alexandru Ilias, etc. etc.).

	action_a = {
		name = "ACTIONNAME301079A" #We hate Wallachia!
		command = { type = casusbelli which = WAL value = 360 }
	}
}

#(1603) The Turko-Persian Conflicts: Persians take advantage of Ottoman instability
event = {
	id = 3363 #triggered by PER_3563 A
	random = no
	country = TUR
	name = "EVENTNAME3363" #Turko-Persian Conflicts: Persians take advantage of Ottoman instability
	desc = "EVENTHIST3363"
	#-#The Spahi revolts in Eastern Anatolia encouraged the Persian Shah to seek revenge for the humiliating losses incurred by Murad III. War broke out yet again in 1603.

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

#(1605) Sheikh-ul-Islam Office Powers Curtailed
event = {
	id = 50008
	random = no
	country = TUR
	name = "EVENTNAME50008" #Power of Sheikh-ul-Islam
	desc = "EVENTHIST50008"
	#-#Upon his ascension to the throne, young Osman II realized that the country badly needs reforms. His young age and inexperience, as well as inability to find a steady and trusty grand vezier prevented him from implementing his ideas, and eventually cost him life. His first act was curtailing the power of the Office of Sheykh-ul-Islam, which was followed by an attempt to reform the army.

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

	action_a = {
		name = "ACTIONNAME50008A" #Curtail the power
		command = { type = domestic which = CENTRALIZATION value = 1 }
		command = { type = domestic which = INNOVATIVE value = 1 }
		command = { type = stability value = -1 }
	}
	action_b = {
		name = "ACTIONNAME50008B" #Leave things like they are
		command = { type = stability value = 1 }
		command = { type = domestic which = INNOVATIVE value = -1 }
	}
}

#-----------------------------------------------------------------------------------------------
#Kösem Sultana Sequence

#(1611-1614) Kösem Sultana - domineering wife of Ahmed I
event = {
	id = 3377
	random = no
	country = TUR
	name = "EVENTNAME3377" #Kösem Sultana
	desc = "EVENTHIST3377"
	#-#Ahmed I married a fifteen year old beautiful Greek slave girl who would prove a very mixed blessing to the people of the Ottoman Empire. Kösem Sultana ruled her husband as she would rule no less than four of his successors--with an iron grip. Kösem was the real power behind the throne, and although she was a very able ruler, she was not a very popular one.

	date = { day = 1 month = january year = 1611 }
	offset = 1000
	deathdate = { day = 1 month = january year = 1614 }

	action_a = {
		name = "ACTIONNAME3377A" #Wed Kösem
		command = { type = DIP which = 1 value = 84 }
		command = { type = ADM which = 3 value = 84 }
		command = { type = stability value = -2 }
	}
	action_b = {
		name = "ACTIONNAME3377B" #Choose another wife
		command = { type = sleepevent which = 301037 } #TUR: Kösem Sultana under Murad IV
		command = { type = sleepevent which = 301038 } #TUR: Kösem Sultana under Ibrahim I
		command = { type = sleepevent which = 301039 } #TUR: Kösem Sultana under Mehmet IV
		command = { type = sleepevent which = 3384 } #TUR: The Murder of Kösem
	}
}
#(1623-1640) Kösem Sultana under Murad IV
event = {
	id = 301037
	trigger = {
		OR = {
			monarch = 0139015 #Murad IV, historical version
			monarch = 0139016 #Murad IV, late version
		}
	}
	random = no
	country = TUR
	name = "EVENTNAME301037" #Kösem Sultana under Murad IV
	desc = "EVENTHIST301037"
	#-#Murad was the son of Sultan Ahmed I. When his other son, the mad Mustafa, once again was dragged out of the Golden Cage and enthroned, he ordered the execution of Kösem's sons. The eunuch corps intervened and crowned Kösem's oldest son as Murad IV (1623-40). Thus Kösem attained her ambition of becoming valide sultana. Murad was for a long time under the control of his relatives and during his early years as sultan, his mother, Kösem Sultan, essentially ruled through him.

	date = { day = 10 month = september year = 1623 }
	offset = 1
	deathdate = { day = 8 month = february year = 1640 }

	action_a = {
		name = "ACTIONNAME301037A" #She knows best
		command = { type = DIP which = 1 value = 186 }
		command = { type = ADM which = 3 value = 186 }
	}
}
#(1640-1648) Kösem Sultana under Ibrahim I
event = {
	id = 301038
	trigger = {
		monarch = 0139017 #Ibrahim I
	}
	random = no
	country = TUR
	name = "EVENTNAME301038" #Kösem Sultana under Ibrahim I
	desc = "EVENTHIST301038"
	#-#On his deathbed, Murad IV told his mother how much he disdained his brother Ibrahim, and how it would be better for the dynasty to end rather than continue with insane royal seed. He ordered Ibrahim's death, but Kösem intervened, and Ibrahim was ordered out of the Cage. Ibrahim was a merciful sovereign and he declared firmans to hinder the famine and poverty. But, he was dominated by his mother and his reign can be considered as the reign of Kösem Sultana. In August, 1648 Sultan Ibrahim was strangled.

	date = { day = 8 month = february year = 1640 }
	offset = 1
	deathdate = { day = 8 month = august year = 1648 }

	action_a = {
		name = "ACTIONNAME301037A" #She knows best
		command = { type = DIP which = 1 value = 97 }
		command = { type = ADM which = 3 value = 97 }
	}
}
#(1648-1651) Kösem Sultana under Mehmet IV
event = {
	id = 301039
	trigger = {
		monarch = 0139018 #Mehmet IV
	}
	random = no
	country = TUR
	name = "EVENTNAME301039" #Kösem Sultana under Mehmet IV
	desc = "EVENTHIST301039"
	#-#Ibrahim's seven-year-old son, Mehmed, by Turhan Sultana, became the new sultan. Kösem had no intention of relinquishing the office of valide to Turhan, and she refused to move to the House of Tears. She schemed to have Mehmed poisoned, so that she could elevate to the throne a young orphan prince whom she could manipulate. A war of two sultanas began.

	date = { day = 8 month = august year = 1648 }
	offset = 1
	deathdate = { day = 2 month = september year = 1651 }

	action_a = {
		name = "OK"
		command = { type = DIP which = 1 value = 38 }
		command = { type = ADM which = 1 value = 38 }
	}
}
#(1651) The Murder of Kösem Sultana
event = {
	id = 3384
	random = no
	country = TUR
	name = "EVENTNAME3384" #The Murder of Kösem
	desc = "EVENTHIST3384"
	#-#Kösem had enjoyed the longest reign of any of the harem women, almost half a century. Under the reign of Mehmed IV, she was still meddling in high politics. She probably attempted to have her grandson Mehmed IV killed, but was herself strangled by men in the entourage of her daughter-in-law, Turhan Sultan. Although the old conniving witch was hardly missed by most, she still had loyal supporters among the Janissaries, who were outraged by her murder.

	date = { day = 3 month = september year = 1651 }

	action_a = {
		name = "ACTIONNAME3384A" #This will bring unrest
		command = { type = revoltrisk which = 12 value = 5 }
	}
}
#End of Kösem Sultana Sequence
#-----------------------------------------------------------------------------------------------

#(1615) The Decentralizing Effect of the Provincial System
event = {
	id = 3379
	random = no
	country = TUR
	name = "EVENTNAME3379" #The De-centralizing Effect of the Provincial System
	desc = "EVENTHIST3379"
	#-#The provincial governors, or 'Beys', were powerful men, usually ambitious, and not always loyal. Although the Ottoman Empire did not have a noble class or a feudal system like most European nations, the Beys were a close equivalent with many of the same intrinsic problems. Intrigues and internal feuds could escalate into little civil wars without the central government objecting overly much. Naturally, the Beys were reluctant to give up their powers and usually demanded even more concessions...even to the point of outright independence.

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

	action_a = {
		name = "ACTIONNAME3379A" #More power to the Beys
		command = { type = provincetax which = -1 value = -2 }
		command = { type = provincetax which = -1 value = -2 }
		command = { type = provincetax which = -1 value = -2 }
		command = { type = provincetax which = -1 value = -2 }
		command = { type = provincetax which = -1 value = -2 }
		command = { type = provincetax which = -1 value = -2 }
		command = { type = domestic which = CENTRALIZATION value = -2 }
		command = { type = domestic which = quality value = -2 }
		command = { type = domestic which = ARISTOCRACY value = 2 }
		command = { type = domestic which = SERFDOM value = 2 }
		command = { type = stability value = 2 }
		command = { type = technology which = muslim }
	}
	action_b = {
		name = "ACTIONNAME3379B" #Limit the concessions
		command = { type = provincetax which = -1 value = -1 }
		command = { type = provincetax which = -1 value = -1 }
		command = { type = provincetax which = -1 value = -1 }
		command = { type = provincetax which = -1 value = -1 }
		command = { type = provincetax which = -1 value = -1 }
		command = { type = provincetax which = -1 value = -1 }
		command = { type = domestic which = ARISTOCRACY value = 1 }
		command = { type = domestic which = CENTRALIZATION value = -1 }
		command = { type = domestic which = quality value = -1 }
		command = { type = revoltrisk which = 12 value = 6 }
		command = { type = stability value = -1 }
		command = { type = technology which = muslim }
	}
	action_c = {
		name = "ACTIONNAME3379C" #Rein them in
		command = { type = provincetax which = -1 value = 1 }
		command = { type = provincetax which = -1 value = 1 }
		command = { type = provincetax which = -1 value = 1 }
		command = { type = provincetax which = -1 value = 1 }
		command = { type = provincetax which = -1 value = 1 }
		command = { type = provincetax which = -1 value = 1 }
		command = { type = domestic which = ARISTOCRACY value = -2 }
		command = { type = domestic which = CENTRALIZATION value = 2 }
		command = { type = domestic which = SERFDOM value = -2 }
		command = { type = desertion which = -1 value = 5000 }
		command = { type = desertion which = -1 value = 5000 }
		command = { type = desertion which = -1 value = 5000 }
		command = { type = revoltrisk which = 48 value = 8 }
		command = { type = stability value = -6 }
		#command = { type = technology which = orthodox }
		command = { type = sleepevent which = 3378 } #TUR: The Shuf Mountain Rebellion
	}
}

#(1630-1640) Proposal for an Army Reform
event = {
	id = 3383
	random = no
	country = TUR
	name = "EVENTNAME3383" #Proposal for an Army Reform
	desc = "EVENTHIST3383"
	#-#At the end of the 16th century the recruitment policy for the Janissaries was relaxed to allow others than the specially raised and converted Christian children into their ranks. This event marked the beginning of the end for their effectiveness as a military force, transforming them instead into powerful and bothersome meddlers. Their dethronement and murder of Sultan Osman II in 1622 made clear that their power had to be broken. Young Osman tried and paid for it with his life...

	date = { day = 1 month = january year = 1630 }
	offset = 3600
	deathdate = { day = 1 month = january year = 1640 }

	action_a = {
		name = "ACTIONNAME3383A" #Let the Janissaries enjoy their privileges
		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 = {
		name = "ACTIONNAME3383B" #Reform the military
		command = { type = land value = 2000 }
		command = { type = naval value = 500 }
		command = { type = treasury value = -300 }
		command = { type = stability value = -1 }
		command = { type = revoltrisk which = 48 value = 4 }
	}
}

#(1635-1655) The geographer - Flavor
event = {
	id = 301035
	random = no
	country = TUR
	name = "EVENTNAME301035" #The geographer
	desc = "EVENTHIST301035"
	#-#Katip Chelebi (1609-1657) was the greatest Ottoman cartographer and armchair traveller. His works included the massive 'View of the World' - a distillation of the best in Western and Eastern cartographical and geographical knowlege. Ottoman eyes were for the first time well and truly opened up to the world beyond Europe and the Middle East.

	date = { day = 1 month = january year = 1635 }
	offset = 5000
	deathdate = { day = 1 month = january year = 1655 }

	action_a = {
		name = "ACTIONNAME301035A" #What a big world it is
		command = { type = relation which = -1 value = 10 }
		command = { type = diplomats value = 2 }
	}
}

#(1635) Yemeni Independence
event = {
	id = 301103 #triggered by YEM_321003
	random = no
	country = TUR
	name = "EVENTNAME301103" #Yemeni Independence
	desc = "EVENTHIST301103"
	#-#Recognizing the fruitlessness of their campaign in the Yemen, the Turks withdrew, leaving the Yemen to the rule of Qasimi line of Imams.

	action_a = {
		name = "ACTIONNAME301103A" #Let's Cut Our Losses
		command = { type = removecore which = 499 } #Yemen
		command = { type = removecore which = 500 } #Aden
		command = { type = cedeprovince which = YEM value = 500 } #Aden
		command = { type = trigger which = 321005 } #YEM: Yemeni Independence
	}
}

#(1638-1723) Protectorate in Al-Haasa
event = {
	id = 301099 #triggered by HAA_424000 A
	random = no
	country = TUR
	name = "EVENTNAME301099" #Protectorate in Al-Haasa
	desc = "EVENTHIST301099"
	#-#Fearing Christian incursions, the states of the Arabian peninsula turn to the Ottoman Turks for military aid.

	action_a = {
		name = "ACTIONNAME301099A" #Establish the Protectorate
		command = { type = vassal which = HAA }
		command = { type = relation which = HAA value = 100 }
	}
}

#(1639-1820) We have failed to retain our easternmost outposts
event = {
	id = 301128
	trigger = {
		NOT = {
			owned = { province = 471 data = -1 } #Daghestan
			owned = { province = 487 data = -1 } #Azerbaijan
		}
		core = { province = 471 data = -1 }
	}
	random = no
	country = TUR
	name = "EVENTNAME301128" #We have failed to retain our easternmost outposts
	desc = "EVENTHIST301007"
	#-#By the time of Murad III, the Empire had stretched beyond its natural limits. Azerbaijan and Daghestan were added to the Empire, but only for twenty years, though the Ottomans would despute control with Persia until 1639.

	date = { day = 17 month = may year = 1639 }
	offset = 30
	deathdate = { year = 1820 }

	action_a = {
		name = "OK"
		command = { type = removecore which = 471 } #Daghestan
		command = { type = removecore which = 487 } #Azerbaijan
		command = { type = relation which = PER value = 200 }
	}
}

#(1640-1643) The Reforms of Kemankes (Kara Mustafa Pasha)
event = {
	id = 3386
	random = no
	country = TUR
	name = "EVENTNAME3386" #The Reforms of Kemankes
	desc = "EVENTHIST3386"
	#-#During the reign of Ibrahim I, 'Kemankes' Kara Mustafa Pasha, was the Sadrazam, or prime minister. He tried to curtail overspending and revitalized the navy, but was finally executed by the Sultan in 1644. The Sultan had instead started to heed Jinji Hoja--a minor religious official with a reputation for occult powers who was brought into the palace to remedy the sultan's lack of heirs.

	date = { day = 1 month = january year = 1640 }
	offset = 1000
	deathdate = { day = 1 month = june year = 1643 }

	action_a = {
		name = "ACTIONNAME3386A" #Empower Kemankes
		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 = {
		name = "ACTIONNAME3386B" #Compromise
		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 = {
		name = "ACTIONNAME3386C" #Ignore his advice
		command = { type = domestic which = CENTRALIZATION value = -1 }
	}
}

#(1645-1669) Cretan war
event = {
	id = 301069
	trigger = {
		owned = { province = 480 data = VEN } #Crete
		atwar = no
	}
	random = no
	country = TUR
	name = "EVENTNAME301069" #Cretan war
	desc = "EVENTHIST301069"
	#-#In 1644 the Knights of Malta attacked an Ottoman convoy on its way from Alexandria to Istanbul. They landed at Candia with the loot, which included part of the Sultan's harem, returning from a pilgrimage to Mecca. On hearing of this, the sultan was outraged that these Latin pirates had embarrased him again. Crete must be taken to avoid further piratical raids. 60,000 Ottoman troops led by Yussut Pasha disembarked on Venetian Crete to begin the war.

	date = { day = 0 month = march year = 1645 }
	offset = 90
	deathdate = { day = 0 month = july year = 1669 }

	action_a = {
		name = "ACTIONNAME301069A" #Stop the Latin pirates
		command = { type = casusbelli which = VEN value = 260 }
		command = { type = relation which = VEN value = -200 }
		command = { type = casusbelli which = KNI value = 60 }
		command = { type = INF which = -2 value = 5000 }
		command = { type = transports which = -1 value = 10 }
		command = { type = trigger which = 326050 } #VEN: Cretan war
	}
	action_b = {
		name = "ACTIONNAME301069B" #Just send a warning
		command = { type = casusbelli which = VEN value = 6 }
		command = { type = casusbelli which = KNI value = 6 }
		command = { type = ADM which = -2 value = 24 }
		command = { type = sleepevent which = 301070 } #TUR: Reinforcements
		command = { type = sleepevent which = 326051 } #VEN: Reinforcements
	}
}

#(1648) The Conquests of Mehmed IV
event = {
	id = 301008
	random = no
	country = TUR
	name = "EVENTNAME301008" #The Conquest of Mehmed IV
	desc = "EVENTHIST301008"
	#-#In 1648, the Ottomans invaded Crete. After twenty years of war, they took the island in 1668. In 1672, the Cossaks of the Ukraine asked for help against Poland, offering their vassalage to the Empire. Mehmed's Grand Vizier, Köprülü Ahmed, came to their aid, defeating Poland and adding Podolia to the Empire. The Cossaks, however, soon broke their vassalage.

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

	action_a = {
		name = "ACTIONNAME301008A" #Help the Cossaks
		command = { type = addcore which = 480 } #Crete
		command = { type = addcore which = 297 } #Podolia
		#command = { type = AI which = TUR_Generic.txt }
	}
}

#(1654-1820) The Periaslav Agreement - Ahistorical
event = {
	id = 25007 #triggered by UKR_25004 C
	random = no
	country = TUR
	name = "EVENTNAME25005" #The Ukrainians seek our protection
	desc = "EVENTHIST25007"
	#-#Ukrainian Cossacks have sought the protection and overlordship of the Ottoman Sultan. This was not such an unusual idea - Wallachia and Moldavia have survived with a great deal of autonomy under the protection of the Ottoman Turks...

	action_a = {
		name = "ACTIONNAME25005A" #Become overlord of the Cossacks
		command = { type = vassal which = UKR }
		command = { type = relation which = POL value = -200 }
	}
	action_b = {
		name = "ACTIONNAME25005B" #Do not get involved with the troublesome Cossacks
		command = { type = relation which = UKR value = -100 }
	}
}

#(1656) The Age of the Köprülüs
event = {
	id = 3385
	random = no
	country = TUR
	name = "EVENTNAME3385" #The Age of the Köprülüs
	desc = "EVENTHIST3385"
	#-#Born around 1575/1580 in the village of Radnick in Albania, Mehmed Köprülü was a young Christian boy taken by the devshirme system (abducted and raised in the Muslim faith, just like most Janissary troops). He started his career as a cook, then moved to the Treasury. A pasha in central Anatolia, he gained a name for himself as an excellent and honest administrator--a rare creature in the Ottoman Empire. Governor of Damascus, he was called by the mother of the young sultan Mehmed IV as Grand Vizier on 15th September 1656. A fierce fighter of corruption, he enacted many successful reforms, balanced the budget and led the war against Venice. After his death in 1661, his son Fazil Ahmed 'the Virtuous' succeeded him and governed till 1676. Other Grand Viziers such as Kara Mustafa (1676-1683), Mustafa Pasha (1689-1691) and Hussein Pasha (1697-1702) were his direct heirs.

	date = { day = 15 month = september year = 1656 }

	action_a = {
		name = "ACTIONNAME3385A" #Support the Köprülü Family
		command = { type = ADM which = 6 value = 60 }
		command = { type = MIL which = 5 value = 60 }
		command = { type = domestic which = CENTRALIZATION value = 2 }
		command = { type = stability value = 2 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = domestic which = aristocracy value = -1 }
		command = { type = gainbuilding which = -1 value = courthouse }
		command = { type = gainbuilding which = -1 value = courthouse }
		command = { type = land value = 500 }
	}
	action_b = {
		name = "ACTIONNAME3385B" #Rely on more popular advisors
		command = { type = stability value = -1 }
		command = { type = domestic which = CENTRALIZATION value = -1 }
	}
}

#(1658) The 5th Celali Uprising
event = {
	id = 3382
	random = no
	country = TUR
	name = "EVENTNAME3382" #The 5th Celali Uprising
	desc = "EVENTHIST3382"
	#-#In 1658 Central Anatolia once again rose up in revolt under a new breed of Jelalis.

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

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

#(1661) The Age of the Köprülüs
event = {
	id = 50007
	random = no
	country = TUR
	name = "EVENTNAME50007" #Fazil Ahmed Köprülü
	desc = "EVENTHIST3385"
	#-#Born around 1575/1580 in the village of Radnick in Albania, Mehmed Köprülü was a young Christian boy taken by the devshirme system (abducted and raised in the Muslim faith, just like most Janissary troops). He started his career as a cook, then moved to the Treasury. A pasha in central Anatolia, he gained a name for himself as an excellent and honest administrator--a rare creature in the Ottoman Empire. Governor of Damascus, he was called by the mother of the young sultan Mehmed IV as Grand Vizier on 15th September 1656. A fierce fighter of corruption, he enacted many successful reforms, balanced the budget and led the war against Venice. After his death in 1661, his son Fazil Ahmed 'the Virtuous' succeeded him and governed till 1676. Other Grand Viziers such as Kara Mustafa (1676-1683), Mustafa Pasha (1689-1691) and Hussein Pasha (1697-1702) were his direct heirs.

	date = { day = 1 month = november year = 1661 }

	action_a = {
		name = "ACTIONNAME50007A" #Appoint him
		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 }
	}
}

#(1664) Ottoman Reinforcements
event = {
	id = 301070
	trigger = {
		war = { country = TUR country = VEN }
		NOT = {
			war = { country = HAB country = TUR }
		}
	}
	random = no
	country = TUR
	name = "EVENTNAME301070" #Reinforcements
	desc = "EVENTHIST301070"
	#-#The Peace of Vasvįr was a treaty between the Austrian Habsburg Monarchy and the Ottoman Empire which followed the Battle of Saint Gotthard of August 1, 1664. It held until 1683, when the Turks laid siege to Vienna for the second time. This peace treaty released thousands of Ottomans troops for their current conflict with Venice.

	date = { day = 0 month = august year = 1664 }

	action_a = {
		name = "ACTIONNAME301070A" #Ottoman Reserves
		command = { type = INF which = -1 value = 10000 }
	}
}

#(1670) Turko-Polish Tensions
event = {
	id = 3388 #triggered by POL_3488
	random = no
	country = TUR
	name = "EVENTNAME3488" #Turko-Polish Tensions
	desc = "EVENTHIST3488"
	#-#Poland and the Ottoman Empire came into conflict in the 1670's and 80's when the Cossacks in the Polish part of the divided Ukraine submitted to the Ottoman Empire and called for Tatar aid against Poland. Victories won by hetman Jan Sobieski only temporarily forestalled the threat, and in 1672 the Commonwealth faced a major invasion by the Ottoman Empire. The fall of the key border fortress Kamieniec Podolski was followed by the humiliating Peace of Buczacz. In 1683 Sobieski led a relief army to a Vienna besieged by the Ottomans and as supreme commander of the allied forces won a resounding victory that marked the beginning of Ottoman withdrawal from Europe.

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

#(1672-1692) The court favourite - Flavor
event = {
	id = 301034
	random = no
	country = TUR
	name = "EVENTNAME301034" #The court favourite
	desc = "EVENTHIST301034"
	#-#The culmination and conclusion of the Persian-style court poets, Yusuf Nabi (1642-1712) was also very highly regarded for his biographical, historical and geographical works.\n \n Day and night some balm I've sought for, to relieve my wounded heart, \n Ne'er a cure within the heavens' turquoise chest remaineth now. \n From its source, through every country, searched have I, but all in vain --- \n Ne'er a single drop, in mercy's fountain blest, remaineth now.

	date = { day = 1 month = january year = 1672 }
	offset = 5000
	deathdate = { day = 1 month = january year = 1692 }

	action_a = {
		name = "ACTIONNAME301034A" #Oh, the delight!
		command = { type = infra value = 50 }
	}
}

#(1675) Turko-Polish Tensions
event = {
	id = 3389 #triggered by POL_3489
	random = no
	country = TUR
	name = "EVENTNAME3488" #Turko-Polish Tensions
	desc = "EVENTHIST3488"
	#-#Poland and the Ottoman Empire came into conflict in the 1670's and 80's when the Cossacks in the Polish part of the divided Ukraine submitted to the Ottoman Empire and called for Tatar aid against Poland. Victories won by hetman Jan Sobieski only temporarily forestalled the threat, and in 1672 the Commonwealth faced a major invasion by the Ottoman Empire. The fall of the key border fortress Kamieniec Podolski was followed by the humiliating Peace of Buczacz. In 1683 Sobieski led a relief army to a Vienna besieged by the Ottomans and as supreme commander of the allied forces won a resounding victory that marked the beginning of Ottoman withdrawal from Europe.

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

#(1680) Turko-Polish Tensions
event = {
	id = 3390 #triggered by POL_3490
	random = no
	country = TUR
	name = "EVENTNAME3488" #Turko-Polish Tensions
	desc = "EVENTHIST3488"
	#-#Poland and the Ottoman Empire came into conflict in the 1670's and 80's when the Cossacks in the Polish part of the divided Ukraine submitted to the Ottoman Empire and called for Tatar aid against Poland. Victories won by hetman Jan Sobieski only temporarily forestalled the threat, and in 1672 the Commonwealth faced a major invasion by the Ottoman Empire. The fall of the key border fortress Kamieniec Podolski was followed by the humiliating Peace of Buczacz. In 1683 Sobieski led a relief army to a Vienna besieged by the Ottomans and as supreme commander of the allied forces won a resounding victory that marked the beginning of Ottoman withdrawal from Europe.

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

#(1682-1688) Sherban Cantacuzino
event = {
	id = 301080 #triggered by WAL_329036 B
	random = no
	country = TUR
	name = "EVENTNAME329036" #Sherban Cantacuzino and the siege of Vienna
	desc = "EVENTHIST329036"
	#-#In 1683 the Ottoman Empire once again marched its armies towards the centre of Europe, laying siege to Vienna. Alongside the Turkish forces, there were Wallachian regiments led by Prince Sherban Cantacuzino (1679-1688), descendant of the illustrious greek family. Reluctant to aid the Turks against his Christian brothers, Sherban secretly aided the Holy League who, in turn, following the crushing victories over the Ottomans, promised him the mantle of the Eastern Roman Empire to which he was entitled by descent. Sherban died in 1688, probably poisoned on the orders of the Ottoman Sultan.

	action_a = {
		name = "ACTIONNAME301080A" #Wallachia is our ally
		command = { type = alliance which = WAL }
		command = { }
	}
}

#(1690-1692) The Decentralizing Effect of the Provincial System
event = {
	id = 3380
	random = no
	country = TUR
	name = "EVENTNAME3379" #The De-centralizing Effect of the Provincial System
	desc = "EVENTHIST3379"
	#-#The provincial governors, or 'Beys', were powerful men, usually ambitious, and not always loyal. Although the Ottoman Empire did not have a noble class or a feudal system like most European nations, the Beys were a close equivalent with many of the same intrinsic problems. Intrigues and internal feuds could escalate into little civil wars without the central government objecting overly much. Naturally, the Beys were reluctant to give up their powers and usually demanded even more concessions...even to the point of outright independence.

	date = { day = 1 month = january year = 1690 }
	offset = 720
	deathdate = { day = 1 month = january year = 1692 }

	action_a = {
		name = "ACTIONNAME3379A" #More power to the Beys
		command = { type = provincetax which = -1 value = -2 }
		command = { type = provincetax which = -1 value = -2 }
		command = { type = provincetax which = -1 value = -2 }
		command = { type = provincetax which = -1 value = -2 }
		command = { type = provincetax which = -1 value = -2 }
		command = { type = provincetax which = -1 value = -2 }
		command = { type = domestic which = CENTRALIZATION value = -2 }
		command = { type = domestic which = quality value = -2 }
		command = { type = domestic which = ARISTOCRACY value = 2 }
		command = { type = domestic which = SERFDOM value = 2 }
		command = { type = stability value = 2 }
	}
	action_b = {
		name = "ACTIONNAME3379B" #Limit the concessions
		command = { type = provincetax which = -1 value = -1 }
		command = { type = provincetax which = -1 value = -1 }
		command = { type = provincetax which = -1 value = -1 }
		command = { type = provincetax which = -1 value = -1 }
		command = { type = provincetax which = -1 value = -1 }
		command = { type = provincetax which = -1 value = -1 }
		command = { type = domestic which = ARISTOCRACY value = 1 }
		command = { type = domestic which = CENTRALIZATION value = -1 }
		command = { type = domestic which = quality value = -1 }
		command = { type = revoltrisk which = 12 value = 6 }
		command = { type = stability value = -1 }
	}
	action_c = {
		name = "ACTIONNAME3379C" #Rein them in
		command = { type = provincetax which = -1 value = 1 }
		command = { type = provincetax which = -1 value = 1 }
		command = { type = provincetax which = -1 value = 1 }
		command = { type = provincetax which = -1 value = 1 }
		command = { type = provincetax which = -1 value = 1 }
		command = { type = provincetax which = -1 value = 1 }
		command = { type = domestic which = ARISTOCRACY value = -2 }
		command = { type = domestic which = CENTRALIZATION value = 2 }
		command = { type = domestic which = SERFDOM value = -2 }
		command = { type = desertion which = -1 value = 5000 }
		command = { type = desertion which = -1 value = 5000 }
		command = { type = desertion which = -1 value = 5000 }
		command = { type = revoltrisk which = 12 value = 6 }
		command = { type = stability value = -6 }
		command = { type = sleepevent which = 3378 } #TUR: The Shuf Mountain Rebellion
	}
}

#(1699) The Shuf Mountain Rebellion
event = {
	id = 3378
	trigger = {
		OR = {
			owned = { province = 490 data = -1 } #Syria
			owned = { province = 491 data = -1 } #Lebanon
			owned = { province = 485 data = -1 } #Aleppo
		}
	}
	random = no
	country = TUR
	name = "EVENTNAME3378" #The Shuf Mountain Rebellion
	desc = "EVENTHIST3378"
	#-#The Drusians of Lebanon and the Ottoman governor of Syria rose up against Ottoman rule in 1699. Yet again, the provincial system had produced a serious rebellion.

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

	action_a = {
		name = "ACTIONNAME3378A" #Smash the rebellion by force
		command = { type = revolt which = 490 } #Syria
		command = { type = revolt which = 491 } #Lebanon
		command = { type = revolt which = 485 } #Aleppo
		command = { type = MIL which = 3 value = 12 }
	}
	action_b = {
		name = "ACTIONNAME3378B" #Negotiate with the rebels
		command = { type = stability value = -1 }
		command = { type = treasury value = -50 }
		command = { type = DIP which = 3 value = 12 }
	}
}

#(1699-1780) The Treaty of Karlowitz
event = {
	id = 301015
	trigger = {
		NOT = {
			OR = {
				owned = { province = 353 data = -1 } #Pest
				AND = {
					owned = { province = 353 data = TRA } #Pest
					vassal = { country = TUR country = TRA }
					neighbour = TRA
				}
				AND = {
					owned = { province = 353 data = HUN } #Pest
					vassal = { country = TUR country = HUN }
					neighbour = HUN
				}
			}
			OR = {
				owned = { province = 365 data = -1 } #Dalmatia
				AND = {
					owned = { province = 365 data = TRA } #Dalmatia
					vassal = { country = TUR country = TRA }
					neighbour = TRA
				}
				AND = {
					owned = { province = 365 data = HUN } #Dalmatia
					vassal = { country = TUR country = HUN }
					neighbour = HUN
				}
			}
			OR = {
				owned = { province = 366 data = -1 } #Croatia
				AND = {
					owned = { province = 366 data = TRA } #Croatia
					vassal = { country = TUR country = TRA }
					neighbour = TRA
				}
				AND = {
					owned = { province = 366 data = HUN } #Croatia
					vassal = { country = TUR country = HUN }
					neighbour = HUN
				}
			}
			OR = {
				owned = { province = 323 data = -1 } #Transylvania
				AND = {
					owned = { province = 323 data = TRA } #Transylvania
					vassal = { country = TUR country = TRA }
					neighbour = TRA
				}
				AND = {
					owned = { province = 323 data = HUN } #Transylvania
					vassal = { country = TUR country = HUN }
					neighbour = HUN
				}
				AND = {
					owned = { province = 323 data = WAL } #Transylvania
					vassal = { country = TUR country = WAL }
					neighbour = WAL
				}
			}
			OR = {
				owned = { province = 324 data = -1 } #Maros
				AND = {
					owned = { province = 324 data = TRA } #Maros
					vassal = { country = TUR country = TRA }
					neighbour = TRA
				}
				AND = {
					owned = { province = 324 data = HUN } #Maros
					vassal = { country = TUR country = HUN }
					neighbour = HUN
				}
			}
			OR = {
				owned = { province = 325 data = -1 } #Magyar
				AND = {
					owned = { province = 325 data = TRA } #Magyar
					vassal = { country = TUR country = TRA }
					neighbour = TRA
				}
				AND = {
					owned = { province = 325 data = HUN } #Magyar
					vassal = { country = TUR country = HUN }
					neighbour = HUN
				}
			}
		}
		core = { province = 353 data = -1 } #OE has cores on Hungary
	}
	random = no
	country = TUR
	name = "EVENTNAME301015" #The Treaty of Karlowitz
	desc = "EVENTHIST301015"
	#-#Having been defeated decisively by a coalition of Austria, Russia, Poland and Venice and lost control over large chunks of the Balkan, the Ottoman Empire was forced to sign a humiliating peace treaty in 1699 in the Serbian city of Karlowitz. All Hungary except the Banat of Temesvar, Croatia and Slavonia were ceded to Austria, Podolia to Poland, Dalmatia and the Peloponnesus to Venice. Russia got Azov in a separate treaty signed in 1700. Except for Greece, none of these losses was ever recovered permanently. The disintegration of the Empire had begun.

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

	action_a = {
		name = "ACTIONNAME301015A" #The Empire is doomed
		command = { type = removecore which = 296 } #Jedisan
		command = { type = removecore which = 297 } #Podolia
		command = { type = removecore which = 316 } #Carpathia
		command = { type = removecore which = 317 } #Ruthenia
		command = { type = removecore which = 323 } #Transylvania
		command = { type = removecore which = 324 } #Maros
		command = { type = removecore which = 325 } #Magyar
		command = { type = removecore which = 326 } #Presburg
		command = { type = removecore which = 351 } #Austria
		command = { type = removecore which = 352 } #Odenburg
		command = { type = removecore which = 353 } #Pest
		command = { type = removecore which = 362 } #Ragusa
		command = { type = removecore which = 365 } #Dalmatia
		command = { type = removecore which = 366 } #Croatia
		command = { type = removecore which = 367 } #Krain
		command = { type = remove_countryculture which = dalmatian }
		command = { type = sleepevent which = 179147 } #HAB: Wartime devastation of Banat
	}
}

#(1703-1710) The Tunisian Rebellion
event = {
	id = 3391
	trigger = {
		owned = { province = 739 data = -1 } #Tunisia
		NOT = {	exists = TUN }
	}
	random = no
	country = TUR
	name = "EVENTNAME3391" #The Tunisian Rebellion
	desc = "EVENTHIST3391"
	#-#In the first decades of the 18th century the Beys and Deys (Janissary leaders) of Northern Africa were in a rebellious mood in the wake of the Peace of Carlowitz between the Ottoman Empire and the Holy League. In 1705, Hussein bin Ali Agha of Cretan origin staged a coup and founded the Husseinic dynasty which ruled Tunisia until 1957. Tunisia did not become truly autonomous at once, but it gained a large measure of independence.

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

	action_a = {
		name = "ACTIONNAME3391A" #Accept a free Tunisia
		command = { type = remove_countryculture which = maghrebi }
		command = { type = removecore which = 739 } #Tunisia
		command = { type = independence which = TUN }
		command = { type = domestic which = CENTRALIZATION value = -1 }
		command = { type = trigger which = 300015 } #TUN: The Tunisian Rebellion
	}
	action_b = {
		name = "ACTIONNAME3391B" #Crush the rebels
		command = { type = remove_countryculture which = maghrebi }
		command = { type = removecore which = 739 } #Tunisia
		command = { type = revolt which = 739 } #Tunisia
		command = { type = revolt which = 739 } #Tunisia
		command = { type = revolt which = 739 } #Tunisia
		command = { type = revoltrisk which = 36 value = 4 }
		command = { type = stability value = -2 }
	}
}

#(1705-1715) The Sultan's close confidant - Flavor
event = {
	id = 301036
	random = no
	country = TUR
	name = "EVENTNAME301036" #The Sultan's close confidant
	desc = "EVENTHIST301036"
	#-#Ahmet Nedim (1681-1730) was the boon companion of Sultan Ahmed III in all the fun and frivolity of the Tulip Period. He wrote in a freer and easier style than his predecessors, and his influence was great throughout the seventeenth century, Get your mother's leave, say it's for holy prayers this Friday:\n \n Out of time's tormenting clutches let us both steal a day \n And slinking through the secret roads and alleys down to the bay, \n Let's go to the pleasure gardens, come, my sauntering cypress. First, for a while, let's take a stroll around the pond at leisure, \n And gaze in marvel at that palace of heavenly pleasure \n Now and then, let's sing songs or recite poems for good measure --- \n Let's go to the pleasure gardens, come, my sauntering cypress.

	date = { day = 1 month = january year = 1705 }
	offset = 3000
	deathdate = { day = 1 month = january year = 1715 }

	action_a = {
		name = "ACTIONNAME301036A" #Shocking
		command = { type = infra value = 150 }
	}
	action_b = {
		name = "ACTIONNAME301036B" #Delightful
		command = { type = infra value = 150 }
	}
}

#(1710-1730) The Algerian Rebellion
#by chegitz guevara
event = {
	id = 3897
	trigger = {
		owned = { province = 737 data = -1 } #Al Djazair
		NOT = { exists = ALD }
	}
	random = no
	country = TUR
	name = "EVENTNAME3897" #The Algerian Rebellion
	desc = "EVENTHIST3897"
	#-#In the first decades of the 18th century the Beys and Deys (Janissary leaders) of Northern Africa were in a rebellious mood in the wake of the Peace of Carlowitz between the Ottoman Empire and the Holy League. In 1710, it was the turn of the Bey of Algiers to begin to start down the road to independence.

	date = { day = 1 month = january year = 1710 }
	offset = 300
	deathdate = { day = 1 month = january year = 1730 }

	action_a = {
		name = "ACTIONNAME3897A" #Grant limited autonomy
		command = { type = remove_countryculture which = maghrebi }
		command = { type = independence which = SUS } #just in case
		command = { type = independence which = MOR } #just in case
		command = { type = cedeprovince which = MOR value = 732 } #Tangiers
		command = { type = cedeprovince which = MOR value = 733 } #Fez
		command = { type = cedeprovince which = MOR value = 806 } #Toubkal
		command = { type = independence which = ALD }
		command = { type = domestic which = CENTRALIZATION value = -1 }
		command = { type = removecore which = 734 } #Orania
		command = { type = removecore which = 735 } #Atlas
		command = { type = removecore which = 736 } #Aures
		command = { type = removecore which = 737 } #Al Djazair
		command = { type = removecore which = 738 } #Kabylia
		command = { type = trigger which = 301081 } #TUR: The regent of Algiers
		command = { type = trigger which = 105003 } #ALD: The regent of Algiers
	}
	action_b = {
		name = "ACTIONNAME3897B" #Crush the rebels!
		command = { type = remove_countryculture which = maghrebi }
		command = { type = removecore which = 734 } #Orania
		command = { type = removecore which = 735 } #Atlas
		command = { type = removecore which = 736 } #Aures
		command = { type = removecore which = 737 } #Al Djazair
		command = { type = removecore which = 738 } #Kabylia
		command = { type = revoltrisk which = 36 value = 4 }
		command = { type = stability value = -2 }
		command = { type = revolt which = 734 } #Orania
		command = { type = revolt which = 735 } #Atlas
		command = { type = revolt which = 736 } #Aures
		command = { type = revolt which = 737 } #Al Djazair
		command = { type = revolt which = 738 } #Kabylia
		#Ahistorical
		command = { type = revolt which = 732 } #Tangiers
		command = { type = revolt which = 733 } #Fez
		command = { type = revolt which = 806 } #Toubkal
		command = { type = revolt which = 805 } #Sahara
		command = { type = revolt which = 1595 } #Anti Atlas
	}
}
#(1710-1730) The regent of Algiers
event = {
	id = 301081 #triggered by TUR_3897 A
	trigger = {
		OR = {
			owned = { province = 734 data = -1 } #Orania
			owned = { province = 735 data = -1 } #Atlas
		}
	}
	random = no
	country = TUR
	name = "EVENTNAME301081" #The regent of Algiers
	desc = "EVENTHIST301081"
	#-#The Dey persuaded the Sultan to recognize him and his successors as regent, replacing the Pasha in that role. Although Algiers remained a part of the Ottoman Empire, the Ottoman government ceased to have effective influence there.

	action_a = {
		name = "ACTIONNAME301048A" #Grant them autonomy
		command = { type = cedeprovince which = ALD value = 734 } #Orania
		command = { type = cedeprovince which = ALD value = 735 } #Atlas
	}
}

#(1710-1720) The new Tripolitanian Governor
event = {
	id = 3392
	trigger = {
		owned = { province = 740 data = -1 } #Tripolitania
		NOT = { exists = TRI }
	}
	random = no
	country = TUR
	name = "EVENTNAME3392" #The new Tripolitanian Governor
	desc = "EVENTHIST3392"
	#-#In 1711, Ahmad Karamanli, a Turkish cavalry officer and Janissary Dey, killed the Ottoman governor of Tripolitania and prevailed upon the Sultan to name him Bey. The post of governor remained hereditary in the Karamanli family until 1835.

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

	action_a = {
		name = "ACTIONNAME3392A" #Accept Ahmad Karamanli as Governor
		command = { type = remove_countryculture which = maghrebi }
		command = { type = removecore which = 740 } #Tripolitania
		command = { type = removecore which = 741 } #Cyrenaica
		command = { type = independence which = TRI }
		command = { type = domestic which = CENTRALIZATION value = -1 }
		command = { type = trigger which = 301048 } #TUR: The independence of Tripolitania
		command = { type = trigger which = 299000 } #TRI: The new Tripolitanian Governor
	}
	action_b = {
		name = "ACTIONNAME3392B" #Crush him
		command = { type = remove_countryculture which = maghrebi }
		command = { type = removecore which = 740 } #Tripolitania
		command = { type = removecore which = 741 } #Cyrenaica
		command = { type = revolt which = 740 } #Tripolitania
		command = { type = revolt which = 740 } #Tripolitania
		command = { type = revolt which = 741 } #Cyrenaica
		command = { type = revoltrisk which = 36 value = 4 }
		command = { type = stability value = -2 }
	}
}
#(1710-1720) The independence of Tripolitania
event = {
	id = 301048 #triggered by TUR_3392 A
	trigger = {
		owned = { province = 741 data = -1 } #Cyrenaica
	}
	random = no
	country = TUR
	name = "EVENTNAME301048" #The independence of Tripolitania
	desc = "EVENTHIST301048"
	#-#While the Karamanlis formally answered to Istanbul, Tripolitania was in effect an autonomous state.

	action_a = {
		name = "ACTIONNAME301048A" #Grant them autonomy
		command = { type = cedeprovince which = TRI value = 741 } #Cyrenaica
	}
}

#(1718) Lale Devri (The Tulip Age)
event = {
	id = 3393
	trigger = {
		monarch = 0139022 #Ahmed III
	}
	random = no
	country = TUR
	name = "EVENTNAME3393" #Lale Devri - The Tulip Era
	desc = "EVENTHIST3393"
	#-#Under the rule of Sultan Ahmed III and Sadrazam Damat Ibrahim Pasha, the Ottoman Empire entered a period of unprecedented westernization. The printing press, previously outlawed by the Sheikh-ul-Islams, is introduced to the nation's capital. Ambassadors were sent to Western European nations for the first time in history. Modern textile, paper and porcelain manufactories were built. Despite these improvements, much of the treasury was also wasted on new palaces, gardens and parks in Istanbul. The lavish lifestyle of the royal family and the court aristocracy was intensely resented by the public and religious authorities.

	date = { day = 1 month = april year = 1718 }
	offset = 180
	deathdate = { day = 29 month = december year = 1718 }

	action_a = {
		name = "ACTIONNAME3393A" #Begin westernization process
		command = { type = stability value = -1 }
		command = { type = revoltrisk which = 36 value = 5 }
		command = { type = domestic which = CENTRALIZATION value = 1 }
		command = { type = domestic which = ARISTOCRACY value = -1 }
		command = { type = domestic which = INNOVATIVE value = 2 }
		command = { type = provincetax which = -1 value = 3 }
		command = { type = provincetax which = -1 value = 3 }
		command = { type = provincetax which = -1 value = 2 }
		command = { type = provincetax which = -1 value = 2 }
		command = { type = provincetax which = -1 value = 2 }
		command = { type = gainmanufactory which = -1 value = goods }
		command = { type = relation which = ENG value = 50 }
		command = { type = relation which = FRA value = 50 }
		command = { type = relation which = SPA value = 50 }
		command = { type = relation which = POR value = 50 }
		command = { type = relation which = POL value = 50 }
		command = { type = relation which = HAB value = 50 }
		command = { type = relation which = PER value = -50 }
		command = { type = relation which = ALD value = -50 }
		command = { type = relation which = MOR value = -50 }
		command = { type = relation which = TRI value = -50 }
		command = { type = relation which = TUN value = -50 }
		command = { type = relation which = OMA value = -50 }
		command = { type = relation which = ADE value = -50 }
		command = { type = relation which = ARA value = -50 }
		command = { type = DIP which = 3 value = 145 }
		command = { type = ADM which = 4 value = 145 }
		command = { type = MIL which = 2 value = 145 }
	}
	action_b = {
		name = "ACTIONNAME3393B" #Initiate moderate reforms
		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 } #TUR: The End of Lale Devri
	}
	action_c = {
		name = "ACTIONNAME3393C" #Islam is the Law!
		command = { type = stability value = 3 }
		command = { type = INF which = -2 value = 10000 }
		command = { type = CAV 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 } #TUR: The End of Lale Devri
	}
}

#(1730) Patrona Halil Uprising - The End of Lale Devri
event = {
	id = 3397
	trigger = {
		event = 3393 #TUR: Lale Devri - The Tulip Era
	}
	random = no
	country = TUR
	name = "EVENTNAME3397" #The End of Lale Devri
	desc = "EVENTHIST3397"
	#-#In 1730, discontent with the westernization and the excesses of the ruling classes finally erupted in a rebellion led by Patrona Halil. Nevsehirli Ibrahim Pasa was killed and Ahmed III deposed. Not content with that, the pavilions and mansions were demolished to erase all traces of the Tulip Era.

	date = { day = 29 month = september year = 1730 }

	action_a = {
		name = "ACTIONNAME3397A" #Allow Ahmed III to be deposed
		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 = 0139022 } #Ahmed III
		command = { type = sleepmonarch which = 0139030 } #Mahmud I (postponed startdate)
		command = { type = wakemonarch which = 0139023 } #Mahmud I (historical startdate)
		command = { type = stability value = -1 }
	}
	action_b = {
		name = "ACTIONNAME3397B" #Crush the revolt
		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 = revoltrisk which = 24 value = 4 }
	}
}

#(1740-1750) Proposal for an Army Reform (Mahmud I)
event = {
	id = 3400
	random = no
	country = TUR
	name = "EVENTNAME3400" #Proposal for an Army Reform
	desc = "EVENTHIST3400"
	#-#Upon his ascension to the throne, Mahmud I was faced with the unpleasant task of restoring order after the Patrona Halil uprising in Constantinople in 1730. Advised by the Comte de Bonneval (Humbaraci Ahmed Pasa, a French convert to Islam), he initiated a series of comprehensive military reforms. The artillery corps was reorganized and a new military academy (Kara Muhendishanesi) was established.

	date = { day = 1 month = january year = 1740 }
	offset = 3600
	deathdate = { day = 1 month = january year = 1750 }

	action_a = {
		name = "ACTIONNAME3400A" #Reform military and establish the 'Kara Muhendishanesi'
		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 = {
		name = "ACTIONNAME3400B" #Reform the military
		command = { type = land value = 600 }
		command = { type = naval value = 300 }
		command = { type = stability value = -1 }
		command = { type = revoltrisk which = 24 value = 2 }
	}
	action_c = {
		name = "ACTIONNAME3400C" #Let the Janissaries enjoy their privileges
		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 }
	}
}

#(1740-1743) The Decentralizing Effect of the Provincial System
event = {
	id = 3381
	random = no
	country = TUR
	name = "EVENTNAME3379" #The De-centralizing Effect of the Provincial System
	desc = "EVENTHIST3379"
	#-#The provincial governors, or 'Beys', were powerful men, usually ambitious, and not always loyal. Although the Ottoman Empire did not have a noble class or a feudal system like most European nations, the Beys were a close equivalent with many of the same intrinsic problems. Intrigues and internal feuds could escalate into little civil wars without the central government objecting overly much. Naturally, the Beys were reluctant to give up their powers and usually demanded even more concessions...even to the point of outright independence.

	date = { day = 1 month = january year = 1740 }
	offset = 720
	deathdate = { day = 1 month = january year = 1743 }

	action_a = {
		name = "ACTIONNAME3379A" #More power to the Beys
		command = { type = provincetax which = -1 value = -2 }
		command = { type = provincetax which = -1 value = -2 }
		command = { type = provincetax which = -1 value = -2 }
		command = { type = provincetax which = -1 value = -2 }
		command = { type = provincetax which = -1 value = -2 }
		command = { type = provincetax which = -1 value = -2 }
		command = { type = domestic which = CENTRALIZATION value = -2 }
		command = { type = domestic which = quality value = -1 }
		command = { type = domestic which = ARISTOCRACY value = 2 }
		command = { type = domestic which = SERFDOM value = 2 }
		command = { type = stability value = 2 }
	}
	action_b = {
		name = "ACTIONNAME3379B" #Limit the concessions
		command = { type = provincetax which = -1 value = -1 }
		command = { type = provincetax which = -1 value = -1 }
		command = { type = provincetax which = -1 value = -1 }
		command = { type = provincetax which = -1 value = -1 }
		command = { type = provincetax which = -1 value = -1 }
		command = { type = provincetax which = -1 value = -1 }
		command = { type = domestic which = ARISTOCRACY value = 1 }
		command = { type = domestic which = CENTRALIZATION value = -1 }
		command = { type = revoltrisk which = 12 value = 6 }
		command = { type = stability value = -1 }
	}
	action_c = {
		name = "ACTIONNAME3379C" #Rein them in
		command = { type = provincetax which = -1 value = 1 }
		command = { type = provincetax which = -1 value = 1 }
		command = { type = provincetax which = -1 value = 1 }
		command = { type = provincetax which = -1 value = 1 }
		command = { type = provincetax which = -1 value = 1 }
		command = { type = provincetax which = -1 value = 1 }
		command = { type = domestic which = ARISTOCRACY value = -2 }
		command = { type = domestic which = CENTRALIZATION value = 2 }
		command = { type = domestic which = SERFDOM value = -2 }
		command = { type = desertion which = -1 value = 5000 }
		command = { type = desertion which = -1 value = 5000 }
		command = { type = desertion which = -1 value = 5000 }
		command = { type = revoltrisk which = 12 value = 6 }
		command = { type = stability value = -6 }
	}
}

#(1740-1770) The Omani Rebellion
event = {
	id = 301016
	trigger = {
		OR = {
			AND = { 
				owned = { province = 504 data = -1 } #Mascate
				control = { province = 504 data = -1 }
			} 
			vassal = { country = TUR country = OMA }
		}
	}
	random = no
	country = TUR
	name = "EVENTNAME301016" #The Omani rebellion
	desc = "EVENTHIST301016"
	#-#The Ottoman rule in Oman was ended when Ahmad ibn Said of Yemen expelled them and restored the independent Omani Sultanate in 1741.

	date = { day = 1 month = january year = 1740 }
	offset = 1000
	deathdate = { day = 29 month = december year = 1770 }

	action_a = {
		name = "ACTIONNAME301016A" #Let them go
		command = { type = independence which = OMA }
		command = { type = removecore which = 504  } #Muscat
		command = { type = trigger which = 248000 } #OMA: Ahmad ibn Said seizes power
		command = { type = trigger which = 301046 } #TUR: Omani independence
	}
	action_b = {
		name = "ACTIONNAME3391B" #Crush the rebels
		command = { type = revolt which = 504 } #Mascate
		command = { type = revolt which = 504 } #Mascate
		command = { type = revolt which = 503 } #Masirah
		command = { type = revolt which = 505 } #Al Kharam
		command = { type = revoltrisk which = 36 value = 4 }
		command = { type = stability value = -2 }
	}
}
#(1740-1770) Omani independence
event = {
	id = 301046 #triggered by TUR_301016 A
	random = no
	country = TUR
	name = "EVENTNAME301046" #Omani independence
	desc = "EVENTHIST301046"
	#-#Until the end of the century, Oman developed into the most powerful state in Arabia, controlling Zanzibar and parts of the Persian and Baluchi coast.

	action_a = {
		name = "ACTIONNAME301046A" #Ahmad ibn Said seizes power
		command = { type = cedeprovince which = OMA value = 503 } #Masirah
		command = { type = cedeprovince which = OMA value = 504 } #Mascate
		command = { type = cedeprovince which = OMA value = 505 } #Al Kharam
		command = { type = cedeprovince which = OMA value = 506 } #Quatar
		command = { type = cedeprovince which = OMA value = 507 } #Damman
		command = { type = cedeprovince which = OMA value = 765 } #Zanzibar
		command = { }
	}
}

#(1768-1798) The Independence of Egypt
event = {
	id = 3398
	trigger = {
		OR = {
			owned = { province = 742 data = -1 } #Quattara
			owned = { province = 743 data = -1 } #Cataract
			owned = { province = 744 data = -1 } #Alexandria
			owned = { province = 745 data = -1 } #Delta
			owned = { province = 746 data = -1 } #Egypt
			owned = { province = 747 data = -1 } #Nile
		}
		NOT = {
			exists = MAM
			exists = EGY
		}
	}
	random = no
	country = TUR
	name = "EVENTNAME3398" #The Independence of the Mamluks in Egypt
	desc = "EVENTHIST3398"
	#-#Since the Ottoman conquest of 1517-1518, the Mamluks of Egypt had lost official independence, but managed to retain most of the levels of power, although nominally under command from a pasha nominated by the Sultan in Constantinople. In the late 18th century, the influence of the Turkish Pasha was insignificant and the Mamluk Beys behaved nearly as the rulers of an independent nation, paying tribute and taxes whenever they wanted and limiting their duties as Turkish vassals to the minimum.

	date = { day = 1 month = january year = 1768 }
	offset = 720
	deathdate = { day = 29 month = december year = 1797 }

	action_a = {
		name = "ACTIONNAME3398A" #Accept a free Egypt
		command = { type = remove_countryculture which = maghrebi }
		command = { type = removecore which = 742 } #Quattara
		command = { type = removecore which = 743 } #Cataract
		command = { type = removecore which = 744 } #Alexandria
		command = { type = removecore which = 745 } #Delta
		command = { type = removecore which = 746 } #Egypt
		command = { type = removecore which = 747 } #Nile
		command = { type = removecore which = 748 } #Batn al Hajar
		command = { type = removecore which = 749 } #Nubia
		command = { type = independence which = EGY }
		command = { type = cedeprovince which = TRI value = 741 } #Cyrenaica - just in case
		command = { type = trigger which = 301047 } #TUR: Loss of claims in Egypt
		command = { type = trigger which = 24059 } #EGY: The Independence of the Mamluks in Egypt
	}
	action_b = {
		name = "ACTIONNAME3398B" #Crush the rebels!
		command = { type = remove_countryculture which = maghrebi }
		command = { type = removecore which = 742 } #Quattara
		command = { type = removecore which = 743 } #Cataract
		command = { type = removecore which = 744 } #Alexandria
		command = { type = removecore which = 745 } #Delta
		command = { type = removecore which = 746 } #Egypt
		command = { type = removecore which = 747 } #Nile
		command = { type = removecore which = 748 } #Batn al Hajar
		command = { type = removecore which = 749 } #Nubia
		command = { type = revolt which = 743 } #Cataract
		command = { type = revolt which = 743 } #Cataract
		command = { type = revolt which = 744 } #Alexandria
		command = { type = revolt which = 744 } #Alexandria
		command = { type = revolt which = 745 } #Delta
		command = { type = revolt which = 746 } #Egypt
		command = { type = revolt which = 746 } #Egypt
		command = { type = revolt which = 747 } #Nile
		command = { type = stability value = -2 }
	}
}
#(1768-1797) Loss of claims in Egypt
event = {
	id = 301047 #triggered by TUR_3398 A
	trigger = {
		OR = {
			owned = { province = 494 data = -1 } #Sinai
			#not in EGY revolt.txt
			owned = { province = 748 data = -1 } #Batn al Hajar
			owned = { province = 749 data = -1 } #Nubia
			owned = { province = 750 data = -1 } #Sudan
			owned = { province = 751 data = -1 } #Bisharin
		}
	}
	random = no
	country = TUR
	name = "EVENTNAME301047" #Loss of claims in Egypt
	desc = "EVENTHIST301047"
	#-#Under Mehmet Ali (who became viceroy in 1805 after French evacuation, and until his death in 1849), the factual independence became official at last.

	action_a = {
		name = "ACTIONNAME301047A" #Grant them their lands... and more!
		command = { type = cedeprovince which = EGY value = 742 } #Quattara
		command = { type = cedeprovince which = EGY value = 743 } #Cataract
		command = { type = cedeprovince which = EGY value = 747 } #Nile
		command = { type = cedeprovince which = EGY value = 494 } #Sinai
		#not in EGY revolt.txt
		command = { type = cedeprovince which = EGY value = 748 } #Batn al Hajar
		command = { type = cedeprovince which = EGY value = 749 } #Nubia
		command = { type = cedeprovince which = EGY value = 750 } #Sudan
		command = { type = cedeprovince which = EGY value = 751 } #Bisharin
	}
}

#(1770) The Horrible Plague in Anatolia
event = {
	id = 3396
	trigger = {
		OR = {
			owned = { province = 477 data = -1 } #Anatolia
			owned = { province = 476 data = -1 } #Angora
		}
	}
	random = no
	country = TUR
	name = "EVENTNAME3396" #The Horrible Plague in Anatolia
	desc = "EVENTHIST3396"
	#-#During the 18th and early 19th centuries, Anatolia was afflicted with intermittent outbreaks of cholera and the bubonic plague.

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

	action_a = {
		name = "OH_NO"
		command = { type = population which = 477 value = -7000 } #Anatolia
		command = { type = population which = 476 value = -2000 } #Angora
	}
}

#(1770-1780) Ali Bey's Rebellion in Egypt
event = {
	id = 3394
	trigger = {
		AND = { 
			owned = { province = 746 data = -1    }
			control =  { province = 746 data = -1  }
		}
		NOT = { 
			exists = MAM 
			exists = EGY
		}
		OR = { 
			AND = { 
				atwar = yes
				neighbour = RUS
			}
			war = { country = RUS country = TUR }
		}
	}
	random = no
	country = TUR
	name = "EVENTNAME3394" #Ali Bey's Rebellion in Egypt
	desc = "EVENTHIST3394"
	#-#When war broke out between Russia and Turkey, Ali Bey declared Egypt's independence and proposed to fight on the Russian side, refusing to pay any more taxes to the Ottomans. Next, he invaded Syria, but he was betrayed by his rival Ismaļl Bey and killed in 1773.

	date = { day = 1 month = january year = 1770 }
	offset = 750
	deathdate = { day = 1 month = january year = 1780 }

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

#(1780-1820) Economical crisis
#by Fodoron
event = {
	id = 301114
	trigger = {
		OR = {
			owned = { province = 359 data = -1 } #Hellas
			owned = { province = 355 data = -1 } #Serbia
			neighbour = RUS
			countrysize = 25
		}
	}
	random = no
	country = TUR
	name = "EVENTNAME301114" #Hyperinflation and nationalism
	desc = "EVENTHIST301114"
	#-#In 1780, under financial constrains after the Russian war over Crimea, the Ottoman government started to resort to currency debasement. The resulting inflation and the rebellions that it caused, together with more wars prompted more debasements until 1850 creating a massive hyperinflation of 1,200 to 1,500 percent leading to the replacement of the Akche by the Kurus, at a rate of 120 to one, and exacerbating every problem in the Ottoman Empire. Eventually even the British Pound was affected by this crisis that led to lack of foreign credit by the Ottoman government and temporary foreign financial control of the debt administration in 1881. This long economical crisis marks the lowest point of the Ottoman Empire, and coincides with a period of extreme difficulty characterized by Anatolian and Balkan uprisings, Greek and Serbian independentism and wars against Russia, Iran and Egypt. Given the evident decline, strong attempts at reformation were made in the XIX century, but they came too late for the Empire.

	date = { day = 1 month = january year = 1780 }
	offset = 300
	deathdate = { year = 1820 }

	action_a = {
		name = "ACTIONNAME301114A" #Rats!
		command = { type = treasury value = -1000 }
		command = { type = loansize which = 200 }
		command = { type = inflation value = 15 }
		command = { type = stability value = -3 }
		command = { type = losemanufactory which = -1 }
		command = { type = losemanufactory which = -1 }
		command = { type = losemanufactory which = -1 }
		command = { type = domestic which = CENTRALIZATION value = -2 }
		command = { type = remove_countryculture which = greek }
		command = { type = remove_countryculture which = slavonic }
		command = { type = infra value = -5000 }
	}
}

#(1804-1813) Serbian Uprisings
event = {
	id = 301090
	trigger = {
		owned = { province = 355 data = -1 } #Serbia
		NOT = {
			AND = {
				owned = { province = 354 data = -1 } #Banat
				owned = { province = 364 data = -1 } #Bosnia
				owned = { province = 366 data = -1 } #Croatia
				OR = {
					owned = { province = 356 data = -1 } #Bulgaria
					owned = { province = 363 data = -1 } #Kosovo
				}
			}
		}
		NOT = { exists = SER }
	}
	random = no
	country = TUR
	name = "EVENTNAME301090" #Serbian Uprisings
	desc = "EVENTHIST301090"
	#-#Ottoman repression in Serbia significantly increased in the beginning of 19th century when janissary leaders, the dahis, rebelled against the Sultan and seized the rule of the Belgrade Pashaluk. It culminated in January 1804, when dahis prepared executions of popular leaders, gentry, priests, former rebels and wealthy traders, called the Execution of the Dukes (Seca knezova in Serbian). Being notified of the ongoing executions, Karadjordje Petrovic (Black George) escaped execution by ambushing the assassins with his men and killing them all. \nAs the response to the executions, Serbs rallied in Oraac on 14 February 1804, and Karadjordje was chosen to be the leader of the uprising. The rebels managed to quickly incite revolt, firstly under the pretext of liberation from dahis, but after the Battle of Ivankovac in 1805 they started open combat to end the rule of the Ottoman Sultan. In March of the same year Karadjordje was officially appointed Military leader of Serbia, the self-proclaimed Vozd. \n \nIn 1813, the Ottoman Empire launched a big assault on Serbia taking land all up to the rivers Morava and the river Drina, and Karadjordje, along with other rebel leaders, fled to the Austrian Empire on 21 September 1813.

	date = { day = 13 month = february year = 1804 }
	offset = 5
	deathdate = { day = 19 month = september year = 1813 }

	action_a = {
		name = "ACTIONNAME3399B" #Crush the revolt!
		command = { type = removecore which = 354 } #Banat
		command = { type = removecore which = 355 } #Serbia
		command = { type = removecore which = 363 } #Kosovo
		command = { type = province_revoltrisk which = 355 value = 30 } #eternal #Serbia
		command = { type = revolt which = 355 } #Serbia
		command = { type = revolt which = 355 } #Serbia
		command = { type = revolt which = 363 } #Kosovo
		command = { type = revolt which = 364 } #Bosnia
	}
	action_b = {
		name = "ACTIONNAME3399A" #Accept a free Serbia
		command = { type = removecore which = 354 } #Banat
		command = { type = removecore which = 355 } #Serbia
		command = { type = removecore which = 363 } #Kosovo
		command = { type = independence which = SER }
		command = { type = domestic which = CENTRALIZATION value = -1 }
		command = { type = stability value = -2 }
		command = { type = sleepevent which = 3399 } #TUR: Serbian Independence
		command = { type = sleepevent which = 301051 } #TUR: Serbian Uprising Crushed
	}
}

#(1804-1813) Serbian Uprising Crushed
event = {
	id = 301051
	trigger = {
		event = 301090 #TUR: Serbian Uprisings
		exists = SER
		war = { country = TUR country = SER } #SER not being conquered by someone else
		OR = {
			control = { province = 355 data = -1 } #Serbia
			NOT = { owned = { province = 355 data = SER } } #Serbia
		}
		OR = {
			control = { province = 354 data = -1 } #Banat
			NOT = { owned = { province = 354 data = SER } } #Banat
		}
		OR = {
			control = { province = 363 data = -1 } #Kosovo
			NOT = { owned = { province = 363 data = SER } } #Kosovo
		}
	}
	random = no
	country = TUR
	name = "EVENTNAME301051" #Serbian Uprising Crushed
	desc = "EVENTHIST301051"
	#-#The Ottoman Empire reconquered Serbia in a massive assault and rebel leaders were forced to flee to Austria. Although still rebellious, Serbia was again under Ottoman control.

	date = { day = 13 month = february year = 1804 }
	offset = 5
	deathdate = { day = 19 month = september year = 1813 }

	action_a = {
		name = "GOOD"
		command = { type = annex which = SER }
	}
}

#(1813-1820) Serbian Independence
event = {
	id = 3399
	trigger = {
		owned = { province = 355 data = -1 } #Serbia
		NOT = {
			AND = {
				owned = { province = 354 data = -1 } #Banat
				owned = { province = 364 data = -1 } #Bosnia
				owned = { province = 366 data = -1 } #Croatia
				OR = {
					owned = { province = 356 data = -1 } #Bulgaria
					owned = { province = 363 data = -1 } #Kosovo
				}
			}
		}
		NOT = { exists = SER }
	}
	random = no
	country = TUR
	name = "EVENTNAME3399" #Serbian Independence
	desc = "EVENTHIST3399"
	#-#Milo Obrenovic was one of the few leaders of the rebellion that stayed in Serbia to face the vengeful returning Turks. Accordingly, in April 1815 he instigated the Second Serbian Uprising becoming Serbia's absolute leader. \nAfter the death of Karadjordje Petrovic, Obrenovic became leader of Serbia. By 1817 the Turks defeated Milo's armies but not before he negotiated with Marashli-pasha. Milo's diplomacy achieved Serbia's autonomy under the Ottomans leaving him in power though recognizing the Ottoman state. \n \nAfter the Russo-Turkish War of 1828-29, Serbia finally became an internationally recognized principality under Turkish suzerainty and Russian protection.

	date = { day = 20 month = september year = 1813 }
	offset = 1000
	deathdate = { year = 1820 }

	action_a = {
		name = "ACTIONNAME3399A" #Accept a free Serbia
		command = { type = removecore which = 354 } #Banat
		command = { type = removecore which = 355 } #Serbia
		command = { type = removecore which = 363 } #Kosovo
		command = { type = independence which = SER }
		command = { type = domestic which = CENTRALIZATION value = -1 }
		command = { type = sleepevent which = 301090 } #TUR: Serbian Uprisings
	}
	action_b = {
		name = "ACTIONNAME3399B" #Crush the revolt!
		command = { type = removecore which = 354 } #Banat
		command = { type = removecore which = 355 } #Serbia
		command = { type = removecore which = 363 } #Kosovo
		command = { type = revolt which = 355 } #Serbia
		command = { type = revolt which = 355 } #Serbia
		command = { type = revolt which = 363 } #Kosovo
		command = { type = revolt which = 364 } #Bosnia
		command = { type = stability value = -2 }
		command = { type = sleepevent which = 301090 } #TUR: Serbian Uprisings
	}
}

#-----------------------------------------------------------------------------------------------
#Random Events
#-----------------------------------------------------------------------------------------------

#-----------------------------------------------------------------------------------------------
#Fratricide by chegitz guevara

#(1512-1520) Fratricide!
event = {
	id = 301010
	trigger = { monarch = 0139006 } #Selim I
	random = yes
	country = TUR
	name = "EVENTNAME301010" #Fratricide
	desc = "EVENTHIST301010"
	#-#Selim I had his two brothers and five nephews strangeled on his succession. This ensured that there would be no rival claimants to his throne.

	action_a = {
		name = "ACTIONNAME301010A" #Kill them!
		command = { type = stability value = 2 }
	}
}

#(1520-1566) Fratricide!
event = {
	id = 301011
	trigger = { monarch = 0139007 } #Süleyman I
	random = yes
	country = TUR
	name = "EVENTNAME301010" #Fratricide
	desc = "EVENTHIST301011"
	#-#Suleyman I was an only son. This ensured that there would be no rival claimants to his throne.

	action_a = {
		name = "ACTIONNAME301011A" #I have no rivals!
		command = { type = stability value = 2 }
	}
}

#(1566-1574) Fratricide!
event = {
	id = 301012
	trigger = { monarch = 0139008 } #Selim II
	random = yes
	country = TUR
	name = "EVENTNAME301010" #Fratricide
	desc = "EVENTHIST301012"
	#-#Selim II's brothers and nephews had all died or been executed before his succession. This ensured that there would be no rival claimants to his throne.

	action_a = {
		name = "ACTIONNAME301011A" #I have no rivals!
		command = { type = stability value = 2 }
	}
}

#(1574-1595) Fratricide!
event = {
	id = 301013
	trigger = { monarch = 0139009 } #Murad III
	random = yes
	country = TUR
	name = "EVENTNAME301010" #Fratricide
	desc = "EVENTHIST301013"
	#-#Murad III had his brothers and nephews strangeled on his succession. This ensured that there would be no rival claimants to his throne.

	action_a = {
		name = "ACTIONNAME301010A" #Kill them!
		command = { type = stability value = 2 }
	}
}

#(1595-1603) Fratricide!
event = {
	id = 301014
	trigger = { monarch = 0139010 } #Mehmed III
	random = yes
	country = TUR
	name = "EVENTNAME301010" #Fratricide
	desc = "EVENTHIST301014"
	#-#Mehmed III had his nineteen brothers (and more nephews) strangeled on his succession. He also had six of his father's pregnant concubines sewn into sacks and drowned in the Bosporus. This ensured that there would be no rival claimants to his throne. He was the last Sultan to practice the fratricide.

	action_a = {
		name = "ACTIONNAME301010A" #Kill them!
		command = { type = stability value = 2 }
	}
}

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

#First free id: 301140
