#################################
#         By Cool-Toxic         #
#################################

event = {
	id = 864904
	random = no
	country = TIM
	name = "The Rise of Timur Lenk"
	desc = "Timur reduced the Chagatai khans to the position of straw men, who were deferred to in theory but in reality ignored, while Timur ruled in their name. During this period Timur and his brother-in-law Husayn, at first fellow fugitives and wanderers in joint adventures full of interest and romance, became rivals and antagonists. At the close of 1369 Husayn was assassinated and Timur, having been formally proclaimed sovereign at Balkh, mounted the throne at Samarkand, the capital of his dominions."
	style = 3
	
	date = { day = 1 month = january year = 1360 }
	offset = 30
	deathdate = { day = 1 month = january year = 1405 }

	action_a ={
		name = "Soon they'll be under me!"
		command = { type = INF which = -2 value = 20000 }
		command = { type = CAV which = -2 value = 20000 }
		command = { type = breakvassal  which = CHG }
		command = { type = addcore which = 1600 }
		command = { type = addcore which = 1599 }
		command = { type = addcore which = 1592 }
		command = { type = addcore which = 1534 }
		command = { type = addcore which = 1532 }
		command = { type = addcore which = 1594 }
		command = { type = addcore which = 1598 }
		command = { type = addcore which = 522 }
		command = { type = addcore which = 1797 }
		command = { type = addcore which = 1800 }
		command = { type = addcore which = 1799 }
		command = { type = addcore which = 1798 }
		command = { type = addcore which = 1997 }
		command = { type = addcore which = 1520 }
		command = { type = addcore which = 1521 }
		command = { type = addcore which = 1522 }
		command = { type = addcore which = 1994 }
		command = { type = addcore which = 1543 }
		command = { type = addcore which = 1524 }
		command = { type = addcore which = 1525 }
		command = { type = addcore which = 1527 }
		command = { type = addcore which = 1526 }
		command = { type = addcore which = 1528 }
		command = { type = addcore which = 538 }
		command = { type = addcore which = 537 }
		command = { type = addcore which = 536 }
		command = { type = addcore which = 1529 }
		command = { type = addcore which = 1530 }
		command = { type = addcore which = 1531 }
		command = { type = addcore which = 1591 }
		command = { type = addcore which = 1801 }
		command = { type = addcore which = 1453 }
		command = { type = addcore which = 1454 }
		command = { type = addcore which = 1609 }
		command = { type = addcore which = 1611 }
		command = { type = addcore which = 1806 }
		command = { type = addcore which = 1961 }
		command = { type = addcore which = 1959 }
		command = { type = addcore which = 477 }
		command = { type = addcore which = 476 }
		command = { type = addcore which = 482 }
		command = { type = addcore which = 485 }
		command = { type = addcore which = 483 }
		command = { type = addcore which = 474 }
		command = { type = addcore which = 475 }
		command = { type = addcore which = 473 }
		command = { type = addcore which = 486 }
		command = { type = addcore which = 491 }
		command = { type = addcore which = 490 }
		command = { type = addcore which = 489 }
		command = { type = addcore which = 487 }
		command = { type = addcore which = 472 }
		command = { type = addcore which = 469 }
		command = { type = addcore which = 470 }
		command = { type = addcore which = 488 }
		command = { type = addcore which = 1533 }
		command = { type = addcore which = 508 }
		command = { type = addcore which = 520 }
		command = { type = addcore which = 523 }
		command = { type = addcore which = 524 }
		command = { type = addcore which = 525 }
		command = { type = addcore which = 526 }
		command = { type = addcore which = 527 }
		command = { type = addcore which = 528 }
		command = { type = addcore which = 529 }
		command = { type = addcore which = 530 }
		command = { type = addcore which = 531 }
		command = { type = addcore which = 532 }
		command = { type = addcore which = 533 }
		command = { type = addcore which = 534 }
		command = { type = addcore which = 535 }

	}

}

event = {
	id = 864900 # Triggered by U35 864801B
	random = no
	country = TIM
	name = "Timur Lenk's Conquest"
	desc = "After the death of Abu Sa'id, ruler of the Ilkhanid Dynasty, in 1335, there was a power vacuum in the Persian Empire. In 1383 Timur started the military conquest of Persia. He captured Herat, Khorasan and all eastern Persia to 1385 and massacred almost all inhabitants of Neishapur and other Iranian cities."
	style = 1

	action_a ={
		name = "Let's move on to the next nation!"
		command = { type = inherit   which = U35 }
		command = { type = war  which = STE } 
		command = { type = CAV   which = -2 value = 10000 }
		command = { type = population   which = 529 value = -5000 } 
		command = { type = population   which = 1530 value = -5000 }
		command = { type = population   which = 528 value = -5000 }
                command = { type = revoltrisk   which = 12 value = 3 }
                command = { type = treasury   value = 500 }
		command = { type = stability value = 1 }
		command = { type = badboy   value = 10 }
	}
}

event = {

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

	date = { day = 1 month = january year = 1363 }
	offset = 500
	deathdate = { day = 1 month = january year = 1385 }

	action_a ={
		name = "Okay"
                command = { type = ai   which = timurid_1363-1385.ai }
	}
}

event = {

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

	date = { day = 1 month = january year = 1385 }
	offset = 500
	deathdate = { day = 1 month = january year = 1394 }

	action_a ={
		name = "Okay"
                command = { type = ai   which = timurid_1385_1394.ai }
	}
}

event = {

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

	date = { day = 1 month = january year = 1394 }
	offset = 500
	deathdate = { day = 1 month = january year = 1405 }

	action_a ={
		name = "Okay"
                command = { type = ai   which = timurid_1394-1405.ai }
	}
}

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

event = {

	id = 3997
	trigger = {
			exists = PER
		}

	random = no
         country = TIM
	name = "EVENTNAME3999"
	desc = "EVENTHIST3999"
	style = 2

	date = { day = 1 month = january year = 1440 }
	offset = 30
	deathdate = { day = 1 month = january year = 1800 }

         action_a ={				#The Safavid Heresy#
                 name = "ACTIONNAME3999A"
                 command = { type = secedeprovince which = PER value = 525 }
                 command = { type = secedeprovince which = PER value = 526 }
                 command = { type = secedeprovince which = PER value = 527 }
                 command = { type = secedeprovince which = PER value = 528 }
                 command = { type = secedeprovince which = PER value = 529 }
                 command = { type = secedeprovince which = PER value = 531 }
                 command = { type = secedeprovince which = PER value = 532 }
                 command = { type = secedeprovince which = PER value = 533 }
                 command = { type = secedeprovince which = PER value = 534 }
                 command = { type = secedeprovince which = PER value = 535 }
      }
     action_b = {				#Crush Them#
                 name = "ACTIONNAME3999B"
                 command = { type = stability value = -6 }
                 command = { type = cash value = -1000 }
	}

}

#Ulugh Beg's Observitory#
# By Demetrios and Hvard

event = {
	id = 3920
	random = no
	country = TIM
	name = "EVENTNAME3920"
	desc = "EVENTHIST3920"
	style = 1
	
	date = { day = 1 month = january year = 1448 }
	offset = 300
	deathdate = { day = 1 month = january year = 1449 }
	
	action_a ={        #Build it!#
		name = "ACTIONNAME3920A"
		command = { type = gainmanufactory  which = 1592 value = luxury }
		command = { type = stability value = -3 }
		command = { type = cash value = -300 }
		command = { type = domestic which = innovative value = 1 }
	}
	
	action_b = {     #We don't have the time or the money for such foolishness!#
		name = "ACTIONNAME3920B"
		command = { type = stability value = 2 }
		command = { type = domestic which = innovative value = -3 }
	}
}

#The Disintegration of the Timurid Empire#
event = {

	id = 3688
	random = no 
	country = TIM
	name = "EVENTNAME3688"
	desc = "EVENTHIST3688"
	style = 1
	
	date = { day = 1 month = october year = 1450 }
	offset = 364
	deathdate = { day = 1 month = may year = 1490 }

	action_a ={
		name = "ACTIONNAME3688A"	#Attack all traitors#
		command = { type = revoltrisk which = 588 value = 8 } # Tough!
		command = { type = revolt which = 534 }
		command = { type = revolt which = 534 }
		command = { type = revolt which = 535 }
		command = { type = revolt which = 535 }
		command = { type = revolt which = 1529 }
		command = { type = revolt which = 1530 }
		command = { type = desertion which = -1 value = 8000 }
		command = { type = desertion which = -1 value = 10000 }
		command = { type = desertion which = -1 value = 7000 }
		command = { type = stability value = -8 }
		command = { type = vp value = 600 }
		command = { type = relation which = AKK value = -400 }
		command = { type = relation which = QAR value = -400 }
		command = { type = relation which = UZB value = -400 }
	}
	action_b ={
		name = "ACTIONNAME3688B"	#Bribe all traitors#
		command = { type = revoltrisk which = 12 value = 4 }
		command = { type = treasury value = -2100 }
		command = { type = inflation value = 30 }
		command = { type = stability value = -6 }
		command = { type = relation which = AKK value = -400 }
		command = { type = relation which = QAR value = -400 }
		command = { type = relation which = UZB value = -400 }
	}
}

#Ismail's Resurrection of Persia#
# If Persia is still held by the Timurids around 1500.
event = {
	id = 3558
	trigger = {
		owned = {
			province = 487 # Tabaristan
			data = -1
		}
		NOT = {
			exists = PER
			stability = 1 # Lower than 1
		}
	}
	random = no
	country = TIM
	name = "EVENTNAME3558"
	desc = "EVENTHIST3558"
	style = 1

	date = { day = 1 month = january year = 1497 }
	offset = 30
	deathdate = { day = 1 month = january year = 1530 }

	action_a ={ # Crush the Shiite rebels
		name = "ACTIONNAME3558A"
		command = { type = revolt which = 487 }
		command = { type = revolt which = 487 }
		command = { type = revolt which = 508 }
		command = { type = revolt which = 525 }
		command = { type = revolt which = 526 }
		command = { type = revolt which = 527 }
		command = { type = revolt which = 528 }
		command = { type = revolt which = 529 }
		command = { type = revolt which = 529 }
		command = { type = revolt which = 530 }
		command = { type = revolt which = 530 }
		command = { type = revolt which = 531 }
		command = { type = revolt which = 532 }
		command = { type = revolt which = 533 }
		command = { type = revolt which = 533 }
		command = { type = revolt which = 534 }
		command = { type = revolt which = 535 }
		command = { type = revolt which = 1529 }
		command = { type = revolt which = 1530 }
		command = { type = stability value = -2 }
	}
	action_b ={ # Negotiate with Ismail
		name = "ACTIONNAME3558B"
		command = { type = revolt which = 487 }
		command = { type = revolt which = 487 }
		command = { type = revolt which = 529 }
		command = { type = revolt which = 529 }
		command = { type = revolt which = 530 }
		command = { type = revolt which = 530 }
		command = { type = revolt which = 531 }
		command = { type = revolt which = 532 }
		command = { type = revolt which = 533 }
		command = { type = revolt which = 533 }
		command = { type = stability value = -6 }
	}
}

# Persia is Resurrected
event = {
	id = 3818
	trigger = {
		exists = PER
		OR = {
			owned = { province = 487 data = -1 }
			owned = { province = 525 data = -1 }
			owned = { province = 526 data = -1 }
			owned = { province = 527 data = -1 }
			owned = { province = 528 data = -1 }
			owned = { province = 529 data = -1 }
			owned = { province = 530 data = -1 }
			owned = { province = 531 data = -1 }
			owned = { province = 532 data = -1 }
			owned = { province = 533 data = -1 }
			owned = { province = 534 data = -1 }
			owned = { province = 535 data = -1 }
			owned = { province = 536 data = -1 }
			owned = { province = 1529 data = -1 }
			owned = { province = 1530 data = -1 }
		}
	}
	random = no
	country = TIM
	name = "EVENTNAME3818"
	desc = "EVENTHIST3818"
	style = 2
	
	date = { day = 1 month = january year = 1497 }
	offset = 60
	deathdate = { day = 1 month = january year = 1530 }

	action_a = { # Let them have their freedom
		name = "ACTIONNAME3818A"
		command = { type = relation which = PER value = 400 }
		command = { type = secedeprovince which = PER value = 487 }
		command = { type = secedeprovince which = PER value = 525 }
		command = { type = secedeprovince which = PER value = 526 }
		command = { type = secedeprovince which = PER value = 527 }
		command = { type = secedeprovince which = PER value = 528 }
		command = { type = secedeprovince which = PER value = 529 }
		command = { type = secedeprovince which = PER value = 530 }
		command = { type = secedeprovince which = PER value = 531 }
		command = { type = secedeprovince which = PER value = 532 }
		command = { type = secedeprovince which = PER value = 533 }
		command = { type = secedeprovince which = PER value = 534 }
		command = { type = secedeprovince which = PER value = 535 }
		command = { type = secedeprovince which = PER value = 536 }
		command = { type = secedeprovince which = PER value = 1529 }
		command = { type = secedeprovince which = PER value = 1530 }
	}
	action_b = { # Crush the rebellion
		name = "ACTIONNAME3818B"
		command = { type = revoltrisk which = 120 value = 10 }
		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 = -6 }
	}
}


# Babur's Ambition.
event = {
	id = 3804
	random = no
	country = TIM
	name = "EVENTNAME3804"
	desc = "EVENTHIST3804"
	style = 2
	
	date = { day = 1 month = may year = 1504 }
	offset = 30

	action_a = { # Ok
		name = "ACTIONNAME3804A"
		command = { type = land value = 3000 }
		command = { type = INF which = -2 value = 10000 }
		command = { type = CAV which = -2 value = 20000 }
		command = { type = ART which = -2 value = 10 }
		command = { type = add_countryculture which = afghani }
		command = { type = add_countryculture which = hindi }
		command = { type = relation which = DLH value = -400 }
		command = { type = relation which = GUJ value = -400 }
		command = { type = casusbelli which = DLH value = 240 }
		command = { type = addcore which = 539 }
		command = { type = addcore which = 540 }
		command = { type = addcore which = 541 }
		command = { type = addcore which = 543 }
		command = { type = addcore which = 544 }
		command = { type = addcore which = 545 }
		command = { type = addcore which = 546 }
		command = { type = addcore which = 547 }
		command = { type = addcore which = 552 }
		command = { type = addcore which = 553 }
		command = { type = addcore which = 1520 }
		command = { type = addcore which = 1521 }
		command = { type = addcore which = 1522 }
		command = { type = addcore which = 1523 }
		command = { type = capital which = 1527 } # Kabul
		command = { type = addcore which = 1778 }
		command = { type = addcore which = 1784 }
		command = { type = addcore which = 1990 }
		command = { type = addcore which = 1993 }
		command = { type = addcore which = 1994 }
		command = { type = addcore which = 1997 }
		command = { type = domestic which = QUALITY value = 3 }
		command = { type = country which = MOG }
	}
}


# Reserved IDs to 864999