﻿k_hellas = {
	1178.1.1 = { change_development_level = 24 }

	1066.1.1 = {
		holder = 0
	}
	# From late 11th century, megas doux is given overall control of Hellas, Peloponnese and Crete but since megas doux was one of the Empire's  ,
	# senior officials and mostly involved with the central government and various military campaigns, de factο governance of these provinces 
	# rested with the provinces' praitor and katepano and various local leaders, for this reason I am giving this title to megas doux so he can have
	# the three titles under him as vassals
	1092.1.1 = { # From 1092
		liege = "e_byzantium"
		holder = 1781 # Ioannes Doukas, megas doux 
	}
	1095.1.1 = { # Sometime during the reign of Alexios I Komnenos
		holder = 70427 # Nikephoros Batatzes, megas doux
	}
	1097.1.1 = { # Possibly c. 1097
		holder = Oposmegasdoux1097ABBC1 # Konstantinos Opos, megas doux
	}
	1099.1.1 = { # From 1099
		holder = Butrumilemegasdoux1099ABBC1 # Landulf, megas doux 
	}
	1105.1.1 = { # 1105-1108
		holder = 90093 # Isaakios Kontostephanos, megas doux 
	}
	1108.1.1 = {
		holder = Maurokatakalonmegasdoux1108ABBC1 # Marianos Maurokatakalon, megas doux replaced Isaakios Kontostephanos in 1108
	}
	1115.1.1 = {
		holder = 34348 # Eumathios Philokales, megas doux from sometime after 1112 to sometime after 1118
	}
	#1.1.1 = {
	#	holder = # WIP: Leo Nikerites, megas doux, previously doux of Bulgaria and doux of Thessalonika 
	#}
	1145.1.1 = {
		holder = 232512 # Stephanos Kontostephanos, megas doux, ca. 1145 until his death in 1149
	}
	1155.1.1 = { # From ca. 1155 to sometime after 1161
		holder = 34382 # Alexios Bryennios Komnenos, son of Anna Komnene and Nikephoros Bryennios, megas doux
	}
	1164.1.1 = { # Sometime before 1176
		holder = Komnenosmegasdoux1176ABBC1 # Ioannes Komnenos, son of Andronikos Komnenos, the uncle of Emperor Manuel I, held the title
	}
	1167.1.1 = { # 1167-1182
		holder = 232515 # Andronikos Kontostephanos, megas doux 
	}
	1186.1.1 = { # 1186
		holder = Kontostephanosmegasdoux1186ABBC1 # Ioannes Kontostephanos, son of Isaakios, possibly megas doux 
	}	
	1189.1.1 = {
		holder = 215022 # Konstantinos Angelos Doukas, megas doux sometime during the reign of  (1185-1195)
	}
	1195.1.1 = { # ca.1195 - after 1201/2
		holder = 34297 # Michael Stryphnos, megas doux
	}
	1204.5.16 = { # Collapse of Byzantine Empire
		liege = 0
		holder = 0
	}
}

d_athens = {
	867.1.1 = { change_development_level = 10 }
	1066.1.1 = { change_development_level = 15 }
	1178.1.1 = { change_development_level = 20 }
	
	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
				}
			}
		}
	}
	687.1.1 = { # Theme of Hellas is created between 687 and 695
		holder = 70505 # Leontios, later emperor Leo, first attested strategos of Hellas in 695
		liege = "e_byzantium"
	}
	733.1.1 = {
		holder = 145802
	}
	765.1.1 = {
		holder = 145804
	}
	788.1.1 = {
		holder = 145805
	}
	812.1.1 = {
		holder = 145148
	}
	820.1.1 = {
		holder = 145149
	}
	845.1.1 = {
		holder = 145150
	}
	862.1.1 = { # 867
		holder = Koxesstrategoshellas867ABBC1 # Ioannes Koxes, strategos of Hellas 
	}
	939.1.1 = { # From c. 939
		holder = Mouselestrategospeloponnese922ABBC1 # Krenites Arotras, strategos of Hellas
	}
	1060.1.1 = {
		holder = 41303
	}
	1071.1.1 = { #c. 1071
		holder = 1740 # Later Emperor Nikephoros Botaneiates, doux of Hellas and Peloponnese
	}
	# From late 11th century, megas doux is given overall control of Hellas, Peloponnese and Crete but since megas doux was one of the Empire's  ,
	# senior officials and mostly involved with the central government and various military campaigns, de factο governance of these provinces 
	# rested with the provinces' praitor and katepano and various local leaders
	1092.1.1 = { # From 1092
		liege = "k_hellas"
		holder = 1781 # Ioannes Doukas, megas doux
	}
	1095.1.1 = { # Sometime during the reign of Alexios I Komnenos
		holder = 70427 # Nikephoros Batatzes, megas doux
	}
	1097.1.1 = { # Possibly c. 1097
		holder = Oposmegasdoux1097ABBC1 # Konstantinos Opos, megas doux
	}
	1099.1.1 = { # From 1099
		holder = Butrumilemegasdoux1099ABBC1 # Landulf, megas doux 
	}
	1105.1.1 = { # 1105-1108
		holder = 90093 # Isaakios Kontostephanos, megas doux 
	}
	1108.1.1 = {
		holder = Maurokatakalonmegasdoux1108ABBC1 # Marianos Maurokatakalon, megas doux replaced Isaakios Kontostephanos in 1108
	}
	1115.1.1 = { # From sometime after 1112 to sometime after 1118
		holder = 34348 # Eumathios Philokales, megas doux 
	}
	#1.1.1 = {
	#	holder = # Leo Nikerites, megas doux, previously doux of Bulgaria and doux of Thessalonika 
	#}
	1145.1.1 = {
		holder = 232512 # Stephanos Kontostephanos, megas doux, ca. 1145 until his death in 1149
	}
	1155.1.1 = { # From ca. 1155 to sometime after 1161
		holder = 34382 # Alexios Bryennios Komnenos, son of Anna Komnene and Nikephoros Bryennios, megas doux
	}
	1164.1.1 = {
		holder = Komnenosmegasdoux1176ABBC1 # Ioannes Komnenos, son of Andronikos Komnenos, the uncle of Emperor Manuel I, held the title sometime before 1176
	}
	1167.1.1 = {
		holder = 232515 # Andronikos Kontostephanos, megas doux 1167-1182
	}
	1186.1.1 = {
		holder = Kontostephanosmegasdoux1186ABBC1 # Ioannes Kontostephanos, son of Isaakios, possibly megas doux in 1186
	}	
	1189.1.1 = {
		holder = 215022 # Konstantinos Angelos Doukas, megas doux sometime during the reign of  (1185-1195)
	}
	1195.1.1 = { # ca.1195 - after 1201/2
		holder = 34297 # Michael Stryphnos, megas doux 
	}
	1204.5.16 = { # Collapse of Byzantine Empire
		liege = 0
		government = feudal_government
	}
	1204.5.16 = {
		de_jure_liege = "k_principality_achaia"
	}
	1204.11.1 = { 
		liege = "k_thessalonika" #
	}
	1204.11.2 = {
		holder = 31211 # Othon de La Roche is called duke at least as early as 1208
	}
	1209.5.1 = { # May 1209
		liege = "e_latin_empire" # Athens becomes direct vassal with Parliament of Ravennika
	}
	#1216.6.11 = {
	#	liege = 0
	#}
	1225.1.1 = { # After Thessalonika was captured by Epirotes in 1224
		liege = k_principality_achaia # Principality of Achaea claims suzerainty over Athens
	}
	1225.1.1 = {
		holder = 31216 #Guy I
	}
	1263.1.1 = {
		holder = 31217 #Jean I
	}
	# Treaty of Viterbo, Charles of Anjou is given suzerainty over Achaia, to which Duchy of Athens was also subject
	#1267.5.27 = { # 27 May 1267
	#	liege = k_sicily # 
	#}
	1280.1.1 = {
		holder = 31218 #Guillaume I
	}
	1287.1.1 = {
		holder = 31223 #Guy II
	}
	1308.10.5 = {
		holder = 461733 #Gauthier I
	}
	1311.3.15 = {
		holder = 31225 #Roger
	}
	1312.1.1 = {
		liege = "k_trinacria"
	}
	1312.1.1 = {
		holder = 71753 #Manfredo
	}
	1317.11.19 = {
		holder = 461510 #Gugliemo
	}
}

c_attica = {
	1178.1.1 = { change_development_level = 27 }

	330.1.1 = {
		liege = "d_athens"
	}
	687.1.1 = { # Theme of Hellas is created between 687 and 695
		holder = 70505 # Leontios, later emperor Leo, first attested strategos of Hellas in 695
		liege = "d_athens"
	}
	733.1.1 = {
		holder = 145802
	}
	765.1.1 = {
		holder = 145804
	}
	788.1.1 = {
		holder = 145805
	}
	812.1.1 = {
		holder = 145148
	}
	820.1.1 = {
		holder = 145149
	}
	845.1.1 = {
		holder = 145150
	}
	862.1.1 = { # 867
		holder = Koxesstrategoshellas867ABBC1 # Ioannes Koxes, strategos of Hellas
	}
	922.1.1 = { # 913/27, should be c. 922
		holder = 712 # Simeon captured Thebes
		liege = k_bulgaria
	}
	927.6.1 = { # 927, after 27 May
		liege = "d_athens" # Byzantine-Bulgarian Peace treaty
	}
	939.1.1 = { # From c. 939
		holder = Mouselestrategospeloponnese922ABBC1 # Krenites Arotras, strategos of Hellas
	}
	1060.1.1 = {
		holder = 41303
	}
	1080.1.1 = {
		holder = HikanatospraitorpeloponnesoshellasABBC1 # Bardas Hikanatos, Praitor of Hellas three times in late 11th and early 12th century
	}
	1107.2.1 = {
		holder = 34576
	}
	1120.1.1 = {
		holder = 34577
	}
	1146.1.1 = {
		holder = Balsamondouxeuripos1146ABBC1 # Iosephos Balsamon, doux of Thebes and Euripos in 1146
	}
	1150.1.1 = {
		holder = 34578
	}
	1167.1.1 = {
		holder = 232515 # Andronikos Kontostephanos, as megas doux
	}
	1203.7.1 = {
		holder = 215013 # Michael Choniates, bishop of Athens, holds the Acropolis against Leon Sgouros and
	}
	1203.8.1 = {
		liege = 232502 # Leon Sgouros takes Athens except Acropolis in 1203 while Constantinople was under siege, so should be July/August
	}
	1204.11.1 = {
		holder = 213523 # November 1204, Bonifazio of Montferrat marches into Thessaly and heads south, takes Boeotia and Attica without resistance
		government = feudal_government
	}
	1204.11.2 = {
		holder = 31211 # Othon de La Roche is granted Athens and perhaps Thebes by Bonifazio of Montferrat after October 1204 
	}
	#1204.11.2 = {
	#	holder = # Thebes may instead have been granted to Albertino and Rolandino of Canossa by Bonifazio of Montferrat
	#}
	1225.1.1 = {
		holder = 31216 #Guy I
	}
	1263.1.1 = {
		holder = 31217 #Jean I
	}
	1280.1.1 = {
		holder = 31218 #Guillaume I
	}
	1287.1.1 = {
		holder = 31223 #Guy II
	}
	1308.10.5 = {
		holder = 461733 #Gauthier I
	}
	1311.3.15 = {
		holder = 31225 #Roger
	}
	1312.1.1 = {
		holder = 71753 #Manfredo
	}
	1317.11.19 = {
		holder = 461510 #Gugliemo
	}

}


#b_thebes = { # WIP: Albertino and Rolantino Canossa, rulers of Thebes
#	1207.1.1 = { # From 1207
#		holder = #
#	}
#}

c_boeotia = {
	330.1.1 = {
		liege = "d_athens"
	}
	687.1.1 = { # Theme of Hellas is created between 687 and 695
		holder = 70505 # Leontios, later emperor Leo, first attested strategos of Hellas in 695
		liege = "d_athens"
	}
	733.1.1 = {
		holder = 145802
	}
	765.1.1 = {
		holder = 145804
	}
	788.1.1 = {
		holder = 145805
	}
	812.1.1 = {
		holder = 145148
	}
	820.1.1 = {
		holder = 145149
	}
	845.1.1 = {
		holder = 145150
	}
	862.1.1 = {
		holder = Koxesstrategoshellas867ABBC1 # Ioannes Koxes, strategos of Hellas in 867
	}
	939.1.1 = {
		holder = Mouselestrategospeloponnese922ABBC1 # Krenites Arotras, strategos of Hellas from c. 939
	}
	1060.1.1 = {
		holder = 41303
	}
	1107.2.1 = {
		holder = 34576
	}
	1120.1.1 = {
		holder = 34577
	}
	1150.1.1 = {
		holder = 34578
	}
	1167.1.1 = {
		holder = 232515 # Andronikos Kontostephanos, as megas doux
	}
	1203.9.1 = {
		liege = 232502 # Leon Sgouros takes Boeotia after taking Athens
	}
	#1204.8.1 = {
	#	holder = 31211 #Othon I 
	#}
	1204.11.1 = {
		holder = 213523 # November 1204, Bonifazio of Montferrat marches into Thessaly and heads south, takes Boeotia and Attica without resistance
		government = feudal_government
	}
	1204.11.2 = {
		holder = 31211 # Boeotia is part of Lordship of Athens though couldn't find an exact date when Othon de la Roche receives it
		liege = "d_athens"
	}
	1207.1.1 = {
		holder = 31359 # Nicolas de Saint-Omer lord of Boeotia
	}
	1235.1.1 = { # Before March 1236/7
		holder = 31360 # Bela, joint Lord of Thebes in 1240, by right of his wife
	}
	1257.1.1 = { # 1240/58
		holder = 31362 #Nicolas II
	}
	1294.1.1 = {
		holder = 31363 #Othon
	}
	#1225.1.1 = {
	#	holder = 31216 #Guy I
	#}
	#1263.1.1 = {
	#	holder = 31217 #Jean I
	#}
	#1280.1.1 = {
	#	holder = 31218 #Guillaume I
	#}
	#1287.1.1 = {
	#	holder = 31223 #Guy II
	#}
	#1308.10.5 = {
	#	holder = 461733 #Gauthier I
	#}
	#1311.3.15 = {
	#	holder = 31225 #Roger
	#}
	#1312.1.1 = {
	#	holder = 71753 #Manfredo
	#}
	#1317.11.19 = {
	#	holder = 461510 #Gugliemo
	#}

}

b_boudounitsa = {
	1204.11.1 = { # Bonifazio marches to Thessaly November 1204
		holder = 70720 # Guido Pallavicini, Marchese of Boudonitza
	}
	1237.5.2 = {
		holder = 70722 # Ubertino Pallavicini, Marchese of Boudonitza after his father Guido
	}
	1278.1.1 = {
		holder = 70724 # Isabella Pallavicini, Marchesa of Boudonitza after her brother Ubertino
	}
	1286.1.1 = {
		holder = 70726 # Guglielmo Pallavicini, Marchese of Boudonitza after his cousin Isabella
	}
}

b_amfissa = { # Lordship of Salona
	#lordship of Salona
	#1204.11.1 = {
	#	holder = 213523 # Bonifazio
	#	government = feudal_government
	#}
	1205.1.1 = {
		holder = 31226 # Bonifazio gives Thomas d'Autremencourt (misspelled de Stromoncourt) Salona as a fief 
	#	liege = "d_thessalonika"
	}
	#1212.1.1 = { # c. 1212 Disabled as it is a barony
	#	holder = 215517 # Michael Komnenos Doukas briefly takes Salona 
	#	liege = "d_epirus"
	#}
	1215.1.1 = { #1215 or maybe 1212 
		holder = 31227 # Thomas II d'Autremencourt, retakes Salona 
	#	liege = "d_achaia" # Vassal of Achaia from 1215
	}
	1258.1.1 = {
		holder = 31228
	}
	1277.1.1 = {
		holder = 31229
	}
	1311.3.15 = {
		holder = 31225 #Roger
	}
	1318.1.1 = {
		holder = 461510 #Gugliemo
	}
	#1212.1.1 = {
	#	holder = 31227 # Moving Thomas II here between 1212-1215 for game purposes so he is still within Latin Empire
	#}
}

c_euboea = {
	330.1.1 = {
		liege = "d_aegean_islands"
		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
				}
			}
		}
	}
	768.1.1 = {
		holder = 145821
	}
	865.1.1 = {
		holder = 145188
	}
	1040.1.1 = {
		holder = 20513
	}
	1075.1.1 = {
		holder = 70403
	}
	1097.1.1 = {
		holder = 70402
	}
	1100.1.1 = {
		holder = 70404
	}
	1115.1.1 = {
		holder = 232507
	}
	1130.1.1 = {
		holder = 232542
	}
	1146.1.1 = {
		holder = Balsamondouxeuripos1146ABBC1 # Iosephos Balsamon, doux of Thebes and Euripos in 1146
	}
	1167.1.1 = {
		holder = 232515 # Andronikos Kontostephanos, as megas doux
	}
	1187.1.1 = {
		holder = 215019
	}
	1194.1.1 = {
		holder = 34414
	}
	#4th Crusade
	1204.8.1 = {
		liege = "k_thessalonika"
		government = feudal_government
	}
	1205.3.1 = {
		holder = Oisyavesneseuboeasuzerain1205ABBC1 # Jacques II d'Avesnes receives Euboea as a fief from Bonifazio in Spring 1205
		de_jure_liege = "d_triarchy_negroponte"
	}

	#1205.8.1 = {
	#	holder = 31475 # Jacques d'Avesnes divides Euboea into three fiefs in August 1205 and gives to Knights from Lombardy
	#}
	1208.1.1 = {
		holder = 31475 # Giberto da Verona who disappears in 1209
	}
	1209.1.1 = { # Pecoraro de' Pecorari da Mercannuovo returns to Italy shortly after August 1205
		holder = 31488 # Giberto da Verona disappears in 1209. Ravano dalle Carceri finds himself the sole ruler of the Island
	}
	1209.3.1 = {
		liege = "k_venice" # After allying himself to a failed Rebellion of Lombards against Latin Emperor Henry, he recognized Venetian overlordship in March 1209
	}
	1209.5.1 = {
		liege = "e_latin_empire" # In May 1209, he also acknowledges vassalge to Latin Empire again
	}
	1216.1.1 = {
		holder = 212072 # Guglielmo I de Verona, Triarch of Euboea
	}
	1244.1.1 = { # Before 23 April 1244
		holder = 31476 # Guglielmo II de Verona, Triarch of Euboea
	}
	1267.1.1 = { # 1266/9
		holder = Veronatriarcheuobea1269ABBC1 # Guglielmo III de Verona, Triarch of Euboea
	}
	1273.1.1 = { # 1273/5
		holder = 31477 # Giberto de Verona, Triarch of Euboea
	}
	# Licario, a Byzantine admiral of Italian Origin born in Euboea gradually conquers Euboea from 1269/70 and holds entire island except Negropont
	# by 1280, he was given the entire Island as a fief in 1276, when he hasn't yet conquered all of it.
	1276.1.1 = {
		holder = Licariomegasdoux1280ABBC1 # Michael VIII Palailogos entered Constantinople and crowned Emperor 
	}
	1281.1.1 = {
		holder = 31482
		liege = "k_venice" # Venice gradually reconquers the Island from 1281
	}
	1297.1.1 = {
		holder = 461570
	}
	1311.3.15 = {
		liege = "k_venice"
	}
	1317.1.1 = {
		holder = 70738
	}
	1326.1.1 = {
		holder = 31497
	}
}

b_skopelos = { # Skiathos doesn't exist, Skyros is in a different county and is a temple holding
	1207.1.1 = { 
		holder = cisalpine0299 # Giving it to Geremia's elder daughter so he won't be holding two baronies when he sees 
	}

}


d_achaia = {
	211.1.1 = { # 211
		liege = h_roman_empire
		holder = Asiniiproconsulachaia211ABBC1 # Gaius Asinius Protimus Quadratus" # Proconsul of Achaia in 211
	}
	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
				}
			}
		}
	}
	665.1.1 = {
		holder = SisinnioskarabisinoiABBC1 # Sisinnios, strategos of Hellas, he was also strategos Karabisinoi 674/685
	}
	736.1.1 = {
		holder = 145807
	}
	775.1.1 = {
		holder = 145808
	}
	800.1.1 = {
		holder = 145149 # A Skleros is strategos of Peloponnese in 805, perhaps identical to Leon Skleros, strategos of Peloponnese in 811
	}
	840.1.1 = {
		holder = Bryenniosstrategospeloponnese842ABBC1 # Theoktistos Bryennios, strategos of Peloponnese c. 842
	}
	#1.1.1 = { # 9th century
	#	holder = # Georgios, basilikos protospatharios and strategos of Hellas
	#}
	#1.1.1 = { # 9th century
	#	holder = # Isaias, basilikos protospatharios and strategos of Hellas
	#}
	865.1.1 = {
		holder = 145182
	}
	889.1.1 = { # Sometime during Leo the Wise's reign
		holder = SarantapechosstrategospeoloponneseABBC1 # Konstantinos Sarantapechos Strategos of Peloponnese
	}
	# Barsakios below may or may not be identical to Barsakios, who was at different times strategos of Sicily, Longobardia and Cephalonia from
	# c. 880 to 896 but the seal is different
	#1.1.1 = { # c. 900
	#	holder = # Barsakios basilikos protospatharios and strategos of Hellas
	#}
	#1.1.1 = { # Immediate predecessor of Krenites Arotras
	#	holder = # Ioannes Proteun
	#}
	917.1.1 = { # 921
		holder = Mouselestrategospeloponnese922ABBC1 # Krenites Arotras, strategos of Peloponnese
	}
	981.1.1 = { # 981
		holder = Genesiosstrategospeloponnessos981ABBC1 # Romanos Genesios, strategos of Peloponnese
	}
	#1.1.1 = { # 10th century
	#	holder = # Ioannes, basilikos protospatharios and strategos of Hellas
	#}
	#1.1.1 = { # 9th century
	#	holder = # Euphrosynos, basilikos protospatharios and strategos of Hellas
	#}
	#1.1.1 = { # 10th century
	#	holder = # Theoktistos, basilikos protospatharios and strategos of Hellas
	#}
	#1.1.1 = { # 10th century
	#	holder = # Michael, basilikos protospatharios and strategos of Hellas
	#}
	#1.1.1 = { # 10th/11th century
	#	holder = # Sisinnios Hexaklinites/Hexakionites/Hexakomitis/Hexakoustos, basilikos protospatharios and strategos of the Peloponnesos
	#}
	#1.1.1 = { # 10th/11th century
	#	holder = # Manuel Barsakes, basilikos protospatharios and strategos of Hellas
	#}
	#1.1.1 = { # 10th century
	#	holder = # Niketas, patrikios and strategos of Hellas
	#}
	1000.1.1 = { # c. 1000
		holder = Apokaukosstrategospeloponnese1000ABBC1 # Basil Apokapis/Apokaukos, strategos, possibly of Peloponnese
	}
	#1.1.1 = { # 10th/11th century
	#	holder = # Nikolaos Trellos, basilikos protospatharios and strategos of the Peloponnesos
	#}
	#1.1.1 = { # 11th century
	#	holder = # Eustratios basilikos protospatharios and strategos of the Peloponnesos
	#}
	#1.1.1 = { # 11th century
	#	holder = # Marinos protospatharios and strategos of the Peloponnesos
	#}
	#1.1.1 = { # 11th century
	#	holder = # Symbatios patrikios and strategos of the Peloponnesos
	#}
	#1.1.1 = { # 11th century
	#	holder = # Niketas patrikios and strategos of the Peloponnesos
	#}
	1050.1.1 = { # Possibly 1050
		holder = Sklerosstrategospeloponnesos1050ABBC1 # Ioannes Skleros, patrikios, anthypatos and strategos of the Peloponnesos
	}
	1071.1.1={ # c. 1071
		holder = 1740 # Later Emperor Nikephoros Botaneiates, doux of Hellas and Peloponnese
	}
	# From late 11th century, megas doux is given overall control of Hellas, Peloponnese and Crete but since megas doux was one of the Empire's  ,
	# senior officials and mostly involved with the central government and various military campaigns, de factο governance of these provinces 
	# rested with the provinces' praitor and katepano and various local leaders
	1092.1.1 = { # From 1092
		liege = "k_hellas"
		holder = 1781 # Ioannes Doukas, megas doux
	}
	1095.1.1 = { # Sometime during the reign of Alexios I Komnenos
		holder = 70427 # Nikephoros Batatzes, megas doux
	}
	1097.1.1 = {
		holder = Oposmegasdoux1097ABBC1 # Konstantinos Opos, megas doux, possibly c. 1097
	}
	1099.1.1 = { # From 1099
		holder = Butrumilemegasdoux1099ABBC1 # Landulf, megas doux 
	}
	1105.1.1 = { # 1105-1108
		holder = 90093 # Isaakios Kontostephanos, megas doux
	}
	1108.1.1 = { # 1108
		holder = Maurokatakalonmegasdoux1108ABBC1 # Marianos Maurokatakalon, megas doux replaced Isaakios Kontostephanos 
	}
	1115.1.1 = {
		holder = 34348 # Eumathios Philokales, megas doux from sometime after 1112 to sometime after 1118
	}
	#1.1.1 = {
	#	holder = # Leo Nikerites, megas doux, previously doux of Bulgaria and doux of Thessalonika 
	#}
	1145.1.1 = { # ca. 1145 until his death in 1149
		holder = 232512 # Stephanos Kontostephanos, megas doux, 
	}
	1155.1.1 = { # From ca. 1155 to sometime after 1161
		holder = 34382 # Alexios Bryennios Komnenos, son of Anna Komnene and Nikephoros Bryennios, megas doux
	}
	1164.1.1 = { # Sometime before 1176
		holder = Komnenosmegasdoux1176ABBC1 # Ioannes Komnenos, son of Andronikos Komnenos, the uncle of Emperor Manuel I
	}
	1167.1.1 = { # 1167-1182
		holder = 232515 # Andronikos Kontostephanos, megas doux
	}
	1186.1.1 = { # 1186
		holder = Kontostephanosmegasdoux1186ABBC1 # Ioannes Kontostephanos, son of Isaakios, possibly megas doux 
	}	
	1189.1.1 = { #  sometime during the reign of  (1185-1195)
		holder = 215022 # Konstantinos Angelos Doukas, megas doux
	}
	1195.1.1 = { # ca.1195 - after 1201/2
		holder = 34297 # Michael Stryphnos, megas doux
	}
	1204.5.16 = { # Collapse of Byzantine Empire
		liege = 0
		government = feudal_government
	}
	1204.5.16 = {
		effect = { # Capital is actually Andravida but it doesn't exist and I want to be able to give Patras to its barons
			set_capital_county = title:c_korinthos
		}
	}
	1204.5.16 = {
		de_jure_liege = "k_principality_achaia"
	}
	1204.12.1 = { # Guillaume Champlitte is already called duke of Achaia in 19 November 1205, giving the title in winter 1204/5 when Villehaourdin takes Modon
		liege = "k_thessalonika" # Vassal of Kingdom of Thessalonika
		holder = 31334 #Guillaume I # 
	}
	1209.1.1 = { #Guillaume Champlitte dies in Apulia 1208/10 while returning to France
		holder = 31336 # Geoffory I Villehaourdin, actually a bit later as he cheats Guillaume Champlitte's heir
	}
	#1216.6.11 = {
	#	liege = 0
	#}
	1218.9.1 = {
		holder = 31337 #Geoffory II
	}
	1246.5.6 = {
		holder = 31338 #Guillaume II
	}
	1267.5.27 = { # 27 May 1267
		liege = k_sicily # Treaty of Viterbo, Charles of Anjou is given suzerainty over Achaia
	}
	1278.1.14 = {
		holder = 455406 #Charles I d'Anjou
	}
	1285.1.7 = {
		holder = 461710 #Charles II d'Anjou
	}
	1289.1.1 = {
		holder = 31103 #Floris I d'Avesnes
	}
	1297.1.23 = {
		holder = 31341 #Isabelle I
	}
	1301.1.1 = {
		holder = 462691 #Phillipe I
	}
	1302.8.31 = {
		liege = k_naples
	}
	1307.1.1 = {
		holder = 461712 #Phillipe II
	}
	1313.1.1 = {
		holder = 31344 #Louis I
	}
	1316.8.2 = {
		holder = 31343 #Mathilda
	}
	1318.1.1 = {
		holder = 455910 #Eudes
	}
	1320.1.1 = {
		holder = 455650 #Louis II
	}
	1322.1.1 = {
		holder = 461721 #Jean I
	}
	1336.1.2 = {
		holder = 461718 #Robert I
	}
}


b_damala = { 
	1205.1.1 = {
		holder = 31209 # Guillaume de Roche is perhaps baron of Damala
	}
	1262.1.1 = {
		holder = 31208 # Jacques de Roche baron of Veligosti, son of Guillaume
	}
}

c_achaia = {
	211.1.1 = { # 211
		holder = Asiniiproconsulachaia211ABBC1 # Gaius Asinius Protimus Quadratus" # Proconsul of Achaia in 211
	}
	330.1.1 = {
		liege = "d_achaia"
		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
				}
			}
		}
	}
	665.1.1 = {
		holder = SisinnioskarabisinoiABBC1 # Sisinnios, strategos of Hellas, he was also strategos Karabisinoi 674/685
	}
	762.1.1 = {
		holder = 145809
	}
	865.1.1 = {
		holder = 145183
	}
	1050.1.1 = { # Possibly 1050
		holder = Sklerosstrategospeloponnesos1050ABBC1 # Ioannes Skleros, patrikios, anthypatos and strategos of the Peloponnesos
	}
	1089.1.1 = {
		holder = 232504
	}
	1107.1.1 = {
		holder = 231057
	}
	1151.1.1 = {
		holder = 215010
	}
	1167.1.1 = {
		holder = 232515 # Andronikos Kontostephanos, as megas doux
	}
	#1168.1.1 = {
	#	holder = 215035 # Ioannes Kontostephanos, under his brother in the absence of known title holders
	#	liege = d_athens
	#}
	1205.6.1 = { # Battle of the Olive Grove of Kountouras in summer 1205
		holder = 31334 #Guillaume I Champlitte
		government = feudal_government
	}
	1209.1.1 = {
		holder = Alemanbaronpatras1209ABBC1  # Arnulf Aleman, Baron of Patras in June 1209
	}
	1209.7.1 = {
		holder = Alemanbaronpatras1209ABBC2 # Guillaume Aleman, Baron of Patras, possibly also in 1209
	}
	1219.1.1 = {
		holder = AlemanbaronpatrasABBC1 # Gauthier Aleman, Baron of Patras, year unknown
	}
	1249.1.1 = {
		holder = AlemanbaronpatrasABBC2 # Conrad Aleman son of Gauthier, Baron of Patras after him, year unknown
	}
	1267.1.1 = {
		holder = Alemanbaronpatras1276ABBC1 # Guillaume II Aleman, Baron of Patras in 1276
	}
	1278.1.14 = {
		holder = 455406 #Charles I d'Anjou
	}
	1285.1.7 = {
		holder = 461710 #Charles II d'Anjou
	}
	1289.1.1 = {
		holder = 31103 #Floris I d'Avesnes
	}
	1297.1.23 = {
		holder = 31341 #Isabelle I
	}
	1301.1.1 = {
		holder = 462691 #Phillipe I
	}
	1307.1.1 = {
		holder = 461712 #Phillipe II
	}
	1313.1.1 = {
		holder = 31344 #Louis I
	}
	1316.8.2 = {
		holder = 31343 #Mathilda
	}
	1318.1.1 = {
		holder = 455910 #Eudes
	}
	1320.1.1 = {
		holder = 455650 #Louis II
	}
	1322.1.1 = {
		holder = 461721 #Jean I
	}
	1332.1.1 = {
		holder = 461718 #Robert I
	}
}

# Barons of Vostitsa

b_vostitsa = { 
	1209.1.1 = {
		holder = Charpignybaronvostitsa1209ABBC1 # Hugh I de Charpigny, baron of Vostitsa until sometime in mid 13th century
	}
	1250.1.1 = {
		holder = Charpignybaronvostitsa1289ABBC1 # Guy de Charpigny, already baron of Vostissa in 1289 
	}
	1293.1.1 = {
		holder = Charpignybaronvostitsa1293ABBC1 # Hugh II de Charpigny, baron of Vostitsa from 1293/5
	}
	1315.1.1 = {
		holder = Charpignyladyvostissa1316ABBC1 # Unnamed daughter of Hugh II de Charpigny, succeeded her father before 1316
	}
}

# Barons of Kalavryta, temple holding in the game 

b_kalavryta = { 
	1209.1.1 = {
		holder = Tournaybaronkalavryta1209ABBC1 # Othon de Tournay, baron of Kalavryta
		government = feudal_government
	}
	1261.1.1 = {
		holder = Tournaybaronkalavryta1261ABBC1 # Geoffrey de Tournay, baron of Kalvryta from c. 1261
	}
}

c_korinthos = {
	1178.1.1 = { change_development_level = 26 }

	330.1.1 = {
		liege = "d_achaia"
		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
				}
			}
		}
	}
	665.1.1 = {
		holder = SisinnioskarabisinoiABBC1 # Sisinnios, strategos of Hellas, he was also strategos Karabisinoi 674/685
	}
	736.1.1 = {
		holder = 145807
	}
	775.1.1 = {
		holder = 145808
	}
	800.1.1 = {
		holder = 145149 # A Skleros is strategos of Peloponnese in 805, perhaps identical to Leon Skleros, strategos of Peloponnese in 811
	}
	840.1.1 = {
		holder = Bryenniosstrategospeloponnese842ABBC1 # Theoktistos Bryennios, strategos of Peloponnese c. 842
	}
	865.1.1 = {
		holder = 145182
	}
	889.1.1 = { # Sometime during Leo the Wise's reign
		holder = SarantapechosstrategospeoloponneseABBC1 # Konstantinos Sarantapechos Strategos of Peloponnese
	}
	917.1.1 = { # c. 922
		holder = Mouselestrategospeloponnese922ABBC1 # Krenites Arotras, strategos of Peloponnese
	}
	981.1.1 = { # 981
		holder = Genesiosstrategospeloponnessos981ABBC1 # Romanos Genesios, strategos of Peloponnese
	}
	995.1.1 = { # 996
		holder = Apokaukosstrategospeloponnese1000ABBC1 # Basileios Apokapis/Apokaukos, praitor of Corinth 
	}
	1030.1.1 = { # 1032
		holder = 34464 # Nikephoros Karandenos, strategos of Nauplion
	}
	1060.1.1 = {
		holder = 20505
	}
	1068.1.1 = { # until 1071
		holder = nikephoritzes_1 # Nikephoritzes, appointed praitor of the combined themes of Hellas and Peloponnese 
	}
	1071.1.1={ # c. 1071
		holder = 1740 # Later Emperor Nikephoros Botaneiates, doux of Hellas and Peloponnese 
	}
	1080.1.1 = { # Three times in late 11th and early 12th century
		holder = HikanatospraitorpeloponnesoshellasABBC1 # Bardas Hikanatos, Praitor of Hellas 
	}
	1094.1.1 = {
		holder = ChoirospaktesemperornikephorosbotaneiatesrelativeABBC1 # Konstantinos Choirospaktes, praitor of the combined themes of Hellas and Peloponnese between 1094-1105
	}
	1105.1.1 = { # Three times in late 11th and early 12th century
		holder = HikanatospraitorpeloponnesoshellasABBC1 # Bardas Hikanatos, Praitor of Hellas 
	}
	#1146.1.1 = { # Removed from the position in 1148
	#	holder =  # Ioannes Hagiotheodorites, praitor of Hellas and Peloponnese 
	#}
	#1148.1.1 = { # 1148
	#	holder =  # Theodoros Stypeiotes, rival of Ioannes Hagiotheodorites who replaced him as praitor of Hellas and Peloponnese 
	#}
	1167.1.1 = {
		holder = 232515 # Andronikos Kontostephanos, as megas doux
	}
	#1168.1.1 = {
	#	holder = 215035 # Ioannes Kontostephanos, under his brother in the absence of known title holders
	#	liege = d_achaia
	#}
	1180.9.24 = {
		holder = 215531
	}
	1183.9.24 = {
		holder = 215529
	}
	1185.9.12 = {
		holder = 215500
	}
	1187.1.1 = {
		holder = 215012 # Theodoros Sgouros
	}
	1198.1.1 = {
		holder = 232502 # Leon Sgouros 
	}
	1202.1.1 = { # After 1201/2
		liege = 0 # Leon Sgouros declares independence
	}
	#1.1.1 = {
	#	liege = 0 # Country side is taken 
	#}
	1205.3.1 = { # Crusaders control the country side of Korinth by Spring 1205
		holder = 31334 #Guillaume I
		government = feudal_government
	}
	1210.1.1 = {
		holder = 31336 #Geoffory I
	}
	1218.9.1 = {
		holder = 31337 #Geoffory II
	}
	1246.5.6 = {
		holder = 31338 #Guillaume II
	}
	1278.1.14 = {
		holder = 455406 #Charles I d'Anjou
	}
	1285.1.7 = {
		holder = 461710 #Charles II d'Anjou
	}
	1289.1.1 = {
		holder = 31103 #Floris I d'Avesnes
	}
	1297.1.23 = {
		holder = 31341 #Isabelle I
	}
	1301.1.1 = {
		holder = 462691 #Phillipe I
	}
	1307.1.1 = {
		holder = 461712 #Phillipe II
	}
	1313.1.1 = {
		holder = 31344 #Louis I
	}
	1316.8.2 = {
		holder = 31343 #Mathilda
	}
	1318.1.1 = {
		holder = 455910 #Eudes
	}
	1320.1.1 = {
		holder = 455650 #Louis II
	}
	1322.1.1 = {
		holder = 461721 #Jean I
	}
	1332.1.1 = {
		holder = 461718 #Robert I
	}
	

}

# Barons of Nikli

b_nikli = { 
	1209.1.1 = { #
		holder = Morlaybaronnikli1209ABBC1 # Guillaume de Morlay, baron of Nikli
	}
	1235.1.1 = { # From 1230s
		holder = Morlaybaronnikli1240ABBC1 # Guillaume de Morlay, baron of Nikli
	}
	1260.1.1 = { # From before 1280
		holder = Morlaybaronnikli1280ABBC1 # Hugh de Morlay, baron of Nikli 
	}
	1280.1.1 = { # c. 1280
		holder = MorlayniklivillierswifeABBC1 # Sachette de Morlay, actually it is her husband who is baron 
	}
}

c_messenia = {
	330.1.1 = {
		liege = "d_achaia"
		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
				}
			}
		}
	}
	665.1.1 = {
		holder = SisinnioskarabisinoiABBC1 # Sisinnios, strategos of Hellas, he was also strategos Karabisinoi 674/685
	}
	767.1.1 = {
		holder = 145810
	}
	866.1.1 = {
		holder = 145184
	}
	1050.1.1 = { # Possibly 1050
		holder = Sklerosstrategospeloponnesos1050ABBC1 # Ioannes Skleros, patrikios, anthypatos and strategos of the Peloponnesos
	}
	1095.1.1 = {
		holder = 34607
	}
	1110.1.1 = {
		holder = 34608
	}
	1135.1.1 = {
		holder = 34609
	}
	1167.1.1 = {
		holder = 232515 # Andronikos Kontostephanos, as megas doux
	}
	1195.1.1 = {
		holder = 34611
	}
	1203.1.1 = { # 1201/2
		liege = 0 # Leo Chamaretos breaks away after the rebellion of Manuel Kamytzes and his son-in-law Dobromir Chrysos
		holder = 215011 # Leo Chamaretos 
	}
	1204.12.1 = { # Winter of 1204/5
		holder = 31336 # Geoffory I Villehardouin is shipwrecked near Modon and with local help quickly subdues much of the region
		government = feudal_government
		liege = "d_achaia"
	}
	# Barons of Karytaina, giving Messenia to them as it is the capital of the barony in the game
	1209.1.1 = { # From 1209
		holder = Brielsurbarsebaronkarytaina1209ABBC1 # Renaud de Briel, Baron of Karytaina
	}
	1222.1.1 = { # From 1222
		holder = Brielsurbarsebaronkarytaina1222ABBC1 # Hugues de Briel, Baron of Karytaina
	}
	1238.1.1 = { # From 1238
		holder = Brielsurbarsebaronkarytaina1238ABBC1 # Geoffroy de Briel, Baron of Karytaina
	}
	# Venice should only hold a single barony so I'm making it part of Latin Empire instead
	#1204.8.1 = {
	#	liege = "k_venice"
	#}
	#1204.8.1 = {
	#	holder = 213601 #Enrico Dandolo
	#}
	#1205.6.21 = {
	#	holder = 32120 #Pietro Ziani
	#}
	#1229.3.13 = {
	#	holder = 32124 #Iacopo Tiepolo
	#}
	#1249.7.19 = {
	#	holder = 32125 #Marino Morosini
	#}
	#1253.1.1 = {
	#	holder = 32126 #Reniero Zeno
	#}
	#1268.7.7 = {
	#	holder = 32127 #Lorenzo Tiepolo
	#}
	1275.8.15 = {
		holder = 32128 #Iacopo Contarini
	}
	1280.3.6 = {
		holder = 32129 #Giovanni Dandalo
	}
	1289.11.2 = {
		holder = 32130 #Pietro Gradenigo
	}
	1311.8.13 = {
		holder = 32131 #Marino Zorzi
	}
	1312.7.3 = {
		holder = 32132 #Giovannia Soranza
	}
	1328.12.31 = {
		holder = 463600 #Francesco Dandalo
	}
}

# Barons of Akova
# Akova doesn't exist and this is close as I can get without giving them Karytaina which also had its own barons

b_arcadia = { 
	1209.1.1 = {
		holder = Rosieresbaronakova1209ABBC1 # Gauthier de Rosières 
	}
	1228.1.1 = {
		holder = Rosieresbaronakova1228ABBC1 # Gauthier de Rosières, baron of Akova from 1228/30
	}
}

# Barons of Veligosti
# Modon actually belonged to Venice but it is impossible to give just one barony and Veligosti doesn't exist so I'm giving Modon to them

b_modon = { 
	1204.12.1 = {
		holder = 31336 # Geoffroy Villehaourdin captures Modon in Winter of 1204-1205
	}
	1206.4.1 = {
		holder = Vetranocountcorfu1197ABBC1 # Briefly occupied by Leone Vetrano sometime in 1206
	}
	1209.1.1 = {
		holder = Monsbaronveligosti1209ABBC1 # Hugh de Mons, baron of Veligosti in 1209
	}
	1229.1.1 = {
		holder = Monsbaronveligosti1230ABBC1 # Mathieu de Mons, baron of Veligosti in 1230
	}
	#1262.1.1 = {
	#	holder = 31209 # Guillaume de Roche becomes baron of Veligosti before 1256
	#}
	1262.1.1 = {
		holder = 31208 # Jacques de Roche baron of Veligosti, son of Guillaume
	}
}


# Barons of Chalandritsa
# Chalandritsa doesn't exist in the game and Kalamata is actually very far and is a temple holding in the game but I didn't want to leave them out

b_kalamata = { 
	1209.1.1 = {
		holder = DramelayfirstbaronchalandritzaABBC1 # Audebert de la Trémouille, named as the first baron by some historians
		government = feudal_government
	}
	1209.6.1 = {
		holder = Dramelaybaronchalandritza1209ABBC1 # possibly Guy, attested as baron in 1209
	}
	1225.1.1 = {
		holder = Dramelaybaronchalandritza1230ABBC1 # Robert Dramelay, Baron of Chalandritsa attested ca. 1230
	}
	1285.1.1 = {
		holder = Dramelaybailiffachaia1282ABBC1 # Guy II Dramelay, baron of Chalandritsa from before 1280
	}
}

c_laconia = {
	867.1.1 = {	change_development_level = 8 }
	1066.1.1 = { change_development_level = 12 }
	1178.1.1 = { change_development_level = 14 }
	
	330.1.1 = {
		liege = "d_achaia"
		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
				}
			}
		}
	}
	665.1.1 = {
		holder = SisinnioskarabisinoiABBC1 # Sisinnios, strategos of Hellas, he was also strategos Karabisinoi 674/685
	}
	764.1.1 = {
		holder = 145811
	}
	865.1.1 = {
		holder = 145107
	}
	1060.1.1 = {
		holder = 20505
	}
	1147.1.1 = { # From before 1147
		holder = 232515 # Theodoros Maurozomes, the archon of Monemvasia
	}
	1167.1.1 = {
		holder = 232515 # Andronikos Kontostephanos, as megas doux
	}
	#1168.1.1 = {
	#	holder = 215035 # Ioannes Kontostephanos, under his brother in the absence of known title holders
	#	liege = d_achaia
	#}
	1203.1.1 = {
		liege = 0 # Leo Chamaretos breaks away after the rebellion of Manuel Kamytzes and his son-in-law Dobromir Chrysos in 1201/2
		holder = 215011 # Leo Chamaretos 
	}
	1204.8.1 = {
		holder = 31336 #Geoffory I
		government = feudal_government
		liege = "d_achaia"
	}
	# Barons of Passava, barony doesn't exist in game but located in area covered by b_mistra which is capital of its county in the game
	1218.9.1 = {
		holder = 31337 #Geoffory II
	}
	1219.1.1 = { # Shortly after 1218/20
		holder = Aigremontnullybaronpassava1220ABBC1 # Jean de Nully, created baron of Passava
	}
	#1246.5.6 = {
	#	holder = 31338 #Guillaume II
	#}
	1260.1.1 = { # c. 1260
		holder = 31379 # Marguerite de Passavant, Lady of Passavant, Akova and Mitopoli daughter of Jean de Nully and niece of Gautier de Rosières baron of Akova inherits Passavant
	}
	1261.12.31 = { # End of 1261/1262
		holder = 465527 # 
		liege = "e_byzantium" # Guillaume II who was taken prisoner in 1259 surrenders to the Byzantines the castles of Monemvasia, Mystras, Grand Magne, and Geraki
	}
	1262.1.1 = { # 1262
		holder = 34422 # Michael Kantakouzenos, governor of Byzantine possessions in Morea
	}
	1264.3.1 = {
		holder = 34423
	}
	1294.1.1 = {
		holder = 34425
	}
	1305.1.1 = {
		holder = 34424
	}
	1311.1.1 = {
		holder = 465550
	}
}

# Monemvesia is actually not taken until 1248 but I'm giving it to Nivelet family because Geraki doesn't exist and this is the closest existing
# barony in game

b_monemvasia = {
	1209.1.1 = {
		holder = Niveletbarongeraki1209ABBC1 # Guy de Nivelet, baron of Geraki
	}
	1250.1.1 = { # In 1250
		holder = Niveletbarongeraki1250ABBC1 # Jean de Nivelet, baron of Geraki 
	}
	1268.1.1 = { # From 1261/8
		holder = Niveletbaronnivelet1316ABBC1 # Possibly also named Jean
	}
}

# Barons of Chalandritza, moving them to Lacedamonia because it doesn't exist

b_lacedamonia = {
	1209.1.1 = { # 1209, before G...
		holder = DramelayfirstbaronchalandritzaABBC1 # Audebert de la Trémouille
	}
	1209.6.1 = { # 1209
		holder = Dramelaybaronchalandritza1209ABBC1 #  G... possibly Guy,
	}
	1225.1.1 = { # Before 1230
		holder = Dramelaybaronchalandritza1230ABBC1 # Robert Dramelay, Baron of Chalandritsa
	}
	1275.1.1 = { # Before 1280
		holder = Dramelaybailiffachaia1282ABBC1 # Robert Dramelay, Baron of Chalandritsa
	}
}