k_sunni = {
	color = { 76 160 40 }
	color2 = { 220 220 0 }
	capital = 719
	dignity = 100
	creation_requires_capital = no
	title = "CALIPH"
	foa = "CALIPH_FOA"
	title_female = "CALIPHA"
	gain_effect = {
		primary_title = { copy_title_laws = d_sunni }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = muslim
			
				primary_title = { title = d_sunni }
				num_of_duke_titles = 4
			}
			k_sunni = {
				is_titular = no
			}
		}

	}
}

k_shiite = {
	color = { 76 190 60 }
	color2 = { 220 220 0 }
	capital = 719
	dignity = 100
	creation_requires_capital = no
	title = "CALIPH"
	foa = "CALIPH_FOA"
	title_female = "CALIPHA"
	gain_effect = {
		primary_title = { copy_title_laws = d_shiite }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = muslim
			
				primary_title = { title = d_shiite }
				num_of_duke_titles = 4
			}
			k_shiite = {
				is_titular = no
			}
		}

	}
}

k_holland = {
	color = { 235 105 30 }
	color2 = { 255 255 255 }
	capital = 80
	gain_effect = {
		primary_title = { copy_title_laws = d_holland }
		
		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 = {
			AND = {
				culture_group = yperen_grp
				religion_group = christian
			
				primary_title = { title = d_holland }
				num_of_duke_titles = 4
			}
			k_holland = {
				is_titular = no
			}
		}

	}
}

e_holland = {
	color = { 235 203 30 }
	color2 = { 255 255 255 }
	capital = 80
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_holland }
		
		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 = {
			AND = {
				culture_group = yperen_grp
				religion_group = christian
			
				primary_title = { title = k_holland }
				num_of_king_titles = 3
			}
			e_holland = {
				is_titular = no
			}
		}

	}
}

k_gelre = {
	color = { 200 90 25 }
	color2 = { 255 255 255 }
	capital = 83
	gain_effect = {
		primary_title = { copy_title_laws = d_gelre }
		
		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 = {
			AND = {
				culture_group = holstein_grp
				religion_group = christian
			
				primary_title = { title = d_gelre }
				num_of_duke_titles = 4
			}
			k_gelre = {
				is_titular = no
			}
		}

	}
}

e_gelre = {
	color = { 200 58 25 }
	color2 = { 255 255 255 }
	capital = 83
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_gelre }
		
		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 = {
			AND = {
				culture_group = holstein_grp
				religion_group = christian
			
				primary_title = { title = k_gelre }
				num_of_king_titles = 3
			}
			e_gelre = {
				is_titular = no
			}
		}

	}
}

k_brabant = {
	color = { 200 125 60 }
	color2 = { 255 255 255 }
	capital = 117
	gain_effect = {
		primary_title = { copy_title_laws = d_brabant }
		
		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 = {
			AND = {
				culture_group = yperen_grp
				religion_group = christian
			
				primary_title = { title = d_brabant }
				num_of_duke_titles = 4
			}
			k_brabant = {
				is_titular = no
			}
		}

	}
}

e_brabant = {
	color = { 200 125 60 }
	color2 = { 255 255 255 }
	capital = 117
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_brabant }
		
		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 = {
			AND = {
				culture_group = yperen_grp
				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 = {
		primary_title = { copy_title_laws = d_flanders }
		
		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 = {
			AND = {
				culture_group = yperen_grp
				religion_group = christian
			
				primary_title = { title = d_flanders }
				num_of_duke_titles = 4
			}
			k_flanders = {
				is_titular = no
			}
		}

	}
}

e_flanders = {
	color = { 255 151 0 }
	color2 = { 255 255 255 }
	capital = 78
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_flanders }
		
		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 = {
			AND = {
				culture_group = yperen_grp
				religion_group = christian
			
				primary_title = { title = k_flanders }
				num_of_king_titles = 3
			}
			e_flanders = {
				is_titular = no
			}
		}

	}
}

k_luxembourg = {
	color = { 102 98 97 }
	color2 = { 255 255 255 }
	capital = 115
	gain_effect = {
		primary_title = { copy_title_laws = d_luxembourg }
		
		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 = {
			AND = {
				culture_group = yperen_grp
				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
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_luxembourg }
		
		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 = {
			AND = {
				culture_group = yperen_grp
				religion_group = christian
			
				primary_title = { title = k_luxembourg }
				num_of_king_titles = 3
			}
			e_luxembourg = {
				is_titular = no
			}
		}

	}
}

k_upper_lorraine = {
	color = { 190 187 188 }
	color2 = { 255 255 255 }
	capital = 127
	gain_effect = {
		primary_title = { copy_title_laws = d_upper_lorraine }
		
		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 = {
			AND = {
				culture_group = yperen_grp
				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 188 }
	color2 = { 255 255 255 }
	capital = 127
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_upper_lorraine }
		
		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 = {
			AND = {
				culture_group = yperen_grp
				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 158 157 }
	color2 = { 255 255 255 }
	capital = 118
	gain_effect = {
		primary_title = { copy_title_laws = d_lower_lorraine }
		
		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 = {
			AND = {
				culture_group = yperen_grp
				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 162 157 }
	color2 = { 255 255 255 }
	capital = 118
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_lower_lorraine }
		
		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 = {
			AND = {
				culture_group = yperen_grp
				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 132 }
	color2 = { 255 255 255 }
	capital = 134
	gain_effect = {
		primary_title = { copy_title_laws = d_alsace }
		
		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 = {
			AND = {
				culture_group = yperen_grp
				religion_group = christian
			
				primary_title = { title = d_alsace }
				num_of_duke_titles = 4
			}
			k_alsace = {
				is_titular = no
			}
		}

	}
}

e_alsace = {
	color = { 137 130 133 }
	color2 = { 255 255 255 }
	capital = 134
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_alsace }
		
		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 = {
			AND = {
				culture_group = yperen_grp
				religion_group = christian
			
				primary_title = { title = k_alsace }
				num_of_king_titles = 3
			}
			e_alsace = {
				is_titular = no
			}
		}

	}
}

k_osterreich = {
	color = { 191 182 183 }
	color2 = { 255 255 255 }
	capital = 449
	gain_effect = {
		primary_title = { copy_title_laws = d_osterreich }
		
		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 = {
			AND = {
				culture_group = holstein_grp
				religion_group = christian
			
				primary_title = { title = d_osterreich }
				num_of_duke_titles = 4
			}
			k_osterreich = {
				is_titular = no
			}
		}

	}
}

e_osterreich = {
	color = { 191 182 188 }
	color2 = { 255 255 255 }
	capital = 449
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_osterreich }
		
		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 = {
			AND = {
				culture_group = holstein_grp
				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 = {
		primary_title = { copy_title_laws = d_tyrol }
		
		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 = {
			AND = {
				culture_group = holstein_grp
				religion_group = christian
			
				primary_title = { title = d_tyrol }
				num_of_duke_titles = 4
			}
			k_tyrol = {
				is_titular = no
			}
		}

	}
}

e_tyrol = {
	color = { 157 155 154 }
	color2 = { 255 255 255 }
	capital = 316
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_tyrol }
		
		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 = {
			AND = {
				culture_group = holstein_grp
				religion_group = christian
			
				primary_title = { title = k_tyrol }
				num_of_king_titles = 3
			}
			e_tyrol = {
				is_titular = no
			}
		}

	}
}

k_carinthia = {
	color = { 165 255 218 }
	color2 = { 255 255 255 }
	capital = 358
	gain_effect = {
		primary_title = { copy_title_laws = d_carinthia }
		
		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 = {
			AND = {
				culture_group = napoli_grp
				religion_group = christian
			
				primary_title = { title = d_carinthia }
				num_of_duke_titles = 4
			}
			k_carinthia = {
				is_titular = no
			}
		}

	}
}

e_carinthia = {
	color = { 165 255 196 }
	color2 = { 255 255 255 }
	capital = 358
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_carinthia }
		
		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 = {
			AND = {
				culture_group = napoli_grp
				religion_group = christian
			
				primary_title = { title = k_carinthia }
				num_of_king_titles = 3
			}
			e_carinthia = {
				is_titular = no
			}
		}

	}
}

k_brunswick = {
	color = { 183 174 172 }
	color2 = { 255 255 255 }
	capital = 258
	gain_effect = {
		primary_title = { copy_title_laws = d_brunswick }
		
		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 = {
			AND = {
				culture_group = holstein_grp
				religion_group = christian
			
				primary_title = { title = d_brunswick }
				num_of_duke_titles = 4
			}
			k_brunswick = {
				is_titular = no
			}
		}

	}
}

e_brunswick = {
	color = { 183 178 172 }
	color2 = { 255 255 255 }
	capital = 258
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_brunswick }
		
		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 = {
			AND = {
				culture_group = holstein_grp
				religion_group = christian
			
				primary_title = { title = k_brunswick }
				num_of_king_titles = 3
			}
			e_brunswick = {
				is_titular = no
			}
		}

	}
}

k_thuringia = {
	color = { 208 206 226 }
	color2 = { 255 255 255 }
	capital = 255
	gain_effect = {
		primary_title = { copy_title_laws = d_thuringia }
		
		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 = {
			AND = {
				culture_group = holstein_grp
				religion_group = christian
			
				primary_title = { title = d_thuringia }
				num_of_duke_titles = 4
			}
			k_thuringia = {
				is_titular = no
			}
		}

	}
}

e_thuringia = {
	color = { 221 206 226 }
	color2 = { 255 255 255 }
	capital = 255
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_thuringia }
		
		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 = {
			AND = {
				culture_group = holstein_grp
				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 = {
		primary_title = { copy_title_laws = d_koln }
		
		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 = {
			AND = {
				culture_group = yperen_grp
				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
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_koln }
		
		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 = {
			AND = {
				culture_group = yperen_grp
				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 = {
		primary_title = { copy_title_laws = d_franconia }
		
		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 = {
			AND = {
				culture_group = yperen_grp
				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
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_franconia }
		
		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 = {
			AND = {
				culture_group = yperen_grp
				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 = {
		primary_title = { copy_title_laws = d_baden }
		
		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 = {
			AND = {
				culture_group = yperen_grp
				religion_group = christian
			
				primary_title = { title = d_baden }
				num_of_duke_titles = 4
			}
			k_baden = {
				is_titular = no
			}
		}

	}
}

e_baden = {
	color = { 115 113 109 }
	color2 = { 255 255 255 }
	capital = 125
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_baden }
		
		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 = {
			AND = {
				culture_group = yperen_grp
				religion_group = christian
			
				primary_title = { title = k_baden }
				num_of_king_titles = 3
			}
			e_baden = {
				is_titular = no
			}
		}

	}
}

k_swabia = {
	color = { 206 203 204 }
	color2 = { 255 255 255 }
	capital = 249
	gain_effect = {
		primary_title = { copy_title_laws = d_swabia }
		
		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 = {
			AND = {
				culture_group = yperen_grp
				religion_group = christian
			
				primary_title = { title = d_swabia }
				num_of_duke_titles = 4
			}
			k_swabia = {
				is_titular = no
			}
		}

	}
}

e_swabia = {
	color = { 206 203 205 }
	color2 = { 255 255 255 }
	capital = 249
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_swabia }
		
		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 = {
			AND = {
				culture_group = yperen_grp
				religion_group = christian
			
				primary_title = { title = k_swabia }
				num_of_king_titles = 3
			}
			e_swabia = {
				is_titular = no
			}
		}

	}
}

k_nikaea = {
	color = { 202 101 161 }
	color2 = { 255 255 20 }
	capital = 750
	gain_effect = {
		primary_title = { copy_title_laws = d_nikaea }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = christian
			
				primary_title = { title = d_nikaea }
				num_of_duke_titles = 4
			}
			k_nikaea = {
				is_titular = no
			}
		}

	}
}

e_nikaea = {
	color = { 202 102 101 }
	color2 = { 255 255 20 }
	capital = 750
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_nikaea }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = christian
			
				primary_title = { title = k_nikaea }
				num_of_king_titles = 3
			}
			e_nikaea = {
				is_titular = no
			}
		}

	}
}

k_samos = {
	color = { 115 55 100 }
	color2 = { 255 255 20 }
	capital = 486
	gain_effect = {
		primary_title = { copy_title_laws = d_samos }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = christian
			
				primary_title = { title = d_samos }
				num_of_duke_titles = 4
			}
			k_samos = {
				is_titular = no
			}
		}

	}
}

e_samos = {
	color = { 115 55 111 }
	color2 = { 255 255 20 }
	capital = 486
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_samos }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				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 = {
		primary_title = { copy_title_laws = d_aegean_islands }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = christian
			
				primary_title = { title = d_aegean_islands }
				num_of_duke_titles = 4
			}
			k_aegean_islands = {
				is_titular = no
			}
		}

	}
}

e_aegean_islands = {
	color = { 42 8 104 }
	color2 = { 255 255 20 }
	capital = 484
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_aegean_islands }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				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 110 }
	color2 = { 255 255 20 }
	capital = 496
	orthodox = 250
	catholic = 125
	gain_effect = {
		primary_title = { copy_title_laws = d_thrace }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = christian
			
				primary_title = { title = d_thrace }
				num_of_duke_titles = 4
			}
			k_thrace = {
				is_titular = no
			}
		}

	}
}

e_thrace = {
	color = { 172 76 110 }
	color2 = { 255 255 20 }
	capital = 496
	short_name = yes
	orthodox = 250
	catholic = 125
	gain_effect = {
		primary_title = { copy_title_laws = k_thrace }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = christian
			
				primary_title = { title = k_thrace }
				num_of_king_titles = 3
			}
			e_thrace = {
				is_titular = no
			}
		}

	}
}

k_adrianopolis = {
	color = { 213 74 198 }
	color2 = { 255 255 20 }
	capital = 494
	gain_effect = {
		primary_title = { copy_title_laws = d_adrianopolis }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = christian
			
				primary_title = { title = d_adrianopolis }
				num_of_duke_titles = 4
			}
			k_adrianopolis = {
				is_titular = no
			}
		}

	}
}

e_adrianopolis = {
	color = { 213 74 173 }
	color2 = { 255 255 20 }
	capital = 494
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_adrianopolis }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = christian
			
				primary_title = { title = k_adrianopolis }
				num_of_king_titles = 3
			}
			e_adrianopolis = {
				is_titular = no
			}
		}

	}
}

k_thessalonika = {
	color = { 189 19 110 }
	color2 = { 255 255 20 }
	capital = 490
	gain_effect = {
		primary_title = { copy_title_laws = d_thessalonika }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				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
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_thessalonika }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = christian
			
				primary_title = { title = k_thessalonika }
				num_of_king_titles = 3
			}
			e_thessalonika = {
				is_titular = no
			}
		}

	}
}

k_dyrrachion = {
	color = { 137 27 59 }
	color2 = { 255 255 20 }
	capital = 470
	gain_effect = {
		primary_title = { copy_title_laws = d_dyrrachion }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = christian
			
				primary_title = { title = d_dyrrachion }
				num_of_duke_titles = 4
			}
			k_dyrrachion = {
				is_titular = no
			}
		}

	}
}

e_dyrrachion = {
	color = { 137 27 73 }
	color2 = { 255 255 20 }
	capital = 470
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_dyrrachion }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = christian
			
				primary_title = { title = k_dyrrachion }
				num_of_king_titles = 3
			}
			e_dyrrachion = {
				is_titular = no
			}
		}

	}
}

k_epirus = {
	color = { 134 63 122 }
	color2 = { 255 255 20 }
	capital = 473
	gain_effect = {
		primary_title = { copy_title_laws = d_epirus }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = christian
			
				primary_title = { title = d_epirus }
				num_of_duke_titles = 4
			}
			k_epirus = {
				is_titular = no
			}
		}

	}
}

e_epirus = {
	color = { 134 63 118 }
	color2 = { 255 255 20 }
	capital = 473
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_epirus }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = christian
			
				primary_title = { title = k_epirus }
				num_of_king_titles = 3
			}
			e_epirus = {
				is_titular = no
			}
		}

	}
}

k_athens = {
	color = { 206 66 200 }
	color2 = { 255 255 20 }
	capital = 482
	gain_effect = {
		primary_title = { copy_title_laws = d_athens }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = christian
			
				primary_title = { title = d_athens }
				num_of_duke_titles = 4
			}
			k_athens = {
				is_titular = no
			}
		}

	}
}

e_athens = {
	color = { 195 66 206 }
	color2 = { 255 255 20 }
	capital = 482
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_athens }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = christian
			
				primary_title = { title = k_athens }
				num_of_king_titles = 3
			}
			e_athens = {
				is_titular = no
			}
		}

	}
}

k_achaia = {
	color = { 188 29 190 }
	color2 = { 255 255 20 }
	capital = 476
	gain_effect = {
		primary_title = { copy_title_laws = d_achaia }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = christian
			
				primary_title = { title = d_achaia }
				num_of_duke_titles = 4
			}
			k_achaia = {
				is_titular = no
			}
		}

	}
}

e_achaia = {
	color = { 190 29 182 }
	color2 = { 255 255 20 }
	capital = 476
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_achaia }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = christian
			
				primary_title = { title = k_achaia }
				num_of_king_titles = 3
			}
			e_achaia = {
				is_titular = no
			}
		}

	}
}

k_krete = {
	color = { 205 79 35 }
	color2 = { 255 255 20 }
	capital = 480
	gain_effect = {
		primary_title = { copy_title_laws = d_krete }
		
		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 = {
			AND = {
				culture_group = byzantine
				religion_group = christian
			
				primary_title = { title = d_krete }
				num_of_duke_titles = 4
			}
			k_krete = {
				is_titular = no
			}
		}

	}
}

e_krete = {
	color = { 205 39 35 }
	color2 = { 255 255 20 }
	capital = 480
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_krete }
		
		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 = {
			AND = {
				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 85 }
	color2 = { 255 255 20 }
	capital = 755
	gain_effect = {
		primary_title = { copy_title_laws = d_cibyrrhaeot }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = christian
			
				primary_title = { title = d_cibyrrhaeot }
				num_of_duke_titles = 4
			}
			k_cibyrrhaeot = {
				is_titular = no
			}
		}

	}
}

e_cibyrrhaeot = {
	color = { 108 29 108 }
	color2 = { 255 255 20 }
	capital = 755
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_cibyrrhaeot }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				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 = {
		primary_title = { copy_title_laws = d_thracesia }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = christian
			
				primary_title = { title = d_thracesia }
				num_of_duke_titles = 4
			}
			k_thracesia = {
				is_titular = no
			}
		}

	}
}

e_thracesia = {
	color = { 154 43 69 }
	color2 = { 255 255 20 }
	capital = 748
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_thracesia }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				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 = {
		primary_title = { copy_title_laws = d_charsianon }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = christian
			
				primary_title = { title = d_charsianon }
				num_of_duke_titles = 4
			}
			k_charsianon = {
				is_titular = no
			}
		}

	}
}

e_charsianon = {
	color = { 164 68 237 }
	color2 = { 255 255 20 }
	capital = 760
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_charsianon }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = christian
			
				primary_title = { title = k_charsianon }
				num_of_king_titles = 3
			}
			e_charsianon = {
				is_titular = no
			}
		}

	}
}

k_armeniacon = {
	color = { 255 0 182 }
	color2 = { 255 255 20 }
	capital = 738
	gain_effect = {
		primary_title = { copy_title_laws = d_armeniacon }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = christian
			
				primary_title = { title = d_armeniacon }
				num_of_duke_titles = 4
			}
			k_armeniacon = {
				is_titular = no
			}
		}

	}
}

e_armeniacon = {
	color = { 255 0 228 }
	color2 = { 255 255 20 }
	capital = 738
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_armeniacon }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = christian
			
				primary_title = { title = k_armeniacon }
				num_of_king_titles = 3
			}
			e_armeniacon = {
				is_titular = no
			}
		}

	}
}

k_paphlagonia = {
	color = { 234 157 179 }
	color2 = { 255 255 20 }
	capital = 753
	gain_effect = {
		primary_title = { copy_title_laws = d_paphlagonia }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = christian
			
				primary_title = { title = d_paphlagonia }
				num_of_duke_titles = 4
			}
			k_paphlagonia = {
				is_titular = no
			}
		}

	}
}

e_paphlagonia = {
	color = { 234 157 165 }
	color2 = { 255 255 20 }
	capital = 753
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_paphlagonia }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = christian
			
				primary_title = { title = k_paphlagonia }
				num_of_king_titles = 3
			}
			e_paphlagonia = {
				is_titular = no
			}
		}

	}
}

k_armenia_minor = {
	color = { 214 140 199 }
	color2 = { 255 255 255 }
	capital = 761
	armenian = "Armenia Minor"
	gain_effect = {
		primary_title = { copy_title_laws = d_armenia_minor }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				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 208 }
	color2 = { 255 255 255 }
	capital = 761
	short_name = yes
	armenian = "Armenia Minor"
	gain_effect = {
		primary_title = { copy_title_laws = k_armenia_minor }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = christian
			
				primary_title = { title = k_armenia_minor }
				num_of_king_titles = 3
			}
			e_armenia_minor = {
				is_titular = no
			}
		}

	}
}

k_edessa = {
	color = { 196 255 3 }
	color2 = { 255 255 255 }
	capital = 699
	gain_effect = {
		primary_title = { copy_title_laws = d_edessa }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = christian
			
				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
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_edessa }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = christian
			
				primary_title = { title = k_edessa }
				num_of_king_titles = 3
			}
			e_edessa = {
				is_titular = no
			}
		}

	}
}

k_coloneia = {
	color = { 232 20 155 }
	color2 = { 255 255 255 }
	capital = 706
	gain_effect = {
		primary_title = { copy_title_laws = d_coloneia }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = christian
			
				primary_title = { title = d_coloneia }
				num_of_duke_titles = 4
			}
			k_coloneia = {
				is_titular = no
			}
		}

	}
}

e_coloneia = {
	color = { 169 20 232 }
	color2 = { 255 255 255 }
	capital = 706
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_coloneia }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = christian
			
				primary_title = { title = k_coloneia }
				num_of_king_titles = 3
			}
			e_coloneia = {
				is_titular = no
			}
		}

	}
}

k_vidin = {
	color = { 118 122 58 }
	color2 = { 255 255 255 }
	capital = 506
	greek = "Bononia"
	gain_effect = {
		primary_title = { copy_title_laws = d_vidin }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = christian
			
				primary_title = { title = d_vidin }
				num_of_duke_titles = 4
			}
			k_vidin = {
				is_titular = no
			}
		}

	}
}

e_vidin = {
	color = { 118 122 58 }
	color2 = { 255 255 255 }
	capital = 506
	short_name = yes
	greek = "Bononia"
	gain_effect = {
		primary_title = { copy_title_laws = k_vidin }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = christian
			
				primary_title = { title = k_vidin }
				num_of_king_titles = 3
			}
			e_vidin = {
				is_titular = no
			}
		}

	}
}

k_turnovo = {
	color = { 197 39 126 }
	color2 = { 255 255 255 }
	capital = 499
	gain_effect = {
		primary_title = { copy_title_laws = d_turnovo }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = christian
			
				primary_title = { title = d_turnovo }
				num_of_duke_titles = 4
			}
			k_turnovo = {
				is_titular = no
			}
		}

	}
}

e_turnovo = {
	color = { 197 39 88 }
	color2 = { 255 255 255 }
	capital = 499
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_turnovo }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = christian
			
				primary_title = { title = k_turnovo }
				num_of_king_titles = 3
			}
			e_turnovo = {
				is_titular = no
			}
		}

	}
}

k_karvuna = {
	color = { 227 79 190 }
	color2 = { 255 255 255 }
	capital = 509
	gain_effect = {
		primary_title = { copy_title_laws = d_karvuna }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = christian
			
				primary_title = { title = d_karvuna }
				num_of_duke_titles = 4
			}
			k_karvuna = {
				is_titular = no
			}
		}

	}
}

e_karvuna = {
	color = { 211 79 227 }
	color2 = { 255 255 255 }
	capital = 509
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_karvuna }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = christian
			
				primary_title = { title = k_karvuna }
				num_of_king_titles = 3
			}
			e_karvuna = {
				is_titular = no
			}
		}

	}
}

k_rashka = {
	color = { 168 148 57 }
	color2 = { 255 255 255 }
	capital = 502
	greek = "Rascia"
	gain_effect = {
		primary_title = { copy_title_laws = d_rashka }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = christian
			
				primary_title = { title = d_rashka }
				num_of_duke_titles = 4
			}
			k_rashka = {
				is_titular = no
			}
		}

	}
}

e_rashka = {
	color = { 168 155 57 }
	color2 = { 255 255 255 }
	capital = 502
	short_name = yes
	greek = "Rascia"
	gain_effect = {
		primary_title = { copy_title_laws = k_rashka }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				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
	serbian = "Duklja"
	croatian = "Duklja"
	bulgarian = "Duklja"
	gain_effect = {
		primary_title = { copy_title_laws = d_dioclea }
		
		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 = {
			AND = {
				culture_group = holstein_grp
				religion_group = christian
			
				primary_title = { title = d_dioclea }
				num_of_duke_titles = 4
			}
			k_dioclea = {
				is_titular = no
			}
		}

	}
}

e_dioclea = {
	color = { 74 129 13 }
	color2 = { 255 255 255 }
	capital = 468
	short_name = yes
	serbian = "Duklja"
	croatian = "Duklja"
	bulgarian = "Duklja"
	gain_effect = {
		primary_title = { copy_title_laws = k_dioclea }
		
		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 = {
			AND = {
				culture_group = holstein_grp
				religion_group = christian
			
				primary_title = { title = k_dioclea }
				num_of_king_titles = 3
			}
			e_dioclea = {
				is_titular = no
			}
		}

	}
}

k_slavonia = {
	color = { 184 137 145 }
	color2 = { 255 255 255 }
	capital = 461
	gain_effect = {
		primary_title = { copy_title_laws = d_slavonia }
		
		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 = {
			AND = {
				culture_group = holstein_grp
				religion_group = christian
			
				primary_title = { title = d_slavonia }
				num_of_duke_titles = 4
			}
			k_slavonia = {
				is_titular = no
			}
		}

	}
}

e_slavonia = {
	color = { 184 137 168 }
	color2 = { 255 255 255 }
	capital = 461
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_slavonia }
		
		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 = {
			AND = {
				culture_group = holstein_grp
				religion_group = christian
			
				primary_title = { title = k_slavonia }
				num_of_king_titles = 3
			}
			e_slavonia = {
				is_titular = no
			}
		}

	}
}

k_dalmatia = {
	color = { 184 145 137 }
	color2 = { 255 255 255 }
	capital = 465
	gain_effect = {
		primary_title = { copy_title_laws = d_dalmatia }
		
		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 = {
			AND = {
				culture_group = holstein_grp
				religion_group = christian
			
				primary_title = { title = d_dalmatia }
				num_of_duke_titles = 4
			}
			k_dalmatia = {
				is_titular = no
			}
		}

	}
}

e_dalmatia = {
	color = { 184 154 137 }
	color2 = { 255 255 255 }
	capital = 465
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_dalmatia }
		
		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 = {
			AND = {
				culture_group = holstein_grp
				religion_group = christian
			
				primary_title = { title = k_dalmatia }
				num_of_king_titles = 3
			}
			e_dalmatia = {
				is_titular = no
			}
		}

	}
}

k_benevento = {
	color = { 75 247 29 }
	color2 = { 255 255 255 }
	capital = 335
	catholic = 250
	gain_effect = {
		primary_title = { copy_title_laws = d_benevento }
		
		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 = {
			AND = {
				culture_group = napoli_grp
				religion_group = christian
			
				primary_title = { title = d_benevento }
				num_of_duke_titles = 4
			}
			k_benevento = {
				is_titular = no
			}
		}

	}
}

e_benevento = {
	color = { 61 247 29 }
	color2 = { 255 255 255 }
	capital = 335
	short_name = yes
	catholic = 250
	gain_effect = {
		primary_title = { copy_title_laws = k_benevento }
		
		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 = {
			AND = {
				culture_group = napoli_grp
				religion_group = christian
			
				primary_title = { title = k_benevento }
				num_of_king_titles = 3
			}
			e_benevento = {
				is_titular = no
			}
		}

	}
}

k_capua = {
	color = { 154 226 138 }
	color2 = { 255 255 255 }
	capital = 851
	greek = "Neapolis"
	catholic = 250
	gain_effect = {
		primary_title = { copy_title_laws = d_capua }
		
		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 = {
			AND = {
				culture_group = napoli_grp
				religion_group = christian
			
				primary_title = { title = d_capua }
				num_of_duke_titles = 4
			}
			k_capua = {
				is_titular = no
			}
		}

	}
}

e_capua = {
	color = { 180 226 138 }
	color2 = { 255 255 255 }
	capital = 851
	short_name = yes
	greek = "Neapolis"
	catholic = 250
	gain_effect = {
		primary_title = { copy_title_laws = k_capua }
		
		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 = {
			AND = {
				culture_group = napoli_grp
				religion_group = christian
			
				primary_title = { title = k_capua }
				num_of_king_titles = 3
			}
			e_capua = {
				is_titular = no
			}
		}

	}
}

k_apulia = {
	color = { 172 151 63 }
	color2 = { 255 255 255 }
	capital = 347
	greek = "Longobardia"
	catholic = 250
	gain_effect = {
		primary_title = { copy_title_laws = d_apulia }
		
		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 = {
			AND = {
				culture_group = napoli_grp
				religion_group = christian
			
				primary_title = { title = d_apulia }
				num_of_duke_titles = 4
			}
			k_apulia = {
				is_titular = no
			}
		}

	}
}

e_apulia = {
	color = { 172 118 63 }
	color2 = { 255 255 255 }
	capital = 347
	short_name = yes
	greek = "Longobardia"
	catholic = 250
	gain_effect = {
		primary_title = { copy_title_laws = k_apulia }
		
		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 = {
			AND = {
				culture_group = napoli_grp
				religion_group = christian
			
				primary_title = { title = k_apulia }
				num_of_king_titles = 3
			}
			e_apulia = {
				is_titular = no
			}
		}

	}
}

k_salerno = {
	color = { 183 224 86 }
	color2 = { 255 255 255 }
	capital = 336
	greek = "Lukania"
	catholic = 250
	gain_effect = {
		primary_title = { copy_title_laws = d_salerno }
		
		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 = {
			AND = {
				culture_group = napoli_grp
				religion_group = christian
			
				primary_title = { title = d_salerno }
				num_of_duke_titles = 4
			}
			k_salerno = {
				is_titular = no
			}
		}

	}
}

e_salerno = {
	color = { 224 215 86 }
	color2 = { 255 255 255 }
	capital = 336
	short_name = yes
	greek = "Lukania"
	catholic = 250
	gain_effect = {
		primary_title = { copy_title_laws = k_salerno }
		
		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 = {
			AND = {
				culture_group = napoli_grp
				religion_group = christian
			
				primary_title = { title = k_salerno }
				num_of_king_titles = 3
			}
			e_salerno = {
				is_titular = no
			}
		}

	}
}

k_calabria = {
	color = { 150 165 57 }
	color2 = { 255 255 255 }
	capital = 338
	catholic = 250
	gain_effect = {
		primary_title = { copy_title_laws = d_calabria }
		
		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 = {
			AND = {
				culture_group = napoli_grp
				religion_group = christian
			
				primary_title = { title = d_calabria }
				num_of_duke_titles = 4
			}
			k_calabria = {
				is_titular = no
			}
		}

	}
}

e_calabria = {
	color = { 165 134 57 }
	color2 = { 255 255 255 }
	capital = 338
	short_name = yes
	catholic = 250
	gain_effect = {
		primary_title = { copy_title_laws = k_calabria }
		
		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 = {
			AND = {
				culture_group = napoli_grp
				religion_group = christian
			
				primary_title = { title = k_calabria }
				num_of_king_titles = 3
			}
			e_calabria = {
				is_titular = no
			}
		}

	}
}

k_kartli = {
	color = { 234 119 126 }
	color2 = { 255 255 255 }
	capital = 679
	gain_effect = {
		primary_title = { copy_title_laws = d_kartli }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = christian
			
				primary_title = { title = d_kartli }
				num_of_duke_titles = 4
			}
			k_kartli = {
				is_titular = no
			}
		}

	}
}

e_kartli = {
	color = { 234 119 147 }
	color2 = { 255 255 255 }
	capital = 679
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_kartli }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				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
	armenian = "Aghbania"
	georgian = "Aghbania"
	alan = "Aghbania"
	greek = "Albania"
	gain_effect = {
		primary_title = { copy_title_laws = d_derbent }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = christian
			
				primary_title = { title = d_derbent }
				num_of_duke_titles = 4
			}
			k_derbent = {
				is_titular = no
			}
		}

	}
}

e_derbent = {
	color = { 203 137 76 }
	color2 = { 255 255 255 }
	capital = 674
	short_name = yes
	armenian = "Aghbania"
	georgian = "Aghbania"
	alan = "Aghbania"
	greek = "Albania"
	gain_effect = {
		primary_title = { copy_title_laws = k_derbent }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = christian
			
				primary_title = { title = k_derbent }
				num_of_king_titles = 3
			}
			e_derbent = {
				is_titular = no
			}
		}

	}
}

k_abkhazia = {
	color = { 255 173 216 }
	color2 = { 255 255 255 }
	capital = 601
	gain_effect = {
		primary_title = { copy_title_laws = d_abkhazia }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = christian
			
				primary_title = { title = d_abkhazia }
				num_of_duke_titles = 4
			}
			k_abkhazia = {
				is_titular = no
			}
		}

	}
}

e_abkhazia = {
	color = { 255 173 230 }
	color2 = { 255 255 255 }
	capital = 601
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_abkhazia }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = christian
			
				primary_title = { title = k_abkhazia }
				num_of_king_titles = 3
			}
			e_abkhazia = {
				is_titular = no
			}
		}

	}
}

k_verona = {
	color = { 170 255 195 }
	color2 = { 255 255 255 }
	capital = 319
	gain_effect = {
		primary_title = { copy_title_laws = d_verona }
		
		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 = {
			AND = {
				culture_group = napoli_grp
				religion_group = christian
			
				primary_title = { title = d_verona }
				num_of_duke_titles = 4
			}
			k_verona = {
				is_titular = no
			}
		}

	}
}

e_verona = {
	color = { 170 255 206 }
	color2 = { 255 255 255 }
	capital = 319
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_verona }
		
		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 = {
			AND = {
				culture_group = napoli_grp
				religion_group = christian
			
				primary_title = { title = k_verona }
				num_of_king_titles = 3
			}
			e_verona = {
				is_titular = no
			}
		}

	}
}

k_susa = {
	color = { 191 158 168 }
	color2 = { 255 255 255 }
	capital = 236
	gain_effect = {
		primary_title = { copy_title_laws = d_susa }
		
		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 = {
			AND = {
				culture_group = yperen_grp
				religion_group = christian
			
				primary_title = { title = d_susa }
				num_of_duke_titles = 4
			}
			k_susa = {
				is_titular = no
			}
		}

	}
}

e_susa = {
	color = { 191 158 182 }
	color2 = { 255 255 255 }
	capital = 236
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_susa }
		
		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 = {
			AND = {
				culture_group = yperen_grp
				religion_group = christian
			
				primary_title = { title = k_susa }
				num_of_king_titles = 3
			}
			e_susa = {
				is_titular = no
			}
		}

	}
}

k_lombardia = {
	color = { 221 133 222 }
	color2 = { 255 255 255 }
	capital = 235
	gain_effect = {
		primary_title = { copy_title_laws = d_lombardia }
		
		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 = {
			AND = {
				culture_group = napoli_grp
				religion_group = christian
			
				primary_title = { title = d_lombardia }
				num_of_duke_titles = 4
			}
			k_lombardia = {
				is_titular = no
			}
		}

	}
}

e_lombardia = {
	color = { 222 133 212 }
	color2 = { 255 255 255 }
	capital = 235
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_lombardia }
		
		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 = {
			AND = {
				culture_group = napoli_grp
				religion_group = christian
			
				primary_title = { title = k_lombardia }
				num_of_king_titles = 3
			}
			e_lombardia = {
				is_titular = no
			}
		}

	}
}

k_modena = {
	color = { 225 180 196 }
	color2 = { 255 255 255 }
	capital = 322
	gain_effect = {
		primary_title = { copy_title_laws = d_modena }
		
		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 = {
			AND = {
				culture_group = napoli_grp
				religion_group = christian
			
				primary_title = { title = d_modena }
				num_of_duke_titles = 4
			}
			k_modena = {
				is_titular = no
			}
		}

	}
}

e_modena = {
	color = { 225 180 212 }
	color2 = { 255 255 255 }
	capital = 322
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_modena }
		
		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 = {
			AND = {
				culture_group = napoli_grp
				religion_group = christian
			
				primary_title = { title = k_modena }
				num_of_king_titles = 3
			}
			e_modena = {
				is_titular = no
			}
		}

	}
}

k_ferrara = {
	color = { 159 244 130 }
	color2 = { 255 255 255 }
	capital = 351
	gain_effect = {
		primary_title = { copy_title_laws = d_ferrara }
		
		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 = {
			AND = {
				culture_group = napoli_grp
				religion_group = christian
			
				primary_title = { title = d_ferrara }
				num_of_duke_titles = 4
			}
			k_ferrara = {
				is_titular = no
			}
		}

	}
}

e_ferrara = {
	color = { 130 244 148 }
	color2 = { 255 255 255 }
	capital = 351
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_ferrara }
		
		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 = {
			AND = {
				culture_group = napoli_grp
				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 = {
		primary_title = { copy_title_laws = d_toscana }
		
		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 = {
			AND = {
				culture_group = napoli_grp
				religion_group = christian
			
				primary_title = { title = d_toscana }
				num_of_duke_titles = 4
			}
			k_toscana = {
				is_titular = no
			}
		}

	}
}

e_toscana = {
	color = { 51 206 0 }
	color2 = { 255 255 255 }
	capital = 328
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_toscana }
		
		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 = {
			AND = {
				culture_group = napoli_grp
				religion_group = christian
			
				primary_title = { title = k_toscana }
				num_of_king_titles = 3
			}
			e_toscana = {
				is_titular = no
			}
		}

	}
}

k_ancona = {
	color = { 230 218 180 }
	color2 = { 255 255 255 }
	capital = 350
	gain_effect = {
		primary_title = { copy_title_laws = d_ancona }
		
		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 = {
			AND = {
				culture_group = napoli_grp
				religion_group = christian
			
				primary_title = { title = d_ancona }
				num_of_duke_titles = 4
			}
			k_ancona = {
				is_titular = no
			}
		}

	}
}

e_ancona = {
	color = { 230 224 180 }
	color2 = { 255 255 255 }
	capital = 350
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_ancona }
		
		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 = {
			AND = {
				culture_group = napoli_grp
				religion_group = christian
			
				primary_title = { title = k_ancona }
				num_of_king_titles = 3
			}
			e_ancona = {
				is_titular = no
			}
		}

	}
}

k_spoleto = {
	color = { 217 170 153 }
	color2 = { 255 255 255 }
	capital = 349
	gain_effect = {
		primary_title = { copy_title_laws = d_spoleto }
		
		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 = {
			AND = {
				culture_group = napoli_grp
				religion_group = christian
			
				primary_title = { title = d_spoleto }
				num_of_duke_titles = 4
			}
			k_spoleto = {
				is_titular = no
			}
		}

	}
}

e_spoleto = {
	color = { 217 167 153 }
	color2 = { 255 255 255 }
	capital = 349
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_spoleto }
		
		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 = {
			AND = {
				culture_group = napoli_grp
				religion_group = christian
			
				primary_title = { title = k_spoleto }
				num_of_king_titles = 3
			}
			e_spoleto = {
				is_titular = no
			}
		}

	}
}

k_latium = {
	color = { 229 254 160 }
	color2 = { 255 255 255 }
	capital = 333
	gain_effect = {
		primary_title = { copy_title_laws = d_latium }
		
		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 = {
			AND = {
				culture_group = latin
				religion_group = christian
			
				primary_title = { title = d_latium }
				num_of_duke_titles = 4
			}
			k_latium = {
				is_titular = no
			}
		}

	}
}

e_latium = {
	color = { 224 254 160 }
	color2 = { 255 255 255 }
	capital = 333
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_latium }
		
		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 = {
			AND = {
				culture_group = latin
				religion_group = christian
			
				primary_title = { title = k_latium }
				num_of_king_titles = 3
			}
			e_latium = {
				is_titular = no
			}
		}

	}
}

k_sardinia = {
	color = { 188 159 255 }
	color2 = { 255 255 255 }
	capital = 326
	gain_effect = {
		primary_title = { copy_title_laws = d_sardinia }
		
		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 = {
			AND = {
				culture_group = latin
				religion_group = christian
			
				primary_title = { title = d_sardinia }
				num_of_duke_titles = 4
			}
			k_sardinia = {
				is_titular = no
			}
		}

	}
}

e_sardinia = {
	color = { 159 170 255 }
	color2 = { 255 255 255 }
	capital = 326
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_sardinia }
		
		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 = {
			AND = {
				culture_group = latin
				religion_group = christian
			
				primary_title = { title = k_sardinia }
				num_of_king_titles = 3
			}
			e_sardinia = {
				is_titular = no
			}
		}

	}
}

k_uppland = {
	color = { 20 57 145 }
	color2 = { 255 255 255 }
	capital = 290
	dignity = 8
	norse = "Sviþjod"
	norse_pagan_reformed = 500
	pagan_coa = {
		template = 0
		religion = "norse_pagan"
		layer = {
			texture = 2
			texture_internal = 10
			emblem = 0
			color = 0
			color = 0
			color = 0
		}
	}
	gain_effect = {
		primary_title = { copy_title_laws = d_uppland }
		
		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 = {
			AND = {
				culture_group = lappland_grp
				religion_group = pagan_group
			
				primary_title = { title = d_uppland }
				num_of_duke_titles = 4
			}
			k_uppland = {
				is_titular = no
			}
		}

	}
}

e_uppland = {
	color = { 20 110 145 }
	color2 = { 255 255 255 }
	capital = 290
	short_name = yes
	dignity = 8
	norse = "Sviþjod"
	norse_pagan_reformed = 500
	pagan_coa = {
		template = 0
		religion = "norse_pagan"
		layer = {
			texture = 2
			texture_internal = 10
			emblem = 0
			color = 0
			color = 0
			color = 0
		}
	}
	gain_effect = {
		primary_title = { copy_title_laws = k_uppland }
		
		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 = {
			AND = {
				culture_group = lappland_grp
				religion_group = pagan_group
			
				primary_title = { title = k_uppland }
				num_of_king_titles = 3
			}
			e_uppland = {
				is_titular = no
			}
		}

	}
}

k_ostergotland = {
	color = { 56 0 190 }
	color2 = { 255 255 255 }
	capital = 293
	norwegian = "Østergøtland"
	danish = "Østergøtland"
	norse = "Austergautland"
	gain_effect = {
		primary_title = { copy_title_laws = d_ostergotland }
		
		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 = {
			AND = {
				culture_group = lappland_grp
				religion_group = pagan_group
			
				primary_title = { title = d_ostergotland }
				num_of_duke_titles = 4
			}
			k_ostergotland = {
				is_titular = no
			}
		}

	}
}

e_ostergotland = {
	color = { 0 13 190 }
	color2 = { 255 255 255 }
	capital = 293
	short_name = yes
	norwegian = "Østergøtland"
	danish = "Østergøtland"
	norse = "Austergautland"
	gain_effect = {
		primary_title = { copy_title_laws = k_ostergotland }
		
		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 = {
			AND = {
				culture_group = lappland_grp
				religion_group = pagan_group
			
				primary_title = { title = k_ostergotland }
				num_of_king_titles = 3
			}
			e_ostergotland = {
				is_titular = no
			}
		}

	}
}

k_vastergotland = {
	color = { 109 25 205 }
	color2 = { 255 255 255 }
	capital = 297
	norwegian = "Vestergøtland"
	danish = "Vestergøtland"
	norse = "Vestergautland"
	pagan_coa = {
		template = 0
		religion = "norse_pagan"
		layer = {
			texture = 2
			texture_internal = 11
			emblem = 0
			color = 0
			color = 0
			color = 0
		}
	}
	gain_effect = {
		primary_title = { copy_title_laws = d_vastergotland }
		
		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 = {
			AND = {
				culture_group = lappland_grp
				religion_group = pagan_group
			
				primary_title = { title = d_vastergotland }
				num_of_duke_titles = 4
			}
			k_vastergotland = {
				is_titular = no
			}
		}

	}
}

e_vastergotland = {
	color = { 98 25 205 }
	color2 = { 255 255 255 }
	capital = 297
	short_name = yes
	norwegian = "Vestergøtland"
	danish = "Vestergøtland"
	norse = "Vestergautland"
	pagan_coa = {
		template = 0
		religion = "norse_pagan"
		layer = {
			texture = 2
			texture_internal = 11
			emblem = 0
			color = 0
			color = 0
			color = 0
		}
	}
	gain_effect = {
		primary_title = { copy_title_laws = k_vastergotland }
		
		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 = {
			AND = {
				culture_group = lappland_grp
				religion_group = pagan_group
			
				primary_title = { title = k_vastergotland }
				num_of_king_titles = 3
			}
			e_vastergotland = {
				is_titular = no
			}
		}

	}
}

k_norrland = {
	color = { 0 13 155 }
	color2 = { 255 255 255 }
	capital = 285
	gain_effect = {
		primary_title = { copy_title_laws = d_norrland }
		
		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 = {
			AND = {
				culture_group = lappland_grp
				religion_group = pagan_group
			
				primary_title = { title = d_norrland }
				num_of_duke_titles = 4
			}
			k_norrland = {
				is_titular = no
			}
		}

	}
}

e_norrland = {
	color = { 34 0 155 }
	color2 = { 255 255 255 }
	capital = 285
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_norrland }
		
		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 = {
			AND = {
				culture_group = lappland_grp
				religion_group = pagan_group
			
				primary_title = { title = k_norrland }
				num_of_king_titles = 3
			}
			e_norrland = {
				is_titular = no
			}
		}

	}
}

k_bergslagen = {
	color = { 127 0 255 }
	color2 = { 255 255 255 }
	capital = 288
	gain_effect = {
		primary_title = { copy_title_laws = d_bergslagen }
		
		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 = {
			AND = {
				culture_group = lappland_grp
				religion_group = pagan_group
			
				primary_title = { title = d_bergslagen }
				num_of_duke_titles = 4
			}
			k_bergslagen = {
				is_titular = no
			}
		}

	}
}

e_bergslagen = {
	color = { 234 0 255 }
	color2 = { 255 255 255 }
	capital = 288
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_bergslagen }
		
		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 = {
			AND = {
				culture_group = lappland_grp
				religion_group = pagan_group
			
				primary_title = { title = k_bergslagen }
				num_of_king_titles = 3
			}
			e_bergslagen = {
				is_titular = no
			}
		}

	}
}

k_smaland = {
	color = { 29 0 255 }
	color2 = { 255 255 255 }
	capital = 298
	norse = "Smáland"
	gain_effect = {
		primary_title = { copy_title_laws = d_smaland }
		
		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 = {
			AND = {
				culture_group = holstein_grp
				religion_group = pagan_group
			
				primary_title = { title = d_smaland }
				num_of_duke_titles = 4
			}
			k_smaland = {
				is_titular = no
			}
		}

	}
}

e_smaland = {
	color = { 0 108 255 }
	color2 = { 255 255 255 }
	capital = 298
	short_name = yes
	norse = "Smáland"
	gain_effect = {
		primary_title = { copy_title_laws = k_smaland }
		
		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 = {
			AND = {
				culture_group = holstein_grp
				religion_group = pagan_group
			
				primary_title = { title = k_smaland }
				num_of_king_titles = 3
			}
			e_smaland = {
				is_titular = no
			}
		}

	}
}

k_skane = {
	color = { 210 2 52 }
	color2 = { 255 255 255 }
	capital = 303
	english = "Scania"
	gain_effect = {
		primary_title = { copy_title_laws = d_skane }
		
		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 = {
			AND = {
				culture_group = holstein_grp
				religion_group = pagan_group
			
				primary_title = { title = d_skane }
				num_of_duke_titles = 4
			}
			k_skane = {
				is_titular = no
			}
		}

	}
}

e_skane = {
	color = { 210 2 89 }
	color2 = { 255 255 255 }
	capital = 303
	short_name = yes
	english = "Scania"
	gain_effect = {
		primary_title = { copy_title_laws = k_skane }
		
		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 = {
			AND = {
				culture_group = holstein_grp
				religion_group = pagan_group
			
				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
	dignity = 8
	swedish = "Själland"
	english = "Zealand"
	norse = "Sjælland"
	pagan_coa = {
		template = 0
		religion = "norse_pagan"
		layer = {
			texture = 2
			texture_internal = 7
			emblem = 0
			color = 0
			color = 0
			color = 0
		}
	}
	gain_effect = {
		primary_title = { copy_title_laws = d_sjaelland }
		
		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 = {
			AND = {
				culture_group = holstein_grp
				religion_group = pagan_group
			
				primary_title = { title = d_sjaelland }
				num_of_duke_titles = 4
			}
			k_sjaelland = {
				is_titular = no
			}
		}

	}
}

e_sjaelland = {
	color = { 206 57 173 }
	color2 = { 255 255 255 }
	capital = 266
	short_name = yes
	dignity = 8
	swedish = "Själland"
	english = "Zealand"
	norse = "Sjælland"
	pagan_coa = {
		template = 0
		religion = "norse_pagan"
		layer = {
			texture = 2
			texture_internal = 7
			emblem = 0
			color = 0
			color = 0
			color = 0
		}
	}
	gain_effect = {
		primary_title = { copy_title_laws = k_sjaelland }
		
		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 = {
			AND = {
				culture_group = holstein_grp
				religion_group = pagan_group
			
				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
	german = "Schleswig"
	pagan_coa = {
		template = 0
		religion = "norse_pagan"
		layer = {
			texture = 2
			texture_internal = 0
			emblem = 0
			color = 0
			color = 0
			color = 0
		}
	}
	gain_effect = {
		primary_title = { copy_title_laws = d_slesvig }
		
		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 = {
			AND = {
				culture_group = holstein_grp
				religion_group = pagan_group
			
				primary_title = { title = d_slesvig }
				num_of_duke_titles = 4
			}
			k_slesvig = {
				is_titular = no
			}
		}

	}
}

e_slesvig = {
	color = { 224 74 137 }
	color2 = { 255 255 255 }
	capital = 267
	short_name = yes
	german = "Schleswig"
	pagan_coa = {
		template = 0
		religion = "norse_pagan"
		layer = {
			texture = 2
			texture_internal = 0
			emblem = 0
			color = 0
			color = 0
			color = 0
		}
	}
	gain_effect = {
		primary_title = { copy_title_laws = k_slesvig }
		
		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 = {
			AND = {
				culture_group = holstein_grp
				religion_group = pagan_group
			
				primary_title = { title = k_slesvig }
				num_of_king_titles = 3
			}
			e_slesvig = {
				is_titular = no
			}
		}

	}
}

k_holstein = {
	color = { 172 130 112 }
	color2 = { 255 255 255 }
	capital = 263
	gain_effect = {
		primary_title = { copy_title_laws = d_holstein }
		
		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 = {
			AND = {
				culture_group = holstein_grp
				religion_group = pagan_group
			
				primary_title = { title = d_holstein }
				num_of_duke_titles = 4
			}
			k_holstein = {
				is_titular = no
			}
		}

	}
}

e_holstein = {
	color = { 172 130 112 }
	color2 = { 255 255 255 }
	capital = 263
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_holstein }
		
		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 = {
			AND = {
				culture_group = holstein_grp
				religion_group = pagan_group
			
				primary_title = { title = k_holstein }
				num_of_king_titles = 3
			}
			e_holstein = {
				is_titular = no
			}
		}

	}
}

k_iceland = {
	color = { 190 201 255 }
	color2 = { 220 220 220 }
	capital = 1
	gain_effect = {
		primary_title = { copy_title_laws = d_iceland }
		
		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 = {
			AND = {
				culture_group = north_germanic
				religion_group = pagan_group
			
				primary_title = { title = d_iceland }
				num_of_duke_titles = 4
			}
			k_iceland = {
				is_titular = no
			}
		}

	}
}

e_iceland = {
	color = { 190 216 255 }
	color2 = { 220 220 220 }
	capital = 1
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_iceland }
		
		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 = {
			AND = {
				culture_group = north_germanic
				religion_group = pagan_group
			
				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
	norse = "Norðreyjar"
	pagan_coa = {
		template = 0
		religion = "norse_pagan"
		layer = {
			texture = 2
			texture_internal = 5
			emblem = 0
			color = 0
			color = 0
			color = 0
		}
	}
	gain_effect = {
		primary_title = { copy_title_laws = d_orkney }
		
		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 = {
			AND = {
				culture_group = north_germanic
				religion_group = pagan_group
			
				primary_title = { title = d_orkney }
				num_of_duke_titles = 4
			}
			k_orkney = {
				is_titular = no
			}
		}

	}
}

e_orkney = {
	color = { 0 186 255 }
	color2 = { 255 255 255 }
	capital = 36
	short_name = yes
	norse = "Norðreyjar"
	pagan_coa = {
		template = 0
		religion = "norse_pagan"
		layer = {
			texture = 2
			texture_internal = 5
			emblem = 0
			color = 0
			color = 0
			color = 0
		}
	}
	gain_effect = {
		primary_title = { copy_title_laws = k_orkney }
		
		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 = {
			AND = {
				culture_group = north_germanic
				religion_group = pagan_group
			
				primary_title = { title = k_orkney }
				num_of_king_titles = 3
			}
			e_orkney = {
				is_titular = no
			}
		}

	}
}

k_vestlandet = {
	color = { 75 50 245 }
	color2 = { 255 255 255 }
	capital = 274
	gain_effect = {
		primary_title = { copy_title_laws = d_vestlandet }
		
		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 = {
			AND = {
				culture_group = lappland_grp
				religion_group = pagan_group
			
				primary_title = { title = d_vestlandet }
				num_of_duke_titles = 4
			}
			k_vestlandet = {
				is_titular = no
			}
		}

	}
}

e_vestlandet = {
	color = { 87 50 245 }
	color2 = { 255 255 255 }
	capital = 274
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_vestlandet }
		
		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 = {
			AND = {
				culture_group = lappland_grp
				religion_group = pagan_group
			
				primary_title = { title = k_vestlandet }
				num_of_king_titles = 3
			}
			e_vestlandet = {
				is_titular = no
			}
		}

	}
}

k_ostlandet = {
	color = { 120 205 245 }
	color2 = { 255 255 255 }
	capital = 272
	pagan_coa = {
		template = 0
		religion = "norse_pagan"
		layer = {
			texture = 2
			texture_internal = 6
			emblem = 0
			color = 0
			color = 0
			color = 0
		}
	}
	gain_effect = {
		primary_title = { copy_title_laws = d_ostlandet }
		
		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 = {
			AND = {
				culture_group = lappland_grp
				religion_group = pagan_group
			
				primary_title = { title = d_ostlandet }
				num_of_duke_titles = 4
			}
			k_ostlandet = {
				is_titular = no
			}
		}

	}
}

e_ostlandet = {
	color = { 120 235 245 }
	color2 = { 255 255 255 }
	capital = 272
	short_name = yes
	pagan_coa = {
		template = 0
		religion = "norse_pagan"
		layer = {
			texture = 2
			texture_internal = 6
			emblem = 0
			color = 0
			color = 0
			color = 0
		}
	}
	gain_effect = {
		primary_title = { copy_title_laws = k_ostlandet }
		
		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 = {
			AND = {
				culture_group = lappland_grp
				religion_group = pagan_group
			
				primary_title = { title = k_ostlandet }
				num_of_king_titles = 3
			}
			e_ostlandet = {
				is_titular = no
			}
		}

	}
}

k_trondelag = {
	color = { 40 134 255 }
	color2 = { 255 255 255 }
	capital = 275
	swedish = "Tröndelag"
	german = "Tröndelag"
	norse = "Tröndelag"
	pagan_coa = {
		template = 0
		religion = "norse_pagan"
		layer = {
			texture = 2
			texture_internal = 9
			emblem = 0
			color = 0
			color = 0
			color = 0
		}
	}
	gain_effect = {
		primary_title = { copy_title_laws = d_trondelag }
		
		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 = {
			AND = {
				culture_group = lappland_grp
				religion_group = pagan_group
			
				primary_title = { title = d_trondelag }
				num_of_duke_titles = 4
			}
			k_trondelag = {
				is_titular = no
			}
		}

	}
}

e_trondelag = {
	color = { 62 40 255 }
	color2 = { 255 255 255 }
	capital = 275
	short_name = yes
	swedish = "Tröndelag"
	german = "Tröndelag"
	norse = "Tröndelag"
	pagan_coa = {
		template = 0
		religion = "norse_pagan"
		layer = {
			texture = 2
			texture_internal = 9
			emblem = 0
			color = 0
			color = 0
			color = 0
		}
	}
	gain_effect = {
		primary_title = { copy_title_laws = k_trondelag }
		
		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 = {
			AND = {
				culture_group = lappland_grp
				religion_group = pagan_group
			
				primary_title = { title = k_trondelag }
				num_of_king_titles = 3
			}
			e_trondelag = {
				is_titular = no
			}
		}

	}
}

k_jamtland = {
	color = { 15 159 239 }
	color2 = { 255 255 255 }
	capital = 282
	norwegian = "Jemtland"
	danish = "Jemtland"
	norse = "Jamtaland"
	gain_effect = {
		primary_title = { copy_title_laws = d_jamtland }
		
		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 = {
			AND = {
				culture_group = lappland_grp
				religion_group = pagan_group
			
				primary_title = { title = d_jamtland }
				num_of_duke_titles = 4
			}
			k_jamtland = {
				is_titular = no
			}
		}

	}
}

e_jamtland = {
	color = { 15 91 239 }
	color2 = { 255 255 255 }
	capital = 282
	short_name = yes
	norwegian = "Jemtland"
	danish = "Jemtland"
	norse = "Jamtaland"
	gain_effect = {
		primary_title = { copy_title_laws = k_jamtland }
		
		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 = {
			AND = {
				culture_group = lappland_grp
				religion_group = pagan_group
			
				primary_title = { title = k_jamtland }
				num_of_king_titles = 3
			}
			e_jamtland = {
				is_titular = no
			}
		}

	}
}

k_esthonia = {
	color = { 150 75 98 }
	color2 = { 255 255 255 }
	capital = 378
	gain_effect = {
		primary_title = { copy_title_laws = d_esthonia }
		
		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 = {
			AND = {
				culture_group = lappland_grp
				religion_group = pagan_group
			
				primary_title = { title = d_esthonia }
				num_of_duke_titles = 4
			}
			k_esthonia = {
				is_titular = no
			}
		}

	}
}

e_esthonia = {
	color = { 150 75 120 }
	color2 = { 255 255 255 }
	capital = 378
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_esthonia }
		
		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 = {
			AND = {
				culture_group = lappland_grp
				religion_group = pagan_group
			
				primary_title = { title = k_esthonia }
				num_of_king_titles = 3
			}
			e_esthonia = {
				is_titular = no
			}
		}

	}
}

k_karelia = {
	color = { 155 109 45 }
	color2 = { 255 255 255 }
	capital = 388
	swedish = "Karelen"
	danish = "Karelen"
	norse = "Karelen"
	norwegian = "Karelen"
	russian = "Kareliya"
	gain_effect = {
		primary_title = { copy_title_laws = d_karelia }
		
		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 = {
			AND = {
				culture_group = lappland_grp
				religion_group = pagan_group
			
				primary_title = { title = d_karelia }
				num_of_duke_titles = 4
			}
			k_karelia = {
				is_titular = no
			}
		}

	}
}

e_karelia = {
	color = { 155 49 45 }
	color2 = { 255 255 255 }
	capital = 388
	short_name = yes
	swedish = "Karelen"
	danish = "Karelen"
	norse = "Karelen"
	norwegian = "Karelen"
	russian = "Kareliya"
	gain_effect = {
		primary_title = { copy_title_laws = k_karelia }
		
		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 = {
			AND = {
				culture_group = lappland_grp
				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 = {
		primary_title = { copy_title_laws = d_mazovia }
		
		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 = {
			AND = {
				culture_group = holstein_grp
				religion_group = pagan_group
			
				primary_title = { title = d_mazovia }
				num_of_duke_titles = 4
			}
			k_mazovia = {
				is_titular = no
			}
		}

	}
}

e_mazovia = {
	color = { 125 41 36 }
	color2 = { 255 255 255 }
	capital = 529
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_mazovia }
		
		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 = {
			AND = {
				culture_group = holstein_grp
				religion_group = pagan_group
			
				primary_title = { title = k_mazovia }
				num_of_king_titles = 3
			}
			e_mazovia = {
				is_titular = no
			}
		}

	}
}

k_greater_poland = {
	color = { 140 13 21 }
	color2 = { 255 255 255 }
	capital = 429
	gain_effect = {
		primary_title = { copy_title_laws = d_greater_poland }
		
		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 = {
			AND = {
				culture_group = holstein_grp
				religion_group = pagan_group
			
				primary_title = { title = d_greater_poland }
				num_of_duke_titles = 4
			}
			k_greater_poland = {
				is_titular = no
			}
		}

	}
}

e_greater_poland = {
	color = { 140 13 43 }
	color2 = { 255 255 255 }
	capital = 429
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_greater_poland }
		
		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 = {
			AND = {
				culture_group = holstein_grp
				religion_group = pagan_group
			
				primary_title = { title = k_greater_poland }
				num_of_king_titles = 3
			}
			e_greater_poland = {
				is_titular = no
			}
		}

	}
}

k_silesia = {
	color = { 169 35 115 }
	color2 = { 255 255 255 }
	capital = 435
	gain_effect = {
		primary_title = { copy_title_laws = d_silesia }
		
		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 = {
			AND = {
				culture_group = holstein_grp
				religion_group = pagan_group
			
				primary_title = { title = d_silesia }
				num_of_duke_titles = 4
			}
			k_silesia = {
				is_titular = no
			}
		}

	}
}

e_silesia = {
	color = { 169 35 99 }
	color2 = { 255 255 255 }
	capital = 435
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_silesia }
		
		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 = {
			AND = {
				culture_group = holstein_grp
				religion_group = pagan_group
			
				primary_title = { title = k_silesia }
				num_of_king_titles = 3
			}
			e_silesia = {
				is_titular = no
			}
		}

	}
}

k_lesser_poland = {
	color = { 245 165 163 }
	color2 = { 255 255 255 }
	capital = 527
	gain_effect = {
		primary_title = { copy_title_laws = d_lesser_poland }
		
		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 = {
			AND = {
				culture_group = holstein_grp
				religion_group = pagan_group
			
				primary_title = { title = d_lesser_poland }
				num_of_duke_titles = 4
			}
			k_lesser_poland = {
				is_titular = no
			}
		}

	}
}

e_lesser_poland = {
	color = { 245 204 163 }
	color2 = { 255 255 255 }
	capital = 527
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_lesser_poland }
		
		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 = {
			AND = {
				culture_group = holstein_grp
				religion_group = pagan_group
			
				primary_title = { title = k_lesser_poland }
				num_of_king_titles = 3
			}
			e_lesser_poland = {
				is_titular = no
			}
		}

	}
}

k_kuyavia = {
	color = { 115 30 65 }
	color2 = { 255 255 255 }
	capital = 428
	gain_effect = {
		primary_title = { copy_title_laws = d_kuyavia }
		
		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 = {
			AND = {
				culture_group = holstein_grp
				religion_group = pagan_group
			
				primary_title = { title = d_kuyavia }
				num_of_duke_titles = 4
			}
			k_kuyavia = {
				is_titular = no
			}
		}

	}
}

e_kuyavia = {
	color = { 115 30 70 }
	color2 = { 255 255 255 }
	capital = 428
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_kuyavia }
		
		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 = {
			AND = {
				culture_group = holstein_grp
				religion_group = pagan_group
			
				primary_title = { title = k_kuyavia }
				num_of_king_titles = 3
			}
			e_kuyavia = {
				is_titular = no
			}
		}

	}
}

k_mecklemburg = {
	color = { 162 157 110 }
	color2 = { 255 255 255 }
	capital = 260
	pommeranian = "Weligrad"
	gain_effect = {
		primary_title = { copy_title_laws = d_mecklemburg }
		
		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 = {
			AND = {
				culture_group = holstein_grp
				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
	short_name = yes
	pommeranian = "Weligrad"
	gain_effect = {
		primary_title = { copy_title_laws = k_mecklemburg }
		
		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 = {
			AND = {
				culture_group = holstein_grp
				religion_group = pagan_group
			
				primary_title = { title = k_mecklemburg }
				num_of_king_titles = 3
			}
			e_mecklemburg = {
				is_titular = no
			}
		}

	}
}

k_pommerania = {
	color = { 78 143 51 }
	color2 = { 255 255 255 }
	capital = 366
	gain_effect = {
		primary_title = { copy_title_laws = d_pommerania }
		
		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 = {
			AND = {
				culture_group = holstein_grp
				religion_group = pagan_group
			
				primary_title = { title = d_pommerania }
				num_of_duke_titles = 4
			}
			k_pommerania = {
				is_titular = no
			}
		}

	}
}

e_pommerania = {
	color = { 78 143 51 }
	color2 = { 255 255 255 }
	capital = 366
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_pommerania }
		
		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 = {
			AND = {
				culture_group = holstein_grp
				religion_group = pagan_group
			
				primary_title = { title = k_pommerania }
				num_of_king_titles = 3
			}
			e_pommerania = {
				is_titular = no
			}
		}

	}
}

k_pomeralia = {
	color = { 88 135 77 }
	color2 = { 255 255 255 }
	capital = 368
	gain_effect = {
		primary_title = { copy_title_laws = d_pomeralia }
		
		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 = {
			AND = {
				culture_group = holstein_grp
				religion_group = pagan_group
			
				primary_title = { title = d_pomeralia }
				num_of_duke_titles = 4
			}
			k_pomeralia = {
				is_titular = no
			}
		}

	}
}

e_pomeralia = {
	color = { 81 135 77 }
	color2 = { 255 255 255 }
	capital = 368
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_pomeralia }
		
		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 = {
			AND = {
				culture_group = holstein_grp
				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 = {
		primary_title = { copy_title_laws = d_saxony }
		
		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 = {
			AND = {
				culture_group = holstein_grp
				religion_group = pagan_group
			
				primary_title = { title = d_saxony }
				num_of_duke_titles = 4
			}
			k_saxony = {
				is_titular = no
			}
		}

	}
}

e_saxony = {
	color = { 164 162 163 }
	color2 = { 255 255 255 }
	capital = 310
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_saxony }
		
		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 = {
			AND = {
				culture_group = holstein_grp
				religion_group = pagan_group
			
				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
	pommeranian = "Brennaburg"
	gain_effect = {
		primary_title = { copy_title_laws = d_brandenburg }
		
		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 = {
			AND = {
				culture_group = holstein_grp
				religion_group = pagan_group
			
				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
	short_name = yes
	pommeranian = "Brennaburg"
	gain_effect = {
		primary_title = { copy_title_laws = k_brandenburg }
		
		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 = {
			AND = {
				culture_group = holstein_grp
				religion_group = pagan_group
			
				primary_title = { title = k_brandenburg }
				num_of_king_titles = 3
			}
			e_brandenburg = {
				is_titular = no
			}
		}

	}
}

k_meissen = {
	color = { 184 188 181 }
	color2 = { 255 255 255 }
	capital = 312
	pommeranian = "Nisani"
	gain_effect = {
		primary_title = { copy_title_laws = d_meissen }
		
		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 = {
			AND = {
				culture_group = holstein_grp
				religion_group = pagan_group
			
				primary_title = { title = d_meissen }
				num_of_duke_titles = 4
			}
			k_meissen = {
				is_titular = no
			}
		}

	}
}

e_meissen = {
	color = { 185 188 181 }
	color2 = { 255 255 255 }
	capital = 312
	short_name = yes
	pommeranian = "Nisani"
	gain_effect = {
		primary_title = { copy_title_laws = k_meissen }
		
		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 = {
			AND = {
				culture_group = holstein_grp
				religion_group = pagan_group
			
				primary_title = { title = k_meissen }
				num_of_king_titles = 3
			}
			e_meissen = {
				is_titular = no
			}
		}

	}
}

k_livonia = {
	color = { 110 50 50 }
	color2 = { 255 255 255 }
	capital = 377
	pagan_coa = {
		template = 0
		religion = "norse_pagan"
		layer = {
			texture = 2
			texture_internal = 2
			emblem = 0
			color = 0
			color = 0
			color = 0
		}
	}
	gain_effect = {
		primary_title = { copy_title_laws = d_livonia }
		
		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 = {
			AND = {
				culture_group = lappland_grp
				religion_group = pagan_group
			
				primary_title = { title = d_livonia }
				num_of_duke_titles = 4
			}
			k_livonia = {
				is_titular = no
			}
		}

	}
}

e_livonia = {
	color = { 110 68 50 }
	color2 = { 255 255 255 }
	capital = 377
	short_name = yes
	pagan_coa = {
		template = 0
		religion = "norse_pagan"
		layer = {
			texture = 2
			texture_internal = 2
			emblem = 0
			color = 0
			color = 0
			color = 0
		}
	}
	gain_effect = {
		primary_title = { copy_title_laws = k_livonia }
		
		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 = {
			AND = {
				culture_group = lappland_grp
				religion_group = pagan_group
			
				primary_title = { title = k_livonia }
				num_of_king_titles = 3
			}
			e_livonia = {
				is_titular = no
			}
		}

	}
}

k_prussia = {
	color = { 200 112 100 }
	color2 = { 255 255 255 }
	capital = 370
	gain_effect = {
		primary_title = { copy_title_laws = d_prussia }
		
		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 = {
			AND = {
				culture_group = holstein_grp
				religion_group = pagan_group
			
				primary_title = { title = d_prussia }
				num_of_duke_titles = 4
			}
			k_prussia = {
				is_titular = no
			}
		}

	}
}

e_prussia = {
	color = { 200 172 100 }
	color2 = { 255 255 255 }
	capital = 370
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_prussia }
		
		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 = {
			AND = {
				culture_group = holstein_grp
				religion_group = pagan_group
			
				primary_title = { title = k_prussia }
				num_of_king_titles = 3
			}
			e_prussia = {
				is_titular = no
			}
		}

	}
}

k_polotsk = {
	color = { 126 133 104 }
	color2 = { 255 255 255 }
	capital = 419
	gain_effect = {
		primary_title = { copy_title_laws = d_polotsk }
		
		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 = {
			AND = {
				culture_group = lappland_grp
				religion_group = pagan_group
			
				primary_title = { title = d_polotsk }
				num_of_duke_titles = 4
			}
			k_polotsk = {
				is_titular = no
			}
		}

	}
}

e_polotsk = {
	color = { 116 133 104 }
	color2 = { 255 255 255 }
	capital = 419
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_polotsk }
		
		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 = {
			AND = {
				culture_group = lappland_grp
				religion_group = pagan_group
			
				primary_title = { title = k_polotsk }
				num_of_king_titles = 3
			}
			e_polotsk = {
				is_titular = no
			}
		}

	}
}

k_lithuanians = {
	color = { 81 5 0 }
	color2 = { 255 255 255 }
	capital = 420
	gain_effect = {
		primary_title = { copy_title_laws = d_lithuanians }
		
		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 = {
			AND = {
				culture_group = lappland_grp
				religion_group = pagan_group
			
				primary_title = { title = d_lithuanians }
				num_of_duke_titles = 4
			}
			k_lithuanians = {
				is_titular = no
			}
		}

	}
}

e_lithuanians = {
	color = { 81 44 0 }
	color2 = { 255 255 255 }
	capital = 420
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_lithuanians }
		
		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 = {
			AND = {
				culture_group = lappland_grp
				religion_group = pagan_group
			
				primary_title = { title = k_lithuanians }
				num_of_king_titles = 3
			}
			e_lithuanians = {
				is_titular = no
			}
		}

	}
}

k_grodno = {
	color = { 131 30 66 }
	color2 = { 255 255 255 }
	capital = 424
	gain_effect = {
		primary_title = { copy_title_laws = d_grodno }
		
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_grodno = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_grodno
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = holstein_grp
				religion_group = pagan_group
			
				primary_title = { title = d_grodno }
				num_of_duke_titles = 4
			}
			k_grodno = {
				is_titular = no
			}
		}

	}
}

e_grodno = {
	color = { 131 30 103 }
	color2 = { 255 255 255 }
	capital = 424
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_grodno }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_grodno = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_grodno
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = holstein_grp
				religion_group = pagan_group
			
				primary_title = { title = k_grodno }
				num_of_king_titles = 3
			}
			e_grodno = {
				is_titular = no
			}
		}

	}
}

k_courland = {
	color = { 182 16 66 }
	color2 = { 255 255 255 }
	capital = 373
	german = "Kurland"
	swedish = "Kurland"
	norse = "Kurland"
	danish = "Kurland"
	norwegian = "Kurland"
	gain_effect = {
		primary_title = { copy_title_laws = d_courland }
		
		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 = {
			AND = {
				culture_group = lappland_grp
				religion_group = pagan_group
			
				primary_title = { title = d_courland }
				num_of_duke_titles = 4
			}
			k_courland = {
				is_titular = no
			}
		}

	}
}

e_courland = {
	color = { 182 16 36 }
	color2 = { 255 255 255 }
	capital = 373
	short_name = yes
	german = "Kurland"
	swedish = "Kurland"
	norse = "Kurland"
	danish = "Kurland"
	norwegian = "Kurland"
	gain_effect = {
		primary_title = { copy_title_laws = k_courland }
		
		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 = {
			AND = {
				culture_group = lappland_grp
				religion_group = pagan_group
			
				primary_title = { title = k_courland }
				num_of_king_titles = 3
			}
			e_courland = {
				is_titular = no
			}
		}

	}
}

k_samogitia = {
	color = { 150 70 99 }
	color2 = { 255 255 255 }
	capital = 421
	german = "Sameiten"
	prussian = "Zhmud"
	lithuanian = "Zemaitija"
	polish = "Zhmudz"
	russian = "Zhmud"
	pommeranian = "Zhmud"
	bohemian = "Zhmud"
	lettigallish = "Zemaiteje"
	gain_effect = {
		primary_title = { copy_title_laws = d_samogitia }
		
		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 = {
			AND = {
				culture_group = lappland_grp
				religion_group = pagan_group
			
				primary_title = { title = d_samogitia }
				num_of_duke_titles = 4
			}
			k_samogitia = {
				is_titular = no
			}
		}

	}
}

e_samogitia = {
	color = { 150 70 128 }
	color2 = { 255 255 255 }
	capital = 421
	short_name = yes
	german = "Sameiten"
	prussian = "Zhmud"
	lithuanian = "Zemaitija"
	polish = "Zhmudz"
	russian = "Zhmud"
	pommeranian = "Zhmud"
	bohemian = "Zhmud"
	lettigallish = "Zemaiteje"
	gain_effect = {
		primary_title = { copy_title_laws = k_samogitia }
		
		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 = {
			AND = {
				culture_group = lappland_grp
				religion_group = pagan_group
			
				primary_title = { title = k_samogitia }
				num_of_king_titles = 3
			}
			e_samogitia = {
				is_titular = no
			}
		}

	}
}

k_beloozero = {
	color = { 124 146 86 }
	color2 = { 255 255 255 }
	capital = 408
	finnish = "Chud"
	samoyed = "Chud"
	mordvin = "Chud"
	lappish = "Chud"
	komi = "Chud"
	gain_effect = {
		primary_title = { copy_title_laws = d_beloozero }
		
		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 = {
			AND = {
				culture_group = lappland_grp
				religion_group = pagan_group
			
				primary_title = { title = d_beloozero }
				num_of_duke_titles = 4
			}
			k_beloozero = {
				is_titular = no
			}
		}

	}
}

e_beloozero = {
	color = { 106 146 86 }
	color2 = { 255 255 255 }
	capital = 408
	short_name = yes
	finnish = "Chud"
	samoyed = "Chud"
	mordvin = "Chud"
	lappish = "Chud"
	komi = "Chud"
	gain_effect = {
		primary_title = { copy_title_laws = k_beloozero }
		
		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 = {
			AND = {
				culture_group = lappland_grp
				religion_group = pagan_group
			
				primary_title = { title = k_beloozero }
				num_of_king_titles = 3
			}
			e_beloozero = {
				is_titular = no
			}
		}

	}
}

k_novgorod = {
	color = { 83 164 64 }
	color2 = { 255 255 255 }
	capital = 414
	swedish = "Holmgård"
	norse = "Holmgarðr"
	danish = "Holmgård"
	norwegian = "Holmgård"
	pagan_coa = {
		template = 0
		religion = "norse_pagan"
		layer = {
			texture = 2
			texture_internal = 4
			emblem = 0
			color = 0
			color = 0
			color = 0
		}
	}
	gain_effect = {
		primary_title = { copy_title_laws = d_novgorod }
		
		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 = {
			AND = {
				culture_group = lappland_grp
				religion_group = pagan_group
			
				primary_title = { title = d_novgorod }
				num_of_duke_titles = 4
			}
			k_novgorod = {
				is_titular = no
			}
		}

	}
}

e_novgorod = {
	color = { 77 164 64 }
	color2 = { 255 255 255 }
	capital = 414
	short_name = yes
	swedish = "Holmgård"
	norse = "Holmgarðr"
	danish = "Holmgård"
	norwegian = "Holmgård"
	pagan_coa = {
		template = 0
		religion = "norse_pagan"
		layer = {
			texture = 2
			texture_internal = 4
			emblem = 0
			color = 0
			color = 0
			color = 0
		}
	}
	gain_effect = {
		primary_title = { copy_title_laws = k_novgorod }
		
		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 = {
			AND = {
				culture_group = lappland_grp
				religion_group = pagan_group
			
				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 = {
		primary_title = { copy_title_laws = d_rostov }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = pagan_group
			
				primary_title = { title = d_rostov }
				num_of_duke_titles = 4
			}
			k_rostov = {
				is_titular = no
			}
		}

	}
}

e_rostov = {
	color = { 115 137 89 }
	color2 = { 255 255 255 }
	capital = 574
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_rostov }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = pagan_group
			
				primary_title = { title = k_rostov }
				num_of_king_titles = 3
			}
			e_rostov = {
				is_titular = no
			}
		}

	}
}

k_tver = {
	color = { 162 183 125 }
	color2 = { 255 255 255 }
	capital = 570
	gain_effect = {
		primary_title = { copy_title_laws = d_tver }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = pagan_group
			
				primary_title = { title = d_tver }
				num_of_duke_titles = 4
			}
			k_tver = {
				is_titular = no
			}
		}

	}
}

e_tver = {
	color = { 159 183 125 }
	color2 = { 255 255 255 }
	capital = 570
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_tver }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = pagan_group
			
				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 = {
		primary_title = { copy_title_laws = d_yaroslavl }
		
		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 = {
			AND = {
				culture_group = lappland_grp
				religion_group = pagan_group
			
				primary_title = { title = d_yaroslavl }
				num_of_duke_titles = 4
			}
			k_yaroslavl = {
				is_titular = no
			}
		}

	}
}

e_yaroslavl = {
	color = { 192 161 134 }
	color2 = { 255 255 255 }
	capital = 572
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_yaroslavl }
		
		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 = {
			AND = {
				culture_group = lappland_grp
				religion_group = pagan_group
			
				primary_title = { title = k_yaroslavl }
				num_of_king_titles = 3
			}
			e_yaroslavl = {
				is_titular = no
			}
		}

	}
}

k_vladimir = {
	color = { 147 200 90 }
	color2 = { 255 255 255 }
	capital = 582
	gain_effect = {
		primary_title = { copy_title_laws = d_vladimir }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = pagan_group
			
				primary_title = { title = d_vladimir }
				num_of_duke_titles = 4
			}
			k_vladimir = {
				is_titular = no
			}
		}

	}
}

e_vladimir = {
	color = { 101 200 90 }
	color2 = { 255 255 255 }
	capital = 582
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_vladimir }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = pagan_group
			
				primary_title = { title = k_vladimir }
				num_of_king_titles = 3
			}
			e_vladimir = {
				is_titular = no
			}
		}

	}
}

k_moskva = {
	color = { 222 219 123 }
	color2 = { 255 255 255 }
	capital = 575
	gain_effect = {
		primary_title = { copy_title_laws = d_moskva }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = pagan_group
			
				primary_title = { title = d_moskva }
				num_of_duke_titles = 4
			}
			k_moskva = {
				is_titular = no
			}
		}

	}
}

e_moskva = {
	color = { 219 222 123 }
	color2 = { 255 255 255 }
	capital = 575
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_moskva }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = pagan_group
			
				primary_title = { title = k_moskva }
				num_of_king_titles = 3
			}
			e_moskva = {
				is_titular = no
			}
		}

	}
}

k_kiev = {
	color = { 151 187 125 }
	color2 = { 255 255 255 }
	capital = 547
	dignity = 10
	norse = "Könugarðr"
	swedish = "Könugård"
	norwegian = "Kønugård"
	danish = "Kønugård"
	pagan_coa = {
		template = 0
		religion = "norse_pagan"
		layer = {
			texture = 2
			texture_internal = 1
			emblem = 0
			color = 0
			color = 0
			color = 0
		}
	}
	gain_effect = {
		primary_title = { copy_title_laws = d_kiev }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = pagan_group
			
				primary_title = { title = d_kiev }
				num_of_duke_titles = 4
			}
			k_kiev = {
				is_titular = no
			}
		}

	}
}

e_kiev = {
	color = { 148 187 125 }
	color2 = { 255 255 255 }
	capital = 547
	short_name = yes
	dignity = 10
	norse = "Könugarðr"
	swedish = "Könugård"
	norwegian = "Kønugård"
	danish = "Kønugård"
	pagan_coa = {
		template = 0
		religion = "norse_pagan"
		layer = {
			texture = 2
			texture_internal = 1
			emblem = 0
			color = 0
			color = 0
			color = 0
		}
	}
	gain_effect = {
		primary_title = { copy_title_laws = k_kiev }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = pagan_group
			
				primary_title = { title = k_kiev }
				num_of_king_titles = 3
			}
			e_kiev = {
				is_titular = no
			}
		}

	}
}

k_galich = {
	color = { 224 112 150 }
	color2 = { 255 255 255 }
	capital = 536
	gain_effect = {
		primary_title = { copy_title_laws = d_galich }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = pagan_group
			
				primary_title = { title = d_galich }
				num_of_duke_titles = 4
			}
			k_galich = {
				is_titular = no
			}
		}

	}
}

e_galich = {
	color = { 224 112 170 }
	color2 = { 255 255 255 }
	capital = 536
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_galich }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = pagan_group
			
				primary_title = { title = k_galich }
				num_of_king_titles = 3
			}
			e_galich = {
				is_titular = no
			}
		}

	}
}

k_volhynia = {
	color = { 204 160 121 }
	color2 = { 255 255 255 }
	capital = 535
	gain_effect = {
		primary_title = { copy_title_laws = d_volhynia }
		
		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 = {
			AND = {
				culture_group = holstein_grp
				religion_group = pagan_group
			
				primary_title = { title = d_volhynia }
				num_of_duke_titles = 4
			}
			k_volhynia = {
				is_titular = no
			}
		}

	}
}

e_volhynia = {
	color = { 204 185 121 }
	color2 = { 255 255 255 }
	capital = 535
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_volhynia }
		
		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 = {
			AND = {
				culture_group = holstein_grp
				religion_group = pagan_group
			
				primary_title = { title = k_volhynia }
				num_of_king_titles = 3
			}
			e_volhynia = {
				is_titular = no
			}
		}

	}
}

k_turov = {
	color = { 166 112 85 }
	color2 = { 255 255 255 }
	capital = 552
	gain_effect = {
		primary_title = { copy_title_laws = d_turov }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = pagan_group
			
				primary_title = { title = d_turov }
				num_of_duke_titles = 4
			}
			k_turov = {
				is_titular = no
			}
		}

	}
}

e_turov = {
	color = { 166 132 85 }
	color2 = { 255 255 255 }
	capital = 552
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_turov }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = pagan_group
			
				primary_title = { title = k_turov }
				num_of_king_titles = 3
			}
			e_turov = {
				is_titular = no
			}
		}

	}
}

k_vitebsk = {
	color = { 196 70 33 }
	color2 = { 255 255 255 }
	capital = 417
	gain_effect = {
		primary_title = { copy_title_laws = d_vitebsk }
		
		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 = {
			AND = {
				culture_group = lappland_grp
				religion_group = pagan_group
			
				primary_title = { title = d_vitebsk }
				num_of_duke_titles = 4
			}
			k_vitebsk = {
				is_titular = no
			}
		}

	}
}

e_vitebsk = {
	color = { 196 138 33 }
	color2 = { 255 255 255 }
	capital = 417
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_vitebsk }
		
		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 = {
			AND = {
				culture_group = lappland_grp
				religion_group = pagan_group
			
				primary_title = { title = k_vitebsk }
				num_of_king_titles = 3
			}
			e_vitebsk = {
				is_titular = no
			}
		}

	}
}

k_smolensk = {
	color = { 241 235 182 }
	color2 = { 255 255 255 }
	capital = 568
	gain_effect = {
		primary_title = { copy_title_laws = d_smolensk }
		
		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 = {
			AND = {
				culture_group = lappland_grp
				religion_group = pagan_group
			
				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
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_smolensk }
		
		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 = {
			AND = {
				culture_group = lappland_grp
				religion_group = pagan_group
			
				primary_title = { title = k_smolensk }
				num_of_king_titles = 3
			}
			e_smolensk = {
				is_titular = no
			}
		}

	}
}

k_chernigov = {
	color = { 185 235 91 }
	color2 = { 255 255 255 }
	capital = 554
	gain_effect = {
		primary_title = { copy_title_laws = d_chernigov }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = pagan_group
			
				primary_title = { title = d_chernigov }
				num_of_duke_titles = 4
			}
			k_chernigov = {
				is_titular = no
			}
		}

	}
}

e_chernigov = {
	color = { 235 234 91 }
	color2 = { 255 255 255 }
	capital = 554
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_chernigov }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = pagan_group
			
				primary_title = { title = k_chernigov }
				num_of_king_titles = 3
			}
			e_chernigov = {
				is_titular = no
			}
		}

	}
}

k_novgorod-seversk = {
	color = { 106 155 40 }
	color2 = { 255 255 255 }
	capital = 567
	gain_effect = {
		primary_title = { copy_title_laws = d_novgorod-seversk }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = pagan_group
			
				primary_title = { title = d_novgorod-seversk }
				num_of_duke_titles = 4
			}
			k_novgorod-seversk = {
				is_titular = no
			}
		}

	}
}

e_novgorod-seversk = {
	color = { 85 155 40 }
	color2 = { 255 255 255 }
	capital = 567
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_novgorod-seversk }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = pagan_group
			
				primary_title = { title = k_novgorod-seversk }
				num_of_king_titles = 3
			}
			e_novgorod-seversk = {
				is_titular = no
			}
		}

	}
}

k_ryazan = {
	color = { 106 115 45 }
	color2 = { 255 255 255 }
	capital = 580
	gain_effect = {
		primary_title = { copy_title_laws = d_ryazan }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = pagan_group
			
				primary_title = { title = d_ryazan }
				num_of_duke_titles = 4
			}
			k_ryazan = {
				is_titular = no
			}
		}

	}
}

e_ryazan = {
	color = { 64 115 45 }
	color2 = { 255 255 255 }
	capital = 580
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_ryazan }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = pagan_group
			
				primary_title = { title = k_ryazan }
				num_of_king_titles = 3
			}
			e_ryazan = {
				is_titular = no
			}
		}

	}
}

k_pereyaslavl = {
	color = { 232 228 115 }
	color2 = { 255 255 255 }
	capital = 555
	gain_effect = {
		primary_title = { copy_title_laws = d_pereyaslavl }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = pagan_group
			
				primary_title = { title = d_pereyaslavl }
				num_of_duke_titles = 4
			}
			k_pereyaslavl = {
				is_titular = no
			}
		}

	}
}

e_pereyaslavl = {
	color = { 229 232 115 }
	color2 = { 255 255 255 }
	capital = 555
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_pereyaslavl }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = pagan_group
			
				primary_title = { title = k_pereyaslavl }
				num_of_king_titles = 3
			}
			e_pereyaslavl = {
				is_titular = no
			}
		}

	}
}

k_hlynov = {
	color = { 93 145 31 }
	color2 = { 255 255 255 }
	capital = 401
	gain_effect = {
		primary_title = { copy_title_laws = d_hlynov }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = pagan_group
			
				primary_title = { title = d_hlynov }
				num_of_duke_titles = 4
			}
			k_hlynov = {
				is_titular = no
			}
		}

	}
}

e_hlynov = {
	color = { 120 145 31 }
	color2 = { 255 255 255 }
	capital = 401
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_hlynov }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = pagan_group
			
				primary_title = { title = k_hlynov }
				num_of_king_titles = 3
			}
			e_hlynov = {
				is_titular = no
			}
		}

	}
}

k_bjarmia = {
	color = { 81 68 20 }
	color2 = { 255 255 255 }
	capital = 396
	gain_effect = {
		primary_title = { copy_title_laws = d_bjarmia }
		
		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 = {
			AND = {
				culture_group = lappland_grp
				religion_group = pagan_group
			
				primary_title = { title = d_bjarmia }
				num_of_duke_titles = 4
			}
			k_bjarmia = {
				is_titular = no
			}
		}

	}
}

e_bjarmia = {
	color = { 68 81 20 }
	color2 = { 255 255 255 }
	capital = 396
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_bjarmia }
		
		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 = {
			AND = {
				culture_group = lappland_grp
				religion_group = pagan_group
			
				primary_title = { title = k_bjarmia }
				num_of_king_titles = 3
			}
			e_bjarmia = {
				is_titular = no
			}
		}

	}
}

k_itil = {
	color = { 151 118 30 }
	color2 = { 255 255 255 }
	capital = 620
	gain_effect = {
		primary_title = { copy_title_laws = d_itil }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = pagan_group
			
				primary_title = { title = d_itil }
				num_of_duke_titles = 4
			}
			k_itil = {
				is_titular = no
			}
		}

	}
}

e_itil = {
	color = { 151 67 30 }
	color2 = { 255 255 255 }
	capital = 620
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_itil }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = pagan_group
			
				primary_title = { title = k_itil }
				num_of_king_titles = 3
			}
			e_itil = {
				is_titular = no
			}
		}

	}
}

k_sarkel = {
	color = { 236 192 105 }
	color2 = { 255 255 255 }
	capital = 594
	gain_effect = {
		primary_title = { copy_title_laws = d_sarkel }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = pagan_group
			
				primary_title = { title = d_sarkel }
				num_of_duke_titles = 4
			}
			k_sarkel = {
				is_titular = no
			}
		}

	}
}

e_sarkel = {
	color = { 236 114 105 }
	color2 = { 255 255 255 }
	capital = 594
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_sarkel }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = pagan_group
			
				primary_title = { title = k_sarkel }
				num_of_king_titles = 3
			}
			e_sarkel = {
				is_titular = no
			}
		}

	}
}

k_aktobe = {
	color = { 198 128 11 }
	color2 = { 255 255 255 }
	capital = 896
	gain_effect = {
		primary_title = { copy_title_laws = d_aktobe }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = pagan_group
			
				primary_title = { title = d_aktobe }
				num_of_duke_titles = 4
			}
			k_aktobe = {
				is_titular = no
			}
		}

	}
}

e_aktobe = {
	color = { 198 94 11 }
	color2 = { 255 255 255 }
	capital = 896
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_aktobe }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = pagan_group
			
				primary_title = { title = k_aktobe }
				num_of_king_titles = 3
			}
			e_aktobe = {
				is_titular = no
			}
		}

	}
}

k_tyumen = {
	color = { 210 185 15 }
	color2 = { 255 255 255 }
	capital = 891
	gain_effect = {
		primary_title = { copy_title_laws = d_tyumen }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = pagan_group
			
				primary_title = { title = d_tyumen }
				num_of_duke_titles = 4
			}
			k_tyumen = {
				is_titular = no
			}
		}

	}
}

e_tyumen = {
	color = { 188 210 15 }
	color2 = { 255 255 255 }
	capital = 891
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_tyumen }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = pagan_group
			
				primary_title = { title = k_tyumen }
				num_of_king_titles = 3
			}
			e_tyumen = {
				is_titular = no
			}
		}

	}
}

k_bulgar = {
	color = { 181 193 63 }
	color2 = { 255 255 255 }
	capital = 610
	gain_effect = {
		primary_title = { copy_title_laws = d_bulgar }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = pagan_group
			
				primary_title = { title = d_bulgar }
				num_of_duke_titles = 4
			}
			k_bulgar = {
				is_titular = no
			}
		}

	}
}

e_bulgar = {
	color = { 193 166 63 }
	color2 = { 255 255 255 }
	capital = 610
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_bulgar }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = pagan_group
			
				primary_title = { title = k_bulgar }
				num_of_king_titles = 3
			}
			e_bulgar = {
				is_titular = no
			}
		}

	}
}

k_cheremisa = {
	color = { 225 99 4 }
	color2 = { 255 255 255 }
	capital = 589
	gain_effect = {
		primary_title = { copy_title_laws = d_cheremisa }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = pagan_group
			
				primary_title = { title = d_cheremisa }
				num_of_duke_titles = 4
			}
			k_cheremisa = {
				is_titular = no
			}
		}

	}
}

e_cheremisa = {
	color = { 225 59 4 }
	color2 = { 255 255 255 }
	capital = 589
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_cheremisa }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = pagan_group
			
				primary_title = { title = k_cheremisa }
				num_of_king_titles = 3
			}
			e_cheremisa = {
				is_titular = no
			}
		}

	}
}

k_cherson = {
	color = { 188 91 166 }
	color2 = { 255 255 20 }
	capital = 560
	gain_effect = {
		primary_title = { copy_title_laws = d_cherson }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = christian
			
				primary_title = { title = d_cherson }
				num_of_duke_titles = 4
			}
			k_cherson = {
				is_titular = no
			}
		}

	}
}

e_cherson = {
	color = { 188 91 177 }
	color2 = { 255 255 20 }
	capital = 560
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_cherson }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = christian
			
				primary_title = { title = k_cherson }
				num_of_king_titles = 3
			}
			e_cherson = {
				is_titular = no
			}
		}

	}
}

k_crimea = {
	color = { 226 133 80 }
	color2 = { 255 255 255 }
	capital = 559
	gain_effect = {
		primary_title = { copy_title_laws = d_crimea }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = pagan_group
			
				primary_title = { title = d_crimea }
				num_of_duke_titles = 4
			}
			k_crimea = {
				is_titular = no
			}
		}

	}
}

e_crimea = {
	color = { 226 133 80 }
	color2 = { 255 255 255 }
	capital = 559
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_crimea }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = pagan_group
			
				primary_title = { title = k_crimea }
				num_of_king_titles = 3
			}
			e_crimea = {
				is_titular = no
			}
		}

	}
}

k_azov = {
	color = { 218 147 130 }
	color2 = { 255 255 255 }
	capital = 597
	gain_effect = {
		primary_title = { copy_title_laws = d_azov }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = pagan_group
			
				primary_title = { title = d_azov }
				num_of_duke_titles = 4
			}
			k_azov = {
				is_titular = no
			}
		}

	}
}

e_azov = {
	color = { 218 137 130 }
	color2 = { 255 255 255 }
	capital = 597
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_azov }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = pagan_group
			
				primary_title = { title = k_azov }
				num_of_king_titles = 3
			}
			e_azov = {
				is_titular = no
			}
		}

	}
}

k_khwarizmian = {
	color = { 224 122 24 }
	color2 = { 255 255 255 }
	capital = 900
	gain_effect = {
		primary_title = { copy_title_laws = d_khwarizmian }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = pagan_group
			
				primary_title = { title = d_khwarizmian }
				num_of_duke_titles = 4
			}
			k_khwarizmian = {
				is_titular = no
			}
		}

	}
}

e_khwarizmian = {
	color = { 224 74 24 }
	color2 = { 255 255 255 }
	capital = 900
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_khwarizmian }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = pagan_group
			
				primary_title = { title = k_khwarizmian }
				num_of_king_titles = 3
			}
			e_khwarizmian = {
				is_titular = no
			}
		}

	}
}

k_merv = {
	color = { 169 201 70 }
	color2 = { 255 255 255 }
	capital = 630
	gain_effect = {
		primary_title = { copy_title_laws = d_merv }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = zoroastrian_group
			
				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
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_merv }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = zoroastrian_group
			
				primary_title = { title = k_merv }
				num_of_king_titles = 3
			}
			e_merv = {
				is_titular = no
			}
		}

	}
}

k_khorasan = {
	color = { 133 150 9 }
	color2 = { 255 255 255 }
	capital = 632
	gain_effect = {
		primary_title = { copy_title_laws = d_khorasan }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = zoroastrian_group
			
				primary_title = { title = d_khorasan }
				num_of_duke_titles = 4
			}
			k_khorasan = {
				is_titular = no
			}
		}

	}
}

e_khorasan = {
	color = { 150 125 9 }
	color2 = { 255 255 255 }
	capital = 632
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_khorasan }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = zoroastrian_group
			
				primary_title = { title = k_khorasan }
				num_of_king_titles = 3
			}
			e_khorasan = {
				is_titular = no
			}
		}

	}
}

k_mazandaran = {
	color = { 149 149 39 }
	color2 = { 255 255 255 }
	capital = 662
	gain_effect = {
		primary_title = { copy_title_laws = d_mazandaran }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = zoroastrian_group
			
				primary_title = { title = d_mazandaran }
				num_of_duke_titles = 4
			}
			k_mazandaran = {
				is_titular = no
			}
		}

	}
}

e_mazandaran = {
	color = { 149 123 39 }
	color2 = { 255 255 255 }
	capital = 662
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_mazandaran }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = zoroastrian_group
			
				primary_title = { title = k_mazandaran }
				num_of_king_titles = 3
			}
			e_mazandaran = {
				is_titular = no
			}
		}

	}
}

k_esfahan = {
	color = { 170 176 84 }
	color2 = { 255 255 255 }
	capital = 646
	gain_effect = {
		primary_title = { copy_title_laws = d_esfahan }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = muslim
			
				primary_title = { title = d_esfahan }
				num_of_duke_titles = 4
			}
			k_esfahan = {
				is_titular = no
			}
		}

	}
}

e_esfahan = {
	color = { 176 138 84 }
	color2 = { 255 255 255 }
	capital = 646
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_esfahan }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = muslim
			
				primary_title = { title = k_esfahan }
				num_of_king_titles = 3
			}
			e_esfahan = {
				is_titular = no
			}
		}

	}
}

k_hormuz = {
	color = { 91 118 63 }
	color2 = { 255 255 255 }
	capital = 641
	gain_effect = {
		primary_title = { copy_title_laws = d_hormuz }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = muslim
			
				primary_title = { title = d_hormuz }
				num_of_duke_titles = 4
			}
			k_hormuz = {
				is_titular = no
			}
		}

	}
}

e_hormuz = {
	color = { 95 118 63 }
	color2 = { 255 255 255 }
	capital = 641
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_hormuz }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = muslim
			
				primary_title = { title = k_hormuz }
				num_of_king_titles = 3
			}
			e_hormuz = {
				is_titular = no
			}
		}

	}
}

k_fars = {
	color = { 83 128 22 }
	color2 = { 255 255 255 }
	capital = 643
	gain_effect = {
		primary_title = { copy_title_laws = d_fars }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = zoroastrian_group
			
				primary_title = { title = d_fars }
				num_of_duke_titles = 4
			}
			k_fars = {
				is_titular = no
			}
		}

	}
}

e_fars = {
	color = { 22 128 25 }
	color2 = { 255 255 255 }
	capital = 643
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_fars }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = zoroastrian_group
			
				primary_title = { title = k_fars }
				num_of_king_titles = 3
			}
			e_fars = {
				is_titular = no
			}
		}

	}
}

k_hamadan = {
	color = { 157 225 112 }
	color2 = { 255 255 255 }
	capital = 658
	gain_effect = {
		primary_title = { copy_title_laws = d_hamadan }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = muslim
			
				primary_title = { title = d_hamadan }
				num_of_duke_titles = 4
			}
			k_hamadan = {
				is_titular = no
			}
		}

	}
}

e_hamadan = {
	color = { 130 225 112 }
	color2 = { 255 255 255 }
	capital = 658
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_hamadan }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = muslim
			
				primary_title = { title = k_hamadan }
				num_of_king_titles = 3
			}
			e_hamadan = {
				is_titular = no
			}
		}

	}
}

k_birjand = {
	color = { 125 169 80 }
	color2 = { 255 255 255 }
	capital = 906
	gain_effect = {
		primary_title = { copy_title_laws = d_birjand }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = muslim
			
				primary_title = { title = d_birjand }
				num_of_duke_titles = 4
			}
			k_birjand = {
				is_titular = no
			}
		}

	}
}

e_birjand = {
	color = { 88 169 80 }
	color2 = { 255 255 255 }
	capital = 906
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_birjand }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = muslim
			
				primary_title = { title = k_birjand }
				num_of_king_titles = 3
			}
			e_birjand = {
				is_titular = no
			}
		}

	}
}

k_tabriz = {
	color = { 60 140 65 }
	color2 = { 255 255 255 }
	capital = 666
	gain_effect = {
		primary_title = { copy_title_laws = d_tabriz }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = zoroastrian_group
			
				primary_title = { title = d_tabriz }
				num_of_duke_titles = 4
			}
			k_tabriz = {
				is_titular = no
			}
		}

	}
}

e_tabriz = {
	color = { 60 140 70 }
	color2 = { 255 255 255 }
	capital = 666
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_tabriz }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = zoroastrian_group
			
				primary_title = { title = k_tabriz }
				num_of_king_titles = 3
			}
			e_tabriz = {
				is_titular = no
			}
		}

	}
}

k_azerbaijan = {
	color = { 198 232 20 }
	color2 = { 255 255 255 }
	capital = 670
	gain_effect = {
		primary_title = { copy_title_laws = d_azerbaijan }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = muslim
			
				primary_title = { title = d_azerbaijan }
				num_of_duke_titles = 4
			}
			k_azerbaijan = {
				is_titular = no
			}
		}

	}
}

e_azerbaijan = {
	color = { 232 215 20 }
	color2 = { 255 255 255 }
	capital = 670
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_azerbaijan }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = muslim
			
				primary_title = { title = k_azerbaijan }
				num_of_king_titles = 3
			}
			e_azerbaijan = {
				is_titular = no
			}
		}

	}
}

k_khiva = {
	color = { 205 210 142 }
	color2 = { 255 255 255 }
	capital = 626
	gain_effect = {
		primary_title = { copy_title_laws = d_khiva }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = zoroastrian_group
			
				primary_title = { title = d_khiva }
				num_of_duke_titles = 4
			}
			k_khiva = {
				is_titular = no
			}
		}

	}
}

e_khiva = {
	color = { 210 202 142 }
	color2 = { 255 255 255 }
	capital = 626
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_khiva }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = zoroastrian_group
			
				primary_title = { title = k_khiva }
				num_of_king_titles = 3
			}
			e_khiva = {
				is_titular = no
			}
		}

	}
}

k_samarkand = {
	color = { 155 170 132 }
	color2 = { 255 255 255 }
	capital = 903
	gain_effect = {
		primary_title = { copy_title_laws = d_samarkand }
		
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_samarkand = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_samarkand
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = uzens_grp
				religion_group = zoroastrian_group
			
				primary_title = { title = d_samarkand }
				num_of_duke_titles = 4
			}
			k_samarkand = {
				is_titular = no
			}
		}

	}
}

e_samarkand = {
	color = { 170 169 132 }
	color2 = { 255 255 255 }
	capital = 903
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_samarkand }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_samarkand = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_samarkand
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = uzens_grp
				religion_group = zoroastrian_group
			
				primary_title = { title = k_samarkand }
				num_of_king_titles = 3
			}
			e_samarkand = {
				is_titular = no
			}
		}

	}
}

k_bukhara = {
	color = { 86 241 28 }
	color2 = { 255 255 255 }
	capital = 628
	gain_effect = {
		primary_title = { copy_title_laws = d_bukhara }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = zoroastrian_group
			
				primary_title = { title = d_bukhara }
				num_of_duke_titles = 4
			}
			k_bukhara = {
				is_titular = no
			}
		}

	}
}

e_bukhara = {
	color = { 48 241 28 }
	color2 = { 255 255 255 }
	capital = 628
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_bukhara }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = zoroastrian_group
			
				primary_title = { title = k_bukhara }
				num_of_king_titles = 3
			}
			e_bukhara = {
				is_titular = no
			}
		}

	}
}

k_kermanshah = {
	color = { 55 144 63 }
	color2 = { 255 255 255 }
	capital = 657
	gain_effect = {
		primary_title = { copy_title_laws = d_kermanshah }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = muslim
			
				primary_title = { title = d_kermanshah }
				num_of_duke_titles = 4
			}
			k_kermanshah = {
				is_titular = no
			}
		}

	}
}

e_kermanshah = {
	color = { 79 144 55 }
	color2 = { 255 255 255 }
	capital = 657
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_kermanshah }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = muslim
			
				primary_title = { title = k_kermanshah }
				num_of_king_titles = 3
			}
			e_kermanshah = {
				is_titular = no
			}
		}

	}
}

k_tigris = {
	color = { 78 150 32 }
	color2 = { 255 255 255 }
	capital = 656
	gain_effect = {
		primary_title = { copy_title_laws = d_tigris }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = muslim
			
				primary_title = { title = d_tigris }
				num_of_duke_titles = 4
			}
			k_tigris = {
				is_titular = no
			}
		}

	}
}

e_tigris = {
	color = { 106 150 32 }
	color2 = { 255 255 255 }
	capital = 656
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_tigris }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = muslim
			
				primary_title = { title = k_tigris }
				num_of_king_titles = 3
			}
			e_tigris = {
				is_titular = no
			}
		}

	}
}

k_basra = {
	color = { 2 150 25 }
	color2 = { 255 255 255 }
	capital = 649
	gain_effect = {
		primary_title = { copy_title_laws = d_basra }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = muslim
			
				primary_title = { title = d_basra }
				num_of_duke_titles = 4
			}
			k_basra = {
				is_titular = no
			}
		}

	}
}

e_basra = {
	color = { 2 150 34 }
	color2 = { 255 255 255 }
	capital = 649
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_basra }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = muslim
			
				primary_title = { title = k_basra }
				num_of_king_titles = 3
			}
			e_basra = {
				is_titular = no
			}
		}

	}
}

k_baghdad = {
	color = { 2 100 22 }
	color2 = { 255 255 255 }
	capital = 693
	gain_effect = {
		primary_title = { copy_title_laws = d_baghdad }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = muslim
			
				primary_title = { title = d_baghdad }
				num_of_duke_titles = 4
			}
			k_baghdad = {
				is_titular = no
			}
		}

	}
}

e_baghdad = {
	color = { 2 100 10 }
	color2 = { 255 255 255 }
	capital = 693
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_baghdad }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = muslim
			
				primary_title = { title = k_baghdad }
				num_of_king_titles = 3
			}
			e_baghdad = {
				is_titular = no
			}
		}

	}
}

k_mosul = {
	color = { 74 181 44 }
	color2 = { 255 255 255 }
	capital = 697
	gain_effect = {
		primary_title = { copy_title_laws = d_mosul }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = muslim
			
				primary_title = { title = d_mosul }
				num_of_duke_titles = 4
			}
			k_mosul = {
				is_titular = no
			}
		}

	}
}

e_mosul = {
	color = { 57 181 44 }
	color2 = { 255 255 255 }
	capital = 697
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_mosul }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = muslim
			
				primary_title = { title = k_mosul }
				num_of_king_titles = 3
			}
			e_mosul = {
				is_titular = no
			}
		}

	}
}

k_jazira = {
	color = { 43 180 35 }
	color2 = { 255 255 255 }
	capital = 700
	gain_effect = {
		primary_title = { copy_title_laws = d_jazira }
		
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_jazira = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_jazira
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = uzens_grp
				religion_group = christian
			
				primary_title = { title = d_jazira }
				num_of_duke_titles = 4
			}
			k_jazira = {
				is_titular = no
			}
		}

	}
}

e_jazira = {
	color = { 35 180 36 }
	color2 = { 255 255 255 }
	capital = 700
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_jazira }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_jazira = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_jazira
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = uzens_grp
				religion_group = christian
			
				primary_title = { title = k_jazira }
				num_of_king_titles = 3
			}
			e_jazira = {
				is_titular = no
			}
		}

	}
}

k_wallachia = {
	color = { 238 141 69 }
	color2 = { 255 255 255 }
	capital = 515
	gain_effect = {
		primary_title = { copy_title_laws = d_wallachia }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = pagan_group
			
				primary_title = { title = d_wallachia }
				num_of_duke_titles = 4
			}
			k_wallachia = {
				is_titular = no
			}
		}

	}
}

e_wallachia = {
	color = { 238 111 69 }
	color2 = { 255 255 255 }
	capital = 515
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_wallachia }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = pagan_group
			
				primary_title = { title = k_wallachia }
				num_of_king_titles = 3
			}
			e_wallachia = {
				is_titular = no
			}
		}

	}
}

k_moldau = {
	color = { 223 183 145 }
	color2 = { 255 255 255 }
	capital = 545
	gain_effect = {
		primary_title = { copy_title_laws = d_moldau }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = pagan_group
			
				primary_title = { title = d_moldau }
				num_of_duke_titles = 4
			}
			k_moldau = {
				is_titular = no
			}
		}

	}
}

e_moldau = {
	color = { 223 197 145 }
	color2 = { 255 255 255 }
	capital = 545
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_moldau }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = pagan_group
			
				primary_title = { title = k_moldau }
				num_of_king_titles = 3
			}
			e_moldau = {
				is_titular = no
			}
		}

	}
}

k_pecs = {
	color = { 155 25 65 }
	color2 = { 255 255 255 }
	capital = 452
	bohemian = "Balaton"
	gain_effect = {
		primary_title = { copy_title_laws = d_pecs }
		
		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 = {
			AND = {
				culture_group = holstein_grp
				religion_group = pagan_group
			
				primary_title = { title = d_pecs }
				num_of_duke_titles = 4
			}
			k_pecs = {
				is_titular = no
			}
		}

	}
}

e_pecs = {
	color = { 155 71 25 }
	color2 = { 255 255 255 }
	capital = 452
	short_name = yes
	bohemian = "Balaton"
	gain_effect = {
		primary_title = { copy_title_laws = k_pecs }
		
		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 = {
			AND = {
				culture_group = holstein_grp
				religion_group = pagan_group
			
				primary_title = { title = k_pecs }
				num_of_king_titles = 3
			}
			e_pecs = {
				is_titular = no
			}
		}

	}
}

k_esztergom = {
	color = { 230 55 118 }
	color2 = { 255 255 255 }
	capital = 444
	german = "Gran"
	bohemian = "Ostrihom"
	croatian = "Ostrogon"
	gain_effect = {
		primary_title = { copy_title_laws = d_esztergom }
		
		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 = {
			AND = {
				culture_group = holstein_grp
				religion_group = christian
			
				primary_title = { title = d_esztergom }
				num_of_duke_titles = 4
			}
			k_esztergom = {
				is_titular = no
			}
		}

	}
}

e_esztergom = {
	color = { 230 55 191 }
	color2 = { 255 255 255 }
	capital = 444
	short_name = yes
	german = "Gran"
	bohemian = "Ostrihom"
	croatian = "Ostrogon"
	gain_effect = {
		primary_title = { copy_title_laws = k_esztergom }
		
		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 = {
			AND = {
				culture_group = holstein_grp
				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
	german = "Neutra"
	bohemian = "Nitra"
	gain_effect = {
		primary_title = { copy_title_laws = d_nyitra }
		
		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 = {
			AND = {
				culture_group = holstein_grp
				religion_group = christian
			
				primary_title = { title = d_nyitra }
				num_of_duke_titles = 4
			}
			k_nyitra = {
				is_titular = no
			}
		}

	}
}

e_nyitra = {
	color = { 190 133 21 }
	color2 = { 255 255 255 }
	capital = 443
	short_name = yes
	german = "Neutra"
	bohemian = "Nitra"
	gain_effect = {
		primary_title = { copy_title_laws = k_nyitra }
		
		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 = {
			AND = {
				culture_group = holstein_grp
				religion_group = christian
			
				primary_title = { title = k_nyitra }
				num_of_king_titles = 3
			}
			e_nyitra = {
				is_titular = no
			}
		}

	}
}

k_ungvar = {
	color = { 156 15 66 }
	color2 = { 255 255 255 }
	capital = 538
	croatian = "Chrobatia"
	bohemian = "Uzhorod"
	gain_effect = {
		primary_title = { copy_title_laws = d_ungvar }
		
		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 = {
			AND = {
				culture_group = holstein_grp
				religion_group = christian
			
				primary_title = { title = d_ungvar }
				num_of_duke_titles = 4
			}
			k_ungvar = {
				is_titular = no
			}
		}

	}
}

e_ungvar = {
	color = { 156 15 49 }
	color2 = { 255 255 255 }
	capital = 538
	short_name = yes
	croatian = "Chrobatia"
	bohemian = "Uzhorod"
	gain_effect = {
		primary_title = { copy_title_laws = k_ungvar }
		
		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 = {
			AND = {
				culture_group = holstein_grp
				religion_group = christian
			
				primary_title = { title = k_ungvar }
				num_of_king_titles = 3
			}
			e_ungvar = {
				is_titular = no
			}
		}

	}
}

k_pest = {
	color = { 150 57 51 }
	color2 = { 255 255 255 }
	capital = 522
	gain_effect = {
		primary_title = { copy_title_laws = d_pest }
		
		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 = {
			AND = {
				culture_group = holstein_grp
				religion_group = pagan_group
			
				primary_title = { title = d_pest }
				num_of_duke_titles = 4
			}
			k_pest = {
				is_titular = no
			}
		}

	}
}

e_pest = {
	color = { 150 110 51 }
	color2 = { 255 255 255 }
	capital = 522
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_pest }
		
		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 = {
			AND = {
				culture_group = holstein_grp
				religion_group = pagan_group
			
				primary_title = { title = k_pest }
				num_of_king_titles = 3
			}
			e_pest = {
				is_titular = no
			}
		}

	}
}

k_transylvania = {
	color = { 255 156 150 }
	color2 = { 255 255 255 }
	capital = 519
	gain_effect = {
		primary_title = { copy_title_laws = d_transylvania }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = pagan_group
			
				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
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_transylvania }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = pagan_group
			
				primary_title = { title = k_transylvania }
				num_of_king_titles = 3
			}
			e_transylvania = {
				is_titular = no
			}
		}

	}
}

k_temes = {
	color = { 146 147 58 }
	color2 = { 255 255 255 }
	capital = 517
	romanian = "Timis"
	serbian = "Tamis"
	gain_effect = {
		primary_title = { copy_title_laws = d_temes }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = pagan_group
			
				primary_title = { title = d_temes }
				num_of_duke_titles = 4
			}
			k_temes = {
				is_titular = no
			}
		}

	}
}

e_temes = {
	color = { 120 147 58 }
	color2 = { 255 255 255 }
	capital = 517
	short_name = yes
	romanian = "Timis"
	serbian = "Tamis"
	gain_effect = {
		primary_title = { copy_title_laws = k_temes }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = pagan_group
			
				primary_title = { title = k_temes }
				num_of_king_titles = 3
			}
			e_temes = {
				is_titular = no
			}
		}

	}
}

k_berry = {
	color = { 24 52 226 }
	color2 = { 255 255 255 }
	capital = 140
	gain_effect = {
		primary_title = { copy_title_laws = d_berry }
		
		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 = {
			AND = {
				culture_group = yperen_grp
				religion_group = christian
			
				primary_title = { title = d_berry }
				num_of_duke_titles = 4
			}
			k_berry = {
				is_titular = no
			}
		}

	}
}

e_berry = {
	color = { 24 40 226 }
	color2 = { 255 255 255 }
	capital = 140
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_berry }
		
		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 = {
			AND = {
				culture_group = yperen_grp
				religion_group = christian
			
				primary_title = { title = k_berry }
				num_of_king_titles = 3
			}
			e_berry = {
				is_titular = no
			}
		}

	}
}

k_anjou = {
	color = { 24 53 226 }
	color2 = { 255 255 255 }
	capital = 107
	gain_effect = {
		primary_title = { copy_title_laws = d_anjou }
		
		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 = {
			AND = {
				culture_group = yperen_grp
				religion_group = christian
			
				primary_title = { title = d_anjou }
				num_of_duke_titles = 4
			}
			k_anjou = {
				is_titular = no
			}
		}

	}
}

e_anjou = {
	color = { 24 53 226 }
	color2 = { 255 255 255 }
	capital = 107
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_anjou }
		
		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 = {
			AND = {
				culture_group = yperen_grp
				religion_group = christian
			
				primary_title = { title = k_anjou }
				num_of_king_titles = 3
			}
			e_anjou = {
				is_titular = no
			}
		}

	}
}

k_normandy = {
	color = { 132 24 226 }
	color2 = { 255 255 255 }
	capital = 97
	gain_effect = {
		primary_title = { copy_title_laws = d_normandy }
		
		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 = {
			AND = {
				culture_group = yperen_grp
				religion_group = christian
			
				primary_title = { title = d_normandy }
				num_of_duke_titles = 4
			}
			k_normandy = {
				is_titular = no
			}
		}

	}
}

e_normandy = {
	color = { 216 24 226 }
	color2 = { 255 255 255 }
	capital = 97
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_normandy }
		
		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 = {
			AND = {
				culture_group = yperen_grp
				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 = {
		primary_title = { copy_title_laws = d_orleans }
		
		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 = {
			AND = {
				culture_group = yperen_grp
				religion_group = christian
			
				primary_title = { title = d_orleans }
				num_of_duke_titles = 4
			}
			k_orleans = {
				is_titular = no
			}
		}

	}
}

e_orleans = {
	color = { 124 134 226 }
	color2 = { 255 255 255 }
	capital = 138
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_orleans }
		
		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 = {
			AND = {
				culture_group = yperen_grp
				religion_group = christian
			
				primary_title = { title = k_orleans }
				num_of_king_titles = 3
			}
			e_orleans = {
				is_titular = no
			}
		}

	}
}

k_champagne = {
	color = { 47 24 226 }
	color2 = { 255 255 255 }
	capital = 114
	gain_effect = {
		primary_title = { copy_title_laws = d_champagne }
		
		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 = {
			AND = {
				culture_group = yperen_grp
				religion_group = christian
			
				primary_title = { title = d_champagne }
				num_of_duke_titles = 4
			}
			k_champagne = {
				is_titular = no
			}
		}

	}
}

e_champagne = {
	color = { 24 98 226 }
	color2 = { 255 255 255 }
	capital = 114
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_champagne }
		
		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 = {
			AND = {
				culture_group = yperen_grp
				religion_group = christian
			
				primary_title = { title = k_champagne }
				num_of_king_titles = 3
			}
			e_champagne = {
				is_titular = no
			}
		}

	}
}

k_valois = {
	color = { 35 131 208 }
	color2 = { 255 255 255 }
	capital = 112
	gain_effect = {
		primary_title = { copy_title_laws = d_valois }
		
		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 = {
			AND = {
				culture_group = yperen_grp
				religion_group = christian
			
				primary_title = { title = d_valois }
				num_of_duke_titles = 4
			}
			k_valois = {
				is_titular = no
			}
		}

	}
}

e_valois = {
	color = { 35 89 208 }
	color2 = { 255 255 255 }
	capital = 112
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_valois }
		
		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 = {
			AND = {
				culture_group = yperen_grp
				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 = {
		primary_title = { copy_title_laws = d_toulouse }
		
		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 = {
			AND = {
				culture_group = yperen_grp
				religion_group = christian
			
				primary_title = { title = d_toulouse }
				num_of_duke_titles = 4
			}
			k_toulouse = {
				is_titular = no
			}
		}

	}
}

e_toulouse = {
	color = { 46 10 243 }
	color2 = { 255 255 255 }
	capital = 214
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_toulouse }
		
		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 = {
			AND = {
				culture_group = yperen_grp
				religion_group = christian
			
				primary_title = { title = k_toulouse }
				num_of_king_titles = 3
			}
			e_toulouse = {
				is_titular = no
			}
		}

	}
}

k_gascogne = {
	color = { 30 43 243 }
	color2 = { 255 255 255 }
	capital = 209
	gain_effect = {
		primary_title = { copy_title_laws = d_gascogne }
		
		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 = {
			AND = {
				culture_group = yperen_grp
				religion_group = christian
			
				primary_title = { title = d_gascogne }
				num_of_duke_titles = 4
			}
			k_gascogne = {
				is_titular = no
			}
		}

	}
}

e_gascogne = {
	color = { 30 107 243 }
	color2 = { 255 255 255 }
	capital = 209
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_gascogne }
		
		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 = {
			AND = {
				culture_group = yperen_grp
				religion_group = christian
			
				primary_title = { title = k_gascogne }
				num_of_king_titles = 3
			}
			e_gascogne = {
				is_titular = no
			}
		}

	}
}

k_poitou = {
	color = { 24 71 226 }
	color2 = { 255 255 255 }
	capital = 141
	gain_effect = {
		primary_title = { copy_title_laws = d_poitou }
		
		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 = {
			AND = {
				culture_group = yperen_grp
				religion_group = christian
			
				primary_title = { title = d_poitou }
				num_of_duke_titles = 4
			}
			k_poitou = {
				is_titular = no
			}
		}

	}
}

e_poitou = {
	color = { 98 24 226 }
	color2 = { 255 255 255 }
	capital = 141
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_poitou }
		
		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 = {
			AND = {
				culture_group = yperen_grp
				religion_group = christian
			
				primary_title = { title = k_poitou }
				num_of_king_titles = 3
			}
			e_poitou = {
				is_titular = no
			}
		}

	}
}

k_auvergne = {
	color = { 24 226 208 }
	color2 = { 255 255 255 }
	capital = 217
	gain_effect = {
		primary_title = { copy_title_laws = d_auvergne }
		
		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 = {
			AND = {
				culture_group = yperen_grp
				religion_group = christian
			
				primary_title = { title = d_auvergne }
				num_of_duke_titles = 4
			}
			k_auvergne = {
				is_titular = no
			}
		}

	}
}

e_auvergne = {
	color = { 24 226 160 }
	color2 = { 255 255 255 }
	capital = 217
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_auvergne }
		
		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 = {
			AND = {
				culture_group = yperen_grp
				religion_group = christian
			
				primary_title = { title = k_auvergne }
				num_of_king_titles = 3
			}
			e_auvergne = {
				is_titular = no
			}
		}

	}
}

k_bourbon = {
	color = { 74 106 186 }
	color2 = { 255 255 255 }
	capital = 146
	gain_effect = {
		primary_title = { copy_title_laws = d_bourbon }
		
		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 = {
			AND = {
				culture_group = yperen_grp
				religion_group = christian
			
				primary_title = { title = d_bourbon }
				num_of_duke_titles = 4
			}
			k_bourbon = {
				is_titular = no
			}
		}

	}
}

e_bourbon = {
	color = { 74 120 186 }
	color2 = { 255 255 255 }
	capital = 146
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_bourbon }
		
		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 = {
			AND = {
				culture_group = yperen_grp
				religion_group = christian
			
				primary_title = { title = k_bourbon }
				num_of_king_titles = 3
			}
			e_bourbon = {
				is_titular = no
			}
		}

	}
}

k_provence = {
	color = { 145 37 41 }
	color2 = { 255 255 255 }
	capital = 221
	gain_effect = {
		primary_title = { copy_title_laws = d_provence }
		
		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 = {
			AND = {
				culture_group = napoli_grp
				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
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_provence }
		
		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 = {
			AND = {
				culture_group = napoli_grp
				religion_group = christian
			
				primary_title = { title = k_provence }
				num_of_king_titles = 3
			}
			e_provence = {
				is_titular = no
			}
		}

	}
}

k_savoie = {
	color = { 101 8 56 }
	color2 = { 255 255 255 }
	capital = 237
	gain_effect = {
		primary_title = { copy_title_laws = d_savoie }
		
		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 = {
			AND = {
				culture_group = yperen_grp
				religion_group = christian
			
				primary_title = { title = d_savoie }
				num_of_duke_titles = 4
			}
			k_savoie = {
				is_titular = no
			}
		}

	}
}

e_savoie = {
	color = { 101 8 40 }
	color2 = { 255 255 255 }
	capital = 237
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_savoie }
		
		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 = {
			AND = {
				culture_group = yperen_grp
				religion_group = christian
			
				primary_title = { title = k_savoie }
				num_of_king_titles = 3
			}
			e_savoie = {
				is_titular = no
			}
		}

	}
}

k_dauphine = {
	color = { 115 26 58 }
	color2 = { 255 255 255 }
	capital = 227
	gain_effect = {
		primary_title = { copy_title_laws = d_dauphine }
		
		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 = {
			AND = {
				culture_group = yperen_grp
				religion_group = christian
			
				primary_title = { title = d_dauphine }
				num_of_duke_titles = 4
			}
			k_dauphine = {
				is_titular = no
			}
		}

	}
}

e_dauphine = {
	color = { 115 26 53 }
	color2 = { 255 255 255 }
	capital = 227
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_dauphine }
		
		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 = {
			AND = {
				culture_group = yperen_grp
				religion_group = christian
			
				primary_title = { title = k_dauphine }
				num_of_king_titles = 3
			}
			e_dauphine = {
				is_titular = no
			}
		}

	}
}

k_upper_burgundy = {
	color = { 159 20 108 }
	color2 = { 255 255 255 }
	capital = 135
	gain_effect = {
		primary_title = { copy_title_laws = d_upper_burgundy }
		
		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 = {
			AND = {
				culture_group = yperen_grp
				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 141 }
	color2 = { 255 255 255 }
	capital = 135
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_upper_burgundy }
		
		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 = {
			AND = {
				culture_group = yperen_grp
				religion_group = christian
			
				primary_title = { title = k_upper_burgundy }
				num_of_king_titles = 3
			}
			e_upper_burgundy = {
				is_titular = no
			}
		}

	}
}

k_castilla = {
	color = { 242 182 12 }
	color2 = { 255 255 255 }
	capital = 199
	gain_effect = {
		primary_title = { copy_title_laws = d_castilla }
		
		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 = {
			AND = {
				culture_group = yperen_grp
				religion_group = christian
			
				primary_title = { title = d_castilla }
				num_of_duke_titles = 4
			}
			k_castilla = {
				is_titular = no
			}
		}

	}
}

e_castilla = {
	color = { 242 99 12 }
	color2 = { 255 255 255 }
	capital = 199
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_castilla }
		
		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 = {
			AND = {
				culture_group = yperen_grp
				religion_group = christian
			
				primary_title = { title = k_castilla }
				num_of_king_titles = 3
			}
			e_castilla = {
				is_titular = no
			}
		}

	}
}

k_barcelona = {
	color = { 166 111 72 }
	color2 = { 255 255 255 }
	capital = 204
	gain_effect = {
		primary_title = { copy_title_laws = d_barcelona }
		
		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 = {
			AND = {
				culture_group = yperen_grp
				religion_group = christian
			
				primary_title = { title = d_barcelona }
				num_of_duke_titles = 4
			}
			k_barcelona = {
				is_titular = no
			}
		}

	}
}

e_barcelona = {
	color = { 166 156 72 }
	color2 = { 255 255 255 }
	capital = 204
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_barcelona }
		
		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 = {
			AND = {
				culture_group = yperen_grp
				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 = {
		primary_title = { copy_title_laws = d_valencia }
		
		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 = {
			AND = {
				culture_group = yperen_grp
				religion_group = christian
			
				primary_title = { title = d_valencia }
				num_of_duke_titles = 4
			}
			k_valencia = {
				is_titular = no
			}
		}

	}
}

e_valencia = {
	color = { 45 167 115 }
	color2 = { 255 255 255 }
	capital = 171
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_valencia }
		
		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 = {
			AND = {
				culture_group = yperen_grp
				religion_group = christian
			
				primary_title = { title = k_valencia }
				num_of_king_titles = 3
			}
			e_valencia = {
				is_titular = no
			}
		}

	}
}

k_mallorca = {
	color = { 81 126 68 }
	color2 = { 255 255 255 }
	capital = 827
	gain_effect = {
		primary_title = { copy_title_laws = d_mallorca }
		
		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 = {
			AND = {
				culture_group = arabic
				religion_group = muslim
			
				primary_title = { title = d_mallorca }
				num_of_duke_titles = 4
			}
			k_mallorca = {
				is_titular = no
			}
		}

	}
}

e_mallorca = {
	color = { 88 126 68 }
	color2 = { 255 255 255 }
	capital = 827
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_mallorca }
		
		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 = {
			AND = {
				culture_group = arabic
				religion_group = muslim
			
				primary_title = { title = k_mallorca }
				num_of_king_titles = 3
			}
			e_mallorca = {
				is_titular = no
			}
		}

	}
}

k_galicia = {
	color = { 213 109 51 }
	color2 = { 255 255 255 }
	capital = 156
	gain_effect = {
		primary_title = { copy_title_laws = d_galicia }
		
		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 = {
			AND = {
				culture_group = yperen_grp
				religion_group = christian
			
				primary_title = { title = d_galicia }
				num_of_duke_titles = 4
			}
			k_galicia = {
				is_titular = no
			}
		}

	}
}

e_galicia = {
	color = { 213 71 51 }
	color2 = { 255 255 255 }
	capital = 156
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_galicia }
		
		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 = {
			AND = {
				culture_group = yperen_grp
				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 = {
		primary_title = { copy_title_laws = d_porto }
		
		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 = {
			AND = {
				culture_group = yperen_grp
				religion_group = christian
			
				primary_title = { title = d_porto }
				num_of_duke_titles = 4
			}
			k_porto = {
				is_titular = no
			}
		}

	}
}

e_porto = {
	color = { 166 182 45 }
	color2 = { 255 255 255 }
	capital = 158
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_porto }
		
		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 = {
			AND = {
				culture_group = yperen_grp
				religion_group = christian
			
				primary_title = { title = k_porto }
				num_of_king_titles = 3
			}
			e_porto = {
				is_titular = no
			}
		}

	}
}

k_beja = {
	color = { 182 109 5 }
	color2 = { 255 255 255 }
	capital = 160
	gain_effect = {
		primary_title = { copy_title_laws = d_beja }
		
		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 = {
			AND = {
				culture_group = yperen_grp
				religion_group = christian
			
				primary_title = { title = d_beja }
				num_of_duke_titles = 4
			}
			k_beja = {
				is_titular = no
			}
		}

	}
}

e_beja = {
	color = { 128 182 5 }
	color2 = { 255 255 255 }
	capital = 160
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_beja }
		
		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 = {
			AND = {
				culture_group = yperen_grp
				religion_group = christian
			
				primary_title = { title = k_beja }
				num_of_king_titles = 3
			}
			e_beja = {
				is_titular = no
			}
		}

	}
}

k_algarve = {
	color = { 202 29 5 }
	color2 = { 255 255 255 }
	capital = 163
	gain_effect = {
		primary_title = { copy_title_laws = d_algarve }
		
		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 = {
			AND = {
				culture_group = yperen_grp
				religion_group = muslim
			
				primary_title = { title = d_algarve }
				num_of_duke_titles = 4
			}
			k_algarve = {
				is_titular = no
			}
		}

	}
}

e_algarve = {
	color = { 202 5 17 }
	color2 = { 255 255 255 }
	capital = 163
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_algarve }
		
		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 = {
			AND = {
				culture_group = yperen_grp
				religion_group = muslim
			
				primary_title = { title = k_algarve }
				num_of_king_titles = 3
			}
			e_algarve = {
				is_titular = no
			}
		}

	}
}

k_cordoba = {
	color = { 100 180 12 }
	color2 = { 255 255 255 }
	capital = 181
	gain_effect = {
		primary_title = { copy_title_laws = d_cordoba }
		
		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 = {
			AND = {
				culture_group = yperen_grp
				religion_group = muslim
			
				primary_title = { title = d_cordoba }
				num_of_duke_titles = 4
			}
			k_cordoba = {
				is_titular = no
			}
		}

	}
}

e_cordoba = {
	color = { 161 180 12 }
	color2 = { 255 255 255 }
	capital = 181
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_cordoba }
		
		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 = {
			AND = {
				culture_group = yperen_grp
				religion_group = muslim
			
				primary_title = { title = k_cordoba }
				num_of_king_titles = 3
			}
			e_cordoba = {
				is_titular = no
			}
		}

	}
}

k_murcia = {
	color = { 37 229 16 }
	color2 = { 255 255 255 }
	capital = 169
	gain_effect = {
		primary_title = { copy_title_laws = d_murcia }
		
		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 = {
			AND = {
				culture_group = yperen_grp
				religion_group = muslim
			
				primary_title = { title = d_murcia }
				num_of_duke_titles = 4
			}
			k_murcia = {
				is_titular = no
			}
		}

	}
}

e_murcia = {
	color = { 76 229 16 }
	color2 = { 255 255 255 }
	capital = 169
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_murcia }
		
		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 = {
			AND = {
				culture_group = yperen_grp
				religion_group = muslim
			
				primary_title = { title = k_murcia }
				num_of_king_titles = 3
			}
			e_murcia = {
				is_titular = no
			}
		}

	}
}

k_granada = {
	color = { 60 150 40 }
	color2 = { 255 255 255 }
	capital = 180
	gain_effect = {
		primary_title = { copy_title_laws = d_granada }
		
		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 = {
			AND = {
				culture_group = yperen_grp
				religion_group = muslim
			
				primary_title = { title = d_granada }
				num_of_duke_titles = 4
			}
			k_granada = {
				is_titular = no
			}
		}

	}
}

e_granada = {
	color = { 66 150 40 }
	color2 = { 255 255 255 }
	capital = 180
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_granada }
		
		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 = {
			AND = {
				culture_group = yperen_grp
				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 = {
		primary_title = { copy_title_laws = d_sevilla }
		
		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 = {
			AND = {
				culture_group = yperen_grp
				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
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_sevilla }
		
		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 = {
			AND = {
				culture_group = yperen_grp
				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 = {
		primary_title = { copy_title_laws = d_badajoz }
		
		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 = {
			AND = {
				culture_group = yperen_grp
				religion_group = muslim
			
				primary_title = { title = d_badajoz }
				num_of_duke_titles = 4
			}
			k_badajoz = {
				is_titular = no
			}
		}

	}
}

e_badajoz = {
	color = { 51 243 91 }
	color2 = { 255 255 255 }
	capital = 184
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_badajoz }
		
		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 = {
			AND = {
				culture_group = yperen_grp
				religion_group = muslim
			
				primary_title = { title = k_badajoz }
				num_of_king_titles = 3
			}
			e_badajoz = {
				is_titular = no
			}
		}

	}
}

k_toledo = {
	color = { 212 187 12 }
	color2 = { 255 255 255 }
	capital = 197
	gain_effect = {
		primary_title = { copy_title_laws = d_toledo }
		
		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 = {
			AND = {
				culture_group = yperen_grp
				religion_group = christian
			
				primary_title = { title = d_toledo }
				num_of_duke_titles = 4
			}
			k_toledo = {
				is_titular = no
			}
		}

	}
}

e_toledo = {
	color = { 165 212 12 }
	color2 = { 255 255 255 }
	capital = 197
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_toledo }
		
		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 = {
			AND = {
				culture_group = yperen_grp
				religion_group = christian
			
				primary_title = { title = k_toledo }
				num_of_king_titles = 3
			}
			e_toledo = {
				is_titular = no
			}
		}

	}
}

k_arabia_petrae = {
	color = { 168 196 2 }
	color2 = { 255 255 255 }
	capital = 722
	gain_effect = {
		primary_title = { copy_title_laws = d_arabia_petrae }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = muslim
			
				primary_title = { title = d_arabia_petrae }
				num_of_duke_titles = 4
			}
			k_arabia_petrae = {
				is_titular = no
			}
		}

	}
}

e_arabia_petrae = {
	color = { 196 166 2 }
	color2 = { 255 255 255 }
	capital = 722
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_arabia_petrae }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				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 = {
		primary_title = { copy_title_laws = d_medina }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = muslim
			
				primary_title = { title = d_medina }
				num_of_duke_titles = 4
			}
			k_medina = {
				is_titular = no
			}
		}

	}
}

e_medina = {
	color = { 249 249 43 }
	color2 = { 255 255 255 }
	capital = 719
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_medina }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = muslim
			
				primary_title = { title = k_medina }
				num_of_king_titles = 3
			}
			e_medina = {
				is_titular = no
			}
		}

	}
}

k_sanaa = {
	color = { 70 119 0 }
	color2 = { 255 255 255 }
	capital = 860
	gain_effect = {
		primary_title = { copy_title_laws = d_sanaa }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = muslim
			
				primary_title = { title = d_sanaa }
				num_of_duke_titles = 4
			}
			k_sanaa = {
				is_titular = no
			}
		}

	}
}

e_sanaa = {
	color = { 119 89 0 }
	color2 = { 255 255 255 }
	capital = 860
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_sanaa }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = muslim
			
				primary_title = { title = k_sanaa }
				num_of_king_titles = 3
			}
			e_sanaa = {
				is_titular = no
			}
		}

	}
}

k_oman = {
	color = { 151 196 2 }
	color2 = { 255 255 255 }
	capital = 868
	gain_effect = {
		primary_title = { copy_title_laws = d_oman }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = muslim
			
				primary_title = { title = d_oman }
				num_of_duke_titles = 4
			}
			k_oman = {
				is_titular = no
			}
		}

	}
}

e_oman = {
	color = { 196 194 2 }
	color2 = { 255 255 255 }
	capital = 868
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_oman }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				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 = {
		primary_title = { copy_title_laws = d_nefoud }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = muslim
			
				primary_title = { title = d_nefoud }
				num_of_duke_titles = 4
			}
			k_nefoud = {
				is_titular = no
			}
		}

	}
}

e_nefoud = {
	color = { 10 228 68 }
	color2 = { 255 255 255 }
	capital = 863
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_nefoud }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = muslim
			
				primary_title = { title = k_nefoud }
				num_of_king_titles = 3
			}
			e_nefoud = {
				is_titular = no
			}
		}

	}
}

k_amman = {
	color = { 38 127 30 }
	color2 = { 255 255 255 }
	capital = 652
	gain_effect = {
		primary_title = { copy_title_laws = d_amman }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				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
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_amman }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = muslim
			
				primary_title = { title = k_amman }
				num_of_king_titles = 3
			}
			e_amman = {
				is_titular = no
			}
		}

	}
}

k_alexandria = {
	color = { 109 219 100 }
	color2 = { 255 255 255 }
	capital = 802
	gain_effect = {
		primary_title = { copy_title_laws = d_alexandria }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = christian
			
				primary_title = { title = d_alexandria }
				num_of_duke_titles = 4
			}
			k_alexandria = {
				is_titular = no
			}
		}

	}
}

e_alexandria = {
	color = { 137 219 100 }
	color2 = { 255 255 255 }
	capital = 802
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_alexandria }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				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 = {
		primary_title = { copy_title_laws = d_damietta }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = muslim
			
				primary_title = { title = d_damietta }
				num_of_duke_titles = 4
			}
			k_damietta = {
				is_titular = no
			}
		}

	}
}

e_damietta = {
	color = { 3 255 119 }
	color2 = { 255 255 255 }
	capital = 798
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_damietta }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = muslim
			
				primary_title = { title = k_damietta }
				num_of_king_titles = 3
			}
			e_damietta = {
				is_titular = no
			}
		}

	}
}

k_cairo = {
	color = { 20 232 64 }
	color2 = { 255 255 255 }
	capital = 796
	gain_effect = {
		primary_title = { copy_title_laws = d_cairo }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = muslim
			
				primary_title = { title = d_cairo }
				num_of_duke_titles = 4
			}
			k_cairo = {
				is_titular = no
			}
		}

	}
}

e_cairo = {
	color = { 65 232 20 }
	color2 = { 255 255 255 }
	capital = 796
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_cairo }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = muslim
			
				primary_title = { title = k_cairo }
				num_of_king_titles = 3
			}
			e_cairo = {
				is_titular = no
			}
		}

	}
}

k_aswan = {
	color = { 41 188 67 }
	color2 = { 255 255 255 }
	capital = 794
	gain_effect = {
		primary_title = { copy_title_laws = d_aswan }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = christian
			
				primary_title = { title = d_aswan }
				num_of_duke_titles = 4
			}
			k_aswan = {
				is_titular = no
			}
		}

	}
}

e_aswan = {
	color = { 41 188 41 }
	color2 = { 255 255 255 }
	capital = 794
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_aswan }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = christian
			
				primary_title = { title = k_aswan }
				num_of_king_titles = 3
			}
			e_aswan = {
				is_titular = no
			}
		}

	}
}

k_sinai = {
	color = { 94 99 2 }
	color2 = { 255 255 255 }
	capital = 788
	gain_effect = {
		primary_title = { copy_title_laws = d_sinai }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				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
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_sinai }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = muslim
			
				primary_title = { title = k_sinai }
				num_of_king_titles = 3
			}
			e_sinai = {
				is_titular = no
			}
		}

	}
}

k_oultrejourdain = {
	color = { 185 188 41 }
	color2 = { 255 255 255 }
	capital = 723
	gain_effect = {
		primary_title = { copy_title_laws = d_oultrejourdain }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = muslim
			
				primary_title = { title = d_oultrejourdain }
				num_of_duke_titles = 4
			}
			k_oultrejourdain = {
				is_titular = no
			}
		}

	}
}

e_oultrejourdain = {
	color = { 168 188 41 }
	color2 = { 255 255 255 }
	capital = 723
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_oultrejourdain }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = muslim
			
				primary_title = { title = k_oultrejourdain }
				num_of_king_titles = 3
			}
			e_oultrejourdain = {
				is_titular = no
			}
		}

	}
}

k_ascalon = {
	color = { 141 150 32 }
	color2 = { 255 255 255 }
	capital = 780
	gain_effect = {
		primary_title = { copy_title_laws = d_ascalon }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = muslim
			
				primary_title = { title = d_ascalon }
				num_of_duke_titles = 4
			}
			k_ascalon = {
				is_titular = no
			}
		}

	}
}

e_ascalon = {
	color = { 141 150 32 }
	color2 = { 255 255 255 }
	capital = 780
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_ascalon }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = muslim
			
				primary_title = { title = k_ascalon }
				num_of_king_titles = 3
			}
			e_ascalon = {
				is_titular = no
			}
		}

	}
}

k_galilee = {
	color = { 2 196 49 }
	color2 = { 255 255 255 }
	capital = 771
	gain_effect = {
		primary_title = { copy_title_laws = d_galilee }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = christian
			
				primary_title = { title = d_galilee }
				num_of_duke_titles = 4
			}
			k_galilee = {
				is_titular = no
			}
		}

	}
}

e_galilee = {
	color = { 71 196 2 }
	color2 = { 255 255 255 }
	capital = 771
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_galilee }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = christian
			
				primary_title = { title = k_galilee }
				num_of_king_titles = 3
			}
			e_galilee = {
				is_titular = no
			}
		}

	}
}

k_aleppo = {
	color = { 123 232 20 }
	color2 = { 255 255 255 }
	capital = 733
	gain_effect = {
		primary_title = { copy_title_laws = d_aleppo }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = muslim
			
				primary_title = { title = d_aleppo }
				num_of_duke_titles = 4
			}
			k_aleppo = {
				is_titular = no
			}
		}

	}
}

e_aleppo = {
	color = { 136 232 20 }
	color2 = { 255 255 255 }
	capital = 733
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_aleppo }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = muslim
			
				primary_title = { title = k_aleppo }
				num_of_king_titles = 3
			}
			e_aleppo = {
				is_titular = no
			}
		}

	}
}

k_antioch = {
	color = { 136 63 142 }
	color2 = { 255 255 255 }
	capital = 764
	gain_effect = {
		primary_title = { copy_title_laws = d_antioch }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = christian
			
				primary_title = { title = d_antioch }
				num_of_duke_titles = 4
			}
			k_antioch = {
				is_titular = no
			}
		}

	}
}

e_antioch = {
	color = { 141 63 142 }
	color2 = { 255 255 255 }
	capital = 764
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_antioch }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = christian
			
				primary_title = { title = k_antioch }
				num_of_king_titles = 3
			}
			e_antioch = {
				is_titular = no
			}
		}

	}
}

k_tripoli = {
	color = { 64 150 32 }
	color2 = { 255 255 255 }
	capital = 767
	gain_effect = {
		primary_title = { copy_title_laws = d_tripoli }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = christian
			
				primary_title = { title = d_tripoli }
				num_of_duke_titles = 4
			}
			k_tripoli = {
				is_titular = no
			}
		}

	}
}

e_tripoli = {
	color = { 64 150 32 }
	color2 = { 255 255 255 }
	capital = 767
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_tripoli }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = christian
			
				primary_title = { title = k_tripoli }
				num_of_king_titles = 3
			}
			e_tripoli = {
				is_titular = no
			}
		}

	}
}

k_damascus = {
	color = { 31 255 3 }
	color2 = { 255 255 255 }
	capital = 728
	gain_effect = {
		primary_title = { copy_title_laws = d_damascus }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = muslim
			
				primary_title = { title = d_damascus }
				num_of_duke_titles = 4
			}
			k_damascus = {
				is_titular = no
			}
		}

	}
}

e_damascus = {
	color = { 92 255 3 }
	color2 = { 255 255 255 }
	capital = 728
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_damascus }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = muslim
			
				primary_title = { title = k_damascus }
				num_of_king_titles = 3
			}
			e_damascus = {
				is_titular = no
			}
		}

	}
}

k_marrakech = {
	color = { 71 150 32 }
	color2 = { 255 255 255 }
	capital = 843
	gain_effect = {
		primary_title = { copy_title_laws = d_marrakech }
		
		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 = {
			AND = {
				culture_group = yperen_grp
				religion_group = muslim
			
				primary_title = { title = d_marrakech }
				num_of_duke_titles = 4
			}
			k_marrakech = {
				is_titular = no
			}
		}

	}
}

e_marrakech = {
	color = { 85 150 32 }
	color2 = { 255 255 255 }
	capital = 843
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_marrakech }
		
		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 = {
			AND = {
				culture_group = yperen_grp
				religion_group = muslim
			
				primary_title = { title = k_marrakech }
				num_of_king_titles = 3
			}
			e_marrakech = {
				is_titular = no
			}
		}

	}
}

k_tangiers = {
	color = { 3 255 6 }
	color2 = { 255 255 255 }
	capital = 841
	gain_effect = {
		primary_title = { copy_title_laws = d_tangiers }
		
		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 = {
			AND = {
				culture_group = yperen_grp
				religion_group = muslim
			
				primary_title = { title = d_tangiers }
				num_of_duke_titles = 4
			}
			k_tangiers = {
				is_titular = no
			}
		}

	}
}

e_tangiers = {
	color = { 3 255 21 }
	color2 = { 255 255 255 }
	capital = 841
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_tangiers }
		
		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 = {
			AND = {
				culture_group = yperen_grp
				religion_group = muslim
			
				primary_title = { title = k_tangiers }
				num_of_king_titles = 3
			}
			e_tangiers = {
				is_titular = no
			}
		}

	}
}

k_fes = {
	color = { 20 232 68 }
	color2 = { 255 255 255 }
	capital = 840
	gain_effect = {
		primary_title = { copy_title_laws = d_fes }
		
		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 = {
			AND = {
				culture_group = yperen_grp
				religion_group = muslim
			
				primary_title = { title = d_fes }
				num_of_duke_titles = 4
			}
			k_fes = {
				is_titular = no
			}
		}

	}
}

e_fes = {
	color = { 20 232 68 }
	color2 = { 255 255 255 }
	capital = 840
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_fes }
		
		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 = {
			AND = {
				culture_group = yperen_grp
				religion_group = muslim
			
				primary_title = { title = k_fes }
				num_of_king_titles = 3
			}
			e_fes = {
				is_titular = no
			}
		}

	}
}

k_alger = {
	color = { 49 150 32 }
	color2 = { 255 255 255 }
	capital = 831
	gain_effect = {
		primary_title = { copy_title_laws = d_alger }
		
		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 = {
			AND = {
				culture_group = yperen_grp
				religion_group = muslim
			
				primary_title = { title = d_alger }
				num_of_duke_titles = 4
			}
			k_alger = {
				is_titular = no
			}
		}

	}
}

e_alger = {
	color = { 42 150 32 }
	color2 = { 255 255 255 }
	capital = 831
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_alger }
		
		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 = {
			AND = {
				culture_group = yperen_grp
				religion_group = muslim
			
				primary_title = { title = k_alger }
				num_of_king_titles = 3
			}
			e_alger = {
				is_titular = no
			}
		}

	}
}

k_tlemcen = {
	color = { 41 188 110 }
	color2 = { 255 255 255 }
	capital = 834
	gain_effect = {
		primary_title = { copy_title_laws = d_tlemcen }
		
		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 = {
			AND = {
				culture_group = yperen_grp
				religion_group = muslim
			
				primary_title = { title = d_tlemcen }
				num_of_duke_titles = 4
			}
			k_tlemcen = {
				is_titular = no
			}
		}

	}
}

e_tlemcen = {
	color = { 41 188 137 }
	color2 = { 255 255 255 }
	capital = 834
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_tlemcen }
		
		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 = {
			AND = {
				culture_group = yperen_grp
				religion_group = muslim
			
				primary_title = { title = k_tlemcen }
				num_of_king_titles = 3
			}
			e_tlemcen = {
				is_titular = no
			}
		}

	}
}

k_tunis = {
	color = { 20 232 133 }
	color2 = { 255 255 255 }
	capital = 817
	gain_effect = {
		primary_title = { copy_title_laws = d_tunis }
		
		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 = {
			AND = {
				culture_group = yperen_grp
				religion_group = muslim
			
				primary_title = { title = d_tunis }
				num_of_duke_titles = 4
			}
			k_tunis = {
				is_titular = no
			}
		}

	}
}

e_tunis = {
	color = { 20 232 209 }
	color2 = { 255 255 255 }
	capital = 817
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_tunis }
		
		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 = {
			AND = {
				culture_group = yperen_grp
				religion_group = muslim
			
				primary_title = { title = k_tunis }
				num_of_king_titles = 3
			}
			e_tunis = {
				is_titular = no
			}
		}

	}
}

k_tripolitania = {
	color = { 63 175 124 }
	color2 = { 255 255 255 }
	capital = 811
	gain_effect = {
		primary_title = { copy_title_laws = d_tripolitania }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = muslim
			
				primary_title = { title = d_tripolitania }
				num_of_duke_titles = 4
			}
			k_tripolitania = {
				is_titular = no
			}
		}

	}
}

e_tripolitania = {
	color = { 63 166 175 }
	color2 = { 255 255 255 }
	capital = 811
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_tripolitania }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = muslim
			
				primary_title = { title = k_tripolitania }
				num_of_king_titles = 3
			}
			e_tripolitania = {
				is_titular = no
			}
		}

	}
}

k_cyrenaica = {
	color = { 32 150 49 }
	color2 = { 255 255 255 }
	capital = 806
	gain_effect = {
		primary_title = { copy_title_laws = d_cyrenaica }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = muslim
			
				primary_title = { title = d_cyrenaica }
				num_of_duke_titles = 4
			}
			k_cyrenaica = {
				is_titular = no
			}
		}

	}
}

e_cyrenaica = {
	color = { 32 150 35 }
	color2 = { 255 255 255 }
	capital = 806
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_cyrenaica }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = muslim
			
				primary_title = { title = k_cyrenaica }
				num_of_king_titles = 3
			}
			e_cyrenaica = {
				is_titular = no
			}
		}

	}
}

k_kabylia = {
	color = { 199 247 131 }
	color2 = { 255 255 255 }
	capital = 825
	gain_effect = {
		primary_title = { copy_title_laws = d_kabylia }
		
		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 = {
			AND = {
				culture_group = yperen_grp
				religion_group = muslim
			
				primary_title = { title = d_kabylia }
				num_of_duke_titles = 4
			}
			k_kabylia = {
				is_titular = no
			}
		}

	}
}

e_kabylia = {
	color = { 234 247 131 }
	color2 = { 255 255 255 }
	capital = 825
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_kabylia }
		
		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 = {
			AND = {
				culture_group = yperen_grp
				religion_group = muslim
			
				primary_title = { title = k_kabylia }
				num_of_king_titles = 3
			}
			e_kabylia = {
				is_titular = no
			}
		}

	}
}

k_harer = {
	color = { 153 2 32 }
	color2 = { 255 255 255 }
	capital = 873
	gain_effect = {
		primary_title = { copy_title_laws = d_harer }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = muslim
			
				primary_title = { title = d_harer }
				num_of_duke_titles = 4
			}
			k_harer = {
				is_titular = no
			}
		}

	}
}

e_harer = {
	color = { 153 8 2 }
	color2 = { 255 255 255 }
	capital = 873
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_harer }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = muslim
			
				primary_title = { title = k_harer }
				num_of_king_titles = 3
			}
			e_harer = {
				is_titular = no
			}
		}

	}
}

k_axum = {
	color = { 198 30 103 }
	color2 = { 255 255 255 }
	capital = 875
	gain_effect = {
		primary_title = { copy_title_laws = d_axum }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = christian
			
				primary_title = { title = d_axum }
				num_of_duke_titles = 4
			}
			k_axum = {
				is_titular = no
			}
		}

	}
}

e_axum = {
	color = { 172 30 198 }
	color2 = { 255 255 255 }
	capital = 875
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_axum }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = christian
			
				primary_title = { title = k_axum }
				num_of_king_titles = 3
			}
			e_axum = {
				is_titular = no
			}
		}

	}
}

k_sennar = {
	color = { 128 34 20 }
	color2 = { 255 255 255 }
	capital = 880
	gain_effect = {
		primary_title = { copy_title_laws = d_sennar }
		
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_sennar = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_sennar
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = uzens_grp
				religion_group = christian
			
				primary_title = { title = d_sennar }
				num_of_duke_titles = 4
			}
			k_sennar = {
				is_titular = no
			}
		}

	}
}

e_sennar = {
	color = { 128 20 51 }
	color2 = { 255 255 255 }
	capital = 880
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_sennar }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_sennar = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_sennar
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = uzens_grp
				religion_group = christian
			
				primary_title = { title = k_sennar }
				num_of_king_titles = 3
			}
			e_sennar = {
				is_titular = no
			}
		}

	}
}

k_gondar = {
	color = { 148 59 113 }
	color2 = { 255 255 255 }
	capital = 883
	gain_effect = {
		primary_title = { copy_title_laws = d_gondar }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = christian
			
				primary_title = { title = d_gondar }
				num_of_duke_titles = 4
			}
			k_gondar = {
				is_titular = no
			}
		}

	}
}

e_gondar = {
	color = { 140 59 148 }
	color2 = { 255 255 255 }
	capital = 883
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_gondar }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = christian
			
				primary_title = { title = k_gondar }
				num_of_king_titles = 3
			}
			e_gondar = {
				is_titular = no
			}
		}

	}
}

k_hayya = {
	color = { 186 40 82 }
	color2 = { 255 255 255 }
	capital = 878
	gain_effect = {
		primary_title = { copy_title_laws = d_hayya }
		
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_hayya = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_hayya
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = uzens_grp
				religion_group = christian
			
				primary_title = { title = d_hayya }
				num_of_duke_titles = 4
			}
			k_hayya = {
				is_titular = no
			}
		}

	}
}

e_hayya = {
	color = { 186 68 40 }
	color2 = { 255 255 255 }
	capital = 878
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_hayya }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_hayya = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_hayya
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = uzens_grp
				religion_group = christian
			
				primary_title = { title = k_hayya }
				num_of_king_titles = 3
			}
			e_hayya = {
				is_titular = no
			}
		}

	}
}

k_northumberland = {
	color = { 255 77 0 }
	color2 = { 255 255 255 }
	capital = 52
	gain_effect = {
		primary_title = { copy_title_laws = d_northumberland }
		
		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 = {
			AND = {
				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 184 0 }
	color2 = { 255 255 255 }
	capital = 52
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_northumberland }
		
		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 = {
			AND = {
				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 125 0 }
	color2 = { 255 255 255 }
	capital = 58
	welsh = "Rheged"
	gain_effect = {
		primary_title = { copy_title_laws = d_lancaster }
		
		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 = {
			AND = {
				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 216 0 }
	color2 = { 255 255 255 }
	capital = 58
	short_name = yes
	welsh = "Rheged"
	gain_effect = {
		primary_title = { copy_title_laws = k_lancaster }
		
		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 = {
			AND = {
				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 18 15 }
	color2 = { 255 255 255 }
	capital = 57
	dignity = 2
	norwegian = "Jorvik"
	danish = "Jorvik"
	swedish = "Jorvik"
	norse = "Jorvik"
	pagan_coa = {
		template = 0
		religion = "norse_pagan"
		layer = {
			texture = 2
			texture_internal = 12
			emblem = 0
			color = 0
			color = 0
			color = 0
		}
	}
	gain_effect = {
		primary_title = { copy_title_laws = d_york }
		
		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 = {
			AND = {
				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 15 113 }
	color2 = { 255 255 255 }
	capital = 57
	short_name = yes
	dignity = 2
	norwegian = "Jorvik"
	danish = "Jorvik"
	swedish = "Jorvik"
	norse = "Jorvik"
	pagan_coa = {
		template = 0
		religion = "norse_pagan"
		layer = {
			texture = 2
			texture_internal = 12
			emblem = 0
			color = 0
			color = 0
			color = 0
		}
	}
	gain_effect = {
		primary_title = { copy_title_laws = k_york }
		
		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 = {
			AND = {
				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 138 0 }
	color2 = { 255 255 255 }
	capital = 70
	norman = "Norfolk"
	english = "Norfolk"
	gain_effect = {
		primary_title = { copy_title_laws = d_norfolk }
		
		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 = {
			AND = {
				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 126 0 }
	color2 = { 255 255 255 }
	capital = 70
	short_name = yes
	norman = "Norfolk"
	english = "Norfolk"
	gain_effect = {
		primary_title = { copy_title_laws = k_norfolk }
		
		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 = {
			AND = {
				culture_group = west_germanic
				religion_group = christian
			
				primary_title = { title = k_norfolk }
				num_of_king_titles = 3
			}
			e_norfolk = {
				is_titular = no
			}
		}

	}
}

k_bedford = {
	color = { 241 29 15 }
	color2 = { 255 255 255 }
	capital = 72
	norman = "Bedford"
	english = "Bedford"
	gain_effect = {
		primary_title = { copy_title_laws = d_bedford }
		
		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 = {
			AND = {
				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 137 15 }
	color2 = { 255 255 255 }
	capital = 72
	short_name = yes
	norman = "Bedford"
	english = "Bedford"
	gain_effect = {
		primary_title = { copy_title_laws = k_bedford }
		
		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 = {
			AND = {
				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 88 15 }
	color2 = { 255 255 255 }
	capital = 17
	dignity = 5
	norman = "Hereford"
	english = "Hereford"
	gain_effect = {
		primary_title = { copy_title_laws = d_hereford }
		
		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 = {
			AND = {
				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 74 15 }
	color2 = { 255 255 255 }
	capital = 17
	short_name = yes
	dignity = 5
	norman = "Hereford"
	english = "Hereford"
	gain_effect = {
		primary_title = { copy_title_laws = k_hereford }
		
		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 = {
			AND = {
				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 38 15 }
	color2 = { 255 255 255 }
	capital = 21
	norman = "Gloucester"
	english = "Gloucester"
	gain_effect = {
		primary_title = { copy_title_laws = d_gloucester }
		
		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 = {
			AND = {
				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 52 15 }
	color2 = { 255 255 255 }
	capital = 21
	short_name = yes
	norman = "Gloucester"
	english = "Gloucester"
	gain_effect = {
		primary_title = { copy_title_laws = k_gloucester }
		
		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 = {
			AND = {
				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 59 15 }
	color2 = { 255 255 255 }
	capital = 73
	gain_effect = {
		primary_title = { copy_title_laws = d_canterbury }
		
		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 = {
			AND = {
				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 19 15 }
	color2 = { 255 255 255 }
	capital = 73
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_canterbury }
		
		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 = {
			AND = {
				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 144 }
	color2 = { 255 255 255 }
	capital = 26
	norman = "Somerset"
	english = "Somerset"
	gain_effect = {
		primary_title = { copy_title_laws = d_somerset }
		
		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 = {
			AND = {
				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 158 }
	color2 = { 255 255 255 }
	capital = 26
	short_name = yes
	norman = "Somerset"
	english = "Somerset"
	gain_effect = {
		primary_title = { copy_title_laws = k_somerset }
		
		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 = {
			AND = {
				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 63 22 }
	color2 = { 255 255 255 }
	capital = 64
	gain_effect = {
		primary_title = { copy_title_laws = d_gwynedd }
		
		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 = {
			AND = {
				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 22 35 }
	color2 = { 255 255 255 }
	capital = 64
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_gwynedd }
		
		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 = {
			AND = {
				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 95 3 }
	color2 = { 255 255 255 }
	capital = 18
	gain_effect = {
		primary_title = { copy_title_laws = d_deheubarth }
		
		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 = {
			AND = {
				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 73 3 }
	color2 = { 255 255 255 }
	capital = 18
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_deheubarth }
		
		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 = {
			AND = {
				culture_group = celtic
				religion_group = christian
			
				primary_title = { title = k_deheubarth }
				num_of_king_titles = 3
			}
			e_deheubarth = {
				is_titular = no
			}
		}

	}
}

k_cornwall = {
	color = { 181 29 10 }
	color2 = { 255 255 255 }
	capital = 31
	gain_effect = {
		primary_title = { copy_title_laws = d_cornwall }
		
		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 = {
			AND = {
				culture_group = celtic
				religion_group = christian
			
				primary_title = { title = d_cornwall }
				num_of_duke_titles = 4
			}
			k_cornwall = {
				is_titular = no
			}
		}

	}
}

e_cornwall = {
	color = { 181 10 32 }
	color2 = { 255 255 255 }
	capital = 31
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_cornwall }
		
		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 = {
			AND = {
				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 147 208 }
	color2 = { 255 255 255 }
	capital = 50
	welsh = "Strathclyde"
	gain_effect = {
		primary_title = { copy_title_laws = d_galloway }
		
		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 = {
			AND = {
				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 155 208 }
	color2 = { 255 255 255 }
	capital = 50
	short_name = yes
	welsh = "Strathclyde"
	gain_effect = {
		primary_title = { copy_title_laws = k_galloway }
		
		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 = {
			AND = {
				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 86 127 }
	capital = 35
	norwegian = "Søreyar"
	danish = "Søreyar"
	swedish = "Söröarna"
	norse = "Suðreyjar"
	pagan_coa = {
		template = 0
		religion = "norse_pagan"
		layer = {
			texture = 2
			texture_internal = 8
			emblem = 0
			color = 0
			color = 0
			color = 0
		}
	}
	gain_effect = {
		primary_title = { copy_title_laws = d_western_isles }
		
		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 = {
			AND = {
				culture_group = north_germanic
				religion_group = pagan_group
			
				primary_title = { title = d_western_isles }
				num_of_duke_titles = 4
			}
			k_western_isles = {
				is_titular = no
			}
		}

	}
}

e_western_isles = {
	color = { 6 107 127 }
	capital = 35
	short_name = yes
	norwegian = "Søreyar"
	danish = "Søreyar"
	swedish = "Söröarna"
	norse = "Suðreyjar"
	pagan_coa = {
		template = 0
		religion = "norse_pagan"
		layer = {
			texture = 2
			texture_internal = 8
			emblem = 0
			color = 0
			color = 0
			color = 0
		}
	}
	gain_effect = {
		primary_title = { copy_title_laws = k_western_isles }
		
		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 = {
			AND = {
				culture_group = north_germanic
				religion_group = pagan_group
			
				primary_title = { title = k_western_isles }
				num_of_king_titles = 3
			}
			e_western_isles = {
				is_titular = no
			}
		}

	}
}

k_lothian = {
	color = { 10 94 243 }
	color2 = { 255 255 255 }
	capital = 48
	gain_effect = {
		primary_title = { copy_title_laws = d_lothian }
		
		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 = {
			AND = {
				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 24 243 }
	color2 = { 255 255 255 }
	capital = 48
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_lothian }
		
		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 = {
			AND = {
				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 243 221 }
	color2 = { 255 255 255 }
	capital = 43
	gain_effect = {
		primary_title = { copy_title_laws = d_albany }
		
		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 = {
			AND = {
				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 243 221 }
	color2 = { 255 255 255 }
	capital = 43
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_albany }
		
		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 = {
			AND = {
				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 165 243 }
	color2 = { 255 255 255 }
	capital = 40
	gain_effect = {
		primary_title = { copy_title_laws = d_moray }
		
		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 = {
			AND = {
				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 243 223 }
	color2 = { 255 255 255 }
	capital = 40
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_moray }
		
		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 = {
			AND = {
				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 5 }
	color2 = { 255 255 255 }
	capital = 5
	norwegian = "Strangfjord"
	swedish = "Strangfjord"
	danish = "Strangfjord"
	norse = "Strangfjorðr"
	gain_effect = {
		primary_title = { copy_title_laws = d_ulster }
		
		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 = {
			AND = {
				culture_group = celtic
				religion_group = christian
			
				primary_title = { title = d_ulster }
				num_of_duke_titles = 4
			}
			k_ulster = {
				is_titular = no
			}
		}

	}
}

e_ulster = {
	color = { 109 222 5 }
	color2 = { 255 255 255 }
	capital = 5
	short_name = yes
	norwegian = "Strangfjord"
	swedish = "Strangfjord"
	danish = "Strangfjord"
	norse = "Strangfjorðr"
	gain_effect = {
		primary_title = { copy_title_laws = k_ulster }
		
		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 = {
			AND = {
				culture_group = celtic
				religion_group = christian
			
				primary_title = { title = k_ulster }
				num_of_king_titles = 3
			}
			e_ulster = {
				is_titular = no
			}
		}

	}
}

k_connacht = {
	color = { 125 229 56 }
	color2 = { 255 255 255 }
	capital = 9
	gain_effect = {
		primary_title = { copy_title_laws = d_connacht }
		
		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 = {
			AND = {
				culture_group = celtic
				religion_group = christian
			
				primary_title = { title = d_connacht }
				num_of_duke_titles = 4
			}
			k_connacht = {
				is_titular = no
			}
		}

	}
}

e_connacht = {
	color = { 177 229 56 }
	color2 = { 255 255 255 }
	capital = 9
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_connacht }
		
		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 = {
			AND = {
				culture_group = celtic
				religion_group = christian
			
				primary_title = { title = k_connacht }
				num_of_king_titles = 3
			}
			e_connacht = {
				is_titular = no
			}
		}

	}
}

k_meath = {
	color = { 98 249 49 }
	color2 = { 255 255 255 }
	capital = 11
	norwegian = "Dublin"
	danish = "Dublin"
	swedish = "Dublin"
	norse = "Dyflinn"
	irish = "Tara"
	pagan_coa = {
		template = 0
		religion = "norse_pagan"
		layer = {
			texture = 2
			texture_internal = 3
			emblem = 0
			color = 0
			color = 0
			color = 0
		}
	}
	gain_effect = {
		primary_title = { copy_title_laws = d_meath }
		
		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 = {
			AND = {
				culture_group = north_germanic
				religion_group = pagan_group
			
				primary_title = { title = d_meath }
				num_of_duke_titles = 4
			}
			k_meath = {
				is_titular = no
			}
		}

	}
}

e_meath = {
	color = { 74 249 49 }
	color2 = { 255 255 255 }
	capital = 11
	short_name = yes
	norwegian = "Dublin"
	danish = "Dublin"
	swedish = "Dublin"
	norse = "Dyflinn"
	irish = "Tara"
	pagan_coa = {
		template = 0
		religion = "norse_pagan"
		layer = {
			texture = 2
			texture_internal = 3
			emblem = 0
			color = 0
			color = 0
			color = 0
		}
	}
	gain_effect = {
		primary_title = { copy_title_laws = k_meath }
		
		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 = {
			AND = {
				culture_group = north_germanic
				religion_group = pagan_group
			
				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
	norwegian = "Veisafjord"
	swedish = "Veisafjord"
	danish = "Veisafjord"
	norse = "Veisafjorðr"
	gain_effect = {
		primary_title = { copy_title_laws = d_leinster }
		
		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 = {
			AND = {
				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
	short_name = yes
	norwegian = "Veisafjord"
	swedish = "Veisafjord"
	danish = "Veisafjord"
	norse = "Veisafjorðr"
	gain_effect = {
		primary_title = { copy_title_laws = k_leinster }
		
		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 = {
			AND = {
				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
	norwegian = "Hlymrek"
	danish = "Lymrek"
	swedish = "Lymrek"
	norse = "Hlymrek"
	gain_effect = {
		primary_title = { copy_title_laws = d_munster }
		
		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 = {
			AND = {
				culture_group = celtic
				religion_group = christian
			
				primary_title = { title = d_munster }
				num_of_duke_titles = 4
			}
			k_munster = {
				is_titular = no
			}
		}

	}
}

e_munster = {
	color = { 33 157 12 }
	color2 = { 255 255 255 }
	capital = 13
	short_name = yes
	norwegian = "Hlymrek"
	danish = "Lymrek"
	swedish = "Lymrek"
	norse = "Hlymrek"
	gain_effect = {
		primary_title = { copy_title_laws = k_munster }
		
		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 = {
			AND = {
				culture_group = celtic
				religion_group = christian
			
				primary_title = { title = k_munster }
				num_of_king_titles = 3
			}
			e_munster = {
				is_titular = no
			}
		}

	}
}

k_timbuktu = {
	color = { 123 180 61 }
	color2 = { 255 255 255 }
	capital = 911
	gain_effect = {
		primary_title = { copy_title_laws = d_timbuktu }
		
		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 = {
			AND = {
				culture_group = yperen_grp
				religion_group = pagan_group
			
				primary_title = { title = d_timbuktu }
				num_of_duke_titles = 4
			}
			k_timbuktu = {
				is_titular = no
			}
		}

	}
}

e_timbuktu = {
	color = { 109 180 61 }
	color2 = { 255 255 255 }
	capital = 911
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_timbuktu }
		
		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 = {
			AND = {
				culture_group = yperen_grp
				religion_group = pagan_group
			
				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 = {
		primary_title = { copy_title_laws = d_ghana }
		
		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 = {
			AND = {
				culture_group = yperen_grp
				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
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_ghana }
		
		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 = {
			AND = {
				culture_group = yperen_grp
				religion_group = pagan_group
			
				primary_title = { title = k_ghana }
				num_of_king_titles = 3
			}
			e_ghana = {
				is_titular = no
			}
		}

	}
}

k_songhay = {
	color = { 89 120 70 }
	color2 = { 255 255 255 }
	capital = 914
	gain_effect = {
		primary_title = { copy_title_laws = d_songhay }
		
		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 = {
			AND = {
				culture_group = yperen_grp
				religion_group = pagan_group
			
				primary_title = { title = d_songhay }
				num_of_duke_titles = 4
			}
			k_songhay = {
				is_titular = no
			}
		}

	}
}

e_songhay = {
	color = { 86 120 70 }
	color2 = { 255 255 255 }
	capital = 914
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_songhay }
		
		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 = {
			AND = {
				culture_group = yperen_grp
				religion_group = pagan_group
			
				primary_title = { title = k_songhay }
				num_of_king_titles = 3
			}
			e_songhay = {
				is_titular = no
			}
		}

	}
}

k_oxford = {
	color = { 255 16 0 }
	color2 = { 255 255 255 }
	capital = 22
	gain_effect = {
		primary_title = { copy_title_laws = d_oxford }
		
		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 = {
			AND = {
				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
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_oxford }
		
		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 = {
			AND = {
				culture_group = west_germanic
				religion_group = christian
			
				primary_title = { title = k_oxford }
				num_of_king_titles = 3
			}
			e_oxford = {
				is_titular = no
			}
		}

	}
}

k_curonian = {
	color = { 141 42 29 }
	capital = 373
	title = "HIGH_CHIEF"
	foa = "HIGH_CHIEF_FOA"
	title_prefix = "TRIBE_OF"
	gain_effect = {
		primary_title = { copy_title_laws = d_curonian }
		
		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 = {
			AND = {
				culture_group = baltic
				religion_group = pagan_group
			
				primary_title = { title = d_curonian }
				num_of_duke_titles = 4
			}
			k_curonian = {
				is_titular = no
			}
		}

	}
}

e_curonian = {
	color = { 141 29 43 }
	capital = 373
	short_name = yes
	title = "HIGH_CHIEF"
	foa = "HIGH_CHIEF_FOA"
	title_prefix = "TRIBE_OF"
	gain_effect = {
		primary_title = { copy_title_laws = k_curonian }
		
		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 = {
			AND = {
				culture_group = baltic
				religion_group = pagan_group
			
				primary_title = { title = k_curonian }
				num_of_king_titles = 3
			}
			e_curonian = {
				is_titular = no
			}
		}

	}
}

k_danes = {
	color = { 247 123 54 }
	capital = 266
	dignity = 10
	gain_effect = {
		primary_title = { copy_title_laws = d_danes }
		
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_danes = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_danes
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = north_germanic
				religion_group = pagan_group
			
				primary_title = { title = d_danes }
				num_of_duke_titles = 4
			}
			k_danes = {
				is_titular = no
			}
		}

	}
}

e_danes = {
	color = { 247 170 54 }
	capital = 266
	short_name = yes
	dignity = 10
	gain_effect = {
		primary_title = { copy_title_laws = k_danes }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_danes = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_danes
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = north_germanic
				religion_group = pagan_group
			
				primary_title = { title = k_danes }
				num_of_king_titles = 3
			}
			e_danes = {
				is_titular = no
			}
		}

	}
}

k_estonia = {
	color = { 94 47 22 }
	capital = 378
	title = "HIGH_CHIEF"
	foa = "HIGH_CHIEF_FOA"
	title_prefix = "TRIBE_OF"
	gain_effect = {
		primary_title = { copy_title_laws = d_estonia }
		
		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 = {
			AND = {
				culture_group = finno_ugric
				religion_group = pagan_group
			
				primary_title = { title = d_estonia }
				num_of_duke_titles = 4
			}
			k_estonia = {
				is_titular = no
			}
		}

	}
}

e_estonia = {
	color = { 94 47 22 }
	capital = 378
	short_name = yes
	title = "HIGH_CHIEF"
	foa = "HIGH_CHIEF_FOA"
	title_prefix = "TRIBE_OF"
	gain_effect = {
		primary_title = { copy_title_laws = k_estonia }
		
		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 = {
			AND = {
				culture_group = finno_ugric
				religion_group = pagan_group
			
				primary_title = { title = k_estonia }
				num_of_king_titles = 3
			}
			e_estonia = {
				is_titular = no
			}
		}

	}
}

k_geats = {
	color = { 35 57 180 }
	capital = 297
	dignity = 8
	gain_effect = {
		primary_title = { copy_title_laws = d_geats }
		
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_geats = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_geats
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = north_germanic
				religion_group = pagan_group
			
				primary_title = { title = d_geats }
				num_of_duke_titles = 4
			}
			k_geats = {
				is_titular = no
			}
		}

	}
}

e_geats = {
	color = { 35 109 180 }
	capital = 297
	short_name = yes
	dignity = 8
	gain_effect = {
		primary_title = { copy_title_laws = k_geats }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_geats = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_geats
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = north_germanic
				religion_group = pagan_group
			
				primary_title = { title = k_geats }
				num_of_king_titles = 3
			}
			e_geats = {
				is_titular = no
			}
		}

	}
}

k_khazars = {
	color = { 246 178 137 }
	capital = 594
	gain_effect = {
		primary_title = { copy_title_laws = d_khazars }
		
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_khazars = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_khazars
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = altaic
				religion_group = pagan_group
			
				primary_title = { title = d_khazars }
				num_of_duke_titles = 4
			}
			k_khazars = {
				is_titular = no
			}
		}

	}
}

e_khazars = {
	color = { 246 217 137 }
	capital = 594
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_khazars }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_khazars = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_khazars
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = altaic
				religion_group = pagan_group
			
				primary_title = { title = k_khazars }
				num_of_king_titles = 3
			}
			e_khazars = {
				is_titular = no
			}
		}

	}
}

k_mordvins = {
	color = { 165 160 45 }
	capital = 591
	title = "HIGH_CHIEF"
	foa = "HIGH_CHIEF_FOA"
	title_prefix = "TRIBE_OF"
	gain_effect = {
		primary_title = { copy_title_laws = d_mordvins }
		
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_mordvins = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_mordvins
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = finno_ugric
				religion_group = pagan_group
			
				primary_title = { title = d_mordvins }
				num_of_duke_titles = 4
			}
			k_mordvins = {
				is_titular = no
			}
		}

	}
}

e_mordvins = {
	color = { 165 139 45 }
	capital = 591
	short_name = yes
	title = "HIGH_CHIEF"
	foa = "HIGH_CHIEF_FOA"
	title_prefix = "TRIBE_OF"
	gain_effect = {
		primary_title = { copy_title_laws = k_mordvins }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_mordvins = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_mordvins
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = finno_ugric
				religion_group = pagan_group
			
				primary_title = { title = k_mordvins }
				num_of_king_titles = 3
			}
			e_mordvins = {
				is_titular = no
			}
		}

	}
}

k_muromians = {
	color = { 160 89 75 }
	capital = 581
	title = "HIGH_CHIEF"
	foa = "HIGH_CHIEF_FOA"
	title_prefix = "TRIBE_OF"
	gain_effect = {
		primary_title = { copy_title_laws = d_muromians }
		
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_muromians = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_muromians
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = finno_ugric
				religion_group = pagan_group
			
				primary_title = { title = d_muromians }
				num_of_duke_titles = 4
			}
			k_muromians = {
				is_titular = no
			}
		}

	}
}

e_muromians = {
	color = { 160 110 75 }
	capital = 581
	short_name = yes
	title = "HIGH_CHIEF"
	foa = "HIGH_CHIEF_FOA"
	title_prefix = "TRIBE_OF"
	gain_effect = {
		primary_title = { copy_title_laws = k_muromians }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_muromians = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_muromians
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = finno_ugric
				religion_group = pagan_group
			
				primary_title = { title = k_muromians }
				num_of_king_titles = 3
			}
			e_muromians = {
				is_titular = no
			}
		}

	}
}

k_maris = {
	color = { 150 124 45 }
	capital = 588
	title = "HIGH_CHIEF"
	foa = "HIGH_CHIEF_FOA"
	title_prefix = "TRIBE_OF"
	gain_effect = {
		primary_title = { copy_title_laws = d_maris }
		
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_maris = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_maris
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = finno_ugric
				religion_group = pagan_group
			
				primary_title = { title = d_maris }
				num_of_duke_titles = 4
			}
			k_maris = {
				is_titular = no
			}
		}

	}
}

e_maris = {
	color = { 150 86 45 }
	capital = 588
	short_name = yes
	title = "HIGH_CHIEF"
	foa = "HIGH_CHIEF_FOA"
	title_prefix = "TRIBE_OF"
	gain_effect = {
		primary_title = { copy_title_laws = k_maris }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_maris = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_maris
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = finno_ugric
				religion_group = pagan_group
			
				primary_title = { title = k_maris }
				num_of_king_titles = 3
			}
			e_maris = {
				is_titular = no
			}
		}

	}
}

k_pruthenians = {
	color = { 123 195 75 }
	capital = 370
	title = "HIGH_CHIEF"
	foa = "HIGH_CHIEF_FOA"
	title_prefix = "TRIBE_OF"
	gain_effect = {
		primary_title = { copy_title_laws = d_pruthenians }
		
		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 = {
			AND = {
				culture_group = baltic
				religion_group = pagan_group
			
				primary_title = { title = d_pruthenians }
				num_of_duke_titles = 4
			}
			k_pruthenians = {
				is_titular = no
			}
		}

	}
}

e_pruthenians = {
	color = { 87 195 75 }
	capital = 370
	short_name = yes
	title = "HIGH_CHIEF"
	foa = "HIGH_CHIEF_FOA"
	title_prefix = "TRIBE_OF"
	gain_effect = {
		primary_title = { copy_title_laws = k_pruthenians }
		
		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 = {
			AND = {
				culture_group = baltic
				religion_group = pagan_group
			
				primary_title = { title = k_pruthenians }
				num_of_king_titles = 3
			}
			e_pruthenians = {
				is_titular = no
			}
		}

	}
}

k_meryas = {
	color = { 131 41 63 }
	capital = 574
	title = "HIGH_CHIEF"
	foa = "HIGH_CHIEF_FOA"
	title_prefix = "TRIBE_OF"
	gain_effect = {
		primary_title = { copy_title_laws = d_meryas }
		
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_meryas = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_meryas
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = finno_ugric
				religion_group = pagan_group
			
				primary_title = { title = d_meryas }
				num_of_duke_titles = 4
			}
			k_meryas = {
				is_titular = no
			}
		}

	}
}

e_meryas = {
	color = { 131 41 57 }
	capital = 574
	short_name = yes
	title = "HIGH_CHIEF"
	foa = "HIGH_CHIEF_FOA"
	title_prefix = "TRIBE_OF"
	gain_effect = {
		primary_title = { copy_title_laws = k_meryas }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_meryas = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_meryas
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = finno_ugric
				religion_group = pagan_group
			
				primary_title = { title = k_meryas }
				num_of_king_titles = 3
			}
			e_meryas = {
				is_titular = no
			}
		}

	}
}

k_meshcheras = {
	color = { 151 45 41 }
	capital = 580
	title = "HIGH_CHIEF"
	foa = "HIGH_CHIEF_FOA"
	title_prefix = "TRIBE_OF"
	gain_effect = {
		primary_title = { copy_title_laws = d_meshcheras }
		
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_meshcheras = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_meshcheras
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = finno_ugric
				religion_group = pagan_group
			
				primary_title = { title = d_meshcheras }
				num_of_duke_titles = 4
			}
			k_meshcheras = {
				is_titular = no
			}
		}

	}
}

e_meshcheras = {
	color = { 151 45 41 }
	capital = 580
	short_name = yes
	title = "HIGH_CHIEF"
	foa = "HIGH_CHIEF_FOA"
	title_prefix = "TRIBE_OF"
	gain_effect = {
		primary_title = { copy_title_laws = k_meshcheras }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_meshcheras = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_meshcheras
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = finno_ugric
				religion_group = pagan_group
			
				primary_title = { title = k_meshcheras }
				num_of_king_titles = 3
			}
			e_meshcheras = {
				is_titular = no
			}
		}

	}
}

k_lendians = {
	color = { 245 170 163 }
	color2 = { 255 255 255 }
	capital = 527
	title = "HIGH_CHIEF"
	foa = "HIGH_CHIEF_FOA"
	title_prefix = "TRIBE_OF"
	gain_effect = {
		primary_title = { copy_title_laws = d_lendians }
		
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_lendians = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_lendians
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = west_slavic
				religion_group = pagan_group
			
				primary_title = { title = d_lendians }
				num_of_duke_titles = 4
			}
			k_lendians = {
				is_titular = no
			}
		}

	}
}

e_lendians = {
	color = { 245 214 163 }
	color2 = { 255 255 255 }
	capital = 527
	short_name = yes
	title = "HIGH_CHIEF"
	foa = "HIGH_CHIEF_FOA"
	title_prefix = "TRIBE_OF"
	gain_effect = {
		primary_title = { copy_title_laws = k_lendians }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_lendians = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_lendians
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = west_slavic
				religion_group = pagan_group
			
				primary_title = { title = k_lendians }
				num_of_king_titles = 3
			}
			e_lendians = {
				is_titular = no
			}
		}

	}
}

k_kryvians = {
	color = { 128 133 104 }
	color2 = { 255 255 255 }
	capital = 419
	title = "HIGH_CHIEF"
	foa = "HIGH_CHIEF_FOA"
	title_prefix = "TRIBE_OF"
	gain_effect = {
		primary_title = { copy_title_laws = d_kryvians }
		
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_kryvians = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_kryvians
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = east_slavic
				religion_group = pagan_group
			
				primary_title = { title = d_kryvians }
				num_of_duke_titles = 4
			}
			k_kryvians = {
				is_titular = no
			}
		}

	}
}

e_kryvians = {
	color = { 133 131 104 }
	color2 = { 255 255 255 }
	capital = 419
	short_name = yes
	title = "HIGH_CHIEF"
	foa = "HIGH_CHIEF_FOA"
	title_prefix = "TRIBE_OF"
	gain_effect = {
		primary_title = { copy_title_laws = k_kryvians }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_kryvians = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_kryvians
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = east_slavic
				religion_group = pagan_group
			
				primary_title = { title = k_kryvians }
				num_of_king_titles = 3
			}
			e_kryvians = {
				is_titular = no
			}
		}

	}
}

k_severians = {
	color = { 127 155 40 }
	color2 = { 255 255 255 }
	capital = 567
	title = "HIGH_CHIEF"
	foa = "HIGH_CHIEF_FOA"
	title_prefix = "TRIBE_OF"
	gain_effect = {
		primary_title = { copy_title_laws = d_severians }
		
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_severians = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_severians
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = east_slavic
				religion_group = pagan_group
			
				primary_title = { title = d_severians }
				num_of_duke_titles = 4
			}
			k_severians = {
				is_titular = no
			}
		}

	}
}

e_severians = {
	color = { 154 155 40 }
	color2 = { 255 255 255 }
	capital = 567
	short_name = yes
	title = "HIGH_CHIEF"
	foa = "HIGH_CHIEF_FOA"
	title_prefix = "TRIBE_OF"
	gain_effect = {
		primary_title = { copy_title_laws = k_severians }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_severians = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_severians
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = east_slavic
				religion_group = pagan_group
			
				primary_title = { title = k_severians }
				num_of_king_titles = 3
			}
			e_severians = {
				is_titular = no
			}
		}

	}
}

k_vyatichi = {
	color = { 166 183 125 }
	color2 = { 255 255 255 }
	capital = 570
	title = "HIGH_CHIEF"
	foa = "HIGH_CHIEF_FOA"
	title_prefix = "TRIBE_OF"
	gain_effect = {
		primary_title = { copy_title_laws = d_vyatichi }
		
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_vyatichi = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_vyatichi
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = east_slavic
				religion_group = pagan_group
			
				primary_title = { title = d_vyatichi }
				num_of_duke_titles = 4
			}
			k_vyatichi = {
				is_titular = no
			}
		}

	}
}

e_vyatichi = {
	color = { 125 183 126 }
	color2 = { 255 255 255 }
	capital = 570
	short_name = yes
	title = "HIGH_CHIEF"
	foa = "HIGH_CHIEF_FOA"
	title_prefix = "TRIBE_OF"
	gain_effect = {
		primary_title = { copy_title_laws = k_vyatichi }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_vyatichi = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_vyatichi
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = east_slavic
				religion_group = pagan_group
			
				primary_title = { title = k_vyatichi }
				num_of_king_titles = 3
			}
			e_vyatichi = {
				is_titular = no
			}
		}

	}
}

k_dregovichi = {
	color = { 95 100 20 }
	color2 = { 255 255 255 }
	capital = 548
	title = "HIGH_CHIEF"
	foa = "HIGH_CHIEF_FOA"
	title_prefix = "TRIBE_OF"
	gain_effect = {
		primary_title = { copy_title_laws = d_dregovichi }
		
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_dregovichi = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_dregovichi
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = east_slavic
				religion_group = pagan_group
			
				primary_title = { title = d_dregovichi }
				num_of_duke_titles = 4
			}
			k_dregovichi = {
				is_titular = no
			}
		}

	}
}

e_dregovichi = {
	color = { 62 100 20 }
	color2 = { 255 255 255 }
	capital = 548
	short_name = yes
	title = "HIGH_CHIEF"
	foa = "HIGH_CHIEF_FOA"
	title_prefix = "TRIBE_OF"
	gain_effect = {
		primary_title = { copy_title_laws = k_dregovichi }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_dregovichi = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_dregovichi
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = east_slavic
				religion_group = pagan_group
			
				primary_title = { title = k_dregovichi }
				num_of_king_titles = 3
			}
			e_dregovichi = {
				is_titular = no
			}
		}

	}
}

k_radimichi = {
	color = { 86 136 68 }
	color2 = { 255 255 255 }
	capital = 551
	title = "HIGH_CHIEF"
	foa = "HIGH_CHIEF_FOA"
	title_prefix = "TRIBE_OF"
	gain_effect = {
		primary_title = { copy_title_laws = d_radimichi }
		
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_radimichi = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_radimichi
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = east_slavic
				religion_group = pagan_group
			
				primary_title = { title = d_radimichi }
				num_of_duke_titles = 4
			}
			k_radimichi = {
				is_titular = no
			}
		}

	}
}

e_radimichi = {
	color = { 77 136 68 }
	color2 = { 255 255 255 }
	capital = 551
	short_name = yes
	title = "HIGH_CHIEF"
	foa = "HIGH_CHIEF_FOA"
	title_prefix = "TRIBE_OF"
	gain_effect = {
		primary_title = { copy_title_laws = k_radimichi }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_radimichi = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_radimichi
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = east_slavic
				religion_group = pagan_group
			
				primary_title = { title = k_radimichi }
				num_of_king_titles = 3
			}
			e_radimichi = {
				is_titular = no
			}
		}

	}
}

k_glomacze = {
	color = { 215 143 156 }
	color2 = { 255 255 255 }
	capital = 312
	title = "HIGH_CHIEF"
	foa = "HIGH_CHIEF_FOA"
	title_prefix = "TRIBE_OF"
	gain_effect = {
		primary_title = { copy_title_laws = d_glomacze }
		
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_glomacze = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_glomacze
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = west_slavic
				religion_group = pagan_group
			
				primary_title = { title = d_glomacze }
				num_of_duke_titles = 4
			}
			k_glomacze = {
				is_titular = no
			}
		}

	}
}

e_glomacze = {
	color = { 215 143 186 }
	color2 = { 255 255 255 }
	capital = 312
	short_name = yes
	title = "HIGH_CHIEF"
	foa = "HIGH_CHIEF_FOA"
	title_prefix = "TRIBE_OF"
	gain_effect = {
		primary_title = { copy_title_laws = k_glomacze }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_glomacze = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_glomacze
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = west_slavic
				religion_group = pagan_group
			
				primary_title = { title = k_glomacze }
				num_of_king_titles = 3
			}
			e_glomacze = {
				is_titular = no
			}
		}

	}
}

k_sorbs = {
	color = { 176 205 110 }
	color2 = { 255 255 255 }
	capital = 364
	title = "HIGH_CHIEF"
	foa = "HIGH_CHIEF_FOA"
	title_prefix = "TRIBE_OF"
	gain_effect = {
		primary_title = { copy_title_laws = d_sorbs }
		
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_sorbs = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_sorbs
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = west_slavic
				religion_group = pagan_group
			
				primary_title = { title = d_sorbs }
				num_of_duke_titles = 4
			}
			k_sorbs = {
				is_titular = no
			}
		}

	}
}

e_sorbs = {
	color = { 205 177 110 }
	color2 = { 255 255 255 }
	capital = 364
	short_name = yes
	title = "HIGH_CHIEF"
	foa = "HIGH_CHIEF_FOA"
	title_prefix = "TRIBE_OF"
	gain_effect = {
		primary_title = { copy_title_laws = k_sorbs }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_sorbs = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_sorbs
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = west_slavic
				religion_group = pagan_group
			
				primary_title = { title = k_sorbs }
				num_of_king_titles = 3
			}
			e_sorbs = {
				is_titular = no
			}
		}

	}
}

k_obotrites = {
	color = { 110 109 20 }
	color2 = { 255 255 255 }
	capital = 260
	title = "HIGH_CHIEF"
	foa = "HIGH_CHIEF_FOA"
	title_prefix = "TRIBE_OF"
	gain_effect = {
		primary_title = { copy_title_laws = d_obotrites }
		
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_obotrites = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_obotrites
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = west_slavic
				religion_group = pagan_group
			
				primary_title = { title = d_obotrites }
				num_of_duke_titles = 4
			}
			k_obotrites = {
				is_titular = no
			}
		}

	}
}

e_obotrites = {
	color = { 110 82 20 }
	color2 = { 255 255 255 }
	capital = 260
	short_name = yes
	title = "HIGH_CHIEF"
	foa = "HIGH_CHIEF_FOA"
	title_prefix = "TRIBE_OF"
	gain_effect = {
		primary_title = { copy_title_laws = k_obotrites }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_obotrites = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_obotrites
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = west_slavic
				religion_group = pagan_group
			
				primary_title = { title = k_obotrites }
				num_of_king_titles = 3
			}
			e_obotrites = {
				is_titular = no
			}
		}

	}
}

k_amalfi = {
	color = { 140 222 230 }
	capital = 935
	dignity = 10
	gain_effect = {
		primary_title = { copy_title_laws = d_amalfi }
		
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_amalfi = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_amalfi
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = napoli_grp
				religion_group = christian
			
				primary_title = { title = d_amalfi }
				num_of_duke_titles = 4
			}
			k_amalfi = {
				is_titular = no
			}
		}

	}
}

e_amalfi = {
	color = { 140 230 228 }
	capital = 935
	short_name = yes
	dignity = 10
	gain_effect = {
		primary_title = { copy_title_laws = k_amalfi }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_amalfi = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_amalfi
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = napoli_grp
				religion_group = christian
			
				primary_title = { title = k_amalfi }
				num_of_king_titles = 3
			}
			e_amalfi = {
				is_titular = no
			}
		}

	}
}

k_yazidi = {
	color = { 20 67 160 }
	color2 = { 220 220 0 }
	capital = 697
	dignity = 80
	title = "SHEIKH"
	foa = "CALIPH_FOA"
	title_female = "SHEIKHA"
	gain_effect = {
		primary_title = { copy_title_laws = d_yazidi }
		
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_yazidi = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_yazidi
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = uzens_grp
				religion_group = muslim
			
				primary_title = { title = d_yazidi }
				num_of_duke_titles = 4
			}
			k_yazidi = {
				is_titular = no
			}
		}

	}
}

e_yazidi = {
	color = { 20 58 160 }
	color2 = { 220 220 0 }
	capital = 697
	short_name = yes
	dignity = 80
	title = "SHEIKH"
	foa = "CALIPH_FOA"
	title_female = "SHEIKHA"
	gain_effect = {
		primary_title = { copy_title_laws = k_yazidi }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_yazidi = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_yazidi
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = uzens_grp
				religion_group = muslim
			
				primary_title = { title = k_yazidi }
				num_of_king_titles = 3
			}
			e_yazidi = {
				is_titular = no
			}
		}

	}
}

k_ibadi = {
	color = { 46 130 20 }
	color2 = { 220 220 0 }
	capital = 719
	dignity = 80
	creation_requires_capital = no
	title = "CALIPH"
	foa = "CALIPH_FOA"
	title_female = "CALIPHA"
	gain_effect = {
		primary_title = { copy_title_laws = d_ibadi }
		
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_ibadi = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_ibadi
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = uzens_grp
				religion_group = muslim
			
				primary_title = { title = d_ibadi }
				num_of_duke_titles = 4
			}
			k_ibadi = {
				is_titular = no
			}
		}

	}
}

e_ibadi = {
	color = { 73 130 20 }
	color2 = { 220 220 0 }
	capital = 719
	short_name = yes
	dignity = 80
	creation_requires_capital = no
	title = "CALIPH"
	foa = "CALIPH_FOA"
	title_female = "CALIPHA"
	gain_effect = {
		primary_title = { copy_title_laws = k_ibadi }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_ibadi = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_ibadi
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = uzens_grp
				religion_group = muslim
			
				primary_title = { title = k_ibadi }
				num_of_king_titles = 3
			}
			e_ibadi = {
				is_titular = no
			}
		}

	}
}

k_hurufi = {
	color = { 80 220 88 }
	color2 = { 220 220 0 }
	capital = 719
	dignity = 100
	creation_requires_capital = no
	title = "CALIPH"
	foa = "CALIPH_FOA"
	title_female = "CALIPHA"
	gain_effect = {
		primary_title = { copy_title_laws = d_hurufi }
		
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_hurufi = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_hurufi
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = uzens_grp
				religion_group = muslim
			
				primary_title = { title = d_hurufi }
				num_of_duke_titles = 4
			}
			k_hurufi = {
				is_titular = no
			}
		}

	}
}

e_hurufi = {
	color = { 80 220 80 }
	color2 = { 220 220 0 }
	capital = 719
	short_name = yes
	dignity = 100
	creation_requires_capital = no
	title = "CALIPH"
	foa = "CALIPH_FOA"
	title_female = "CALIPHA"
	gain_effect = {
		primary_title = { copy_title_laws = k_hurufi }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_hurufi = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_hurufi
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = uzens_grp
				religion_group = muslim
			
				primary_title = { title = k_hurufi }
				num_of_king_titles = 3
			}
			e_hurufi = {
				is_titular = no
			}
		}

	}
}

k_gotland = {
	color = { 60 70 235 }
	color2 = { 255 255 255 }
	capital = 301
	dignity = 10
	gain_effect = {
		primary_title = { copy_title_laws = d_gotland }
		
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_gotland = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_gotland
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = north_germanic
				religion_group = pagan_group
			
				primary_title = { title = d_gotland }
				num_of_duke_titles = 4
			}
			k_gotland = {
				is_titular = no
			}
		}

	}
}

e_gotland = {
	color = { 60 143 235 }
	color2 = { 255 255 255 }
	capital = 301
	short_name = yes
	dignity = 10
	gain_effect = {
		primary_title = { copy_title_laws = k_gotland }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_gotland = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_gotland
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = north_germanic
				religion_group = pagan_group
			
				primary_title = { title = k_gotland }
				num_of_king_titles = 3
			}
			e_gotland = {
				is_titular = no
			}
		}

	}
}

k_norse_pagan_reformed = {
	color = { 160 155 235 }
	color2 = { 220 220 0 }
	capital = 290
	dignity = 100
	creation_requires_capital = no
	title = "FYLKIR"
	foa = "FYLKIR_FOA"
	title_female = "FYLKJA"
	gain_effect = {
		primary_title = { copy_title_laws = d_norse_pagan_reformed }
		
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_norse_pagan_reformed = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_norse_pagan_reformed
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = lappland_grp
				religion_group = pagan_group
			
				primary_title = { title = d_norse_pagan_reformed }
				num_of_duke_titles = 4
			}
			k_norse_pagan_reformed = {
				is_titular = no
			}
		}

	}
}

e_norse_pagan_reformed = {
	color = { 198 155 235 }
	color2 = { 220 220 0 }
	capital = 290
	short_name = yes
	dignity = 100
	creation_requires_capital = no
	title = "FYLKIR"
	foa = "FYLKIR_FOA"
	title_female = "FYLKJA"
	gain_effect = {
		primary_title = { copy_title_laws = k_norse_pagan_reformed }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_norse_pagan_reformed = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_norse_pagan_reformed
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = lappland_grp
				religion_group = pagan_group
			
				primary_title = { title = k_norse_pagan_reformed }
				num_of_king_titles = 3
			}
			e_norse_pagan_reformed = {
				is_titular = no
			}
		}

	}
}

e_frisia = {
	color = { 245 141 20 }
	color2 = { 220 220 20 }
	capital = 80
	short_name = yes
	catholic = 700
	norse_pagan_reformed = 200
	gain_effect = {
		primary_title = { copy_title_laws = k_frisia }
		
		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 = {
			AND = {
				culture_group = yperen_grp
				religion_group = christian
			
				primary_title = { title = k_frisia }
				num_of_king_titles = 3
			}
			e_frisia = {
				is_titular = no
			}
		}

	}
}

e_lotharingia = {
	color = { 144 100 60 }
	color2 = { 220 220 20 }
	capital = 115
	short_name = yes
	dignity = 17
	catholic = 5000
	gain_effect = {
		primary_title = { copy_title_laws = k_lotharingia }
		
		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 = {
			AND = {
				culture_group = yperen_grp
				religion_group = christian
			
				primary_title = { title = k_lotharingia }
				num_of_king_titles = 3
			}
			e_lotharingia = {
				is_titular = no
			}
		}

	}
}

e_bavaria = {
	color = { 92 91 102 }
	color2 = { 220 220 20 }
	capital = 360
	short_name = yes
	catholic = 2000
	gain_effect = {
		primary_title = { copy_title_laws = k_bavaria }
		
		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 = {
			AND = {
				culture_group = holstein_grp
				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
	short_name = yes
	dignity = 30
	catholic = 5000
	norse_pagan_reformed = 200
	slavic_pagan_reformed = 50
	baltic_pagan_reformed = 50
	gain_effect = {
		primary_title = { copy_title_laws = k_germany }
		
		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 = {
			AND = {
				culture_group = holstein_grp
				religion_group = christian
			
				primary_title = { title = k_germany }
				num_of_king_titles = 3
			}
			e_germany = {
				is_titular = no
			}
		}

	}
}

e_anatolia = {
	color = { 177 60 135 }
	color2 = { 255 255 23 }
	capital = 759
	short_name = yes
	orthodox = 300
	catholic = 75
	gain_effect = {
		primary_title = { copy_title_laws = k_anatolia }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = christian
			
				primary_title = { title = k_anatolia }
				num_of_king_titles = 3
			}
			e_anatolia = {
				is_titular = no
			}
		}

	}
}

e_armenia = {
	color = { 101 41 171 }
	color2 = { 255 255 255 }
	capital = 681
	short_name = yes
	orthodox = 300
	gain_effect = {
		primary_title = { copy_title_laws = k_armenia }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = christian
			
				primary_title = { title = k_armenia }
				num_of_king_titles = 3
			}
			e_armenia = {
				is_titular = no
			}
		}

	}
}

e_bulgaria = {
	color = { 113 88 97 }
	color2 = { 255 255 255 }
	capital = 499
	short_name = yes
	orthodox = 300
	catholic = 100
	slavic_pagan_reformed = 50
	tengri_pagan_reformed = 50
	gain_effect = {
		primary_title = { copy_title_laws = k_bulgaria }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = christian
			
				primary_title = { title = k_bulgaria }
				num_of_king_titles = 3
			}
			e_bulgaria = {
				is_titular = no
			}
		}

	}
}

e_serbia = {
	color = { 113 95 61 }
	color2 = { 255 255 255 }
	capital = 502
	short_name = yes
	orthodox = 300
	catholic = 100
	gain_effect = {
		primary_title = { copy_title_laws = k_serbia }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				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
	short_name = yes
	orthodox = 300
	catholic = 1000
	gain_effect = {
		primary_title = { copy_title_laws = k_croatia }
		
		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 = {
			AND = {
				culture_group = holstein_grp
				religion_group = christian
			
				primary_title = { title = k_croatia }
				num_of_king_titles = 3
			}
			e_croatia = {
				is_titular = no
			}
		}

	}
}

e_sicily = {
	color = { 222 244 86 }
	color2 = { 255 255 255 }
	capital = 334
	short_name = yes
	catholic = 500
	orthodox = 50
	gain_effect = {
		primary_title = { copy_title_laws = k_sicily }
		
		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 = {
			AND = {
				culture_group = napoli_grp
				religion_group = christian
			
				primary_title = { title = k_sicily }
				num_of_king_titles = 3
			}
			e_sicily = {
				is_titular = no
			}
		}

	}
}

e_georgia = {
	color = { 205 145 149 }
	color2 = { 255 255 255 }
	capital = 679
	short_name = yes
	orthodox = 200
	tengri_pagan_reformed = 50
	gain_effect = {
		primary_title = { copy_title_laws = k_georgia }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = christian
			
				primary_title = { title = k_georgia }
				num_of_king_titles = 3
			}
			e_georgia = {
				is_titular = no
			}
		}

	}
}

e_venice = {
	color = { 54 167 156 }
	capital = 356
	short_name = yes
	dignity = 200
	gain_effect = {
		primary_title = { copy_title_laws = k_venice }
		
		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 = {
			AND = {
				culture_group = latin
				religion_group = christian
			
				primary_title = { title = k_venice }
				num_of_king_titles = 3
			}
			e_venice = {
				is_titular = no
			}
		}

	}
}

e_sweden = {
	color = { 55 147 170 }
	color2 = { 255 255 0 }
	capital = 290
	short_name = yes
	dignity = 10
	norse = "Sviþjod"
	catholic = 100
	baltic_pagan_reformed = 50
	finnish_pagan_reformed = 50
	gain_effect = {
		primary_title = { copy_title_laws = k_sweden }
		
		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 = {
			AND = {
				culture_group = lappland_grp
				religion_group = pagan_group
			
				primary_title = { title = k_sweden }
				num_of_king_titles = 3
			}
			e_sweden = {
				is_titular = no
			}
		}

	}
}

e_denmark = {
	color = { 247 135 54 }
	color2 = { 136 157 23 }
	capital = 266
	short_name = yes
	dignity = 10
	baltic_pagan_reformed = 50
	gain_effect = {
		primary_title = { copy_title_laws = k_denmark }
		
		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 = {
			AND = {
				culture_group = holstein_grp
				religion_group = pagan_group
			
				primary_title = { title = k_denmark }
				num_of_king_titles = 3
			}
			e_denmark = {
				is_titular = no
			}
		}

	}
}

e_norway = {
	color = { 180 170 210 }
	color2 = { 220 220 220 }
	capital = 274
	short_name = yes
	catholic = 100
	finnish_pagan_reformed = 50
	gain_effect = {
		primary_title = { copy_title_laws = k_norway }
		
		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 = {
			AND = {
				culture_group = lappland_grp
				religion_group = pagan_group
			
				primary_title = { title = k_norway }
				num_of_king_titles = 3
			}
			e_norway = {
				is_titular = no
			}
		}

	}
}

e_finland = {
	color = { 140 74 65 }
	color2 = { 255 255 255 }
	capital = 382
	short_name = yes
	finnish = "Suomi"
	lappish = "Suomi"
	ugricbaltic = "Suomi"
	komi = "Suomi"
	samoyed = "Suomi"
	mordvin = "Suomi"
	finnish_pagan_reformed = 500
	norse_pagan_reformed = 200
	baltic_pagan_reformed = 100
	slavic_pagan_reformed = 50
	catholic = 40
	gain_effect = {
		primary_title = { copy_title_laws = k_finland }
		
		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 = {
			AND = {
				culture_group = lappland_grp
				religion_group = pagan_group
			
				primary_title = { title = k_finland }
				num_of_king_titles = 3
			}
			e_finland = {
				is_titular = no
			}
		}

	}
}

e_poland = {
	color = { 150 31 23 }
	color2 = { 200 0 0 }
	capital = 527
	short_name = yes
	catholic = 100
	slavic_pagan_reformed = 500
	baltic_pagan_reformed = 100
	gain_effect = {
		primary_title = { copy_title_laws = k_poland }
		
		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 = {
			AND = {
				culture_group = holstein_grp
				religion_group = pagan_group
			
				primary_title = { title = k_poland }
				num_of_king_titles = 3
			}
			e_poland = {
				is_titular = no
			}
		}

	}
}

e_pomerania = {
	color = { 129 145 40 }
	color2 = { 220 220 20 }
	capital = 366
	short_name = yes
	catholic = 400
	slavic_pagan_reformed = 500
	norse_pagan_reformed = 100
	baltic_pagan_reformed = 100
	gain_effect = {
		primary_title = { copy_title_laws = k_pomerania }
		
		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 = {
			AND = {
				culture_group = holstein_grp
				religion_group = pagan_group
			
				primary_title = { title = k_pomerania }
				num_of_king_titles = 3
			}
			e_pomerania = {
				is_titular = no
			}
		}

	}
}

e_lithuania = {
	color = { 68 125 6 }
	color2 = { 255 255 255 }
	capital = 420
	short_name = yes
	catholic = 50
	slavic_pagan_reformed = 100
	baltic_pagan_reformed = 500
	finnish_pagan_reformed = 100
	gain_effect = {
		primary_title = { copy_title_laws = k_lithuania }
		
		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 = {
			AND = {
				culture_group = lappland_grp
				religion_group = pagan_group
			
				primary_title = { title = k_lithuania }
				num_of_king_titles = 3
			}
			e_lithuania = {
				is_titular = no
			}
		}

	}
}

e_bohemia = {
	color = { 176 162 32 }
	color2 = { 255 255 255 }
	capital = 437
	short_name = yes
	catholic = 400
	slavic_pagan_reformed = 100
	baltic_pagan_reformed = 50
	gain_effect = {
		primary_title = { copy_title_laws = k_bohemia }
		
		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 = {
			AND = {
				culture_group = holstein_grp
				religion_group = pagan_group
			
				primary_title = { title = k_bohemia }
				num_of_king_titles = 3
			}
			e_bohemia = {
				is_titular = no
			}
		}

	}
}

e_rus = {
	color = { 70 144 50 }
	color2 = { 255 255 255 }
	capital = 414
	short_name = yes
	norse = "Garðariki"
	slavic_pagan_reformed = 500
	finnish_pagan_reformed = 300
	baltic_pagan_reformed = 100
	gain_effect = {
		primary_title = { copy_title_laws = k_rus }
		
		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 = {
			AND = {
				culture_group = lappland_grp
				religion_group = pagan_group
			
				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
	short_name = yes
	norse = "Könugarðr"
	swedish = "Könugård"
	norwegian = "Kønugård"
	danish = "Kønugård"
	slavic_pagan_reformed = 500
	baltic_pagan_reformed = 100
	tengri_pagan_reformed = 100
	finnish_pagan_reformed = 100
	gain_effect = {
		primary_title = { copy_title_laws = k_ruthenia }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = pagan_group
			
				primary_title = { title = k_ruthenia }
				num_of_king_titles = 3
			}
			e_ruthenia = {
				is_titular = no
			}
		}

	}
}

e_perm = {
	color = { 202 204 127 }
	color2 = { 255 255 255 }
	capital = 886
	short_name = yes
	finnish_pagan_reformed = 500
	slavic_pagan_reformed = 100
	tengri_pagan_reformed = 50
	gain_effect = {
		primary_title = { copy_title_laws = k_perm }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = pagan_group
			
				primary_title = { title = k_perm }
				num_of_king_titles = 3
			}
			e_perm = {
				is_titular = no
			}
		}

	}
}

e_cuman = {
	color = { 231 183 88 }
	color2 = { 255 255 255 }
	capital = 594
	short_name = yes
	tengri_pagan_reformed = 500
	slavic_pagan_reformed = 50
	gain_effect = {
		primary_title = { copy_title_laws = k_cuman }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = pagan_group
			
				primary_title = { title = k_cuman }
				num_of_king_titles = 3
			}
			e_cuman = {
				is_titular = no
			}
		}

	}
}

e_volga_bulgaria = {
	color = { 165 180 55 }
	color2 = { 255 255 255 }
	capital = 610
	short_name = yes
	tengri_pagan_reformed = 500
	finnish_pagan_reformed = 200
	slavic_pagan_reformed = 100
	gain_effect = {
		primary_title = { copy_title_laws = k_volga_bulgaria }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = pagan_group
			
				primary_title = { title = k_volga_bulgaria }
				num_of_king_titles = 3
			}
			e_volga_bulgaria = {
				is_titular = no
			}
		}

	}
}

e_taurica = {
	color = { 188 91 137 }
	color2 = { 255 255 20 }
	capital = 560
	short_name = yes
	tengri_pagan_reformed = 200
	slavic_pagan_reformed = 50
	gain_effect = {
		primary_title = { copy_title_laws = k_taurica }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = christian
			
				primary_title = { title = k_taurica }
				num_of_king_titles = 3
			}
			e_taurica = {
				is_titular = no
			}
		}

	}
}

e_alania = {
	color = { 155 97 48 }
	color2 = { 255 255 255 }
	capital = 603
	short_name = yes
	tengri_pagan_reformed = 200
	gain_effect = {
		primary_title = { copy_title_laws = k_alania }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = christian
			
				primary_title = { title = k_alania }
				num_of_king_titles = 3
			}
			e_alania = {
				is_titular = no
			}
		}

	}
}

e_khwarizm = {
	color = { 204 117 21 }
	color2 = { 255 255 255 }
	capital = 900
	short_name = yes
	tengri_pagan_reformed = 500
	gain_effect = {
		primary_title = { copy_title_laws = k_khwarizm }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = pagan_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 = 626
	short_name = yes
	tengri_pagan_reformed = 50
	gain_effect = {
		primary_title = { copy_title_laws = k_qarakhnid }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = zoroastrian_group
			
				primary_title = { title = k_qarakhnid }
				num_of_king_titles = 3
			}
			e_qarakhnid = {
				is_titular = no
			}
		}

	}
}

e_mesopotamia = {
	color = { 55 128 63 }
	color2 = { 255 255 255 }
	capital = 693
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_mesopotamia }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = muslim
			
				primary_title = { title = k_mesopotamia }
				num_of_king_titles = 3
			}
			e_mesopotamia = {
				is_titular = no
			}
		}

	}
}

e_dacia = {
	color = { 220 154 40 }
	color2 = { 255 255 255 }
	capital = 515
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_dacia }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = pagan_group
			
				primary_title = { title = k_dacia }
				num_of_king_titles = 3
			}
			e_dacia = {
				is_titular = no
			}
		}

	}
}

e_hungary = {
	color = { 187 105 70 }
	color2 = { 255 255 255 }
	capital = 444
	short_name = yes
	avar = "Avar"
	catholic = 500
	gain_effect = {
		primary_title = { copy_title_laws = k_hungary }
		
		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 = {
			AND = {
				culture_group = holstein_grp
				religion_group = christian
			
				primary_title = { title = k_hungary }
				num_of_king_titles = 3
			}
			e_hungary = {
				is_titular = no
			}
		}

	}
}

e_aquitaine = {
	color = { 50 88 226 }
	color2 = { 255 255 20 }
	capital = 149
	short_name = yes
	catholic = 5000
	gain_effect = {
		primary_title = { copy_title_laws = k_aquitaine }
		
		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 = {
			AND = {
				culture_group = yperen_grp
				religion_group = christian
			
				primary_title = { title = k_aquitaine }
				num_of_king_titles = 3
			}
			e_aquitaine = {
				is_titular = no
			}
		}

	}
}

e_brittany = {
	color = { 153 54 92 }
	color2 = { 255 255 255 }
	capital = 105
	short_name = yes
	norse = "Bertangaland"
	catholic = 300
	gain_effect = {
		primary_title = { copy_title_laws = k_brittany }
		
		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 = {
			AND = {
				culture_group = yperen_grp
				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
	short_name = yes
	catholic = 5000
	gain_effect = {
		primary_title = { copy_title_laws = k_burgundy }
		
		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 = {
			AND = {
				culture_group = napoli_grp
				religion_group = christian
			
				primary_title = { title = k_burgundy }
				num_of_king_titles = 3
			}
			e_burgundy = {
				is_titular = no
			}
		}

	}
}

e_leon = {
	color = { 233 169 51 }
	color2 = { 255 255 255 }
	capital = 190
	short_name = yes
	dignity = 1
	catholic = 250
	gain_effect = {
		primary_title = { copy_title_laws = k_leon }
		
		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 = {
			AND = {
				culture_group = iberian
				religion_group = christian
			
				primary_title = { title = k_leon }
				num_of_king_titles = 3
			}
			e_leon = {
				is_titular = no
			}
		}

	}
}

e_castille = {
	color = { 243 196 23 }
	color2 = { 200 80 10 }
	capital = 199
	short_name = yes
	dignity = 2
	catholic = 250
	gain_effect = {
		primary_title = { copy_title_laws = k_castille }
		
		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 = {
			AND = {
				culture_group = yperen_grp
				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
	short_name = yes
	catholic = 250
	gain_effect = {
		primary_title = { copy_title_laws = k_aragon }
		
		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 = {
			AND = {
				culture_group = yperen_grp
				religion_group = christian
			
				primary_title = { title = k_aragon }
				num_of_king_titles = 3
			}
			e_aragon = {
				is_titular = no
			}
		}

	}
}

e_navarra = {
	color = { 145 150 5 }
	capital = 152
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_navarra }
		
		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 = {
			AND = {
				culture_group = yperen_grp
				religion_group = christian
			
				primary_title = { title = k_navarra }
				num_of_king_titles = 3
			}
			e_navarra = {
				is_titular = no
			}
		}

	}
}

e_asturias = {
	color = { 233 125 51 }
	color2 = { 255 255 255 }
	capital = 155
	short_name = yes
	dignity = 10
	catholic = 250
	gain_effect = {
		primary_title = { copy_title_laws = k_asturias }
		
		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 = {
			AND = {
				culture_group = yperen_grp
				religion_group = christian
			
				primary_title = { title = k_asturias }
				num_of_king_titles = 3
			}
			e_asturias = {
				is_titular = no
			}
		}

	}
}

e_spanish_galicia = {
	color = { 255 205 94 }
	capital = 156
	short_name = yes
	catholic = 250
	gain_effect = {
		primary_title = { copy_title_laws = k_spanish_galicia }
		
		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 = {
			AND = {
				culture_group = yperen_grp
				religion_group = christian
			
				primary_title = { title = k_spanish_galicia }
				num_of_king_titles = 3
			}
			e_spanish_galicia = {
				is_titular = no
			}
		}

	}
}

e_portugal = {
	color = { 182 99 5 }
	color2 = { 255 255 255 }
	capital = 160
	short_name = yes
	catholic = 250
	west_african_pagan_reformed = 25
	gain_effect = {
		primary_title = { copy_title_laws = k_portugal }
		
		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 = {
			AND = {
				culture_group = yperen_grp
				religion_group = christian
			
				primary_title = { title = k_portugal }
				num_of_king_titles = 3
			}
			e_portugal = {
				is_titular = no
			}
		}

	}
}

e_andalusia = {
	color = { 41 138 31 }
	color2 = { 255 255 255 }
	capital = 181
	short_name = yes
	catholic = 100
	west_african_pagan_reformed = 50
	gain_effect = {
		primary_title = { copy_title_laws = k_andalusia }
		
		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 = {
			AND = {
				culture_group = yperen_grp
				religion_group = muslim
			
				primary_title = { title = k_andalusia }
				num_of_king_titles = 3
			}
			e_andalusia = {
				is_titular = no
			}
		}

	}
}

e_egypt = {
	color = { 14 255 10 }
	color2 = { 255 255 255 }
	capital = 796
	short_name = yes
	orthodox = 20
	gain_effect = {
		primary_title = { copy_title_laws = k_egypt }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				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
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_jerusalem }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = muslim
			
				primary_title = { title = k_jerusalem }
				num_of_king_titles = 3
			}
			e_jerusalem = {
				is_titular = no
			}
		}

	}
}

e_syria = {
	color = { 145 123 88 }
	color2 = { 255 255 255 }
	capital = 728
	short_name = yes
	orthodox = 200
	gain_effect = {
		primary_title = { copy_title_laws = k_syria }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = muslim
			
				primary_title = { title = k_syria }
				num_of_king_titles = 3
			}
			e_syria = {
				is_titular = no
			}
		}

	}
}

e_mauretania = {
	color = { 67 188 41 }
	color2 = { 255 255 255 }
	capital = 843
	short_name = yes
	west_african_pagan_reformed = 100
	gain_effect = {
		primary_title = { copy_title_laws = k_mauretania }
		
		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 = {
			AND = {
				culture_group = yperen_grp
				religion_group = muslim
			
				primary_title = { title = k_mauretania }
				num_of_king_titles = 3
			}
			e_mauretania = {
				is_titular = no
			}
		}

	}
}

e_africa = {
	color = { 97 255 3 }
	color2 = { 255 255 255 }
	capital = 817
	short_name = yes
	orthodox = 10
	west_african_pagan_reformed = 50
	gain_effect = {
		primary_title = { copy_title_laws = k_africa }
		
		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 = {
			AND = {
				culture_group = yperen_grp
				religion_group = muslim
			
				primary_title = { title = k_africa }
				num_of_king_titles = 3
			}
			e_africa = {
				is_titular = no
			}
		}

	}
}

e_nubia = {
	color = { 161 172 86 }
	capital = 793
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_nubia }
		
		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 = {
			AND = {
				culture_group = uzens_grp
				religion_group = christian
			
				primary_title = { title = k_nubia }
				num_of_king_titles = 3
			}
			e_nubia = {
				is_titular = no
			}
		}

	}
}

e_england = {
	color = { 202 26 79 }
	color2 = { 255 255 255 }
	capital = 32
	short_name = yes
	dignity = 10
	catholic = 300
	norse_pagan_reformed = 200
	gain_effect = {
		primary_title = { copy_title_laws = k_england }
		
		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 = {
			AND = {
				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 3 29 }
	color2 = { 255 255 255 }
	capital = 64
	short_name = yes
	catholic = 300
	gain_effect = {
		primary_title = { copy_title_laws = k_wales }
		
		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 = {
			AND = {
				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 97 162 }
	color2 = { 255 255 255 }
	capital = 43
	short_name = yes
	norse = "Skotland"
	swedish = "Skottland"
	danish = "Skotland"
	norwegian = "Skottland"
	welsh = "Alba"
	irish = "Alba"
	breton = "Alba"
	catholic = 300
	norse_pagan_reformed = 200
	gain_effect = {
		primary_title = { copy_title_laws = k_scotland }
		
		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 = {
			AND = {
				culture_group = celtic
				religion_group = christian
			
				primary_title = { title = k_scotland }
				num_of_king_titles = 3
			}
			e_scotland = {
				is_titular = no
			}
		}

	}
}

e_ireland = {
	color = { 21 127 2 }
	color2 = { 255 255 255 }
	capital = 11
	short_name = yes
	norse = "Irland"
	swedish = "Irland"
	danish = "Irland"
	norwegian = "Irland"
	catholic = 300
	norse_pagan_reformed = 200
	gain_effect = {
		primary_title = { copy_title_laws = k_ireland }
		
		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 = {
			AND = {
				culture_group = north_germanic
				religion_group = pagan_group
			
				primary_title = { title = k_ireland }
				num_of_king_titles = 3
			}
			e_ireland = {
				is_titular = no
			}
		}

	}
}

e_pechenegs = {
	color = { 173 158 43 }
	color2 = { 0 128 128 }
	capital = 543
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_pechenegs }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_pechenegs = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_pechenegs
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = altaic
				religion_group = pagan_group
			
				primary_title = { title = k_pechenegs }
				num_of_king_titles = 3
			}
			e_pechenegs = {
				is_titular = no
			}
		}

	}
}

e_cyprus = {
	color = { 85 147 236 }
	capital = 757
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_cyprus }
		
		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 = {
			AND = {
				culture_group = byzantine
				religion_group = christian
			
				primary_title = { title = k_cyprus }
				num_of_king_titles = 3
			}
			e_cyprus = {
				is_titular = no
			}
		}

	}
}

e_khazaria = {
	color = { 250 145 31 }
	color2 = { 255 255 255 }
	capital = 620
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_khazaria }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_khazaria = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_khazaria
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = altaic
				religion_group = pagan_group
			
				primary_title = { title = k_khazaria }
				num_of_king_titles = 3
			}
			e_khazaria = {
				is_titular = no
			}
		}

	}
}

e_magyar = {
	color = { 187 70 70 }
	capital = 522
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_magyar }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_magyar = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_magyar
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = magyar
				religion_group = pagan_group
			
				primary_title = { title = k_magyar }
				num_of_king_titles = 3
			}
			e_magyar = {
				is_titular = no
			}
		}

	}
}

e_moravia = {
	color = { 158 102 36 }
	capital = 441
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_moravia }
		
		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 = {
			AND = {
				culture_group = west_slavic
				religion_group = christian
			
				primary_title = { title = k_moravia }
				num_of_king_titles = 3
			}
			e_moravia = {
				is_titular = no
			}
		}

	}
}

e_naples = {
	color = { 218 217 242 }
	capital = 334
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_naples }
		
		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 = {
			AND = {
				culture_group = latin
				religion_group = christian
			
				primary_title = { title = k_naples }
				num_of_king_titles = 3
			}
			e_naples = {
				is_titular = no
			}
		}

	}
}

e_trebizond = {
	color = { 93 151 33 }
	capital = 678
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_trebizond }
		
		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 = {
			AND = {
				culture_group = byzantine
				religion_group = christian
			
				primary_title = { title = k_trebizond }
				num_of_king_titles = 3
			}
			e_trebizond = {
				is_titular = no
			}
		}

	}
}

e_genoa = {
	color = { 234 116 110 }
	capital = 233
	short_name = yes
	dignity = 200
	gain_effect = {
		primary_title = { copy_title_laws = k_genoa }
		
		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 = {
			AND = {
				culture_group = latin
				religion_group = christian
			
				primary_title = { title = k_genoa }
				num_of_king_titles = 3
			}
			e_genoa = {
				is_titular = no
			}
		}

	}
}

e_pisa = {
	color = { 180 196 140 }
	color2 = { 255 255 255 }
	capital = 327
	short_name = yes
	dignity = 200
	gain_effect = {
		primary_title = { copy_title_laws = k_pisa }
		
		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 = {
			AND = {
				culture_group = latin
				religion_group = christian
			
				primary_title = { title = k_pisa }
				num_of_king_titles = 3
			}
			e_pisa = {
				is_titular = no
			}
		}

	}
}

e_hansa = {
	color = { 142 142 142 }
	color2 = { 255 255 255 }
	capital = 262
	short_name = yes
	dignity = 200
	gain_effect = {
		primary_title = { copy_title_laws = k_hansa }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_hansa = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_hansa
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = holstein_grp
				religion_group = pagan_group
			
				primary_title = { title = k_hansa }
				num_of_king_titles = 3
			}
			e_hansa = {
				is_titular = no
			}
		}

	}
}

