﻿k_bulgaria = {
	867.1.1 = { change_development_level = 5 }
	1066.1.1 = { change_development_level = 8 }
	1178.1.1 = { change_development_level = 24 }
	
	632.1.1 = {
		holder = 159117
	}
	665.1.2 = {
		holder = 159127
	}
	668.1.1 = {
		holder = 0
	}
	680.1.1 = {
		holder = 159118
	}
	701.1.2 = {
		holder = 159120
	}
	721.1.2 = {
		holder = 145934
	}
	722.1.1 = {
		holder = 145936
	}
	738.1.1 = {
		holder = 145937
	}
	753.1.1 = {
		holder = 145941
	}
	756.1.1 = {
		holder = 145946
	}
	762.1.1 = {
		holder = 145951
	}
	765.1.1 = {
		holder = 145954
	}
	766.1.1 = {
		holder = 145945
	}
	766.2.10 = {
		holder = 145939
	}
	767.1.1 = {
		holder = 145949
	}
	768.1.1 = {
		holder = 159121
	}
	777.1.1 = {
		holder = 159122
	}
	802.1.2 = {
		holder = 159123
	}
	814.1.2 = {
		holder = 159124
	}
	831.1.2 = {
		holder = 159125
	}
	836.1.2 = {
		holder = 70384 #Fruzin
	}
	852.1.1 = {
		holder = 70382 #Boris
		effect = {
			if = {
				limit = {
					exists = holder
					has_dlc_feature = royal_court
				}
				holder = {
					set_court_language = language_greek # Much of the clergy and nobility were speaking Greek, only replaced in 893 when there was a mass-reconversion to Old Bulgarian
					if = {
						limit = { NOT = { knows_court_language_of = this } }
						learn_court_language_of = this
					}
				}
			}
		}
	}
	889.1.1 = {
		holder = 70383 #Vladimir
	}
	#892.1.1 = {
	#	holder = 70382 #Boris I
	#}
	893.1.1 = {
		holder = 712 #Simeon
		effect = {
			if = {
				limit = {
					exists = holder
					has_dlc_feature = royal_court
				}
				holder = {
					set_court_language = language_south_slavic
				}
			}
		}
	}
	913.8.1 = { # 913, August or a bit later
		liege = e_bulgaria # Simeon is officialy recognized as Emperor of the Bulgarians by Patriarch Nicholas Mystikos
		de_jure_liege = e_bulgaria
	}
	927.5.27 = {
		holder = 714 #Petar I
	}
	969.1.30 = {
		holder = 716 #Boris II
	}
	986.1.1 = {
		holder = 718 #Roman I
	}
	998.1.1 = {
		holder = 728 #Samuil
	}
	1014.10.6 = {
		holder = 730 #Gavril Radomir
	}
	1015.10.1 = {
		holder = 722 #Ivan Vladislav
	}
	1018.2.1 = {
		holder = 70380 #Fruzin
	}
	1018.6.1 = {
		holder = 0
	}
	1018.6.1 = { # 1018, after February
		de_jure_liege = e_byzantium # Prousianos, Alousianos and Aaron surrender 
	}
	1040.1.1 = {
		holder = 732 #Petar II
	}
	1041.1.1 = {
		holder = 0
	}
	1071.8.26 = {
		holder = 20493 #Petar III (Konstantin Bodin)
	}
	1073.1.1 = {
		holder = 0
	}
	1185.1.1 = {
		holder = 217501 #Petar III
		government = feudal_government
	}
	1190.1.1 = {
		holder = 217500 #Ivan I
	}
	1196.1.1 = {
		holder = 217502 #Kaloyan
	}
	# On 8 November 1204, Kaloyan is crowned king of the Bulgarians and Vlach by Papal Legate I'm not giving them the Empire title but
	# with Byzantine Empire gone and Bulgaria not becoming a vassal of Latin Empire or Byzantine Rump states
	1204.11.8  = { # 
		de_jure_liege = e_bulgaria # 
	}
	1207.10.1 = { # October 1207
		holder = 217505 #Boril
	}
	1218.1.2 = { # 1218
		holder = 31160 #Ivan II
	}
	1241.6.24 = {
		holder = 31165 #Koloman I
	}
	1246.8.1 = { # Until December 1256/7
		holder = 31166 #Mihail I
	}
	1256.12.1 = { # December 1256/1257
		holder = 31170 #Koloman II
	}
	1257.1.1 = {
		holder = 31185 #Micho
	}
	1258.1.1 = {
		holder = 31187 #Konstandin
	}
	1277.9.1 = {
		holder = 465551 #Ivan III
	}
	1279.1.1 = {
		holder = 31192 #Ivaljo
	}
	1280.1.1 = {
		holder = 467530 #Georgi I
	}
	1292.1.1 = {
		holder = 467540 #Smiletz
	}
	1298.1.2 = {
		holder = 125519 #Chaka
	}
	1299.1.2 = {
		holder = 31193 #Todor
	}
	1322.1.1 = {
		holder = 31195 #Georgi II
	}
	1322.8.1 = {
		holder = 467520 #Mihail II
	}
	1330.7.28 = {
		holder = 467521 #Ivan Stefan
	}
	1331.3.1 = {
		holder = 467500 #Ivan Aleksandr
	}

}


d_vidin = {
	330.1.1 = {
		liege = "e_byzantium"
	}
	
	681.1.1 = {
		liege = "k_bulgaria"
		holder = 159118
	}
	700.1.1 = {
		holder = 145944
	}
	740.1.1 = {
		holder = 145945
	}
	766.1.1 = {
		holder = 145947
	}
	786.1.1 = {
		holder = 145952
	}
	860.1.1 = {
		holder = 168067
		government = feudal_government
	}
	893.1.1 = {
		holder = 0
		liege = 0
	}
	
	1066.1.1 = {
		liege = "e_byzantium"
	}
	1066.1.1 = {
		holder = 20499	#Dragos Vojislavljevic, as strategos of Sirmium
	}
	1071.8.26 = {
		holder = 34463
	}
	1071.8.26 = {
		liege = "k_bulgaria"
	}
	1073.1.1 = {
		liege = "e_byzantium"
		holder = 41537
	}
	1094.3.12 = {
		holder = 34466
	}
	1107.1.1 = {
		holder = 34467
	}
	1140.1.1 = {
		holder = 34470
	}
	1178.1.1 = {
		holder = 215060 # Alexios Branas
		government = administrative_government
	}
	1185.1.1 = {
		liege = "k_bulgaria"
		holder = 217502 #Kaloyan
		government = feudal_government
	}
	1196.1.1 = {
		holder = 217505 #Boril
	}
	#1211.1.1 = { # 1211-1214
	#	holder =  # Revolt against Boril
	#}
	1218.1.2 = {
		holder = 31160 #Ivan II
	}
	1241.6.24 = {
		holder = 31165 #Koloman I
	}
	1246.8.1 = { # Until December 1256/7
		holder = 31166 #Mihail I
	}
	1256.12.1 = { # December 1256/1257
		holder = 31170 #Koloman II
	}
	1257.1.1 = {
		holder = 31185 #Micho
	}
	1257.1.1 = { # 1257
		holder = 98015 # Rostislav Mikhailovich invaded Vidin
		liege = 0 # After failing to take Tarnovo, Rostislav retreated to Vidin and declared himself King of Bulgaria, which was recognized by Hungarians
	}
	1260.1.1 = { # 1260
		holder = 31187 # Konstantin Tih captures Vidin, taking advantage of Rostislav Mikhailovich joining Bela IV's campaign against Bohemia		
		liege = k_bulgaria # 
	}
	1261.1.1 = { # 1261 Spring
		holder = 98015 # Bela IV and Istvan duke of Transylvania capture Vidin, restoring it to Rostislav Mikhailovich		
		liege = 0
	}
	1263.1.1 = { # 1263
		holder = SvetoslavdespotvidinABBC1 # Jacob Svetoslav submitted to Hungarian suzerainty and made ruler of Vidin
		liege = "k_hungary"
	}
	1265.1.1 = { # 1265 
		liege = "k_bulgaria" # Jacob Svetoslav changed allegiance to Bulgaria
	}
	1266.6.23 = { # 23 June 1266
		holder = 98004 # Istvan V conquers Vidin back
		liege = "k_hungary"
	}
	1266.6.24 = { #
		holder = SvetoslavdespotvidinABBC1 # Jacob Svetoslav remains as ruler of Vidin
	}
	1273.1.1 = { # 1273
		liege = "k_bulgaria" # Jacob Svetoslav switches allegiance to Bulgaria again once Darman and Kumelin became independent
	}
	1277.1.1 = { # 1275 or 1276/7
		holder = 31187 # Jacob Svetoslav's lands passed to Konstandin Tih when he died
	}
	1277.9.1 = {
		liege = 0
	}
	1277.9.1 = {
		holder = 467508 #Shishman
	}
	1311.1.2 = {
		holder = 467520 #Mihail
	}
	1322.8.1 = {
		liege = "k_bulgaria"
	}
	1330.7.28 = {
		holder = 467524 #Liudovik
	}

}


c_vidin = {
	867.1.1 = { change_development_level = 6 }
	1066.1.1 = { change_development_level = 9 }
	1178.1.1 = { change_development_level = 20 }
	
	330.1.1 = {
		liege = "d_vidin"
		government = tribal_government
	}
	681.1.1 = {
		holder = 159118
	}
	700.1.1 = {
		holder = 145944
	}
	740.1.1 = {
		holder = 145945
	}
	766.1.1 = {
		holder = 145947
	}
	786.1.1 = {
		holder = 145952
	}
	852.1.1 = {
		holder = 70382 #Boris
	}
	860.1.1 = {
		#holder = 70383
		holder = vlach_000002
	}
	935.1.1 = {
		government = feudal_government	#Ahistorical, just for ease of bookmarks.
	}
	#1066.1.1 = {
	#	liege = "d_vidin"
	#}
	1066.1.1 = {
		liege = d_rashka	#as theme of Sirmium
		government = administrative_government
		effect = {
			if = {
				limit = {
					exists = holder
					NOT = { has_dlc_feature = roads_to_power }
				}
				holder = {
					empty_treasury_when_abandoning_landed_life_effect = yes
					change_government = feudal_government
				}
			}
		}
		holder = 724
	}
	1071.8.26 = {
		holder = 34463
		liege = "d_vidin"
	}
	1073.1.1 = {
		holder = 41537
	}
	1094.3.12 = {
		holder = 34466
	}
	1107.1.1 = {
		holder = 34467
	}
	1140.1.1 = {
		holder = 34470
	}
	1178.1.1 = {
		holder = 215060 # Alexios Branas
	}
	1185.1.1 = {
		liege = "k_bulgaria"
	}
	1185.1.1 = {
		holder = 217502 #Kaloyan
	}
	1196.1.1 = {
		holder = 217505 #Boril
	}
	1218.1.2 = {
		holder = 31160 #Ivan II
	}
	1241.6.24 = {
		holder = 31165 #Koloman I
	}
	1246.8.1 = { # Until December 1256/7
		holder = 31166 #Mihail I
	}
	1256.12.1 = { # December 1256/1257
		holder = 31170 #Koloman II
	}
	1257.1.1 = { # 1257
		holder = 98015 # Rostislav Mikhailovich invaded Vidin
	}
	1263.1.1 = { # 1263
		holder = SvetoslavdespotvidinABBC1 #  submitted to Hungarian suzerainty and made ruler of Vidin
	}
	1266.6.23 = { # 23 June 1266
		holder = 98004 # Istvan V conquers Vidin back
	}
	1266.6.24 = {
		holder = SvetoslavdespotvidinABBC1 # Jacob Svetoslav remains as ruler of Vidin
	}
	1277.1.1 = { # 1275 or 1276/7
		holder = 31187 # Jacob Svetoslav's lands passed to Konstandin Tih when he died
	}
	1277.9.1 = {
		holder = 467508 #Shishman
	}
	1311.1.2 = {
		holder = 467520 #Mihail
	}
	1330.7.28 = {
		holder = 467524 #Liudovik
	}
}


c_branicevo = {
	330.1.1 = {
		liege = "d_vidin"
		government = tribal_government
	}
	681.1.1 = {
		holder = 159118
	}
	#1.1.1 = {
	#	liege = "k_bulgaria" # Comes under Bulgarian control in late 7th century for the first time 
	#}
	730.1.1 = {
		holder = BranicevciABBC1 #Branicevci
	}
	750.1.1 = {
		liege = 0 # Bulgaria loses control for for a good period of time between mid 8th and early 9th century
	}
	789.1.1 = {
		holder = BranicevciABBC2 #Branicevci
	}
	805.1.1 = {
		liege = "k_bulgaria" # Krum reimposes control c. 805
	}
	827.1.1 = {
		liege = "d_vidin"
		government = feudal_government	# Omurtag imposed new local Bulgarian chieftains in 826/7
	}
	852.1.1 = {
		holder = 70382 #Boris
	}
	860.1.1 = {
		holder = 168067
	}
	#935.1.1 = {
	##	government = feudal_government	#Ahistorical, just for ease of bookmarks. # Actually not ahistorical
	#}
	1022.1.1 = {
		holder = Diogenesstrategosmorava1025ABBC1 # Diogenes Adralestos, strategos of Morava c. 1025
	}
	#1066.1.1 = {
	#	liege = "d_vidin"
	#}
	1066.1.1 = {
		holder = 724
		liege = d_rashka	#as theme of Sirmium
	}
	1071.8.26 = {
		holder = 34463
		liege = d_vidin
	}
	1073.1.1 = {
		holder = 41537
	}
	1094.3.12 = {
		holder = 34466
	}
	1107.1.1 = {
		holder = 34467
	}
	1127.1.1 = {
		holder = Kourtikesbranicevocommander1128ABBC1 # A member of Kourtikes family is commander of Branicevo in 1128
	}
	1140.1.1 = {
		holder = 34470
	}
	1178.1.1 = {
		holder = 215060 # Alexios Branas
	}
	#1185.1.1 = {
	#	liege = "k_bulgaria"
	#}
	#1185.1.1 = {
	#	holder = 217502 #Kaloyan
	#}
	#1196.1.1 = {
	#	holder = 217505 #Boril
	#}
	1199.1.1 = { # Most likely in 1199 or maybe in 1203
		holder = 217502 #Kaloyan captures Branicevo 
		liege = "k_bulgaria"
	}
	1211.1.1 = { # 1211
		holder = 219502 # In return for help suppressing a major rebellion, Boril cedes Belgrade and Braničevo to Hungary
	}
	#1214.3.1 = {
	#	holder = 219502 # Madgearu says with his daughters betrothal to Bela, Boril abandoned lands claimed by Andras II including Branicevo 
	#}
	1218.1.2 = {
		holder = 31160 #Ivan II
	}
	1241.6.24 = {
		holder = 31165 #Koloman I
	}
	1246.8.1 = { # Until December 1256/7
		holder = 31166 #Mihail I
	}
	1256.12.1 = { # December 1256/1257
		holder = 31170 #Koloman II
	}
	1257.1.1 = { # 1257
		holder = 98015 # Rostislav Mikhailovich invaded Vidin
		liege = d_vidin
	}
	1260.1.1 = { # Before 1273
		holder = DarmanandkudelinABBC1 # Darman and Kudelin were already rulers of Branicevo when they gained independence
	}
	1273.1.1 = { # 1273
		liege = 0 # Darman and Kudelin gain independence from either Bulgaria or Hungary
	}
	1291.1.1 = { # 1291/2
		holder = 34117 # Brothers Stefan Milutin and Stefan Dragutin defeat the brothers Darman and Kudelin and their lands are taken by Dragutin
		liege = k_serbia # 
	}
	1311.1.2 = {
		holder = 467520 #Mihail
	}
	1330.7.28 = {
		holder = 467524 #Liudovik
	}
}


d_turnovo = {
	330.1.1 = {
		liege = "e_byzantium"
		government = administrative_government
		effect = {
			if = {
				limit = {
					exists = holder
					NOT = { has_dlc_feature = roads_to_power }
				}
				holder = {
					empty_treasury_when_abandoning_landed_life_effect = yes
					change_government = feudal_government
				}
			}
		}
	}
	681.1.1 = {
		liege = "k_bulgaria"
		holder = 159118
	}
	700.1.1 = {
		holder = 159120
	}
	721.1.1 = {
		holder = 145934
	}
	722.1.1 = {
		holder = 145936
	}
	738.1.1 = {
		holder = 145937
	}
	753.1.1 = {
		holder = 145941
	}
	756.1.1 = {
		holder = 145946
	}
	762.1.1 = {
		holder = 145951
	}
	765.1.1 = {
		holder = 145954
	}
	766.1.1 = {
		holder = 145945
	}
	766.2.10 = {
		holder = 145939
	}
	767.1.1 = {
		holder = 145949
	}
	768.1.1 = {
		holder = 159121
	}
	777.1.1 = {
		holder = 159122
	}
	802.1.1 = {
		holder = 159123
	}
	814.1.1 = {
		holder = 159124
	}
	831.1.1 = {
		holder = 159125
	}
	836.1.1 = {
		holder = 70384
	}
	852.1.1 = {
		holder = 70382
	}
	893.1.1 = {
		holder = 712
	}
	927.5.2 = {
		holder = 714
	}
	969.1.30 = {
		holder = 716
	}
	986.1.1 = {
		holder = 720
	}
	1018.1.1 = {
		holder = 20486
	}
	1018.6.1 = {
		holder = 20486
		liege = "e_byzantium"
	}
	1041.1.1 = {
		holder = 0
	}
	1041.1.1 = {
		liege = 0
	}
	1042.1.1 = { # 1045
		holder = Arianitesdouxparaounavon1045ABBC1 # Michael Arianites, doux of Paradouvanon 
		liege = "e_byzantium"
	}
	1048.1.1 = { # From 1048 
		holder = Anastasioslogothetesdouxdyrrachion1042ABBC1 # Michael patrikios, magistros and doux son of logothetes Anastasius, doux of Paristrion 
	}
	1049.1.1 = {
		holder = 20504 # Michael Dokeianos, katepano of Paradouvanon when he died 
	}
	1060.1.1 = {
		holder = Katakalonkatepanoparadounavon1060ABBC1 # Demetrios Katakalon, katepano of Paradouvanon in 1060s
	}
	1065.1.1 = { # 1065
		holder = 1740 # Nikephoros Botaneiates, later emperor, doux of Paradouvanon
	}
	1066.1.1 = {
		holder = 1748
	}
	1077.10.14 = {
		holder = 1782
	}
	#1092.1.1 = { # Shortly after 29 April 1091  
	#	holder = # Leo Niceritus, a trusted eunuch, appointed doux of Paradouvanon 
	#}
	1118.1.9 = {
		holder = 125751
	}
	1140.1.1 = {
		holder = 232553
	}
	1156.1.2 = {
		holder = 232555
	}
	1173.1.2 = {
		holder = 215570
	}
	1176.1.2 = {
		holder = 231059
	}
	1178.1.1 = {
		holder = 34412 # Ioannes Kantakouzenos
	}
	1183.9.20 = {
		holder = 232506
	}
	1185.1.1 = {
		liege = "k_bulgaria"
		government = feudal_government
	}
	1185.1.1 = {
		holder = 217502 #Kaloyan
	}
	1230.1.2 = {
		holder = 31160 #Ivan II
		liege = k_bulgaria
	}
	1241.6.24 = {
		holder = 31166 #Mihail
	}
	1256.12.1 = {
		holder = 31198 #Ivan
	}
	1275.1.2 = {
		holder = 467540 #Smiletz
	}
	1292.1.1 = {
		holder = 31199 #Radoslav
	}
	1298.1.2 = {
		holder = 468555 #Aldimir
	}
	1299.1.2 = { # 1299-1300
		holder = 125519 # Chaka 
	}
	1305.1.5 = {
		holder = 468550 #Ivan
	}
	1322.8.1 = {
		holder = 467500 #Ivan Aleksandr
	}
}

c_turnovo = {
	867.1.1 = { change_development_level = 6 }
	1066.1.1 = { change_development_level = 9 }
	1178.1.1 = { change_development_level = 34 }
	
	330.1.1 = {
		liege = "d_turnovo"
	}
	681.1.1 = {
		holder = 159118
	}
	700.1.1 = {
		holder = 159120
	}
	721.1.1 = {
		holder = 145934
	}
	722.1.1 = {
		holder = 145936
	}
	738.1.1 = {
		holder = 145937
	}
	753.1.1 = {
		holder = 145941
	}
	756.1.1 = {
		holder = 145946
	}
	762.1.1 = {
		holder = 145951
	}
	765.1.1 = {
		holder = 145954
	}
	766.1.1 = {
		holder = 145945
	}
	766.2.10 = {
		holder = 145939
	}
	767.1.1 = {
		holder = 145949
	}
	768.1.1 = {
		holder = 159121
	}
	777.1.1 = {
		holder = 159122
	}
	802.1.1 = {
		holder = 159123
	}
	814.1.1 = {
		holder = 159124
	}
	831.1.1 = {
		holder = 159125
	}
	836.1.1 = {
		holder = 70384
	}
	852.1.1 = {
		holder = 70382 #Boris
	}
	889.1.1 = {
		holder = 70383 #Vladimir
	}
	893.1.1 = {
		holder = 712 #Simeon
	}
	1042.1.1 = {
		holder = Arianitesdouxparaounavon1045ABBC1 # Michael Arianites, doux of Paradouvanon in 1045
	}
	1048.1.1 = { # From 1048 
		holder = Anastasioslogothetesdouxdyrrachion1042ABBC1 # Michael patrikios, magistros and doux son of logothetes Anastasius, doux of Paristrion 
	}
	1049.1.1 = {
		holder = 20504 # Michael Dokeianos, katepano of Paradouvanon when he died 
	}
	1060.1.1 = {
		holder = Katakalonkatepanoparadounavon1060ABBC1 # Demetrios Katakalon, katepano of Paradouvanon in 1060s
	}
	1065.1.1 = { # 1065
		holder = 1740 # Nikephoros Botaneiates, later emperor, doux of Paradouvanon
	}
	1066.1.1 = {
		holder = 1748
	}
	1077.10.14 = {
		holder = 1782
	}
	1118.1.9 = {
		holder = 125751
	}
	1140.1.1 = {
		holder = 232553
	}
	1156.1.2 = {
		holder = 232555
	}
	1173.1.2 = {
		holder = 215570
	}
	1176.1.2 = {
		holder = 231059
	}
	1178.1.1 = {
		holder = 34412 # Ioannes Kantakouzenos
	}
	1183.9.20 = {
		holder = 232506
	}
	
	1185.1.1 = {
		liege = "k_bulgaria"
	}
	1185.1.1 = {
		holder = 217501
	}
	1190.1.1 = {
		holder = 217500
	}
	1196.1.1 = {
		holder = 232525 # Ivanko seizes the capital Tarnovo after murdering his cousin Ivan Asen and calls for Byzantine Aid
	}
	1196.2.1 = {
		holder = 217502 # Byzantine army mutinies on its way and Petar-Theodore claims the throne, appoints Kaloyan as his co-ruler
	}
	1207.10.1 = {
		holder = 217505
	}
	1218.1.2 = {
		holder = 31160
	}
	1241.6.24 = {
		holder = 31165
	}
	1246.8.1 = { # Until December 1256/7
		holder = 31166 #Mihail I
	}
	1256.12.1 = { # December 1256/1257
		holder = 31170 #Koloman II
	}
	1257.1.1 = {
		holder = 31185
	}
	1258.1.1 = {
		holder = 31187
	}
	1277.9.1 = {
		holder = 465551
	}
	1279.1.1 = {
		holder = 31192
	}
	1280.1.1 = {
		holder = 467530
	}
	1292.1.1 = {
		holder = 467540
	}
	1298.1.2 = {
		holder = 125519
	}
	1299.1.2 = {
		holder = 31193
	}
	1322.1.1 = {
		holder = 31195
	}
	1322.8.1 = {
		holder = 467520
	}
	1330.7.28 = {
		holder = 467521
	}
	1331.3.1 = {
		holder = 467500
	}

}


c_sredets = {
	867.1.1 = { change_development_level = 6 }
	1066.1.1 = { change_development_level = 9 }
	1178.1.1 = { change_development_level = 20 }
	
	330.1.1 = {
		liege = "d_turnovo"
		government = administrative_government
		effect = {
			if = {
				limit = {
					exists = holder
					NOT = { has_dlc_feature = roads_to_power }
				}
				holder = {
					empty_treasury_when_abandoning_landed_life_effect = yes
					change_government = feudal_government
				}
			}
		}
	}
	681.1.1 = {
		liege = "e_byzantium"
	}
	765.1.1 = {
		holder = 145797
	}
	809.1.1 = {
		liege = "k_bulgaria"
		government = feudal_government
	}
	852.1.1 = {
		holder = 70382 #Boris
	}
	860.1.1 = {
		holder = 168288
	}
	1000.1.1 = { # From before 1004-1018
		holder = Krakrascommanderpernik1004ABBC1 # Krakras, commander of Pernik
	}
	1018.6.1 = { # Theme of Triaditsa and Velevousdou may have been created as early as 1018
		liege = "d_triaditsa_and_velevosdou"
		de_jure_liege = "d_triaditsa_and_velevosdou"
	}
	1066.1.1 = {
		liege = d_bulgaria	#as Bulgarian theme
		government = administrative_government
		effect = {
			if = {
				limit = {
					exists = holder
					NOT = { has_dlc_feature = roads_to_power }
				}
				holder = {
					change_government = feudal_government
				}
			}
		}
		holder = 34464
	}
	1066.1.2 = { # 1066
		liege = "d_triaditsa_and_velevosdou"
		holder = 1734 # Romanos Diogenes, later emperor, is appointed doux of Serdica
	}
	1067.1.1 = { # By 1067
		holder = 41303 # Nikephoros Melissenos, (paternally Bourtzes), held post of doux of Triaditsa
	}
	1073.1.1 = {
		holder = 1782
	}
	1118.1.9 = {
		holder = 125751
	}
	1140.1.1 = {
		holder = 232553
	}
	1147.1.1 = { # 1147
		holder = Palaiologosstrategosserdica1147ABBC1 # Sebastos Michael Palailogos, strategos of Sredets
	}
	1156.1.2 = {
		holder = 232555
	}
	1170.1.1 = { # 1170
		holder = 215570 # Ioannes Komnenos, nephew of emperor Manuel, strategos of Sredets
	}
	1176.1.2 = {
		holder = 231059
	}
	1178.1.1 = {
		holder = 34413 # Michael Kantakouzenos, serving under his father
		liege = d_turnovo
	}
	1183.9.20 = {
		holder = 232506
	}
	#1185.1.1 =
	#{
	#liege = "k_bulgaria"
	#}
	1185.1.1 = {
		holder = 215004 #Dobromir
		government = feudal_government
	}
	1185.1.1 = {
		liege = "d_turnovo"
	}
	1194.1.1 = { # 1194
		holder = 217500 # Sofia is taken by Ivan Asen 
		liege = "k_bulgaria"
	}
	1200.1.1 = {
		holder = 217505 #Boril
	}
	1230.1.2 = {
		holder = 31160 #Ivan II
	}
	1239.1.1 = { # Before 1259
		holder = AsensebastokratorkaloyanABBC1 #Mihail
	}
	1275.1.2 = {
		holder = 467540 #Smiletz
	}
	1292.1.1 = {
		holder = 31199 #Radoslav
	}
	1298.1.2 = {
		holder = 468555 #Aldimir
	}
	1305.1.5 = {
		holder = 468550 #Ivan
	}
	1322.8.1 = {
		holder = 467500 #Ivan Aleksandr
	}

}


c_nikopolis = {
	867.1.1 = { change_development_level = 8 }
	1066.1.1 = { change_development_level = 11 }
	1178.1.1 = { change_development_level = 24 }
	
	330.1.1 = {
		liege = "d_turnovo"
	}
	476.1.1 = { # Before 476 - 478/9
		holder = 168775 #  Theoderic and Ostrogoths are at Novae in Moesia Inferior
		liege = "k_ostrogoths"
	}
	479.1.1 = { # 478/9
		holder = 0 # 
		liege = 0
	}
	483.1.1 = { # 483-488
		holder = 168775 #  Theoderic and Ostrogoths settled to Novae in Moesia Inferior again
		liege = "k_ostrogoths"
	}
	488.1.1 = { # 488
		holder = 0 #  Theoderic Made an agreement with Zeno to capture Italy and Ostrogoths leave Novae
		liege = "d_turnovo"
	}
	681.1.1 = {
		holder = 159118
	}
	700.1.1 = {
		holder = 159120
	}
	721.1.1 = {
		holder = 145934
	}
	722.1.1 = {
		holder = 145936
	}
	738.1.1 = {
		holder = 145937
	}
	753.1.1 = {
		holder = 145941
	}
	756.1.1 = {
		holder = 145946
	}
	762.1.1 = {
		holder = 145951
	}
	765.1.1 = {
		holder = 145954
	}
	766.1.1 = {
		holder = 145945
	}
	766.2.10 = {
		holder = 145939
	}
	767.1.1 = {
		holder = 145949
	}
	768.1.1 = {
		holder = 159121
	}
	777.1.1 = {
		holder = 159122
	}
	802.1.1 = {
		holder = 159123
	}
	814.1.1 = {
		holder = 159124
	}
	831.1.1 = {
		holder = 159125
	}
	836.1.1 = {
		holder = 70384
	}
	852.1.1 = {
		holder = 70382 #Boris
	}
	889.1.1 = {
		holder = 70383 #Vladimir
	}
	893.1.1 = {
		holder = 712 #Simeon
	}
	1066.1.1 = {
		holder = 1748
		liege = d_turnovo	#as theme of Moesia
	}
	1077.10.14 = {
		holder = 1782
	}
	1118.1.9 = {
		holder = 125751
	}
	1140.1.1 = {
		holder = 232553
	}
	1156.1.2 = {
		holder = 232555
	}
	1173.1.2 = {
		holder = 215570
	}
	1176.1.2 = {
		holder = 231059
	}
	1178.1.1 = {
		holder = 34413 # Michael Kantakouzenos, serving under his father
		liege = d_turnovo
	}
	1183.9.20 = {
		holder = 232506
	}
	1185.1.1 = {
		liege = "k_bulgaria"
	}
	1185.1.1 = {
		holder = 217501 #Petar III
	}
	1190.1.1 = {
		holder = 217500 #Ivan I
	}
	1196.1.1 = {
		holder = 217502 #Kaloyan
	}
	1207.10.1 = {
		holder = 217505 #Boril
	}
	1218.1.2 = {
		holder = 31160 #Ivan II
	}
	1241.6.24 = {
		holder = 31165 #Koloman I
	}
	1246.8.1 = { # Until December 1256/7
		holder = 31166 #Mihail I
	}
	1256.12.1 = { # December 1256/1257
		holder = 31170 #Koloman II
	}
	1257.1.1 = {
		holder = 31185 #Micho
	}
	1258.1.1 = {
		holder = 31187 #Konstandin
	}
	1266.7.1 = { # Summer 1266, perhaps after June 23
		holder = 98004 # Istvan V conquers Pliven
		liege = "k_hungary"
	}
	1277.1.1 = {
		holder = 31187 #
	}
	1277.9.1 = {
		holder = 465551 #Ivan III
	}
	1279.1.1 = {
		holder = 31192 #Ivaljo
	}
	1280.1.1 = {
		holder = 467530 #Georgi I
	}
	1292.1.1 = {
		holder = 467540 #Smiletz
	}
	1298.1.2 = {
		holder = 125519 #Chaka
	}
	1299.1.2 = {
		holder = 31193 #Todor
	}
	1322.1.1 = {
		holder = 31195 #Georgi II
	}
	1322.8.1 = {
		holder = 467520 #Mihail II
	}
	1330.7.28 = {
		holder = 467521 #Ivan Stefan
	}
	1331.3.1 = {
		holder = 467500 #Ivan Aleksandr
	}

}


c_dorostorum = {
	867.1.1 = { change_development_level = 7 }
	920.1.1 = { change_development_level = 17 } # It took Simeon 28 years to establish and build up his and Preslav became very prosperous by the end of his reign
	948.1.1 = { change_development_level = 20 } # City continued to develop in 930s and 940s reached its peak about the middle of Peter's reign
	1066.1.1 = { change_development_level = 16 }
	1178.1.1 = { change_development_level = 27 }
	
	330.1.1 = {
		liege = "d_turnovo"
	}
	459.1.1 = { # 471, possibly as early as 459
		holder = Strabomvmpraesentalis473ABBC1 # Theoderic Strabo, leader of the Moesogoths
	}
	481.1.1 = { # 480/1
		holder = Strabomoesogothchieftain481ABBC1 # Recitach, son of Theoderic Strabo
	}
	681.1.1 = {
		holder = 159118
	}
	700.1.1 = {
		holder = 159120
	}
	721.1.1 = {
		holder = 145934
	}
	722.1.1 = {
		holder = 145936
	}
	738.1.1 = {
		holder = 145937
	}
	753.1.1 = {
		holder = 145941
	}
	756.1.1 = {
		holder = 145946
	}
	762.1.1 = {
		holder = 145951
	}
	765.1.1 = {
		holder = 145954
	}
	766.1.1 = {
		holder = 145945
	}
	766.2.10 = {
		holder = 145939
	}
	767.1.1 = {
		holder = 145949
	}
	768.1.1 = {
		holder = 159121
	}
	777.1.1 = {
		holder = 159122
	}
	802.1.1 = {
		holder = 159123
	}
	814.1.1 = {
		holder = 159124
	}
	831.1.1 = {
		holder = 159125
	}
	836.1.1 = {
		holder = 70384
	}
	852.1.1 = {
		holder = 70382 #Boris
	}
	889.1.1 = {
		holder = 70383 #Vladimir
	}
	893.1.1 = {
		holder = 712 #Simeon
	}
	927.5.27 = {
		holder = 714 #Simeon
	}
	969.1.30 = { # 969
		holder = 602 # Preslav is captured by Sviatoslav in 
	}
	971.1.1 = { # 971
		holder = 1714 # Ioannes Tzimiskes captured Preslav and after a three month siege, Dorostolon also surrendered
		liege = e_byzantium
	}
	975.1.1 = { # 10th century which should be after 972
		holder = KatakalonstrategospreslavABBC1 # A member of Katakalon family is strategos of Preslav 
	}
	986.1.1 = { # ca. 986
		holder = 728 # Preslav is captured by Samuel 
		liege = k_bulgaria
	}
	1000.1.1 = { # 1000
		holder = 1716 # Preslav is captured by Byzantines again
		liege = e_byzantium
	}
	1033.1.1 = { # Sometime in 11th century, should be first half
		holder = Varajnunistrategospreslav11thcenturyABBC1 # A Melias is strategos of Preslav 
	}
	1060.1.1 = { # 1060s
		holder = Katakalonkatepanoparadounavon1060ABBC1 # Demetrios Katakalon, katepano of Paradouvanon in 
	}
	1065.1.1 = { # 1065
		holder = 1740 # Nikephoros Botaneiates, later emperor, doux of Paradouvanon
	}
	1066.1.1 = {
		government = administrative_government
		effect = {
			if = {
				limit = {
					exists = holder
					NOT = { has_dlc_feature = roads_to_power }
				}
				holder = {
					empty_treasury_when_abandoning_landed_life_effect = yes
					change_government = feudal_government
				}
			}
		}
		holder = 20479
	}
	1070.1.1 = { # Sometime within 11th century
		holder = Phrangopoulosstrategospliskova11thcenturyABBC1 # Philotheos Phrangopoulos, strategos of Pliskov 
	}
	1072.1.1 = { # 1072
		liege = k_pechenegs # Local population rose up and turned Drastar fortress into the hands of Tatus
		holder = 20641
	}
	1092.1.1 = { #
		liege = "d_turnovo"
	}
	1093.1.1 = {
		holder = 1782
	}
	1118.1.9 = {
		holder = 125751
	}
	1140.1.1 = {
		holder = 232553
	}
	1156.1.2 = {
		holder = 232555
	}
	1173.1.2 = {
		holder = 215570
	}
	1176.1.2 = {
		holder = 231059
	}
	1178.1.1 = {
		holder = 34412 # Ioannes Kantakouzenos
	}
	1183.9.20 = {
		holder = 232506
	}
	1185.1.1 = {
		liege = "k_bulgaria"
		government = feudal_government
	}
	1185.1.1 = {
		holder = 217502 #Kaloyan
	}
	1207.10.1 = {
		holder = 217505 #Boril
	}
	1218.1.2 = {
		holder = 31160 #Ivan II
	}
	1241.6.24 = {
		holder = 31165 #Koloman I
	}
	1246.8.1 = { # Until December 1256/7
		holder = 31166 #Mihail I
	}
	1256.12.1 = { # December 1256/1257
		holder = 31170 #Koloman II
	}
	1257.1.1 = {
		holder = 31185 #Micho
	}
	1262.1.1 = { # Autumn 1262 or before
		holder = 31187 # Micho fled to Mesembria
	}
	1277.9.1 = {
		holder = 465551 #Ivan III
	}
	1279.1.1 = {
		holder = 31192 #Ivaljo
	}
	1280.1.1 = {
		holder = 467530 #Georgi I
	}
	1292.1.1 = {
		holder = 467540 #Smiletz
	}
	1298.1.2 = {
		holder = 125519 #Chaka
	}
	1299.1.2 = {
		holder = 31193 #Todor
	}
	1322.1.1 = {
		holder = 31195 #Georgi II
	}
	1322.8.1 = {
		holder = 467520 #Mihail II
	}
	1330.7.28 = {
		holder = 467521 #Ivan Stefan
	}
	1331.3.1 = {
		holder = 467500 #Ivan Aleksandr
	}

}

b_dorostorum = {
	1066.1.1 = {
		holder = 20479
		effect = { set_capital_barony = yes }
	}
}

c_vratsa = {
	330.1.1 = {
		liege = "d_turnovo"
	}
	681.1.1 = {
		holder = 159118
	}
	700.1.1 = {
		holder = 159120
	}
	721.1.1 = {
		holder = 145934
	}
	722.1.1 = {
		holder = 145936
	}
	738.1.1 = {
		holder = 145937
	}
	753.1.1 = {
		holder = 145941
	}
	756.1.1 = {
		holder = 145946
	}
	762.1.1 = {
		holder = 145951
	}
	765.1.1 = {
		holder = 145954
	}
	766.1.1 = {
		holder = 145945
	}
	766.2.10 = {
		holder = 145939
	}
	767.1.1 = {
		holder = 145949
	}
	768.1.1 = {
		holder = 159121
	}
	777.1.1 = {
		holder = 159122
	}
	802.1.1 = {
		holder = 159123
	}
	814.1.1 = {
		holder = 159124
	}
	831.1.1 = {
		holder = 159125
	}
	836.1.1 = {
		holder = 70384
	}
	852.1.1 = {
		holder = 70382 #Boris
	}
	889.1.1 = {
		holder = 70383 #Vladimir
	}
	893.1.1 = {
		holder = 712 #Simeon
	}
	1066.1.1 = {
		holder = 34464
		liege = d_bulgaria	#as Bulgarian theme
	}
	1073.1.1 = {
		holder = 1748
	}
	1077.10.14 = {
		holder = 1782
	}
	1118.1.9 = {
		holder = 125751
	}
	1140.1.1 = {
		holder = 232553
	}
	1156.1.2 = {
		holder = 232555
	}
	1173.1.2 = {
		holder = 215570
	}
	1176.1.2 = {
		holder = 231059
	}
	1178.1.1 = {
		holder = 34413 # Michael Kantakouzenos, serving under his father
		liege = d_turnovo
	}
	1183.9.20 = {
		holder = 232506
	}
	1185.1.1 = {
		liege = "k_bulgaria"
	}
	1185.1.1 = {
		holder = 217501 #Petar III
	}
	1190.1.1 = {
		holder = 217500 #Ivan I
	}
	1196.1.1 = {
		holder = 217502 #Kaloyan
	}
	1204.1.1 = {
		holder = SvetoslavdespotvidinfatherABBC1 # Giving so Jacob Svetoslav has a land holding parent
	}
	1234.1.1 = {
		holder = SvetoslavdespotvidinABBC1 # Giving so Jacob Svetoslav holds lands
	}
	1258.1.1 = {
		holder = 31187 #Konstandin
	}
	1277.9.1 = {
		holder = 465551 #Ivan III
	}
	1279.1.1 = {
		holder = 31192 #Ivaljo
	}
	1280.1.1 = {
		holder = 467530 #Georgi I
	}
	1292.1.1 = {
		holder = 467540 #Smiletz
	}
	1298.1.2 = {
		holder = 125519 #Chaka
	}
	1299.1.2 = {
		holder = 31193 #Todor
	}
	1322.1.1 = {
		holder = 31195 #Georgi II
	}
	1322.8.1 = {
		holder = 467520 #Mihail II
	}
	1330.7.28 = {
		holder = 467521 #Ivan Stefan
	}
	1331.3.1 = {
		holder = 467500 #Ivan Aleksandr
	}

}


c_aytos = {
	330.1.1 = {
		liege = "d_turnovo"
	}
	681.1.1 = {
		holder = SeverianbalkanABBC1
	}
	704.1.1 = {
		holder = SeverianbalkanABBC2
	}
	739.1.1 = {
		holder = SeverianbalkanABBC3
	}
	765.1.1 = {
		holder = SeverianprinceslavunABBC1
	}
	768.1.1 = {
		holder = SeverianbalkanABBC4
	}
	829.1.1 = {
		holder = SeverianbalkanABBC5
	}
	863.1.1 = {
		holder = 168288
	}
	1066.1.1 = {
		holder = 1748
	}
	1077.10.14 = {
		holder = 1782
	}
	1118.1.9 = {
		holder = 125751
	}
	1140.1.1 = {
		holder = 232553
	}
	1156.1.2 = {
		holder = 232555
	}
	1173.1.2 = {
		holder = 215570
	}
	1176.1.2 = {
		holder = 231059
	}
	1178.1.1 = {
		holder = 34410 # Michael Kantakouzenos
		government = administrative_government
		effect = {
			if = {
				limit = {
					exists = holder
					NOT = { has_dlc_feature = roads_to_power }
				}
				holder = {
					empty_treasury_when_abandoning_landed_life_effect = yes
					change_government = feudal_government
				}
			}
		}
		liege = d_turnovo
	}
	1183.9.20 = {
		holder = 232506
	}
	1185.1.1 = {
		liege = "k_bulgaria"
	}
	1185.1.1 = {
		holder = 217501
	}
	1190.1.1 = {
		holder = 217500
	}
	1196.1.1 = {
		holder = 217502
	}
	1207.10.1 = {
		holder = 217505
	}
	1218.1.2 = {
		holder = 31160
	}
	1241.6.24 = {
		holder = 31165
	}
	1246.8.1 = { # Until December 1256/7
		holder = 31166 #Mihail I
	}
	1256.12.1 = { # December 1256/1257
		holder = 31170 #Koloman II
	}
	1257.1.1 = {
		holder = 31185
	}
	1258.1.1 = {
		holder = 31187
	}
	1277.9.1 = {
		holder = 465551
	}
	1279.1.1 = {
		holder = 31192
	}
	1280.1.1 = {
		holder = 467530
	}
	1292.1.1 = {
		holder = 467540
	}
	1298.1.2 = {
		holder = 125519
	}
	1299.1.2 = {
		holder = 31193
	}
	1322.1.1 = {
		holder = 31195
	}
	1322.8.1 = {
		holder = 467520
	}
	1330.7.28 = {
		holder = 467521
	}
	1331.3.1 = {
		holder = 467500
	}

}


d_dobrudja = {
	330.1.1 = {
		liege = "e_byzantium"
	}
	681.1.1 = {
		liege = "k_bulgaria"
		holder = 159120
	}
	700.1.1 = {
		holder = 145936
	}
	721.1.1 = {
		holder = 145937
	}
	738.1.1 = {
		holder = 145938
	}
	760.1.1 = {
		holder = 145939
	}
	766.1.1 = {
		holder = 145956
	}
	767.1.1 = {
		holder = 159123
	}
	836.1.1 = {
		holder = 70384
	}
	852.1.1 = {
		holder = 70382
	}
	889.1.1 = {
		holder = 70383
	}
	893.1.1 = {
		holder = 712
	}
	927.5.2 = {
		holder = 714
	}
	969.1.30 = {
		holder = 716
	}
	986.1.1 = {
		holder = 718
	}
	998.1.1 = {
		holder = 728
	}
	1014.10.6 = {
		holder = 730
	}
	1015.10.1 = {
		holder = 722
	}
	1018.1.1 = {
		holder = 70380
	}
	1030.1.1 = {
		holder = 724
	}
	1041.1.1 = {
		holder = 0
	}
	1041.1.1 = {
		liege = "e_byzantium"
	}
	#1060.1.1 = {
	#	holder = 1740
	#}
	1066.1.1 = {
		holder = 1748
	}
	#1071.8.26 = {
	#	holder = 1735
	#}
	1074.1.1 = {
		holder = 34265
	}
	1090.1.1 = {
		holder = 34266
	}
	1107.1.1 = {
		holder = 41301
	}
	1110.1.1 = {
		holder = 34404
	}
	1115.1.1 = {
		holder = 34383
	}
	1151.1.1 = {
		holder = 34405
	}
	1176.9.17 = {
		holder = 34407
	}
	1178.1.1 = {
		holder = 0
	}
	1180.1.1 = {
		holder = 34409
	}
	1185.1.1 = {
		liege = "k_bulgaria"
		government = feudal_government
	}
	1185.1.1 = {
		holder = 217500 #Ivan I
	}
	1196.1.1 = {
		holder = 217502 #Kaloyan
	}
	1207.10.1 = {
		holder = 31160 #Ivan II
	}
	1218.1.2 = {
		holder = 31169 #Aleksandr
	}
	1240.1.1 = {
		holder = 31170 #Koloman
	}
	1257.1.1 = {
		holder = 31185 #Micho
	}
	1260.1.1 = {
		holder = 465551 #Ivan III
	}
	1262.1.1 = { # 1262
		holder = 31187 # Micho flees to Byzantine Empire
	}
	1279.1.1 = {
		holder = 31192 #Ivaljo
	}
	1280.1.1 = {
		holder = 467530 #Georgi I
	}
	1292.1.1 = {
		holder = 31193 #Todor I
	}
	1306.1.1 = {
		holder = 31195 #Georgi II
	}
	1322.8.1 = {
		holder = 467521 #Ivan Stefan
	}
}


c_constanta = {
	867.1.1 = { change_development_level = 7 }
	1066.1.1 = { change_development_level = 10 }
	1178.1.1 = { change_development_level = 24 }
	
	330.1.1 = {
		liege = "d_dobrudja"
	}
	681.1.1 = {
		holder = 159120
	}
	700.1.1 = {
		holder = 145936
	}
	721.1.1 = {
		holder = 145937
	}
	738.1.1 = {
		holder = 145938
	}
	760.1.1 = {
		holder = 145939
	}
	766.1.1 = {
		holder = 145956
	}
	767.1.1 = {
		holder = 159123
	}
	836.1.1 = {
		holder = 70384
	}
	852.1.1 = {
		holder = 70382 #Boris
	}
	867.1.1 = {
		holder = 168291
	}
	889.1.1 = {
		holder = 70383 #Vladimir
	}
	893.1.1 = {
		holder = 712 #Simeon
	}
	1063.1.1 = {
		liege = d_turnovo	#as theme of Moesia
		government = administrative_government
		effect = {
			if = {
				limit = {
					exists = holder
					NOT = { has_dlc_feature = roads_to_power }
				}
				holder = {
					empty_treasury_when_abandoning_landed_life_effect = yes
					change_government = feudal_government
				}
			}
		}
		holder = 20511 # Ioannes Kantakouzenos
	}
	1101.1.1 = {
		holder = 34266
		liege = "d_dobrudja"
	}
	1107.1.1 = {
		holder = 41301
	}
	1110.1.1 = {
		holder = 34404
	}
	1115.1.1 = {
		holder = 34383
	}
	1151.1.1 = {
		holder = 34405
	}
	1176.9.17 = {
		holder = 34407
	}
	1178.1.1 = {
		holder = 34410 # Michael Kantakouzenos
		liege = d_turnovo
	}
	1180.1.1 = {
		holder = 34409
	}
	1185.1.1 = {
		holder = 217500 #Ivan I
		government = feudal_government
	}
	1196.1.1 = {
		holder = 217502 #Kaloyan
	}
	1207.10.1 = {
		holder = 31160 #Ivan II
	}
	1218.1.2 = {
		holder = 31169 #Aleksandr
	}
	1240.1.1 = {
		holder = 31170 #Koloman
	}
	1257.1.1 = {
		holder = 31185 #Micho
	}
	1260.1.1 = {
		holder = 465551 #Micho
	}
	1262.1.1 = { # 1262
		holder = 31187 # Micho flees to Byzantine Empire
	}
	1279.1.1 = {
		holder = 31192 #Ivaljo
	}
	1280.1.1 = {
		holder = 467530 #Georgi I
	}
	1292.1.1 = {
		holder = 31193 #Todor I
	}
	1306.1.1 = {
		holder = 31195 #Georgi II
	}
	1322.8.1 = {
		holder = 467522 #Shishman
	}
}


c_mesembria = {
	330.1.1 = {
		liege = "d_dobrudja"
	}
	681.1.1 = {
		liege = "e_byzantium"
	}
	801.1.1 = { # c. 801
		#holder = # Aetios appoints his brother Leo as monostrategos of Thrace and Macedonia in 801/2
		liege = "d_thrace" #
	}
	812.1.1 = { # 812
		holder = 159123 # Krum takes Mesembria
	}
	836.1.1 = {
		holder = 70384
	}
	852.1.1 = {
		holder = 70382 #Boris
	}
	#864.1.1 = { # 864
	#	holder = 70490 #Boris hands Nesebar back to Byzantine Empire, added for history reasons, disabled because don't want to give entire county
	#	liege = e_byzantium
	#	government = administrative_government
	#}
	918.1.1 = { # Sometime after 20 August 917
		holder = 712 # Simeon Conquers Nesebar again
		liege = k_bulgaria
	}
	997.1.1 = { # 997 
		holder = 1716 # Basil II take Mesembria back
		liege = e_byzantium
	}
	1060.1.1 = {
		liege = d_turnovo	#as theme of Moesia
		government = administrative_government
		effect = {
			if = {
				limit = {
					exists = holder
					NOT = { has_dlc_feature = roads_to_power }
				}
				holder = {
					empty_treasury_when_abandoning_landed_life_effect = yes
					change_government = feudal_government
				}
			}
		}
		holder = 20511
	}
	1086.1.1 = { # 1086
		de_jure_liege = "d_anchialos" # Alexios Komnenos creates theme of Anchialos 
		liege = "d_anchialos"
	}
	#1.1.1 = { # 11th century
	#	holder = # Vladtzertis, strategos of Anchialos
	#}
	1090.1.1 = { # 1118
		holder = Siaousdouxanchialos1118ABBC1 # Siaous, doux of Anchialos 
	}
	1178.1.1 = { # c. 1186
		holder = Stethatosdouxanchialus1186ABBC1 Konstantinos Stethatos, doux of Anchialus
	}
	1186.1.1 = { # c. 1186
		holder = 217500 # Mesembria is taken by Bulgars
		liege = k_bulgaria
		government = feudal_government
	}
	1196.1.1 = {
		holder = 217502 #Kaloyan
	}
	#1206.1.1 = { # 1206
	#	holder = 205525 # May have briefly been taken by Latins
	#	liege = e_latin_empire
	#}
	1207.10.1 = {
		holder = 31160 #Ivan II
	}
	1218.1.2 = {
		holder = 31169 #Aleksandr
	}
	1240.1.1 = {
		holder = 31170 #Koloman
	}
	1257.1.1 = {
		holder = 31185 #Micho
	}
	1257.1.2 = { # 1257
		holder = 91068 # Latins briefly took Mesembria
		liege = e_latin_empire
	}
	1257.2.1 = { # Unknown
		holder = 31185 # Bulgars take Mesembria back
		liege = k_bulgaria
	}
	1262.1.1 = { # 1262/3 on the basis of the testimony of Pachymeres. Before 15 August 1261 According to the historian Gregoras 
		liege = "e_byzantium" # Micho offers to surrender Mesembria in exchange for lands in Byzantine Empire
		holder =  465214 # Emperor Michael VIII accepted and sent Michael Glabas Tarchaneiotes
		government = administrative_government
	}
	# c. 1263-1264 Izzettin II Keykavus is allowed to settle in Dobruja by Emperor Michael VIII Palaiologos, should perhaps be Mesembria
	# since it became part of the Empire shortly before 	
	1263.1.1 = { # c. 1263-1264
		holder = 34191 # Izzettin II Keykavus
	}
	1265.1.1 = { # 1265
		holder = 465527 # Izzettin II Keykavus flees or forcefully taken to Crimea, giving it back to Michael VIII Palaiologos
	}
	# 1269 Mesembria and Anchialos are part of the dowry of Maria Palaiologina Kantakouzene for her marriage to Konstantinos Tikh but her uncle 
	# Emperor Michael VIII quarreled to surrender these territories so she openly put up her husband to attack her uncle.
	1280.1.1 = { # 1285
		holder = Oumbertopoulosgovernormesembria1285ABBC1 # An Oumbertopoulos is governor of Mesembria 
	}
	1292.1.1 = {
		holder = 31193 #Todor I
		government = feudal_government
	}
	1306.1.1 = {
		holder = 31195 #Georgi II
	}
	1322.8.1 = {
		holder = 467521 #Ivan Stefan
	}
}


d_bulgaria = {
	330.1.1 = {
		liege = "e_byzantium"
		government = administrative_government
		effect = {
			if = {
				limit = {
					exists = holder
					NOT = { has_dlc_feature = roads_to_power }
				}
				holder = {
					empty_treasury_when_abandoning_landed_life_effect = yes
					change_government = feudal_government
				}
			}
		}
	}
	766.1.1 = {
		holder = 145799
	}
	865.1.1 = {
		liege = "k_bulgaria"
		government = feudal_government
		holder = 70383
	}
	893.1.1 = {
		holder = 712 #Simeon
	}
	1026.1.1 = {
		liege = e_byzantium	#as Bulgarian theme
		government = administrative_government
		holder = 20525 # Konstantinos Diogenes, appointed doux of Bulgaria during the sole reign of Emperor Konstantinos VIII
	}
	1060.1.1 = {
		holder = 0
	}
	
	1066.1.1 = { # 1066-1067
		effect = {
			if = {
				limit = {
					exists = holder
					NOT = { has_dlc_feature = roads_to_power }
				}
				holder = {
					empty_treasury_when_abandoning_landed_life_effect = yes
					change_government = feudal_government
				}
			}
		}
		holder = Philokaleskatepanobulgaria1066ABBC1 # Andronikos Philokales, katepano/doux of Bulgaria
	}
	1070.1.1 = { # 1072
		holder = saronites_1 # Michael Saronites, katepano of Bulgaria in 
	}
	1080.1.1 = { # Sometime between 1070-1090, possibly after 1080
		holder = Karykesdouxbulgaria1080ABBC1 # Niketas Karykes, doux of Bulgaria
	}
	1090.1.1 = {
		holder = 90093
	}
	1093.1.1 = {
		holder = 90092
	}
	1098.1.1 = {
		holder = 232512
	}
	1149.1.1 = {
		holder = 215035
	}
	#1149.1.1 = {
	#	holder = # WIP: Basil Tripsychos/Tripsyches, doux off Bulgaria, maybe with Konstantinos Angelos?
	#}
	# 1165 Zeugminon is captured and Basil Tripsychos fortifies Zeugminon, Belegrade, Nis, Branicevo, Sirmium
	1178.1.1 = {
		holder = 34281 # Alexios Palaiologos
		effect = {
			set_capital_county = title:c_skopje
		}
	}
	1185.9.12 = {
		holder = 215508
	}
	1200.1.1 = {
		holder = 215513
		government = feudal_government
	}
	#1203.1.2 = {
	#	holder = 215514
	#}
	1204.5.16 = {
		liege = 0
	}
	#1268.1.1 = {
	#	holder = 125726
	#}
	#1297.1.1 = {
	#	holder = 125728
	#}
	
	1318.1.1 = {
		holder = 31440 #Nicolo Orsini
	}
	1323.1.1 = {
		holder = 31441 #Giovanni II Orsini
	}
	1335.1.1 = {
		holder = 31443 #Nikephoros Orsini
	}
}


c_naissus = {
	867.1.1 = { change_development_level = 6 }
	1066.1.1 = { change_development_level = 9 }
	1178.1.1 = { change_development_level = 20 }
	
	330.1.1 = {
		liege = "d_vidin"
		government = tribal_government
	}
	681.1.1 = {
		liege = "e_byzantium"
		government = administrative_government
		effect = {
			if = {
				limit = {
					exists = holder
					NOT = { has_dlc_feature = roads_to_power }
				}
				holder = {
					empty_treasury_when_abandoning_landed_life_effect = yes
					change_government = feudal_government
				}
			}
		}
	}
	759.1.1 = {
		holder = 145125
	}
	843.1.1 = {
		liege = "k_bulgaria"
		government = feudal_government
	}
	852.1.1 = {
		holder = 70382 #Boris
	}
	860.1.1 = {
		liege = "d_vidin"
		#holder = 70383
		holder = vlach_000003
	}
	1018.1.1 = { # 11th century
		liege = "e_byzantium"
		holder = Lalakonstrategosnis11thcenturyABBC1 # Nikephoros Lykaon/Lalakon, strategos of Nisos
	}
	1066.1.1 = {
		liege = d_rashka	#as theme of Sirmium
		government = administrative_government
		effect = {
			if = {
				limit = {
					exists = holder
					NOT = { has_dlc_feature = roads_to_power }
				}
				holder = {
					empty_treasury_when_abandoning_landed_life_effect = yes
					change_government = feudal_government
				}
			}
		}
		holder = 1735
	}
	1071.8.26 = {
		liege = "k_bulgaria"
		holder = 20493
	}
	1073.1.1 = {
		liege = "d_vidin"
		holder = 41537
	}
	1094.3.12 = {
		holder = 34468
	}
	1118.1.1 = {
		holder = 34470
	}
	1178.1.1 = {
		holder = 215009 # Alexios Palaiologos
		liege = d_bulgaria
	}
	1186.1.1 = { # 1183?
		liege = "k_serbia" # Belgrade and Nis are lost to Stephan Nemanja
	}
	1186.1.1 = {
		holder = 218500
	}
	1196.1.1 = {
		holder = 218507
	}
	1202.1.1 = {
		liege = "d_vidin"
	}
	1203.6.1 = { # 1203 Summer
		holder = 217502 # Kaloyan invades Serbia and captures Nis
	}
	1207.10.1 = {
		holder = 217505 #Boril
	}
	1218.1.2 = {
		holder = 31160 #Ivan II
	}
	1241.6.24 = {
		holder = 31165 #Koloman I
	}
	1246.8.1 = { # Until December 1256/7
		holder = 31166 #Mihail I
	}
	1256.12.1 = { # December 1256/1257
		holder = 31170 #Koloman II
	}
	1257.1.1 = {
		holder = 31185 #Micho
	}
	1258.1.1 = { # 1258 or after 
		holder = SvetoslavdespotvidinABBC1 # Konstandin Tih made Jacob Svetoslav ruler of a region considered to be south of Vidin, perhaps close to Sofia, Svrjlig was part of his realm at least at his death
		liege = "k_bulgaria"
	}
	1277.1.1 = { # 1275 or 1276/7
		holder = 31187 # Jacob Svetoslav's lands passed to Konstandin Tih when he died
	}
	1277.9.1 = {
		liege = "k_serbia"
	}
	1277.9.1 = {
		holder = 34117
	}
	1282.1.1 = {
		holder = 468505
	}
	1321.10.29 = {
		holder = 34122
	}
	1322.6.1 = {
		holder = 468510
	}
	1331.11.3 = {
		holder = 468500
	}
	

}


c_pomoravlje = {
	330.1.1 = {
		liege = "d_dyrrachion"
		government = administrative_government
		effect = {
			if = {
				limit = {
					exists = holder
					NOT = { has_dlc_feature = roads_to_power }
				}
				holder = {
					empty_treasury_when_abandoning_landed_life_effect = yes
					change_government = feudal_government
				}
			}
		}
	}
	640.1.1 = {
		liege = "d_rashka"
	}
	748.1.1 = {
		holder = 146011
	}
	787.1.1 = {
		holder = 146012
	}
	806.1.1 = {
		holder = 146013
	}
	# since 843.1.1 d_dyrrachion is under k_bulgaria
	843.1.1 = {
		liege = "d_dyrrachion"
		government = feudal_government
	}
	852.1.1 = {
		holder = 70382 #Boris
	}
	860.1.1 = {
		holder = 70383
		liege = "d_vidin"
	}
	893.1.1 = {
		holder = 712 #Simeon
	}
	1066.1.1 = {
		liege = d_rashka	#as theme of Sirmium
		government = administrative_government
		effect = {
			if = {
				limit = {
					exists = holder
					NOT = { has_dlc_feature = roads_to_power }
				}
				holder = {
					empty_treasury_when_abandoning_landed_life_effect = yes
					change_government = feudal_government
				}
			}
		}
		holder = 20482
	}
	1078.1.1 = {
		holder = 20481
		liege = d_vidin
	}
	1093.1.1 = { # Couldn't find exact date
		holder = 20538 # Vukan conquers Vranje in 1093
		liege = "d_rashka"
	}
	1093.1.1 = { # Couldn't find exact date
		holder = 0 # But loses it not long after
		liege = "e_byzantium"
	}
	1107.1.1 = {
		holder = 42014
	}
	1108.1.1 = {
		holder = 34441
	}
	1143.1.1 = {
		holder = 34442
	}
	1178.1.1 = {
		holder = 34281 # Alexios Palaiologos
	}
	1193.1.1 = {
		holder = 218500 # Stefan Nemanja temporarily takes Vranje in 1193
		liege = "d_rashka"
	}
	1194.1.1 = { # Exact date unknown
		holder = 0 # Stefan Nemanja temporarily takes Vranje in 1193
		liege = "e_byzantium"
	}
	1203.1.1 = {
		holder = 217502 # Skopje is taken by Kaloyan c. 1203, couldn't find history for Vranje at this date so also giving it to Kaloyan
		liege = "k_bulgaria"
	}
	1207.1.1 = {
		holder = 218507 # Stefan Nemanjić conquers Vranje in 1207
		liege = "k_serbia"
	}
	1227.9.24 = {
		holder = 34100
	}
	1234.1.1 = {
		holder = 34103
	}
	1243.1.1 = {
		holder = 34088
	}
	1276.1.1 = {
		holder = 34117
	}
	1282.1.1 = {
		holder = 468505
	}
	1321.10.29 = {
		holder = 34122
	}
	1322.6.1 = {
		holder = 468510
	}
	1331.11.3 = {
		holder = 468500
	}

}


c_velbazhd = {
	330.1.1 = {
		liege = "d_dyrrachion"
	}
	640.1.1 = {
		liege = "d_rashka"
	}
	748.1.1 = {
		holder = 146011
	}
	787.1.1 = {
		holder = 146012
	}
	806.1.1 = {
		holder = 146013
	}
	# since 843.1.1 d_dyrrachion is under k_bulgaria
	843.1.1 = {
		liege = "d_dyrrachion"
	}
	852.1.1 = {
		holder = 70382 #Boris
	}
	860.1.1 = {
		holder = 70383
		liege = "d_vidin"
	}
	893.1.1 = {
		holder = 712 #Simeon
	}
	1050.1.1 = { # Second half of 11th century
		holder = Dalassenosdouxbulgaria11thcenturysecondhalfABBC1 # Konstantinos Dalassenos, doux, possibly somewhere in Bulgaria
	}
	1066.1.1 = {
		liege = d_bulgaria #as Bulgarian theme
	}
	1078.1.1 = {
		holder = 20481
	}
	1107.1.1 = {
		holder = 42014
	}
	1108.1.1 = {
		holder = 34441
	}
	1143.1.1 = {
		holder = 34442
	}
	1178.1.1 = {
		holder = 215009 # Alexios Palaiologos
		government = administrative_government
		effect = {
			if = {
				limit = {
					exists = holder
					NOT = { has_dlc_feature = roads_to_power }
				}
				holder = {
					empty_treasury_when_abandoning_landed_life_effect = yes
					change_government = feudal_government
				}
			}
		}
		liege = d_bulgaria
	}
	1201.1.1 = {
		holder = 217502 #Kaloyan conquers Velbazhd 1201/3
		liege = "k_bulgaria"
	}
	1207.10.1 = {
		holder = 217505 #Boril
	}
	1218.1.2 = {
		holder = 31160 #Ivan II
	}
	1230.1.1 = {
		liege = "k_bulgaria"
	}
	1230.1.1 = {
		holder = 31160 #Ivan II
	}
	1241.6.24 = {
		holder = 31165 #Koloman I
	}
	1267.1.1 = { # Velbazhd returns to Byzantine control sometime before 1282
		liege = "e_byzantium"
	}
	#1246.8.1 = {
	#	liege = "k_serbia"
	#}
	#1246.8.1 = {
	#	holder = 34088
	#}
	#1276.1.1 = {
	#	holder = 34117
	#}
	1282.1.1 = { # 1282
		holder = 468505 # Stefan Uros Milutin conquers Velbazhd from Byzantines
		liege = "k_serbia"
	}
	1321.10.29 = {
		holder = 34122
	}
	1322.6.1 = {
		holder = 468510
	}
	1331.11.3 = {
		holder = 468500
	}

}


c_pirin = {
	330.1.1 = {
		liege = "d_dyrrachion"
		government = administrative_government
		effect = {
			if = {
				limit = {
					exists = holder
					NOT = { has_dlc_feature = roads_to_power }
				}
				holder = {
					empty_treasury_when_abandoning_landed_life_effect = yes
					change_government = feudal_government
				}
			}
		}
	}
	
	# Strymonites attested since the Slavic siege of Thessalonika c. 677
	670.1.1 = {
		holder = StrymoniteABBC1
		government = tribal_government
	}
	710.1.1 = {
		holder = StrymoniteABBC2
	}
	745.1.1 = {
		holder = StrymoniteABBC3
	}
	790.1.1 = {
		holder = StrymoniteABBC4
	}
	835.1.1 = {
		holder = StrymoniteABBC5
	}
	# since 843.1.1 d_dyrrachion is under k_bulgaria
	852.1.1 = {
		liege = "k_bulgaria"
	}
	860.1.1 = {
		liege = "d_bulgaria"
	}
	865.1.1 = {
		holder = StrymoniteABBC7
	}
	905.1.1 = {
		holder = 712 #Simeon
		government = feudal_government
	}
	1018.6.1 = { # 1018
		liege = "d_zagoria_or_melenikon" # Theme of Zagoria/Melenikon is created
		de_jure_liege = "d_zagoria_or_melenikon"
	}
	1060.1.1 = {
		liege = d_bulgaria	#as Bulgarian theme
		government = administrative_government
		effect = {
			if = {
				limit = {
					exists = holder
					NOT = { has_dlc_feature = roads_to_power }
				}
				holder = {
					empty_treasury_when_abandoning_landed_life_effect = yes
					change_government = feudal_government
				}
			}
		}
		holder = 20484
	}
	1078.1.1 = {
		holder = 20480
	}
	1116.1.1 = {
		holder = 125752
	}
	1130.1.1 = {
		holder = 125753
	}
	1170.1.1 = {
		holder = 215001
	}
	1178.1.1 = {
		holder = 215009 # Alexios Palaiologos
		liege = d_bulgaria
	}
	1185.9.12 = {
		liege = "d_strymon"
		holder = 215061
	}
	1186.1.1 = {
		holder = 215001
	}
	1193.1.1 = {
		holder = 34584
	}
	#Bulgarian conquest
	1203.1.1 = {
		liege = "d_turnovo"
		holder = 217505 #Boril
	}
	1207.10.1 = {
		holder = 217507 #Strez
	}
	1209.1.1 = { # c. 1211, possibly in 1209
		holder = 217506 # Aleksii Slav took Melnik 
		liege = "d_bulgaria" # Aleksii Slav is a vasal of Latin Empire at this date 
	}
	#1215.12.1 = {
	#	liege = 0 # Alexius Slav becomes an autocrat sometime in 1215
	#}
	1230.4.1 = { # After 9 March 1230
		holder = 31160 # Alexius Slav's realm become part of Bulgaria again ater Battle of Klokotnisa
		liege = k_bulgaria
	}
	1231.1.1 = { # Until the towns surrender in 1246
		holder = Litovoesmelnikcommander1246ABBC1 # Nikolaos Litovoes governor of Melnik
	}
	# After surrendering Serres to Nikaeans, its commander Dragotas who is from Melenikon/Melnik makes promises regarding the town. He goes to Melnik
	# whichs commander Nikolaos Litovoes was ill and bedridden with pain in his legs. With the help of Nikolaos Manglavites, a prominent person from
	# the town, they persuade its citizens to surrender. 500 people, soldiers, magnates and "inhabitants generally of the better sort" goes to emperor
	# to surrender.
	1246.10.1 = { # 1246, after surrender of Serres, before November, perhaps before October
		holder = 125741 # 
		liege = e_byzantium
		government = administrative_government
	}
	# Ioannes III Vatatzes 
	1246.11.15 = { # 1246 mid November/December
		holder = 465527 # Ioannes III Vatatzes leaves Michael Palaiologos, later emperor Michael VIII, to defend Serres, Melnik and he surrounding territory
		liege = d_thessalonika # and put under the commander of Megas Domestikos Andronikos Palaiologos
	}

	# Summer 1255 Dragotas, strategos of Zagoria/Melenikon but not in command of the garrison of the town switches sides again and sieges Melnik
	
	# Theme of Melenikon/Zagoria, with Melnik as its capital
	1253.9.1 = { # Before 1255
		holder = Angeloscommandermelnik1255ABBC1 # Theodoros Nestongos and Ioannes Angelos, commanders of garrison of Melnik
	}
	1258.10.1 = { # 
		holder = Nestongoscommandermelnik1255ABBC1 # Giving it to Theodoros Nestongos who was commander of Melnik's garrison with Ioannes Angelos
	}
	#1255.1.2 = { # 1255
	#	holder =  # Theodoros Nestongos, Ioannis Angelos and Dragotas, strategoi of Zagoria/Melenikon 
	#}
	#1321.1.2 = { # 1321
	#	holder =  # Michael Laskaris Metochites, strategos of Zagoria/Melenikon 
	#}
	#1328.1.2 = { # 1328
	#	holder =  # Nikephoros Basilikos, strategos of Zagoria/Melenikon 
	#}
	#1342.1.2 = { # 1342
	#	holder =  # Ioannis Asan, strategos of Zagoria/Melenikon 
	#}
	1275.1.2 = {
		holder = 467540 #Smiletz
	}
	1292.1.1 = {
		holder = 31199 #Radoslav
	}
	1298.1.2 = {
		holder = 468555 #Aldimir
	}
	1305.1.5 = {
		holder = 468550 #Ivan
	}
	1322.8.1 = {
		holder = 467500 #Ivan Aleksandr
	}

}


# WIP: May 1216 Paul Klaudiopolites Metropolitan of Melnik

c_strumica = {
	330.1.1 = {
		liege = "d_dyrrachion"
	}
	473.1.1 = { # c. 473
		holder = 168775 #  Theoderic the Great captures Stobi
		liege = "k_ostrogoths"
	}
	476.1.1 = { # Before 476
		holder = 0 #  Theoderic and Ostrogoths settled to Novae in Moesia Inferior
		liege = "d_dyrrachion"
	}
	753.1.1 = {
		holder = 145818
	}
	# since 843.1.1 d_dyrrachion is under k_bulgaria
	852.1.1 = {
		holder = 70382 #Boris
		liege = "k_bulgaria"
	}
	865.1.1 = { # During the reigns of Boris and Simeon
		holder = BregalnicacomitatusABBC1 # Taridin, a komitatus whose area include Bregalnica
		liege = "d_bulgaria"
	}
	896.1.1 = { # c. 904
		holder = DristrukomituABBC1 # Dristru, successor of Taridin, is komit of Strumitsa 
	}
	1015.1.1 = { #1015 - 1017
		holder = Arianitesdouxthessalonika999ABBC1 # David Arianites, strategos of Strumica before formal creation of the Theme
	}
	1018.6.1 = { # 1018
		de_jure_liege = "d_strumica" # Strumica theme is created
	}
	1060.1.1 = {
		holder = 20484
	}
	1066.1.1 = { # Sometime before 1068/9
		holder = ApokaukosdouxhieropolisABBC1 # Pharesmanes Apokapis/Apokaukos, governor of Strumitsa 
	}
	1078.1.1 = {
		holder = 20480
	}
	1116.1.1 = {
		holder = 125752
	}
	1130.1.1 = {
		holder = 125753
	}
	1178.1.1 = {
		holder = 215009 # Alexios Palaiologos
		liege = d_bulgaria
	}
	1185.9.12 = {
		liege = "d_strymon"
		holder = 215061
	}
	1186.1.1 = {
		holder = 215001
	}
	1193.1.1 = {
		liege = "d_strumica"
		holder = 34584
	}
	#Bulgarian conquest
	1203.1.1 = {
		holder = 217505 #Boril
	}
	1208.10.1 = { # By 1209
		holder = 217507 #Strez's realm expand to Strumica in the East
	}
	1214.1.1 = {
		holder = 217506 #Aleksii
		liege = d_zagoria_or_melenikon
	}
	#1219.1.1 = { # 1219
	#	liege = "d_epirus"
	#	holder = 215514 # Theodore Komnenos Doukas captures Prosek
	#	government = administrative_government
	#}
	1230.4.1 = { # After 9 March 1230
		holder = 31160 # Alexius Slav's realm become part of Bulgaria again ater Battle of Klokotnisa
	}
	1241.6.24 = {
		holder = 31166 #Mihail
	}
	1246.10.1 = { # 1246, along with the surrender of Melnik
		holder = 125741 # Lands as far as Prosek are surrendered to Nikaeans
		liege = k_nikaea
		government = administrative_government
	}
	1246.11.15 = { # 1246 mid November/December
		holder = 465527 # Ioannes III Vatatzes leaves Michael Palaiologos, later emperor Michael VIII, to defend Serres, Melnik and he surrounding territory
		liege = d_thessalonika # and put under the commander of Megas Domestikos Andronikos Palaiologos
	}
	1275.1.2 = {
		holder = 467540 #Smiletz
	}
	1292.1.1 = {
		holder = 31199 #Radoslav
	}
	1298.1.2 = {
		holder = 468555 #Aldimir
	}
	1305.1.5 = {
		holder = 468550 #Ivan
	}
	#1321.1.1 = { # 1321
	#	holder =  # Dimitrios Angelos Metochites, strategos of Strumica
	#}
	#1328.1.1 = { # 1328
	#	holder =  # Michael Asanis, strategos of Strumica
	#}
	1322.8.1 = {
		holder = 467500 #Ivan Aleksandr
	}

}


c_skopje = {
	330.1.1 = {
		liege = "d_dyrrachion"
	}
	640.1.1 = {
		liege = "d_rashka"
	}

	685.1.1 = {
		holder = DulokuberABBC1
	}
	710.1.1 = {
		holder = KubairABBC1
	}
	743.1.1 = {
		holder = KubairABBC2
	}
	776.1.1 = {
		holder = KubairABBC3
	}
	815.1.1 = {
		holder = KubairnegavonayABBC1
	}
	829.1.1 = {
		holder = KubairABBC6
	}
	# since 843.1.1 d_dyrrachion is under k_bulgaria
	843.1.1 = {
		liege = "d_bulgaria"
	}
	889.1.1 = {
		holder = KubairABBC7
	}
	903.1.1 = {
		holder = KubairABBC8
	}
	893.1.1 = {
		holder = 712 #Simeon
	}
	1066.1.1 = {
		holder = 34464 # Nikephoros Karantenos, doux of Skopje until 1067
		liege = d_bulgaria	#as Bulgarian theme
	}
	1070.1.1 = {
		holder = saronites_1 # Michael Saronites, katepano of Bulgaria in 1072
	}
	1077.1.1 = { # Possibly 1077
		holder = Kabasilasdouxskopje1077ABBC1 #Alexandros Kabasilas, doux of Skopje
	}
	1080.1.1 = { # Sometime between 1070-1090, possibly after 1080
		holder = Karykesdouxbulgaria1080ABBC1 # Niketas Karykes, doux of Bulgaria
	}
	1090.1.1 = {
		holder = 20481
	}
	1107.1.1 = {
		holder = 42014
	}
	1108.1.1 = {
		holder = 34441
	}
	1143.1.1 = {
		holder = 34442
	}
	1178.1.1 = {
		holder = 34281 # Alexios Palaiologos
	}
	1190.1.1 = {
		holder = Aspietesdouxskopje1190ABBC1 # Konstantinos Aspietes, doux of Skopje in 1190/1
	}
	1192.1.1 = {
		holder = 0 # 
	}
	1203.1.1 = { # c. 1203, possibly as early as 1199
		holder = 217502 # Skopje is taken by Kaloyan 
		liege = "k_bulgaria"
	}
	1207.10.1 = {
		holder = 217505 #Boril
	}
	1208.10.1 = { # By 1209
		holder = 217507 # Strez's realm expanded to Skopje in the North
	}
	1214.5.1 = {
		holder = 31186 # Konstantin Tih's father is a noble from Skopje
	}
	#1246.8.1 = {
	#	liege = "k_serbia"
	#}
	#1246.8.1 = {
	#	holder = 34088
	#}
	1246.10.1 = { # 1246, along with the surrender of Melnik
		holder = 125741 # Skopje, Veles and Prilep surrender to Ioannes III Vatatzes
		liege = k_nikaea
		government = administrative_government
	}
	1255.1.1 = { # After December 1254/January 1255, possibly before February 1255
		holder = 31166 # Skopje surrenders to Mihail I Asen
		liege = k_bulgaria
	}
	#1257.1.1 = { # 1257
	#	holder = 34088 # Stefan Uros invaded Nicaean territory, reaching the towns of Skopje and Prilep
	#}
	1276.1.1 = {
		holder = 34117
	}
	1282.1.1 = {
		holder = 468505
	}
	1321.10.29 = {
		holder = 34122
	}
	1322.6.1 = {
		holder = 468510
	}
	1331.11.3 = {
		holder = 468500
	}
}

c_ohrid = {
	1178.1.1 = { change_development_level = 34 }

	330.1.1 = {
		liege = "d_dyrrachion"
	}
	473.1.1 = { # c. 473
		holder = 168775 #  Theoderic the Great captures Heraclea Lyncestis
		liege = "k_ostrogoths"
	}
	476.1.1 = { # Before 476
		holder = 0 #  Theoderic and Ostrogoths settled to Novae in Moesia Inferior
		liege = "d_dyrrachion"
	}
	640.1.1 = {
		liege = "d_rashka"
	}
	748.1.1 = {
		holder = 146011
	}
	787.1.1 = {
		holder = AkamerosarchonbelzetiaABBC1
	}
	832.1.1 = {
		holder = BerzitiABBC2
	}
	# since 843.1.1 d_dyrrachion is under k_bulgaria
	843.1.1 = {
		liege = "d_dyrrachion"
	}
	854.1.1 = {
		holder = DometakomitadevolABBC1 #Dometa
		liege = "d_bulgaria"
	}
	893.1.1 = {
		holder = 712 #Simeon
	}
	#1015.1.1 = { # 1015 - 1018
	#	holder = # WIP: Gonitzatis, strategos of Ohrid
	#}
	1018.2.1 = { # From February 1018 
		holder = Daphnomelesstrategosdyrrachion1018ABBC1 # Eustathios Daphnomeles, strategos or Archon of Ohrid
	}
	1066.1.1 = {
		holder = Philokaleskatepanobulgaria1066ABBC1 # Andronikos Philokales, doux/katepano of Bulgaria in 1066
		liege = d_bulgaria	#as Bulgarian theme
	}
	#1071.1.1 = { # 1071 - 1078
	#	holder = # WIP: Marianos, strategos of Ohrid
	#}
	1078.1.1 = {
		holder = 20481
		liege = "d_dyrrachion"
	}
	1083.1.1 = {
		holder = 1140 # Bohemond I of Antioch takes Ohrid in 1083
		liege = 0
	}
	1085.1.1 = {
		holder = 1742 # Ohrid is regained by Byzantine Empire in 1085
		liege = "e_byzantium"
	}
	1097.1.1 = {
		holder = Bakurianidzearchonohrid1100ABBC1 # Gregorios Pakourianos the younger, archon(governor) of theme of Ohrid in 1100
	}
	1107.1.1 = {
		holder = 42014
	}
	1108.1.1 = {
		holder = 34441
	}
	1143.1.1 = {
		holder = 34442
	}
	1178.1.1 = {
		holder = 34281 # Alexios Palaiologos
	}
	1203.1.1 = { # c. 1203
		holder = 217502 # Kaloyan takes Skopje, Branicevo, Nis, Morabistos, and Ochrid
		liege = "k_bulgaria"
	}
	1207.10.1 = {
		holder = 217505 #Boril
	}
	1208.10.1 = { # By 1209
		holder = 217507 # Strez's realm expanded to Bitola and perhaps Ohrid in West
	}
	1214.6.1 = { # 1214/7
		holder = 1188 # Theodore Komnenos Doukas takes Ohrid and Prilep
		liege = k_epirus
	}
	1214.7.1 = { # Exact date unknown
		holder = PlytosgovernordouxkrujeABBC1 # Ioannes Plytos, doux of Krujë, of Ohrid, and of Veroia
	}
	1218.1.2 = {
		holder = 31160 # Ivan II
	}
	1241.6.24 = {
		holder = 31165 #Koloman I
	}
	1246.8.1 = {
		liege = "k_serbia"
	}
	1246.8.1 = {
		holder = 34088
	}
	1247.1.1 = {
		liege = "k_nikaea"
		holder = 34448 # Golem of Kruje likely had had control over Ohrid c. 1250
	}
	#1255.1.1 = { # After death of 
	#	holder = 125715 # WIP: Michael II Komnenos Doukas takes Prilep
	#}
	1256.12.1 = {
		holder = 34452 # Ohrid is later ceded to Byzantine Empire, perhaps at the same time Georgios Akropolites installs a Byzantine administation to Arbanon
	}
	1258.1.1 = { 
		holder = 125715 # Ohrid is under Epirote control, must have either been retaken or never lost to Nikaeans in the first place
		liege = k_epirus
	}
	1259.6.1 = { # 1259, spring/summer
		holder = 34452 # Nikaeans capture Ohrid and Devol
		liege = k_nikaea
	}
	1261.8.25 = {
		liege = e_byzantium
	}
	#1270.1.1 = { # 1273
	#	holder = # WIP: Sebastos Pal Gropa is recorded as ruler of Ohrid 
	#}
	#1276.1.1 = {
	#	holder = 34117
	#}
	1282.1.1 = {
		holder = 468505
	}
	1321.10.29 = {
		holder = 34122
	}
	1322.6.1 = {
		holder = 468510
	}
	1331.11.3 = {
		holder = 468500
	}
}

# WIP: After 1204, Latins seize Prilep, Pelagonia and Prespe

d_philippopolis = {
	330.1.1 = {
		government = administrative_government
		effect = {
			if = {
				limit = {
					exists = holder
					NOT = { has_dlc_feature = roads_to_power }
				}
				holder = {
					empty_treasury_when_abandoning_landed_life_effect = yes
					change_government = feudal_government
				}
			}
		}
		liege = "e_byzantium"
	}
	681.1.1 = {
		liege = "k_bulgaria"
		holder = 159118
	}
	700.1.1 = {
		holder = 159120
	}
	721.1.1 = {
		holder = 145934
	}
	722.1.1 = {
		holder = 145936
	}
	738.1.1 = {
		holder = 145937
	}
	753.1.1 = {
		holder = 145941
	}
	756.1.1 = {
		holder = 145946
	}
	762.1.1 = {
		holder = 145951
	}
	765.1.1 = {
		holder = 145954
	}
	766.1.1 = {
		holder = 145945
	}
	766.2.10 = {
		holder = 145939
	}
	767.1.1 = {
		holder = 145949
	}
	768.1.1 = {
		holder = 159121
	}
	777.1.1 = {
		holder = 159122
	}
	802.1.1 = {
		holder = 159123
	}
	814.1.1 = {
		holder = 159124
	}
	831.1.1 = {
		holder = 159125
	}
	836.1.1 = {
		holder = 70384
	}
	852.1.1 = {
		holder = 70382
	}
	889.1.1 = {
		holder = 70383 #Vladimir
	}
	893.1.1 = {
		holder = 712
	}
	927.5.2 = {
		holder = 714
	}
	969.1.30 = {
		holder = 716
	}
	986.1.1 = {
		holder = 720
	}
	995.1.1 = {
		holder = Theodorokanosstrategosphilippopolis1000ABBC1 # Theodorokanos, strategos of Philippopolis in 990s until shortly after 1000
	}
	1002.1.1 = {
		holder = Xiphiasstrategosphilippopolis1000ABBC1 # Nikephoros Xiphias succeeded Theodorokanos, shortly after 1000
	}
	1018.1.1 = {
		holder = 20486
	}
	1041.1.1 = {
		holder = 0
	}
	1041.1.1 = {
		liege = 0
	}
	
	1064.1.1 = {	#As theme of Macedonia
		holder = 1736
		liege = "e_byzantium"
	}
	1071.8.26 = {
		holder = 9810
	}
	1082.1.1 = {
		holder = 34586
	}
	1092.1.1 = { # 1095
		holder = Mesopotamitesdouxphilippopolis1095ABBC1 # Georgios Mesapotamites, doux of Philippopolis 
	}
	1113.1.1 = {
		holder = 34587
	}
	1167.6.1 = {
		holder = 231059 # Alexios Komnenos, the protostrator and protosebastos
	}
	1183.9.20 = {
		holder = 232506
	}
	1189.1.1 = { # 1189
		holder = 215003 # Niketas Choniates, governor of Philippopolis (Theme or city?)
	}
	1196.1.1 = { # 1196
		holder = 232525 # Ivanko is appointed as governor of Philippopolis Theme
	}
	1199.1.1 = { # 1198/1200
		liege = "k_bulgaria" # Ivanko separated Philippopolis from Byzantine Empire in a union with Bulgaria
		government = feudal_government
	}
	1200.1.1 = { # 1200
		liege = "e_byzantium" 
		holder = 0 # Philippopolis is recovered by Byzantine Empire
		government = administrative_government
	}
	1204.10.1 = { # Fall and Winter 1204
		holder = 31500 # Renier de Trith's campaigns to take possession of of his imperial fief were successful 
		liege = "e_latin_empire"
		government = feudal_government
	}
	# From Pope Honorius II's letters to Alexius Slav, he appears to be the ruler of Philippopolis between 1208 and 1218
	#1208.9.1 = {  # After 30 June/31 July 1208-after 29 May 1218 
	#	holder = 217506 # Alexius Slav is duke of Philippopolis # Appears wrong, need further reading
	#}
	#1218.7.1 = {  # Sometime after Battle of Plovdiv June 30(July 31?), 1208 until 1229/30
	#	holder = StroimdukephilippopolisABBC1 # Gerard de Stroem, relative of Renier Trith is duke of Philippopolis
	#}
	1208.7.1 = {  # Sometime after Battle of Plovdiv June 30(July 31?), 1208 until 1229/30
		holder = StroimdukephilippopolisABBC1 # Gerard de Stroem, relative of Renier Trith is duke of Philippopolis
	}
	1229.4.9 = { # 1229/30-1236/7
		holder = 461742 # Emperor Jean de Brienne is possibly made Duke of Philippopolis
	}
	# Ivan II of Bulgaria seems to have not taken Philippopolis after Battle of Klokotnisa in 1230 despite taking neighbouring regions but much later
	1237.3.23 = { # Late 1236/Early 1237, around the time of Emperor Jean de Brienne's death
		holder = 31160 # Ivan II of Bulgaria takes Philippopolis
		liege = "k_bulgaria"
	}
	#1241.6.24 = {
	#	holder = 31166 #Mihail
	#}
	#1256.1.1 = {
	#	holder = 31198 #Ivan
	#}
	#1275.1.2 = {
	#	holder = 467540 #Smiletz
	#}
	1292.1.1 = {
		holder = 31199 #Radoslav
	}
	1298.1.2 = {
		holder = 468555 #Aldimir
	}
	1305.1.5 = {
		holder = 468550 #Ivan
	}
	1322.8.1 = {
		holder = 467500 #Ivan Aleksandr
	}

}


c_philippopolis = {
	330.1.1 = {
		liege = "d_strymon"
	}
	765.1.1 = {
		holder = 145798
	}
	842.1.20 = {
		holder = 70490
	}
	866.9.24 = {
		#holder = 1700
		holder = 70382
	}
	889.1.1 = {
		holder = 70383 #Vladimir
	}
	893.1.1 = {
		holder = 712 #Simeon
	}
	995.1.1 = {
		holder = Theodorokanosstrategosphilippopolis1000ABBC1 # Theodorokanos, strategos of Philippopolis in 990s until shortly after 1000
	}
	1002.1.1 = {
		holder = Xiphiasstrategosphilippopolis1000ABBC1 # Nikephoros Xiphias succeeded Theodorokanos, shortly after 1000
	}
	1064.1.1 = {
		holder = 1736
		liege = d_philippopolis
	}
	1071.8.26 = {
		holder = 9810
	}
	1082.1.1 = {
		holder = 34586
	}
	1092.1.1 = {
		holder = Mesopotamitesdouxphilippopolis1095ABBC1 # Georgios Mesapotamites, doux of Philippopolis in 1095
	}
	1113.1.1 = {
		holder = 34587
	}
	1167.6.1 = {
		holder = 231059 # Alexios Komnenos, the protostrator and protosebastos
	}
	1185.9.12 = {
		holder = 215060
	}
	1186.1.1 = {
		holder = 34273
	}
	1189.1.1 = { # 1189
		holder = 215003 # Niketas Choniates, governor of Philippopolis (Theme or city?)
	}
	1196.1.1 = { # 1196
		holder = 232525 # Ivanko is appointed as governor of Philippopolis Theme
	}

	1202.1.1 = {
		holder = 34590
	}
	1204.5.16 = {
		liege = "e_latin_empire"
	}
	1204.5.16 = {
		holder = 31500 #Renier de Trith
	}
	1205.5.1 = {
		holder = Aspietesdouxrserres1195ABBC1 #Alexios Aspietes is declared emperor by citizens of Plovdiv
		liege = 0
	}
	1205.6.1 = { # June 1205
		holder = 217502 # Plovdiv surrenders to Kaloyan
		liege = "k_bulgaria"
	}
	1206.7.1 = {
		holder = 205525 #Henry I van Vlaanderen
		liege = "d_philippopolis"
	}
	1206.7.1 = {
		holder = 31500 # Renier de Trith is possibly lord of Philippopolis again 
	}
	# From Pope Honorius II's letters to Alexius Slav, he appears to be the ruler of Philippopolis between 1208 and 1218
	# From Pope Honorius II's letters to Alexius Slav, he appears to be the ruler of Philippopolis between 1208 and 1218
	#1208.9.1 = {  # After 30 June/31 July 1208-after 29 May 1218 
	#	holder = 217506 # Alexius Slav is duke of Philippopolis # Appears wrong, need further reading
	#}
	#1218.7.1 = {  # Sometime after Battle of Plovdiv June 30(July 31?), 1208 until 1229/30
	#	holder = StroimdukephilippopolisABBC1 # Gerard de Stroem, relative of Renier Trith is duke of Philippopolis
	#}
	1208.7.1 = {  # Sometime after Battle of Plovdiv June 30(July 31?), 1208 until 1229/30
		holder = StroimdukephilippopolisABBC1 # Gerard de Stroem, relative of Renier Trith is duke of Philippopolis
	}
	1231.9.1 = { # If he was, he arrived to Latin Empire in Autumn 1231
		holder = 461742 # Emperor Jean de Brienne is possibly made Duke of Philippopolis
	}
	# Ivan II of Bulgaria seems to have not taken Philippopolis after Battle of Klokotnisa in 1230 despite taking neighbouring regions but much later
	1237.3.23 = { # Late 1236/Early 1237, around the time of Emperor Jean de Brienne's death
		holder = 31160 # Ivan II of Bulgaria takes Philippopolis
		liege = "k_bulgaria"
	}
	1241.6.24 = {
		holder = 31165 #Koloman I
	}
	1246.10.1 = { # 1246, along with the surrender of Melnik
		holder = 125741 # Tsepina and Stanimaka surrender to Ioannes III Vatatzes
		liege = "k_nikaea"
		government = administrative_government
	}
	1254.12.1 = { # After December 1254/January 1255, possibly before February 1255
		holder = 31166 # Tsepina is captured by Michael II Asen
		liege = "k_bulgaria"
	}
	1256.9.1 = { # 1256, 29 June; September
		holder = 125742 # Treaty between Bulgarians and Nikaeans to cede Tzepina ; Bulgarians troops withdrawn from the fortress
		liege = "k_nikaea"
	}
	1261.8.15 = {
		liege = "e_byzantium"
	}
	1262.9.1 = { # Autumn 1262
		holder = 31187
		liege = "k_bulgaria" # Konstantin Tikh captures Philippopolis and Stanimarka
	}
	1263.6.1 = { # 1263, before the end
		holder = 31187
		liege = "d_strymon" # Byzantine Empire retakes Philippopolis and Stanimarka
	}
	1272.1.1 = {
		holder = 465521
	}
	1332.2.13 = {
		holder = 465530
	}
	1343.1.1 = { # 1343 or 1344
		liege = "k_bulgaria"  # Ceded to Bulgaria to obtain their support
	}
}

#b_tsepina = { # Around 30 June 1208, before battle of Philippopolis
#	1.1.1 = {
#		holder = "" # Alexios Slav is based in Tsepina
#	}
#}

c_kran = {
	330.1.1 = {
		liege = "d_turnovo"
	}
	681.1.1 = {
		holder = 159118
	}
	700.1.1 = {
		holder = 159120
	}
	721.1.1 = {
		holder = 145934
	}
	722.1.1 = {
		holder = 145936
	}
	738.1.1 = {
		holder = 145937
	}
	753.1.1 = {
		holder = 145941
	}
	756.1.1 = {
		holder = 145946
	}
	762.1.1 = {
		holder = 145951
	}
	765.1.1 = {
		holder = 145954
	}
	766.1.1 = {
		holder = 145945
	}
	766.2.10 = {
		holder = 145939
	}
	767.1.1 = {
		holder = 145949
	}
	768.1.1 = {
		holder = 159121
	}
	777.1.1 = {
		holder = 159122
	}
	802.1.1 = {
		holder = 159123
	}
	814.1.1 = {
		holder = 159124
	}
	831.1.1 = {
		holder = 159125
	}
	836.1.1 = {
		holder = 70384
	}
	852.1.1 = {
		holder = 70382 #Boris
	}
	889.1.1 = {
		holder = 70383 #Vladimir
	}
	893.1.1 = {
		holder = 712 #Simeon
	}
	1066.1.1 = {
		holder = 1748
	}
	1077.10.14 = {
		holder = 1782
	}
	1118.1.9 = {
		holder = 125751
	}
	1140.1.1 = {
		holder = 232553
	}
	1156.1.2 = {
		holder = 232555
	}
	1173.1.2 = {
		holder = 215570
	}
	1176.1.2 = {
		holder = 231059
	}
	1183.9.20 = {
		holder = 232506
	}
	
	1185.1.1 = {
		liege = "k_bulgaria"
	}
	1185.1.1 = {
		holder = 217501
	}
	1190.1.1 = {
		holder = 217500
	}
	1196.1.1 = {
		holder = 217502
	}
	1207.10.1 = {
		holder = 217505
	}
	1218.1.2 = {
		holder = 31160
	}
	1241.6.24 = {
		holder = 31165
	}
	1246.8.1 = { # Until December 1256/7
		holder = 31166 #Mihail I
	}
	1256.12.1 = { # 
		holder = 31198 # Family lands of Smiletz are from Sliven to Kopsis, so in Kran
	}
	1257.1.1 = {
		holder = 31185
	}
	1258.1.1 = {
		holder = 31187
	}
	
	
	1277.9.1 = {
		holder = 465551
	}
	1279.1.1 = {
		holder = 31192
	}
	1280.1.1 = { # Last quarter of 13th century
		holder = 31200 # Bolyars Vojsil and Radoslav, brothers of Smilets
	}
	
	#1280.1.1 = {
	#	holder = 467530
	#}
	#1292.1.1 = {
	#	holder = 467540
	#}
	1298.1.2 = { # 1298-1305, possibly as early as 1280s
		holder = 468555 # Aldimir, lord of Kran
	}
	1322.1.1 = {
		holder = 31195
	}
	1280.1.1 = { # Around the time of death of Georgi II Terter
		holder = 31200 # Vojsil, brother of Smilets captures Kran with backing of Byzantines
		liege = e_byzantium
	}
	1324.1.1 = { # 1324
		holder = 467520 # Michael Asen III expels Vojsil
		liege = e_bulgaria
	}
	1325.1.1 = { # From before 1331
		holder = 467505 # Stratzimir despot of Kran
	}

}


c_beroe = {
	330.1.1 = {
		liege = "d_strymon"
	}
	765.1.1 = {
		holder = 145798
	}
	842.1.20 = {
		holder = 70490
	}
	866.9.24 = {
		#holder = 1700
		holder = 70382
	}
	889.1.1 = {
		holder = 70383 #Vladimir
	}
	893.1.1 = {
		holder = 712 #Simeon
	}
	1064.1.1 = {
		holder = 1736
		liege = d_philippopolis
	}
	1071.8.26 = {
		holder = 9810
	}
	1082.1.1 = {
		holder = 34586
	}
	1113.1.1 = {
		holder = 34587
	}
	1167.6.1 = {
		holder = 231059 # Alexios Komnenos, the protostrator and protosebastos
	}
	1185.9.12 = {
		holder = 215060
	}
	1186.1.1 = {
		holder = 34273
	}
	1193.1.1 = { # 1187-1196, possibly between 1190-1193
		holder = 217500 # Stara Zagora/Beroe becomes part of Bulgaria 
		liege = "k_bulgaria"
		government = feudal_government
	}
	1204.10.1= { # Fall and Winter 1204 
		holder = 31500 # Renier de Trith's campaigns to take possession of of his imperial fief were successful 
		liege = e_latin_empire
	}
	1205.1.1= { 
		holder = 215061 # Giving it so Alexios Branas holds lands in 1205 start as well
	}
	1206.1.1= { # 
		holder = 31500 # Giving it to Renier de Trith again so he holds land
	}
	1208.1.1 = {
		holder = 34592 # Conon de Bethune, giving it so he holds land
	}
	#1208.9.1 = { # Sometime after Battle of Plovdiv July 31, 1208 until –1229/30
	#	holder = StroimdukephilippopolisABBC1 # Gerard de Stroem, relative of Renier Trith Gerard of Estreux/Stroim is lord of Philippopolis
	#}
	1230.3.9 = { # 9 March 1230
		liege = "k_bulgaria" # Part of Bulgaria after Battle of Klokotnisa
		holder = 31160 #Ivan II
	}
	1241.6.24 = {
		holder = 31165 #Koloman I
	}
	1246.8.1 = {
		liege = "d_strymon"
		holder = 465527
	}
	1272.1.1 = {
		holder = 465521
	}
	1332.2.13 = {
		holder = 465530
	}

}


c_burgas = {
	867.1.1 = { change_development_level = 7 }
	1066.1.1 = { change_development_level = 10 }
	1178.1.1 = { change_development_level = 24 }
	
	#330.1.1 = {
	#	liege = "d_thracesia"
	#}
	761.1.1 = {
		holder = 145844
		liege = e_byzantium
		de_jure_liege = "d_thrace" # Should be part of Thrace theme
	}
	855.1.1 = {
		holder = 145197
		liege = k_bulgaria
		de_jure_liege = "d_philippopolis" # Moving to Philippopolis
	}
	970.1.1 = { # From c. 970
		liege = "e_byzantium" # Part of Byzantine Empire again 
		de_jure_liege = "d_thrace" # Should be part of Thrace theme
		holder = 0	#
	}
	#WIP: 10th/11th century Anastasios imperial protospatharios epi tou Chrysotriklinou and strategos of An(chialos)
	1060.1.1 = {
		holder = 1732 #BYZ Emperor
	}
	1086.1.1 = { # 1086
		de_jure_liege = "d_anchialos" # Alexios Komnenos creates theme of Anchialos 
		liege = "d_anchialos"
	}
	#1.1.1 = { # 11th century
	#	holder = # Vladtzertis, strategos of Anchialos
	#}
	1090.1.1 = { # 1118
		holder = Siaousdouxanchialos1118ABBC1 # Siaous, doux of Anchialos 
	}
	1167.6.1 = {
		holder = 231059 # Alexios Komnenos, the protostrator and protosebastos
	}
	1178.1.1 = { # c. 1186
		holder = Stethatosdouxanchialus1186ABBC1 Konstantinos Stethatos, doux of Anchialus
	}
	1204.5.16 = {
		liege = "e_latin_empire"
		holder = 205523 #Baudouin I van Vlaanderen
	}
	1204.5.16 = {
		holder = 34592 # Conon de Bethune, giving it so he holds land
	}
	#1205.6.1 = {
	#	holder = 205525 #Henry I van Vlaanderen
	#}
	1207.1.1 = {
		liege = "k_bulgaria"
		holder = 217502 #Kaloyan
	}
	1207.10.1 = {
		holder = 217505 #Boril
	}
	1208.7.1 = { # After 30 June 1208
		liege = "e_latin_empire" # 
		holder =  205525 # Sozopol and surroundings possibly gained by Latins after battle of Philippopolis
	}
	1231.9.1 = { # If he was, he arrived to Latin Empire in Autumn 1231
		holder = 461742 # Emperor Jean de Brienne is possibly made Duke of Philippopolis
	}
	1235.3.1 = { # 1235
		holder =  31160 # 
		liege = "k_bulgaria" # If it was retaken by Latins, it was probably taken back by Bulgars when they attacked Thrace
	}
	1241.6.24 = { # 
		holder =  31165 #
	}
	1246.8.1 = { # Until December 1256/7
		holder = 31166 #Mihail I
	}
	1256.12.1 = { # December 1256/1257
		holder = 31170 #Koloman II
	}
	1257.1.2 = { # 1257
		holder = 91068 # Latins briefly took Mesembria so they must have taken Burgas as well
		liege = e_latin_empire
	}
	1257.3.1 = { # 
		holder =  31185 #
		liege = k_bulgaria
	}
	1258.1.1 = { # 
		holder =  31187 #
	}
	1260.1.1 = { # 
		holder =  31170 #
	}
	# For some reason PDX gave Burgaz to Seljuks starting from 1200, removed.

}


c_adrianopolis = {
	867.1.1 = { change_development_level = 6 }
	1066.1.1 = { change_development_level = 9 }
	1178.1.1 = { change_development_level = 24 }
	
	330.1.1 = {
		liege = "d_strymon"
	}
	745.1.1 = {
		holder = 145795
	}
	790.1.1 = {
		holder = 145796
	}
	801.1.1 = { # 801/2
		#holder = # Aetios appoints his brother Leo as monostrategos of Thrace and Macedonia 
		liege = "d_macedonia" # Macedonia theme is created
		de_jure_liege = "d_macedonia"
	}
	810.1.20 = { # Early 9th century
		holder = Olbianosstrategosarmeniakon821ABBC1 # Olbianos, possibly identical to strategos of Armeniakon in 821, is strategos of Macedonia 
	}
	834.1.1 = { # c. 837
		holder = Tzantzesstrategosmacedonia837ABBC1 # Tzantzes/Zautzes, strategos of Macedonia 
	}	
	842.1.20 = {
		holder = 70490
	}
	859.1.1 = { # second half of 9th century
		holder = ChristophorosdomestikostonscholonABBC1 # Christophoros, strategos of Macedonia, possibly identical to domestikos ton scholon
	}
	867.9.24 = {
		holder = 1700
	}
	875.1.1 = { # 880
		holder = Stypeiotesstrategosthracemacedonia880ABBC1 # Leon Apostoupes strategos of Macedonia and Thrace
	}
	910.1.1 = { # 913 or before
		holder = MouselestrategosmacedoniaABBC1 # Abessalom, son of Krinites Arotras, strategos of Macedonia
	}
	914.9.1 = { # September 914
		holder = 712 # Tsar Simeon captured Adrianople
		liege = k_bulgaria
	}
	914.10.1 = { # Shortly after September 914
		holder = MouselestrategosmacedoniaABBC1 # Byzantines regained the city in exchange for a ransom
		liege = "d_macedonia"
	}
	#1.1.1 = { # 10th century
	#	holder = # Orestios, strategos of Macedonia, possibly immediate predecessor of Lykastos
	#}
	#1.1.1 = { # Second third of 10th century
	#	holder = # Lykastos, strategos of Macedonia and Strymon in , possibly immediate succesor of Orestios as strategos of Macedonia
	#}
	955.1.1 = { # 955
		holder = 145162 # Marianos Argyros, strategos of Macedonia and Thrace 
	}
	#1.1.1 = { # 10th/11th century
	#	holder = # Theophylaktos anthypatos, patrikios, vestes, and doux of Adrianoupolis
	#}
	1023.1.1 = { # From before 1025-1028
		holder = GoudeliosstrategosmacedoniaABBC1 # Goudelios, strategos of Macedonia who was blinded sometime between 1025-1028
	}
	1052.1.1 = { # 1054
		holder = Arianitesdouxadrianople1054ABBC1 # Konstantinos Arianites, doux of Adrianople 
	}
	1064.1.1 = {
		holder = 1736
	}
	1066.1.1 = { # 11th century, should be 1065/72 or after
		holder = saronites_1 # Michael Saronites, protospatharios and strategos of Macedonia
	}
	1071.8.26 = {
		holder = 9810
	}
	1082.1.1 = {
		holder = 34586
	}
	1090.1.1 = { # Late 11th century
		holder = Serbliaspraitorthracemacedonialate11thcenturyABBC1 # Georgios Serblias praitor of Thrace and Macedonia
	}
	1113.1.1 = {
		holder = 34587
	}
	1154.1.1 = { # 1154/81
		de_jure_liege = d_thrace_and_macedonia # Part of Theme of Thrace and Macedonia
	}
	1167.6.1 = {
		holder = 231059 # Alexios Komnenos, the protostrator and protosebastos
	}
	1185.9.12 = {
		holder = 215060
	}
	1186.1.1 = {
		holder = 34273
	}
	1198.1.1 = { # During the reign of Alexios III
		holder = 215061 # Theodoros Branas, appointed doux of Adrianople 
		liege = "e_byzantium"
	}
	1198.1.1 = { # 1198
		de_jure_liege = d_adrianople_and_didymoteichon # Part of Theme of Adrianople and Didymoteichon
	}
	1198.1.1 = { # During the reign of Alexios III
		holder = 215061 # Theodoros Branas, appointed doux of Adrianople and Didymoteichon
		liege = "d_adrianople_and_didymoteichon"
	}
	1202.1.1 = {
		holder = 34590
	}
	1203.7.18 = {
		liege = 0
		holder = 215503 # Alexios III initially flees to Adrianople after failing to defend Constantinople against Alexios IV's Latin Army
	}
	1204.6.1 = { # Shortly after Emperor Baldwin's coronation
		liege = "e_latin_empire"
		government = feudal_government
		holder = 205525 # Adrianople surrenders to Henry, brother of Emperor Baldwin
	}
	#1204.7.1 = { # 1204, After May, before November 
	#	holder = Salperwickcrusader1204ABBC1 # Emperor Baldwin leaves Eustace de Salperwick to garrison Adrianople 
	#}
	1204.10.1 = { # October 1204 - March 1205
		holder = 161358 # Giving it to Hugues de Saint-Pol so he is county tier
	}
	1205.4.1 = { # Early 1205
		liege = k_venice # Held by Venetians 
	}
	# Early 1206 Greeks from Demotika and Adrianople send envoys to Theodoros Branas to mediate their submission to regent Henry de Hainaut 
	1206.1.1 = { # 28 June/20 August 1206
		holder = 215061 # Theodoros Branas is given Adrianople and Didymotoichon as a hereditary fief by the Latin Emperor
		liege = "e_latin_empire"
	}
	#1206.1.1 = { # 1 November 1206 or shortly after, October according to Filip van Tricht
	#	holder = # WIP: Peter de Radinghem is left at Adrianople with a garrison of 20 knights
	#}
	1207.3.1 = {
		holder = 215061 # Giving it back to Theodoros Branas
	}
	# 7 March 1207 Kaloyan besieges Adrianople again but content with their spoils, Cumans leave him in April and he lifts the siege
	#1207.6.1 = { # 1207, June or after
	#	holder = 34592 # Conon I of Bethune briefly served as commander of the Imperial garrison in Adrianople with 100 knights
	#}
	1208.1.1 = {
		holder = 215061 # Giving it back to Theodoros Branas
	}
	1219.1.1 = { #
		holder = 161760 # Baldwin de Bethune, either the son or nephew of Conon, possibly husband of a daughter of Theodoros Branas succeeded Theodoros Branas after his death, Filip van Tricht argues that it is the nephew
	}
	1228.1.1 = { # c. 1224 or, according to Filip van Tricht, shortly after beginning of 1227/beginning of 1228 It was certainly lost to Latins by August/September 1228
		holder = Isesprotostrator1225ABBC1 # Ioannes Ises and Ioannes Kammytzes capture Adrianople
		#holder = Kamytzesmegasheteriarches1225ABBC1 # Ioannes Kammytzes
		government = administrative_government
	}
	1228.3.1 = { # Late 1224/Early 1225 or, according to François Bredenkamp and Filip van Tricht, after April-August 1227. 
		holder = 215514 # Theodoros Angelos Komnenos, Despot of Epirus, takes Adrianople from Ioannes Batatzes
	}
	# Two below are possibly identical to two above, with the above two being the correct dates, that is unless it changed hands twice again
	#1226.1.1 = { # After 1225
	#	holder = 125741 # Ioannes Batatzes takes Adrianople
	#	liege = "k_nikaea"
	#	government = administrative_government
	#}
	#1227.1.1 = { # 1227
	#	holder = 215514 # Theodoros Angelos Komnenos, Despot of Epirus, takes Adrianople from Ioannes Batatzes
	#	liege = "k_epirus"
	#}
	1230.3.9 = { # 9 March 1230
		liege = "k_bulgaria" # Ivan Asen II of Bulgaria takes Didymotoichon with battle of Klokotnisa
		holder = 31160 #Ivan II
	}
	1237.9.1 = { # After Summer 1237
		holder =  Ionascumanchieftain1239ABBC1 # Cumans March through Bulgaria, proceeded through Thrace as far as Hadrianoupolis and Didymotoichon
		government = nomad_government
		liege = "k_cumans_latin_empire"
	}
	1237.9.2 = { 
		holder = SyrgiannesABBC1 # Giving it to Saronius so he holds territory in 1239 start and Jonas was located in or near Constantinople
	}
	1242.1.1 = { # c. 1243
		liege = "k_nikaea" 
		holder = 465527 # Nikaeans capture Didymotoichon
		government = administrative_government
	}
	1260.1.1 = { # Before 1283
		holder = TarchaneiotesmegaskonostaulosABBC1 # Megas konostaulos Andronikos Tarchaneiotes, governor of Adrianople
	}
	1261.8.15 = {
		liege = "e_byzantium" 
	}
	1283.1.1 = {
		holder = 465521
	}
	1332.2.13 = {
		holder = 465530
	}
}


b_didymoteichon = {
	1204.7.1 = { # Summer 1204
		holder = 213523 # Bonifazio of Montferrat seizes Demotika 
	}
	1204.8.1 = { # Summer 1204
		holder =  Villehardouinmarshalromania1206ABBC1 # Bonifazio of Montferrat leaves Demotika in the hands of Geoffroy Villehardouin, Marshal of Romania as he goes to Constantinople to make peace with Emperor Baldwin
	}
	1204.10.1 = { # October 1204 - March 1205
		holder = 161358 # Hugues de Saint-Pol, Lord of Demotika from until his death
	}
	1204.10.1 = {
		effect = { 
			if = {
				limit = {
					game_start_date = 1205.3.1
				}
				set_capital_barony = yes 
			}
		}
	}
	1206.7.1 = { # 1206, 28 June/20 August
		holder = 215061 # Theodoros Branas is given Adrianople and Didymotoichon as a hereditary fief by the Latin Emperor
	}
	1207.1.1 = { # 1207
		holder = 215061 # 
	}
	1219.1.1 = { #
		holder = 215061 # Theodoros Branas is given Adrianople and Didymotoichon as a hereditary fief by the Latin Emperor
	}
}

# Adding title history for barony tier of Adrianople so I can add garrison commanders while keeping the county holder

b_adrianopolis = {
	1204.10.2 = { # 1204, After May, before November 
		holder = Salperwickcrusader1204ABBC1 # Emperor Baldwin leaves Eustace de Salperwick to garrison Adrianople 
	}
	1207.6.1 = { # 1207, June or after
		holder = 34592 # Conon I of Bethune briefly served as commander of the Imperial garrison in Adrianople with 100 knights
	}
}


c_zherkovo = {
	330.1.1 = {
		liege = "d_strymon"
	}
	765.1.1 = {
		holder = 145798
	}
	842.1.20 = {
		holder = 70490
	}
	866.9.24 = {
		#holder = 1700
		holder = 70382
	}
	889.1.1 = {
		holder = 70383 #Vladimir
	}
	893.1.1 = {
		holder = 712 #Simeon
	}
	913.1.1 = { # 913
		holder = 0 #
		liege = e_byzantium # Ustra is Returned to Byzantine Empire as part of a peace treaty
	}
	893.1.1 = { #913/27
		holder = 712 # Taken back by Simeon in War
	}
	927.1.1 = { # 927
		holder = 0 #
		liege = e_byzantium # Ustra is possibly returned to Byzantine Empire again as part of another peace treaty
	}
	1064.1.1 = {
		holder = 1736
		liege = d_philippopolis
	}
	1071.8.26 = {
		holder = 9810
	}
	1082.1.1 = {
		holder = 34586
	}
	1113.1.1 = {
		holder = 34587
	}
	1167.6.1 = {
		holder = 231059 # Alexios Komnenos, the protostrator and protosebastos
	}
	1185.9.12 = {
		holder = 215060
	}
	1186.1.1 = {
		holder = 34273
	}
	1202.1.1 = {
		holder = 34590
	}
	1204.5.16 = {
		liege = "e_latin_empire"
	}
	1204.10.1= { # Fall and Winter 1204 
		holder = 31500 # Renier de Trith's campaigns to take possession of of his imperial fief were successful 
		government = feudal_government
	}
	1204.10.2 = {  # Sometime after Battle of Plovdiv July 31, 1208 until 1229/30 but pulled earlier so he holds lands 
		holder = StroimdukephilippopolisABBC1 # Gerard de Stroem, relative of Renier Trith
	}
	1230.3.9 = {
		liege = "k_bulgaria" # Part of Bulgaria after Battle of Klokotnisa, 9 March 1230
		holder = 31160 #Ivan II
	}
	1241.6.24 = {
		holder = 31165 #Koloman I
	}
	1246.8.1 = {
		holder = 465527
	}
	1254.1.1 = { # 1254, perhaps also shortly after Ioannes III Vatatzes' death like Tsepina
		holder = 31166 # Ustra, along with several other towns, surrendered to Mihail Asen
		liege = "k_bulgaria"
	}
	1256.1.1 = { # 1256?
		liege = "k_nikaea" # Back in Byzantine hands 
		holder = 125742
	}
	1261.8.15 = { # 
		liege = "e_byzantium" #
		holder = 465527
	}
	1272.1.1 = {
		holder = 465521
	}
	1332.2.13 = {
		holder = 465530
	}

}


b_smolyan = {
	720.1.1 = {
		holder = SmolyaniABBC1 # Fictional
	}
	780.1.1 = {
		holder = SmolyaniABBC5 # Fictional
	}
	810.1.1 = {
		holder = SmolyaniABBC6 # Fictional
	}
	840.1.1 = {
		holder = SmolyaniABBC7 # Fictional
	}
	865.1.1 = {
		holder = SmolyaniABBC9 # Fictional
	}
}


c_rhodopes = {
	330.1.1 = {
		liege = "d_strymon"
	}
	765.1.1 = {
		holder = 145798
	}
	842.1.20 = {
		holder = 70490
	}
	866.9.24 = {
		#holder = 1700
		holder = 70382
	}
	889.1.1 = {
		holder = 70383 #Vladimir
	}
	893.1.1 = {
		holder = 712 #Simeon
	}
	1064.1.1 = {
		holder = 1736
		liege = d_philippopolis
	}
	1071.8.26 = {
		holder = 9810
	}
	1079.1.1 = { # c. 1079
		de_jure_liege = d_smolenon # Theme of Smolenon is created
		liege = d_smolenon
	}
	1079.1.1 = { # 1079
		holder = Kataphlorosstrategosthessalonikasmolenoiserres1079ABBC1 # Ioannes Kataphloron strategos and anagrapheus of Smolenoi, Thessalonike and Serres
	}
	1081.1.1 = { # Until 1083
		holder = BakurianidzemegasdomestikosABBC1 # Gregorios Pakourianos, strategos of Smolenon
	}
	1083.1.1 = {
		holder = 34586
	}
	1113.1.1 = {
		holder = 34587
	}
	1167.6.1 = {
		holder = 231059 # Alexios Komnenos, the protostrator and protosebastos
	}
	1178.1.1 = { # From before 1199
		holder = 34590 # Manuel Kamytzes 
	}
	1199.1.1 = {
		holder = 232525 # Ivanko defeats Manuel Kamytzes
	}
	1200.1.1 = {
		holder = 232525 # Emperor Alexios III Angelos reconquers it
	}
	1202.1.1 = {
		holder = 34590
	}
	1204.5.16 = {
		liege = "e_latin_empire"
	}
	1204.10.1 = {
		holder = 31500 # Renier de Trith's campaigns in Fall and Winter 1204 to take possession of of his imperial fief were successful 
		government = feudal_government
	}
	1204.10.2 = {
		holder = BonduesreniertrithnephewABBC1 # Jacques de Bondues, nephew of Renier, giving it so he holds land

	}
	1206.7.1 = {
		holder = 205525 #Henry I van Vlaanderen
	}
	1208.7.1 = {
		holder = 217506 # Aleksii Slav becomes a vassal after Battle of Plovdiv, 30 June 1208
	}
	#1215.12.1 = {
	#	liege = 0 # Alexius Slav becomes an autocrat sometime in 1215
	#}
	#1216.6.11 = {
	#	holder = 205725 #Pierre I de Courtenay
	#}
	#1219.1.1 = {
	#	holder = 205526 #Yolande van Vlaanderen (regent)
	#}
	#1221.3.25 = {
	#	holder = 91062 #Robert de Courtenay
	#}
	#1228.1.30 = {
	#	holder = 461742 #Jean de Brienne (regent)
	#}
	1230.4.1 = { # After 9 March 1230
		holder = 31160 # Alexius Slav's realm become part of Bulgaria again ater Battle of Klokotnisa
		liege = "k_bulgaria"
	}
	1241.6.24 = {
		holder = 31165 #Koloman I
	}
	1246.8.1 = {
		liege = "d_strymon"
		holder = 465527
	}
	1272.1.1 = {
		holder = 465521
	}
	1332.2.13 = {
		holder = 465530
	}

}

