﻿#A better genealogy of  Tughshāda/Bukhār Khudāh
12220 = {
	name="Sushihlichi" # Palola ruler of Baltistan. Previous rulers: Surendraditya -> Chandrapida -> Mokinmang -> Sushihlichi
	dynasty=19111 # Palola / Patola
	
	culture = sogdian
	religion = vajrayana
	#trait = vajrayana_buddhist
	
	720.1.1={
		birth=yes
	}
	
	741.1.1={
		add_spouse=12051 # Khrimalod, a Tibetan Princess
	}
	
	# 753: Driven out by the Chinese governor Feng Changqing until 755.
	
	770.1.1={
		death=yes
	}
}

12221 = {
	name="Chandrapida" # Fictional
	dynasty=19111 # Palola / Patola
	
	culture = sogdian
	religion = vajrayana
	#trait = vajrayana_buddhist
	
	father = 12220
	mother = 12051
	
	744.1.1={
		birth=yes
	}
	
	800.1.1={
		death=yes
	}
}

188774 = {
	name="Wakhushakk" # fictional Sogdian ruler
	dynasty=1042188 # Sogdia
	religion="khurmazta"
	culture="sogdian"
	##trait=sympathy_pagans
	743.1.1={
		birth=yes
	}
	800.1.1={
		death=yes
	}
}
194319 = {
	name="Wupoyan" # fictional Sogdian ruler
	dynasty=1045074 # Kashgar
	religion="khurmazta"
	culture="sogdian"
	##trait=sympathy_pagans
	730.1.1 = {
		birth = yes
	}
	800.1.1 = {
		death = yes
	}
}
194320 = {
	name="Lushan" # fictional Sogdian ruler
	dynasty=1045076 # Charkliq
	religion="manichean"
	culture="sogdian"
	#trait=sympathy_pagans
	740.1.1 = {
		birth = yes
	}
	800.1.1 = {
		death = yes
	}
}
194321 = {
	name="Tarkhun" # fictional Sogdian ruler
	dynasty=1045077 # Aksu
	religion="manichean"
	culture="sogdian"
	#trait=sympathy_pagans
	843.1.1 = {
		birth = yes
	}
	900.1.1 = {
		death = yes
	}
}
194322 = {
	name="Mechun" # fictional Sogdian ruler
	dynasty=1045078 # Cherchen
	religion="manichean"
	culture="sogdian"
	#trait=sympathy_pagans
	743.1.1 = {
		birth = yes
	}
	800.1.1 = {
		death = yes
	}
}
194323 = {
	name="Yechi" # fictional Sogdian ruler
	dynasty=1045079 # Qiuzi
	religion="manichean"
	culture="sogdian"
	#trait=sympathy_pagans
	740.1.1 = {
		birth = yes
	}
	800.1.1 = {
		death = yes
	}
}
194324 = {
	name="Avyaman" # fictional Sogdian ruler
	dynasty=1045075 # Kang
	religion="manichean"
	culture="sogdian"
	#trait=sympathy_pagans
	740.1.1 = {
		birth = yes
	}
	800.1.1 = {
		death = yes
	}
}
217193 = {
	name = Wakhushakk # fictional
	dynasty = 1051113 # Varzakk
	religion = manichean
	culture = sogdian
	805.10.14 = {
		birth = yes
	}
	824.7.9 = {
		add_spouse = 217194
	}
	849.7.3 = {
		death = yes
	}
}
217194 = {
	name = Upach # fictional
	religion = vajrayana
	culture = sogdian
	female = yes
	808.3.15 = {
		birth = yes
	}
	865.2.8 = {
		death = yes
	}
}
217195 = {
	name = Wupoyan # fictional
	dynasty = 1051113 # Varzakk
	religion = manichean
	culture = sogdian
	father = 217193
	mother = 217194
	832.4.12 = {
		birth = yes
	}
	897.11.1 = {
		death = yes
	}
}
217196 = {
	name = Asa # fictional
	dynasty = 1051113 # Varzakk
	religion = manichean
	culture = sogdian
	female = yes
	father = 217193
	mother = 217194
	829.6.5 = {
		birth = yes
	}
	899.4.7 = {
		death = yes
	}
}
217197 = {
	name = Nanai-thvar # fictional
	dynasty = 1051114 # Karzh
	religion = manichean
	culture = sogdian
	804.4.18 = {
		birth = yes
	}
	826.3.15 = {
		add_spouse = 217198
	}
	856.4.2 = {
		death = yes
	}
}
217198 = {
	name = Donya # fictional
	religion = vajrayana
	culture = sogdian
	female = yes
	809.3.17 = {
		birth = yes
	}
	859.1.5 = {
		death = yes
	}
}
217199 = {
	name = Shafnoshak # fictional
	dynasty = 1051114 # Karzh
	religion = manichean
	culture = sogdian
	father = 217197
	mother = 217198
	831.8.19 = {
		birth = yes
	}
	891.12.24 = {
		death = yes
	}
}
217200 = {
	name = Furuzan # fictional
	dynasty = 1051114 # Karzh
	religion = manichean
	culture = sogdian
	female = yes
	father = 217197
	mother = 217198
	830.4.9 = {
		birth = yes
	}
	881.6.2 = {
		death = yes
	}
}
217201 = {
	name = Axushfarn
	dynasty = 1051115 # Khwatawch
	religion = manichean
	culture = sogdian
	817.3.27 = {
		birth = yes
	}
	833.4.12 = {
		add_spouse = 217202
	}
	865.2.17 = {
		death = yes
	}
}
217202 = {
	name = Golshan
	religion = manichean
	culture = sogdian
	female = yes
	812.8.14 = {
		birth = yes
	}
	885.4.9 = {
		death = yes
	}
}
217203 = {
	name = Divashtich
	dynasty = 1051115 # Kwatawch
	religion = manichean
	culture = sogdian
	father = 217201
	mother = 217202
	837.2.28 = {
		birth = yes
	}
	897.4.30 = {
		death = yes
	}
}
217204 = {
	name = Donya
	dynasty = 1051115 # Kwatawch
	religion = manichean
	culture = sogdian
	father = 217201
	mother = 217202
	female = yes
	839.11.27 = {
		birth = yes
	}
	904.4.7 = {
		death = yes
	}
}
#Khuda - removed due to more thorough implementation as Bukhara Khuda dynasty in FP3
#217314 = {
#	name = Bindu
#	dynasty = 1051143 # Khuda
#	religion = khurmazta
#	culture = sogdian
#	
#	645.7.21 = {
#		birth = yes
#	}
#	681.5.10 = {
#		death = {
#			death_reason = death_battle
#		}
#	}
#}
#217315 = {
#	name = Tughshada
#	dynasty = 1051143 # Khuda
#	religion = khurmazta
#	culture = sogdian
#	father = 217314
#	681.2.15 = {
#		birth = yes
#	}
#	739.6.4 = {
#		death = {
#			death_reason = death_murder
#		}
#	}
#}
#217316 = {
#	name = Qutayba
#	dynasty = 1051143 # Khuda
#	religion = khurmazta
#	culture = sogdian
#	father = 217315
#	722.7.17 = {
#		birth = yes
#	}
#	750.8.21 = {
#		death = { death_reason = death_murder }
#	}
#}
#217317 = {
#	name = Sukan
#	dynasty = 1051143 # Khuda
#	religion = khurmazta
#	culture = sogdian
#	father = 217315
#	727.10.4 = {
#		birth = yes
#	}
#	757.3.12 = {
#		death = { death_reason = death_murder }
#	}
#}
#217318 = {
#	name = Bunyat
#	dynasty = 1051143 # Khuda
#	religion = khurmazta
#	culture = sogdian
#	father = 217315
#	730.5.4 = {
#		birth = yes
#	}
#	783.5.25 = {
#		death = { death_reason = death_murder }
#	}
#}
217319 = {
	name = Khunuk
	dynasty = 1051144 # Bukhar
	religion = khurmazta
	culture = sogdian
	
	679.5.14 = { birth = yes }
	710.4.17 = {
		death = {
			death_reason = death_execution
			killer = 217320
		}
	}
}
217323 = {
	name = Khaydhar
	dynasty = 1051145
	religion = khurmazta
	culture = sogdian
	trait = education_martial_3
	father = 217324
	801.3.16 = { # unknown
		birth = yes
	}
	820.10.2 = {
		religion = ashari
		#trait = sympathy_khurmaztaism
	}
	841.5.15 = {
		death = {
			death_reason = death_prison
			killer = 34008 #caliph Mu'tasim
		}
	}
}
217324 = {
	name = Kawus
	dynasty = 1051145
	religion = khurmazta
	culture = sogdian
	father = 217325
	782.6.15 = { # unknown
		birth = yes
	}
	822.4.10 = {
		religion = ashari
		#trait = sympathy_khurmaztaism
	}
	827.10.5 = { # unknown
		death = yes
	}
	
}
217325 = {
	name = Kharakhuruh
	dynasty = 1051145
	religion = khurmazta
	culture = sogdian
	751.12.27 = { # unknown
		birth = yes
	}
	793.10.5 = { # unknown
		death = yes
	}
}
217326 = {
	name = Fazl
	dynasty = 1051145
	religion = khurmazta
	culture = sogdian
	father = 217324
	804.2.15 = { # unknown
		birth = yes
	}
	830.5.20 = { # unknown
		religion = ashari
		#trait = sympathy_khurmaztaism
	}
	854.1.24 = { # unknown
		death = yes
	}
}
217327 = {
	name = Al-Kawus # fictional son of Fazl
	dynasty = 1051145
	religion = ashari
	culture = sogdian
	father = 217326
	#trait = sympathy_khurmaztaism
	832.6.17 = {
		birth = yes
	}
	874.10.5 = {
		death = yes
	}
}

248303 = {
	name="Amr_bin_Maqil"
	dynasty=1042148
	religion=vajrayana
	culture="sogdian"
	731.1.1={
		birth=yes
	}
	755.1.1={
		religion=ashari
	}
	783.1.1={
		death=yes
	}
}

#Khuda - removed due to mre thorough implementation as Bukhara Khuda dynasty in FP3
#217328 = {
#	name = Farn # fictional son of Bunyat
#	dynasty = 1051143
#	religion = khurmazta
#	culture = sogdian
#	father = 217318
#	
#	776.4.15 = {
#		birth = yes
#	}
#	835.1.17 = {
#		death = yes
#	}
#}
#217329 = {
#	name = Aspandhat # fictional grandson of Bunyat
#	dynasty = 1051143
#	religion = khurmazta
#	culture = sogdian
#	father = 217328
	
#	817.7.3 = {
#		birth = yes
#	}
#	842.11.15 = {
#		death = yes
#	}
#}
#217330 = {
#	name = Kanakk # fictional grand-grandson of Bunyat
#	dynasty = 1051143
#	religion = khurmazta
#	culture = sogdian
#	father = 217329
	
#	835.10.17 = {
#		birth = yes
#	}
#	891.2.15 = {
#		death = yes
#	}
#}
#217331 = {
#	name = Darya # fictional grand-granddaughter of Bunyat 
#	dynasty = 1051143
#	religion = khurmazta
#	culture = sogdian
#	father = 217329
	
#	841.10.19 = {
#		birth = yes
#	}
#	887.5.9 = {
#		death = yes
#	}
#}

248158 = {
	name="Urak"
	#dynasty = 0
	religion="nestorian"
	culture="sogdian"
	739.1.1={
		birth=yes
	}
	#769.1.1={
	#	employer=217318
	#}
	790.1.1={
		death=yes
	}
}

248159 = {
	name="Chaki"
	#dynasty = 0
	religion="nestorian"
	culture="sogdian"
	839.1.1={
		birth=yes
	}
	#867.1.1={
	#	employer=217330
	#}
	900.1.1={
		death=yes
	}
}

248160 = {
	name="Pator"
	#dynasty = 0
	religion="nestorian"
	culture="sogdian"
	737.1.1={
		birth=yes
	}
	769.1.1={
		employer=217325
	}
	790.1.1={
		death=yes
	}
}
248161 = {
	name="Ardavan"
	#dynasty = 0
	religion="nestorian"
	culture="sogdian"
	839.1.1={
		birth=yes
	}
	867.1.1={
		#employer=247697
	}
	900.1.1={
		death=yes
	}
}

248162 = {
	name="Farzad"
	#dynasty = 0
	religion="nestorian"
	culture="sogdian"
	739.1.1={
		birth=yes
	}
	769.1.1={
		employer=166691
	}
	790.1.1={
		death=yes
	}
}

248163 = {
	name="Gurak"
	#dynasty = 0
	religion="nestorian"
	culture="sogdian"
	839.1.1={
		birth=yes
	}
	867.1.1={
		employer=166694
	}
	900.1.1={
		death=yes
	}
}
188640 = {
	name="Salim"
	dynasty=1042124 # of Farghana
	religion="ashari"
	culture="sogdian"
	trait = sadistic
	trait = paranoid
	father=248313
	746.1.1={
		birth=yes
	}
	766.1.1 = {
		#give_nickname=nick_the_devil
	}
	782.1.1={
		death=yes
	}
}
248300 = {
	name="Kujula" # local ruler with fictional name only his title was known
	dynasty=1059100
	religion=vajrayana
	culture=sogdian
	#trait = vajrayana_buddhist
	690.1.1={
		birth=yes
	}
	760.1.1={
		death=yes
	}
}
248301 = {
	name="Balawar" # local ruler with fictional name only his title was known
	dynasty=1059100
	religion=vajrayana
	culture=sogdian
	#trait = vajrayana_buddhist
	#trait=sympathy_khurmaztaism
	#trait=sympathy_pagans
	trait=education_martial_2
	#trait=mountain_terrain_leader
	father=248300
	735.1.1={
		birth=yes
	}
	790.1.1={
		death=yes
	}
}
248302 = {
	name="Kipunada" # fictional
	dynasty=1059100
	religion=khurmazta
	culture=sogdian
	#trait=sympathy_indian
	#trait=sympathy_pagans
	father=248300
	750.1.1={
		birth=yes
	}
	810.1.1={
		death=yes
	}
}
188681 = {
	name="Hashem" # rebel leader in eastern Transoxania whose rebellion lasted into 770s and took control most of Khuttal
	dynasty=1059101
	religion=ashari
	culture=sogdian
	trait=disfigured
	trait=intellect_good_1
	trait=education_learning_2
	trait=peasant_leader
	#trait=light_foot_leader
	730.1.1={
		birth=yes
	}
	755.1.1={
		#trait=sympathy_islam
		religion=mazdakism # becomes a prophet
	}
	769.1.1={
		add_spouse=194362 # Was allied with turks who are identified as Karluks
	}
	783.1.1={
		death=yes
	}
}
248304 = {
	name="Sagharak" # fictional
	dynasty=1042148
	religion=vajrayana
	culture="sogdian"
	father=248303
	753.1.1={
		birth=yes
	}
	785.1.1={
		death=yes
	}
}
248305 = {
	name="Hanash" # old ruler of Khuttal
	dynasty=1059102
	religion=vajrayana
	culture="sogdian"
	#trait=sympathy_pagans
	#trait=sympathy_islam
	#trait=sympathy_khurmaztaism
	730.1.1={
		birth=yes
	}
	751.1.1={
		#employer=244001
		add_pressed_claim = title:c_khuttal
	}
	780.1.1={
		death=yes
	}
}
248311 = {
	name="Muhammed" # fictional ruler descendant of nestorian ruler
	dynasty=1059105
	religion=ashari
	culture=persian
	#trait=sympathy_christendom
	#trait=thrifty_clerk
	740.1.1={
		birth=yes
	}
	790.1.1={
		death=yes
	}
}
248312 = {
	name="Alutar"
	dynasty=1042124
	religion=khurmazta
	culture=sogdian
	698.1.1={
		birth=yes
	}
	751.1.1={
		death=yes
	}
}
248313 = {
	name="Pai" # fictional
	dynasty=1042124
	religion=khurmazta
	culture=sogdian
	father=248312
	720.1.1={
		birth=yes
	}
	751.1.1={
		religion=ashari
	}
	769.1.1={
		death=yes
	}
}
248314 = {
	name="Mahmud" # fictional
	dynasty=1042124 # of Farghana
	religion="ashari"
	culture=sogdian
	father=188640
	769.1.1={
		birth=yes
	}
	819.1.1={
		death=yes
	}
}

#Guiyi Governor of Yizhou/Hami - fictional placeholders
sogdian0001 = {
	name="Anning"
	religion="mahayana"
	culture="uyghur"
	840.1.1={
		birth=yes
	}
	900.1.1={
		death=yes
	}
}

sogdian0002 = {
	name="Tegin"
	religion="mahayana"
	culture="uyghur"
	father=sogdian0001
	860.1.1={
		birth=yes
	}
	920.1.1={
		death=yes
	}
}

#Karashar vassal - fictional placeholders
sogdian0003 = {
	name="Sagharak"
	dynasty=2003127 #Agni
	religion="mahayana"
	culture="sogdian"
	820.1.1={
		birth=yes
	}
	880.1.1={
		death=yes
	}
}

sogdian0004 = {
	name="Yena"
	female=yes
	dynasty=2003127 #Agni
	religion="mahayana"
	culture="sogdian"
	father=sogdian0003
	840.1.1={
		birth=yes
	}
	900.1.1={
		death=yes
	}
}

#Miran vassal - fictional placeholders
sogdian0005 = {
	name="Qin"
	dynasty=2003130 #Mi
	religion="nestorian"
	culture="sogdian"
	820.1.1={
		birth=yes
	}
	838.1.1={
		add_spouse=bodpa0257
	}
	880.1.1={
		death=yes
	}
}

sogdian0006 = {
	name="Amei"
	female=yes
	dynasty=2003130 #Mi
	religion="nestorian"
	culture="sogdian"
	father=sogdian0005
	mother=bodpa0257
	842.1.1={
		birth=yes
	}
	900.1.1={
		death=yes
	}
}

sogdian0007 = {
	name = "DI_wdasht"
	dynasty = sogdian_sajid
	religion = "mahayana"
	culture = "sogdian"
	
	790.1.1={
		birth=yes
	}
	860.3.1={
		death = yes
	}
}

sogdian0008 = {
	name = "DI_wdA_d"
	dynasty = sogdian_sajid
	religion = "mahayana"
	culture = "sogdian"
	father = sogdian0007
	
	#Education
	trait = education_martial_2
	
	#Skills
	prowess = 14
		
	812.3.1 = {
		birth = yes
	}
	833.1.1 = {
		religion = ashari
	}
	849.1.1 = {
		add_spouse = sogdian0116
		effect = {
			if = {
				limit = { has_fp3_dlc_trigger = yes }
				add_trait = fp3_struggle_detractor
			}
		}
	}
	879.12.1 = {
		death = yes
	}
}

sogdian0009 = {
	name = "Muhammad"
	dynasty = sogdian_sajid
	religion = "ashari"
	culture = "sogdian"
	father = sogdian0008
	mother = sogdian0116
	
	850.12.1 = {
		birth = yes
		effect = {
			if = {
				limit = { has_fp3_dlc_trigger = yes }
				add_trait = fp3_struggle_detractor
			}
		}
	}
	901.1.1 = {
		death = yes
	}
}

sogdian0010 = {
	name = "Yusuf"
	dynasty = sogdian_sajid
	religion = "ashari"
	culture = "sogdian"
	father = sogdian0008
	mother = sogdian0116
	854.1.8 = {
		birth = yes
	}
	919.1.1 = {
		death = yes
	}
}

sogdian0011 = { #Fictional ancestor of the Muhtajids, Arabian soldier 
	name = "Masud"
	dynasty = iranian_chaghanid #This is the fictional precursor to the Muhtajid dynasty 
	religion = "ashari"
	culture = "bedouin"
	760.5.3 = {
		birth = yes
	}
	800.1.1 = {
		add_spouse = sogdian0012
	}
	802.3.9 = {
		death = { 
			death_reason = death_battle
		}
	}
}

sogdian0012 = { #Fictional ancestor of the Muhtajids
	name = "Darya"
	religion = "khurmazta"
	culture = "sogdian"
	female = yes 
	781.2.8 = {
		birth = yes
	}
	802.5.7 = {
		death = yes
	}
}

sogdian0013 = { #Semi-fictional patriarch of the Muhtajids
	name = "Muhtaj"
	religion = "ashari"
	dynasty = iranian_chaghanid
	culture = "sogdian"
	father = sogdian0011
	mother = sogdian0012
	802.5.7 = {
		birth = yes
	}
	873.1.1 = {
		death = yes
	}
}

sogdian0017 = {
	name = "Muzaffar"
	dynasty = iranian_chaghanid
	religion = "ashari"
	culture = "sogdian"
	father = sogdian0013
	
	856.3.5 = {
		birth = yes
	}
	935.1.1 = {
		death = yes
	}
}

sogdian0018 = { #The Banijurids, aka the Abudawudids
	name = "BA_nijU_r"
	dynasty = iranian_banijurid
	religion = "ashari"
	culture = "sogdian"
	750.12.20 = {
		birth = yes
	}
	808.3.23 = {
		death = yes
	}
} 

sogdian0019 = { #The Banijurids
	name = "Abbas" #served the Abbasids in Egypt
	dynasty = iranian_banijurid
	religion = "ashari"
	culture = "sogdian"
	father = sogdian0018
	786.1.1 = {
		birth = yes
	}
	843.3.29 = {
		death = yes
	}
} 

sogdian0020 = { #The Banijurids
	name = "Dawud" #was governor of Basra
	dynasty = iranian_banijurid
	religion = "ashari"
	culture = "sogdian"
	father = sogdian0018
	784.1.1 = {
		birth = yes
	}
	850.4.22 = {
		death = yes
	}
} 

sogdian0021 = { #The Banijurids
	name = "Hashim"
	dynasty = iranian_banijurid
	religion = "maturidi"
	culture = "sogdian"
	father = sogdian0018
	779.1.1 = {
		birth = yes
	}
	857.2.9 = {
		death = yes
	}
} 

sogdian0022 = { #The Banijurids
	name = "Hatim"
	dynasty = iranian_banijurid
	religion = "maturidi"
	culture = "sogdian"
	father = sogdian0020
	809.1.1 = {
		birth = yes		
	}
	869.1.1 = {
		death = yes
	}
} 

sogdian0023 = { #The Banijurids
	name = "Al-_Abbas"
	dynasty = iranian_banijurid
	religion = "maturidi"
	culture = "sogdian"
	father = sogdian0021
	803.3.5 = {
		birth = yes
	}
	857.2.9 = {
		death = yes
	}
} 

sogdian0024 = { #The Banijurids
	name = "Dawud"
	dynasty = iranian_banijurid
	religion = "maturidi"
	culture = "sogdian"
	father = sogdian0023
	trait = education_intrigue_3
	828.11.22 = {
		birth = yes
	}
	873.2.9 = {
		death = yes 
	}
} 

sogdian0027 = { #The Banijurids
	name = "Ahmad"
	dynasty = iranian_banijurid
	religion = "ashari"
	culture = "tajik"
	father = sogdian0018
	782.1.1 = {
		birth = yes
	}
	850.2.3 = {
		death = yes
	}
} 

sogdian0028 = { #The Banijurids
	name = "Muhammad"
	dynasty = iranian_banijurid
	religion = "maturidi"
	culture = "tajik"
	father = sogdian0027
	trait = education_stewardship_3
	839.1.1 = {
		birth = yes
	}
	866.1.1 = {
		effect = {
			set_realm_capital = title:b_panjhir 
		}
	}
	910.1.1 = {
		death = yes
	}
} 

extra_banijurids_1 = {
	name = "Ahmad"
	dynasty = iranian_banijurid
	religion = "maturidi"
	culture = "tajik"
	father = sogdian0028
	860.1.1 = {
		birth = yes
	}
	908.1.1 = {
		death = yes
	}
} 

extra_banijurids_2 = {
	name = "Jafar"
	dynasty = iranian_banijurid
	religion = "maturidi"
	culture = "tajik"
	father = extra_banijurids_1
	880.1.1 = {
		birth = yes
	}
	925.1.1 = {
		death = yes
	}
} 

extra_banijurids_3 = {
	name = "Ahmad"
	dynasty = iranian_banijurid
	religion = "maturidi"
	culture = "tajik"
	father = extra_banijurids_2
	903.1.1 = {
		birth = yes
	}
	959.1.1 = {
		death = yes
	}
} 

extra_banijurids_4 = {
	name = "Hashim"
	dynasty = iranian_banijurid
	religion = "maturidi"
	culture = "tajik"
	father = sogdian0019
	807.1.1 = {
		birth = yes
	}
	866.1.1 = {
		death = yes
	}
} 

extra_banijurids_5 = {
	name = "Dawud"
	dynasty = iranian_banijurid
	religion = "maturidi"
	culture = "tajik"
	father = extra_banijurids_4
	833.1.1 = {
		birth = yes
	}
	889.1.1 = {
		death = yes
	}
} 

extra_banijurids_6 = {
	name = "Beg"
	dynasty = iranian_banijurid
	religion = "maturidi"
	culture = "tajik"
	father = sogdian0019
	809.1.1 = {
		birth = yes
	}
	861.1.1 = {
		death = yes
	}
} 

extra_banijurids_7 = {
	name = "Asad"
	dynasty = iranian_banijurid
	religion = "maturidi"
	culture = "tajik"
	father = extra_banijurids_6
	835.1.1 = {
		birth = yes
	}
	897.1.1 = {
		death = yes
	}
} 

extra_banijurids_8 = {
	name = "al-Harith"
	dynasty = iranian_banijurid
	religion = "maturidi"
	culture = "tajik"
	father = extra_banijurids_6
	859.1.1 = {
		birth = yes
	}
	911.1.1 = {
		death = yes
	}
} 

###The Bukhara Khuda, ancient rulers of Bukhara
sogdian0100 = {
	name = "Bidun"
	dynasty_house = house_Tughshāda
	religion = "khurmazta"
	culture = "sogdian"
	father= Cub_11
	649.1.1 = {
		birth = yes
	}
	658.1.1 = {
		add_spouse=Cub_Qutan
	}
	674.1.1 = {
		death = {
			death_reason = death_battle 
		}
	}
}

sogdian0101 = {
	name = "Tughshāda" #笃萨波提Tughshāda 开元十四年(726)遣弟入唐朝贡
	dynasty_house = house_Tughshāda
	religion = "khurmazta"
	culture = "sogdian"
	father = sogdian0100
	mother = sogdian0102
	672.1.1 = {
		birth = yes
	}
	739.1.1 = {
		death = {
			death_reason = death_assassination
		}
	}
}
Cub_an_1 = {
	name="Asilan_arhat" #阿悉烂达拂耽发黎 开元十四年,其王笃萨波提遣弟阿悉烂达拂耽发黎来朝,
    dynasty_house = house_Tughshāda
	religion = khurmazta
	culture = "sogdian"
	father= sogdian0100
	mother = sogdian0102
	673.1.1={  
		birth=yes
	}	
	736.1.1={  
		death = yes
	}
 }
 Cub_an_2 = { #纳斯尔为瓦西勒念诵了祷文（送其往生），将他葬在了自己的府邸内；他批准比施尔·本·笃萨波提（Bishr/Shirin ibn Tughshada）为新的布哈尔·胡达
	name="Bishr"  #阿悉兰/比施尔
    dynasty_house = house_Tughshāda
	religion = khurmazta
	culture = "sogdian"
	father= Cub_an_1
	692.1.1={  
		birth=yes
	}	
	739.12.1{ 
		death=yes
	}
}

sogdian0102 = { #据纳尔沙希（Narshakhi）《布哈拉史》，可敦掌权长达十五年。
	name = "Khatun"
	religion = "khurmazta"
	culture = "turgis"
	female = yes
	trait = intellect_good_2
	638.1.1 = {
		birth = yes
	}
	689.1.1 = {
		death = yes
	}
}

sogdian0103 = {
	name = "Qutayba" ##笃萨波提为新生的儿子取名屈底波，以示效忠。
	dynasty_house = house_Tughshāda
	religion = "ashari"
	culture = "sogdian"
	father = sogdian0101
	720.1.1 = {
		birth = yes
	}
	745.1.1 = {
		give_nickname=nick_Guiyi #天宝四年(745)，安国王屈底波遣使朝贡，唐朝封屈底波为归义王。
	}
	751.1.1 = {
		death = {
			death_reason = death_murder
		}
	}
}

sogdian0104 = {
	name = "Sakan"  #野解？ 天宝十三载(754)，安国副王野解与东曹国王设阿以及诸胡九国王共同上表
	dynasty_house = house_Tughshāda
	religion = "ashari"
	culture = "sogdian"
	father = sogdian0101
	724.1.1 = {
		birth = yes
	}
	757.1.1 = {
		death = {
			death_reason = death_murder
		}
	}
}

sogdian0105 = {
	name = "Bunyat" #783年哈里发和呼罗珊总督处死了布尼亚特
	dynasty_house = house_Tughshāda
	religion = "khurmazta"
	culture = "sogdian"
	father = sogdian0101
	730.1.1 = {
		birth = yes
	}
	783.1.1 = {
		death = {
			death_reason = death_murder
		}
	}
}
sogdian0106 = {
	name = "Ot-tegin" #fictional Bukhara Khudan, to adress gap in genealogy
	dynasty_house = house_Tughshāda
	religion = "khurmazta"
	culture = "sogdian"
	father = sogdian0104
	755.1.1 = {
		birth = yes
	}
	810.1.1 = {
		death = {
			death_reason = death_natural_causes
		}
	}
}

sogdian0107 = {
	name = "Tarxun" #fictional Bukhara Khudan, to address gap in genealogy
	dynasty_house = house_Tughshāda
	religion = "khurmazta"
	culture = "sogdian"
	father = sogdian0106
	780.1.1 = {
		birth = yes
	}
	823.1.1 = {
		death = yes
	}
}

sogdian0108 = {
	name = "Parsak" #fictional Bukhara Khudan, to address gap in genealogy
	dynasty_house = house_Tughshāda
	religion = "khurmazta"
	culture = "sogdian"
	father = sogdian0107
	802.1.1 = {
		birth = yes
	}
	853.1.1 = {
		death = yes
	}
}

sogdian0109 = { #Abu Ishaq, the last native ruler of Bukhara. For gameplay reasons, I've set him as the ruler of Nakshab, from which he hopes to regain the Bukharan throne. In real history, he was probably unlanded at this point in time. 
	name = "Ibrahim"
	dynasty_house = house_Tughshāda
	religion = "khurmazta"
	culture = "sogdian"
	father = sogdian0108
	trait = education_intrigue_3
	trait = vengeful
	833.1.1 = {
		birth = yes
	}
	856.1.1 = {
		add_spouse = sogdian0110
	}
	867.1.1 = {
		add_pressed_claim = title:d_soghd
		add_pressed_claim = title:c_bukhara 
	}
	913.1.1 = {
		death = yes
	}
}

Cub_an_4 = {
	name="Abu_Muhammad"  #阿布·穆罕默德·布哈尔·胡达（Abu Muhammad Bukhar Khudah）曾是布哈拉王族
    dynasty_house = house_Tughshāda
	religion = ashari
	culture = "sogdian"
	father= sogdian0108
	830.1.1={  
		birth=yes
	}	
	888.1.1   ={  
		death = {
		    death_reason = yes
	   }
    }
}

sogdian0110 = {
	name = "Aminah" #fictional spouse
	religion = "khurmazta"
	culture = "persian"
	female = yes
	840.1.1 = {
		birth = yes
	}
	880.1.1 = {
		death = yes
	}
}

sogdian0111 = { 
	name = "Ishaq" 
	dynasty_house = house_Tughshāda
	religion = "maturidi"
	culture = "sogdian"
	father = sogdian0109
	mother = sogdian0110
	856.1.1 = {
		birth = yes
	}
	920.1.1 = {
		death = yes
	}
}

sogdian0112 = { 
	name = "Yasaman" 
	dynasty_house = house_Tughshāda
	religion = "maturidi"
	culture = "sogdian"
	female = yes
	father = sogdian0109
	mother = sogdian0110
	858.1.1 = {
		birth = yes
	}
	930.1.1 = {
		death = yes
	}
}

sogdian0113 = {
	name = "Hasan" 
	dynasty = 1051145
	religion = "ashari"
	culture = "sogdian"
	father = 217323
	821.1.1 = {
		birth = yes
	}
	870.1.1 = {
		death = yes
	}
}

sogdian0114 = { #fictional
	name = "Nur" 
	dynasty = 1051145
	religion = ashari
	culture = sogdian
	father = 217326
	female = yes
	829.6.17 = {
		birth = yes
	}
	847.1.1 = {
		add_spouse = fictive_persians_1
	}
	874.1.1 = {
		death = yes
	}
}

sogdian0115 = { #fictional Sajid daughter
	name = "Vanushe"
	dynasty = sogdian_sajid
	religion = "maturidi"
	culture = "sogdian"
	father = sogdian0008
	mother = sogdian0116
	female = yes 
	
	852.5.3 = {
		birth = yes
	}
	925.1.1 = {
		death = yes
	}
}

sogdian0116 = { #fictional Sajid wife
	name = "Chinanch"
	dynasty = 1051145
	religion = "maturidi"
	culture = "sogdian"
	father = 217323
	female = yes 
	834.1.24 = {
		birth = yes
	}
	901.1.1 = {
		death = yes
	}
}

