#####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 = 400 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 = 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 = 528 # 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 = revolt which = 1062 }
		command = { type = revolt which = 1327 }
command = { type = revolt which = 1961 }
		command = { type = revolt which = 1437 }
command = { type = revolt which = 1060 }
		command = { type = revolt which = 528 }
	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 = revolt which = 1062 }
		command = { type = revolt which = 1327 }
command = { type = revolt which = 1961 }
		command = { type = revolt which = 1437 }
command = { type = revolt which = 1060 }
		command = { type = revolt which = 528 }
	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 = revolt which = 1062 }
		command = { type = revolt which = 1327 }
command = { type = revolt which = 1961 }
		command = { type = revolt which = 1437 }
command = { type = revolt which = 1060 }
		command = { type = revolt which = 528 }
		command = { type = stability value = -2 }
	}
	action_b ={ # Negotiate with Ismail
		name = "ACTIONNAME3558B"
			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 = revolt which = 1062 }
		command = { type = revolt which = 1327 }
command = { type = revolt which = 1961 }
		command = { type = revolt which = 1437 }
command = { type = revolt which = 1060 }
		command = { type = revolt which = 528 }
		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 = 543 }
		command = { type = addcore which = 1520 }
		command = { type = addcore which = 1521 }
		command = { type = addcore which = 1784 }
		command = { type = addcore which = 1778 }
		command = { type = addcore which = 544 }
		command = { type = addcore which = 553 }
		command = { type = addcore which = 545 }
		command = { type = addcore which = 562 }
		command = { type = addcore which = 553 }
		command = { type = addcore which = 539 }
		command = { type = addcore which = 540 }
		command = { type = addcore which = 541 }
		command = { type = addcore which = 547 }
                command = { type = addcore which = 1523 }
                command = { type = addcore which = 1524 }
                command = { type = addcore which = 550 }
                command = { type = addcore which = 1525 }
                command = { type = addcore which = 1526 }
                command = { type = addcore which = 1527 }
                command = { type = addcore which = 1528 }
                command = { type = addcore which = 1801 }
                command = { type = addcore which = 1800 }
                command = { type = addcore which = 1591 }
                command = { type = addcore which = 546 }
                command = { type = addcore which = 551 }
                command = { type = addcore which = 542 }
                command = { type = addcore which = 1522 }
                command = { type = addcore which = 1777 }
                command = { type = addcore which = 1799 }
                command = { type = addcore which = 1798 }
		command = { type = capital which = 1527 } # Kabul
		command = { type = domestic which = QUALITY value = 3 }
                command = { type = domestic which = LAND value = 3 }
		command = { type = country which = MOG }
	}
}

# Persia is Resurrected
event = {
	id = 3818
	trigger = {
		exists = PER
		OR = {
			


owned = { province = 525 data = -1 }
			owned = { province = 530 data = -1 }
			owned = { province = 531 data = -1 }
			owned = { province = 528 data = -1 }
			owned = { province = 529 data = -1 }
			owned = { province = 526 data = -1 }
			owned = { province = 527 data = -1 }
			owned = { province = 532 data = -1 }
			owned = { province = 533 data = -1 }
			owned = { province = 534 data = -1 }
			owned = { province = 535 data = -1 }
			owned = { province = 1529 data = -1 }
			owned = { province = 1530 data = -1 }
                        owned = { province = 487 data = -1 }
owned = { province = 1437 data = -1 }
owned = { province = 1327 data = -1 }
owned = { province = 1060 data = -1 }
owned = { province = 1062 data = -1 }
owned = { province = 1961 data = -1 }

owned = { province = 1454 data = -1 }
owned = { province = 1004 data = -1 }
owned = { province = 486 data = -1 }
owned = { province = 488 data = -1 }
owned = { province = 1432 data = -1 }
owned = { province = 1806 data = -1 }

owned = { province = 469 data = -1 }
owned = { province = 473 data = -1 }
owned = { province = 1058 data = -1 }
owned = { province = 470 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 be.
		name = "ACTIONNAME3817A"
		command = { type = relation which = PER value = 400 }
		command = { type = secedeprovince which = PER value = 525 }
		command = { type = secedeprovince which = PER value = 530 }
		command = { type = secedeprovince which = PER value = 531 }
		command = { type = secedeprovince which = PER value = 528 }
		command = { type = secedeprovince which = PER value = 529 }
		command = { type = secedeprovince which = PER value = 526 }
		command = { type = secedeprovince which = PER value = 527 }
		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 = 487 }
		command = { type = secedeprovince which = PER value = 1529 }
		command = { type = secedeprovince which = PER value = 1530 }
command = { type = secedeprovince which = PER value = 1437 }
command = { type = secedeprovince which = PER value = 1327 }
command = { type = secedeprovince which = PER value = 1060 }
command = { type = secedeprovince which = PER value = 1062 }
command = { type = secedeprovince which = PER value = 1961 }


command = { type = secedeprovince which = PER value = 1454 }
command = { type = secedeprovince which = PER value = 488 }
command = { type = secedeprovince which = PER value = 486 }
command = { type = secedeprovince which = PER value = 1004 }
command = { type = secedeprovince which = PER value = 1432 }
command = { type = secedeprovince which = PER value = 1806 }

command = { type = independence  which = SEL }
command = { type = independence  which = U16 }
command = { type = secedeprovince which = U16 value = 1058 }
command = { type = secedeprovince which = U16 value = 470 }
command = { type = secedeprovince which = SEL value = 473 }
command = { type = secedeprovince which = SEL value = 469 }
	}
	action_b = { # Crush the rebellion.
		name = "ACTIONNAME3817B"
		command = { type = revoltrisk which = 120 value = 8 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
                command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
                command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
                command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
                command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = stability value = -6 }
	}
}

### Ulugh Begh (original by Havard and Demetrios)
### Modified by mfigueras
### (text from Mac Tutor History of Mathematics)

event = {
	id = 3920
	trigger = {domestic = {type = innovative value = 2} }
	random = no
	country = TIM
	name = "EVENTNAME3920"
	desc = "EVENTHIST3920"
	style = 1
	date = {day = 1 month = january year = 1428}
	offset = 300
	deathdate = {day = 1 month = january year = 1429}
	
	action_a = {
		name = "ACTIONNAME3920A"
		command = { type = stability value = -1 }
		command = { type = cash value = -100 }
		command = { type = domestic which = innovative value = 1 }
            	command = { type = infra value = 350 } #Crook
		command = { type = provincetax which = 1592 value = 1 } #Crook
                command = { type = gainmanufactory which = 1592 value = luxury }
		}
	action_b = {
		name = "ACTIONNAME3920B"
		command = {type = stability value = 1}
		command = {type = domestic which = innovative value = -1}
		}
}

