#######################################
# Timurid Empire
#######################################
government = steppe_horde
technology_group = nomad_group
primary_culture = uzbehk
add_accepted_culture = afghani
add_accepted_culture = persian
religion = sunni
capital = 454 # Samarkand
historical_rival = PER
historical_rival = JLR
historical_rival = MAM
historical_rival = TUR
historical_rival = DLH
historical_rival = MUL

1356.7.1 = {
	monarch = {
		name = "Bayran Quli"
		dynasty = "Chagatayid"
		birth_date = 1310.1.1
		adm = 2
		dip = 2	
		mil = 2
	}
}

1356.7.1 = {
	heir = {
		name = "Tamerlan"
		monarch_name = "Timur"
		dynasty = "Timurid"
		birth_date = 1336.4.8
		death_date = 1405.2.19
		claim = 95
		adm = 5
		dip = 5
		mil = 6
	}
}

# 1360.1.1 - 1363.7.1 PU under Chagatai Khanate (Tugluk Timur Chagatayid)

1363.7.1 = {
	monarch = {
		name = "Khabul Shah"
		dynasty = "Borjigin"
		birth_date = 1315.1.1
		adm = 2
		dip = 2	
		mil = 2
	}
}

1363.7.1 = {
	heir = {
		name = "Tamerlan"
		monarch_name = "Timur"
		dynasty = "Timurid"
		birth_date = 1336.4.8
		death_date = 1405.2.19
		claim = 95
		leader = { name = "Tamerlane"	type = general	rank = 1	fire = 6	shock = 6	manuever = 6	siege = 2 }
		adm = 5
		dip = 5
		mil = 6
	}
}

1370.1.1 = {
	monarch = {
		name = "Timur"
		dynasty = "Timurid"
		birth_date = 1336.4.8
		adm = 5	
		dip = 5	
		mil = 6
		leader = { name = "Tamerlane"	type = general	rank = 1	fire = 6	shock = 6	manuever = 6	siege = 2 }
	}
	add_piety = 0.5
}

1383.1.1 = { leader = {	name = "Miran Shah"	type = general	rank = 1	fire = 3	shock = 3	manuever = 4	siege = 0	death_date = 1408.1.1 } }

1384.1.1 = {
	heir = {
		name = "Khalil"
		monarch_name = "Khalil Sultan"
		dynasty = "Timurid"
		birth_date = 1384.1.1
		death_date = 1411.11.4
		claim = 95
		adm = 1
		dip = 3
		mil = 2
	}
}

1405.2.19 = {
	monarch = {
		name = "Khalil"
		dynasty = "Timurid"
		adm = 1
		dip = 3	
		mil = 2
	}
}

1409.5.13 = {
	monarch = {
		name = "Shah Rukh"
		birth_date = 1377.8.20
		dynasty = "Timurid"
		adm = 1
		dip = 1	
		mil = 1
	}
	clear_scripted_personalities = yes
	add_ruler_personality = scholar_personality
	add_ruler_personality = architectural_visionary_personality
	add_ruler_personality = well_advised_personality
}

1409.1.1 = {
	heir = {
		name = "Ulugh Beg"
		monarch_name = "Ulugh Beg"
		dynasty = "Timurid"
		birth_date = 1394.1.1
		death_date = 1449.10.27
		claim = 50
		adm = 1
		dip = 1
		mil = 1
	}
}

1447.1.1 = {
	monarch = {
		name = "Ulugh Beg"
		dynasty = "Timurid"
		adm = 1
		dip = 1	
		mil = 1
	}
}

1447.1.1 = {
	heir = {
		name = "'Abd Allāh Mīrzā"
		monarch_name = "'Abd Allāh Mīrzā"
		dynasty = "Timurid"
		birth_date = 1410.1.1
		death_date = 1451.6.23
		claim = 95
		adm = 0
		dip = 0
		mil = 2
	}
}

1450.5.10 = {
	monarch = {
		name = "'Abd Allāh Mīrzā"
		dynasty = "Timurid"
		adm = 0	
		dip = 0	
		mil = 2	
	}
}

1453.1.1 = { set_country_flag = total_war_series set_country_flag = total_war }

1457.6.23 = {
	monarch = {
		name = "Abū Sa'id"
		dynasty = "Timurid"
		adm = 0	
		dip = 2	
		mil = 3	
		leader = {	
			name = "Abū Sa'id"
			type = general
			rank = 0
			fire = 3
			shock = 3
			manuever = 3
			siege = 0
		}
	}
}

1458.12.23 = { capital = 446 } # Herat

# Timurid dynasty in Samarkand

1469.8.27 = {
	monarch = {
		name = "Ahmad"	
		dynasty = "Timurid"
		adm = 0	
		dip = 0	
		mil = 2	
	}
	capital = 454	#Samarkand
}

1494.7.1 = {
	monarch = {
		name = "Mahmud"	
		dynasty = "Timurid"
		adm = 0	
		dip = 0	
		mil = 0	
	}
}

1495.7.1 = {
	monarch = {
		name = "Mas'ud"	
		dynasty = "Timurid"
		adm = 0	
		dip = 0	
		mil = 0	
	}
}

1495.9.1 = {
	monarch = {
		name = "Bāy Sunqur"
		dynasty = "Timurid"
		adm = 0	
		dip = 0	
		mil = 0
	}
}

1499.8.1 = {
	monarch = {
		name = "'Ali"
		dynasty = "Timurid"
		adm = 0	
		dip = 0	
		mil = 0	
	}
}

1500.4.1 = {
	monarch = {
		name = "Bābur"
		dynasty = "Timurid"
		adm = 5	
		dip = 5	
		mil = 6
		leader = {	name = "Bābur"	type = general	rank = 0	fire = 5	shock = 5	manuever = 3	siege = 1 }
	}
}


1507.7.1 = {	#Fall of Herat and the end of the Khorasani Timurids, remaining Timurid lands comes under control of Babur
	government = despotic_monarchy
	primary_culture = afghani
	capital = 451	# Kabul
	technology_group = muslim #Timurid domains has by now become Persianized, Babur starts drilling musketmen and hires Ottoman officers
}

1508.3.6 = {
	heir = {
		name = "Muhammad"
		monarch_name = "Humāyūn"
		dynasty = "Timurid"
		birth_date = 1508.3.6
		death_date = 1556.1.1
		claim = 95
		adm = 5
		dip = 2
		mil = 3
	}
}

1525.1.1 = { add_accepted_culture = panjabi } #Punjab defects to Babur

1526.4.21 = { capital = 454 primary_culture = uzbehk } # Battle of Panipat, Babur forms MUG, Timurids back to being revolter
