#####Timurid Major Events######
#By Joakim 'Greven' Bergqwist #
#                             #
#            and              #
#                             #
# Henrik 'Doomdark' Fåhraeus  #
###############################

#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 = 5 }
		command = { type = treasury value = -2100 }
		command = { type = inflation value = 20 }
		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 = 529 # 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 = 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 = 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 }
	}
}

# 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 = domestic which = QUALITY value = 3 }
		command = { type = country which = MOG }
	}
}

# Persia is Resurrected
event = {
	id = 3818
	trigger = {
		exists = PER
		OR = {
			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 = 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 }
	}
}

#Ulugh Beg's Observitory#
# By Demetrios and Håvard

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