k_sunni = {
	color = { 40 160 40 }
	color2 = { 220 220 0 }
	capital = 719
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_sunni = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_sunni
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				religion_group = muslim
				primary_title = { title = d_sunni }
				num_of_duke_titles = 4
			}
			k_sunni = {
				is_titular = no
			}
		}
	}
}

k_shiite = {
	color = { 60 190 60 }
	color2 = { 220 220 0 }
	capital = 719
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_shiite = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_shiite
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				religion_group = muslim
				primary_title = { title = d_shiite }
				num_of_duke_titles = 4
			}
			k_shiite = {
				is_titular = no
			}
		}
	}
}

k_holland = {
	color = { 235 80 30 }
	color2 = { 255 255 255 }
	capital = 80
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_holland = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_holland
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = west_germanic
				religion_group = christian
				primary_title = { title = d_holland }
				num_of_duke_titles = 4
			}
			k_holland = {
				is_titular = no
			}
		}
	}
}

e_holland = {
	color = { 235 80 30 }
	color2 = { 255 255 255 }
	capital = 80
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_holland = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_holland
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = west_germanic
				religion_group = christian
				primary_title = { title = k_holland }
				num_of_king_titles = 3
			}
			e_holland = {
				is_titular = no
			}
		}
	}
}

k_gelre = {
	color = { 200 100 25 }
	color2 = { 255 255 255 }
	capital = 83
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_gelre = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_gelre
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = west_germanic
				religion_group = christian
				primary_title = { title = d_gelre }
				num_of_duke_titles = 4
			}
			k_gelre = {
				is_titular = no
			}
		}
	}
}

e_gelre = {
	color = { 200 100 25 }
	color2 = { 255 255 255 }
	capital = 83
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_gelre = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_gelre
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = west_germanic
				religion_group = christian
				primary_title = { title = k_gelre }
				num_of_king_titles = 3
			}
			e_gelre = {
				is_titular = no
			}
		}
	}
}

k_brabant = {
	color = { 200 100 60 }
	color2 = { 255 255 255 }
	capital = 117
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_brabant = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_brabant
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = west_germanic
				religion_group = christian
				primary_title = { title = d_brabant }
				num_of_duke_titles = 4
			}
			k_brabant = {
				is_titular = no
			}
		}
	}
}

e_brabant = {
	color = { 200 100 60 }
	color2 = { 255 255 255 }
	capital = 117
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_brabant = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_brabant
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = west_germanic
				religion_group = christian
				primary_title = { title = k_brabant }
				num_of_king_titles = 3
			}
			e_brabant = {
				is_titular = no
			}
		}
	}
}

k_flanders = {
	color = { 255 120 0 }
	color2 = { 255 255 255 }
	capital = 78
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_flanders = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_flanders
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = west_germanic
				religion_group = christian
				primary_title = { title = d_flanders }
				num_of_duke_titles = 4
			}
			k_flanders = {
				is_titular = no
			}
		}
	}
}

e_flanders = {
	color = { 255 120 0 }
	color2 = { 255 255 255 }
	capital = 78
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_flanders = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_flanders
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = west_germanic
				religion_group = christian
				primary_title = { title = k_flanders }
				num_of_king_titles = 3
			}
			e_flanders = {
				is_titular = no
			}
		}
	}
}

k_luxembourg = {
	color = { 102 97 97 }
	color2 = { 255 255 255 }
	capital = 115
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_luxembourg = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_luxembourg
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = central_germanic
				religion_group = christian
				primary_title = { title = d_luxembourg }
				num_of_duke_titles = 4
			}
			k_luxembourg = {
				is_titular = no
			}
		}
	}
}

e_luxembourg = {
	color = { 102 97 97 }
	color2 = { 255 255 255 }
	capital = 115
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_luxembourg = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_luxembourg
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = central_germanic
				religion_group = christian
				primary_title = { title = k_luxembourg }
				num_of_king_titles = 3
			}
			e_luxembourg = {
				is_titular = no
			}
		}
	}
}

k_upper_lorraine = {
	color = { 190 187 187 }
	color2 = { 255 255 255 }
	capital = 127
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_upper_lorraine = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_upper_lorraine
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = central_germanic
				religion_group = christian
				primary_title = { title = d_upper_lorraine }
				num_of_duke_titles = 4
			}
			k_upper_lorraine = {
				is_titular = no
			}
		}
	}
}

e_upper_lorraine = {
	color = { 190 187 187 }
	color2 = { 255 255 255 }
	capital = 127
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_upper_lorraine = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_upper_lorraine
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = central_germanic
				religion_group = christian
				primary_title = { title = k_upper_lorraine }
				num_of_king_titles = 3
			}
			e_upper_lorraine = {
				is_titular = no
			}
		}
	}
}

k_lower_lorraine = {
	color = { 166 157 157 }
	color2 = { 255 255 255 }
	capital = 118
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_lower_lorraine = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_lower_lorraine
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = central_germanic
				religion_group = christian
				primary_title = { title = d_lower_lorraine }
				num_of_duke_titles = 4
			}
			k_lower_lorraine = {
				is_titular = no
			}
		}
	}
}

e_lower_lorraine = {
	color = { 166 157 157 }
	color2 = { 255 255 255 }
	capital = 118
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_lower_lorraine = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_lower_lorraine
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = central_germanic
				religion_group = christian
				primary_title = { title = k_lower_lorraine }
				num_of_king_titles = 3
			}
			e_lower_lorraine = {
				is_titular = no
			}
		}
	}
}

k_alsace = {
	color = { 137 130 130 }
	color2 = { 255 255 255 }
	capital = 134
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_alsace = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_alsace
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = central_germanic
				religion_group = christian
				primary_title = { title = d_alsace }
				num_of_duke_titles = 4
			}
			k_alsace = {
				is_titular = no
			}
		}
	}
}

e_alsace = {
	color = { 137 130 130 }
	color2 = { 255 255 255 }
	capital = 134
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_alsace = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_alsace
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = central_germanic
				religion_group = christian
				primary_title = { title = k_alsace }
				num_of_king_titles = 3
			}
			e_alsace = {
				is_titular = no
			}
		}
	}
}

k_mecklemburg = {
	color = { 162 160 110 }
	color2 = { 255 255 255 }
	capital = 260
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_mecklemburg = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_mecklemburg
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = west_slavic
				religion_group = pagan_group
				primary_title = { title = d_mecklemburg }
				num_of_duke_titles = 4
			}
			k_mecklemburg = {
				is_titular = no
			}
		}
	}
}

e_mecklemburg = {
	color = { 162 160 110 }
	color2 = { 255 255 255 }
	capital = 260
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_mecklemburg = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_mecklemburg
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = west_slavic
				religion_group = pagan_group
				primary_title = { title = k_mecklemburg }
				num_of_king_titles = 3
			}
			e_mecklemburg = {
				is_titular = no
			}
		}
	}
}

k_pommerania = {
	color = { 111 143 51 }
	color2 = { 255 255 255 }
	capital = 366
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_pommerania = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_pommerania
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = west_slavic
				religion_group = pagan_group
				primary_title = { title = d_pommerania }
				num_of_duke_titles = 4
			}
			k_pommerania = {
				is_titular = no
			}
		}
	}
}

e_pommerania = {
	color = { 111 143 51 }
	color2 = { 255 255 255 }
	capital = 366
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_pommerania = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_pommerania
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = west_slavic
				religion_group = pagan_group
				primary_title = { title = k_pommerania }
				num_of_king_titles = 3
			}
			e_pommerania = {
				is_titular = no
			}
		}
	}
}

k_pomeralia = {
	color = { 95 135 77 }
	color2 = { 255 255 255 }
	capital = 368
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_pomeralia = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_pomeralia
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = west_slavic
				religion_group = pagan_group
				primary_title = { title = d_pomeralia }
				num_of_duke_titles = 4
			}
			k_pomeralia = {
				is_titular = no
			}
		}
	}
}

e_pomeralia = {
	color = { 95 135 77 }
	color2 = { 255 255 255 }
	capital = 368
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_pomeralia = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_pomeralia
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = west_slavic
				religion_group = pagan_group
				primary_title = { title = k_pomeralia }
				num_of_king_titles = 3
			}
			e_pomeralia = {
				is_titular = no
			}
		}
	}
}

k_saxony = {
	color = { 164 162 162 }
	color2 = { 255 255 255 }
	capital = 310
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_saxony = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_saxony
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = west_slavic
				religion_group = christian
				primary_title = { title = d_saxony }
				num_of_duke_titles = 4
			}
			k_saxony = {
				is_titular = no
			}
		}
	}
}

e_saxony = {
	color = { 164 162 162 }
	color2 = { 255 255 255 }
	capital = 310
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_saxony = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_saxony
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = west_slavic
				religion_group = christian
				primary_title = { title = k_saxony }
				num_of_king_titles = 3
			}
			e_saxony = {
				is_titular = no
			}
		}
	}
}

k_brandenburg = {
	color = { 121 121 121 }
	color2 = { 255 255 255 }
	capital = 365
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_brandenburg = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_brandenburg
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = west_slavic
				religion_group = christian
				primary_title = { title = d_brandenburg }
				num_of_duke_titles = 4
			}
			k_brandenburg = {
				is_titular = no
			}
		}
	}
}

e_brandenburg = {
	color = { 121 121 121 }
	color2 = { 255 255 255 }
	capital = 365
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_brandenburg = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_brandenburg
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = west_slavic
				religion_group = christian
				primary_title = { title = k_brandenburg }
				num_of_king_titles = 3
			}
			e_brandenburg = {
				is_titular = no
			}
		}
	}
}

k_meissen = {
	color = { 182 188 181 }
	color2 = { 255 255 255 }
	capital = 312
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_meissen = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_meissen
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = central_germanic
				religion_group = christian
				primary_title = { title = d_meissen }
				num_of_duke_titles = 4
			}
			k_meissen = {
				is_titular = no
			}
		}
	}
}

e_meissen = {
	color = { 182 188 181 }
	color2 = { 255 255 255 }
	capital = 312
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_meissen = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_meissen
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = central_germanic
				religion_group = christian
				primary_title = { title = k_meissen }
				num_of_king_titles = 3
			}
			e_meissen = {
				is_titular = no
			}
		}
	}
}

k_osterreich = {
	color = { 191 182 182 }
	color2 = { 255 255 255 }
	capital = 449
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_osterreich = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_osterreich
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = central_germanic
				religion_group = christian
				primary_title = { title = d_osterreich }
				num_of_duke_titles = 4
			}
			k_osterreich = {
				is_titular = no
			}
		}
	}
}

e_osterreich = {
	color = { 191 182 182 }
	color2 = { 255 255 255 }
	capital = 449
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_osterreich = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_osterreich
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = central_germanic
				religion_group = christian
				primary_title = { title = k_osterreich }
				num_of_king_titles = 3
			}
			e_osterreich = {
				is_titular = no
			}
		}
	}
}

k_tyrol = {
	color = { 157 154 154 }
	color2 = { 255 255 255 }
	capital = 316
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_tyrol = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_tyrol
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = central_germanic
				religion_group = christian
				primary_title = { title = d_tyrol }
				num_of_duke_titles = 4
			}
			k_tyrol = {
				is_titular = no
			}
		}
	}
}

e_tyrol = {
	color = { 157 154 154 }
	color2 = { 255 255 255 }
	capital = 316
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_tyrol = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_tyrol
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = central_germanic
				religion_group = christian
				primary_title = { title = k_tyrol }
				num_of_king_titles = 3
			}
			e_tyrol = {
				is_titular = no
			}
		}
	}
}

k_carinthia = {
	color = { 165 255 250 }
	color2 = { 255 255 255 }
	capital = 358
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_carinthia = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_carinthia
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = latin
				religion_group = christian
				primary_title = { title = d_carinthia }
				num_of_duke_titles = 4
			}
			k_carinthia = {
				is_titular = no
			}
		}
	}
}

e_carinthia = {
	color = { 165 255 250 }
	color2 = { 255 255 255 }
	capital = 358
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_carinthia = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_carinthia
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = latin
				religion_group = christian
				primary_title = { title = k_carinthia }
				num_of_king_titles = 3
			}
			e_carinthia = {
				is_titular = no
			}
		}
	}
}

k_brunswick = {
	color = { 183 172 172 }
	color2 = { 255 255 255 }
	capital = 258
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_brunswick = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_brunswick
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = central_germanic
				religion_group = christian
				primary_title = { title = d_brunswick }
				num_of_duke_titles = 4
			}
			k_brunswick = {
				is_titular = no
			}
		}
	}
}

e_brunswick = {
	color = { 183 172 172 }
	color2 = { 255 255 255 }
	capital = 258
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_brunswick = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_brunswick
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = central_germanic
				religion_group = christian
				primary_title = { title = k_brunswick }
				num_of_king_titles = 3
			}
			e_brunswick = {
				is_titular = no
			}
		}
	}
}

k_thuringia = {
	color = { 207 206 226 }
	color2 = { 255 255 255 }
	capital = 255
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_thuringia = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_thuringia
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = central_germanic
				religion_group = christian
				primary_title = { title = d_thuringia }
				num_of_duke_titles = 4
			}
			k_thuringia = {
				is_titular = no
			}
		}
	}
}

e_thuringia = {
	color = { 207 206 226 }
	color2 = { 255 255 255 }
	capital = 255
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_thuringia = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_thuringia
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = central_germanic
				religion_group = christian
				primary_title = { title = k_thuringia }
				num_of_king_titles = 3
			}
			e_thuringia = {
				is_titular = no
			}
		}
	}
}

k_koln = {
	color = { 213 216 212 }
	color2 = { 255 255 255 }
	capital = 119
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_koln = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_koln
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = central_germanic
				religion_group = christian
				primary_title = { title = d_koln }
				num_of_duke_titles = 4
			}
			k_koln = {
				is_titular = no
			}
		}
	}
}

e_koln = {
	color = { 213 216 212 }
	color2 = { 255 255 255 }
	capital = 119
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_koln = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_koln
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = central_germanic
				religion_group = christian
				primary_title = { title = k_koln }
				num_of_king_titles = 3
			}
			e_koln = {
				is_titular = no
			}
		}
	}
}

k_franconia = {
	color = { 100 99 100 }
	color2 = { 255 255 255 }
	capital = 123
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_franconia = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_franconia
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = central_germanic
				religion_group = christian
				primary_title = { title = d_franconia }
				num_of_duke_titles = 4
			}
			k_franconia = {
				is_titular = no
			}
		}
	}
}

e_franconia = {
	color = { 100 99 100 }
	color2 = { 255 255 255 }
	capital = 123
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_franconia = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_franconia
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = central_germanic
				religion_group = christian
				primary_title = { title = k_franconia }
				num_of_king_titles = 3
			}
			e_franconia = {
				is_titular = no
			}
		}
	}
}

k_baden = {
	color = { 115 109 109 }
	color2 = { 255 255 255 }
	capital = 125
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_baden = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_baden
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = central_germanic
				religion_group = christian
				primary_title = { title = d_baden }
				num_of_duke_titles = 4
			}
			k_baden = {
				is_titular = no
			}
		}
	}
}

e_baden = {
	color = { 115 109 109 }
	color2 = { 255 255 255 }
	capital = 125
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_baden = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_baden
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = central_germanic
				religion_group = christian
				primary_title = { title = k_baden }
				num_of_king_titles = 3
			}
			e_baden = {
				is_titular = no
			}
		}
	}
}

k_swabia = {
	color = { 206 203 203 }
	color2 = { 255 255 255 }
	capital = 249
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_swabia = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_swabia
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = central_germanic
				religion_group = christian
				primary_title = { title = d_swabia }
				num_of_duke_titles = 4
			}
			k_swabia = {
				is_titular = no
			}
		}
	}
}

e_swabia = {
	color = { 206 203 203 }
	color2 = { 255 255 255 }
	capital = 249
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_swabia = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_swabia
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = central_germanic
				religion_group = christian
				primary_title = { title = k_swabia }
				num_of_king_titles = 3
			}
			e_swabia = {
				is_titular = no
			}
		}
	}
}

k_moravia = {
	color = { 157 101 35 }
	color2 = { 255 255 255 }
	capital = 440
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_moravia = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_moravia
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = west_slavic
				religion_group = christian
				primary_title = { title = d_moravia }
				num_of_duke_titles = 4
			}
			k_moravia = {
				is_titular = no
			}
		}
	}
}

e_moravia = {
	color = { 157 101 35 }
	color2 = { 255 255 255 }
	capital = 440
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_moravia = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_moravia
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = west_slavic
				religion_group = christian
				primary_title = { title = k_moravia }
				num_of_king_titles = 3
			}
			e_moravia = {
				is_titular = no
			}
		}
	}
}

k_nikaea = {
	color = { 202 101 167 }
	color2 = { 255 255 20 }
	capital = 750
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_nikaea = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_nikaea
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = byzantine
				religion_group = christian
				primary_title = { title = d_nikaea }
				num_of_duke_titles = 4
			}
			k_nikaea = {
				is_titular = no
			}
		}
	}
}

e_nikaea = {
	color = { 202 101 167 }
	color2 = { 255 255 20 }
	capital = 750
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_nikaea = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_nikaea
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = byzantine
				religion_group = christian
				primary_title = { title = k_nikaea }
				num_of_king_titles = 3
			}
			e_nikaea = {
				is_titular = no
			}
		}
	}
}

k_samos = {
	color = { 234 39 167 }
	color2 = { 255 255 20 }
	capital = 486
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_samos = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_samos
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = byzantine
				religion_group = christian
				primary_title = { title = d_samos }
				num_of_duke_titles = 4
			}
			k_samos = {
				is_titular = no
			}
		}
	}
}

e_samos = {
	color = { 234 39 167 }
	color2 = { 255 255 20 }
	capital = 486
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_samos = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_samos
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = byzantine
				religion_group = christian
				primary_title = { title = k_samos }
				num_of_king_titles = 3
			}
			e_samos = {
				is_titular = no
			}
		}
	}
}

k_aegean_islands = {
	color = { 104 8 103 }
	color2 = { 255 255 20 }
	capital = 484
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_aegean_islands = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_aegean_islands
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = byzantine
				religion_group = christian
				primary_title = { title = d_aegean_islands }
				num_of_duke_titles = 4
			}
			k_aegean_islands = {
				is_titular = no
			}
		}
	}
}

e_aegean_islands = {
	color = { 104 8 103 }
	color2 = { 255 255 20 }
	capital = 484
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_aegean_islands = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_aegean_islands
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = byzantine
				religion_group = christian
				primary_title = { title = k_aegean_islands }
				num_of_king_titles = 3
			}
			e_aegean_islands = {
				is_titular = no
			}
		}
	}
}

k_thrace = {
	color = { 172 76 139 }
	color2 = { 255 255 20 }
	capital = 496
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_thrace = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_thrace
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = byzantine
				religion_group = christian
				primary_title = { title = d_thrace }
				num_of_duke_titles = 4
			}
			k_thrace = {
				is_titular = no
			}
		}
	}
}

e_thrace = {
	color = { 172 76 139 }
	color2 = { 255 255 20 }
	capital = 496
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_thrace = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_thrace
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = byzantine
				religion_group = christian
				primary_title = { title = k_thrace }
				num_of_king_titles = 3
			}
			e_thrace = {
				is_titular = no
			}
		}
	}
}

k_adrianopolis = {
	color = { 213 74 165 }
	color2 = { 255 255 20 }
	capital = 494
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_adrianopolis = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_adrianopolis
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = byzantine
				religion_group = christian
				primary_title = { title = d_adrianopolis }
				num_of_duke_titles = 4
			}
			k_adrianopolis = {
				is_titular = no
			}
		}
	}
}

e_adrianopolis = {
	color = { 213 74 165 }
	color2 = { 255 255 20 }
	capital = 494
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_adrianopolis = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_adrianopolis
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = byzantine
				religion_group = christian
				primary_title = { title = k_adrianopolis }
				num_of_king_titles = 3
			}
			e_adrianopolis = {
				is_titular = no
			}
		}
	}
}

k_thessalonika = {
	color = { 189 19 130 }
	color2 = { 255 255 20 }
	capital = 490
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_thessalonika = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_thessalonika
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = byzantine
				religion_group = christian
				primary_title = { title = d_thessalonika }
				num_of_duke_titles = 4
			}
			k_thessalonika = {
				is_titular = no
			}
		}
	}
}

e_thessalonika = {
	color = { 189 19 130 }
	color2 = { 255 255 20 }
	capital = 490
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_thessalonika = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_thessalonika
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = byzantine
				religion_group = christian
				primary_title = { title = k_thessalonika }
				num_of_king_titles = 3
			}
			e_thessalonika = {
				is_titular = no
			}
		}
	}
}

k_dyrrachion = {
	color = { 137 27 99 }
	color2 = { 255 255 20 }
	capital = 470
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_dyrrachion = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_dyrrachion
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = byzantine
				religion_group = christian
				primary_title = { title = d_dyrrachion }
				num_of_duke_titles = 4
			}
			k_dyrrachion = {
				is_titular = no
			}
		}
	}
}

e_dyrrachion = {
	color = { 137 27 99 }
	color2 = { 255 255 20 }
	capital = 470
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_dyrrachion = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_dyrrachion
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = byzantine
				religion_group = christian
				primary_title = { title = k_dyrrachion }
				num_of_king_titles = 3
			}
			e_dyrrachion = {
				is_titular = no
			}
		}
	}
}

k_epirus = {
	color = { 134 63 109 }
	color2 = { 255 255 20 }
	capital = 473
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_epirus = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_epirus
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = byzantine
				religion_group = christian
				primary_title = { title = d_epirus }
				num_of_duke_titles = 4
			}
			k_epirus = {
				is_titular = no
			}
		}
	}
}

e_epirus = {
	color = { 134 63 109 }
	color2 = { 255 255 20 }
	capital = 473
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_epirus = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_epirus
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = byzantine
				religion_group = christian
				primary_title = { title = k_epirus }
				num_of_king_titles = 3
			}
			e_epirus = {
				is_titular = no
			}
		}
	}
}

k_athens = {
	color = { 206 66 158 }
	color2 = { 255 255 20 }
	capital = 482
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_athens = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_athens
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = byzantine
				religion_group = christian
				primary_title = { title = d_athens }
				num_of_duke_titles = 4
			}
			k_athens = {
				is_titular = no
			}
		}
	}
}

e_athens = {
	color = { 206 66 158 }
	color2 = { 255 255 20 }
	capital = 482
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_athens = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_athens
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = byzantine
				religion_group = christian
				primary_title = { title = k_athens }
				num_of_king_titles = 3
			}
			e_athens = {
				is_titular = no
			}
		}
	}
}

k_achaia = {
	color = { 190 29 134 }
	color2 = { 255 255 20 }
	capital = 476
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_achaia = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_achaia
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = byzantine
				religion_group = christian
				primary_title = { title = d_achaia }
				num_of_duke_titles = 4
			}
			k_achaia = {
				is_titular = no
			}
		}
	}
}

e_achaia = {
	color = { 190 29 134 }
	color2 = { 255 255 20 }
	capital = 476
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_achaia = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_achaia
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = byzantine
				religion_group = christian
				primary_title = { title = k_achaia }
				num_of_king_titles = 3
			}
			e_achaia = {
				is_titular = no
			}
		}
	}
}

k_krete = {
	color = { 174 7 116 }
	color2 = { 255 255 20 }
	capital = 480
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_krete = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_krete
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = byzantine
				religion_group = christian
				primary_title = { title = d_krete }
				num_of_duke_titles = 4
			}
			k_krete = {
				is_titular = no
			}
		}
	}
}

e_krete = {
	color = { 174 7 116 }
	color2 = { 255 255 20 }
	capital = 480
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_krete = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_krete
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = byzantine
				religion_group = christian
				primary_title = { title = k_krete }
				num_of_king_titles = 3
			}
			e_krete = {
				is_titular = no
			}
		}
	}
}

k_cibyrrhaeot = {
	color = { 108 29 80 }
	color2 = { 255 255 20 }
	capital = 755
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_cibyrrhaeot = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_cibyrrhaeot
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = byzantine
				religion_group = christian
				primary_title = { title = d_cibyrrhaeot }
				num_of_duke_titles = 4
			}
			k_cibyrrhaeot = {
				is_titular = no
			}
		}
	}
}

e_cibyrrhaeot = {
	color = { 108 29 80 }
	color2 = { 255 255 20 }
	capital = 755
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_cibyrrhaeot = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_cibyrrhaeot
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = byzantine
				religion_group = christian
				primary_title = { title = k_cibyrrhaeot }
				num_of_king_titles = 3
			}
			e_cibyrrhaeot = {
				is_titular = no
			}
		}
	}
}

k_thracesia = {
	color = { 154 43 116 }
	color2 = { 255 255 20 }
	capital = 748
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_thracesia = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_thracesia
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = byzantine
				religion_group = christian
				primary_title = { title = d_thracesia }
				num_of_duke_titles = 4
			}
			k_thracesia = {
				is_titular = no
			}
		}
	}
}

e_thracesia = {
	color = { 154 43 116 }
	color2 = { 255 255 20 }
	capital = 748
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_thracesia = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_thracesia
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = byzantine
				religion_group = christian
				primary_title = { title = k_thracesia }
				num_of_king_titles = 3
			}
			e_thracesia = {
				is_titular = no
			}
		}
	}
}

k_charsianon = {
	color = { 237 68 178 }
	color2 = { 255 255 20 }
	capital = 760
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_charsianon = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_charsianon
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = byzantine
				religion_group = christian
				primary_title = { title = d_charsianon }
				num_of_duke_titles = 4
			}
			k_charsianon = {
				is_titular = no
			}
		}
	}
}

e_charsianon = {
	color = { 237 68 178 }
	color2 = { 255 255 20 }
	capital = 760
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_charsianon = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_charsianon
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = byzantine
				religion_group = christian
				primary_title = { title = k_charsianon }
				num_of_king_titles = 3
			}
			e_charsianon = {
				is_titular = no
			}
		}
	}
}

k_armeniacon = {
	color = { 255 0 167 }
	color2 = { 255 255 20 }
	capital = 738
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_armeniacon = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_armeniacon
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = byzantine
				religion_group = christian
				primary_title = { title = d_armeniacon }
				num_of_duke_titles = 4
			}
			k_armeniacon = {
				is_titular = no
			}
		}
	}
}

e_armeniacon = {
	color = { 255 0 167 }
	color2 = { 255 255 20 }
	capital = 738
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_armeniacon = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_armeniacon
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = byzantine
				religion_group = christian
				primary_title = { title = k_armeniacon }
				num_of_king_titles = 3
			}
			e_armeniacon = {
				is_titular = no
			}
		}
	}
}

k_paphlagonia = {
	color = { 234 157 207 }
	color2 = { 255 255 20 }
	capital = 753
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_paphlagonia = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_paphlagonia
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = byzantine
				religion_group = christian
				primary_title = { title = d_paphlagonia }
				num_of_duke_titles = 4
			}
			k_paphlagonia = {
				is_titular = no
			}
		}
	}
}

e_paphlagonia = {
	color = { 234 157 207 }
	color2 = { 255 255 20 }
	capital = 753
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_paphlagonia = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_paphlagonia
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = byzantine
				religion_group = christian
				primary_title = { title = k_paphlagonia }
				num_of_king_titles = 3
			}
			e_paphlagonia = {
				is_titular = no
			}
		}
	}
}

k_azerbaijan = {
	color = { 160 232 20 }
	color2 = { 255 255 255 }
	capital = 670
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_azerbaijan = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_azerbaijan
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = iranian
				religion_group = muslim
				primary_title = { title = d_azerbaijan }
				num_of_duke_titles = 4
			}
			k_azerbaijan = {
				is_titular = no
			}
		}
	}
}

e_azerbaijan = {
	color = { 160 232 20 }
	color2 = { 255 255 255 }
	capital = 670
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_azerbaijan = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_azerbaijan
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = iranian
				religion_group = muslim
				primary_title = { title = k_azerbaijan }
				num_of_king_titles = 3
			}
			e_azerbaijan = {
				is_titular = no
			}
		}
	}
}

k_edessa = {
	color = { 151 255 3 }
	color2 = { 255 255 255 }
	capital = 699
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_edessa = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_edessa
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = iranian
				religion_group = muslim
				primary_title = { title = d_edessa }
				num_of_duke_titles = 4
			}
			k_edessa = {
				is_titular = no
			}
		}
	}
}

e_edessa = {
	color = { 151 255 3 }
	color2 = { 255 255 255 }
	capital = 699
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_edessa = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_edessa
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = iranian
				religion_group = muslim
				primary_title = { title = k_edessa }
				num_of_king_titles = 3
			}
			e_edessa = {
				is_titular = no
			}
		}
	}
}

k_coloneia = {
	color = { 232 20 130 }
	color2 = { 255 255 255 }
	capital = 706
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_coloneia = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_coloneia
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = iranian
				religion_group = muslim
				primary_title = { title = d_coloneia }
				num_of_duke_titles = 4
			}
			k_coloneia = {
				is_titular = no
			}
		}
	}
}

e_coloneia = {
	color = { 232 20 130 }
	color2 = { 255 255 255 }
	capital = 706
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_coloneia = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_coloneia
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = iranian
				religion_group = muslim
				primary_title = { title = k_coloneia }
				num_of_king_titles = 3
			}
			e_coloneia = {
				is_titular = no
			}
		}
	}
}

k_armenia_minor = {
	color = { 214 140 190 }
	color2 = { 255 255 255 }
	capital = 761
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_armenia_minor = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_armenia_minor
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = byzantine
				religion_group = christian
				primary_title = { title = d_armenia_minor }
				num_of_duke_titles = 4
			}
			k_armenia_minor = {
				is_titular = no
			}
		}
	}
}

e_armenia_minor = {
	color = { 214 140 190 }
	color2 = { 255 255 255 }
	capital = 761
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_armenia_minor = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_armenia_minor
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = byzantine
				religion_group = christian
				primary_title = { title = k_armenia_minor }
				num_of_king_titles = 3
			}
			e_armenia_minor = {
				is_titular = no
			}
		}
	}
}

k_vidin = {
	color = { 122 103 58 }
	color2 = { 255 255 255 }
	capital = 506
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_vidin = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_vidin
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = south_slavic
				religion_group = christian
				primary_title = { title = d_vidin }
				num_of_duke_titles = 4
			}
			k_vidin = {
				is_titular = no
			}
		}
	}
}

e_vidin = {
	color = { 122 103 58 }
	color2 = { 255 255 255 }
	capital = 506
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_vidin = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_vidin
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = south_slavic
				religion_group = christian
				primary_title = { title = k_vidin }
				num_of_king_titles = 3
			}
			e_vidin = {
				is_titular = no
			}
		}
	}
}

k_turnovo = {
	color = { 154 39 197 }
	color2 = { 255 255 255 }
	capital = 499
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_turnovo = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_turnovo
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = south_slavic
				religion_group = christian
				primary_title = { title = d_turnovo }
				num_of_duke_titles = 4
			}
			k_turnovo = {
				is_titular = no
			}
		}
	}
}

e_turnovo = {
	color = { 154 39 197 }
	color2 = { 255 255 255 }
	capital = 499
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_turnovo = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_turnovo
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = south_slavic
				religion_group = christian
				primary_title = { title = k_turnovo }
				num_of_king_titles = 3
			}
			e_turnovo = {
				is_titular = no
			}
		}
	}
}

k_karvuna = {
	color = { 204 89 247 }
	color2 = { 255 255 255 }
	capital = 509
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_karvuna = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_karvuna
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = south_slavic
				religion_group = christian
				primary_title = { title = d_karvuna }
				num_of_duke_titles = 4
			}
			k_karvuna = {
				is_titular = no
			}
		}
	}
}

e_karvuna = {
	color = { 204 89 247 }
	color2 = { 255 255 255 }
	capital = 509
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_karvuna = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_karvuna
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = south_slavic
				religion_group = christian
				primary_title = { title = k_karvuna }
				num_of_king_titles = 3
			}
			e_karvuna = {
				is_titular = no
			}
		}
	}
}

k_wallachia = {
	color = { 238 192 69 }
	color2 = { 255 255 255 }
	capital = 515
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_wallachia = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_wallachia
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = south_slavic
				religion_group = christian
				primary_title = { title = d_wallachia }
				num_of_duke_titles = 4
			}
			k_wallachia = {
				is_titular = no
			}
		}
	}
}

e_wallachia = {
	color = { 238 192 69 }
	color2 = { 255 255 255 }
	capital = 515
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_wallachia = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_wallachia
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = south_slavic
				religion_group = christian
				primary_title = { title = k_wallachia }
				num_of_king_titles = 3
			}
			e_wallachia = {
				is_titular = no
			}
		}
	}
}

k_moldau = {
	color = { 223 202 145 }
	color2 = { 255 255 255 }
	capital = 545
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_moldau = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_moldau
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = south_slavic
				religion_group = christian
				primary_title = { title = d_moldau }
				num_of_duke_titles = 4
			}
			k_moldau = {
				is_titular = no
			}
		}
	}
}

e_moldau = {
	color = { 223 202 145 }
	color2 = { 255 255 255 }
	capital = 545
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_moldau = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_moldau
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = south_slavic
				religion_group = christian
				primary_title = { title = k_moldau }
				num_of_king_titles = 3
			}
			e_moldau = {
				is_titular = no
			}
		}
	}
}

k_rashka = {
	color = { 168 135 57 }
	color2 = { 255 255 255 }
	capital = 502
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_rashka = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_rashka
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = south_slavic
				religion_group = christian
				primary_title = { title = d_rashka }
				num_of_duke_titles = 4
			}
			k_rashka = {
				is_titular = no
			}
		}
	}
}

e_rashka = {
	color = { 168 135 57 }
	color2 = { 255 255 255 }
	capital = 502
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_rashka = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_rashka
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = south_slavic
				religion_group = christian
				primary_title = { title = k_rashka }
				num_of_king_titles = 3
			}
			e_rashka = {
				is_titular = no
			}
		}
	}
}

k_dioclea = {
	color = { 129 94 13 }
	color2 = { 255 255 255 }
	capital = 468
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_dioclea = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_dioclea
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = south_slavic
				religion_group = christian
				primary_title = { title = d_dioclea }
				num_of_duke_titles = 4
			}
			k_dioclea = {
				is_titular = no
			}
		}
	}
}

e_dioclea = {
	color = { 129 94 13 }
	color2 = { 255 255 255 }
	capital = 468
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_dioclea = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_dioclea
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = south_slavic
				religion_group = christian
				primary_title = { title = k_dioclea }
				num_of_king_titles = 3
			}
			e_dioclea = {
				is_titular = no
			}
		}
	}
}

k_slavonia = {
	color = { 184 137 137 }
	color2 = { 255 255 255 }
	capital = 461
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_slavonia = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_slavonia
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = south_slavic
				religion_group = christian
				primary_title = { title = d_slavonia }
				num_of_duke_titles = 4
			}
			k_slavonia = {
				is_titular = no
			}
		}
	}
}

e_slavonia = {
	color = { 184 137 137 }
	color2 = { 255 255 255 }
	capital = 461
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_slavonia = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_slavonia
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = south_slavic
				religion_group = christian
				primary_title = { title = k_slavonia }
				num_of_king_titles = 3
			}
			e_slavonia = {
				is_titular = no
			}
		}
	}
}

k_dalmatia = {
	color = { 184 137 137 }
	color2 = { 255 255 255 }
	capital = 465
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_dalmatia = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_dalmatia
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = south_slavic
				religion_group = christian
				primary_title = { title = d_dalmatia }
				num_of_duke_titles = 4
			}
			k_dalmatia = {
				is_titular = no
			}
		}
	}
}

e_dalmatia = {
	color = { 184 137 137 }
	color2 = { 255 255 255 }
	capital = 465
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_dalmatia = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_dalmatia
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = south_slavic
				religion_group = christian
				primary_title = { title = k_dalmatia }
				num_of_king_titles = 3
			}
			e_dalmatia = {
				is_titular = no
			}
		}
	}
}

k_benevento = {
	color = { 153 247 29 }
	color2 = { 255 255 255 }
	capital = 335
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_benevento = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_benevento
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = latin
				religion_group = christian
				primary_title = { title = d_benevento }
				num_of_duke_titles = 4
			}
			k_benevento = {
				is_titular = no
			}
		}
	}
}

e_benevento = {
	color = { 153 247 29 }
	color2 = { 255 255 255 }
	capital = 335
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_benevento = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_benevento
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = latin
				religion_group = christian
				primary_title = { title = k_benevento }
				num_of_king_titles = 3
			}
			e_benevento = {
				is_titular = no
			}
		}
	}
}

k_capua = {
	color = { 138 226 138 }
	color2 = { 255 255 255 }
	capital = 851
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_capua = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_capua
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = latin
				religion_group = christian
				primary_title = { title = d_capua }
				num_of_duke_titles = 4
			}
			k_capua = {
				is_titular = no
			}
		}
	}
}

e_capua = {
	color = { 138 226 138 }
	color2 = { 255 255 255 }
	capital = 851
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_capua = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_capua
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = latin
				religion_group = christian
				primary_title = { title = k_capua }
				num_of_king_titles = 3
			}
			e_capua = {
				is_titular = no
			}
		}
	}
}

k_apulia = {
	color = { 167 172 63 }
	color2 = { 255 255 255 }
	capital = 347
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_apulia = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_apulia
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = latin
				religion_group = christian
				primary_title = { title = d_apulia }
				num_of_duke_titles = 4
			}
			k_apulia = {
				is_titular = no
			}
		}
	}
}

e_apulia = {
	color = { 167 172 63 }
	color2 = { 255 255 255 }
	capital = 347
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_apulia = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_apulia
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = latin
				religion_group = christian
				primary_title = { title = k_apulia }
				num_of_king_titles = 3
			}
			e_apulia = {
				is_titular = no
			}
		}
	}
}

k_salerno = {
	color = { 175 224 86 }
	color2 = { 255 255 255 }
	capital = 336
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_salerno = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_salerno
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = latin
				religion_group = christian
				primary_title = { title = d_salerno }
				num_of_duke_titles = 4
			}
			k_salerno = {
				is_titular = no
			}
		}
	}
}

e_salerno = {
	color = { 175 224 86 }
	color2 = { 255 255 255 }
	capital = 336
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_salerno = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_salerno
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = latin
				religion_group = christian
				primary_title = { title = k_salerno }
				num_of_king_titles = 3
			}
			e_salerno = {
				is_titular = no
			}
		}
	}
}

k_calabria = {
	color = { 118 165 57 }
	color2 = { 255 255 255 }
	capital = 338
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_calabria = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_calabria
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = byzantine
				religion_group = christian
				primary_title = { title = d_calabria }
				num_of_duke_titles = 4
			}
			k_calabria = {
				is_titular = no
			}
		}
	}
}

e_calabria = {
	color = { 118 165 57 }
	color2 = { 255 255 255 }
	capital = 338
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_calabria = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_calabria
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = byzantine
				religion_group = christian
				primary_title = { title = k_calabria }
				num_of_king_titles = 3
			}
			e_calabria = {
				is_titular = no
			}
		}
	}
}

k_uppland = {
	color = { 10 10 110 }
	color2 = { 255 255 255 }
	capital = 290
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_uppland = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_uppland
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = north_germanic
				religion_group = pagan_group
				primary_title = { title = d_uppland }
				num_of_duke_titles = 4
			}
			k_uppland = {
				is_titular = no
			}
		}
	}
}

e_uppland = {
	color = { 10 10 110 }
	color2 = { 255 255 255 }
	capital = 290
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_uppland = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_uppland
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = north_germanic
				religion_group = pagan_group
				primary_title = { title = k_uppland }
				num_of_king_titles = 3
			}
			e_uppland = {
				is_titular = no
			}
		}
	}
}

k_ostergotland = {
	color = { 0 186 255 }
	color2 = { 255 255 255 }
	capital = 293
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_ostergotland = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_ostergotland
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = north_germanic
				religion_group = christian
				primary_title = { title = d_ostergotland }
				num_of_duke_titles = 4
			}
			k_ostergotland = {
				is_titular = no
			}
		}
	}
}

e_ostergotland = {
	color = { 0 186 255 }
	color2 = { 255 255 255 }
	capital = 293
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_ostergotland = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_ostergotland
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = north_germanic
				religion_group = christian
				primary_title = { title = k_ostergotland }
				num_of_king_titles = 3
			}
			e_ostergotland = {
				is_titular = no
			}
		}
	}
}

k_vastergotland = {
	color = { 0 150 255 }
	color2 = { 255 255 255 }
	capital = 297
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_vastergotland = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_vastergotland
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = north_germanic
				religion_group = christian
				primary_title = { title = d_vastergotland }
				num_of_duke_titles = 4
			}
			k_vastergotland = {
				is_titular = no
			}
		}
	}
}

e_vastergotland = {
	color = { 0 150 255 }
	color2 = { 255 255 255 }
	capital = 297
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_vastergotland = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_vastergotland
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = north_germanic
				religion_group = christian
				primary_title = { title = k_vastergotland }
				num_of_king_titles = 3
			}
			e_vastergotland = {
				is_titular = no
			}
		}
	}
}

k_norrland = {
	color = { 0 50 155 }
	color2 = { 255 255 255 }
	capital = 285
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_norrland = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_norrland
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = north_germanic
				religion_group = pagan_group
				primary_title = { title = d_norrland }
				num_of_duke_titles = 4
			}
			k_norrland = {
				is_titular = no
			}
		}
	}
}

e_norrland = {
	color = { 0 50 155 }
	color2 = { 255 255 255 }
	capital = 285
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_norrland = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_norrland
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = north_germanic
				religion_group = pagan_group
				primary_title = { title = k_norrland }
				num_of_king_titles = 3
			}
			e_norrland = {
				is_titular = no
			}
		}
	}
}

k_bergslagen = {
	color = { 0 96 255 }
	color2 = { 255 255 255 }
	capital = 288
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_bergslagen = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_bergslagen
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = north_germanic
				religion_group = christian
				primary_title = { title = d_bergslagen }
				num_of_duke_titles = 4
			}
			k_bergslagen = {
				is_titular = no
			}
		}
	}
}

e_bergslagen = {
	color = { 0 96 255 }
	color2 = { 255 255 255 }
	capital = 288
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_bergslagen = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_bergslagen
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = north_germanic
				religion_group = christian
				primary_title = { title = k_bergslagen }
				num_of_king_titles = 3
			}
			e_bergslagen = {
				is_titular = no
			}
		}
	}
}

k_smaland = {
	color = { 0 60 255 }
	color2 = { 255 255 255 }
	capital = 298
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_smaland = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_smaland
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = north_germanic
				religion_group = christian
				primary_title = { title = d_smaland }
				num_of_duke_titles = 4
			}
			k_smaland = {
				is_titular = no
			}
		}
	}
}

e_smaland = {
	color = { 0 60 255 }
	color2 = { 255 255 255 }
	capital = 298
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_smaland = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_smaland
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = north_germanic
				religion_group = christian
				primary_title = { title = k_smaland }
				num_of_king_titles = 3
			}
			e_smaland = {
				is_titular = no
			}
		}
	}
}

k_skane = {
	color = { 210 2 2 }
	color2 = { 255 255 255 }
	capital = 303
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_skane = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_skane
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = north_germanic
				religion_group = christian
				primary_title = { title = d_skane }
				num_of_duke_titles = 4
			}
			k_skane = {
				is_titular = no
			}
		}
	}
}

e_skane = {
	color = { 210 2 2 }
	color2 = { 255 255 255 }
	capital = 303
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_skane = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_skane
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = north_germanic
				religion_group = christian
				primary_title = { title = k_skane }
				num_of_king_titles = 3
			}
			e_skane = {
				is_titular = no
			}
		}
	}
}

k_sjaelland = {
	color = { 206 57 57 }
	color2 = { 255 255 255 }
	capital = 266
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_sjaelland = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_sjaelland
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = north_germanic
				religion_group = christian
				primary_title = { title = d_sjaelland }
				num_of_duke_titles = 4
			}
			k_sjaelland = {
				is_titular = no
			}
		}
	}
}

e_sjaelland = {
	color = { 206 57 57 }
	color2 = { 255 255 255 }
	capital = 266
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_sjaelland = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_sjaelland
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = north_germanic
				religion_group = christian
				primary_title = { title = k_sjaelland }
				num_of_king_titles = 3
			}
			e_sjaelland = {
				is_titular = no
			}
		}
	}
}

k_slesvig = {
	color = { 224 74 74 }
	color2 = { 255 255 255 }
	capital = 267
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_slesvig = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_slesvig
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = north_germanic
				religion_group = christian
				primary_title = { title = d_slesvig }
				num_of_duke_titles = 4
			}
			k_slesvig = {
				is_titular = no
			}
		}
	}
}

e_slesvig = {
	color = { 224 74 74 }
	color2 = { 255 255 255 }
	capital = 267
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_slesvig = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_slesvig
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = north_germanic
				religion_group = christian
				primary_title = { title = k_slesvig }
				num_of_king_titles = 3
			}
			e_slesvig = {
				is_titular = no
			}
		}
	}
}

k_holstein = {
	color = { 172 112 112 }
	color2 = { 255 255 255 }
	capital = 263
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_holstein = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_holstein
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = north_germanic
				religion_group = christian
				primary_title = { title = d_holstein }
				num_of_duke_titles = 4
			}
			k_holstein = {
				is_titular = no
			}
		}
	}
}

e_holstein = {
	color = { 172 112 112 }
	color2 = { 255 255 255 }
	capital = 263
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_holstein = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_holstein
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = north_germanic
				religion_group = christian
				primary_title = { title = k_holstein }
				num_of_king_titles = 3
			}
			e_holstein = {
				is_titular = no
			}
		}
	}
}

k_iceland = {
	color = { 195 190 255 }
	color2 = { 220 220 220 }
	capital = 1
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_iceland = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_iceland
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = north_germanic
				religion_group = christian
				primary_title = { title = d_iceland }
				num_of_duke_titles = 4
			}
			k_iceland = {
				is_titular = no
			}
		}
	}
}

e_iceland = {
	color = { 195 190 255 }
	color2 = { 220 220 220 }
	capital = 1
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_iceland = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_iceland
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = north_germanic
				religion_group = christian
				primary_title = { title = k_iceland }
				num_of_king_titles = 3
			}
			e_iceland = {
				is_titular = no
			}
		}
	}
}

k_orkney = {
	color = { 0 18 255 }
	color2 = { 255 255 255 }
	capital = 36
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_orkney = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_orkney
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = north_germanic
				religion_group = christian
				primary_title = { title = d_orkney }
				num_of_duke_titles = 4
			}
			k_orkney = {
				is_titular = no
			}
		}
	}
}

e_orkney = {
	color = { 0 18 255 }
	color2 = { 255 255 255 }
	capital = 36
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_orkney = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_orkney
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = north_germanic
				religion_group = christian
				primary_title = { title = k_orkney }
				num_of_king_titles = 3
			}
			e_orkney = {
				is_titular = no
			}
		}
	}
}

k_vestlandet = {
	color = { 24 0 255 }
	color2 = { 255 255 255 }
	capital = 274
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_vestlandet = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_vestlandet
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = north_germanic
				religion_group = christian
				primary_title = { title = d_vestlandet }
				num_of_duke_titles = 4
			}
			k_vestlandet = {
				is_titular = no
			}
		}
	}
}

e_vestlandet = {
	color = { 24 0 255 }
	color2 = { 255 255 255 }
	capital = 274
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_vestlandet = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_vestlandet
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = north_germanic
				religion_group = christian
				primary_title = { title = k_vestlandet }
				num_of_king_titles = 3
			}
			e_vestlandet = {
				is_titular = no
			}
		}
	}
}

k_ostlandet = {
	color = { 60 0 255 }
	color2 = { 255 255 255 }
	capital = 272
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_ostlandet = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_ostlandet
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = north_germanic
				religion_group = christian
				primary_title = { title = d_ostlandet }
				num_of_duke_titles = 4
			}
			k_ostlandet = {
				is_titular = no
			}
		}
	}
}

e_ostlandet = {
	color = { 60 0 255 }
	color2 = { 255 255 255 }
	capital = 272
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_ostlandet = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_ostlandet
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = north_germanic
				religion_group = christian
				primary_title = { title = k_ostlandet }
				num_of_king_titles = 3
			}
			e_ostlandet = {
				is_titular = no
			}
		}
	}
}

k_trondelag = {
	color = { 144 90 205 }
	color2 = { 255 255 255 }
	capital = 275
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_trondelag = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_trondelag
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = north_germanic
				religion_group = christian
				primary_title = { title = d_trondelag }
				num_of_duke_titles = 4
			}
			k_trondelag = {
				is_titular = no
			}
		}
	}
}

e_trondelag = {
	color = { 144 90 205 }
	color2 = { 255 255 255 }
	capital = 275
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_trondelag = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_trondelag
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = north_germanic
				religion_group = christian
				primary_title = { title = k_trondelag }
				num_of_king_titles = 3
			}
			e_trondelag = {
				is_titular = no
			}
		}
	}
}

k_jamtland = {
	color = { 15 199 239 }
	color2 = { 255 255 255 }
	capital = 282
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_jamtland = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_jamtland
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = north_germanic
				religion_group = pagan_group
				primary_title = { title = d_jamtland }
				num_of_duke_titles = 4
			}
			k_jamtland = {
				is_titular = no
			}
		}
	}
}

e_jamtland = {
	color = { 15 199 239 }
	color2 = { 255 255 255 }
	capital = 282
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_jamtland = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_jamtland
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = north_germanic
				religion_group = pagan_group
				primary_title = { title = k_jamtland }
				num_of_king_titles = 3
			}
			e_jamtland = {
				is_titular = no
			}
		}
	}
}

k_esthonia = {
	color = { 150 75 75 }
	color2 = { 255 255 255 }
	capital = 378
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_esthonia = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_esthonia
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = finno_ugric
				religion_group = pagan_group
				primary_title = { title = d_esthonia }
				num_of_duke_titles = 4
			}
			k_esthonia = {
				is_titular = no
			}
		}
	}
}

e_esthonia = {
	color = { 150 75 75 }
	color2 = { 255 255 255 }
	capital = 378
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_esthonia = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_esthonia
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = finno_ugric
				religion_group = pagan_group
				primary_title = { title = k_esthonia }
				num_of_king_titles = 3
			}
			e_esthonia = {
				is_titular = no
			}
		}
	}
}

k_karelia = {
	color = { 155 135 45 }
	color2 = { 255 255 255 }
	capital = 388
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_karelia = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_karelia
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = finno_ugric
				religion_group = pagan_group
				primary_title = { title = d_karelia }
				num_of_duke_titles = 4
			}
			k_karelia = {
				is_titular = no
			}
		}
	}
}

e_karelia = {
	color = { 155 135 45 }
	color2 = { 255 255 255 }
	capital = 388
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_karelia = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_karelia
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = finno_ugric
				religion_group = pagan_group
				primary_title = { title = k_karelia }
				num_of_king_titles = 3
			}
			e_karelia = {
				is_titular = no
			}
		}
	}
}

k_mazovia = {
	color = { 125 46 36 }
	color2 = { 255 255 255 }
	capital = 529
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_mazovia = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_mazovia
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = west_slavic
				religion_group = christian
				primary_title = { title = d_mazovia }
				num_of_duke_titles = 4
			}
			k_mazovia = {
				is_titular = no
			}
		}
	}
}

e_mazovia = {
	color = { 125 46 36 }
	color2 = { 255 255 255 }
	capital = 529
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_mazovia = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_mazovia
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = west_slavic
				religion_group = christian
				primary_title = { title = k_mazovia }
				num_of_king_titles = 3
			}
			e_mazovia = {
				is_titular = no
			}
		}
	}
}

k_greater_poland = {
	color = { 140 13 13 }
	color2 = { 255 255 255 }
	capital = 429
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_greater_poland = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_greater_poland
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = west_slavic
				religion_group = christian
				primary_title = { title = d_greater_poland }
				num_of_duke_titles = 4
			}
			k_greater_poland = {
				is_titular = no
			}
		}
	}
}

e_greater_poland = {
	color = { 140 13 13 }
	color2 = { 255 255 255 }
	capital = 429
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_greater_poland = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_greater_poland
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = west_slavic
				religion_group = christian
				primary_title = { title = k_greater_poland }
				num_of_king_titles = 3
			}
			e_greater_poland = {
				is_titular = no
			}
		}
	}
}

k_silesia = {
	color = { 169 35 75 }
	color2 = { 255 255 255 }
	capital = 435
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_silesia = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_silesia
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = west_slavic
				religion_group = christian
				primary_title = { title = d_silesia }
				num_of_duke_titles = 4
			}
			k_silesia = {
				is_titular = no
			}
		}
	}
}

e_silesia = {
	color = { 169 35 75 }
	color2 = { 255 255 255 }
	capital = 435
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_silesia = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_silesia
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = west_slavic
				religion_group = christian
				primary_title = { title = k_silesia }
				num_of_king_titles = 3
			}
			e_silesia = {
				is_titular = no
			}
		}
	}
}

k_lesser_poland = {
	color = { 245 163 176 }
	color2 = { 255 255 255 }
	capital = 527
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_lesser_poland = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_lesser_poland
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = west_slavic
				religion_group = christian
				primary_title = { title = d_lesser_poland }
				num_of_duke_titles = 4
			}
			k_lesser_poland = {
				is_titular = no
			}
		}
	}
}

e_lesser_poland = {
	color = { 245 163 176 }
	color2 = { 255 255 255 }
	capital = 527
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_lesser_poland = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_lesser_poland
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = west_slavic
				religion_group = christian
				primary_title = { title = k_lesser_poland }
				num_of_king_titles = 3
			}
			e_lesser_poland = {
				is_titular = no
			}
		}
	}
}

k_kuyavia = {
	color = { 115 30 50 }
	color2 = { 255 255 255 }
	capital = 428
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_kuyavia = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_kuyavia
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = west_slavic
				religion_group = christian
				primary_title = { title = d_kuyavia }
				num_of_duke_titles = 4
			}
			k_kuyavia = {
				is_titular = no
			}
		}
	}
}

e_kuyavia = {
	color = { 115 30 50 }
	color2 = { 255 255 255 }
	capital = 428
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_kuyavia = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_kuyavia
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = west_slavic
				religion_group = christian
				primary_title = { title = k_kuyavia }
				num_of_king_titles = 3
			}
			e_kuyavia = {
				is_titular = no
			}
		}
	}
}

k_livonia = {
	color = { 110 50 50 }
	color2 = { 255 255 255 }
	capital = 377
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_livonia = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_livonia
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = baltic
				religion_group = pagan_group
				primary_title = { title = d_livonia }
				num_of_duke_titles = 4
			}
			k_livonia = {
				is_titular = no
			}
		}
	}
}

e_livonia = {
	color = { 110 50 50 }
	color2 = { 255 255 255 }
	capital = 377
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_livonia = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_livonia
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = baltic
				religion_group = pagan_group
				primary_title = { title = k_livonia }
				num_of_king_titles = 3
			}
			e_livonia = {
				is_titular = no
			}
		}
	}
}

k_prussia = {
	color = { 200 100 100 }
	color2 = { 255 255 255 }
	capital = 370
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_prussia = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_prussia
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = baltic
				religion_group = pagan_group
				primary_title = { title = d_prussia }
				num_of_duke_titles = 4
			}
			k_prussia = {
				is_titular = no
			}
		}
	}
}

e_prussia = {
	color = { 200 100 100 }
	color2 = { 255 255 255 }
	capital = 370
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_prussia = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_prussia
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = baltic
				religion_group = pagan_group
				primary_title = { title = k_prussia }
				num_of_king_titles = 3
			}
			e_prussia = {
				is_titular = no
			}
		}
	}
}

k_polotsk = {
	color = { 128 133 104 }
	color2 = { 255 255 255 }
	capital = 419
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_polotsk = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_polotsk
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = east_slavic
				religion_group = christian
				primary_title = { title = d_polotsk }
				num_of_duke_titles = 4
			}
			k_polotsk = {
				is_titular = no
			}
		}
	}
}

e_polotsk = {
	color = { 128 133 104 }
	color2 = { 255 255 255 }
	capital = 419
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_polotsk = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_polotsk
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = east_slavic
				religion_group = christian
				primary_title = { title = k_polotsk }
				num_of_king_titles = 3
			}
			e_polotsk = {
				is_titular = no
			}
		}
	}
}

k_lithuanians = {
	color = { 81 0 0 }
	color2 = { 255 255 255 }
	capital = 420
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_lithuanians = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_lithuanians
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = baltic
				religion_group = pagan_group
				primary_title = { title = d_lithuanians }
				num_of_duke_titles = 4
			}
			k_lithuanians = {
				is_titular = no
			}
		}
	}
}

e_lithuanians = {
	color = { 81 0 0 }
	color2 = { 255 255 255 }
	capital = 420
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_lithuanians = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_lithuanians
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = baltic
				religion_group = pagan_group
				primary_title = { title = k_lithuanians }
				num_of_king_titles = 3
			}
			e_lithuanians = {
				is_titular = no
			}
		}
	}
}

k_courland = {
	color = { 182 16 16 }
	color2 = { 255 255 255 }
	capital = 373
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_courland = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_courland
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = baltic
				religion_group = pagan_group
				primary_title = { title = d_courland }
				num_of_duke_titles = 4
			}
			k_courland = {
				is_titular = no
			}
		}
	}
}

e_courland = {
	color = { 182 16 16 }
	color2 = { 255 255 255 }
	capital = 373
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_courland = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_courland
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = baltic
				religion_group = pagan_group
				primary_title = { title = k_courland }
				num_of_king_titles = 3
			}
			e_courland = {
				is_titular = no
			}
		}
	}
}

k_samogitia = {
	color = { 150 70 70 }
	color2 = { 255 255 255 }
	capital = 422
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_samogitia = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_samogitia
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = baltic
				religion_group = pagan_group
				primary_title = { title = d_samogitia }
				num_of_duke_titles = 4
			}
			k_samogitia = {
				is_titular = no
			}
		}
	}
}

e_samogitia = {
	color = { 150 70 70 }
	color2 = { 255 255 255 }
	capital = 422
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_samogitia = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_samogitia
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = baltic
				religion_group = pagan_group
				primary_title = { title = k_samogitia }
				num_of_king_titles = 3
			}
			e_samogitia = {
				is_titular = no
			}
		}
	}
}

k_bjarmia = {
	color = { 100 115 55 }
	color2 = { 255 255 255 }
	capital = 396
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_bjarmia = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_bjarmia
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = finno_ugric
				religion_group = pagan_group
				primary_title = { title = d_bjarmia }
				num_of_duke_titles = 4
			}
			k_bjarmia = {
				is_titular = no
			}
		}
	}
}

e_bjarmia = {
	color = { 100 115 55 }
	color2 = { 255 255 255 }
	capital = 396
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_bjarmia = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_bjarmia
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = finno_ugric
				religion_group = pagan_group
				primary_title = { title = k_bjarmia }
				num_of_king_titles = 3
			}
			e_bjarmia = {
				is_titular = no
			}
		}
	}
}

k_beloozero = {
	color = { 131 146 86 }
	color2 = { 255 255 255 }
	capital = 408
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_beloozero = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_beloozero
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = east_slavic
				religion_group = christian
				primary_title = { title = d_beloozero }
				num_of_duke_titles = 4
			}
			k_beloozero = {
				is_titular = no
			}
		}
	}
}

e_beloozero = {
	color = { 131 146 86 }
	color2 = { 255 255 255 }
	capital = 408
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_beloozero = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_beloozero
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = east_slavic
				religion_group = christian
				primary_title = { title = k_beloozero }
				num_of_king_titles = 3
			}
			e_beloozero = {
				is_titular = no
			}
		}
	}
}

k_novgorod = {
	color = { 107 164 64 }
	color2 = { 255 255 255 }
	capital = 414
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_novgorod = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_novgorod
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = east_slavic
				religion_group = christian
				primary_title = { title = d_novgorod }
				num_of_duke_titles = 4
			}
			k_novgorod = {
				is_titular = no
			}
		}
	}
}

e_novgorod = {
	color = { 107 164 64 }
	color2 = { 255 255 255 }
	capital = 414
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_novgorod = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_novgorod
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = east_slavic
				religion_group = christian
				primary_title = { title = k_novgorod }
				num_of_king_titles = 3
			}
			e_novgorod = {
				is_titular = no
			}
		}
	}
}

k_rostov = {
	color = { 124 137 89 }
	color2 = { 255 255 255 }
	capital = 574
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_rostov = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_rostov
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = east_slavic
				religion_group = christian
				primary_title = { title = d_rostov }
				num_of_duke_titles = 4
			}
			k_rostov = {
				is_titular = no
			}
		}
	}
}

e_rostov = {
	color = { 124 137 89 }
	color2 = { 255 255 255 }
	capital = 574
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_rostov = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_rostov
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = east_slavic
				religion_group = christian
				primary_title = { title = k_rostov }
				num_of_king_titles = 3
			}
			e_rostov = {
				is_titular = no
			}
		}
	}
}

k_tver = {
	color = { 169 183 125 }
	color2 = { 255 255 255 }
	capital = 570
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_tver = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_tver
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = east_slavic
				religion_group = christian
				primary_title = { title = d_tver }
				num_of_duke_titles = 4
			}
			k_tver = {
				is_titular = no
			}
		}
	}
}

e_tver = {
	color = { 169 183 125 }
	color2 = { 255 255 255 }
	capital = 570
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_tver = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_tver
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = east_slavic
				religion_group = christian
				primary_title = { title = k_tver }
				num_of_king_titles = 3
			}
			e_tver = {
				is_titular = no
			}
		}
	}
}

k_yaroslavl = {
	color = { 178 192 134 }
	color2 = { 255 255 255 }
	capital = 572
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_yaroslavl = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_yaroslavl
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = east_slavic
				religion_group = christian
				primary_title = { title = d_yaroslavl }
				num_of_duke_titles = 4
			}
			k_yaroslavl = {
				is_titular = no
			}
		}
	}
}

e_yaroslavl = {
	color = { 178 192 134 }
	color2 = { 255 255 255 }
	capital = 572
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_yaroslavl = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_yaroslavl
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = east_slavic
				religion_group = christian
				primary_title = { title = k_yaroslavl }
				num_of_king_titles = 3
			}
			e_yaroslavl = {
				is_titular = no
			}
		}
	}
}

k_vladimir = {
	color = { 180 200 90 }
	color2 = { 255 255 255 }
	capital = 582
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_vladimir = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_vladimir
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = east_slavic
				religion_group = christian
				primary_title = { title = d_vladimir }
				num_of_duke_titles = 4
			}
			k_vladimir = {
				is_titular = no
			}
		}
	}
}

e_vladimir = {
	color = { 180 200 90 }
	color2 = { 255 255 255 }
	capital = 582
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_vladimir = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_vladimir
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = east_slavic
				religion_group = christian
				primary_title = { title = k_vladimir }
				num_of_king_titles = 3
			}
			e_vladimir = {
				is_titular = no
			}
		}
	}
}

k_moskva = {
	color = { 207 222 123 }
	color2 = { 255 255 255 }
	capital = 575
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_moskva = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_moskva
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = east_slavic
				religion_group = christian
				primary_title = { title = d_moskva }
				num_of_duke_titles = 4
			}
			k_moskva = {
				is_titular = no
			}
		}
	}
}

e_moskva = {
	color = { 207 222 123 }
	color2 = { 255 255 255 }
	capital = 575
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_moskva = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_moskva
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = east_slavic
				religion_group = christian
				primary_title = { title = k_moskva }
				num_of_king_titles = 3
			}
			e_moskva = {
				is_titular = no
			}
		}
	}
}

k_kiev = {
	color = { 100 100 20 }
	color2 = { 255 255 255 }
	capital = 547
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_kiev = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_kiev
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = east_slavic
				religion_group = christian
				primary_title = { title = d_kiev }
				num_of_duke_titles = 4
			}
			k_kiev = {
				is_titular = no
			}
		}
	}
}

e_kiev = {
	color = { 100 100 20 }
	color2 = { 255 255 255 }
	capital = 547
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_kiev = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_kiev
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = east_slavic
				religion_group = christian
				primary_title = { title = k_kiev }
				num_of_king_titles = 3
			}
			e_kiev = {
				is_titular = no
			}
		}
	}
}

k_galich = {
	color = { 224 112 130 }
	color2 = { 255 255 255 }
	capital = 536
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_galich = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_galich
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = east_slavic
				religion_group = christian
				primary_title = { title = d_galich }
				num_of_duke_titles = 4
			}
			k_galich = {
				is_titular = no
			}
		}
	}
}

e_galich = {
	color = { 224 112 130 }
	color2 = { 255 255 255 }
	capital = 536
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_galich = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_galich
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = east_slavic
				religion_group = christian
				primary_title = { title = k_galich }
				num_of_king_titles = 3
			}
			e_galich = {
				is_titular = no
			}
		}
	}
}

k_volhynia = {
	color = { 204 155 121 }
	color2 = { 255 255 255 }
	capital = 535
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_volhynia = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_volhynia
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = east_slavic
				religion_group = christian
				primary_title = { title = d_volhynia }
				num_of_duke_titles = 4
			}
			k_volhynia = {
				is_titular = no
			}
		}
	}
}

e_volhynia = {
	color = { 204 155 121 }
	color2 = { 255 255 255 }
	capital = 535
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_volhynia = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_volhynia
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = east_slavic
				religion_group = christian
				primary_title = { title = k_volhynia }
				num_of_king_titles = 3
			}
			e_volhynia = {
				is_titular = no
			}
		}
	}
}

k_turov = {
	color = { 166 85 87 }
	color2 = { 255 255 255 }
	capital = 552
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_turov = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_turov
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = east_slavic
				religion_group = christian
				primary_title = { title = d_turov }
				num_of_duke_titles = 4
			}
			k_turov = {
				is_titular = no
			}
		}
	}
}

e_turov = {
	color = { 166 85 87 }
	color2 = { 255 255 255 }
	capital = 552
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_turov = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_turov
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = east_slavic
				religion_group = christian
				primary_title = { title = k_turov }
				num_of_king_titles = 3
			}
			e_turov = {
				is_titular = no
			}
		}
	}
}

k_vitebsk = {
	color = { 196 33 55 }
	color2 = { 255 255 255 }
	capital = 417
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_vitebsk = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_vitebsk
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = east_slavic
				religion_group = christian
				primary_title = { title = d_vitebsk }
				num_of_duke_titles = 4
			}
			k_vitebsk = {
				is_titular = no
			}
		}
	}
}

e_vitebsk = {
	color = { 196 33 55 }
	color2 = { 255 255 255 }
	capital = 417
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_vitebsk = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_vitebsk
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = east_slavic
				religion_group = christian
				primary_title = { title = k_vitebsk }
				num_of_king_titles = 3
			}
			e_vitebsk = {
				is_titular = no
			}
		}
	}
}

k_smolensk = {
	color = { 226 241 182 }
	color2 = { 255 255 255 }
	capital = 568
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_smolensk = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_smolensk
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = east_slavic
				religion_group = christian
				primary_title = { title = d_smolensk }
				num_of_duke_titles = 4
			}
			k_smolensk = {
				is_titular = no
			}
		}
	}
}

e_smolensk = {
	color = { 226 241 182 }
	color2 = { 255 255 255 }
	capital = 568
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_smolensk = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_smolensk
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = east_slavic
				religion_group = christian
				primary_title = { title = k_smolensk }
				num_of_king_titles = 3
			}
			e_smolensk = {
				is_titular = no
			}
		}
	}
}

k_chernigov = {
	color = { 150 235 91 }
	color2 = { 255 255 255 }
	capital = 554
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_chernigov = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_chernigov
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = east_slavic
				religion_group = christian
				primary_title = { title = d_chernigov }
				num_of_duke_titles = 4
			}
			k_chernigov = {
				is_titular = no
			}
		}
	}
}

e_chernigov = {
	color = { 150 235 91 }
	color2 = { 255 255 255 }
	capital = 554
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_chernigov = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_chernigov
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = east_slavic
				religion_group = christian
				primary_title = { title = k_chernigov }
				num_of_king_titles = 3
			}
			e_chernigov = {
				is_titular = no
			}
		}
	}
}

k_novgorod-seversk = {
	color = { 105 166 64 }
	color2 = { 255 255 255 }
	capital = 567
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_novgorod-seversk = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_novgorod-seversk
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = east_slavic
				religion_group = christian
				primary_title = { title = d_novgorod-seversk }
				num_of_duke_titles = 4
			}
			k_novgorod-seversk = {
				is_titular = no
			}
		}
	}
}

e_novgorod-seversk = {
	color = { 105 166 64 }
	color2 = { 255 255 255 }
	capital = 567
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_novgorod-seversk = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_novgorod-seversk
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = east_slavic
				religion_group = christian
				primary_title = { title = k_novgorod-seversk }
				num_of_king_titles = 3
			}
			e_novgorod-seversk = {
				is_titular = no
			}
		}
	}
}

k_ryazan = {
	color = { 110 115 45 }
	color2 = { 255 255 255 }
	capital = 580
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_ryazan = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_ryazan
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = east_slavic
				religion_group = christian
				primary_title = { title = d_ryazan }
				num_of_duke_titles = 4
			}
			k_ryazan = {
				is_titular = no
			}
		}
	}
}

e_ryazan = {
	color = { 110 115 45 }
	color2 = { 255 255 255 }
	capital = 580
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_ryazan = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_ryazan
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = east_slavic
				religion_group = christian
				primary_title = { title = k_ryazan }
				num_of_king_titles = 3
			}
			e_ryazan = {
				is_titular = no
			}
		}
	}
}

k_pereyaslavl = {
	color = { 232 200 115 }
	color2 = { 255 255 255 }
	capital = 555
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_pereyaslavl = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_pereyaslavl
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = east_slavic
				religion_group = christian
				primary_title = { title = d_pereyaslavl }
				num_of_duke_titles = 4
			}
			k_pereyaslavl = {
				is_titular = no
			}
		}
	}
}

e_pereyaslavl = {
	color = { 232 200 115 }
	color2 = { 255 255 255 }
	capital = 555
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_pereyaslavl = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_pereyaslavl
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = east_slavic
				religion_group = christian
				primary_title = { title = k_pereyaslavl }
				num_of_king_titles = 3
			}
			e_pereyaslavl = {
				is_titular = no
			}
		}
	}
}

k_bulgar = {
	color = { 193 158 63 }
	color2 = { 255 255 255 }
	capital = 610
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_bulgar = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_bulgar
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = altaic
				religion_group = muslim
				primary_title = { title = d_bulgar }
				num_of_duke_titles = 4
			}
			k_bulgar = {
				is_titular = no
			}
		}
	}
}

e_bulgar = {
	color = { 193 158 63 }
	color2 = { 255 255 255 }
	capital = 610
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_bulgar = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_bulgar
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = altaic
				religion_group = muslim
				primary_title = { title = k_bulgar }
				num_of_king_titles = 3
			}
			e_bulgar = {
				is_titular = no
			}
		}
	}
}

k_cheremisa = {
	color = { 225 165 4 }
	color2 = { 255 255 255 }
	capital = 589
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_cheremisa = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_cheremisa
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = finno_ugric
				religion_group = pagan_group
				primary_title = { title = d_cheremisa }
				num_of_duke_titles = 4
			}
			k_cheremisa = {
				is_titular = no
			}
		}
	}
}

e_cheremisa = {
	color = { 225 165 4 }
	color2 = { 255 255 255 }
	capital = 589
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_cheremisa = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_cheremisa
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = finno_ugric
				religion_group = pagan_group
				primary_title = { title = k_cheremisa }
				num_of_king_titles = 3
			}
			e_cheremisa = {
				is_titular = no
			}
		}
	}
}

k_hlynov = {
	color = { 134 145 31 }
	color2 = { 255 255 255 }
	capital = 401
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_hlynov = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_hlynov
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = finno_ugric
				religion_group = pagan_group
				primary_title = { title = d_hlynov }
				num_of_duke_titles = 4
			}
			k_hlynov = {
				is_titular = no
			}
		}
	}
}

e_hlynov = {
	color = { 134 145 31 }
	color2 = { 255 255 255 }
	capital = 401
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_hlynov = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_hlynov
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = finno_ugric
				religion_group = pagan_group
				primary_title = { title = k_hlynov }
				num_of_king_titles = 3
			}
			e_hlynov = {
				is_titular = no
			}
		}
	}
}

k_tyumen = {
	color = { 210 185 15 }
	color2 = { 255 255 255 }
	capital = 891
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_tyumen = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_tyumen
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = finno_ugric
				religion_group = pagan_group
				primary_title = { title = d_tyumen }
				num_of_duke_titles = 4
			}
			k_tyumen = {
				is_titular = no
			}
		}
	}
}

e_tyumen = {
	color = { 210 185 15 }
	color2 = { 255 255 255 }
	capital = 891
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_tyumen = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_tyumen
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = finno_ugric
				religion_group = pagan_group
				primary_title = { title = k_tyumen }
				num_of_king_titles = 3
			}
			e_tyumen = {
				is_titular = no
			}
		}
	}
}

k_itil = {
	color = { 151 118 30 }
	color2 = { 255 255 255 }
	capital = 620
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_itil = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_itil
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = altaic
				religion_group = christian
				primary_title = { title = d_itil }
				num_of_duke_titles = 4
			}
			k_itil = {
				is_titular = no
			}
		}
	}
}

e_itil = {
	color = { 151 118 30 }
	color2 = { 255 255 255 }
	capital = 620
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_itil = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_itil
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = altaic
				religion_group = christian
				primary_title = { title = k_itil }
				num_of_king_titles = 3
			}
			e_itil = {
				is_titular = no
			}
		}
	}
}

k_sarkel = {
	color = { 236 200 105 }
	color2 = { 255 255 255 }
	capital = 594
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_sarkel = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_sarkel
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = altaic
				religion_group = pagan_group
				primary_title = { title = d_sarkel }
				num_of_duke_titles = 4
			}
			k_sarkel = {
				is_titular = no
			}
		}
	}
}

e_sarkel = {
	color = { 236 200 105 }
	color2 = { 255 255 255 }
	capital = 594
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_sarkel = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_sarkel
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = altaic
				religion_group = pagan_group
				primary_title = { title = k_sarkel }
				num_of_king_titles = 3
			}
			e_sarkel = {
				is_titular = no
			}
		}
	}
}

k_cherson = {
	color = { 188 91 154 }
	color2 = { 255 255 20 }
	capital = 560
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_cherson = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_cherson
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = byzantine
				religion_group = christian
				primary_title = { title = d_cherson }
				num_of_duke_titles = 4
			}
			k_cherson = {
				is_titular = no
			}
		}
	}
}

e_cherson = {
	color = { 188 91 154 }
	color2 = { 255 255 20 }
	capital = 560
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_cherson = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_cherson
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = byzantine
				religion_group = christian
				primary_title = { title = k_cherson }
				num_of_king_titles = 3
			}
			e_cherson = {
				is_titular = no
			}
		}
	}
}

k_crimea = {
	color = { 226 186 80 }
	color2 = { 255 255 255 }
	capital = 559
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_crimea = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_crimea
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = altaic
				religion_group = pagan_group
				primary_title = { title = d_crimea }
				num_of_duke_titles = 4
			}
			k_crimea = {
				is_titular = no
			}
		}
	}
}

e_crimea = {
	color = { 226 186 80 }
	color2 = { 255 255 255 }
	capital = 559
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_crimea = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_crimea
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = altaic
				religion_group = pagan_group
				primary_title = { title = k_crimea }
				num_of_king_titles = 3
			}
			e_crimea = {
				is_titular = no
			}
		}
	}
}

k_azov = {
	color = { 218 179 130 }
	color2 = { 255 255 255 }
	capital = 597
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_azov = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_azov
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = altaic
				religion_group = pagan_group
				primary_title = { title = d_azov }
				num_of_duke_titles = 4
			}
			k_azov = {
				is_titular = no
			}
		}
	}
}

e_azov = {
	color = { 218 179 130 }
	color2 = { 255 255 255 }
	capital = 597
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_azov = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_azov
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = altaic
				religion_group = pagan_group
				primary_title = { title = k_azov }
				num_of_king_titles = 3
			}
			e_azov = {
				is_titular = no
			}
		}
	}
}

k_khwarizmian = {
	color = { 224 170 24 }
	color2 = { 255 255 255 }
	capital = 623
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_khwarizmian = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_khwarizmian
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = iranian
				religion_group = zoroastrian_group
				primary_title = { title = d_khwarizmian }
				num_of_duke_titles = 4
			}
			k_khwarizmian = {
				is_titular = no
			}
		}
	}
}

e_khwarizmian = {
	color = { 224 170 24 }
	color2 = { 255 255 255 }
	capital = 623
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_khwarizmian = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_khwarizmian
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = iranian
				religion_group = zoroastrian_group
				primary_title = { title = k_khwarizmian }
				num_of_king_titles = 3
			}
			e_khwarizmian = {
				is_titular = no
			}
		}
	}
}

k_aktobe = {
	color = { 198 150 11 }
	color2 = { 255 255 255 }
	capital = 896
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_aktobe = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_aktobe
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = altaic
				religion_group = pagan_group
				primary_title = { title = d_aktobe }
				num_of_duke_titles = 4
			}
			k_aktobe = {
				is_titular = no
			}
		}
	}
}

e_aktobe = {
	color = { 198 150 11 }
	color2 = { 255 255 255 }
	capital = 896
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_aktobe = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_aktobe
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = altaic
				religion_group = pagan_group
				primary_title = { title = k_aktobe }
				num_of_king_titles = 3
			}
			e_aktobe = {
				is_titular = no
			}
		}
	}
}

k_merv = {
	color = { 153 201 70 }
	color2 = { 255 255 255 }
	capital = 630
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_merv = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_merv
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = iranian
				religion_group = muslim
				primary_title = { title = d_merv }
				num_of_duke_titles = 4
			}
			k_merv = {
				is_titular = no
			}
		}
	}
}

e_merv = {
	color = { 153 201 70 }
	color2 = { 255 255 255 }
	capital = 630
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_merv = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_merv
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = iranian
				religion_group = muslim
				primary_title = { title = k_merv }
				num_of_king_titles = 3
			}
			e_merv = {
				is_titular = no
			}
		}
	}
}

k_khorasan = {
	color = { 99 150 9 }
	color2 = { 255 255 255 }
	capital = 632
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_khorasan = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_khorasan
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = iranian
				religion_group = zoroastrian_group
				primary_title = { title = d_khorasan }
				num_of_duke_titles = 4
			}
			k_khorasan = {
				is_titular = no
			}
		}
	}
}

e_khorasan = {
	color = { 99 150 9 }
	color2 = { 255 255 255 }
	capital = 632
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_khorasan = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_khorasan
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = iranian
				religion_group = zoroastrian_group
				primary_title = { title = k_khorasan }
				num_of_king_titles = 3
			}
			e_khorasan = {
				is_titular = no
			}
		}
	}
}

k_mazandaran = {
	color = { 109 149 39 }
	color2 = { 255 255 255 }
	capital = 662
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_mazandaran = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_mazandaran
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = iranian
				religion_group = zoroastrian_group
				primary_title = { title = d_mazandaran }
				num_of_duke_titles = 4
			}
			k_mazandaran = {
				is_titular = no
			}
		}
	}
}

e_mazandaran = {
	color = { 109 149 39 }
	color2 = { 255 255 255 }
	capital = 662
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_mazandaran = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_mazandaran
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = iranian
				religion_group = zoroastrian_group
				primary_title = { title = k_mazandaran }
				num_of_king_titles = 3
			}
			e_mazandaran = {
				is_titular = no
			}
		}
	}
}

k_esfahan = {
	color = { 142 176 84 }
	color2 = { 255 255 255 }
	capital = 646
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_esfahan = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_esfahan
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = iranian
				religion_group = muslim
				primary_title = { title = d_esfahan }
				num_of_duke_titles = 4
			}
			k_esfahan = {
				is_titular = no
			}
		}
	}
}

e_esfahan = {
	color = { 142 176 84 }
	color2 = { 255 255 255 }
	capital = 646
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_esfahan = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_esfahan
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = iranian
				religion_group = muslim
				primary_title = { title = k_esfahan }
				num_of_king_titles = 3
			}
			e_esfahan = {
				is_titular = no
			}
		}
	}
}

k_hormuz = {
	color = { 98 118 63 }
	color2 = { 255 255 255 }
	capital = 641
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_hormuz = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_hormuz
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = iranian
				religion_group = muslim
				primary_title = { title = d_hormuz }
				num_of_duke_titles = 4
			}
			k_hormuz = {
				is_titular = no
			}
		}
	}
}

e_hormuz = {
	color = { 98 118 63 }
	color2 = { 255 255 255 }
	capital = 641
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_hormuz = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_hormuz
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = iranian
				religion_group = muslim
				primary_title = { title = k_hormuz }
				num_of_king_titles = 3
			}
			e_hormuz = {
				is_titular = no
			}
		}
	}
}

k_fars = {
	color = { 89 128 22 }
	color2 = { 255 255 255 }
	capital = 643
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_fars = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_fars
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = iranian
				religion_group = muslim
				primary_title = { title = d_fars }
				num_of_duke_titles = 4
			}
			k_fars = {
				is_titular = no
			}
		}
	}
}

e_fars = {
	color = { 89 128 22 }
	color2 = { 255 255 255 }
	capital = 643
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_fars = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_fars
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = iranian
				religion_group = muslim
				primary_title = { title = k_fars }
				num_of_king_titles = 3
			}
			e_fars = {
				is_titular = no
			}
		}
	}
}

k_hamadan = {
	color = { 184 225 112 }
	color2 = { 255 255 255 }
	capital = 658
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_hamadan = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_hamadan
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = iranian
				religion_group = muslim
				primary_title = { title = d_hamadan }
				num_of_duke_titles = 4
			}
			k_hamadan = {
				is_titular = no
			}
		}
	}
}

e_hamadan = {
	color = { 184 225 112 }
	color2 = { 255 255 255 }
	capital = 658
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_hamadan = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_hamadan
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = iranian
				religion_group = muslim
				primary_title = { title = k_hamadan }
				num_of_king_titles = 3
			}
			e_hamadan = {
				is_titular = no
			}
		}
	}
}

k_birjand = {
	color = { 136 169 80 }
	color2 = { 255 255 255 }
	capital = 906
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_birjand = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_birjand
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = iranian
				religion_group = muslim
				primary_title = { title = d_birjand }
				num_of_duke_titles = 4
			}
			k_birjand = {
				is_titular = no
			}
		}
	}
}

e_birjand = {
	color = { 136 169 80 }
	color2 = { 255 255 255 }
	capital = 906
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_birjand = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_birjand
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = iranian
				religion_group = muslim
				primary_title = { title = k_birjand }
				num_of_king_titles = 3
			}
			e_birjand = {
				is_titular = no
			}
		}
	}
}

k_khiva = {
	color = { 185 210 142 }
	color2 = { 255 255 255 }
	capital = 903
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_khiva = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_khiva
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = iranian
				religion_group = muslim
				primary_title = { title = d_khiva }
				num_of_duke_titles = 4
			}
			k_khiva = {
				is_titular = no
			}
		}
	}
}

e_khiva = {
	color = { 185 210 142 }
	color2 = { 255 255 255 }
	capital = 903
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_khiva = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_khiva
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = iranian
				religion_group = muslim
				primary_title = { title = k_khiva }
				num_of_king_titles = 3
			}
			e_khiva = {
				is_titular = no
			}
		}
	}
}

k_bukhara = {
	color = { 163 241 28 }
	color2 = { 255 255 255 }
	capital = 628
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_bukhara = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_bukhara
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = iranian
				religion_group = zoroastrian_group
				primary_title = { title = d_bukhara }
				num_of_duke_titles = 4
			}
			k_bukhara = {
				is_titular = no
			}
		}
	}
}

e_bukhara = {
	color = { 163 241 28 }
	color2 = { 255 255 255 }
	capital = 628
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_bukhara = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_bukhara
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = iranian
				religion_group = zoroastrian_group
				primary_title = { title = k_bukhara }
				num_of_king_titles = 3
			}
			e_bukhara = {
				is_titular = no
			}
		}
	}
}

k_kermanshah = {
	color = { 68 174 105 }
	color2 = { 255 255 255 }
	capital = 657
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_kermanshah = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_kermanshah
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = iranian
				religion_group = muslim
				primary_title = { title = d_kermanshah }
				num_of_duke_titles = 4
			}
			k_kermanshah = {
				is_titular = no
			}
		}
	}
}

e_kermanshah = {
	color = { 68 174 105 }
	color2 = { 255 255 255 }
	capital = 657
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_kermanshah = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_kermanshah
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = iranian
				religion_group = muslim
				primary_title = { title = k_kermanshah }
				num_of_king_titles = 3
			}
			e_kermanshah = {
				is_titular = no
			}
		}
	}
}

k_tigris = {
	color = { 113 150 32 }
	color2 = { 255 255 255 }
	capital = 656
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_tigris = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_tigris
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = arabic
				religion_group = muslim
				primary_title = { title = d_tigris }
				num_of_duke_titles = 4
			}
			k_tigris = {
				is_titular = no
			}
		}
	}
}

e_tigris = {
	color = { 113 150 32 }
	color2 = { 255 255 255 }
	capital = 656
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_tigris = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_tigris
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = arabic
				religion_group = muslim
				primary_title = { title = k_tigris }
				num_of_king_titles = 3
			}
			e_tigris = {
				is_titular = no
			}
		}
	}
}

k_basra = {
	color = { 6 150 2 }
	color2 = { 255 255 255 }
	capital = 649
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_basra = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_basra
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = arabic
				religion_group = muslim
				primary_title = { title = d_basra }
				num_of_duke_titles = 4
			}
			k_basra = {
				is_titular = no
			}
		}
	}
}

e_basra = {
	color = { 6 150 2 }
	color2 = { 255 255 255 }
	capital = 649
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_basra = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_basra
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = arabic
				religion_group = muslim
				primary_title = { title = k_basra }
				num_of_king_titles = 3
			}
			e_basra = {
				is_titular = no
			}
		}
	}
}

k_baghdad = {
	color = { 6 100 2 }
	color2 = { 255 255 255 }
	capital = 693
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_baghdad = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_baghdad
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = arabic
				religion_group = muslim
				primary_title = { title = d_baghdad }
				num_of_duke_titles = 4
			}
			k_baghdad = {
				is_titular = no
			}
		}
	}
}

e_baghdad = {
	color = { 6 100 2 }
	color2 = { 255 255 255 }
	capital = 693
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_baghdad = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_baghdad
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = arabic
				religion_group = muslim
				primary_title = { title = k_baghdad }
				num_of_king_titles = 3
			}
			e_baghdad = {
				is_titular = no
			}
		}
	}
}

k_mosul = {
	color = { 49 181 44 }
	color2 = { 255 255 255 }
	capital = 697
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_mosul = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_mosul
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = iranian
				religion_group = muslim
				primary_title = { title = d_mosul }
				num_of_duke_titles = 4
			}
			k_mosul = {
				is_titular = no
			}
		}
	}
}

e_mosul = {
	color = { 49 181 44 }
	color2 = { 255 255 255 }
	capital = 697
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_mosul = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_mosul
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = iranian
				religion_group = muslim
				primary_title = { title = k_mosul }
				num_of_king_titles = 3
			}
			e_mosul = {
				is_titular = no
			}
		}
	}
}

k_tabriz = {
	color = { 60 140 60 }
	color2 = { 255 255 255 }
	capital = 666
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_tabriz = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_tabriz
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = iranian
				religion_group = muslim
				primary_title = { title = d_tabriz }
				num_of_duke_titles = 4
			}
			k_tabriz = {
				is_titular = no
			}
		}
	}
}

e_tabriz = {
	color = { 60 140 60 }
	color2 = { 255 255 255 }
	capital = 666
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_tabriz = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_tabriz
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = iranian
				religion_group = muslim
				primary_title = { title = k_tabriz }
				num_of_king_titles = 3
			}
			e_tabriz = {
				is_titular = no
			}
		}
	}
}

k_kartli = {
	color = { 234 119 119 }
	color2 = { 255 255 255 }
	capital = 679
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_kartli = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_kartli
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = byzantine
				religion_group = christian
				primary_title = { title = d_kartli }
				num_of_duke_titles = 4
			}
			k_kartli = {
				is_titular = no
			}
		}
	}
}

e_kartli = {
	color = { 234 119 119 }
	color2 = { 255 255 255 }
	capital = 679
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_kartli = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_kartli
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = byzantine
				religion_group = christian
				primary_title = { title = k_kartli }
				num_of_king_titles = 3
			}
			e_kartli = {
				is_titular = no
			}
		}
	}
}

k_derbent = {
	color = { 203 76 76 }
	color2 = { 255 255 255 }
	capital = 674
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_derbent = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_derbent
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = byzantine
				religion_group = christian
				primary_title = { title = d_derbent }
				num_of_duke_titles = 4
			}
			k_derbent = {
				is_titular = no
			}
		}
	}
}

e_derbent = {
	color = { 203 76 76 }
	color2 = { 255 255 255 }
	capital = 674
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_derbent = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_derbent
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = byzantine
				religion_group = christian
				primary_title = { title = k_derbent }
				num_of_king_titles = 3
			}
			e_derbent = {
				is_titular = no
			}
		}
	}
}

k_abkhazia = {
	color = { 255 173 196 }
	color2 = { 255 255 255 }
	capital = 601
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_abkhazia = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_abkhazia
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = byzantine
				religion_group = christian
				primary_title = { title = d_abkhazia }
				num_of_duke_titles = 4
			}
			k_abkhazia = {
				is_titular = no
			}
		}
	}
}

e_abkhazia = {
	color = { 255 173 196 }
	color2 = { 255 255 255 }
	capital = 601
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_abkhazia = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_abkhazia
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = byzantine
				religion_group = christian
				primary_title = { title = k_abkhazia }
				num_of_king_titles = 3
			}
			e_abkhazia = {
				is_titular = no
			}
		}
	}
}

k_pecs = {
	color = { 155 25 65 }
	color2 = { 255 255 255 }
	capital = 452
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_pecs = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_pecs
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = magyar
				religion_group = christian
				primary_title = { title = d_pecs }
				num_of_duke_titles = 4
			}
			k_pecs = {
				is_titular = no
			}
		}
	}
}

e_pecs = {
	color = { 155 25 65 }
	color2 = { 255 255 255 }
	capital = 452
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_pecs = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_pecs
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = magyar
				religion_group = christian
				primary_title = { title = k_pecs }
				num_of_king_titles = 3
			}
			e_pecs = {
				is_titular = no
			}
		}
	}
}

k_esztergom = {
	color = { 230 55 55 }
	color2 = { 255 255 255 }
	capital = 444
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_esztergom = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_esztergom
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = magyar
				religion_group = christian
				primary_title = { title = d_esztergom }
				num_of_duke_titles = 4
			}
			k_esztergom = {
				is_titular = no
			}
		}
	}
}

e_esztergom = {
	color = { 230 55 55 }
	color2 = { 255 255 255 }
	capital = 444
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_esztergom = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_esztergom
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = magyar
				religion_group = christian
				primary_title = { title = k_esztergom }
				num_of_king_titles = 3
			}
			e_esztergom = {
				is_titular = no
			}
		}
	}
}

k_nyitra = {
	color = { 190 21 21 }
	color2 = { 255 255 255 }
	capital = 443
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_nyitra = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_nyitra
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = magyar
				religion_group = christian
				primary_title = { title = d_nyitra }
				num_of_duke_titles = 4
			}
			k_nyitra = {
				is_titular = no
			}
		}
	}
}

e_nyitra = {
	color = { 190 21 21 }
	color2 = { 255 255 255 }
	capital = 443
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_nyitra = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_nyitra
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = magyar
				religion_group = christian
				primary_title = { title = k_nyitra }
				num_of_king_titles = 3
			}
			e_nyitra = {
				is_titular = no
			}
		}
	}
}

k_ungvar = {
	color = { 156 15 15 }
	color2 = { 255 255 255 }
	capital = 538
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_ungvar = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_ungvar
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = magyar
				religion_group = christian
				primary_title = { title = d_ungvar }
				num_of_duke_titles = 4
			}
			k_ungvar = {
				is_titular = no
			}
		}
	}
}

e_ungvar = {
	color = { 156 15 15 }
	color2 = { 255 255 255 }
	capital = 538
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_ungvar = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_ungvar
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = magyar
				religion_group = christian
				primary_title = { title = k_ungvar }
				num_of_king_titles = 3
			}
			e_ungvar = {
				is_titular = no
			}
		}
	}
}

k_pest = {
	color = { 150 51 51 }
	color2 = { 255 255 255 }
	capital = 522
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_pest = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_pest
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = magyar
				religion_group = christian
				primary_title = { title = d_pest }
				num_of_duke_titles = 4
			}
			k_pest = {
				is_titular = no
			}
		}
	}
}

e_pest = {
	color = { 150 51 51 }
	color2 = { 255 255 255 }
	capital = 522
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_pest = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_pest
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = magyar
				religion_group = christian
				primary_title = { title = k_pest }
				num_of_king_titles = 3
			}
			e_pest = {
				is_titular = no
			}
		}
	}
}

k_transylvania = {
	color = { 255 150 150 }
	color2 = { 255 255 255 }
	capital = 519
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_transylvania = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_transylvania
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = south_slavic
				religion_group = christian
				primary_title = { title = d_transylvania }
				num_of_duke_titles = 4
			}
			k_transylvania = {
				is_titular = no
			}
		}
	}
}

e_transylvania = {
	color = { 255 150 150 }
	color2 = { 255 255 255 }
	capital = 519
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_transylvania = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_transylvania
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = south_slavic
				religion_group = christian
				primary_title = { title = k_transylvania }
				num_of_king_titles = 3
			}
			e_transylvania = {
				is_titular = no
			}
		}
	}
}

k_temes = {
	color = { 147 121 58 }
	color2 = { 255 255 255 }
	capital = 505
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_temes = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_temes
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = south_slavic
				religion_group = christian
				primary_title = { title = d_temes }
				num_of_duke_titles = 4
			}
			k_temes = {
				is_titular = no
			}
		}
	}
}

e_temes = {
	color = { 147 121 58 }
	color2 = { 255 255 255 }
	capital = 505
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_temes = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_temes
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = south_slavic
				religion_group = christian
				primary_title = { title = k_temes }
				num_of_king_titles = 3
			}
			e_temes = {
				is_titular = no
			}
		}
	}
}

k_verona = {
	color = { 170 255 170 }
	color2 = { 255 255 255 }
	capital = 319
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_verona = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_verona
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = latin
				religion_group = christian
				primary_title = { title = d_verona }
				num_of_duke_titles = 4
			}
			k_verona = {
				is_titular = no
			}
		}
	}
}

e_verona = {
	color = { 170 255 170 }
	color2 = { 255 255 255 }
	capital = 319
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_verona = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_verona
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = latin
				religion_group = christian
				primary_title = { title = k_verona }
				num_of_king_titles = 3
			}
			e_verona = {
				is_titular = no
			}
		}
	}
}

k_susa = {
	color = { 191 158 158 }
	color2 = { 255 255 255 }
	capital = 236
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_susa = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_susa
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = latin
				religion_group = christian
				primary_title = { title = d_susa }
				num_of_duke_titles = 4
			}
			k_susa = {
				is_titular = no
			}
		}
	}
}

e_susa = {
	color = { 191 158 158 }
	color2 = { 255 255 255 }
	capital = 236
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_susa = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_susa
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = latin
				religion_group = christian
				primary_title = { title = k_susa }
				num_of_king_titles = 3
			}
			e_susa = {
				is_titular = no
			}
		}
	}
}

k_lombardia = {
	color = { 200 133 222 }
	color2 = { 255 255 255 }
	capital = 235
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_lombardia = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_lombardia
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = latin
				religion_group = christian
				primary_title = { title = d_lombardia }
				num_of_duke_titles = 4
			}
			k_lombardia = {
				is_titular = no
			}
		}
	}
}

e_lombardia = {
	color = { 200 133 222 }
	color2 = { 255 255 255 }
	capital = 235
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_lombardia = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_lombardia
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = latin
				religion_group = christian
				primary_title = { title = k_lombardia }
				num_of_king_titles = 3
			}
			e_lombardia = {
				is_titular = no
			}
		}
	}
}

k_genoa = {
	color = { 244 181 140 }
	color2 = { 255 255 255 }
	capital = 233
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_genoa = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_genoa
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = latin
				religion_group = christian
				primary_title = { title = d_genoa }
				num_of_duke_titles = 4
			}
			k_genoa = {
				is_titular = no
			}
		}
	}
}

e_genoa = {
	color = { 244 181 140 }
	color2 = { 255 255 255 }
	capital = 233
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_genoa = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_genoa
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = latin
				religion_group = christian
				primary_title = { title = k_genoa }
				num_of_king_titles = 3
			}
			e_genoa = {
				is_titular = no
			}
		}
	}
}

k_modena = {
	color = { 225 180 180 }
	color2 = { 255 255 255 }
	capital = 322
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_modena = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_modena
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = latin
				religion_group = christian
				primary_title = { title = d_modena }
				num_of_duke_titles = 4
			}
			k_modena = {
				is_titular = no
			}
		}
	}
}

e_modena = {
	color = { 225 180 180 }
	color2 = { 255 255 255 }
	capital = 322
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_modena = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_modena
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = latin
				religion_group = christian
				primary_title = { title = k_modena }
				num_of_king_titles = 3
			}
			e_modena = {
				is_titular = no
			}
		}
	}
}

k_ferrara = {
	color = { 180 244 130 }
	color2 = { 255 255 255 }
	capital = 351
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_ferrara = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_ferrara
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = latin
				religion_group = christian
				primary_title = { title = d_ferrara }
				num_of_duke_titles = 4
			}
			k_ferrara = {
				is_titular = no
			}
		}
	}
}

e_ferrara = {
	color = { 180 244 130 }
	color2 = { 255 255 255 }
	capital = 351
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_ferrara = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_ferrara
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = latin
				religion_group = christian
				primary_title = { title = k_ferrara }
				num_of_king_titles = 3
			}
			e_ferrara = {
				is_titular = no
			}
		}
	}
}

k_toscana = {
	color = { 199 206 0 }
	color2 = { 255 255 255 }
	capital = 328
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_toscana = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_toscana
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = latin
				religion_group = christian
				primary_title = { title = d_toscana }
				num_of_duke_titles = 4
			}
			k_toscana = {
				is_titular = no
			}
		}
	}
}

e_toscana = {
	color = { 199 206 0 }
	color2 = { 255 255 255 }
	capital = 328
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_toscana = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_toscana
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = latin
				religion_group = christian
				primary_title = { title = k_toscana }
				num_of_king_titles = 3
			}
			e_toscana = {
				is_titular = no
			}
		}
	}
}

k_pisa = {
	color = { 196 192 140 }
	color2 = { 255 255 255 }
	capital = 327
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_pisa = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_pisa
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = latin
				religion_group = christian
				primary_title = { title = d_pisa }
				num_of_duke_titles = 4
			}
			k_pisa = {
				is_titular = no
			}
		}
	}
}

e_pisa = {
	color = { 196 192 140 }
	color2 = { 255 255 255 }
	capital = 327
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_pisa = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_pisa
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = latin
				religion_group = christian
				primary_title = { title = k_pisa }
				num_of_king_titles = 3
			}
			e_pisa = {
				is_titular = no
			}
		}
	}
}

k_ancona = {
	color = { 230 227 180 }
	color2 = { 255 255 255 }
	capital = 350
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_ancona = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_ancona
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = latin
				religion_group = christian
				primary_title = { title = d_ancona }
				num_of_duke_titles = 4
			}
			k_ancona = {
				is_titular = no
			}
		}
	}
}

e_ancona = {
	color = { 230 227 180 }
	color2 = { 255 255 255 }
	capital = 350
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_ancona = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_ancona
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = latin
				religion_group = christian
				primary_title = { title = k_ancona }
				num_of_king_titles = 3
			}
			e_ancona = {
				is_titular = no
			}
		}
	}
}

k_spoleto = {
	color = { 217 182 153 }
	color2 = { 255 255 255 }
	capital = 349
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_spoleto = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_spoleto
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = latin
				religion_group = christian
				primary_title = { title = d_spoleto }
				num_of_duke_titles = 4
			}
			k_spoleto = {
				is_titular = no
			}
		}
	}
}

e_spoleto = {
	color = { 217 182 153 }
	color2 = { 255 255 255 }
	capital = 349
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_spoleto = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_spoleto
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = latin
				religion_group = christian
				primary_title = { title = k_spoleto }
				num_of_king_titles = 3
			}
			e_spoleto = {
				is_titular = no
			}
		}
	}
}

k_latium = {
	color = { 254 245 160 }
	color2 = { 255 255 255 }
	capital = 333
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_latium = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_latium
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = latin
				religion_group = christian
				primary_title = { title = d_latium }
				num_of_duke_titles = 4
			}
			k_latium = {
				is_titular = no
			}
		}
	}
}

e_latium = {
	color = { 254 245 160 }
	color2 = { 255 255 255 }
	capital = 333
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_latium = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_latium
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = latin
				religion_group = christian
				primary_title = { title = k_latium }
				num_of_king_titles = 3
			}
			e_latium = {
				is_titular = no
			}
		}
	}
}

k_sardinia = {
	color = { 217 159 255 }
	color2 = { 255 255 255 }
	capital = 326
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_sardinia = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_sardinia
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = latin
				religion_group = christian
				primary_title = { title = d_sardinia }
				num_of_duke_titles = 4
			}
			k_sardinia = {
				is_titular = no
			}
		}
	}
}

e_sardinia = {
	color = { 217 159 255 }
	color2 = { 255 255 255 }
	capital = 326
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_sardinia = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_sardinia
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = latin
				religion_group = christian
				primary_title = { title = k_sardinia }
				num_of_king_titles = 3
			}
			e_sardinia = {
				is_titular = no
			}
		}
	}
}

k_berry = {
	color = { 24 52 226 }
	color2 = { 255 255 255 }
	capital = 140
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_berry = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_berry
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = latin
				religion_group = christian
				primary_title = { title = d_berry }
				num_of_duke_titles = 4
			}
			k_berry = {
				is_titular = no
			}
		}
	}
}

e_berry = {
	color = { 24 52 226 }
	color2 = { 255 255 255 }
	capital = 140
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_berry = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_berry
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = latin
				religion_group = christian
				primary_title = { title = k_berry }
				num_of_king_titles = 3
			}
			e_berry = {
				is_titular = no
			}
		}
	}
}

k_anjou = {
	color = { 43 24 226 }
	color2 = { 255 255 255 }
	capital = 107
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_anjou = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_anjou
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = latin
				religion_group = christian
				primary_title = { title = d_anjou }
				num_of_duke_titles = 4
			}
			k_anjou = {
				is_titular = no
			}
		}
	}
}

e_anjou = {
	color = { 43 24 226 }
	color2 = { 255 255 255 }
	capital = 107
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_anjou = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_anjou
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = latin
				religion_group = christian
				primary_title = { title = k_anjou }
				num_of_king_titles = 3
			}
			e_anjou = {
				is_titular = no
			}
		}
	}
}

k_normandy = {
	color = { 71 24 226 }
	color2 = { 255 255 255 }
	capital = 97
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_normandy = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_normandy
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = latin
				religion_group = christian
				primary_title = { title = d_normandy }
				num_of_duke_titles = 4
			}
			k_normandy = {
				is_titular = no
			}
		}
	}
}

e_normandy = {
	color = { 71 24 226 }
	color2 = { 255 255 255 }
	capital = 97
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_normandy = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_normandy
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = latin
				religion_group = christian
				primary_title = { title = k_normandy }
				num_of_king_titles = 3
			}
			e_normandy = {
				is_titular = no
			}
		}
	}
}

k_orleans = {
	color = { 126 124 226 }
	color2 = { 255 255 255 }
	capital = 138
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_orleans = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_orleans
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = latin
				religion_group = christian
				primary_title = { title = d_orleans }
				num_of_duke_titles = 4
			}
			k_orleans = {
				is_titular = no
			}
		}
	}
}

e_orleans = {
	color = { 126 124 226 }
	color2 = { 255 255 255 }
	capital = 138
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_orleans = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_orleans
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = latin
				religion_group = christian
				primary_title = { title = k_orleans }
				num_of_king_titles = 3
			}
			e_orleans = {
				is_titular = no
			}
		}
	}
}

k_champagne = {
	color = { 95 24 226 }
	color2 = { 255 255 255 }
	capital = 114
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_champagne = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_champagne
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = latin
				religion_group = christian
				primary_title = { title = d_champagne }
				num_of_duke_titles = 4
			}
			k_champagne = {
				is_titular = no
			}
		}
	}
}

e_champagne = {
	color = { 95 24 226 }
	color2 = { 255 255 255 }
	capital = 114
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_champagne = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_champagne
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = latin
				religion_group = christian
				primary_title = { title = k_champagne }
				num_of_king_titles = 3
			}
			e_champagne = {
				is_titular = no
			}
		}
	}
}

k_valois = {
	color = { 35 141 208 }
	color2 = { 255 255 255 }
	capital = 112
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_valois = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_valois
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = latin
				religion_group = christian
				primary_title = { title = d_valois }
				num_of_duke_titles = 4
			}
			k_valois = {
				is_titular = no
			}
		}
	}
}

e_valois = {
	color = { 35 141 208 }
	color2 = { 255 255 255 }
	capital = 112
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_valois = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_valois
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = latin
				religion_group = christian
				primary_title = { title = k_valois }
				num_of_king_titles = 3
			}
			e_valois = {
				is_titular = no
			}
		}
	}
}

k_toulouse = {
	color = { 10 16 243 }
	color2 = { 255 255 255 }
	capital = 214
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_toulouse = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_toulouse
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = latin
				religion_group = christian
				primary_title = { title = d_toulouse }
				num_of_duke_titles = 4
			}
			k_toulouse = {
				is_titular = no
			}
		}
	}
}

e_toulouse = {
	color = { 10 16 243 }
	color2 = { 255 255 255 }
	capital = 214
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_toulouse = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_toulouse
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = latin
				religion_group = christian
				primary_title = { title = k_toulouse }
				num_of_king_titles = 3
			}
			e_toulouse = {
				is_titular = no
			}
		}
	}
}

k_gascogne = {
	color = { 81 30 243 }
	color2 = { 255 255 255 }
	capital = 209
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_gascogne = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_gascogne
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = latin
				religion_group = christian
				primary_title = { title = d_gascogne }
				num_of_duke_titles = 4
			}
			k_gascogne = {
				is_titular = no
			}
		}
	}
}

e_gascogne = {
	color = { 81 30 243 }
	color2 = { 255 255 255 }
	capital = 209
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_gascogne = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_gascogne
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = latin
				religion_group = christian
				primary_title = { title = k_gascogne }
				num_of_king_titles = 3
			}
			e_gascogne = {
				is_titular = no
			}
		}
	}
}

k_poitou = {
	color = { 24 95 226 }
	color2 = { 255 255 255 }
	capital = 141
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_poitou = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_poitou
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = latin
				religion_group = christian
				primary_title = { title = d_poitou }
				num_of_duke_titles = 4
			}
			k_poitou = {
				is_titular = no
			}
		}
	}
}

e_poitou = {
	color = { 24 95 226 }
	color2 = { 255 255 255 }
	capital = 141
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_poitou = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_poitou
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = latin
				religion_group = christian
				primary_title = { title = k_poitou }
				num_of_king_titles = 3
			}
			e_poitou = {
				is_titular = no
			}
		}
	}
}

k_auvergne = {
	color = { 24 171 226 }
	color2 = { 255 255 255 }
	capital = 217
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_auvergne = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_auvergne
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = latin
				religion_group = christian
				primary_title = { title = d_auvergne }
				num_of_duke_titles = 4
			}
			k_auvergne = {
				is_titular = no
			}
		}
	}
}

e_auvergne = {
	color = { 24 171 226 }
	color2 = { 255 255 255 }
	capital = 217
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_auvergne = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_auvergne
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = latin
				religion_group = christian
				primary_title = { title = k_auvergne }
				num_of_king_titles = 3
			}
			e_auvergne = {
				is_titular = no
			}
		}
	}
}

k_bourbon = {
	color = { 74 133 186 }
	color2 = { 255 255 255 }
	capital = 146
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_bourbon = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_bourbon
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = latin
				religion_group = christian
				primary_title = { title = d_bourbon }
				num_of_duke_titles = 4
			}
			k_bourbon = {
				is_titular = no
			}
		}
	}
}

e_bourbon = {
	color = { 74 133 186 }
	color2 = { 255 255 255 }
	capital = 146
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_bourbon = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_bourbon
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = latin
				religion_group = christian
				primary_title = { title = k_bourbon }
				num_of_king_titles = 3
			}
			e_bourbon = {
				is_titular = no
			}
		}
	}
}

k_provence = {
	color = { 145 37 67 }
	color2 = { 255 255 255 }
	capital = 221
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_provence = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_provence
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = latin
				religion_group = christian
				primary_title = { title = d_provence }
				num_of_duke_titles = 4
			}
			k_provence = {
				is_titular = no
			}
		}
	}
}

e_provence = {
	color = { 145 37 67 }
	color2 = { 255 255 255 }
	capital = 221
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_provence = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_provence
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = latin
				religion_group = christian
				primary_title = { title = k_provence }
				num_of_king_titles = 3
			}
			e_provence = {
				is_titular = no
			}
		}
	}
}

k_savoie = {
	color = { 101 8 34 }
	color2 = { 255 255 255 }
	capital = 237
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_savoie = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_savoie
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = latin
				religion_group = christian
				primary_title = { title = d_savoie }
				num_of_duke_titles = 4
			}
			k_savoie = {
				is_titular = no
			}
		}
	}
}

e_savoie = {
	color = { 101 8 34 }
	color2 = { 255 255 255 }
	capital = 237
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_savoie = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_savoie
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = latin
				religion_group = christian
				primary_title = { title = k_savoie }
				num_of_king_titles = 3
			}
			e_savoie = {
				is_titular = no
			}
		}
	}
}

k_dauphine = {
	color = { 115 26 90 }
	color2 = { 255 255 255 }
	capital = 227
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_dauphine = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_dauphine
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = latin
				religion_group = christian
				primary_title = { title = d_dauphine }
				num_of_duke_titles = 4
			}
			k_dauphine = {
				is_titular = no
			}
		}
	}
}

e_dauphine = {
	color = { 115 26 90 }
	color2 = { 255 255 255 }
	capital = 227
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_dauphine = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_dauphine
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = latin
				religion_group = christian
				primary_title = { title = k_dauphine }
				num_of_king_titles = 3
			}
			e_dauphine = {
				is_titular = no
			}
		}
	}
}

k_upper_burgundy = {
	color = { 159 20 58 }
	color2 = { 255 255 255 }
	capital = 135
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_upper_burgundy = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_upper_burgundy
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = latin
				religion_group = christian
				primary_title = { title = d_upper_burgundy }
				num_of_duke_titles = 4
			}
			k_upper_burgundy = {
				is_titular = no
			}
		}
	}
}

e_upper_burgundy = {
	color = { 159 20 58 }
	color2 = { 255 255 255 }
	capital = 135
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_upper_burgundy = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_upper_burgundy
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = latin
				religion_group = christian
				primary_title = { title = k_upper_burgundy }
				num_of_king_titles = 3
			}
			e_upper_burgundy = {
				is_titular = no
			}
		}
	}
}

k_castilla = {
	color = { 242 196 12 }
	color2 = { 255 255 255 }
	capital = 199
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_castilla = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_castilla
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = iberian
				religion_group = christian
				primary_title = { title = d_castilla }
				num_of_duke_titles = 4
			}
			k_castilla = {
				is_titular = no
			}
		}
	}
}

e_castilla = {
	color = { 242 196 12 }
	color2 = { 255 255 255 }
	capital = 199
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_castilla = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_castilla
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = iberian
				religion_group = christian
				primary_title = { title = k_castilla }
				num_of_king_titles = 3
			}
			e_castilla = {
				is_titular = no
			}
		}
	}
}

k_barcelona = {
	color = { 166 100 72 }
	color2 = { 255 255 255 }
	capital = 204
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_barcelona = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_barcelona
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = iberian
				religion_group = christian
				primary_title = { title = d_barcelona }
				num_of_duke_titles = 4
			}
			k_barcelona = {
				is_titular = no
			}
		}
	}
}

e_barcelona = {
	color = { 166 100 72 }
	color2 = { 255 255 255 }
	capital = 204
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_barcelona = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_barcelona
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = iberian
				religion_group = christian
				primary_title = { title = k_barcelona }
				num_of_king_titles = 3
			}
			e_barcelona = {
				is_titular = no
			}
		}
	}
}

k_valencia = {
	color = { 48 167 45 }
	color2 = { 255 255 255 }
	capital = 171
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_valencia = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_valencia
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = arabic
				religion_group = muslim
				primary_title = { title = d_valencia }
				num_of_duke_titles = 4
			}
			k_valencia = {
				is_titular = no
			}
		}
	}
}

e_valencia = {
	color = { 48 167 45 }
	color2 = { 255 255 255 }
	capital = 171
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_valencia = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_valencia
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = arabic
				religion_group = muslim
				primary_title = { title = k_valencia }
				num_of_king_titles = 3
			}
			e_valencia = {
				is_titular = no
			}
		}
	}
}

k_mallorca = {
	color = { 68 126 72 }
	color2 = { 255 255 255 }
	capital = 827
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_mallorca = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_mallorca
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = arabic
				religion_group = muslim
				primary_title = { title = d_mallorca }
				num_of_duke_titles = 4
			}
			k_mallorca = {
				is_titular = no
			}
		}
	}
}

e_mallorca = {
	color = { 68 126 72 }
	color2 = { 255 255 255 }
	capital = 827
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_mallorca = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_mallorca
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = arabic
				religion_group = muslim
				primary_title = { title = k_mallorca }
				num_of_king_titles = 3
			}
			e_mallorca = {
				is_titular = no
			}
		}
	}
}

k_asturias = {
	color = { 233 188 91 }
	color2 = { 255 255 255 }
	capital = 155
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_asturias = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_asturias
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = iberian
				religion_group = christian
				primary_title = { title = d_asturias }
				num_of_duke_titles = 4
			}
			k_asturias = {
				is_titular = no
			}
		}
	}
}

e_asturias = {
	color = { 233 188 91 }
	color2 = { 255 255 255 }
	capital = 155
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_asturias = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_asturias
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = iberian
				religion_group = christian
				primary_title = { title = k_asturias }
				num_of_king_titles = 3
			}
			e_asturias = {
				is_titular = no
			}
		}
	}
}

k_galicia = {
	color = { 213 158 51 }
	color2 = { 255 255 255 }
	capital = 156
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_galicia = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_galicia
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = iberian
				religion_group = christian
				primary_title = { title = d_galicia }
				num_of_duke_titles = 4
			}
			k_galicia = {
				is_titular = no
			}
		}
	}
}

e_galicia = {
	color = { 213 158 51 }
	color2 = { 255 255 255 }
	capital = 156
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_galicia = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_galicia
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = iberian
				religion_group = christian
				primary_title = { title = k_galicia }
				num_of_king_titles = 3
			}
			e_galicia = {
				is_titular = no
			}
		}
	}
}

k_porto = {
	color = { 182 108 45 }
	color2 = { 255 255 255 }
	capital = 158
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_porto = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_porto
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = iberian
				religion_group = christian
				primary_title = { title = d_porto }
				num_of_duke_titles = 4
			}
			k_porto = {
				is_titular = no
			}
		}
	}
}

e_porto = {
	color = { 182 108 45 }
	color2 = { 255 255 255 }
	capital = 158
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_porto = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_porto
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = iberian
				religion_group = christian
				primary_title = { title = k_porto }
				num_of_king_titles = 3
			}
			e_porto = {
				is_titular = no
			}
		}
	}
}

k_beja = {
	color = { 182 98 5 }
	color2 = { 255 255 255 }
	capital = 160
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_beja = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_beja
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = iberian
				religion_group = christian
				primary_title = { title = d_beja }
				num_of_duke_titles = 4
			}
			k_beja = {
				is_titular = no
			}
		}
	}
}

e_beja = {
	color = { 182 98 5 }
	color2 = { 255 255 255 }
	capital = 160
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_beja = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_beja
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = iberian
				religion_group = christian
				primary_title = { title = k_beja }
				num_of_king_titles = 3
			}
			e_beja = {
				is_titular = no
			}
		}
	}
}

k_algarve = {
	color = { 202 88 5 }
	color2 = { 255 255 255 }
	capital = 163
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_algarve = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_algarve
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = arabic
				religion_group = muslim
				primary_title = { title = d_algarve }
				num_of_duke_titles = 4
			}
			k_algarve = {
				is_titular = no
			}
		}
	}
}

e_algarve = {
	color = { 202 88 5 }
	color2 = { 255 255 255 }
	capital = 163
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_algarve = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_algarve
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = arabic
				religion_group = muslim
				primary_title = { title = k_algarve }
				num_of_king_titles = 3
			}
			e_algarve = {
				is_titular = no
			}
		}
	}
}

k_cordoba = {
	color = { 60 180 12 }
	color2 = { 255 255 255 }
	capital = 181
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_cordoba = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_cordoba
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = arabic
				religion_group = muslim
				primary_title = { title = d_cordoba }
				num_of_duke_titles = 4
			}
			k_cordoba = {
				is_titular = no
			}
		}
	}
}

e_cordoba = {
	color = { 60 180 12 }
	color2 = { 255 255 255 }
	capital = 181
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_cordoba = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_cordoba
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = arabic
				religion_group = muslim
				primary_title = { title = k_cordoba }
				num_of_king_titles = 3
			}
			e_cordoba = {
				is_titular = no
			}
		}
	}
}

k_murcia = {
	color = { 16 229 33 }
	color2 = { 255 255 255 }
	capital = 169
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_murcia = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_murcia
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = arabic
				religion_group = muslim
				primary_title = { title = d_murcia }
				num_of_duke_titles = 4
			}
			k_murcia = {
				is_titular = no
			}
		}
	}
}

e_murcia = {
	color = { 16 229 33 }
	color2 = { 255 255 255 }
	capital = 169
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_murcia = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_murcia
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = arabic
				religion_group = muslim
				primary_title = { title = k_murcia }
				num_of_king_titles = 3
			}
			e_murcia = {
				is_titular = no
			}
		}
	}
}

k_granada = {
	color = { 40 150 40 }
	color2 = { 255 255 255 }
	capital = 180
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_granada = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_granada
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = arabic
				religion_group = muslim
				primary_title = { title = d_granada }
				num_of_duke_titles = 4
			}
			k_granada = {
				is_titular = no
			}
		}
	}
}

e_granada = {
	color = { 40 150 40 }
	color2 = { 255 255 255 }
	capital = 180
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_granada = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_granada
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = arabic
				religion_group = muslim
				primary_title = { title = k_granada }
				num_of_king_titles = 3
			}
			e_granada = {
				is_titular = no
			}
		}
	}
}

k_sevilla = {
	color = { 150 218 21 }
	color2 = { 255 255 255 }
	capital = 182
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_sevilla = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_sevilla
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = arabic
				religion_group = muslim
				primary_title = { title = d_sevilla }
				num_of_duke_titles = 4
			}
			k_sevilla = {
				is_titular = no
			}
		}
	}
}

e_sevilla = {
	color = { 150 218 21 }
	color2 = { 255 255 255 }
	capital = 182
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_sevilla = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_sevilla
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = arabic
				religion_group = muslim
				primary_title = { title = k_sevilla }
				num_of_king_titles = 3
			}
			e_sevilla = {
				is_titular = no
			}
		}
	}
}

k_badajoz = {
	color = { 138 243 51 }
	color2 = { 255 255 255 }
	capital = 184
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_badajoz = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_badajoz
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = arabic
				religion_group = muslim
				primary_title = { title = d_badajoz }
				num_of_duke_titles = 4
			}
			k_badajoz = {
				is_titular = no
			}
		}
	}
}

e_badajoz = {
	color = { 138 243 51 }
	color2 = { 255 255 255 }
	capital = 184
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_badajoz = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_badajoz
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = arabic
				religion_group = muslim
				primary_title = { title = k_badajoz }
				num_of_king_titles = 3
			}
			e_badajoz = {
				is_titular = no
			}
		}
	}
}

k_toledo = {
	color = { 212 151 12 }
	color2 = { 255 255 255 }
	capital = 197
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_toledo = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_toledo
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = arabic
				religion_group = muslim
				primary_title = { title = d_toledo }
				num_of_duke_titles = 4
			}
			k_toledo = {
				is_titular = no
			}
		}
	}
}

e_toledo = {
	color = { 212 151 12 }
	color2 = { 255 255 255 }
	capital = 197
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_toledo = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_toledo
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = arabic
				religion_group = muslim
				primary_title = { title = k_toledo }
				num_of_king_titles = 3
			}
			e_toledo = {
				is_titular = no
			}
		}
	}
}

k_arabia_petrae = {
	color = { 121 196 2 }
	color2 = { 255 255 255 }
	capital = 722
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_arabia_petrae = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_arabia_petrae
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = arabic
				religion_group = muslim
				primary_title = { title = d_arabia_petrae }
				num_of_duke_titles = 4
			}
			k_arabia_petrae = {
				is_titular = no
			}
		}
	}
}

e_arabia_petrae = {
	color = { 121 196 2 }
	color2 = { 255 255 255 }
	capital = 722
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_arabia_petrae = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_arabia_petrae
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = arabic
				religion_group = muslim
				primary_title = { title = k_arabia_petrae }
				num_of_king_titles = 3
			}
			e_arabia_petrae = {
				is_titular = no
			}
		}
	}
}

k_medina = {
	color = { 150 249 43 }
	color2 = { 255 255 255 }
	capital = 719
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_medina = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_medina
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = arabic
				religion_group = muslim
				primary_title = { title = d_medina }
				num_of_duke_titles = 4
			}
			k_medina = {
				is_titular = no
			}
		}
	}
}

e_medina = {
	color = { 150 249 43 }
	color2 = { 255 255 255 }
	capital = 719
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_medina = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_medina
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = arabic
				religion_group = muslim
				primary_title = { title = k_medina }
				num_of_king_titles = 3
			}
			e_medina = {
				is_titular = no
			}
		}
	}
}

k_sanaa = {
	color = { 63 119 0 }
	color2 = { 255 255 255 }
	capital = 860
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_sanaa = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_sanaa
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = arabic
				religion_group = muslim
				primary_title = { title = d_sanaa }
				num_of_duke_titles = 4
			}
			k_sanaa = {
				is_titular = no
			}
		}
	}
}

e_sanaa = {
	color = { 63 119 0 }
	color2 = { 255 255 255 }
	capital = 860
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_sanaa = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_sanaa
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = arabic
				religion_group = muslim
				primary_title = { title = k_sanaa }
				num_of_king_titles = 3
			}
			e_sanaa = {
				is_titular = no
			}
		}
	}
}

k_oman = {
	color = { 93 196 2 }
	color2 = { 255 255 255 }
	capital = 868
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_oman = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_oman
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = arabic
				religion_group = muslim
				primary_title = { title = d_oman }
				num_of_duke_titles = 4
			}
			k_oman = {
				is_titular = no
			}
		}
	}
}

e_oman = {
	color = { 93 196 2 }
	color2 = { 255 255 255 }
	capital = 868
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_oman = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_oman
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = arabic
				religion_group = muslim
				primary_title = { title = k_oman }
				num_of_king_titles = 3
			}
			e_oman = {
				is_titular = no
			}
		}
	}
}

k_nefoud = {
	color = { 17 228 10 }
	color2 = { 255 255 255 }
	capital = 863
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_nefoud = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_nefoud
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = arabic
				religion_group = muslim
				primary_title = { title = d_nefoud }
				num_of_duke_titles = 4
			}
			k_nefoud = {
				is_titular = no
			}
		}
	}
}

e_nefoud = {
	color = { 17 228 10 }
	color2 = { 255 255 255 }
	capital = 863
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_nefoud = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_nefoud
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = arabic
				religion_group = muslim
				primary_title = { title = k_nefoud }
				num_of_king_titles = 3
			}
			e_nefoud = {
				is_titular = no
			}
		}
	}
}

k_amman = {
	color = { 32 127 30 }
	color2 = { 255 255 255 }
	capital = 652
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_amman = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_amman
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = arabic
				religion_group = muslim
				primary_title = { title = d_amman }
				num_of_duke_titles = 4
			}
			k_amman = {
				is_titular = no
			}
		}
	}
}

e_amman = {
	color = { 32 127 30 }
	color2 = { 255 255 255 }
	capital = 652
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_amman = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_amman
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = arabic
				religion_group = muslim
				primary_title = { title = k_amman }
				num_of_king_titles = 3
			}
			e_amman = {
				is_titular = no
			}
		}
	}
}

k_alexandria = {
	color = { 100 219 134 }
	color2 = { 255 255 255 }
	capital = 802
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_alexandria = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_alexandria
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = arabic
				religion_group = christian
				primary_title = { title = d_alexandria }
				num_of_duke_titles = 4
			}
			k_alexandria = {
				is_titular = no
			}
		}
	}
}

e_alexandria = {
	color = { 100 219 134 }
	color2 = { 255 255 255 }
	capital = 802
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_alexandria = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_alexandria
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = arabic
				religion_group = christian
				primary_title = { title = k_alexandria }
				num_of_king_titles = 3
			}
			e_alexandria = {
				is_titular = no
			}
		}
	}
}

k_damietta = {
	color = { 3 255 74 }
	color2 = { 255 255 255 }
	capital = 798
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_damietta = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_damietta
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = arabic
				religion_group = muslim
				primary_title = { title = d_damietta }
				num_of_duke_titles = 4
			}
			k_damietta = {
				is_titular = no
			}
		}
	}
}

e_damietta = {
	color = { 3 255 74 }
	color2 = { 255 255 255 }
	capital = 798
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_damietta = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_damietta
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = arabic
				religion_group = muslim
				primary_title = { title = k_damietta }
				num_of_king_titles = 3
			}
			e_damietta = {
				is_titular = no
			}
		}
	}
}

k_cairo = {
	color = { 20 232 115 }
	color2 = { 255 255 255 }
	capital = 796
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_cairo = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_cairo
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = arabic
				religion_group = muslim
				primary_title = { title = d_cairo }
				num_of_duke_titles = 4
			}
			k_cairo = {
				is_titular = no
			}
		}
	}
}

e_cairo = {
	color = { 20 232 115 }
	color2 = { 255 255 255 }
	capital = 796
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_cairo = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_cairo
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = arabic
				religion_group = muslim
				primary_title = { title = k_cairo }
				num_of_king_titles = 3
			}
			e_cairo = {
				is_titular = no
			}
		}
	}
}

k_aswan = {
	color = { 41 188 120 }
	color2 = { 255 255 255 }
	capital = 794
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_aswan = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_aswan
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = arabic
				religion_group = christian
				primary_title = { title = d_aswan }
				num_of_duke_titles = 4
			}
			k_aswan = {
				is_titular = no
			}
		}
	}
}

e_aswan = {
	color = { 41 188 120 }
	color2 = { 255 255 255 }
	capital = 794
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_aswan = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_aswan
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = arabic
				religion_group = christian
				primary_title = { title = k_aswan }
				num_of_king_titles = 3
			}
			e_aswan = {
				is_titular = no
			}
		}
	}
}

k_sinai = {
	color = { 88 99 2 }
	color2 = { 255 255 255 }
	capital = 788
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_sinai = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_sinai
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = arabic
				religion_group = muslim
				primary_title = { title = d_sinai }
				num_of_duke_titles = 4
			}
			k_sinai = {
				is_titular = no
			}
		}
	}
}

e_sinai = {
	color = { 88 99 2 }
	color2 = { 255 255 255 }
	capital = 788
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_sinai = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_sinai
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = arabic
				religion_group = muslim
				primary_title = { title = k_sinai }
				num_of_king_titles = 3
			}
			e_sinai = {
				is_titular = no
			}
		}
	}
}

k_oultrejourdain = {
	color = { 159 188 41 }
	color2 = { 255 255 255 }
	capital = 723
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_oultrejourdain = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_oultrejourdain
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = arabic
				religion_group = muslim
				primary_title = { title = d_oultrejourdain }
				num_of_duke_titles = 4
			}
			k_oultrejourdain = {
				is_titular = no
			}
		}
	}
}

e_oultrejourdain = {
	color = { 159 188 41 }
	color2 = { 255 255 255 }
	capital = 723
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_oultrejourdain = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_oultrejourdain
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = arabic
				religion_group = muslim
				primary_title = { title = k_oultrejourdain }
				num_of_king_titles = 3
			}
			e_oultrejourdain = {
				is_titular = no
			}
		}
	}
}

k_ascalon = {
	color = { 99 150 32 }
	color2 = { 255 255 255 }
	capital = 780
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_ascalon = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_ascalon
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = arabic
				religion_group = muslim
				primary_title = { title = d_ascalon }
				num_of_duke_titles = 4
			}
			k_ascalon = {
				is_titular = no
			}
		}
	}
}

e_ascalon = {
	color = { 99 150 32 }
	color2 = { 255 255 255 }
	capital = 780
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_ascalon = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_ascalon
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = arabic
				religion_group = muslim
				primary_title = { title = k_ascalon }
				num_of_king_titles = 3
			}
			e_ascalon = {
				is_titular = no
			}
		}
	}
}

k_galilee = {
	color = { 2 196 61 }
	color2 = { 255 255 255 }
	capital = 771
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_galilee = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_galilee
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = arabic
				religion_group = christian
				primary_title = { title = d_galilee }
				num_of_duke_titles = 4
			}
			k_galilee = {
				is_titular = no
			}
		}
	}
}

e_galilee = {
	color = { 2 196 61 }
	color2 = { 255 255 255 }
	capital = 771
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_galilee = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_galilee
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = arabic
				religion_group = christian
				primary_title = { title = k_galilee }
				num_of_king_titles = 3
			}
			e_galilee = {
				is_titular = no
			}
		}
	}
}

k_aleppo = {
	color = { 85 232 20 }
	color2 = { 255 255 255 }
	capital = 733
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_aleppo = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_aleppo
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = arabic
				religion_group = muslim
				primary_title = { title = d_aleppo }
				num_of_duke_titles = 4
			}
			k_aleppo = {
				is_titular = no
			}
		}
	}
}

e_aleppo = {
	color = { 85 232 20 }
	color2 = { 255 255 255 }
	capital = 733
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_aleppo = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_aleppo
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = arabic
				religion_group = muslim
				primary_title = { title = k_aleppo }
				num_of_king_titles = 3
			}
			e_aleppo = {
				is_titular = no
			}
		}
	}
}

k_antioch = {
	color = { 142 63 129 }
	color2 = { 255 255 255 }
	capital = 764
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_antioch = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_antioch
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = byzantine
				religion_group = christian
				primary_title = { title = d_antioch }
				num_of_duke_titles = 4
			}
			k_antioch = {
				is_titular = no
			}
		}
	}
}

e_antioch = {
	color = { 142 63 129 }
	color2 = { 255 255 255 }
	capital = 764
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_antioch = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_antioch
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = byzantine
				religion_group = christian
				primary_title = { title = k_antioch }
				num_of_king_titles = 3
			}
			e_antioch = {
				is_titular = no
			}
		}
	}
}

k_tripoli = {
	color = { 71 150 32 }
	color2 = { 255 255 255 }
	capital = 767
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_tripoli = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_tripoli
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = arabic
				religion_group = christian
				primary_title = { title = d_tripoli }
				num_of_duke_titles = 4
			}
			k_tripoli = {
				is_titular = no
			}
		}
	}
}

e_tripoli = {
	color = { 71 150 32 }
	color2 = { 255 255 255 }
	capital = 767
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_tripoli = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_tripoli
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = arabic
				religion_group = christian
				primary_title = { title = k_tripoli }
				num_of_king_titles = 3
			}
			e_tripoli = {
				is_titular = no
			}
		}
	}
}

k_damascus = {
	color = { 122 255 3 }
	color2 = { 255 255 255 }
	capital = 728
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_damascus = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_damascus
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = arabic
				religion_group = muslim
				primary_title = { title = d_damascus }
				num_of_duke_titles = 4
			}
			k_damascus = {
				is_titular = no
			}
		}
	}
}

e_damascus = {
	color = { 122 255 3 }
	color2 = { 255 255 255 }
	capital = 728
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_damascus = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_damascus
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = arabic
				religion_group = muslim
				primary_title = { title = k_damascus }
				num_of_king_titles = 3
			}
			e_damascus = {
				is_titular = no
			}
		}
	}
}

k_marrakech = {
	color = { 43 150 32 }
	color2 = { 255 255 255 }
	capital = 843
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_marrakech = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_marrakech
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = arabic
				religion_group = muslim
				primary_title = { title = d_marrakech }
				num_of_duke_titles = 4
			}
			k_marrakech = {
				is_titular = no
			}
		}
	}
}

e_marrakech = {
	color = { 43 150 32 }
	color2 = { 255 255 255 }
	capital = 843
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_marrakech = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_marrakech
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = arabic
				religion_group = muslim
				primary_title = { title = k_marrakech }
				num_of_king_titles = 3
			}
			e_marrakech = {
				is_titular = no
			}
		}
	}
}

k_tangiers = {
	color = { 45 255 3 }
	color2 = { 255 255 255 }
	capital = 841
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_tangiers = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_tangiers
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = arabic
				religion_group = muslim
				primary_title = { title = d_tangiers }
				num_of_duke_titles = 4
			}
			k_tangiers = {
				is_titular = no
			}
		}
	}
}

e_tangiers = {
	color = { 45 255 3 }
	color2 = { 255 255 255 }
	capital = 841
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_tangiers = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_tangiers
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = arabic
				religion_group = muslim
				primary_title = { title = k_tangiers }
				num_of_king_titles = 3
			}
			e_tangiers = {
				is_titular = no
			}
		}
	}
}

k_fes = {
	color = { 20 232 55 }
	color2 = { 255 255 255 }
	capital = 840
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_fes = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_fes
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = arabic
				religion_group = muslim
				primary_title = { title = d_fes }
				num_of_duke_titles = 4
			}
			k_fes = {
				is_titular = no
			}
		}
	}
}

e_fes = {
	color = { 20 232 55 }
	color2 = { 255 255 255 }
	capital = 840
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_fes = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_fes
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = arabic
				religion_group = muslim
				primary_title = { title = k_fes }
				num_of_king_titles = 3
			}
			e_fes = {
				is_titular = no
			}
		}
	}
}

k_alger = {
	color = { 32 150 43 }
	color2 = { 255 255 255 }
	capital = 831
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_alger = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_alger
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = arabic
				religion_group = muslim
				primary_title = { title = d_alger }
				num_of_duke_titles = 4
			}
			k_alger = {
				is_titular = no
			}
		}
	}
}

e_alger = {
	color = { 32 150 43 }
	color2 = { 255 255 255 }
	capital = 831
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_alger = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_alger
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = arabic
				religion_group = muslim
				primary_title = { title = k_alger }
				num_of_king_titles = 3
			}
			e_alger = {
				is_titular = no
			}
		}
	}
}

k_tlemcen = {
	color = { 41 188 75 }
	color2 = { 255 255 255 }
	capital = 834
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_tlemcen = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_tlemcen
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = arabic
				religion_group = muslim
				primary_title = { title = d_tlemcen }
				num_of_duke_titles = 4
			}
			k_tlemcen = {
				is_titular = no
			}
		}
	}
}

e_tlemcen = {
	color = { 41 188 75 }
	color2 = { 255 255 255 }
	capital = 834
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_tlemcen = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_tlemcen
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = arabic
				religion_group = muslim
				primary_title = { title = k_tlemcen }
				num_of_king_titles = 3
			}
			e_tlemcen = {
				is_titular = no
			}
		}
	}
}

k_tunis = {
	color = { 20 232 95 }
	color2 = { 255 255 255 }
	capital = 817
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_tunis = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_tunis
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = arabic
				religion_group = muslim
				primary_title = { title = d_tunis }
				num_of_duke_titles = 4
			}
			k_tunis = {
				is_titular = no
			}
		}
	}
}

e_tunis = {
	color = { 20 232 95 }
	color2 = { 255 255 255 }
	capital = 817
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_tunis = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_tunis
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = arabic
				religion_group = muslim
				primary_title = { title = k_tunis }
				num_of_king_titles = 3
			}
			e_tunis = {
				is_titular = no
			}
		}
	}
}

k_tripolitania = {
	color = { 63 175 117 }
	color2 = { 255 255 255 }
	capital = 811
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_tripolitania = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_tripolitania
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = arabic
				religion_group = muslim
				primary_title = { title = d_tripolitania }
				num_of_duke_titles = 4
			}
			k_tripolitania = {
				is_titular = no
			}
		}
	}
}

e_tripolitania = {
	color = { 63 175 117 }
	color2 = { 255 255 255 }
	capital = 811
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_tripolitania = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_tripolitania
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = arabic
				religion_group = muslim
				primary_title = { title = k_tripolitania }
				num_of_king_titles = 3
			}
			e_tripolitania = {
				is_titular = no
			}
		}
	}
}

k_cyrenaica = {
	color = { 32 150 63 }
	color2 = { 255 255 255 }
	capital = 806
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_cyrenaica = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_cyrenaica
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = arabic
				religion_group = muslim
				primary_title = { title = d_cyrenaica }
				num_of_duke_titles = 4
			}
			k_cyrenaica = {
				is_titular = no
			}
		}
	}
}

e_cyrenaica = {
	color = { 32 150 63 }
	color2 = { 255 255 255 }
	capital = 806
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_cyrenaica = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_cyrenaica
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = arabic
				religion_group = muslim
				primary_title = { title = k_cyrenaica }
				num_of_king_titles = 3
			}
			e_cyrenaica = {
				is_titular = no
			}
		}
	}
}

k_kabylia = {
	color = { 164 247 131 }
	color2 = { 255 255 255 }
	capital = 825
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_kabylia = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_kabylia
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = arabic
				religion_group = muslim
				primary_title = { title = d_kabylia }
				num_of_duke_titles = 4
			}
			k_kabylia = {
				is_titular = no
			}
		}
	}
}

e_kabylia = {
	color = { 164 247 131 }
	color2 = { 255 255 255 }
	capital = 825
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_kabylia = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_kabylia
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = arabic
				religion_group = muslim
				primary_title = { title = k_kabylia }
				num_of_king_titles = 3
			}
			e_kabylia = {
				is_titular = no
			}
		}
	}
}

k_harer = {
	color = { 153 2 59 }
	color2 = { 255 255 255 }
	capital = 873
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_harer = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_harer
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = east_african
				religion_group = muslim
				primary_title = { title = d_harer }
				num_of_duke_titles = 4
			}
			k_harer = {
				is_titular = no
			}
		}
	}
}

e_harer = {
	color = { 153 2 59 }
	color2 = { 255 255 255 }
	capital = 873
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_harer = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_harer
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = east_african
				religion_group = muslim
				primary_title = { title = k_harer }
				num_of_king_titles = 3
			}
			e_harer = {
				is_titular = no
			}
		}
	}
}

k_axum = {
	color = { 198 30 93 }
	color2 = { 255 255 255 }
	capital = 875
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_axum = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_axum
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = east_african
				religion_group = christian
				primary_title = { title = d_axum }
				num_of_duke_titles = 4
			}
			k_axum = {
				is_titular = no
			}
		}
	}
}

e_axum = {
	color = { 198 30 93 }
	color2 = { 255 255 255 }
	capital = 875
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_axum = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_axum
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = east_african
				religion_group = christian
				primary_title = { title = k_axum }
				num_of_king_titles = 3
			}
			e_axum = {
				is_titular = no
			}
		}
	}
}

k_gondar = {
	color = { 148 59 92 }
	color2 = { 255 255 255 }
	capital = 883
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_gondar = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_gondar
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = east_african
				religion_group = christian
				primary_title = { title = d_gondar }
				num_of_duke_titles = 4
			}
			k_gondar = {
				is_titular = no
			}
		}
	}
}

e_gondar = {
	color = { 148 59 92 }
	color2 = { 255 255 255 }
	capital = 883
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_gondar = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_gondar
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = east_african
				religion_group = christian
				primary_title = { title = k_gondar }
				num_of_king_titles = 3
			}
			e_gondar = {
				is_titular = no
			}
		}
	}
}

k_northumberland = {
	color = { 255 0 0 }
	color2 = { 255 255 255 }
	capital = 52
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_northumberland = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_northumberland
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = west_germanic
				religion_group = christian
				primary_title = { title = d_northumberland }
				num_of_duke_titles = 4
			}
			k_northumberland = {
				is_titular = no
			}
		}
	}
}

e_northumberland = {
	color = { 255 0 0 }
	color2 = { 255 255 255 }
	capital = 52
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_northumberland = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_northumberland
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = west_germanic
				religion_group = christian
				primary_title = { title = k_northumberland }
				num_of_king_titles = 3
			}
			e_northumberland = {
				is_titular = no
			}
		}
	}
}

k_lancaster = {
	color = { 255 48 0 }
	color2 = { 255 255 255 }
	capital = 58
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_lancaster = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_lancaster
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = west_germanic
				religion_group = christian
				primary_title = { title = d_lancaster }
				num_of_duke_titles = 4
			}
			k_lancaster = {
				is_titular = no
			}
		}
	}
}

e_lancaster = {
	color = { 255 48 0 }
	color2 = { 255 255 255 }
	capital = 58
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_lancaster = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_lancaster
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = west_germanic
				religion_group = christian
				primary_title = { title = k_lancaster }
				num_of_king_titles = 3
			}
			e_lancaster = {
				is_titular = no
			}
		}
	}
}

k_york = {
	color = { 255 90 15 }
	color2 = { 255 255 255 }
	capital = 57
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_york = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_york
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = west_germanic
				religion_group = christian
				primary_title = { title = d_york }
				num_of_duke_titles = 4
			}
			k_york = {
				is_titular = no
			}
		}
	}
}

e_york = {
	color = { 255 90 15 }
	color2 = { 255 255 255 }
	capital = 57
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_york = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_york
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = west_germanic
				religion_group = christian
				primary_title = { title = k_york }
				num_of_king_titles = 3
			}
			e_york = {
				is_titular = no
			}
		}
	}
}

k_norfolk = {
	color = { 200 90 0 }
	color2 = { 255 255 255 }
	capital = 70
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_norfolk = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_norfolk
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = west_germanic
				religion_group = christian
				primary_title = { title = d_norfolk }
				num_of_duke_titles = 4
			}
			k_norfolk = {
				is_titular = no
			}
		}
	}
}

e_norfolk = {
	color = { 200 90 0 }
	color2 = { 255 255 255 }
	capital = 70
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_norfolk = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_norfolk
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = west_germanic
				religion_group = christian
				primary_title = { title = k_norfolk }
				num_of_king_titles = 3
			}
			e_norfolk = {
				is_titular = no
			}
		}
	}
}

k_oxford = {
	color = { 255 108 0 }
	color2 = { 255 255 255 }
	capital = 22
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_oxford = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_oxford
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = west_germanic
				religion_group = christian
				primary_title = { title = d_oxford }
				num_of_duke_titles = 4
			}
			k_oxford = {
				is_titular = no
			}
		}
	}
}

e_oxford = {
	color = { 255 108 0 }
	color2 = { 255 255 255 }
	capital = 22
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_oxford = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_oxford
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = west_germanic
				religion_group = christian
				primary_title = { title = k_oxford }
				num_of_king_titles = 3
			}
			e_oxford = {
				is_titular = no
			}
		}
	}
}

k_bedford = {
	color = { 241 15 15 }
	color2 = { 255 255 255 }
	capital = 72
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_bedford = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_bedford
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = west_germanic
				religion_group = christian
				primary_title = { title = d_bedford }
				num_of_duke_titles = 4
			}
			k_bedford = {
				is_titular = no
			}
		}
	}
}

e_bedford = {
	color = { 241 15 15 }
	color2 = { 255 255 255 }
	capital = 72
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_bedford = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_bedford
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = west_germanic
				religion_group = christian
				primary_title = { title = k_bedford }
				num_of_king_titles = 3
			}
			e_bedford = {
				is_titular = no
			}
		}
	}
}

k_hereford = {
	color = { 241 47 15 }
	color2 = { 255 255 255 }
	capital = 17
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_hereford = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_hereford
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = west_germanic
				religion_group = christian
				primary_title = { title = d_hereford }
				num_of_duke_titles = 4
			}
			k_hereford = {
				is_titular = no
			}
		}
	}
}

e_hereford = {
	color = { 241 47 15 }
	color2 = { 255 255 255 }
	capital = 17
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_hereford = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_hereford
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = west_germanic
				religion_group = christian
				primary_title = { title = k_hereford }
				num_of_king_titles = 3
			}
			e_hereford = {
				is_titular = no
			}
		}
	}
}

k_gloucester = {
	color = { 241 79 15 }
	color2 = { 255 255 255 }
	capital = 21
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_gloucester = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_gloucester
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = west_germanic
				religion_group = christian
				primary_title = { title = d_gloucester }
				num_of_duke_titles = 4
			}
			k_gloucester = {
				is_titular = no
			}
		}
	}
}

e_gloucester = {
	color = { 241 79 15 }
	color2 = { 255 255 255 }
	capital = 21
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_gloucester = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_gloucester
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = west_germanic
				religion_group = christian
				primary_title = { title = k_gloucester }
				num_of_king_titles = 3
			}
			e_gloucester = {
				is_titular = no
			}
		}
	}
}

k_canterbury = {
	color = { 241 100 15 }
	color2 = { 255 255 255 }
	capital = 73
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_canterbury = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_canterbury
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = west_germanic
				religion_group = christian
				primary_title = { title = d_canterbury }
				num_of_duke_titles = 4
			}
			k_canterbury = {
				is_titular = no
			}
		}
	}
}

e_canterbury = {
	color = { 241 100 15 }
	color2 = { 255 255 255 }
	capital = 73
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_canterbury = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_canterbury
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = west_germanic
				religion_group = christian
				primary_title = { title = k_canterbury }
				num_of_king_titles = 3
			}
			e_canterbury = {
				is_titular = no
			}
		}
	}
}

k_somerset = {
	color = { 241 15 63 }
	color2 = { 255 255 255 }
	capital = 26
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_somerset = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_somerset
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = west_germanic
				religion_group = christian
				primary_title = { title = d_somerset }
				num_of_duke_titles = 4
			}
			k_somerset = {
				is_titular = no
			}
		}
	}
}

e_somerset = {
	color = { 241 15 63 }
	color2 = { 255 255 255 }
	capital = 26
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_somerset = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_somerset
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = west_germanic
				religion_group = christian
				primary_title = { title = k_somerset }
				num_of_king_titles = 3
			}
			e_somerset = {
				is_titular = no
			}
		}
	}
}

k_gwynedd = {
	color = { 172 99 22 }
	color2 = { 255 255 255 }
	capital = 64
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_gwynedd = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_gwynedd
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = celtic
				religion_group = christian
				primary_title = { title = d_gwynedd }
				num_of_duke_titles = 4
			}
			k_gwynedd = {
				is_titular = no
			}
		}
	}
}

e_gwynedd = {
	color = { 172 99 22 }
	color2 = { 255 255 255 }
	capital = 64
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_gwynedd = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_gwynedd
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = celtic
				religion_group = christian
				primary_title = { title = k_gwynedd }
				num_of_king_titles = 3
			}
			e_gwynedd = {
				is_titular = no
			}
		}
	}
}

k_deheubarth = {
	color = { 125 51 3 }
	color2 = { 255 255 255 }
	capital = 18
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_deheubarth = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_deheubarth
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = celtic
				religion_group = christian
				primary_title = { title = d_deheubarth }
				num_of_duke_titles = 4
			}
			k_deheubarth = {
				is_titular = no
			}
		}
	}
}

e_deheubarth = {
	color = { 125 51 3 }
	color2 = { 255 255 255 }
	capital = 18
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_deheubarth = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_deheubarth
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = celtic
				religion_group = christian
				primary_title = { title = k_deheubarth }
				num_of_king_titles = 3
			}
			e_deheubarth = {
				is_titular = no
			}
		}
	}
}

k_cornwall = {
	color = { 251 15 15 }
	color2 = { 255 255 255 }
	capital = 31
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_cornwall = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_cornwall
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = celtic
				religion_group = christian
				primary_title = { title = d_cornwall }
				num_of_duke_titles = 4
			}
			k_cornwall = {
				is_titular = no
			}
		}
	}
}

e_cornwall = {
	color = { 251 15 15 }
	color2 = { 255 255 255 }
	capital = 31
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_cornwall = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_cornwall
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = celtic
				religion_group = christian
				primary_title = { title = k_cornwall }
				num_of_king_titles = 3
			}
			e_cornwall = {
				is_titular = no
			}
		}
	}
}

k_galloway = {
	color = { 77 116 208 }
	color2 = { 255 255 255 }
	capital = 50
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_galloway = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_galloway
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = celtic
				religion_group = christian
				primary_title = { title = d_galloway }
				num_of_duke_titles = 4
			}
			k_galloway = {
				is_titular = no
			}
		}
	}
}

e_galloway = {
	color = { 77 116 208 }
	color2 = { 255 255 255 }
	capital = 50
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_galloway = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_galloway
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = celtic
				religion_group = christian
				primary_title = { title = k_galloway }
				num_of_king_titles = 3
			}
			e_galloway = {
				is_titular = no
			}
		}
	}
}

k_western_isles = {
	color = { 6 42 127 }
	capital = 35
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_western_isles = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_western_isles
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = north_germanic
				religion_group = christian
				primary_title = { title = d_western_isles }
				num_of_duke_titles = 4
			}
			k_western_isles = {
				is_titular = no
			}
		}
	}
}

e_western_isles = {
	color = { 6 42 127 }
	capital = 35
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_western_isles = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_western_isles
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = north_germanic
				religion_group = christian
				primary_title = { title = k_western_isles }
				num_of_king_titles = 3
			}
			e_western_isles = {
				is_titular = no
			}
		}
	}
}

k_lothian = {
	color = { 10 164 243 }
	color2 = { 255 255 255 }
	capital = 48
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_lothian = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_lothian
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = west_germanic
				religion_group = christian
				primary_title = { title = d_lothian }
				num_of_duke_titles = 4
			}
			k_lothian = {
				is_titular = no
			}
		}
	}
}

e_lothian = {
	color = { 10 164 243 }
	color2 = { 255 255 255 }
	capital = 48
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_lothian = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_lothian
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = west_germanic
				religion_group = christian
				primary_title = { title = k_lothian }
				num_of_king_titles = 3
			}
			e_lothian = {
				is_titular = no
			}
		}
	}
}

k_albany = {
	color = { 10 209 243 }
	color2 = { 255 255 255 }
	capital = 43
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_albany = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_albany
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = celtic
				religion_group = christian
				primary_title = { title = d_albany }
				num_of_duke_titles = 4
			}
			k_albany = {
				is_titular = no
			}
		}
	}
}

e_albany = {
	color = { 10 209 243 }
	color2 = { 255 255 255 }
	capital = 43
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_albany = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_albany
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = celtic
				religion_group = christian
				primary_title = { title = k_albany }
				num_of_king_titles = 3
			}
			e_albany = {
				is_titular = no
			}
		}
	}
}

k_moray = {
	color = { 10 81 243 }
	color2 = { 255 255 255 }
	capital = 40
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_moray = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_moray
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = celtic
				religion_group = christian
				primary_title = { title = d_moray }
				num_of_duke_titles = 4
			}
			k_moray = {
				is_titular = no
			}
		}
	}
}

e_moray = {
	color = { 10 81 243 }
	color2 = { 255 255 255 }
	capital = 40
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_moray = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_moray
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = celtic
				religion_group = christian
				primary_title = { title = k_moray }
				num_of_king_titles = 3
			}
			e_moray = {
				is_titular = no
			}
		}
	}
}

k_ulster = {
	color = { 5 222 31 }
	color2 = { 255 255 255 }
	capital = 5
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_ulster = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_ulster
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = celtic
				religion_group = christian
				primary_title = { title = d_ulster }
				num_of_duke_titles = 4
			}
			k_ulster = {
				is_titular = no
			}
		}
	}
}

e_ulster = {
	color = { 5 222 31 }
	color2 = { 255 255 255 }
	capital = 5
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_ulster = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_ulster
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = celtic
				religion_group = christian
				primary_title = { title = k_ulster }
				num_of_king_titles = 3
			}
			e_ulster = {
				is_titular = no
			}
		}
	}
}

k_connacht = {
	color = { 73 229 56 }
	color2 = { 255 255 255 }
	capital = 9
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_connacht = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_connacht
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = celtic
				religion_group = christian
				primary_title = { title = d_connacht }
				num_of_duke_titles = 4
			}
			k_connacht = {
				is_titular = no
			}
		}
	}
}

e_connacht = {
	color = { 73 229 56 }
	color2 = { 255 255 255 }
	capital = 9
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_connacht = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_connacht
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = celtic
				religion_group = christian
				primary_title = { title = k_connacht }
				num_of_king_titles = 3
			}
			e_connacht = {
				is_titular = no
			}
		}
	}
}

k_meath = {
	color = { 49 249 72 }
	color2 = { 255 255 255 }
	capital = 11
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_meath = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_meath
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = north_germanic
				religion_group = christian
				primary_title = { title = d_meath }
				num_of_duke_titles = 4
			}
			k_meath = {
				is_titular = no
			}
		}
	}
}

e_meath = {
	color = { 49 249 72 }
	color2 = { 255 255 255 }
	capital = 11
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_meath = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_meath
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = north_germanic
				religion_group = christian
				primary_title = { title = k_meath }
				num_of_king_titles = 3
			}
			e_meath = {
				is_titular = no
			}
		}
	}
}

k_leinster = {
	color = { 85 211 27 }
	color2 = { 255 255 255 }
	capital = 16
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_leinster = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_leinster
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = celtic
				religion_group = christian
				primary_title = { title = d_leinster }
				num_of_duke_titles = 4
			}
			k_leinster = {
				is_titular = no
			}
		}
	}
}

e_leinster = {
	color = { 85 211 27 }
	color2 = { 255 255 255 }
	capital = 16
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_leinster = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_leinster
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = celtic
				religion_group = christian
				primary_title = { title = k_leinster }
				num_of_king_titles = 3
			}
			e_leinster = {
				is_titular = no
			}
		}
	}
}

k_munster = {
	color = { 16 157 12 }
	color2 = { 255 255 255 }
	capital = 13
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_munster = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_munster
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = celtic
				religion_group = christian
				primary_title = { title = d_munster }
				num_of_duke_titles = 4
			}
			k_munster = {
				is_titular = no
			}
		}
	}
}

e_munster = {
	color = { 16 157 12 }
	color2 = { 255 255 255 }
	capital = 13
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_munster = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_munster
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = celtic
				religion_group = christian
				primary_title = { title = k_munster }
				num_of_king_titles = 3
			}
			e_munster = {
				is_titular = no
			}
		}
	}
}

k_timbuktu = {
	color = { 130 180 61 }
	color2 = { 255 255 255 }
	capital = 911
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_timbuktu = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_timbuktu
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = west_african
				religion_group = muslim
				primary_title = { title = d_timbuktu }
				num_of_duke_titles = 4
			}
			k_timbuktu = {
				is_titular = no
			}
		}
	}
}

e_timbuktu = {
	color = { 130 180 61 }
	color2 = { 255 255 255 }
	capital = 911
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_timbuktu = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_timbuktu
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = west_african
				religion_group = muslim
				primary_title = { title = k_timbuktu }
				num_of_king_titles = 3
			}
			e_timbuktu = {
				is_titular = no
			}
		}
	}
}

k_ghana = {
	color = { 90 130 30 }
	color2 = { 255 255 255 }
	capital = 913
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_ghana = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_ghana
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = west_african
				religion_group = pagan_group
				primary_title = { title = d_ghana }
				num_of_duke_titles = 4
			}
			k_ghana = {
				is_titular = no
			}
		}
	}
}

e_ghana = {
	color = { 90 130 30 }
	color2 = { 255 255 255 }
	capital = 913
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_ghana = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_ghana
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = west_african
				religion_group = pagan_group
				primary_title = { title = k_ghana }
				num_of_king_titles = 3
			}
			e_ghana = {
				is_titular = no
			}
		}
	}
}

k_songhay = {
	color = { 80 120 70 }
	color2 = { 255 255 255 }
	capital = 914
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_songhay = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_songhay
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = west_african
				religion_group = muslim
				primary_title = { title = d_songhay }
				num_of_duke_titles = 4
			}
			k_songhay = {
				is_titular = no
			}
		}
	}
}

e_songhay = {
	color = { 80 120 70 }
	color2 = { 255 255 255 }
	capital = 914
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_songhay = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_songhay
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = west_african
				religion_group = muslim
				primary_title = { title = k_songhay }
				num_of_king_titles = 3
			}
			e_songhay = {
				is_titular = no
			}
		}
	}
}

k_curonian = {
	color = { 141 55 29 }
	capital = 373
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_curonian = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_curonian
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = baltic
				primary_title = { title = d_curonian }
				num_of_duke_titles = 4
			}
			k_curonian = {
				is_titular = no
			}
		}
	}
}

e_curonian = {
	color = { 141 55 29 }
	capital = 373
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_curonian = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_curonian
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = baltic
				primary_title = { title = k_curonian }
				num_of_king_titles = 3
			}
			e_curonian = {
				is_titular = no
			}
		}
	}
}

k_estonia = {
	color = { 94 60 22 }
	capital = 378
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_estonia = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_estonia
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = finno_ugric
				primary_title = { title = d_estonia }
				num_of_duke_titles = 4
			}
			k_estonia = {
				is_titular = no
			}
		}
	}
}

e_estonia = {
	color = { 94 60 22 }
	capital = 378
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_estonia = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_estonia
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = finno_ugric
				primary_title = { title = k_estonia }
				num_of_king_titles = 3
			}
			e_estonia = {
				is_titular = no
			}
		}
	}
}

k_pruthenians = {
	color = { 159 195 75 }
	capital = 370
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_pruthenians = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_pruthenians
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = baltic
				primary_title = { title = d_pruthenians }
				num_of_duke_titles = 4
			}
			k_pruthenians = {
				is_titular = no
			}
		}
	}
}

e_pruthenians = {
	color = { 159 195 75 }
	capital = 370
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_pruthenians = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_pruthenians
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = baltic
				primary_title = { title = k_pruthenians }
				num_of_king_titles = 3
			}
			e_pruthenians = {
				is_titular = no
			}
		}
	}
}

e_frisia = {
	color = { 245 100 20 }
	color2 = { 220 220 20 }
	capital = 80
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_frisia = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_frisia
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = west_germanic
				religion_group = christian
				primary_title = { title = k_frisia }
				num_of_king_titles = 3
			}
			e_frisia = {
				is_titular = no
			}
		}
	}
}

e_lotharingia = {
	color = { 144 80 60 }
	color2 = { 220 220 20 }
	capital = 115
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_lotharingia = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_lotharingia
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = central_germanic
				religion_group = christian
				primary_title = { title = k_lotharingia }
				num_of_king_titles = 3
			}
			e_lotharingia = {
				is_titular = no
			}
		}
	}
}

e_pomerania = {
	color = { 145 130 40 }
	color2 = { 220 220 20 }
	capital = 366
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_pomerania = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_pomerania
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = west_slavic
				religion_group = pagan_group
				primary_title = { title = k_pomerania }
				num_of_king_titles = 3
			}
			e_pomerania = {
				is_titular = no
			}
		}
	}
}

e_bavaria = {
	color = { 91 91 102 }
	color2 = { 220 220 20 }
	capital = 360
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_bavaria = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_bavaria
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = central_germanic
				religion_group = christian
				primary_title = { title = k_bavaria }
				num_of_king_titles = 3
			}
			e_bavaria = {
				is_titular = no
			}
		}
	}
}

e_germany = {
	color = { 160 160 160 }
	color2 = { 220 220 20 }
	capital = 121
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_germany = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_germany
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = central_germanic
				religion_group = christian
				primary_title = { title = k_germany }
				num_of_king_titles = 3
			}
			e_germany = {
				is_titular = no
			}
		}
	}
}

e_bohemia = {
	color = { 176 110 32 }
	color2 = { 255 255 255 }
	capital = 437
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_bohemia = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_bohemia
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = west_slavic
				religion_group = christian
				primary_title = { title = k_bohemia }
				num_of_king_titles = 3
			}
			e_bohemia = {
				is_titular = no
			}
		}
	}
}

e_anatolia = {
	color = { 177 60 100 }
	color2 = { 255 255 23 }
	capital = 759
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_anatolia = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_anatolia
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = byzantine
				religion_group = christian
				primary_title = { title = k_anatolia }
				num_of_king_titles = 3
			}
			e_anatolia = {
				is_titular = no
			}
		}
	}
}

e_armenia = {
	color = { 140 41 171 }
	color2 = { 255 255 255 }
	capital = 681
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_armenia = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_armenia
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = byzantine
				religion_group = muslim
				primary_title = { title = k_armenia }
				num_of_king_titles = 3
			}
			e_armenia = {
				is_titular = no
			}
		}
	}
}

e_bulgaria = {
	color = { 113 88 101 }
	color2 = { 255 255 255 }
	capital = 499
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_bulgaria = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_bulgaria
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = south_slavic
				religion_group = christian
				primary_title = { title = k_bulgaria }
				num_of_king_titles = 3
			}
			e_bulgaria = {
				is_titular = no
			}
		}
	}
}

e_dacia = {
	color = { 220 132 40 }
	color2 = { 255 255 255 }
	capital = 515
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_dacia = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_dacia
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = south_slavic
				religion_group = christian
				primary_title = { title = k_dacia }
				num_of_king_titles = 3
			}
			e_dacia = {
				is_titular = no
			}
		}
	}
}

e_serbia = {
	color = { 113 98 61 }
	color2 = { 255 255 255 }
	capital = 502
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_serbia = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_serbia
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = south_slavic
				religion_group = christian
				primary_title = { title = k_serbia }
				num_of_king_titles = 3
			}
			e_serbia = {
				is_titular = no
			}
		}
	}
}

e_croatia = {
	color = { 122 46 58 }
	color2 = { 200 0 0 }
	capital = 465
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_croatia = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_croatia
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = south_slavic
				religion_group = christian
				primary_title = { title = k_croatia }
				num_of_king_titles = 3
			}
			e_croatia = {
				is_titular = no
			}
		}
	}
}

e_sicily = {
	color = { 175 244 86 }
	color2 = { 255 255 255 }
	capital = 334
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_sicily = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_sicily
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = latin
				religion_group = christian
				primary_title = { title = k_sicily }
				num_of_king_titles = 3
			}
			e_sicily = {
				is_titular = no
			}
		}
	}
}

e_sweden = {
	color = { 55 112 170 }
	color2 = { 255 255 0 }
	capital = 290
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_sweden = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_sweden
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = north_germanic
				religion_group = pagan_group
				primary_title = { title = k_sweden }
				num_of_king_titles = 3
			}
			e_sweden = {
				is_titular = no
			}
		}
	}
}

e_denmark = {
	color = { 247 77 54 }
	color2 = { 136 157 23 }
	capital = 266
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_denmark = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_denmark
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = north_germanic
				religion_group = christian
				primary_title = { title = k_denmark }
				num_of_king_titles = 3
			}
			e_denmark = {
				is_titular = no
			}
		}
	}
}

e_norway = {
	color = { 170 170 210 }
	color2 = { 220 220 220 }
	capital = 274
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_norway = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_norway
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = north_germanic
				religion_group = christian
				primary_title = { title = k_norway }
				num_of_king_titles = 3
			}
			e_norway = {
				is_titular = no
			}
		}
	}
}

e_finland = {
	color = { 140 65 65 }
	color2 = { 255 255 255 }
	capital = 381
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_finland = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_finland
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = finno_ugric
				religion_group = pagan_group
				primary_title = { title = k_finland }
				num_of_king_titles = 3
			}
			e_finland = {
				is_titular = no
			}
		}
	}
}

e_poland = {
	color = { 150 23 23 }
	color2 = { 200 0 0 }
	capital = 527
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_poland = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_poland
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = west_slavic
				religion_group = christian
				primary_title = { title = k_poland }
				num_of_king_titles = 3
			}
			e_poland = {
				is_titular = no
			}
		}
	}
}

e_lithuania = {
	color = { 75 125 6 }
	color2 = { 255 255 255 }
	capital = 420
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_lithuania = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_lithuania
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = baltic
				religion_group = pagan_group
				primary_title = { title = k_lithuania }
				num_of_king_titles = 3
			}
			e_lithuania = {
				is_titular = no
			}
		}
	}
}

e_rus = {
	color = { 87 144 50 }
	color2 = { 255 255 255 }
	capital = 414
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_rus = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_rus
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = east_slavic
				religion_group = christian
				primary_title = { title = k_rus }
				num_of_king_titles = 3
			}
			e_rus = {
				is_titular = no
			}
		}
	}
}

e_ruthenia = {
	color = { 147 164 104 }
	color2 = { 255 255 255 }
	capital = 547
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_ruthenia = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_ruthenia
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = east_slavic
				religion_group = christian
				primary_title = { title = k_ruthenia }
				num_of_king_titles = 3
			}
			e_ruthenia = {
				is_titular = no
			}
		}
	}
}

e_volga_bulgaria = {
	color = { 180 150 55 }
	color2 = { 255 255 255 }
	capital = 610
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_volga_bulgaria = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_volga_bulgaria
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = altaic
				religion_group = muslim
				primary_title = { title = k_volga_bulgaria }
				num_of_king_titles = 3
			}
			e_volga_bulgaria = {
				is_titular = no
			}
		}
	}
}

e_perm = {
	color = { 204 188 127 }
	color2 = { 255 255 255 }
	capital = 886
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_perm = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_perm
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = finno_ugric
				religion_group = pagan_group
				primary_title = { title = k_perm }
				num_of_king_titles = 3
			}
			e_perm = {
				is_titular = no
			}
		}
	}
}

e_cuman = {
	color = { 231 192 88 }
	color2 = { 255 255 255 }
	capital = 594
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_cuman = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_cuman
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = altaic
				religion_group = pagan_group
				primary_title = { title = k_cuman }
				num_of_king_titles = 3
			}
			e_cuman = {
				is_titular = no
			}
		}
	}
}

e_taurica = {
	color = { 188 91 154 }
	color2 = { 255 255 20 }
	capital = 560
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_taurica = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_taurica
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = byzantine
				religion_group = christian
				primary_title = { title = k_taurica }
				num_of_king_titles = 3
			}
			e_taurica = {
				is_titular = no
			}
		}
	}
}

e_alania = {
	color = { 155 110 48 }
	color2 = { 255 255 255 }
	capital = 603
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_alania = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_alania
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = byzantine
				religion_group = christian
				primary_title = { title = k_alania }
				num_of_king_titles = 3
			}
			e_alania = {
				is_titular = no
			}
		}
	}
}

e_khwarizm = {
	color = { 204 150 21 }
	color2 = { 255 255 255 }
	capital = 623
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_khwarizm = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_khwarizm
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = iranian
				religion_group = zoroastrian_group
				primary_title = { title = k_khwarizm }
				num_of_king_titles = 3
			}
			e_khwarizm = {
				is_titular = no
			}
		}
	}
}

e_qarakhnid = {
	color = { 39 138 51 }
	color2 = { 255 255 255 }
	capital = 901
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_qarakhnid = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_qarakhnid
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = iranian
				religion_group = zoroastrian_group
				primary_title = { title = k_qarakhnid }
				num_of_king_titles = 3
			}
			e_qarakhnid = {
				is_titular = no
			}
		}
	}
}

e_mesopotamia = {
	color = { 55 128 67 }
	color2 = { 255 255 255 }
	capital = 693
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_mesopotamia = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_mesopotamia
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = arabic
				religion_group = muslim
				primary_title = { title = k_mesopotamia }
				num_of_king_titles = 3
			}
			e_mesopotamia = {
				is_titular = no
			}
		}
	}
}

e_georgia = {
	color = { 205 145 145 }
	color2 = { 255 255 255 }
	capital = 679
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_georgia = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_georgia
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = byzantine
				religion_group = christian
				primary_title = { title = k_georgia }
				num_of_king_titles = 3
			}
			e_georgia = {
				is_titular = no
			}
		}
	}
}

e_hungary = {
	color = { 187 70 70 }
	color2 = { 255 255 255 }
	capital = 444
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_hungary = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_hungary
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = magyar
				religion_group = christian
				primary_title = { title = k_hungary }
				num_of_king_titles = 3
			}
			e_hungary = {
				is_titular = no
			}
		}
	}
}

e_italy = {
	color = { 244 227 160 }
	color2 = { 255 255 255 }
	capital = 234
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_italy = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_italy
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = latin
				religion_group = christian
				primary_title = { title = k_italy }
				num_of_king_titles = 3
			}
			e_italy = {
				is_titular = no
			}
		}
	}
}

e_aquitaine = {
	color = { 54 50 226 }
	color2 = { 255 255 20 }
	capital = 149
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_aquitaine = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_aquitaine
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = latin
				religion_group = christian
				primary_title = { title = k_aquitaine }
				num_of_king_titles = 3
			}
			e_aquitaine = {
				is_titular = no
			}
		}
	}
}

e_brittany = {
	color = { 153 54 110 }
	color2 = { 255 255 255 }
	capital = 105
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_brittany = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_brittany
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = celtic
				religion_group = christian
				primary_title = { title = k_brittany }
				num_of_king_titles = 3
			}
			e_brittany = {
				is_titular = no
			}
		}
	}
}

e_burgundy = {
	color = { 134 0 37 }
	color2 = { 220 220 0 }
	capital = 221
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_burgundy = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_burgundy
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = latin
				religion_group = christian
				primary_title = { title = k_burgundy }
				num_of_king_titles = 3
			}
			e_burgundy = {
				is_titular = no
			}
		}
	}
}

e_castille = {
	color = { 243 209 23 }
	color2 = { 200 80 10 }
	capital = 199
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_castille = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_castille
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = iberian
				religion_group = christian
				primary_title = { title = k_castille }
				num_of_king_titles = 3
			}
			e_castille = {
				is_titular = no
			}
		}
	}
}

e_aragon = {
	color = { 166 98 22 }
	color2 = { 230 0 0 }
	capital = 204
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_aragon = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_aragon
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = iberian
				religion_group = christian
				primary_title = { title = k_aragon }
				num_of_king_titles = 3
			}
			e_aragon = {
				is_titular = no
			}
		}
	}
}

e_navarra = {
	color = { 150 120 5 }
	capital = 152
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_navarra = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_navarra
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = iberian
				religion_group = christian
				primary_title = { title = k_navarra }
				num_of_king_titles = 3
			}
			e_navarra = {
				is_titular = no
			}
		}
	}
}

e_leon = {
	color = { 233 158 51 }
	color2 = { 255 255 255 }
	capital = 190
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_leon = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_leon
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = iberian
				religion_group = christian
				primary_title = { title = k_leon }
				num_of_king_titles = 3
			}
			e_leon = {
				is_titular = no
			}
		}
	}
}

e_spanish_galicia = {
	color = { 255 224 94 }
	capital = 156
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_spanish_galicia = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_spanish_galicia
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = iberian
				religion_group = christian
				primary_title = { title = k_spanish_galicia }
				num_of_king_titles = 3
			}
			e_spanish_galicia = {
				is_titular = no
			}
		}
	}
}

e_portugal = {
	color = { 182 88 5 }
	color2 = { 255 255 255 }
	capital = 160
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_portugal = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_portugal
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = iberian
				religion_group = christian
				primary_title = { title = k_portugal }
				num_of_king_titles = 3
			}
			e_portugal = {
				is_titular = no
			}
		}
	}
}

e_andalusia = {
	color = { 31 138 40 }
	color2 = { 255 255 255 }
	capital = 181
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_andalusia = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_andalusia
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = arabic
				religion_group = muslim
				primary_title = { title = k_andalusia }
				num_of_king_titles = 3
			}
			e_andalusia = {
				is_titular = no
			}
		}
	}
}

e_egypt = {
	color = { 10 255 80 }
	color2 = { 255 255 255 }
	capital = 796
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_egypt = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_egypt
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = arabic
				religion_group = muslim
				primary_title = { title = k_egypt }
				num_of_king_titles = 3
			}
			e_egypt = {
				is_titular = no
			}
		}
	}
}

e_jerusalem = {
	color = { 180 180 180 }
	color2 = { 255 255 255 }
	capital = 774
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_jerusalem = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_jerusalem
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = arabic
				religion_group = muslim
				primary_title = { title = k_jerusalem }
				num_of_king_titles = 3
			}
			e_jerusalem = {
				is_titular = no
			}
		}
	}
}

e_syria = {
	color = { 145 130 88 }
	color2 = { 255 255 255 }
	capital = 728
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_syria = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_syria
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = arabic
				religion_group = muslim
				primary_title = { title = k_syria }
				num_of_king_titles = 3
			}
			e_syria = {
				is_titular = no
			}
		}
	}
}

e_mauretania = {
	color = { 58 188 41 }
	color2 = { 255 255 255 }
	capital = 843
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_mauretania = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_mauretania
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = arabic
				religion_group = muslim
				primary_title = { title = k_mauretania }
				num_of_king_titles = 3
			}
			e_mauretania = {
				is_titular = no
			}
		}
	}
}

e_africa = {
	color = { 21 255 3 }
	color2 = { 255 255 255 }
	capital = 817
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_africa = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_africa
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = arabic
				religion_group = muslim
				primary_title = { title = k_africa }
				num_of_king_titles = 3
			}
			e_africa = {
				is_titular = no
			}
		}
	}
}

e_abyssinia = {
	color = { 201 143 68 }
	color2 = { 255 255 255 }
	capital = 883
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_abyssinia = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_abyssinia
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = east_african
				religion_group = christian
				primary_title = { title = k_abyssinia }
				num_of_king_titles = 3
			}
			e_abyssinia = {
				is_titular = no
			}
		}
	}
}

e_england = {
	color = { 202 26 26 }
	color2 = { 255 255 255 }
	capital = 32
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_england = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_england
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = west_germanic
				religion_group = christian
				primary_title = { title = k_england }
				num_of_king_titles = 3
			}
			e_england = {
				is_titular = no
			}
		}
	}
}

e_wales = {
	color = { 135 25 3 }
	color2 = { 255 255 255 }
	capital = 64
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_wales = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_wales
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = celtic
				religion_group = christian
				primary_title = { title = k_wales }
				num_of_king_titles = 3
			}
			e_wales = {
				is_titular = no
			}
		}
	}
}

e_scotland = {
	color = { 20 80 162 }
	color2 = { 255 255 255 }
	capital = 43
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_scotland = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_scotland
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = celtic
				religion_group = christian
				primary_title = { title = k_scotland }
				num_of_king_titles = 3
			}
			e_scotland = {
				is_titular = no
			}
		}
	}
}

e_ireland = {
	color = { 6 127 2 }
	color2 = { 255 255 255 }
	capital = 11
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_ireland = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_ireland
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = celtic
				religion_group = christian
				primary_title = { title = k_ireland }
				num_of_king_titles = 3
			}
			e_ireland = {
				is_titular = no
			}
		}
	}
}

e_mali = {
	color = { 158 188 61 }
	color2 = { 255 255 255 }
	capital = 911
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_mali = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_mali
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = west_african
				religion_group = muslim
				primary_title = { title = k_mali }
				num_of_king_titles = 3
			}
			e_mali = {
				is_titular = no
			}
		}
	}
}

e_cyprus = {
	color = { 85 138 236 }
	capital = 757
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_cyprus = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_cyprus
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				primary_title = { title = k_cyprus }
				num_of_king_titles = 3
			}
			e_cyprus = {
				is_titular = no
			}
		}
	}
}

e_naples = {
	color = { 218 217 242 }
	capital = 334
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_naples = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_naples
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = latin
				primary_title = { title = k_naples }
				num_of_king_titles = 3
			}
			e_naples = {
				is_titular = no
			}
		}
	}
}

e_nubia = {
	color = { 161 172 86 }
	capital = 793
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_nubia = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_nubia
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				primary_title = { title = k_nubia }
				num_of_king_titles = 3
			}
			e_nubia = {
				is_titular = no
			}
		}
	}
}

e_trebizond = {
	color = { 100 151 33 }
	capital = 678
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_trebizond = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_trebizond
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = byzantine
				primary_title = { title = k_trebizond }
				num_of_king_titles = 3
			}
			e_trebizond = {
				is_titular = no
			}
		}
	}
}

e_venice = {
	color = { 54 167 156 }
	capital = 356
	gain_effect = {
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_venice = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_venice
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }
	}
	allow = {
		OR = {
			FROM = {
				culture_group = latin
				primary_title = { title = k_venice }
				num_of_king_titles = 3
			}
			e_venice = {
				is_titular = no
			}
		}
	}
}

