#Ak Koyunlu (AKK)

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

#(1419-1467) Shrivanshahs
event = {
	id = 103040
	trigger = {
		owned = { province = 471 data = -1 } #Daghestan
		control = { province = 471 data = -1 } #Daghestan
		NOT = { exists = SHI }
	}
	random = no
	country = AKK
	name = "EVENTNAME103040" #Shrivanshahs
	desc = "EVENTHIST103040"
	#-#The Ak Koyunlu and the Shrivanshahs were typically on very good terms. Various Ak Koyunlu princes found the Shrivanshahs more than willing to provide asylum. Now that we are in possession of their former capital, the former Shrivanshahs request their lands for the maintenance of good relations.

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

	action_a = {
		name = "ACTIONNAME103040A" #Bequeath them their former lands
		command = { type = independence which = SHI } #Shirvan
	}
	action_b = {
		name = "ACTIONNAME103040B" #What was theirs is now rightfully ours!
		command = { type = revolt which = 471 } #Daghestan
		command = { type = revolt which = 471 } #Daghestan
		command = { type = provincetax which = 471 value = -1 } #Daghestan
		command = { type = revoltrisk which = 12 value = 2 }
	}
}

#(1419-1445) A Chance to Release a Kara Koyunlu Pretender
event = {
	id = 103041
	trigger = {
		owned = { province = 489 data = -1 } #Iraq
		control = { province = 489 data = -1 } #Iraq
		NOT = {
			exists = IRA
			countrysize = 4
		}
	}
	random = no
	country = AKK
	name = "EVENTNAME103041" #A Chance to Release a Kara Koyunlu Pretender
	desc = "EVENTHIST103041"
	#-#With the succesful capture of Iraq, the Ak Koyunlu was confronted with two options. They could bequeath the region to a Kara Koyunlu prince and encourage him to go for the Kara Koyunlu throne, or they could with limited resources attempt to rule the province on their own.

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

	action_a = {
		name = "ACTIONNAME103041A" #Release the pretender
		command = { type = independence which = IRA }
		command = { type = trigger which = 350009 } #IRA: An Ak Koyunlu Client State
	}
	action_b = {
		name = "ACTIONNAME103041B" #We shall keep Iraq for ourselves
		command = { type = revolt which = 508 } #Basrah
		command = { type = revolt which = 508 } #Basrah
		command = { type = provincetax which = 508 value = -1 } #Basrah
		command = { type = revoltrisk which = 12 value = 2 }
	}
}

#(1420-1425) Timurid Assistance
event = {
	id = 103001 #triggered by TIM_296700 A
	random = no
	country = AKK
	name = "EVENTNAME103001" #Timurid Assistance
	desc = "EVENTHIST103001"
	#-#The Ak Koyunlu state was helped immensely when Timur granted Kara Yülük the captured cities of Malatya and Diyarbakir. Because of this, Kara Yülük owed a great debt of gratitude to the Empire. During the reign of Shâh Rûkh, the two leaders often fought alongside one another in their efforts to annihilate the Kara Koyunlu.

	action_a = {
		name = "ACTIONNAME103001A" #How fortunate
		command = { type = INF which = -2 value = 2000 }
		command = { type = relation which = TIM value = 50 }
	}
}

#(1435-1440) Death of Kara Yülük Uthman
event = {
	id = 103000
	trigger = {
		monarch = 02501 #Ali Beg
	}
	random = no
	country = AKK
	name = "EVENTNAME103000" #Death of Kara Yülük Uthman
	desc = "EVENTHIST103000"
	#-#Kara Yülük Uthman had managed to unite all the diseparate Ak Koyunlu countries into one political entity. However his death brought upon a struggle for sovereignty between his two sons, Ali Beg and Hamza. Ali Beg was crown prince and was given support by both Shah Rukh and the Mamluk Sultan. Despite this, Hamza then governor of Mardin continued his quest to become ruler.

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

	action_a = {
		name = "ACTIONNAME103000A" #Chaos reigns!
		command = { type = revolt which = -1 }
		command = { type = revoltrisk which = 34 value = 2 }
		command = { type = stability value = -4 }
		command = { type = desertion which = -2 value = 5000 }
	}
}

#(1438-1444) Rise of Hamza
event = {
	id = 103002
	trigger = {
		monarch = 02502 #Hamza
	}
	random = no
	country = AKK
	name = "EVENTNAME103002" #Rise of Hamza
	desc = "EVENTHIST103002"
	#-#Despite being the crown prince and having received aid from the Mamluks, Ali Beg was unable to keep his position, once aid from foreign powers trickled down to naught. In fleeing to Syria, he left rulership to Hamza who quickly filled in the power vacuum. Like that of his deposed brother, Hamza's reign was one of instability with rival claimants abound and most famously, an upstart Yaqub in Erzincan.

	date = { day = 1 month = january year = 1438 }
	offset = 5
	deathdate = { day = 1 month = january year = 1444 }

	action_a = {
		name = "ACTIONNAME103002A" #When will it end?
		command = { type = revolt which = -1 }
		command = { type = revoltrisk which = 70 value = 3 }
		command = { type = stability value = -5 }
		command = { type = desertion which = -1 value = 3000 }
		command = { type = desertion which = -1 value = 3000 }
	}
}

#(1443-1444) Rise of Jahangir
event = {
	id = 103004
	trigger = {
		monarch = 02503 #Jahangir
	}
	random = no
	country = AKK
	name = "EVENTNAME103004" #Rise of Jahangir
	desc = "EVENTHIST103004"
	#-#With the death of Hamza, his nephew, Jahangir rose to power. The first few years of his reign were plagued by unrest, not unlike what occurred upon the accessions of his uncle and his father, Ali Beg, before him. Luckily for him, none of his rivals had any real power.

	date = { day = 1 month = december year = 1443 }
	offset = 10
	deathdate = { day = 29 month = december year = 1444 }

	action_a = {
		name = "ACTIONNAME103004A" #Another one...
		command = { type = revoltrisk which = 24 value = 1 }
	}
}

#(1445-1450) Elvend, a Kara Koyunlu Prince
event = {
	id = 103003
	trigger = {
		NOT = {
			exists = IRA
			alliance = { country = QAR country = AKK }
			war = { country = QAR country = AKK }
		}
		monarch = 02503 #Jahangir
		exists = QAR
	}
	random = no
	country = AKK
	name = "EVENTNAME103003" #Elvend, a Kara Koyunlu Prince
	desc = "EVENTHIST103003"
	#-#Jahangir's relations with the Kara Koyunlu were ever strained, as upon his accession various members of the Ak Koyunlu dynasty petitioned Jahan Shah for help in deposing their new ruler. However, relations were to hit a new low when Elvend, a Kara Koyunlu prince who had recently lost his rulership of Baghdad, came to Jahangir seeking asylum. Jahan Shah, recognizing the security risk of allowing Elvend to remain free, demanded that Jahangir surrender him to Kara Koyunlu control.

	date = { day = 1 month = january year = 1445 }
	offset = 50
	deathdate = { day = 29 month = december year = 1450 }

	action_a = {
		name = "ACTIONNAME103003A" #We refuse to hand him over!
		command = { type = relation which = QAR value = -300 }
		command = { type = breakdynastic which = QAR }
		command = { type = breakvassal which = QAR }
		command = { type = casusbelli which = QAR value = 24 }
		command = { type = trigger which = 266007 } #QAR: Elvend seeks asylum in Diyarbakir
	}
	action_b = {
		name = "ACTIONNAME103003B" #Such a grevious insult demands action!
		command = { type = war which = QAR }
		command = { type = relation which = QAR value = -400 }
		command = { type = trigger which = 266007 } #QAR: Elvend seeks asylum in Diyarbakir
	}
	action_c = {
		name = "ACTIONNAME103003C" #In the spirit of conciliation we'll take a ransom
		command = { type = relation which = QAR value = 50 }
		command = { type = stability value = -1 }
		command = { type = treasury value = 50 }
		command = { type = trigger which = 266008 } #QAR: Elvend seeks asylum in Diyarbakir
	}
}

#(1445-1455) Reconciliation
event = {
	id = 103007 #triggered by QAR_266010
	random = no
	country = AKK
	name = "EVENTNAME103007" #Reconciliation
	desc = "EVENTHIST103007"
	#-#Pursuant to the end of the war, Jahan Shah and Jahangir made the first steps to establishing good relations between the two Koyunlu nations. As part of the reconiliation, the daughter of Jahangir was married to Muhammed Mizra, son of Jahan Shah.

	action_a = {
		name = "ACTIONNAME103007A" #Its a start
		command = { type = relation which = QAR value = 25 }
	}
}

#(1453-1457) Usun's Betrayal
event = {
	id = 103005
	trigger = {
		monarch = 02503 #Jahangir
		atwar = no
	}
	random = no
	country = AKK
	name = "EVENTNAME103005" #Usun's Betrayal
	desc = "EVENTHIST103005"
	#-#Jahangir relied heavily on the military capabilities of his brother Usun Hasan during his conflicts with Jahan Shah of the Kara Koyunlu. Tired of doing all the grunt work for his brother, Usun sneak attacked Diyarbakir in 1453. The next few years of Jahangir's rule would be chaotic with his best asset having become a foe.

	date = { day = 1 month = january year = 1453 }
	offset = 10
	deathdate = { day = 1 month = february year = 1457 }

	action_a = {
		name = "ACTIONNAME103005A" #Damn him!
		command = { type = revolt which = -2 }
		command = { type = revolt which = -2 }
		command = { type = revolt which = -2 }
		command = { type = revoltrisk which = 36 value = 7 }
		command = { type = stability value = -6 }
	}
}

#(1456-1459) Rise of Usun
event = {
	id = 103006
	trigger = {
		monarch = 02504 #Usun Hasan
	}
	random = no
	country = AKK
	name = "EVENTNAME103006" #Rise of Usun
	desc = "EVENTHIST103006"
	#-#After the defeat of both his brothers and the forces of the Kara Koyunlu that were sent to aid them, Usun pronounced himself ruler of the Ak Koyunlu. His reign would herald new prosperity for the White Sheep Turks, bringing the state to eclipse and eventually surpass the might of the Kara Koyunlu. Usun Hasan would also strive to reclaim its title as an Anatolian power, by meddling frequently in the affairs of the Ottomans.

	date = { day = 1 month = february year = 1456 }
	offset = 5
	deathdate = { day = 29 month = december year = 1459 }

	action_a = {
		name = "ACTIONNAME103006A" #A New Ak Koyunlu!
		command = { type = relation which = QAR value = -400 }
		command = { type = breakdynastic which = QAR }
		command = { type = breakvassal which = QAR }
		command = { type = relation which = KAR value = 50 }
		command = { type = relation which = DUL value = -50 }
		command = { type = relation which = TUR value = -50 }
		command = { type = revoltrisk which = 36 value = -2 }
		#command = { type = AI which = "AKK-Usun.txt" }
	}
}

#(1466-1485) The Might of Jahan Shah
event = {
	id = 103024 #triggered by QAR_266011 A
	random = no
	country = AKK
	name = "EVENTNAME103024" #The Might of Jahan Shah
	desc = "EVENTHIST103024"
	#-#Under Jahan Shah the Kara Koyunlu extended greatly their domain, annexing portions of Iraq and the eastern coast of the Arabian Peninsula as well as Timurid western Iran. In 1466 Jahan Shah attempted to overtake Ak Koyunlu. This attempt ended in Jahan Shah's defeat and death and within two years the Kara Koyunlu had succumbed to the superior Ak Koyunlu forces, commanded by Uzun Hasan. In the following years the Ak Koyunlu managed to annex territories in Azerbaijan and Iraq and occupy a great deal of Iran.

	action_a = {
		name = "ACTIONNAME103024A" #We aren't afraid!
		command = { type = INF which = -2 value = 5000 }
		command = { type = addcore which = 531 } #Hamadan
		command = { type = addcore which = 530 } #Tabriz
		command = { type = addcore which = 527 } #Kerman
		command = { type = addcore which = 489 } #Iraq
		command = { type = addcore which = 488 } #Kirkuk
	}
}
#(1466-1485) The Might of Usun - ahistorical event
event = {
	id = 103023 #triggered by QAR_266011 B
	random = no
	country = AKK
	name = "EVENTNAME103023" #The Might of Usun
	desc = "EVENTHIST103023"
	#-#Although the neighboring Kara Koyunlu state was powerful, Usun began to make designs on their territory.

	action_a = {
		name = "ACTIONNAME103023A" #We shall form an empire!
		command = { type = INF which = -2 value = 5000 }
		command = { type = addcore which = 531 } #Hamadan
		command = { type = addcore which = 530 } #Tabriz
		command = { type = addcore which = 527 } #Kerman
		command = { type = addcore which = 489 } #Iraq
		command = { type = addcore which = 488 } #Kirkuk
		command = { type = casusbelli which = QAR value = 60 }
	}
}

#(1468-1490) The End of the Black Sheep
event = {
	id = 103025 #triggered by QAR_266016 / QAR_266025
	random = no
	country = AKK
	name = "EVENTNAME103025" #The End of the Black Sheep
	desc = "EVENTHIST103025"
	#-#After the defeat of Jahan Shah, the Kara Koyunlu tried to rally around Hasan Ali. However, their attempts proved in vain, and the were absorbed into Usun Hasan's growing empire.

	action_a = {
		name = "ACTIONNAME103025A" #We win!
		command = { type = stability value = 1 }
		command = { type = vp value = 100 }
		command = { type = inherit which = QAR }
		command = { type = addcore which = 534 } #Fars
		command = { type = addcore which = 533 } #Isfahan
		command = { type = addcore which = 529 } #Tabaristan
		command = { type = addcore which = 528 } #Lut
	}
}

#(1468-1500) Ak Koyunlu in Azerbaijan
event = {
	id = 103014
	trigger = {
		NOT = { exists = QAR }
		owned = { province = 487 data = -1 } #Azerbaijan
		control = { province = 487 data = -1 } #Azerbaijan
	}
	random = no
	country = AKK
	name = "EVENTNAME103014" #Ak Koyunlu in Azerbaijan
	desc = "EVENTHIST103014"
	#-#With the destruction of the Kara Koyunlu state, the Ak Koyunlu were free to move their capital to the strategically placed city of Tabriz in the province of Azerbaijan.

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

	action_a = {
		name = "ACTIONNAME103014A" #Make Tabriz our capital!
		command = { type = capital which = 487 } #Azerbaijan
		command = { type = stability value = 1 }
		command = { }
	}
	action_b = {
		name = "ACTIONNAME103014B" #Our current capital suits us fine
		command = { type = infra value = 300 }
	}
}

#(1468-1500) Ottoman recognition - Ahistorical
event = {
	id = 103016 #triggered by TUR_301129 B
	random = no
	country = AKK
	name = "EVENTNAME103016" #Ottoman recognition
	desc = "EVENTHIST103016"
	#-#The Ottoman sultan sent his congratulations on vanquishing the Kara Koyunlu.

	action_a = {
		name = "WONDERFUL"
		command = { type = relation which = TUR value = 50 }
		command = { type = badboy value = -1 }
	}
}
#(1468-1500) Mamluk recognition - Ahistorical
event = {
	id = 103017 #triggered by MAM_219017 B
	random = no
	country = AKK
	name = "EVENTNAME103017" #Mamluk recognition
	desc = "EVENTHIST103017"
	#-#The Mamluk sultan sent his congratulations on vanquishing the Kara Koyunlu.

	action_a = {
		name = "WONDERFUL"
		command = { type = relation which = MAM value = 50 }
		command = { type = badboy value = -1 }
	}
}

#(1488) The Question of Sultan Haidar
event = {
	id = 103013
	trigger = {
		owned = { province = 487 data = -1 } #Azerbaijan
	}
	random = no
	country = AKK
	name = "EVENTNAME103013" #The Question of Sultan Haidar
	desc = "EVENTHIST103013"
	#-#Since the reign of Usun Hasan, the Ak Koyunlu and Safavids were tied together by close family ties. Originally a religious order, under the tenure of Sheikh Junaid, the Safaviyeh order had begun to acquire temporal power. Exiled from his base of operations in Ardabil by Kara Koyunlu Jahan Shah, Junaid sought refuge in the court of Usun Hasan. As testament to their friendship and Junaid's temporal importance, Usun Hasan gave away his sister, Khadija Begum, in marriage. Likewise, Junaid's son, Haidar, would go on to marry a daughter of Usun Hasan. By the reign of Yaqub, Haidar's military and political strength had grown to such heights that Yaqub had begun to fear the power of his brother-in-law. In 1488, Haidar obtained the permission from the Shirvanshah to march through his territories to make war on the Circassians. However, Haidar turned to attack the capital of Shirvan to avenge the death of his father, Junaid, who was killed in 1460 at the behest of the Shirvanshah. The ruler of Shirvan wrote to Yaqub begging him for assistance. He warned that Haidar would not 'be satisfied with such a meagre empire' and that 'on the contrary, it will merely whet his appetite.'

	date = { day = 1 month = march year = 1488 }
	offset = 15
	deathdate = { day = 29 month = may year = 1488 }

	action_a = {
		name = "ACTIONNAME103013A" #Send troops to chase Haidar away
		command = { type = desertion which = -1 value = 4000 }
		command = { type = sleepevent which = 103015 } #AKK: Safavid Takeover
	}
	action_b = {
		name = "ACTIONNAME103013B" #He is no threat to us
		command = { }
	}
}

#(1488-1493) Safavid Takeover - Ahistorical
event = {
	id = 103015
	trigger = {
		NOT = {
			exists = PER
			event = 266023 #QAR: Safavid Takeover
		}
		owned = { province = 487 data = -1 } #Azerbaijan
		control = { province = 487 data = -1 } #Azerbaijan
		event = 103013 #AKK: The Question of Sultan Haidar
	}
	random = no
	country = AKK
	name = "EVENTNAME103015" #Safavid Takeover
	desc = "EVENTHIST103015"
	#-#Without the support of the Ak Koyunlu, Haidar was able to quickly capture Shamakhi, capital of Shirvan. As the Shirvanshah had forseen, Haidar was not content with his small kingdom and began to eye the Ak Koyunlu empire. With his own independent base of supporters and connections to the ruling Ak Koyunlu dynasty, through his mother and wife, he had a strong claim to the throne. Concerned about his nominal vassal's sudden territory gains, Yaqub summoned Haidar to meet him in Tabriz where he intended to public rebuke him for taking Shirvan. Warned of the Sultan's intentions, Haidar rallied his supporters and marched on the Sultan's caravan as it made it's way to the capital. Upon capturing Yaqub, Haidar had him blinded and deposed, citing the Sultan's indifference for warfare as unfitting for the ruler of a burgeoning empire. The next day, Haidar had the khutbah read in his name, as he stylized himself Sultan Haidar. Although not thrilled his coup détat, the majority of Ak Koyunlu tribes were won over by his show of might. The turkmen tribes were now in the hands of the Safavids.

	date = { day = 1 month = may year = 1488 }
	offset = 20
	deathdate = { day = 7 month = december year = 1493 }

	action_a = {
		name = "ACTIONNAME103015A" #We should have listened to the Shirvanshah!
		command = { type = flagname which = "" }
		command = { type = country which = PER }
		command = { type = capital which = 487 } #Azerbaijan
		command = { type = remove_countryculture which = kurdish }
		command = { type = add_countryculture which = persian }
		command = { type = add_countryculture which = kurdish }
		command = { type = revolt which = -2 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revoltrisk which = 24 value = 4 }
		command = { type = stability value = -1 }
		command = { type = domestic which = centralization value = -1 }
		command = { type = trigger which = 254020 } #PER: The Accession of the Safavids
		command = { type = sleepevent which = 266023 } #QAR: Safavid Takeover
	}
}

#(1490) Death of Yaqub
event = {
	id = 65051
	trigger = {
		NOT = { domestic = { type = centralization value = 6 } }
	}
	random = no
	country = AKK
	name = "EVENTNAME65051" #Death of Sultan Yaqub
	desc = "EVENTHIST65051"
	#-#Yaqub Khan, the last strong ruler of Ak Koyunlu has died in may of 1492. His successor, Baysunqur, was challenged immediately by the rest of Yaqub's relatives, and the struggle for power began which continued well into 16th century and left most of Western Iran devastated and depopulated.

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

	action_a = {
		name = "ACTIONNAME65051A" #Let the struggle begin
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -2 }
		command = { type = provincetax which = -1 value = -1 }
		command = { type = provincetax which = -1 value = -1 }
		command = { type = provincetax which = -1 value = -1 }
		command = { type = domestic which = centralization value = -3 }
		command = { type = revoltrisk which = 90 value = 7 }
		command = { type = stability value = -6 }
	}
}

#-----------------------------------------------------------------------------------------------
#Partition of the Ak Koyunlu Empire events

#(1497-1498) Confederate Clan Wars
event = {
	id = 103030
	trigger = {
		NOT = { domestic = { type = centralization value = 6 } }
	}
	random = no
	country = AKK
	name = "EVENTNAME103030" #Confederate Clan Wars
	desc = "EVENTHIST103030"
	#-#In June of 1497, Rustam lost control of the Ak Koyunlu when Husayn 'Ali-Khani took Tabriz and proclaimed it for Ahmad, a young pretender released by Bayezid II. Ahmad ruled for little more than six months in a battle against Ayba-Sultan. After his death, multiple powers, including Ayba-Sultan would raise various claimants across the empire. Known as the Confederate Clan Wars, battles would wrack the empire until only two claimants remained.

	date = { day = 14 month = december year = 1497 }
	offset = 10
	deathdate = { day = 29 month = january year = 1498 }

	action_a = {
		name = "ACTIONNAME103030A" #Is the empire to crumble?
		command = { type = revolt which = 486 } #Nuyssaybin
		command = { type = revolt which = 488 } #Kirkuk
		command = { type = revolt which = 489 } #Iraq
		command = { type = revolt which = 527 } #Kerman
		command = { type = revolt which = 534 } #Fars
		command = { type = revolt which = 533 } #Isfahan
		command = { type = revolt which = -2 }
		command = { type = domestic which = centralization value = -1 }
		command = { type = revoltrisk which = 24 value = 15 }
		command = { type = stability value = -5 }
	}
}

#(1500) Treaty of Partition
event = {
	id = 103031
	trigger = {
		OR = {
			event = 103030
			countrysize = 4
			owned = { province = 489 data = -1 } #Iraq
			NOT = { domestic = { type = centralization value = 6 } }
		}
	}
	random = no
	country = AKK
	name = "EVENTNAME103031" #Treaty of Partition
	desc = "EVENTHIST103031"
	#-#By the summer 1500, only two claimants to the throne of the empire remained: Alwand in Tabriz, and Sultan Murad of Shiraz. After disposing of Alwand's brother, Sultan Murad made camp in the northwestern frontier of Persian Iraq. With neither side attempting to force the issue, the dispute was eventually submitted to arbitration. A treaty was drawn up that divide the Ak Koyunlu empire at the Qizil Uzan river, between the two pretenders. Alwand accorded the environs of Azerbaijan, Diyarbakir and Arminiya, while Sultan Murad received the two Iraqs, Kerman, and Fars. With this decrease in power, the Ak Koyunlu was unable to check the strength of Dulkadir or the up and coming Ismail of Safavid origin.

	date = { day = 1 month = september year = 1500 }
	offset = 15
	deathdate = { day = 29 month = november year = 1500 }

	action_a = {
		name = "ACTIONNAME103031A" #A resolution at last, but at a terrible price
		command = { type = independence which = IRA } #Iraq
		command = { type = independence which = DUL } #Dulkadir
		command = { type = removecore which = 534 } #Fars
		command = { type = removecore which = 533 } #Isfahan
		command = { type = removecore which = 531 } #Hamadan
		command = { type = removecore which = 530 } #Tabriz
		command = { type = removecore which = 529 } #Tabaristan
		command = { type = removecore which = 528 } #Lut
		command = { type = removecore which = 527 } #Kerman
		command = { type = removecore which = 489 } #Iraq
		command = { type = removecore which = 488 } #Kirkuk
		command = { type = domestic which = centralization value = -2 }
		command = { type = revoltrisk which = 24 value = 3 }
		command = { type = trigger which = 350002 } #IRA: Treaty of Partition
	}
}
#(1500) Murad's domain
event = {
	id = 103033 #triggered by IRA_350002
	random = no
	country = AKK
	name = "EVENTNAME103033" #Murad's domain
	desc = "EVENTHIST103033"
	#-#According to the Treaty of Partition, Sultan Murad was to receive the two Iraqs, Kerman, and Fars.

	action_a = {
		name = "ACTIONNAME103033A" #Grr...
		command = { type = cedeprovince which = IRA value = 488 } #Kirkuk
		command = { type = cedeprovince which = IRA value = 508 } #Basrah
		command = { type = cedeprovince which = IRA value = 531 } #Hamadan
		command = { type = cedeprovince which = IRA value = 532 } #Awhaz
		command = { type = cedeprovince which = IRA value = 533 } #Isfahan
		command = { type = cedeprovince which = IRA value = 534 } #Fars
		command = { type = cedeprovince which = IRA value = 535 } #Hormouz
		command = { type = cedeprovince which = IRA value = 527 } #Kerman
		command = { type = cedeprovince which = IRA value = 528 } #Lut
		command = { type = cedeprovince which = IRA value = 529 } #Tabaristan
	}
}
#-----------------------------------------------------------------------------------------------

#(1500-1510) Ismail of the Safavids
event = {
	id = 103010
	trigger = {
		NOT = { exists = PER }
	}
	random = no
	country = AKK
	name = "EVENTNAME103010" #Ismail of the Safavids
	desc = "EVENTHIST103010"
	#-#In August of 1501, Sheikh Ismail of the Safavids departed from Erzincan with the goal of securing irvan in order to establish a Safavid state. Despite their superior equipment and numbers, the army of irvan found itself defeated by the religious zeal of Ismail's followers. After his success in irvan, Ismail moved to conquer the castle of Gulistan. Having caught wind of the Sheikh's plans, Alwand, ruler of the northeastern tribes of the Ak Koyunlu decided to meet this foe on the battlefield

	date = { day = 1 month = december year = 1500 }
	offset = 0
	deathdate = { day = 1 month = december year = 1510 }

	action_a = {
		name = "ACTIONNAME103010A" #Most unfortunate
		command = { type = revolt which = 487 } #Azerbaijan
		command = { type = revolt which = 487 } #Azerbaijan
		command = { type = revolt which = 487 } #Azerbaijan
		command = { type = revolt which = 487 } #Azerbaijan
		command = { type = revolt which = 473 } #Armenia
		command = { type = revolt which = -1 }
		command = { type = province_revoltrisk which = 487 value = 10 } #Azerbaijan
		command = { type = desertion which = 487 value = 7000 } #Azerbaijan
		command = { type = desertion which = -1 value = 3000 }
		command = { type = desertion which = -1 value = 3000 }
	}
}

#(1501-1515) Safavids in Tabriz
event = {
	id = 103011
	trigger = {
		owned = { province = 486 data = -1 } #Nuyssaybin
		control = { province = 486 data = -1 } #Nuyssaybin
		event = 103010 #AKK: Ismail of the Safavids
	}
	random = no
	country = AKK
	name = "EVENTNAME103011" #Safavids in Tabriz
	desc = "EVENTHIST103011"
	#-#Unfortunately for Alwand, a similar situation, to the battles for irvan, occurred when his 'superior' forces encountered those of Ismail. Alwand's defeat at Shurur, allowed 15 year old Ismail to march victoriously into Tabriz and finally found the Safavid state. Meanwhile Alwand retreated to Diyarbakir in hopes of gathering a new force.

	date = { day = 1 month = august year = 1501 }
	offset = 10
	deathdate = { day = 29 month = december year = 1515 }

	action_a = {
		name = "ACTIONNAME103011A" #Our capital is lost!
		command = { type = province_revoltrisk which = 487 value = -10 } #Azerbaijan
		command = { type = capital which = 486 } #Nuyssaybin
		command = { type = stability value = -5 }
		command = { type = desertion which = -1 value = 10000 }
		command = { type = desertion which = -1 value = 10000 }
		command = { type = desertion which = -1 value = 10000 }
		command = { type = desertion which = 487 value = 5000 } #Azerbaijan
		command = { type = vp value = -100 }
		command = { type = independence which = PER } #Safavid Empire
		command = { type = trigger which = 254300 } #PER setup event, triggers event for AKK to cede provinces #PER: Ismail's Ambition
	}
}
#(1501-1515) The Growing Safavid Empire
event = {
	id = 103012 #triggered by PER_254300
	random = no
	country = AKK
	name = "EVENTNAME103012" #The Growing Safavid Empire
	desc = "EVENTHIST103012"
	#-#Alwand's retreat to Diyarbakir, left the rest of his lands defenseless to Ismail's forces.

	action_a = {
		name = "ACTIONNAME103012A" #Is all lost?
		command = { type = cedeprovince which = PER value = 488 } #Kirkuk
		command = { type = cedeprovince which = PER value = 471 } #Daghestan
		command = { type = cedeprovince which = PER value = 472 } #Iveria
		command = { type = cedeprovince which = PER value = 473 } #Armenia
		command = { type = breakvassal which = PER }
	}
}

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

#First free id: 103018-103022 - 103026-103029 - next: 103032
