
188580 = {
	name = "Afrig"
	dynasty = 1042112 # Afrighid
	religion = "khurmazta"
	culture = khwarezmian
	280.9.4 = {
		birth = yes
	}
	350.1.1 = {
		death = yes
	}
}

188581 = {
	name = "Bagra"
	dynasty = 1042112 # Afrighid
	religion = "khurmazta"
	culture = khwarezmian
	father = 188580
	312.1.28 = {
		birth = yes
	}
	380.1.1 = {
		death = yes
	}
}

188582 = {
	name = "Sahhasak"
	dynasty = 1042112 # Afrighid
	religion = "khurmazta"
	culture = khwarezmian
	father = 188581
	337.1.1 = {
		birth = yes
	}
	410.1.1 = {
		death = yes
	}
}

188583 = {
	name = "Askajamuk"
	dynasty = 1042112 # Afrighid
	religion = "khurmazta"
	culture = khwarezmian
	father = 188582
	365.1.1 = {
		birth = yes
	}
	440.1.1 = {
		death = yes
	}
}

188584 = {
	name = "Azkajwar"
	dynasty = 1042112 # Afrighid
	religion = "khurmazta"
	culture = khwarezmian
	father = 188583
	400.1.1 = {
		birth = yes
	}
	470.1.1 = {
		death = yes
	}
}

188585 = {
	name = "Sahr"
	dynasty = 1042112 # Afrighid
	religion = "khurmazta"
	culture = khwarezmian
	father = 188584
	430.1.1 = {
		birth = yes
	}
	500.1.1 = {
		death = yes
	}
}

188586 = {
	name = "Shaush"
	dynasty = 1042112 # Afrighid
	religion = "khurmazta"
	culture = khwarezmian
	father = 188585
	460.1.1 = {
		birth = yes
	}
	530.1.1 = {
		death = yes
	}
}

188587 = {
	name = "Hamgari"
	dynasty = 1042112 # Afrighid
	religion = "khurmazta"
	culture = khwarezmian
	father = 188586
	490.1.1 = {
		birth = yes
	}
	560.1.1 = {
		death = yes
	}
}

188588 = {
	name = "Buzgar"
	dynasty = 1042112 # Afrighid
	religion = "khurmazta"
	culture = khwarezmian
	father = 188587
	520.1.1 = {
		birth = yes
	}
	600.1.1 = {
		death = yes
	}
}

188589 = {
	name = "Arsamuh"
	dynasty = 1042112 # Afrighid
	religion = "khurmazta"
	culture = khwarezmian
	father = 188588
	560.1.1 = {
		birth = yes
	}
	625.1.1 = {
		death = yes
	}
}

188590 = {
	name = "Sahr"
	dynasty = 1042112 # Afrighid
	religion = "khurmazta"
	culture = khwarezmian
	father = 188589
	600.1.1 = {
		birth = yes
	}
	665.1.1 = {
		death = yes
	}
}

188591 = {
	name = "Sabri"
	dynasty = 1042112 # Afrighid
	religion = "khurmazta"
	culture = khwarezmian
	father = 188590
	635.1.1 = {
		birth = yes
	}
	690.1.1 = {
		death = yes
	}
}

188592 = {
	name = "Azkajwar"
	dynasty = 1042112 # Afrighid
	religion = "khurmazta"
	culture = khwarezmian
	father = 188591
	665.1.1 = {
		birth = yes
	}
	712.1.1 = {
		death = yes
	}
}

188593 = {
	name = "Askajamuk"
	dynasty = 1042112 # Afrighid
	religion = "khurmazta"
	culture = khwarezmian
	father = 188592
	690.1.1 = {
		birth = yes
	}
	740.1.1 = {
		death = yes
	}
}

188594 = {
	name = "Sawashfan"
	dynasty = 1042112 # Afrighid
	religion = "khurmazta"
	culture = khwarezmian
	father = 188593
	715.1.1 = {
		birth = yes
	}
	765.1.1 = {
		death = yes
	}
}

188595 = {
	name = "Torkasbatha"
	dynasty = 1042112 # Afrighid
	religion = "khurmazta"
	culture = khwarezmian
	father = 188594
	740.1.1 = {
		birth = yes
	}
	790.1.1 = {
		death = yes
	}
}

188596 = {
	name = "Abdallah"
	dynasty = 1042112 # Afrighid
	religion = "khurmazta"
	culture = khwarezmian
	father = 188595
	765.1.1 = {
		birth = yes
	}
	790.1.1 = {
		religion = ashari
	}
	815.1.1 = {
		death = yes
	}
}
####
khwarezmian_01 = {
	name = "Bagra"
	religion = "khurmazta"
	culture = khwarezmian
	320.1.1 = {
		birth = yes
	}
	370.1.1 = {
		death = yes
	}
}
khwarezmian_02 = {
	name = "Bagra"
	religion = "khurmazta"
	culture = khwarezmian
	367.1.1 = {
		birth = yes
	}
	400.1.1 = {
		death = yes
	}
}
khwarezmian_03 = {
	name = "Bagra"
	religion = "khurmazta"
	culture = khwarezmian
	443.1.1 = {
		birth = yes
	}
	500.1.1 = {
		death = yes
	}
}




#############################################################
# 
# MISCELLANEOUS RULERS
# Petty lords of Chorasmia
# Done by Cybrxkhan
# 
#############################################################

khwarezmian_misc_001 = {
	name="Turghar"
	religion="khurmazta"
	culture="khwarezmian"
	332.6.9={
		birth=yes
	}
	391.7.15={
		death=yes
	}
}

khwarezmian_misc_002 = {
	name="Ramch"
	religion="khurmazta"
	culture="khwarezmian"
	365.9.12={
		birth=yes
	}
	414.3.12={
		death=yes
	}
}

khwarezmian_misc_003 = {
	name="Shahbaz"
	religion="khurmazta"
	culture="khwarezmian"
	455.8.2={
		birth=yes
	}
	511.7.2={
		death=yes
	}
}

khwarezmian_misc_004 = {
	name="Sesh"
	religion="khurmazta"
	culture="khwarezmian"
	338.10.14={
		birth=yes
	}
	389.12.4={
		death=yes
	}
}

khwarezmian_misc_005 = {
	name="Ewakhsh"
	religion="khurmazta"
	culture="khwarezmian"
	372.11.14={
		birth=yes
	}
	456.7.8={
		death=yes
	}
}

khwarezmian_misc_006 = {
	name="Shaw"
	religion="khurmazta"
	culture="khwarezmian"
	440.3.7={
		birth=yes
	}
	506.7.13={
		death=yes
	}
}

khwarezmian_misc_007 = {
	name="Bharxuman"
	religion="khurmazta"
	culture="khwarezmian"
	329.3.3={
		birth=yes
	}
	381.5.2={
		death=yes
	}
}

khwarezmian_misc_008 = {
	name="Uxushukan"
	religion="khurmazta"
	culture="khwarezmian"
	373.3.30={
		birth=yes
	}
	436.9.14={
		death=yes
	}
}

khwarezmian_misc_009 = {
	name="Skatch"
	religion="khurmazta"
	culture="khwarezmian"
	457.1.19={
		birth=yes
	}
	511.3.13={
		death=yes
	}
}

khwarezmian_misc_010 = {
	name="Fatmiwach"
	religion="khurmazta"
	culture="khwarezmian"
	503.2.22={
		birth=yes
	}
	549.12.16={
		death=yes
	}
}

khwarezmian_misc_011 = {
	name="Narshakhi"
	religion="khurmazta"
	culture="khwarezmian"
	498.11.13={
		birth=yes
	}
	569.8.20={
		death=yes
	}
}

khwarezmian_misc_012 = {
	name="Vaghrew"
	religion="gayomarthianism"
	culture="khwarezmian"
	480.10.2={
		birth=yes
	}
	551.3.3={
		death=yes
	}
}

khwarezmian_misc_013 = {
	name="Takhsich"
	religion="khurmazta"
	culture="khwarezmian"
	509.12.16={
		birth=yes
	}
	559.5.31={
		death=yes
	}
}

khwarezmian_misc_014 = {
	name="Ardavan"
	religion="khurmazta"
	culture="khwarezmian"
	504.2.19={
		birth=yes
	}
	578.6.3={
		death=yes
	}
}


	
188597 = {
	name = "Mansur"
	dynasty = 1042112 # Afrighid
	religion = "ashari"
	culture = khwarezmian
	father = 188596
	795.1.1 = {
		birth = yes
	}
	850.1.1 = {
		death = yes
	}
}

188598 = {
	name = "Eraq"
	dynasty = 1042112 # Afrighid
	religion = "ashari"
	culture = khwarezmian
	father = 188597
	825.1.1 = {
		birth = yes
	}
	866.1.1 = {
		effect = {
			#was always the capital of the Afrigids, this is merely a quick fix
			set_realm_capital = title:b_kath
			if = {
				limit = { has_fp3_dlc_trigger = yes }
				# Known enlightened centrist supports the status quo.
				add_trait = fp3_struggle_detractor
			}
		}
	}
	890.1.1 = {
		death = yes
	}
}

188599 = {
	name = "Muhammad"
	dynasty = 1042112 # Afrighid
	religion = "ashari"
	culture = khwarezmian
	father = 188598
	865.1.1 = {
		birth = yes
	}
	940.1.1 = {
		death = yes
	}
}

188600 = {
	name = "Abu_Sa_id"
	dynasty = 1042112 # Afrighid
	religion = "ashari"
	culture = khwarezmian
	father = 188599
	900.1.1 = {
		birth = yes
	}
	970.1.1 = {
		death = yes
	}
}

188601 = {
	name = "Abu_Abdallah"
	dynasty = 1042112 # Afrighid
	religion = "ashari"
	culture = khwarezmian
	father = 188600
	925.1.1 = {
		birth = yes
	}
	995.1.1 = {
		death = yes
	}
}

#Al-e Ma'mun
1231221 = {
	name = "Ma_mun" # Ma'mun I, Founder of Ma'munid dynasty
	dynasty = 1102251
	religion = "maturidi"
	culture = khwarezmian
	father = 1231222
	955.1.1 = {
		birth = yes
	}
	997.1.1 = {
		death = yes
	}
}
1231222 = {
	name = "Muhammad"
	dynasty = 1102251
	religion = "maturidi"
	culture = khwarezmian
	father = 1231223
	930.1.1 = {
		birth = yes
	}
	970.1.1 = {
		death = yes
	}
}
1231223 = {
	name = "Ahmad"
	dynasty = 1102251
	religion = "maturidi"
	culture = khwarezmian
	900.1.1 = {
		birth = yes
	}
	955.1.1 = {
		death = yes
	}
}
1231224 = {
	name = "_Ali" # Abu’l-Hasan
	dynasty = 1102251
	religion = "maturidi"
	culture = khwarezmian
	father = 1231221
	973.1.1 = {
		birth = yes
	}
	1009.1.1 = {
		death = yes
	}
}
1231225 = {
	name = "Mohammad" # Abu’l-Haret
	dynasty = 1102251
	religion = "maturidi"
	culture = khwarezmian
	father = 1231224
	995.1.1 = {
		birth = yes
	}
	1017.7.7 = {
		death = {
			death_reason = death_prison
		}
	}
}
#Sohaylí
1231227 = {
	name = "Ahmad_Sohayli" # Abu’l-Hosayn
	dynasty = 1102252
	religion = "maturidi"
	culture = khwarezmian
	stewardship = 9
	978.1.1 = {
		birth = yes
	}
	1037.8.8 = {
		death = yes
	}
}
1231228 = {  # Ma'mun II, deposed in 1017
	name = "Ma_mun"
	dynasty = 1102251
	religion = "maturidi"
	culture = khwarezmian
	father = 1231221
	978.1.1 = {
		birth = yes
	}
	999.1.1 = {
		add_spouse = 1000230134 # Khurra-ji Altuntashid
	}
	1017.3.3 = {
		death = {
			death_reason = death_murdered_by_rebels
		}
	}
}

#Farighunids, for later generations, see the Tajik document
1230300 = {
	name = "Farighun"
	dynasty = 1101801
	religion = "maturidi"
	culture = "khwarezmian" #FP3: changed from Tajik to Khwarezmian
	849.1.1 = {
		birth = yes
	}
	866.1.1 = {
		add_spouse = fictional_khazars_2 
	}
	895.1.1 = {
		death = yes
	}
}
1230301 = {
	name = "Ahmad"
	dynasty = 1101801
	religion = "maturidi"
	culture = "khwarezmian" #FP3: changed from Tajik to Khwarezmian
	father = 1230300
	mother = fictional_khazars_2
	867.1.1 = {
		birth = yes
	}
	935.1.1 = {
		death = yes
	}
}

extra_farighunids_4 = { #vaguely attested
	name = "Shansab"
	dynasty = 791
	religion = "khurmazta"
	culture = "khwarezmian" 
	father = extra_farighunids_5
	680.1.1 = {
		birth = yes
	}
	735.10.2 = {
		death = yes
	}
}

extra_farighunids_5 = { #vaguely attested
	name = "Kharang"
	dynasty = 791
	religion = "khurmazta"
	culture = "khwarezmian" 
	653.1.1 = {
		birth = yes
	}
	706.1.22 = {
		death = yes
	}
}









