k_sunni = {
	color = { 62 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 = arabic
				religion_group = muslim
			
				primary_title = { title = d_sunni }
				num_of_duke_titles = 4
			}
			k_sunni = {
				is_titular = no
			}
		}

	}
}

k_shiite = {
	color = { 83 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 = arabic
				religion_group = muslim
			
				primary_title = { title = d_shiite }
				num_of_duke_titles = 4
			}
			k_shiite = {
				is_titular = no
			}
		}

	}
}

k_holland = {
	color = { 235 117 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 = west_germanic
				religion_group = christian
			
				primary_title = { title = d_holland }
				num_of_duke_titles = 4
			}
			k_holland = {
				is_titular = no
			}
		}

	}
}

e_holland = {
	color = { 235 129 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 = west_germanic
				religion_group = christian
			
				primary_title = { title = k_holland }
				num_of_king_titles = 3
			}
			e_holland = {
				is_titular = no
			}
		}

	}
}

k_gelre = {
	color = { 200 58 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 = west_germanic
				religion_group = christian
			
				primary_title = { title = d_gelre }
				num_of_duke_titles = 4
			}
			k_gelre = {
				is_titular = no
			}
		}

	}
}

e_gelre = {
	color = { 200 79 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 = west_germanic
				religion_group = christian
			
				primary_title = { title = k_gelre }
				num_of_king_titles = 3
			}
			e_gelre = {
				is_titular = no
			}
		}

	}
}

k_brabant = {
	color = { 200 117 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 = west_germanic
				religion_group = christian
			
				primary_title = { title = d_brabant }
				num_of_duke_titles = 4
			}
			k_brabant = {
				is_titular = no
			}
		}

	}
}

e_brabant = {
	color = { 200 142 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 = west_germanic
				religion_group = christian
			
				primary_title = { title = k_brabant }
				num_of_king_titles = 3
			}
			e_brabant = {
				is_titular = no
			}
		}

	}
}

k_flanders = {
	color = { 255 181 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 = west_germanic
				religion_group = christian
			
				primary_title = { title = d_flanders }
				num_of_duke_titles = 4
			}
			k_flanders = {
				is_titular = no
			}
		}

	}
}

e_flanders = {
	color = { 255 227 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 = west_germanic
				religion_group = christian
			
				primary_title = { title = k_flanders }
				num_of_king_titles = 3
			}
			e_flanders = {
				is_titular = no
			}
		}

	}
}

k_luxembourg = {
	color = { 113 110 155 }
	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 = latin
				religion_group = christian
			
				primary_title = { title = d_luxembourg }
				num_of_duke_titles = 4
			}
			k_luxembourg = {
				is_titular = no
			}
		}

	}
}

e_luxembourg = {
	color = { 110 110 155 }
	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 = latin
				religion_group = christian
			
				primary_title = { title = k_luxembourg }
				num_of_king_titles = 3
			}
			e_luxembourg = {
				is_titular = no
			}
		}

	}
}

k_upper_lorraine = {
	color = { 90 100 125 }
	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 = central_germanic
				religion_group = christian
			
				primary_title = { title = d_upper_lorraine }
				num_of_duke_titles = 4
			}
			k_upper_lorraine = {
				is_titular = no
			}
		}

	}
}

e_upper_lorraine = {
	color = { 90 111 125 }
	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 = central_germanic
				religion_group = christian
			
				primary_title = { title = k_upper_lorraine }
				num_of_king_titles = 3
			}
			e_upper_lorraine = {
				is_titular = no
			}
		}

	}
}

k_lower_lorraine = {
	color = { 154 144 177 }
	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 = central_germanic
				religion_group = christian
			
				primary_title = { title = d_lower_lorraine }
				num_of_duke_titles = 4
			}
			k_lower_lorraine = {
				is_titular = no
			}
		}

	}
}

e_lower_lorraine = {
	color = { 152 144 177 }
	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 = central_germanic
				religion_group = christian
			
				primary_title = { title = k_lower_lorraine }
				num_of_king_titles = 3
			}
			e_lower_lorraine = {
				is_titular = no
			}
		}

	}
}

k_alsace = {
	color = { 150 161 195 }
	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 = central_germanic
				religion_group = christian
			
				primary_title = { title = d_alsace }
				num_of_duke_titles = 4
			}
			k_alsace = {
				is_titular = no
			}
		}

	}
}

e_alsace = {
	color = { 150 177 195 }
	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 = central_germanic
				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 = central_germanic
				religion_group = christian
			
				primary_title = { title = d_osterreich }
				num_of_duke_titles = 4
			}
			k_osterreich = {
				is_titular = no
			}
		}

	}
}

e_osterreich = {
	color = { 191 182 186 }
	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 = central_germanic
				religion_group = christian
			
				primary_title = { title = k_osterreich }
				num_of_king_titles = 3
			}
			e_osterreich = {
				is_titular = no
			}
		}

	}
}

k_tyrol = {
	color = { 157 154 154 }
	color2 = { 255 255 255 }
	capital = 316
	gain_effect = {
		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 = central_germanic
				religion_group = christian
			
				primary_title = { title = d_tyrol }
				num_of_duke_titles = 4
			}
			k_tyrol = {
				is_titular = no
			}
		}

	}
}

e_tyrol = {
	color = { 157 156 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 = central_germanic
				religion_group = christian
			
				primary_title = { title = k_tyrol }
				num_of_king_titles = 3
			}
			e_tyrol = {
				is_titular = no
			}
		}

	}
}

k_carinthia = {
	color = { 165 255 223 }
	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 = latin
				religion_group = christian
			
				primary_title = { title = d_carinthia }
				num_of_duke_titles = 4
			}
			k_carinthia = {
				is_titular = no
			}
		}

	}
}

e_carinthia = {
	color = { 165 255 191 }
	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 = latin
				religion_group = christian
			
				primary_title = { title = k_carinthia }
				num_of_king_titles = 3
			}
			e_carinthia = {
				is_titular = no
			}
		}

	}
}

k_brunswick = {
	color = { 183 175 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 = central_germanic
				religion_group = christian
			
				primary_title = { title = d_brunswick }
				num_of_duke_titles = 4
			}
			k_brunswick = {
				is_titular = no
			}
		}

	}
}

e_brunswick = {
	color = { 183 175 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 = central_germanic
				religion_group = christian
			
				primary_title = { title = k_brunswick }
				num_of_king_titles = 3
			}
			e_brunswick = {
				is_titular = no
			}
		}

	}
}

k_thuringia = {
	color = { 212 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 = central_germanic
				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 = central_germanic
				religion_group = christian
			
				primary_title = { title = k_thuringia }
				num_of_king_titles = 3
			}
			e_thuringia = {
				is_titular = no
			}
		}

	}
}

k_koln = {
	color = { 214 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 = central_germanic
				religion_group = christian
			
				primary_title = { title = d_koln }
				num_of_duke_titles = 4
			}
			k_koln = {
				is_titular = no
			}
		}

	}
}

e_koln = {
	color = { 216 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 = central_germanic
				religion_group = christian
			
				primary_title = { title = k_koln }
				num_of_king_titles = 3
			}
			e_koln = {
				is_titular = no
			}
		}

	}
}

k_franconia = {
	color = { 100 99 100 }
	color2 = { 255 255 255 }
	capital = 123
	gain_effect = {
		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 = central_germanic
				religion_group = christian
			
				primary_title = { title = d_franconia }
				num_of_duke_titles = 4
			}
			k_franconia = {
				is_titular = no
			}
		}

	}
}

e_franconia = {
	color = { 100 99 100 }
	color2 = { 255 255 255 }
	capital = 123
	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 = central_germanic
				religion_group = christian
			
				primary_title = { title = k_franconia }
				num_of_king_titles = 3
			}
			e_franconia = {
				is_titular = no
			}
		}

	}
}

k_baden = {
	color = { 115 109 109 }
	color2 = { 255 255 255 }
	capital = 125
	gain_effect = {
		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 = central_germanic
				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 = central_germanic
				religion_group = christian
			
				primary_title = { title = k_baden }
				num_of_king_titles = 3
			}
			e_baden = {
				is_titular = no
			}
		}

	}
}

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

	}
}

e_swabia = {
	color = { 206 203 204 }
	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 = central_germanic
				religion_group = christian
			
				primary_title = { title = k_swabia }
				num_of_king_titles = 3
			}
			e_swabia = {
				is_titular = no
			}
		}

	}
}

k_nikaea = {
	color = { 202 101 155 }
	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 = byzantine
				religion_group = christian
			
				primary_title = { title = d_nikaea }
				num_of_duke_titles = 4
			}
			k_nikaea = {
				is_titular = no
			}
		}

	}
}

e_nikaea = {
	color = { 202 101 106 }
	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 = byzantine
				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 = byzantine
				religion_group = christian
			
				primary_title = { title = d_samos }
				num_of_duke_titles = 4
			}
			k_samos = {
				is_titular = no
			}
		}

	}
}

e_samos = {
	color = { 87 55 115 }
	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 = byzantine
				religion_group = christian
			
				primary_title = { title = k_samos }
				num_of_king_titles = 3
			}
			e_samos = {
				is_titular = no
			}
		}

	}
}

k_aegean_islands = {
	color = { 99 8 104 }
	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 = byzantine
				religion_group = christian
			
				primary_title = { title = d_aegean_islands }
				num_of_duke_titles = 4
			}
			k_aegean_islands = {
				is_titular = no
			}
		}

	}
}

e_aegean_islands = {
	color = { 88 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 = byzantine
				religion_group = christian
			
				primary_title = { title = k_aegean_islands }
				num_of_king_titles = 3
			}
			e_aegean_islands = {
				is_titular = no
			}
		}

	}
}

k_thrace = {
	color = { 172 76 139 }
	color2 = { 255 255 20 }
	capital = 496
	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 = byzantine
				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 = byzantine
				religion_group = christian
			
				primary_title = { title = k_thrace }
				num_of_king_titles = 3
			}
			e_thrace = {
				is_titular = no
			}
		}

	}
}

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

	}
}

e_adrianopolis = {
	color = { 194 74 213 }
	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 = byzantine
				religion_group = christian
			
				primary_title = { title = k_adrianopolis }
				num_of_king_titles = 3
			}
			e_adrianopolis = {
				is_titular = no
			}
		}

	}
}

k_thessalonika = {
	color = { 189 19 89 }
	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 = byzantine
				religion_group = christian
			
				primary_title = { title = d_thessalonika }
				num_of_duke_titles = 4
			}
			k_thessalonika = {
				is_titular = no
			}
		}

	}
}

e_thessalonika = {
	color = { 189 20 19 }
	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 = byzantine
				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 = byzantine
				religion_group = christian
			
				primary_title = { title = d_dyrrachion }
				num_of_duke_titles = 4
			}
			k_dyrrachion = {
				is_titular = no
			}
		}

	}
}

e_dyrrachion = {
	color = { 137 27 92 }
	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 = byzantine
				religion_group = christian
			
				primary_title = { title = k_dyrrachion }
				num_of_king_titles = 3
			}
			e_dyrrachion = {
				is_titular = no
			}
		}

	}
}

k_epirus = {
	color = { 134 63 126 }
	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 = byzantine
				religion_group = christian
			
				primary_title = { title = d_epirus }
				num_of_duke_titles = 4
			}
			k_epirus = {
				is_titular = no
			}
		}

	}
}

e_epirus = {
	color = { 134 63 126 }
	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 = byzantine
				religion_group = christian
			
				primary_title = { title = k_epirus }
				num_of_king_titles = 3
			}
			e_epirus = {
				is_titular = no
			}
		}

	}
}

k_athens = {
	color = { 206 66 192 }
	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 = byzantine
				religion_group = christian
			
				primary_title = { title = d_athens }
				num_of_duke_titles = 4
			}
			k_athens = {
				is_titular = no
			}
		}

	}
}

e_athens = {
	color = { 204 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 = byzantine
				religion_group = christian
			
				primary_title = { title = k_athens }
				num_of_king_titles = 3
			}
			e_athens = {
				is_titular = no
			}
		}

	}
}

k_achaia = {
	color = { 190 29 144 }
	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 = byzantine
				religion_group = christian
			
				primary_title = { title = d_achaia }
				num_of_duke_titles = 4
			}
			k_achaia = {
				is_titular = no
			}
		}

	}
}

e_achaia = {
	color = { 149 29 190 }
	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 = byzantine
				religion_group = christian
			
				primary_title = { title = k_achaia }
				num_of_king_titles = 3
			}
			e_achaia = {
				is_titular = no
			}
		}

	}
}

k_krete = {
	color = { 205 59 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 35 62 }
	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 94 }
	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 = byzantine
				religion_group = christian
			
				primary_title = { title = d_cibyrrhaeot }
				num_of_duke_titles = 4
			}
			k_cibyrrhaeot = {
				is_titular = no
			}
		}

	}
}

e_cibyrrhaeot = {
	color = { 108 29 104 }
	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 = byzantine
				religion_group = christian
			
				primary_title = { title = k_cibyrrhaeot }
				num_of_king_titles = 3
			}
			e_cibyrrhaeot = {
				is_titular = no
			}
		}

	}
}

k_thracesia = {
	color = { 154 43 96 }
	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 = byzantine
				religion_group = christian
			
				primary_title = { title = d_thracesia }
				num_of_duke_titles = 4
			}
			k_thracesia = {
				is_titular = no
			}
		}

	}
}

e_thracesia = {
	color = { 154 43 83 }
	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 = byzantine
				religion_group = christian
			
				primary_title = { title = k_thracesia }
				num_of_king_titles = 3
			}
			e_thracesia = {
				is_titular = no
			}
		}

	}
}

k_charsianon = {
	color = { 237 68 198 }
	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 = byzantine
				religion_group = christian
			
				primary_title = { title = d_charsianon }
				num_of_duke_titles = 4
			}
			k_charsianon = {
				is_titular = no
			}
		}

	}
}

e_charsianon = {
	color = { 195 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 = byzantine
				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 = byzantine
				religion_group = christian
			
				primary_title = { title = d_armeniacon }
				num_of_duke_titles = 4
			}
			k_armeniacon = {
				is_titular = no
			}
		}

	}
}

e_armeniacon = {
	color = { 255 0 213 }
	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 = byzantine
				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 = byzantine
				religion_group = christian
			
				primary_title = { title = d_paphlagonia }
				num_of_duke_titles = 4
			}
			k_paphlagonia = {
				is_titular = no
			}
		}

	}
}

e_paphlagonia = {
	color = { 234 157 207 }
	color2 = { 255 255 20 }
	capital = 753
	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 = byzantine
				religion_group = christian
			
				primary_title = { title = k_paphlagonia }
				num_of_king_titles = 3
			}
			e_paphlagonia = {
				is_titular = no
			}
		}

	}
}

k_armenia_minor = {
	color = { 214 140 203 }
	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 = byzantine
				religion_group = christian
			
				primary_title = { title = d_armenia_minor }
				num_of_duke_titles = 4
			}
			k_armenia_minor = {
				is_titular = no
			}
		}

	}
}

e_armenia_minor = {
	color = { 214 140 212 }
	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 = byzantine
				religion_group = christian
			
				primary_title = { title = k_armenia_minor }
				num_of_king_titles = 3
			}
			e_armenia_minor = {
				is_titular = no
			}
		}

	}
}

k_edessa = {
	color = { 182 61 45 }
	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 = byzantine
				religion_group = christian
			
				primary_title = { title = d_edessa }
				num_of_duke_titles = 4
			}
			k_edessa = {
				is_titular = no
			}
		}

	}
}

e_edessa = {
	color = { 182 45 87 }
	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 = byzantine
				religion_group = christian
			
				primary_title = { title = k_edessa }
				num_of_king_titles = 3
			}
			e_edessa = {
				is_titular = no
			}
		}

	}
}

k_coloneia = {
	color = { 195 91 55 }
	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 = byzantine
				religion_group = christian
			
				primary_title = { title = d_coloneia }
				num_of_duke_titles = 4
			}
			k_coloneia = {
				is_titular = no
			}
		}

	}
}

e_coloneia = {
	color = { 195 66 55 }
	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 = byzantine
				religion_group = christian
			
				primary_title = { title = k_coloneia }
				num_of_king_titles = 3
			}
			e_coloneia = {
				is_titular = no
			}
		}

	}
}

k_vidin = {
	color = { 122 111 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 = south_slavic
				religion_group = christian
			
				primary_title = { title = d_vidin }
				num_of_duke_titles = 4
			}
			k_vidin = {
				is_titular = no
			}
		}

	}
}

e_vidin = {
	color = { 95 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 = south_slavic
				religion_group = christian
			
				primary_title = { title = k_vidin }
				num_of_king_titles = 3
			}
			e_vidin = {
				is_titular = no
			}
		}

	}
}

k_turnovo = {
	color = { 197 39 107 }
	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 = south_slavic
				religion_group = christian
			
				primary_title = { title = d_turnovo }
				num_of_duke_titles = 4
			}
			k_turnovo = {
				is_titular = no
			}
		}

	}
}

e_turnovo = {
	color = { 197 39 116 }
	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 = south_slavic
				religion_group = christian
			
				primary_title = { title = k_turnovo }
				num_of_king_titles = 3
			}
			e_turnovo = {
				is_titular = no
			}
		}

	}
}

k_karvuna = {
	color = { 220 79 227 }
	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 = south_slavic
				religion_group = christian
			
				primary_title = { title = d_karvuna }
				num_of_duke_titles = 4
			}
			k_karvuna = {
				is_titular = no
			}
		}

	}
}

e_karvuna = {
	color = { 227 79 208 }
	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 = south_slavic
				religion_group = christian
			
				primary_title = { title = k_karvuna }
				num_of_king_titles = 3
			}
			e_karvuna = {
				is_titular = no
			}
		}

	}
}

k_rashka = {
	color = { 168 162 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 = south_slavic
				religion_group = christian
			
				primary_title = { title = d_rashka }
				num_of_duke_titles = 4
			}
			k_rashka = {
				is_titular = no
			}
		}

	}
}

e_rashka = {
	color = { 128 168 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 = south_slavic
				religion_group = christian
			
				primary_title = { title = k_rashka }
				num_of_king_titles = 3
			}
			e_rashka = {
				is_titular = no
			}
		}

	}
}

k_dioclea = {
	color = { 129 94 13 }
	color2 = { 255 255 255 }
	capital = 468
	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 = south_slavic
				religion_group = christian
			
				primary_title = { title = d_dioclea }
				num_of_duke_titles = 4
			}
			k_dioclea = {
				is_titular = no
			}
		}

	}
}

e_dioclea = {
	color = { 87 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 = south_slavic
				religion_group = christian
			
				primary_title = { title = k_dioclea }
				num_of_king_titles = 3
			}
			e_dioclea = {
				is_titular = no
			}
		}

	}
}

k_slavonia = {
	color = { 184 137 140 }
	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 = south_slavic
				religion_group = christian
			
				primary_title = { title = d_slavonia }
				num_of_duke_titles = 4
			}
			k_slavonia = {
				is_titular = no
			}
		}

	}
}

e_slavonia = {
	color = { 184 137 171 }
	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 = south_slavic
				religion_group = christian
			
				primary_title = { title = k_slavonia }
				num_of_king_titles = 3
			}
			e_slavonia = {
				is_titular = no
			}
		}

	}
}

k_dalmatia = {
	color = { 184 143 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 = south_slavic
				religion_group = christian
			
				primary_title = { title = d_dalmatia }
				num_of_duke_titles = 4
			}
			k_dalmatia = {
				is_titular = no
			}
		}

	}
}

e_dalmatia = {
	color = { 184 160 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 = south_slavic
				religion_group = christian
			
				primary_title = { title = k_dalmatia }
				num_of_king_titles = 3
			}
			e_dalmatia = {
				is_titular = no
			}
		}

	}
}

k_benevento = {
	color = { 209 194 75 }
	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 = latin
				religion_group = christian
			
				primary_title = { title = d_benevento }
				num_of_duke_titles = 4
			}
			k_benevento = {
				is_titular = no
			}
		}

	}
}

e_benevento = {
	color = { 192 209 75 }
	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 = latin
				religion_group = christian
			
				primary_title = { title = k_benevento }
				num_of_king_titles = 3
			}
			e_benevento = {
				is_titular = no
			}
		}

	}
}

k_capua = {
	color = { 240 175 100 }
	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 = latin
				religion_group = christian
			
				primary_title = { title = d_capua }
				num_of_duke_titles = 4
			}
			k_capua = {
				is_titular = no
			}
		}

	}
}

e_capua = {
	color = { 240 142 100 }
	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 = latin
				religion_group = christian
			
				primary_title = { title = k_capua }
				num_of_king_titles = 3
			}
			e_capua = {
				is_titular = no
			}
		}

	}
}

k_apulia = {
	color = { 172 170 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 = latin
				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 = latin
				religion_group = christian
			
				primary_title = { title = k_apulia }
				num_of_king_titles = 3
			}
			e_apulia = {
				is_titular = no
			}
		}

	}
}

k_salerno = {
	color = { 245 194 205 }
	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 = latin
				religion_group = christian
			
				primary_title = { title = d_salerno }
				num_of_duke_titles = 4
			}
			k_salerno = {
				is_titular = no
			}
		}

	}
}

e_salerno = {
	color = { 245 194 236 }
	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 = latin
				religion_group = christian
			
				primary_title = { title = k_salerno }
				num_of_king_titles = 3
			}
			e_salerno = {
				is_titular = no
			}
		}

	}
}

k_calabria = {
	color = { 170 106 70 }
	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 = byzantine
				religion_group = christian
			
				primary_title = { title = d_calabria }
				num_of_duke_titles = 4
			}
			k_calabria = {
				is_titular = no
			}
		}

	}
}

e_calabria = {
	color = { 170 124 70 }
	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 = byzantine
				religion_group = christian
			
				primary_title = { title = k_calabria }
				num_of_king_titles = 3
			}
			e_calabria = {
				is_titular = no
			}
		}

	}
}

k_kartli = {
	color = { 234 119 119 }
	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 = byzantine
				religion_group = christian
			
				primary_title = { title = d_kartli }
				num_of_duke_titles = 4
			}
			k_kartli = {
				is_titular = no
			}
		}

	}
}

e_kartli = {
	color = { 234 119 195 }
	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 = byzantine
				religion_group = christian
			
				primary_title = { title = k_kartli }
				num_of_king_titles = 3
			}
			e_kartli = {
				is_titular = no
			}
		}

	}
}

k_derbent = {
	color = { 203 106 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 = byzantine
				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 = byzantine
				religion_group = christian
			
				primary_title = { title = k_derbent }
				num_of_king_titles = 3
			}
			e_derbent = {
				is_titular = no
			}
		}

	}
}

k_abkhazia = {
	color = { 255 173 206 }
	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 = byzantine
				religion_group = christian
			
				primary_title = { title = d_abkhazia }
				num_of_duke_titles = 4
			}
			k_abkhazia = {
				is_titular = no
			}
		}

	}
}

e_abkhazia = {
	color = { 255 173 226 }
	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 = byzantine
				religion_group = christian
			
				primary_title = { title = k_abkhazia }
				num_of_king_titles = 3
			}
			e_abkhazia = {
				is_titular = no
			}
		}

	}
}

k_verona = {
	color = { 170 255 170 }
	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 = latin
				religion_group = christian
			
				primary_title = { title = d_verona }
				num_of_duke_titles = 4
			}
			k_verona = {
				is_titular = no
			}
		}

	}
}

e_verona = {
	color = { 170 255 221 }
	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 = latin
				religion_group = christian
			
				primary_title = { title = k_verona }
				num_of_king_titles = 3
			}
			e_verona = {
				is_titular = no
			}
		}

	}
}

k_susa = {
	color = { 191 158 166 }
	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 = latin
				religion_group = christian
			
				primary_title = { title = d_susa }
				num_of_duke_titles = 4
			}
			k_susa = {
				is_titular = no
			}
		}

	}
}

e_susa = {
	color = { 191 158 160 }
	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 = latin
				religion_group = christian
			
				primary_title = { title = k_susa }
				num_of_king_titles = 3
			}
			e_susa = {
				is_titular = no
			}
		}

	}
}

k_lombardia = {
	color = { 205 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 = latin
				religion_group = christian
			
				primary_title = { title = d_lombardia }
				num_of_duke_titles = 4
			}
			k_lombardia = {
				is_titular = no
			}
		}

	}
}

e_lombardia = {
	color = { 222 133 217 }
	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 = latin
				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 = latin
				religion_group = christian
			
				primary_title = { title = d_modena }
				num_of_duke_titles = 4
			}
			k_modena = {
				is_titular = no
			}
		}

	}
}

e_modena = {
	color = { 225 180 196 }
	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 = latin
				religion_group = christian
			
				primary_title = { title = k_modena }
				num_of_king_titles = 3
			}
			e_modena = {
				is_titular = no
			}
		}

	}
}

k_ferrara = {
	color = { 244 221 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 = latin
				religion_group = christian
			
				primary_title = { title = d_ferrara }
				num_of_duke_titles = 4
			}
			k_ferrara = {
				is_titular = no
			}
		}

	}
}

e_ferrara = {
	color = { 244 214 130 }
	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 = latin
				religion_group = christian
			
				primary_title = { title = k_ferrara }
				num_of_king_titles = 3
			}
			e_ferrara = {
				is_titular = no
			}
		}

	}
}

k_toscana = {
	color = { 199 222 25 }
	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 = latin
				religion_group = christian
			
				primary_title = { title = d_toscana }
				num_of_duke_titles = 4
			}
			k_toscana = {
				is_titular = no
			}
		}

	}
}

e_toscana = {
	color = { 140 222 25 }
	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 = latin
				religion_group = christian
			
				primary_title = { title = k_toscana }
				num_of_king_titles = 3
			}
			e_toscana = {
				is_titular = no
			}
		}

	}
}

k_ancona = {
	color = { 230 221 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 = latin
				religion_group = christian
			
				primary_title = { title = d_ancona }
				num_of_duke_titles = 4
			}
			k_ancona = {
				is_titular = no
			}
		}

	}
}

e_ancona = {
	color = { 230 206 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 = latin
				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 = latin
				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 = latin
				religion_group = christian
			
				primary_title = { title = k_spoleto }
				num_of_king_titles = 3
			}
			e_spoleto = {
				is_titular = no
			}
		}

	}
}

k_latium = {
	color = { 235 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 = { 240 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 = { 200 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 176 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 = north_germanic
				religion_group = pagan_group
			
				primary_title = { title = d_uppland }
				num_of_duke_titles = 4
			}
			k_uppland = {
				is_titular = no
			}
		}

	}
}

e_uppland = {
	color = { 20 57 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 = north_germanic
				religion_group = pagan_group
			
				primary_title = { title = k_uppland }
				num_of_king_titles = 3
			}
			e_uppland = {
				is_titular = no
			}
		}

	}
}

k_ostergotland = {
	color = { 20 41 169 }
	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 = north_germanic
				religion_group = pagan_group
			
				primary_title = { title = d_ostergotland }
				num_of_duke_titles = 4
			}
			k_ostergotland = {
				is_titular = no
			}
		}

	}
}

e_ostergotland = {
	color = { 20 112 169 }
	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 = north_germanic
				religion_group = pagan_group
			
				primary_title = { title = k_ostergotland }
				num_of_king_titles = 3
			}
			e_ostergotland = {
				is_titular = no
			}
		}

	}
}

k_vastergotland = {
	color = { 56 30 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 = north_germanic
				religion_group = pagan_group
			
				primary_title = { title = d_vastergotland }
				num_of_duke_titles = 4
			}
			k_vastergotland = {
				is_titular = no
			}
		}

	}
}

e_vastergotland = {
	color = { 98 30 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 = north_germanic
				religion_group = pagan_group
			
				primary_title = { title = k_vastergotland }
				num_of_king_titles = 3
			}
			e_vastergotland = {
				is_titular = no
			}
		}

	}
}

k_norrland = {
	color = { 50 50 160 }
	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 = north_germanic
				religion_group = pagan_group
			
				primary_title = { title = d_norrland }
				num_of_duke_titles = 4
			}
			k_norrland = {
				is_titular = no
			}
		}

	}
}

e_norrland = {
	color = { 90 50 160 }
	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 = north_germanic
				religion_group = pagan_group
			
				primary_title = { title = k_norrland }
				num_of_king_titles = 3
			}
			e_norrland = {
				is_titular = no
			}
		}

	}
}

k_bergslagen = {
	color = { 68 60 200 }
	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 = north_germanic
				religion_group = pagan_group
			
				primary_title = { title = d_bergslagen }
				num_of_duke_titles = 4
			}
			k_bergslagen = {
				is_titular = no
			}
		}

	}
}

e_bergslagen = {
	color = { 169 60 200 }
	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 = north_germanic
				religion_group = pagan_group
			
				primary_title = { title = k_bergslagen }
				num_of_king_titles = 3
			}
			e_bergslagen = {
				is_titular = no
			}
		}

	}
}

k_smaland = {
	color = { 40 59 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 = north_germanic
				religion_group = pagan_group
			
				primary_title = { title = d_smaland }
				num_of_duke_titles = 4
			}
			k_smaland = {
				is_titular = no
			}
		}

	}
}

e_smaland = {
	color = { 60 40 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 = north_germanic
				religion_group = pagan_group
			
				primary_title = { title = k_smaland }
				num_of_king_titles = 3
			}
			e_smaland = {
				is_titular = no
			}
		}

	}
}

k_skane = {
	color = { 210 2 39 }
	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 = north_germanic
				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 = north_germanic
				religion_group = pagan_group
			
				primary_title = { title = k_skane }
				num_of_king_titles = 3
			}
			e_skane = {
				is_titular = no
			}
		}

	}
}

k_sjaelland = {
	color = { 206 57 93 }
	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 = north_germanic
				religion_group = pagan_group
			
				primary_title = { title = d_sjaelland }
				num_of_duke_titles = 4
			}
			k_sjaelland = {
				is_titular = no
			}
		}

	}
}

e_sjaelland = {
	color = { 206 57 120 }
	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 = north_germanic
				religion_group = pagan_group
			
				primary_title = { title = k_sjaelland }
				num_of_king_titles = 3
			}
			e_sjaelland = {
				is_titular = no
			}
		}

	}
}

k_slesvig = {
	color = { 224 74 83 }
	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 = north_germanic
				religion_group = pagan_group
			
				primary_title = { title = d_slesvig }
				num_of_duke_titles = 4
			}
			k_slesvig = {
				is_titular = no
			}
		}

	}
}

e_slesvig = {
	color = { 224 74 110 }
	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 = north_germanic
				religion_group = pagan_group
			
				primary_title = { title = k_slesvig }
				num_of_king_titles = 3
			}
			e_slesvig = {
				is_titular = no
			}
		}

	}
}

k_holstein = {
	color = { 172 123 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 = north_germanic
				religion_group = pagan_group
			
				primary_title = { title = d_holstein }
				num_of_duke_titles = 4
			}
			k_holstein = {
				is_titular = no
			}
		}

	}
}

e_holstein = {
	color = { 172 119 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 = north_germanic
				religion_group = pagan_group
			
				primary_title = { title = k_holstein }
				num_of_king_titles = 3
			}
			e_holstein = {
				is_titular = no
			}
		}

	}
}

k_iceland = {
	color = { 190 197 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 193 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 = { 106 169 225 }
	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 = { 106 219 225 }
	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 = { 125 120 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 = north_germanic
				religion_group = pagan_group
			
				primary_title = { title = d_vestlandet }
				num_of_duke_titles = 4
			}
			k_vestlandet = {
				is_titular = no
			}
		}

	}
}

e_vestlandet = {
	color = { 133 120 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 = north_germanic
				religion_group = pagan_group
			
				primary_title = { title = k_vestlandet }
				num_of_king_titles = 3
			}
			e_vestlandet = {
				is_titular = no
			}
		}

	}
}

k_ostlandet = {
	color = { 80 144 215 }
	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 = north_germanic
				religion_group = pagan_group
			
				primary_title = { title = d_ostlandet }
				num_of_duke_titles = 4
			}
			k_ostlandet = {
				is_titular = no
			}
		}

	}
}

e_ostlandet = {
	color = { 80 152 215 }
	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 = north_germanic
				religion_group = pagan_group
			
				primary_title = { title = k_ostlandet }
				num_of_king_titles = 3
			}
			e_ostlandet = {
				is_titular = no
			}
		}

	}
}

k_trondelag = {
	color = { 40 96 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 = north_germanic
				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 = north_germanic
				religion_group = pagan_group
			
				primary_title = { title = k_trondelag }
				num_of_king_titles = 3
			}
			e_trondelag = {
				is_titular = no
			}
		}

	}
}

k_jamtland = {
	color = { 45 85 245 }
	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 = north_germanic
				religion_group = pagan_group
			
				primary_title = { title = d_jamtland }
				num_of_duke_titles = 4
			}
			k_jamtland = {
				is_titular = no
			}
		}

	}
}

e_jamtland = {
	color = { 53 45 245 }
	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 = north_germanic
				religion_group = pagan_group
			
				primary_title = { title = k_jamtland }
				num_of_king_titles = 3
			}
			e_jamtland = {
				is_titular = no
			}
		}

	}
}

k_esthonia = {
	color = { 150 75 79 }
	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 = finno_ugric
				religion_group = pagan_group
			
				primary_title = { title = d_esthonia }
				num_of_duke_titles = 4
			}
			k_esthonia = {
				is_titular = no
			}
		}

	}
}

e_esthonia = {
	color = { 150 75 93 }
	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 = finno_ugric
				religion_group = pagan_group
			
				primary_title = { title = k_esthonia }
				num_of_king_titles = 3
			}
			e_esthonia = {
				is_titular = no
			}
		}

	}
}

k_karelia = {
	color = { 155 102 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 = finno_ugric
				religion_group = pagan_group
			
				primary_title = { title = d_karelia }
				num_of_duke_titles = 4
			}
			k_karelia = {
				is_titular = no
			}
		}

	}
}

e_karelia = {
	color = { 155 69 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 = finno_ugric
				religion_group = pagan_group
			
				primary_title = { title = k_karelia }
				num_of_king_titles = 3
			}
			e_karelia = {
				is_titular = no
			}
		}

	}
}

k_mazovia = {
	color = { 125 36 58 }
	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 = west_slavic
				religion_group = pagan_group
			
				primary_title = { title = d_mazovia }
				num_of_duke_titles = 4
			}
			k_mazovia = {
				is_titular = no
			}
		}

	}
}

e_mazovia = {
	color = { 125 36 79 }
	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 = west_slavic
				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 51 }
	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 = west_slavic
				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 89 }
	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 = west_slavic
				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 91 }
	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 = west_slavic
				religion_group = pagan_group
			
				primary_title = { title = d_silesia }
				num_of_duke_titles = 4
			}
			k_silesia = {
				is_titular = no
			}
		}

	}
}

e_silesia = {
	color = { 169 35 123 }
	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 = west_slavic
				religion_group = pagan_group
			
				primary_title = { title = k_silesia }
				num_of_king_titles = 3
			}
			e_silesia = {
				is_titular = no
			}
		}

	}
}

k_lesser_poland = {
	color = { 245 163 171 }
	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 = west_slavic
				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 163 176 }
	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 = west_slavic
				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 76 }
	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 = west_slavic
				religion_group = pagan_group
			
				primary_title = { title = d_kuyavia }
				num_of_duke_titles = 4
			}
			k_kuyavia = {
				is_titular = no
			}
		}

	}
}

e_kuyavia = {
	color = { 115 30 96 }
	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 = west_slavic
				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 = west_slavic
				religion_group = pagan_group
			
				primary_title = { title = d_mecklemburg }
				num_of_duke_titles = 4
			}
			k_mecklemburg = {
				is_titular = no
			}
		}

	}
}

e_mecklemburg = {
	color = { 162 126 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 = west_slavic
				religion_group = pagan_group
			
				primary_title = { title = k_mecklemburg }
				num_of_king_titles = 3
			}
			e_mecklemburg = {
				is_titular = no
			}
		}

	}
}

k_pommerania = {
	color = { 83 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 = west_slavic
				religion_group = pagan_group
			
				primary_title = { title = d_pommerania }
				num_of_duke_titles = 4
			}
			k_pommerania = {
				is_titular = no
			}
		}

	}
}

e_pommerania = {
	color = { 111 143 51 }
	color2 = { 255 255 255 }
	capital = 366
	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 = west_slavic
				religion_group = pagan_group
			
				primary_title = { title = k_pommerania }
				num_of_king_titles = 3
			}
			e_pommerania = {
				is_titular = no
			}
		}

	}
}

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

	}
}

e_pomeralia = {
	color = { 77 135 80 }
	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 = west_slavic
				religion_group = pagan_group
			
				primary_title = { title = k_pomeralia }
				num_of_king_titles = 3
			}
			e_pomeralia = {
				is_titular = no
			}
		}

	}
}

k_saxony = {
	color = { 164 162 163 }
	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 = west_slavic
				religion_group = pagan_group
			
				primary_title = { title = d_saxony }
				num_of_duke_titles = 4
			}
			k_saxony = {
				is_titular = no
			}
		}

	}
}

e_saxony = {
	color = { 164 162 162 }
	color2 = { 255 255 255 }
	capital = 310
	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 = west_slavic
				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 = west_slavic
				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 = west_slavic
				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 = west_slavic
				religion_group = pagan_group
			
				primary_title = { title = d_meissen }
				num_of_duke_titles = 4
			}
			k_meissen = {
				is_titular = no
			}
		}

	}
}

e_meissen = {
	color = { 187 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 = west_slavic
				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 = finno_ugric
				religion_group = pagan_group
			
				primary_title = { title = d_livonia }
				num_of_duke_titles = 4
			}
			k_livonia = {
				is_titular = no
			}
		}

	}
}

e_livonia = {
	color = { 110 82 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 = finno_ugric
				religion_group = pagan_group
			
				primary_title = { title = k_livonia }
				num_of_king_titles = 3
			}
			e_livonia = {
				is_titular = no
			}
		}

	}
}

k_prussia = {
	color = { 200 136 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 = baltic
				religion_group = pagan_group
			
				primary_title = { title = d_prussia }
				num_of_duke_titles = 4
			}
			k_prussia = {
				is_titular = no
			}
		}

	}
}

e_prussia = {
	color = { 200 154 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 = baltic
				religion_group = pagan_group
			
				primary_title = { title = k_prussia }
				num_of_king_titles = 3
			}
			e_prussia = {
				is_titular = no
			}
		}

	}
}

k_polotsk = {
	color = { 119 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 = east_slavic
				religion_group = pagan_group
			
				primary_title = { title = d_polotsk }
				num_of_duke_titles = 4
			}
			k_polotsk = {
				is_titular = no
			}
		}

	}
}

e_polotsk = {
	color = { 119 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 = east_slavic
				religion_group = pagan_group
			
				primary_title = { title = k_polotsk }
				num_of_king_titles = 3
			}
			e_polotsk = {
				is_titular = no
			}
		}

	}
}

k_lithuanians = {
	color = { 81 29 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 = baltic
				religion_group = pagan_group
			
				primary_title = { title = d_lithuanians }
				num_of_duke_titles = 4
			}
			k_lithuanians = {
				is_titular = no
			}
		}

	}
}

e_lithuanians = {
	color = { 81 10 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 = baltic
				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 = baltic
				religion_group = pagan_group
			
				primary_title = { title = d_grodno }
				num_of_duke_titles = 4
			}
			k_grodno = {
				is_titular = no
			}
		}

	}
}

e_grodno = {
	color = { 131 30 42 }
	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 = baltic
				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 = baltic
				religion_group = pagan_group
			
				primary_title = { title = d_courland }
				num_of_duke_titles = 4
			}
			k_courland = {
				is_titular = no
			}
		}

	}
}

e_courland = {
	color = { 182 16 145 }
	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 = baltic
				religion_group = pagan_group
			
				primary_title = { title = k_courland }
				num_of_king_titles = 3
			}
			e_courland = {
				is_titular = no
			}
		}

	}
}

k_samogitia = {
	color = { 150 70 84 }
	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 = baltic
				religion_group = pagan_group
			
				primary_title = { title = d_samogitia }
				num_of_duke_titles = 4
			}
			k_samogitia = {
				is_titular = no
			}
		}

	}
}

e_samogitia = {
	color = { 150 70 104 }
	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 = baltic
				religion_group = pagan_group
			
				primary_title = { title = k_samogitia }
				num_of_king_titles = 3
			}
			e_samogitia = {
				is_titular = no
			}
		}

	}
}

k_beloozero = {
	color = { 120 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 = finno_ugric
				religion_group = pagan_group
			
				primary_title = { title = d_beloozero }
				num_of_duke_titles = 4
			}
			k_beloozero = {
				is_titular = no
			}
		}

	}
}

e_beloozero = {
	color = { 95 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 = finno_ugric
				religion_group = pagan_group
			
				primary_title = { title = k_beloozero }
				num_of_king_titles = 3
			}
			e_beloozero = {
				is_titular = no
			}
		}

	}
}

k_novgorod = {
	color = { 77 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 = east_slavic
				religion_group = pagan_group
			
				primary_title = { title = d_novgorod }
				num_of_duke_titles = 4
			}
			k_novgorod = {
				is_titular = no
			}
		}

	}
}

e_novgorod = {
	color = { 107 164 64 }
	color2 = { 255 255 255 }
	capital = 414
	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 = east_slavic
				religion_group = pagan_group
			
				primary_title = { title = k_novgorod }
				num_of_king_titles = 3
			}
			e_novgorod = {
				is_titular = no
			}
		}

	}
}

k_rostov = {
	color = { 107 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 = finno_ugric
				religion_group = pagan_group
			
				primary_title = { title = d_rostov }
				num_of_duke_titles = 4
			}
			k_rostov = {
				is_titular = no
			}
		}

	}
}

e_rostov = {
	color = { 101 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 = finno_ugric
				religion_group = pagan_group
			
				primary_title = { title = k_rostov }
				num_of_king_titles = 3
			}
			e_rostov = {
				is_titular = no
			}
		}

	}
}

k_tver = {
	color = { 148 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 = east_slavic
				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 = east_slavic
				religion_group = pagan_group
			
				primary_title = { title = k_tver }
				num_of_king_titles = 3
			}
			e_tver = {
				is_titular = no
			}
		}

	}
}

k_yaroslavl = {
	color = { 181 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 = finno_ugric
				religion_group = pagan_group
			
				primary_title = { title = d_yaroslavl }
				num_of_duke_titles = 4
			}
			k_yaroslavl = {
				is_titular = no
			}
		}

	}
}

e_yaroslavl = {
	color = { 192 171 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 = finno_ugric
				religion_group = pagan_group
			
				primary_title = { title = k_yaroslavl }
				num_of_king_titles = 3
			}
			e_yaroslavl = {
				is_titular = no
			}
		}

	}
}

k_vladimir = {
	color = { 160 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 = finno_ugric
				religion_group = pagan_group
			
				primary_title = { title = d_vladimir }
				num_of_duke_titles = 4
			}
			k_vladimir = {
				is_titular = no
			}
		}

	}
}

e_vladimir = {
	color = { 121 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 = finno_ugric
				religion_group = pagan_group
			
				primary_title = { title = k_vladimir }
				num_of_king_titles = 3
			}
			e_vladimir = {
				is_titular = no
			}
		}

	}
}

k_moskva = {
	color = { 222 213 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 = finno_ugric
				religion_group = pagan_group
			
				primary_title = { title = d_moskva }
				num_of_duke_titles = 4
			}
			k_moskva = {
				is_titular = no
			}
		}

	}
}

e_moskva = {
	color = { 222 195 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 = finno_ugric
				religion_group = pagan_group
			
				primary_title = { title = k_moskva }
				num_of_king_titles = 3
			}
			e_moskva = {
				is_titular = no
			}
		}

	}
}

k_kiev = {
	color = { 140 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 = east_slavic
				religion_group = pagan_group
			
				primary_title = { title = d_kiev }
				num_of_duke_titles = 4
			}
			k_kiev = {
				is_titular = no
			}
		}

	}
}

e_kiev = {
	color = { 174 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 = east_slavic
				religion_group = pagan_group
			
				primary_title = { title = k_kiev }
				num_of_king_titles = 3
			}
			e_kiev = {
				is_titular = no
			}
		}

	}
}

k_galich = {
	color = { 224 112 170 }
	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 = east_slavic
				religion_group = pagan_group
			
				primary_title = { title = d_galich }
				num_of_duke_titles = 4
			}
			k_galich = {
				is_titular = no
			}
		}

	}
}

e_galich = {
	color = { 224 112 143 }
	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 = east_slavic
				religion_group = pagan_group
			
				primary_title = { title = k_galich }
				num_of_king_titles = 3
			}
			e_galich = {
				is_titular = no
			}
		}

	}
}

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

	}
}

e_volhynia = {
	color = { 188 204 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 = east_slavic
				religion_group = pagan_group
			
				primary_title = { title = k_volhynia }
				num_of_king_titles = 3
			}
			e_volhynia = {
				is_titular = no
			}
		}

	}
}

k_turov = {
	color = { 116 160 94 }
	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 = east_slavic
				religion_group = pagan_group
			
				primary_title = { title = d_turov }
				num_of_duke_titles = 4
			}
			k_turov = {
				is_titular = no
			}
		}

	}
}

e_turov = {
	color = { 124 160 94 }
	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 = east_slavic
				religion_group = pagan_group
			
				primary_title = { title = k_turov }
				num_of_king_titles = 3
			}
			e_turov = {
				is_titular = no
			}
		}

	}
}

k_vitebsk = {
	color = { 39 125 6 }
	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 = east_slavic
				religion_group = pagan_group
			
				primary_title = { title = d_vitebsk }
				num_of_duke_titles = 4
			}
			k_vitebsk = {
				is_titular = no
			}
		}

	}
}

e_vitebsk = {
	color = { 11 125 6 }
	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 = east_slavic
				religion_group = pagan_group
			
				primary_title = { title = k_vitebsk }
				num_of_king_titles = 3
			}
			e_vitebsk = {
				is_titular = no
			}
		}

	}
}

k_smolensk = {
	color = { 240 241 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 = east_slavic
				religion_group = pagan_group
			
				primary_title = { title = d_smolensk }
				num_of_duke_titles = 4
			}
			k_smolensk = {
				is_titular = no
			}
		}

	}
}

e_smolensk = {
	color = { 241 217 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 = east_slavic
				religion_group = pagan_group
			
				primary_title = { title = k_smolensk }
				num_of_king_titles = 3
			}
			e_smolensk = {
				is_titular = no
			}
		}

	}
}

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

	}
}

e_chernigov = {
	color = { 228 235 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 = east_slavic
				religion_group = pagan_group
			
				primary_title = { title = k_chernigov }
				num_of_king_titles = 3
			}
			e_chernigov = {
				is_titular = no
			}
		}

	}
}

k_novgorod-seversk = {
	color = { 85 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 = east_slavic
				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 = { 113 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 = east_slavic
				religion_group = pagan_group
			
				primary_title = { title = k_novgorod-seversk }
				num_of_king_titles = 3
			}
			e_novgorod-seversk = {
				is_titular = no
			}
		}

	}
}

k_ryazan = {
	color = { 85 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 = finno_ugric
				religion_group = pagan_group
			
				primary_title = { title = d_ryazan }
				num_of_duke_titles = 4
			}
			k_ryazan = {
				is_titular = no
			}
		}

	}
}

e_ryazan = {
	color = { 60 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 = finno_ugric
				religion_group = pagan_group
			
				primary_title = { title = k_ryazan }
				num_of_king_titles = 3
			}
			e_ryazan = {
				is_titular = no
			}
		}

	}
}

k_pereyaslavl = {
	color = { 232 221 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 = east_slavic
				religion_group = pagan_group
			
				primary_title = { title = d_pereyaslavl }
				num_of_duke_titles = 4
			}
			k_pereyaslavl = {
				is_titular = no
			}
		}

	}
}

e_pereyaslavl = {
	color = { 208 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 = east_slavic
				religion_group = pagan_group
			
				primary_title = { title = k_pereyaslavl }
				num_of_king_titles = 3
			}
			e_pereyaslavl = {
				is_titular = no
			}
		}

	}
}

k_yugra = {
	color = { 208 221 244 }
	color2 = { 255 255 255 }
	capital = 892
	gain_effect = {
		primary_title = { copy_title_laws = d_yugra }
		
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_yugra = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_yugra
			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_yugra }
				num_of_duke_titles = 4
			}
			k_yugra = {
				is_titular = no
			}
		}

	}
}

e_yugra = {
	color = { 208 210 244 }
	color2 = { 255 255 255 }
	capital = 892
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_yugra }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_yugra = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_yugra
			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_yugra }
				num_of_king_titles = 3
			}
			e_yugra = {
				is_titular = no
			}
		}

	}
}

k_hlynov = {
	color = { 113 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 = finno_ugric
				religion_group = pagan_group
			
				primary_title = { title = d_hlynov }
				num_of_duke_titles = 4
			}
			k_hlynov = {
				is_titular = no
			}
		}

	}
}

e_hlynov = {
	color = { 100 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 = finno_ugric
				religion_group = pagan_group
			
				primary_title = { title = k_hlynov }
				num_of_king_titles = 3
			}
			e_hlynov = {
				is_titular = no
			}
		}

	}
}

k_bjarmia = {
	color = { 95 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 = finno_ugric
				religion_group = pagan_group
			
				primary_title = { title = d_bjarmia }
				num_of_duke_titles = 4
			}
			k_bjarmia = {
				is_titular = no
			}
		}

	}
}

e_bjarmia = {
	color = { 95 55 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 = finno_ugric
				religion_group = pagan_group
			
				primary_title = { title = k_bjarmia }
				num_of_king_titles = 3
			}
			e_bjarmia = {
				is_titular = no
			}
		}

	}
}

k_itil = {
	color = { 151 74 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 = altaic
				religion_group = pagan_group
			
				primary_title = { title = d_itil }
				num_of_duke_titles = 4
			}
			k_itil = {
				is_titular = no
			}
		}

	}
}

e_itil = {
	color = { 151 38 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 = altaic
				religion_group = pagan_group
			
				primary_title = { title = k_itil }
				num_of_king_titles = 3
			}
			e_itil = {
				is_titular = no
			}
		}

	}
}

k_sarkel = {
	color = { 236 184 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 = altaic
				religion_group = pagan_group
			
				primary_title = { title = d_sarkel }
				num_of_duke_titles = 4
			}
			k_sarkel = {
				is_titular = no
			}
		}

	}
}

e_sarkel = {
	color = { 236 184 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 = altaic
				religion_group = pagan_group
			
				primary_title = { title = k_sarkel }
				num_of_king_titles = 3
			}
			e_sarkel = {
				is_titular = no
			}
		}

	}
}

k_yaik = {
	color = { 198 139 11 }
	color2 = { 255 255 255 }
	capital = 895
	gain_effect = {
		primary_title = { copy_title_laws = d_yaik }
		
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_yaik = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_yaik
			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_yaik }
				num_of_duke_titles = 4
			}
			k_yaik = {
				is_titular = no
			}
		}

	}
}

e_yaik = {
	color = { 198 150 11 }
	color2 = { 255 255 255 }
	capital = 895
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_yaik }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_yaik = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_yaik
			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_yaik }
				num_of_king_titles = 3
			}
			e_yaik = {
				is_titular = no
			}
		}

	}
}

k_sibir = {
	color = { 210 127 15 }
	color2 = { 255 255 255 }
	capital = 891
	gain_effect = {
		primary_title = { copy_title_laws = d_sibir }
		
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_sibir = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_sibir
			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_sibir }
				num_of_duke_titles = 4
			}
			k_sibir = {
				is_titular = no
			}
		}

	}
}

e_sibir = {
	color = { 210 138 15 }
	color2 = { 255 255 255 }
	capital = 891
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_sibir }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_sibir = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_sibir
			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_sibir }
				num_of_king_titles = 3
			}
			e_sibir = {
				is_titular = no
			}
		}

	}
}

k_kipchak = {
	color = { 131 65 50 }
	color2 = { 255 255 255 }
	capital = 1430
	gain_effect = {
		primary_title = { copy_title_laws = d_kipchak }
		
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_kipchak = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_kipchak
			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_kipchak }
				num_of_duke_titles = 4
			}
			k_kipchak = {
				is_titular = no
			}
		}

	}
}

e_kipchak = {
	color = { 131 84 50 }
	color2 = { 255 255 255 }
	capital = 1430
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_kipchak }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_kipchak = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_kipchak
			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_kipchak }
				num_of_king_titles = 3
			}
			e_kipchak = {
				is_titular = no
			}
		}

	}
}

k_kimak = {
	color = { 151 103 58 }
	color2 = { 255 255 255 }
	capital = 1435
	gain_effect = {
		primary_title = { copy_title_laws = d_kimak }
		
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_kimak = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_kimak
			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_kimak }
				num_of_duke_titles = 4
			}
			k_kimak = {
				is_titular = no
			}
		}

	}
}

e_kimak = {
	color = { 151 64 58 }
	color2 = { 255 255 255 }
	capital = 1435
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_kimak }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_kimak = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_kimak
			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_kimak }
				num_of_king_titles = 3
			}
			e_kimak = {
				is_titular = no
			}
		}

	}
}

k_kirghiz = {
	color = { 155 112 78 }
	color2 = { 255 255 255 }
	capital = 1132
	gain_effect = {
		primary_title = { copy_title_laws = d_kirghiz }
		
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_kirghiz = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_kirghiz
			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_kirghiz }
				num_of_duke_titles = 4
			}
			k_kirghiz = {
				is_titular = no
			}
		}

	}
}

e_kirghiz = {
	color = { 155 108 78 }
	color2 = { 255 255 255 }
	capital = 1132
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_kirghiz }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_kirghiz = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_kirghiz
			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_kirghiz }
				num_of_king_titles = 3
			}
			e_kirghiz = {
				is_titular = no
			}
		}

	}
}

k_bulgar = {
	color = { 189 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 = altaic
				religion_group = pagan_group
			
				primary_title = { title = d_bulgar }
				num_of_duke_titles = 4
			}
			k_bulgar = {
				is_titular = no
			}
		}

	}
}

e_bulgar = {
	color = { 193 189 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 = altaic
				religion_group = pagan_group
			
				primary_title = { title = k_bulgar }
				num_of_king_titles = 3
			}
			e_bulgar = {
				is_titular = no
			}
		}

	}
}

k_cheremisa = {
	color = { 225 85 4 }
	color2 = { 255 255 255 }
	capital = 591
	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 = finno_ugric
				religion_group = pagan_group
			
				primary_title = { title = d_cheremisa }
				num_of_duke_titles = 4
			}
			k_cheremisa = {
				is_titular = no
			}
		}

	}
}

e_cheremisa = {
	color = { 225 152 4 }
	color2 = { 255 255 255 }
	capital = 591
	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 = finno_ugric
				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 = byzantine
				religion_group = christian
			
				primary_title = { title = d_cherson }
				num_of_duke_titles = 4
			}
			k_cherson = {
				is_titular = no
			}
		}

	}
}

e_cherson = {
	color = { 188 91 166 }
	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 = byzantine
				religion_group = christian
			
				primary_title = { title = k_cherson }
				num_of_king_titles = 3
			}
			e_cherson = {
				is_titular = no
			}
		}

	}
}

k_crimea = {
	color = { 226 160 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 = altaic
				religion_group = pagan_group
			
				primary_title = { title = d_crimea }
				num_of_duke_titles = 4
			}
			k_crimea = {
				is_titular = no
			}
		}

	}
}

e_crimea = {
	color = { 226 160 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 = altaic
				religion_group = pagan_group
			
				primary_title = { title = k_crimea }
				num_of_king_titles = 3
			}
			e_crimea = {
				is_titular = no
			}
		}

	}
}

k_azov = {
	color = { 218 163 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 = altaic
				religion_group = pagan_group
			
				primary_title = { title = d_azov }
				num_of_duke_titles = 4
			}
			k_azov = {
				is_titular = no
			}
		}

	}
}

e_azov = {
	color = { 218 168 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 = altaic
				religion_group = pagan_group
			
				primary_title = { title = k_azov }
				num_of_king_titles = 3
			}
			e_azov = {
				is_titular = no
			}
		}

	}
}

k_zhetysu = {
	color = { 150 175 60 }
	color2 = { 255 255 255 }
	capital = 1424
	gain_effect = {
		primary_title = { copy_title_laws = d_zhetysu }
		
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_zhetysu = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_zhetysu
			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_zhetysu }
				num_of_duke_titles = 4
			}
			k_zhetysu = {
				is_titular = no
			}
		}

	}
}

e_zhetysu = {
	color = { 137 175 60 }
	color2 = { 255 255 255 }
	capital = 1424
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_zhetysu }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_zhetysu = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_zhetysu
			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_zhetysu }
				num_of_king_titles = 3
			}
			e_zhetysu = {
				is_titular = no
			}
		}

	}
}

k_syr_darya = {
	color = { 145 109 40 }
	color2 = { 255 255 255 }
	capital = 900
	gain_effect = {
		primary_title = { copy_title_laws = d_syr_darya }
		
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_syr_darya = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_syr_darya
			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_syr_darya }
				num_of_duke_titles = 4
			}
			k_syr_darya = {
				is_titular = no
			}
		}

	}
}

e_syr_darya = {
	color = { 145 115 40 }
	color2 = { 255 255 255 }
	capital = 900
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_syr_darya }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_syr_darya = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_syr_darya
			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_syr_darya }
				num_of_king_titles = 3
			}
			e_syr_darya = {
				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 = iranian
				religion_group = zoroastrian_group
			
				primary_title = { title = d_khorasan }
				num_of_duke_titles = 4
			}
			k_khorasan = {
				is_titular = no
			}
		}

	}
}

e_khorasan = {
	color = { 141 150 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 = iranian
				religion_group = zoroastrian_group
			
				primary_title = { title = k_khorasan }
				num_of_king_titles = 3
			}
			e_khorasan = {
				is_titular = no
			}
		}

	}
}

k_mazandaran = {
	color = { 122 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 = iranian
				religion_group = zoroastrian_group
			
				primary_title = { title = d_mazandaran }
				num_of_duke_titles = 4
			}
			k_mazandaran = {
				is_titular = no
			}
		}

	}
}

e_mazandaran = {
	color = { 149 149 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 = iranian
				religion_group = zoroastrian_group
			
				primary_title = { title = k_mazandaran }
				num_of_king_titles = 3
			}
			e_mazandaran = {
				is_titular = no
			}
		}

	}
}

k_esfahan = {
	color = { 164 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 = iranian
				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 = iranian
				religion_group = muslim
			
				primary_title = { title = k_esfahan }
				num_of_king_titles = 3
			}
			e_esfahan = {
				is_titular = no
			}
		}

	}
}

k_kerman = {
	color = { 118 118 63 }
	color2 = { 255 255 255 }
	capital = 639
	gain_effect = {
		primary_title = { copy_title_laws = d_kerman }
		
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_kerman = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_kerman
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = iranian
				religion_group = muslim
			
				primary_title = { title = d_kerman }
				num_of_duke_titles = 4
			}
			k_kerman = {
				is_titular = no
			}
		}

	}
}

e_kerman = {
	color = { 118 98 63 }
	color2 = { 255 255 255 }
	capital = 639
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_kerman }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_kerman = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_kerman
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = iranian
				religion_group = muslim
			
				primary_title = { title = k_kerman }
				num_of_king_titles = 3
			}
			e_kerman = {
				is_titular = no
			}
		}

	}
}

k_fars = {
	color = { 57 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 = iranian
				religion_group = zoroastrian_group
			
				primary_title = { title = d_fars }
				num_of_duke_titles = 4
			}
			k_fars = {
				is_titular = no
			}
		}

	}
}

e_fars = {
	color = { 32 128 22 }
	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 = iranian
				religion_group = zoroastrian_group
			
				primary_title = { title = k_fars }
				num_of_king_titles = 3
			}
			e_fars = {
				is_titular = no
			}
		}

	}
}

k_hamadan = {
	color = { 164 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 = iranian
				religion_group = muslim
			
				primary_title = { title = d_hamadan }
				num_of_duke_titles = 4
			}
			k_hamadan = {
				is_titular = no
			}
		}

	}
}

e_hamadan = {
	color = { 123 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 = iranian
				religion_group = muslim
			
				primary_title = { title = k_hamadan }
				num_of_king_titles = 3
			}
			e_hamadan = {
				is_titular = no
			}
		}

	}
}

k_tabriz = {
	color = { 86 133 61 }
	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 = iranian
				religion_group = zoroastrian_group
			
				primary_title = { title = d_tabriz }
				num_of_duke_titles = 4
			}
			k_tabriz = {
				is_titular = no
			}
		}

	}
}

e_tabriz = {
	color = { 61 133 84 }
	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 = iranian
				religion_group = zoroastrian_group
			
				primary_title = { title = k_tabriz }
				num_of_king_titles = 3
			}
			e_tabriz = {
				is_titular = no
			}
		}

	}
}

k_azerbaijan = {
	color = { 160 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 = iranian
				religion_group = muslim
			
				primary_title = { title = d_azerbaijan }
				num_of_duke_titles = 4
			}
			k_azerbaijan = {
				is_titular = no
			}
		}

	}
}

e_azerbaijan = {
	color = { 232 177 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 = iranian
				religion_group = muslim
			
				primary_title = { title = k_azerbaijan }
				num_of_king_titles = 3
			}
			e_azerbaijan = {
				is_titular = no
			}
		}

	}
}

k_sistan = {
	color = { 148 146 40 }
	color2 = { 255 255 255 }
	capital = 637
	gain_effect = {
		primary_title = { copy_title_laws = d_sistan }
		
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_sistan = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_sistan
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = iranian
				religion_group = zoroastrian_group
			
				primary_title = { title = d_sistan }
				num_of_duke_titles = 4
			}
			k_sistan = {
				is_titular = no
			}
		}

	}
}

e_sistan = {
	color = { 144 148 40 }
	color2 = { 255 255 255 }
	capital = 637
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_sistan }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_sistan = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_sistan
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = iranian
				religion_group = zoroastrian_group
			
				primary_title = { title = k_sistan }
				num_of_king_titles = 3
			}
			e_sistan = {
				is_titular = no
			}
		}

	}
}

k_kabul = {
	color = { 125 68 23 }
	color2 = { 255 255 255 }
	capital = 1185
	gain_effect = {
		primary_title = { copy_title_laws = d_kabul }
		
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_kabul = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_kabul
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = iranian
				religion_group = indian_group
			
				primary_title = { title = d_kabul }
				num_of_duke_titles = 4
			}
			k_kabul = {
				is_titular = no
			}
		}

	}
}

e_kabul = {
	color = { 125 23 51 }
	color2 = { 255 255 255 }
	capital = 1185
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_kabul }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_kabul = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_kabul
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = iranian
				religion_group = indian_group
			
				primary_title = { title = k_kabul }
				num_of_king_titles = 3
			}
			e_kabul = {
				is_titular = no
			}
		}

	}
}

k_zabulistan = {
	color = { 179 155 64 }
	color2 = { 255 255 255 }
	capital = 1183
	gain_effect = {
		primary_title = { copy_title_laws = d_zabulistan }
		
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_zabulistan = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_zabulistan
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = iranian
				religion_group = indian_group
			
				primary_title = { title = d_zabulistan }
				num_of_duke_titles = 4
			}
			k_zabulistan = {
				is_titular = no
			}
		}

	}
}

e_zabulistan = {
	color = { 179 175 64 }
	color2 = { 255 255 255 }
	capital = 1183
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_zabulistan }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_zabulistan = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_zabulistan
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = iranian
				religion_group = indian_group
			
				primary_title = { title = k_zabulistan }
				num_of_king_titles = 3
			}
			e_zabulistan = {
				is_titular = no
			}
		}

	}
}

k_samarkand = {
	color = { 157 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 = altaic
				religion_group = zoroastrian_group
			
				primary_title = { title = d_samarkand }
				num_of_duke_titles = 4
			}
			k_samarkand = {
				is_titular = no
			}
		}

	}
}

e_samarkand = {
	color = { 164 170 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 = altaic
				religion_group = zoroastrian_group
			
				primary_title = { title = k_samarkand }
				num_of_king_titles = 3
			}
			e_samarkand = {
				is_titular = no
			}
		}

	}
}

k_merv = {
	color = { 163 241 28 }
	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 = iranian
				religion_group = zoroastrian_group
			
				primary_title = { title = d_merv }
				num_of_duke_titles = 4
			}
			k_merv = {
				is_titular = no
			}
		}

	}
}

e_merv = {
	color = { 240 241 28 }
	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 = iranian
				religion_group = zoroastrian_group
			
				primary_title = { title = k_merv }
				num_of_king_titles = 3
			}
			e_merv = {
				is_titular = no
			}
		}

	}
}

k_dihistan = {
	color = { 122 201 70 }
	color2 = { 255 255 255 }
	capital = 631
	gain_effect = {
		primary_title = { copy_title_laws = d_dihistan }
		
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_dihistan = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_dihistan
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = iranian
				religion_group = zoroastrian_group
			
				primary_title = { title = d_dihistan }
				num_of_duke_titles = 4
			}
			k_dihistan = {
				is_titular = no
			}
		}

	}
}

e_dihistan = {
	color = { 74 201 70 }
	color2 = { 255 255 255 }
	capital = 631
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_dihistan }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_dihistan = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_dihistan
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = iranian
				religion_group = zoroastrian_group
			
				primary_title = { title = k_dihistan }
				num_of_king_titles = 3
			}
			e_dihistan = {
				is_titular = no
			}
		}

	}
}

k_kermanshah = {
	color = { 55 144 84 }
	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 = iranian
				religion_group = muslim
			
				primary_title = { title = d_kermanshah }
				num_of_duke_titles = 4
			}
			k_kermanshah = {
				is_titular = no
			}
		}

	}
}

e_kermanshah = {
	color = { 55 144 84 }
	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 = iranian
				religion_group = muslim
			
				primary_title = { title = k_kermanshah }
				num_of_king_titles = 3
			}
			e_kermanshah = {
				is_titular = no
			}
		}

	}
}

k_tigris = {
	color = { 92 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 = arabic
				religion_group = muslim
			
				primary_title = { title = d_tigris }
				num_of_duke_titles = 4
			}
			k_tigris = {
				is_titular = no
			}
		}

	}
}

e_tigris = {
	color = { 49 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 = arabic
				religion_group = muslim
			
				primary_title = { title = k_tigris }
				num_of_king_titles = 3
			}
			e_tigris = {
				is_titular = no
			}
		}

	}
}

k_basra = {
	color = { 2 150 42 }
	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 = arabic
				religion_group = muslim
			
				primary_title = { title = d_basra }
				num_of_duke_titles = 4
			}
			k_basra = {
				is_titular = no
			}
		}

	}
}

e_basra = {
	color = { 2 150 78 }
	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 = arabic
				religion_group = muslim
			
				primary_title = { title = k_basra }
				num_of_king_titles = 3
			}
			e_basra = {
				is_titular = no
			}
		}

	}
}

k_baghdad = {
	color = { 2 100 27 }
	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 = arabic
				religion_group = muslim
			
				primary_title = { title = d_baghdad }
				num_of_duke_titles = 4
			}
			k_baghdad = {
				is_titular = no
			}
		}

	}
}

e_baghdad = {
	color = { 2 100 16 }
	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 = arabic
				religion_group = muslim
			
				primary_title = { title = k_baghdad }
				num_of_king_titles = 3
			}
			e_baghdad = {
				is_titular = no
			}
		}

	}
}

k_mosul = {
	color = { 11 205 23 }
	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 = iranian
				religion_group = muslim
			
				primary_title = { title = d_mosul }
				num_of_duke_titles = 4
			}
			k_mosul = {
				is_titular = no
			}
		}

	}
}

e_mosul = {
	color = { 92 205 11 }
	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 = iranian
				religion_group = muslim
			
				primary_title = { title = k_mosul }
				num_of_king_titles = 3
			}
			e_mosul = {
				is_titular = no
			}
		}

	}
}

k_jazira = {
	color = { 95 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 = arabic
				religion_group = christian
			
				primary_title = { title = d_jazira }
				num_of_duke_titles = 4
			}
			k_jazira = {
				is_titular = no
			}
		}

	}
}

e_jazira = {
	color = { 35 180 88 }
	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 = arabic
				religion_group = christian
			
				primary_title = { title = k_jazira }
				num_of_king_titles = 3
			}
			e_jazira = {
				is_titular = no
			}
		}

	}
}

k_wallachia = {
	color = { 238 151 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 = altaic
				religion_group = pagan_group
			
				primary_title = { title = d_wallachia }
				num_of_duke_titles = 4
			}
			k_wallachia = {
				is_titular = no
			}
		}

	}
}

e_wallachia = {
	color = { 238 69 78 }
	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 = altaic
				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 = east_slavic
				religion_group = pagan_group
			
				primary_title = { title = d_moldau }
				num_of_duke_titles = 4
			}
			k_moldau = {
				is_titular = no
			}
		}

	}
}

e_moldau = {
	color = { 223 188 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 = east_slavic
				religion_group = pagan_group
			
				primary_title = { title = k_moldau }
				num_of_king_titles = 3
			}
			e_moldau = {
				is_titular = no
			}
		}

	}
}

k_pecs = {
	color = { 155 25 34 }
	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 = altaic
				religion_group = pagan_group
			
				primary_title = { title = d_pecs }
				num_of_duke_titles = 4
			}
			k_pecs = {
				is_titular = no
			}
		}

	}
}

e_pecs = {
	color = { 155 55 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 = altaic
				religion_group = pagan_group
			
				primary_title = { title = k_pecs }
				num_of_king_titles = 3
			}
			e_pecs = {
				is_titular = no
			}
		}

	}
}

k_esztergom = {
	color = { 230 55 55 }
	color2 = { 255 255 255 }
	capital = 444
	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 = west_slavic
				religion_group = christian
			
				primary_title = { title = d_esztergom }
				num_of_duke_titles = 4
			}
			k_esztergom = {
				is_titular = no
			}
		}

	}
}

e_esztergom = {
	color = { 230 55 149 }
	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 = west_slavic
				religion_group = christian
			
				primary_title = { title = k_esztergom }
				num_of_king_titles = 3
			}
			e_esztergom = {
				is_titular = no
			}
		}

	}
}

k_nyitra = {
	color = { 190 31 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 = west_slavic
				religion_group = christian
			
				primary_title = { title = d_nyitra }
				num_of_duke_titles = 4
			}
			k_nyitra = {
				is_titular = no
			}
		}

	}
}

e_nyitra = {
	color = { 190 122 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 = west_slavic
				religion_group = christian
			
				primary_title = { title = k_nyitra }
				num_of_king_titles = 3
			}
			e_nyitra = {
				is_titular = no
			}
		}

	}
}

k_ungvar = {
	color = { 156 15 40 }
	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 = south_slavic
				religion_group = christian
			
				primary_title = { title = d_ungvar }
				num_of_duke_titles = 4
			}
			k_ungvar = {
				is_titular = no
			}
		}

	}
}

e_ungvar = {
	color = { 156 15 66 }
	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 = south_slavic
				religion_group = christian
			
				primary_title = { title = k_ungvar }
				num_of_king_titles = 3
			}
			e_ungvar = {
				is_titular = no
			}
		}

	}
}

k_pest = {
	color = { 150 69 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 = altaic
				religion_group = pagan_group
			
				primary_title = { title = d_pest }
				num_of_duke_titles = 4
			}
			k_pest = {
				is_titular = no
			}
		}

	}
}

e_pest = {
	color = { 150 75 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 = altaic
				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 = altaic
				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 = altaic
				religion_group = pagan_group
			
				primary_title = { title = k_transylvania }
				num_of_king_titles = 3
			}
			e_transylvania = {
				is_titular = no
			}
		}

	}
}

k_temes = {
	color = { 147 121 58 }
	color2 = { 255 255 255 }
	capital = 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 = altaic
				religion_group = pagan_group
			
				primary_title = { title = d_temes }
				num_of_duke_titles = 4
			}
			k_temes = {
				is_titular = no
			}
		}

	}
}

e_temes = {
	color = { 147 126 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 = altaic
				religion_group = pagan_group
			
				primary_title = { title = k_temes }
				num_of_king_titles = 3
			}
			e_temes = {
				is_titular = no
			}
		}

	}
}

k_berry = {
	color = { 24 28 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 = latin
				religion_group = christian
			
				primary_title = { title = d_berry }
				num_of_duke_titles = 4
			}
			k_berry = {
				is_titular = no
			}
		}

	}
}

e_berry = {
	color = { 24 28 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 = latin
				religion_group = christian
			
				primary_title = { title = k_berry }
				num_of_king_titles = 3
			}
			e_berry = {
				is_titular = no
			}
		}

	}
}

k_anjou = {
	color = { 31 24 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 = latin
				religion_group = christian
			
				primary_title = { title = d_anjou }
				num_of_duke_titles = 4
			}
			k_anjou = {
				is_titular = no
			}
		}

	}
}

e_anjou = {
	color = { 24 41 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 = latin
				religion_group = christian
			
				primary_title = { title = k_anjou }
				num_of_king_titles = 3
			}
			e_anjou = {
				is_titular = no
			}
		}

	}
}

k_normandy = {
	color = { 119 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 = latin
				religion_group = christian
			
				primary_title = { title = d_normandy }
				num_of_duke_titles = 4
			}
			k_normandy = {
				is_titular = no
			}
		}

	}
}

e_normandy = {
	color = { 156 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 = latin
				religion_group = christian
			
				primary_title = { title = k_normandy }
				num_of_king_titles = 3
			}
			e_normandy = {
				is_titular = no
			}
		}

	}
}

k_orleans = {
	color = { 124 128 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 = latin
				religion_group = christian
			
				primary_title = { title = d_orleans }
				num_of_duke_titles = 4
			}
			k_orleans = {
				is_titular = no
			}
		}

	}
}

e_orleans = {
	color = { 124 189 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 = latin
				religion_group = christian
			
				primary_title = { title = k_orleans }
				num_of_king_titles = 3
			}
			e_orleans = {
				is_titular = no
			}
		}

	}
}

k_champagne = {
	color = { 24 26 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 = latin
				religion_group = christian
			
				primary_title = { title = d_champagne }
				num_of_duke_titles = 4
			}
			k_champagne = {
				is_titular = no
			}
		}

	}
}

e_champagne = {
	color = { 34 24 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 = latin
				religion_group = christian
			
				primary_title = { title = k_champagne }
				num_of_king_titles = 3
			}
			e_champagne = {
				is_titular = no
			}
		}

	}
}

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

	}
}

e_valois = {
	color = { 35 37 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 = latin
				religion_group = christian
			
				primary_title = { title = k_valois }
				num_of_king_titles = 3
			}
			e_valois = {
				is_titular = no
			}
		}

	}
}

k_toulouse = {
	color = { 10 16 243 }
	color2 = { 255 255 255 }
	capital = 214
	gain_effect = {
		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 = latin
				religion_group = christian
			
				primary_title = { title = d_toulouse }
				num_of_duke_titles = 4
			}
			k_toulouse = {
				is_titular = no
			}
		}

	}
}

e_toulouse = {
	color = { 172 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 = latin
				religion_group = christian
			
				primary_title = { title = k_toulouse }
				num_of_king_titles = 3
			}
			e_toulouse = {
				is_titular = no
			}
		}

	}
}

k_gascogne = {
	color = { 68 30 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 = latin
				religion_group = christian
			
				primary_title = { title = d_gascogne }
				num_of_duke_titles = 4
			}
			k_gascogne = {
				is_titular = no
			}
		}

	}
}

e_gascogne = {
	color = { 68 30 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 = latin
				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 = latin
				religion_group = christian
			
				primary_title = { title = d_poitou }
				num_of_duke_titles = 4
			}
			k_poitou = {
				is_titular = no
			}
		}

	}
}

e_poitou = {
	color = { 86 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 = latin
				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 = latin
				religion_group = christian
			
				primary_title = { title = d_auvergne }
				num_of_duke_titles = 4
			}
			k_auvergne = {
				is_titular = no
			}
		}

	}
}

e_auvergne = {
	color = { 24 226 123 }
	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 = latin
				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 = latin
				religion_group = christian
			
				primary_title = { title = d_bourbon }
				num_of_duke_titles = 4
			}
			k_bourbon = {
				is_titular = no
			}
		}

	}
}

e_bourbon = {
	color = { 74 99 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 = latin
				religion_group = christian
			
				primary_title = { title = k_bourbon }
				num_of_king_titles = 3
			}
			e_bourbon = {
				is_titular = no
			}
		}

	}
}

k_provence = {
	color = { 145 37 54 }
	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 = latin
				religion_group = christian
			
				primary_title = { title = d_provence }
				num_of_duke_titles = 4
			}
			k_provence = {
				is_titular = no
			}
		}

	}
}

e_provence = {
	color = { 145 37 67 }
	color2 = { 255 255 255 }
	capital = 221
	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 = latin
				religion_group = christian
			
				primary_title = { title = k_provence }
				num_of_king_titles = 3
			}
			e_provence = {
				is_titular = no
			}
		}

	}
}

k_savoie = {
	color = { 101 8 51 }
	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 = latin
				religion_group = christian
			
				primary_title = { title = d_savoie }
				num_of_duke_titles = 4
			}
			k_savoie = {
				is_titular = no
			}
		}

	}
}

e_savoie = {
	color = { 101 8 73 }
	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 = latin
				religion_group = christian
			
				primary_title = { title = k_savoie }
				num_of_king_titles = 3
			}
			e_savoie = {
				is_titular = no
			}
		}

	}
}

k_dauphine = {
	color = { 115 26 63 }
	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 = latin
				religion_group = christian
			
				primary_title = { title = d_dauphine }
				num_of_duke_titles = 4
			}
			k_dauphine = {
				is_titular = no
			}
		}

	}
}

e_dauphine = {
	color = { 115 31 26 }
	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 = latin
				religion_group = christian
			
				primary_title = { title = k_dauphine }
				num_of_king_titles = 3
			}
			e_dauphine = {
				is_titular = no
			}
		}

	}
}

k_upper_burgundy = {
	color = { 159 20 58 }
	color2 = { 255 255 255 }
	capital = 135
	gain_effect = {
		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 = latin
				religion_group = christian
			
				primary_title = { title = d_upper_burgundy }
				num_of_duke_titles = 4
			}
			k_upper_burgundy = {
				is_titular = no
			}
		}

	}
}

e_upper_burgundy = {
	color = { 159 20 108 }
	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 = latin
				religion_group = christian
			
				primary_title = { title = k_upper_burgundy }
				num_of_king_titles = 3
			}
			e_upper_burgundy = {
				is_titular = no
			}
		}

	}
}

k_castilla = {
	color = { 242 168 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 = iberian
				religion_group = christian
			
				primary_title = { title = d_castilla }
				num_of_duke_titles = 4
			}
			k_castilla = {
				is_titular = no
			}
		}

	}
}

e_castilla = {
	color = { 242 58 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 = iberian
				religion_group = christian
			
				primary_title = { title = k_castilla }
				num_of_king_titles = 3
			}
			e_castilla = {
				is_titular = no
			}
		}

	}
}

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

	}
}

e_barcelona = {
	color = { 166 139 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 = iberian
				religion_group = christian
			
				primary_title = { title = k_barcelona }
				num_of_king_titles = 3
			}
			e_barcelona = {
				is_titular = no
			}
		}

	}
}

k_valencia = {
	color = { 45 167 64 }
	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 = iberian
				religion_group = christian
			
				primary_title = { title = d_valencia }
				num_of_duke_titles = 4
			}
			k_valencia = {
				is_titular = no
			}
		}

	}
}

e_valencia = {
	color = { 45 167 137 }
	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 = iberian
				religion_group = christian
			
				primary_title = { title = k_valencia }
				num_of_king_titles = 3
			}
			e_valencia = {
				is_titular = no
			}
		}

	}
}

k_mallorca = {
	color = { 78 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 = { 78 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 139 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 = iberian
				religion_group = christian
			
				primary_title = { title = d_galicia }
				num_of_duke_titles = 4
			}
			k_galicia = {
				is_titular = no
			}
		}

	}
}

e_galicia = {
	color = { 213 148 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 = iberian
				religion_group = christian
			
				primary_title = { title = k_galicia }
				num_of_king_titles = 3
			}
			e_galicia = {
				is_titular = no
			}
		}

	}
}

k_porto = {
	color = { 182 108 45 }
	color2 = { 255 255 255 }
	capital = 158
	gain_effect = {
		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 = iberian
				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 = iberian
				religion_group = christian
			
				primary_title = { title = k_porto }
				num_of_king_titles = 3
			}
			e_porto = {
				is_titular = no
			}
		}

	}
}

k_beja = {
	color = { 182 151 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 = iberian
				religion_group = christian
			
				primary_title = { title = d_beja }
				num_of_duke_titles = 4
			}
			k_beja = {
				is_titular = no
			}
		}

	}
}

e_beja = {
	color = { 160 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 = iberian
				religion_group = christian
			
				primary_title = { title = k_beja }
				num_of_king_titles = 3
			}
			e_beja = {
				is_titular = no
			}
		}

	}
}

k_algarve = {
	color = { 202 41 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 = arabic
				religion_group = muslim
			
				primary_title = { title = d_algarve }
				num_of_duke_titles = 4
			}
			k_algarve = {
				is_titular = no
			}
		}

	}
}

e_algarve = {
	color = { 202 17 5 }
	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 = arabic
				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 = arabic
				religion_group = muslim
			
				primary_title = { title = d_cordoba }
				num_of_duke_titles = 4
			}
			k_cordoba = {
				is_titular = no
			}
		}

	}
}

e_cordoba = {
	color = { 141 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 = arabic
				religion_group = muslim
			
				primary_title = { title = k_cordoba }
				num_of_king_titles = 3
			}
			e_cordoba = {
				is_titular = no
			}
		}

	}
}

k_murcia = {
	color = { 16 229 20 }
	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 = arabic
				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 = arabic
				religion_group = muslim
			
				primary_title = { title = k_murcia }
				num_of_king_titles = 3
			}
			e_murcia = {
				is_titular = no
			}
		}

	}
}

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

	}
}

e_granada = {
	color = { 80 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 = arabic
				religion_group = muslim
			
				primary_title = { title = k_granada }
				num_of_king_titles = 3
			}
			e_granada = {
				is_titular = no
			}
		}

	}
}

k_sevilla = {
	color = { 150 218 21 }
	color2 = { 255 255 255 }
	capital = 182
	gain_effect = {
		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 = arabic
				religion_group = muslim
			
				primary_title = { title = d_sevilla }
				num_of_duke_titles = 4
			}
			k_sevilla = {
				is_titular = no
			}
		}

	}
}

e_sevilla = {
	color = { 174 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 = arabic
				religion_group = muslim
			
				primary_title = { title = k_sevilla }
				num_of_king_titles = 3
			}
			e_sevilla = {
				is_titular = no
			}
		}

	}
}

k_badajoz = {
	color = { 115 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 = arabic
				religion_group = muslim
			
				primary_title = { title = d_badajoz }
				num_of_duke_titles = 4
			}
			k_badajoz = {
				is_titular = no
			}
		}

	}
}

e_badajoz = {
	color = { 138 243 51 }
	color2 = { 255 255 255 }
	capital = 184
	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 = arabic
				religion_group = muslim
			
				primary_title = { title = k_badajoz }
				num_of_king_titles = 3
			}
			e_badajoz = {
				is_titular = no
			}
		}

	}
}

k_toledo = {
	color = { 212 211 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 = iberian
				religion_group = christian
			
				primary_title = { title = d_toledo }
				num_of_duke_titles = 4
			}
			k_toledo = {
				is_titular = no
			}
		}

	}
}

e_toledo = {
	color = { 212 187 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 = iberian
				religion_group = christian
			
				primary_title = { title = k_toledo }
				num_of_king_titles = 3
			}
			e_toledo = {
				is_titular = no
			}
		}

	}
}

k_arabia_petrae = {
	color = { 179 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 = arabic
				religion_group = muslim
			
				primary_title = { title = d_arabia_petrae }
				num_of_duke_titles = 4
			}
			k_arabia_petrae = {
				is_titular = no
			}
		}

	}
}

e_arabia_petrae = {
	color = { 121 196 2 }
	color2 = { 255 255 255 }
	capital = 722
	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 = arabic
				religion_group = muslim
			
				primary_title = { title = k_arabia_petrae }
				num_of_king_titles = 3
			}
			e_arabia_petrae = {
				is_titular = no
			}
		}

	}
}

k_medina = {
	color = { 212 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 = arabic
				religion_group = muslim
			
				primary_title = { title = d_medina }
				num_of_duke_titles = 4
			}
			k_medina = {
				is_titular = no
			}
		}

	}
}

e_medina = {
	color = { 187 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 = arabic
				religion_group = muslim
			
				primary_title = { title = k_medina }
				num_of_king_titles = 3
			}
			e_medina = {
				is_titular = no
			}
		}

	}
}

k_sanaa = {
	color = { 92 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 = arabic
				religion_group = muslim
			
				primary_title = { title = d_sanaa }
				num_of_duke_titles = 4
			}
			k_sanaa = {
				is_titular = no
			}
		}

	}
}

e_sanaa = {
	color = { 99 119 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 = arabic
				religion_group = muslim
			
				primary_title = { title = k_sanaa }
				num_of_king_titles = 3
			}
			e_sanaa = {
				is_titular = no
			}
		}

	}
}

k_oman = {
	color = { 163 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 = arabic
				religion_group = muslim
			
				primary_title = { title = d_oman }
				num_of_duke_titles = 4
			}
			k_oman = {
				is_titular = no
			}
		}

	}
}

e_oman = {
	color = { 140 196 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 = arabic
				religion_group = muslim
			
				primary_title = { title = k_oman }
				num_of_king_titles = 3
			}
			e_oman = {
				is_titular = no
			}
		}

	}
}

k_nefoud = {
	color = { 10 228 55 }
	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 = arabic
				religion_group = muslim
			
				primary_title = { title = d_nefoud }
				num_of_duke_titles = 4
			}
			k_nefoud = {
				is_titular = no
			}
		}

	}
}

e_nefoud = {
	color = { 10 228 108 }
	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 = arabic
				religion_group = muslim
			
				primary_title = { title = k_nefoud }
				num_of_king_titles = 3
			}
			e_nefoud = {
				is_titular = no
			}
		}

	}
}

k_amman = {
	color = { 49 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 = arabic
				religion_group = muslim
			
				primary_title = { title = d_amman }
				num_of_duke_titles = 4
			}
			k_amman = {
				is_titular = no
			}
		}

	}
}

e_amman = {
	color = { 55 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 = arabic
				religion_group = muslim
			
				primary_title = { title = k_amman }
				num_of_king_titles = 3
			}
			e_amman = {
				is_titular = no
			}
		}

	}
}

k_alexandria = {
	color = { 100 219 120 }
	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 = arabic
				religion_group = christian
			
				primary_title = { title = d_alexandria }
				num_of_duke_titles = 4
			}
			k_alexandria = {
				is_titular = no
			}
		}

	}
}

e_alexandria = {
	color = { 100 219 134 }
	color2 = { 255 255 255 }
	capital = 802
	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 = arabic
				religion_group = christian
			
				primary_title = { title = k_alexandria }
				num_of_king_titles = 3
			}
			e_alexandria = {
				is_titular = no
			}
		}

	}
}

k_damietta = {
	color = { 3 255 119 }
	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 = arabic
				religion_group = muslim
			
				primary_title = { title = d_damietta }
				num_of_duke_titles = 4
			}
			k_damietta = {
				is_titular = no
			}
		}

	}
}

e_damietta = {
	color = { 3 255 255 }
	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 = arabic
				religion_group = muslim
			
				primary_title = { title = k_damietta }
				num_of_king_titles = 3
			}
			e_damietta = {
				is_titular = no
			}
		}

	}
}

k_cairo = {
	color = { 20 232 39 }
	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 = arabic
				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 = arabic
				religion_group = muslim
			
				primary_title = { title = k_cairo }
				num_of_king_titles = 3
			}
			e_cairo = {
				is_titular = no
			}
		}

	}
}

k_aswan = {
	color = { 41 188 94 }
	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 = arabic
				religion_group = christian
			
				primary_title = { title = d_aswan }
				num_of_duke_titles = 4
			}
			k_aswan = {
				is_titular = no
			}
		}

	}
}

e_aswan = {
	color = { 41 188 49 }
	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 = arabic
				religion_group = christian
			
				primary_title = { title = k_aswan }
				num_of_king_titles = 3
			}
			e_aswan = {
				is_titular = no
			}
		}

	}
}

k_sinai = {
	color = { 99 98 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 = arabic
				religion_group = muslim
			
				primary_title = { title = d_sinai }
				num_of_duke_titles = 4
			}
			k_sinai = {
				is_titular = no
			}
		}

	}
}

e_sinai = {
	color = { 99 34 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 = arabic
				religion_group = muslim
			
				primary_title = { title = k_sinai }
				num_of_king_titles = 3
			}
			e_sinai = {
				is_titular = no
			}
		}

	}
}

k_oultrejourdain = {
	color = { 190 186 180 }
	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 = arabic
				religion_group = muslim
			
				primary_title = { title = d_oultrejourdain }
				num_of_duke_titles = 4
			}
			k_oultrejourdain = {
				is_titular = no
			}
		}

	}
}

e_oultrejourdain = {
	color = { 190 189 180 }
	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 = arabic
				religion_group = muslim
			
				primary_title = { title = k_oultrejourdain }
				num_of_king_titles = 3
			}
			e_oultrejourdain = {
				is_titular = no
			}
		}

	}
}

k_ascalon = {
	color = { 160 172 200 }
	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 = arabic
				religion_group = muslim
			
				primary_title = { title = d_ascalon }
				num_of_duke_titles = 4
			}
			k_ascalon = {
				is_titular = no
			}
		}

	}
}

e_ascalon = {
	color = { 160 182 200 }
	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 = arabic
				religion_group = muslim
			
				primary_title = { title = k_ascalon }
				num_of_king_titles = 3
			}
			e_ascalon = {
				is_titular = no
			}
		}

	}
}

k_galilee = {
	color = { 225 192 160 }
	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 = arabic
				religion_group = christian
			
				primary_title = { title = d_galilee }
				num_of_duke_titles = 4
			}
			k_galilee = {
				is_titular = no
			}
		}

	}
}

e_galilee = {
	color = { 225 160 171 }
	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 = arabic
				religion_group = christian
			
				primary_title = { title = k_galilee }
				num_of_king_titles = 3
			}
			e_galilee = {
				is_titular = no
			}
		}

	}
}

k_aleppo = {
	color = { 136 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 = arabic
				religion_group = muslim
			
				primary_title = { title = d_aleppo }
				num_of_duke_titles = 4
			}
			k_aleppo = {
				is_titular = no
			}
		}

	}
}

e_aleppo = {
	color = { 232 214 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 = arabic
				religion_group = muslim
			
				primary_title = { title = k_aleppo }
				num_of_king_titles = 3
			}
			e_aleppo = {
				is_titular = no
			}
		}

	}
}

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

	}
}

e_antioch = {
	color = { 131 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 = byzantine
				religion_group = christian
			
				primary_title = { title = k_antioch }
				num_of_king_titles = 3
			}
			e_antioch = {
				is_titular = no
			}
		}

	}
}

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

	}
}

e_tripoli = {
	color = { 36 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 = arabic
				religion_group = christian
			
				primary_title = { title = k_tripoli }
				num_of_king_titles = 3
			}
			e_tripoli = {
				is_titular = no
			}
		}

	}
}

k_damascus = {
	color = { 77 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 = arabic
				religion_group = muslim
			
				primary_title = { title = d_damascus }
				num_of_duke_titles = 4
			}
			k_damascus = {
				is_titular = no
			}
		}

	}
}

e_damascus = {
	color = { 46 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 = arabic
				religion_group = muslim
			
				primary_title = { title = k_damascus }
				num_of_king_titles = 3
			}
			e_damascus = {
				is_titular = no
			}
		}

	}
}

k_marrakech = {
	color = { 57 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 = arabic
				religion_group = muslim
			
				primary_title = { title = d_marrakech }
				num_of_duke_titles = 4
			}
			k_marrakech = {
				is_titular = no
			}
		}

	}
}

e_marrakech = {
	color = { 121 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 = arabic
				religion_group = muslim
			
				primary_title = { title = k_marrakech }
				num_of_king_titles = 3
			}
			e_marrakech = {
				is_titular = no
			}
		}

	}
}

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

	}
}

e_tangiers = {
	color = { 3 255 37 }
	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 = arabic
				religion_group = muslim
			
				primary_title = { title = k_tangiers }
				num_of_king_titles = 3
			}
			e_tangiers = {
				is_titular = no
			}
		}

	}
}

k_fes = {
	color = { 20 232 119 }
	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 = arabic
				religion_group = muslim
			
				primary_title = { title = d_fes }
				num_of_duke_titles = 4
			}
			k_fes = {
				is_titular = no
			}
		}

	}
}

e_fes = {
	color = { 20 232 93 }
	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 = arabic
				religion_group = muslim
			
				primary_title = { title = k_fes }
				num_of_king_titles = 3
			}
			e_fes = {
				is_titular = no
			}
		}

	}
}

k_alger = {
	color = { 63 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 = arabic
				religion_group = muslim
			
				primary_title = { title = d_alger }
				num_of_duke_titles = 4
			}
			k_alger = {
				is_titular = no
			}
		}

	}
}

e_alger = {
	color = { 32 150 43 }
	color2 = { 255 255 255 }
	capital = 831
	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 = arabic
				religion_group = muslim
			
				primary_title = { title = k_alger }
				num_of_king_titles = 3
			}
			e_alger = {
				is_titular = no
			}
		}

	}
}

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

	}
}

e_tlemcen = {
	color = { 41 188 181 }
	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 = arabic
				religion_group = muslim
			
				primary_title = { title = k_tlemcen }
				num_of_king_titles = 3
			}
			e_tlemcen = {
				is_titular = no
			}
		}

	}
}

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

	}
}

e_tunis = {
	color = { 20 232 95 }
	color2 = { 255 255 255 }
	capital = 817
	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 = arabic
				religion_group = muslim
			
				primary_title = { title = k_tunis }
				num_of_king_titles = 3
			}
			e_tunis = {
				is_titular = no
			}
		}

	}
}

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

	}
}

e_tripolitania = {
	color = { 63 175 130 }
	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 = arabic
				religion_group = muslim
			
				primary_title = { title = k_tripolitania }
				num_of_king_titles = 3
			}
			e_tripolitania = {
				is_titular = no
			}
		}

	}
}

k_cyrenaica = {
	color = { 32 150 56 }
	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 = arabic
				religion_group = muslim
			
				primary_title = { title = d_cyrenaica }
				num_of_duke_titles = 4
			}
			k_cyrenaica = {
				is_titular = no
			}
		}

	}
}

e_cyrenaica = {
	color = { 51 150 32 }
	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 = arabic
				religion_group = muslim
			
				primary_title = { title = k_cyrenaica }
				num_of_king_titles = 3
			}
			e_cyrenaica = {
				is_titular = no
			}
		}

	}
}

k_kabylia = {
	color = { 185 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 = arabic
				religion_group = muslim
			
				primary_title = { title = d_kabylia }
				num_of_duke_titles = 4
			}
			k_kabylia = {
				is_titular = no
			}
		}

	}
}

e_kabylia = {
	color = { 178 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 = arabic
				religion_group = muslim
			
				primary_title = { title = k_kabylia }
				num_of_king_titles = 3
			}
			e_kabylia = {
				is_titular = no
			}
		}

	}
}

k_harer = {
	color = { 97 151 52 }
	color2 = { 255 255 255 }
	capital = 872
	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 = east_african
				religion_group = muslim
			
				primary_title = { title = d_harer }
				num_of_duke_titles = 4
			}
			k_harer = {
				is_titular = no
			}
		}

	}
}

e_harer = {
	color = { 62 151 52 }
	color2 = { 255 255 255 }
	capital = 872
	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 = east_african
				religion_group = muslim
			
				primary_title = { title = k_harer }
				num_of_king_titles = 3
			}
			e_harer = {
				is_titular = no
			}
		}

	}
}

k_axum = {
	color = { 186 135 70 }
	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 = east_african
				religion_group = christian
			
				primary_title = { title = d_axum }
				num_of_duke_titles = 4
			}
			k_axum = {
				is_titular = no
			}
		}

	}
}

e_axum = {
	color = { 186 79 70 }
	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 = east_african
				religion_group = christian
			
				primary_title = { title = k_axum }
				num_of_king_titles = 3
			}
			e_axum = {
				is_titular = no
			}
		}

	}
}

k_semien = {
	color = { 146 88 50 }
	color2 = { 255 255 255 }
	capital = 1380
	gain_effect = {
		primary_title = { copy_title_laws = d_semien }
		
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_semien = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_semien
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = east_african
				religion_group = jewish_group
			
				primary_title = { title = d_semien }
				num_of_duke_titles = 4
			}
			k_semien = {
				is_titular = no
			}
		}

	}
}

e_semien = {
	color = { 146 105 50 }
	color2 = { 255 255 255 }
	capital = 1380
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_semien }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_semien = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_semien
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = east_african
				religion_group = jewish_group
			
				primary_title = { title = k_semien }
				num_of_king_titles = 3
			}
			e_semien = {
				is_titular = no
			}
		}

	}
}

k_afar = {
	color = { 159 189 65 }
	color2 = { 255 255 255 }
	capital = 873
	gain_effect = {
		primary_title = { copy_title_laws = d_afar }
		
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_afar = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_afar
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = east_african
				religion_group = muslim
			
				primary_title = { title = d_afar }
				num_of_duke_titles = 4
			}
			k_afar = {
				is_titular = no
			}
		}

	}
}

e_afar = {
	color = { 189 122 65 }
	color2 = { 255 255 255 }
	capital = 873
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_afar }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_afar = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_afar
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = east_african
				religion_group = muslim
			
				primary_title = { title = k_afar }
				num_of_king_titles = 3
			}
			e_afar = {
				is_titular = no
			}
		}

	}
}

k_gondar = {
	color = { 215 78 45 }
	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 = east_african
				religion_group = christian
			
				primary_title = { title = d_gondar }
				num_of_duke_titles = 4
			}
			k_gondar = {
				is_titular = no
			}
		}

	}
}

e_gondar = {
	color = { 215 45 53 }
	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 = east_african
				religion_group = christian
			
				primary_title = { title = k_gondar }
				num_of_king_titles = 3
			}
			e_gondar = {
				is_titular = no
			}
		}

	}
}

k_wag = {
	color = { 186 76 55 }
	color2 = { 255 255 255 }
	capital = 1417
	gain_effect = {
		primary_title = { copy_title_laws = d_wag }
		
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_wag = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_wag
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = east_african
				religion_group = christian
			
				primary_title = { title = d_wag }
				num_of_duke_titles = 4
			}
			k_wag = {
				is_titular = no
			}
		}

	}
}

e_wag = {
	color = { 186 100 55 }
	color2 = { 255 255 255 }
	capital = 1417
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_wag }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_wag = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_wag
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = east_african
				religion_group = christian
			
				primary_title = { title = k_wag }
				num_of_king_titles = 3
			}
			e_wag = {
				is_titular = no
			}
		}

	}
}

k_gojjam = {
	color = { 137 86 76 }
	color2 = { 255 255 255 }
	capital = 1280
	gain_effect = {
		primary_title = { copy_title_laws = d_gojjam }
		
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_gojjam = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_gojjam
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = east_african
				religion_group = christian
			
				primary_title = { title = d_gojjam }
				num_of_duke_titles = 4
			}
			k_gojjam = {
				is_titular = no
			}
		}

	}
}

e_gojjam = {
	color = { 137 76 110 }
	color2 = { 255 255 255 }
	capital = 1280
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_gojjam }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_gojjam = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_gojjam
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = east_african
				religion_group = christian
			
				primary_title = { title = k_gojjam }
				num_of_king_titles = 3
			}
			e_gojjam = {
				is_titular = no
			}
		}

	}
}

k_damot = {
	color = { 198 123 30 }
	color2 = { 255 255 255 }
	capital = 1428
	gain_effect = {
		primary_title = { copy_title_laws = d_damot }
		
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_damot = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_damot
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = east_african
				religion_group = christian
			
				primary_title = { title = d_damot }
				num_of_duke_titles = 4
			}
			k_damot = {
				is_titular = no
			}
		}

	}
}

e_damot = {
	color = { 198 93 30 }
	color2 = { 255 255 255 }
	capital = 1428
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_damot }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_damot = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_damot
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = east_african
				religion_group = christian
			
				primary_title = { title = k_damot }
				num_of_king_titles = 3
			}
			e_damot = {
				is_titular = no
			}
		}

	}
}

k_shewa = {
	color = { 147 72 48 }
	color2 = { 255 255 255 }
	capital = 882
	gain_effect = {
		primary_title = { copy_title_laws = d_shewa }
		
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_shewa = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_shewa
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = east_african
				religion_group = christian
			
				primary_title = { title = d_shewa }
				num_of_duke_titles = 4
			}
			k_shewa = {
				is_titular = no
			}
		}

	}
}

e_shewa = {
	color = { 147 78 48 }
	color2 = { 255 255 255 }
	capital = 882
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_shewa }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_shewa = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_shewa
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = east_african
				religion_group = christian
			
				primary_title = { title = k_shewa }
				num_of_king_titles = 3
			}
			e_shewa = {
				is_titular = no
			}
		}

	}
}

k_nobatia = {
	color = { 162 151 85 }
	capital = 1282
	gain_effect = {
		primary_title = { copy_title_laws = d_nobatia }
		
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_nobatia = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_nobatia
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = east_african
				religion_group = christian
			
				primary_title = { title = d_nobatia }
				num_of_duke_titles = 4
			}
			k_nobatia = {
				is_titular = no
			}
		}

	}
}

e_nobatia = {
	color = { 162 138 85 }
	capital = 1282
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_nobatia }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_nobatia = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_nobatia
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = east_african
				religion_group = christian
			
				primary_title = { title = k_nobatia }
				num_of_king_titles = 3
			}
			e_nobatia = {
				is_titular = no
			}
		}

	}
}

k_sennar = {
	color = { 128 21 20 }
	color2 = { 255 255 255 }
	capital = 1334
	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 = east_african
				religion_group = christian
			
				primary_title = { title = d_sennar }
				num_of_duke_titles = 4
			}
			k_sennar = {
				is_titular = no
			}
		}

	}
}

e_sennar = {
	color = { 128 47 20 }
	color2 = { 255 255 255 }
	capital = 1334
	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 = east_african
				religion_group = christian
			
				primary_title = { title = k_sennar }
				num_of_king_titles = 3
			}
			e_sennar = {
				is_titular = no
			}
		}

	}
}

k_hayya = {
	color = { 186 91 41 }
	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 = east_african
				religion_group = christian
			
				primary_title = { title = d_hayya }
				num_of_duke_titles = 4
			}
			k_hayya = {
				is_titular = no
			}
		}

	}
}

e_hayya = {
	color = { 177 186 41 }
	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 = east_african
				religion_group = christian
			
				primary_title = { title = k_hayya }
				num_of_king_titles = 3
			}
			e_hayya = {
				is_titular = no
			}
		}

	}
}

k_northumberland = {
	color = { 255 0 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 168 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 109 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 125 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 15 26 }
	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 41 }
	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 150 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 186 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 96 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 191 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 101 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 183 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 52 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 15 87 }
	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 73 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 86 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 90 }
	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 212 }
	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 72 22 }
	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 80 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 58 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 10 11 }
	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 60 10 }
	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 140 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 208 198 }
	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 71 127 }
	color2 = { 255 255 255 }
	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 42 127 }
	color2 = { 255 255 255 }
	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 = { 16 20 157 }
	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 = { 16 20 157 }
	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 = { 25 101 160 }
	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 = { 25 158 160 }
	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 137 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 109 243 }
	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 = { 18 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 = { 83 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 = { 94 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 = { 156 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 = { 49 249 72 }
	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 = { 49 249 60 }
	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 = { 30 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 = { 27 211 101 }
	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 = { 25 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 = { 116 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 = west_african
				religion_group = pagan_group
			
				primary_title = { title = d_timbuktu }
				num_of_duke_titles = 4
			}
			k_timbuktu = {
				is_titular = no
			}
		}

	}
}

e_timbuktu = {
	color = { 61 180 63 }
	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 = west_african
				religion_group = pagan_group
			
				primary_title = { title = k_timbuktu }
				num_of_king_titles = 3
			}
			e_timbuktu = {
				is_titular = no
			}
		}

	}
}

k_ghana = {
	color = { 120 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 = west_african
				religion_group = pagan_group
			
				primary_title = { title = d_ghana }
				num_of_duke_titles = 4
			}
			k_ghana = {
				is_titular = no
			}
		}

	}
}

e_ghana = {
	color = { 130 104 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 = west_african
				religion_group = pagan_group
			
				primary_title = { title = k_ghana }
				num_of_king_titles = 3
			}
			e_ghana = {
				is_titular = no
			}
		}

	}
}

k_songhay = {
	color = { 95 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 = west_african
				religion_group = pagan_group
			
				primary_title = { title = d_songhay }
				num_of_duke_titles = 4
			}
			k_songhay = {
				is_titular = no
			}
		}

	}
}

e_songhay = {
	color = { 104 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 = west_african
				religion_group = pagan_group
			
				primary_title = { title = k_songhay }
				num_of_king_titles = 3
			}
			e_songhay = {
				is_titular = no
			}
		}

	}
}

k_oxford = {
	color = { 255 32 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 35 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 77 }
	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 100 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 228 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 60 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 25 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 101 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 170 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 152 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 146 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 100 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 75 91 }
	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 130 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 124 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 = { 152 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 = { 94 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 68 }
	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 95 }
	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 41 44 }
	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 41 51 }
	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 165 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 199 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 = { 133 128 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 126 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 = { 148 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 = { 155 114 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 = { 131 183 125 }
	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 = { 86 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 = { 94 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 = { 98 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 208 }
	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 = { 204 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 194 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 104 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 66 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 227 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 = byzantine
				religion_group = christian
			
				primary_title = { title = d_amalfi }
				num_of_duke_titles = 4
			}
			k_amalfi = {
				is_titular = no
			}
		}

	}
}

e_amalfi = {
	color = { 140 205 230 }
	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 = byzantine
				religion_group = christian
			
				primary_title = { title = k_amalfi }
				num_of_king_titles = 3
			}
			e_amalfi = {
				is_titular = no
			}
		}

	}
}

k_yazidi = {
	color = { 20 58 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 = iranian
				religion_group = muslim
			
				primary_title = { title = d_yazidi }
				num_of_duke_titles = 4
			}
			k_yazidi = {
				is_titular = no
			}
		}

	}
}

e_yazidi = {
	color = { 20 50 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 = iranian
				religion_group = muslim
			
				primary_title = { title = k_yazidi }
				num_of_king_titles = 3
			}
			e_yazidi = {
				is_titular = no
			}
		}

	}
}

k_ibadi = {
	color = { 20 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 = arabic
				religion_group = muslim
			
				primary_title = { title = d_ibadi }
				num_of_duke_titles = 4
			}
			k_ibadi = {
				is_titular = no
			}
		}

	}
}

e_ibadi = {
	color = { 79 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 = arabic
				religion_group = muslim
			
				primary_title = { title = k_ibadi }
				num_of_king_titles = 3
			}
			e_ibadi = {
				is_titular = no
			}
		}

	}
}

k_hurufi = {
	color = { 80 220 105 }
	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 = arabic
				religion_group = muslim
			
				primary_title = { title = d_hurufi }
				num_of_duke_titles = 4
			}
			k_hurufi = {
				is_titular = no
			}
		}

	}
}

e_hurufi = {
	color = { 80 220 139 }
	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 = arabic
				religion_group = muslim
			
				primary_title = { title = k_hurufi }
				num_of_king_titles = 3
			}
			e_hurufi = {
				is_titular = no
			}
		}

	}
}

k_gotland = {
	color = { 60 112 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 164 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_socotra = {
	color = { 183 255 85 }
	color2 = { 255 255 255 }
	capital = 1369
	dignity = 10
	gain_effect = {
		primary_title = { copy_title_laws = d_socotra }
		
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_socotra = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_socotra
			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 = christian
			
				primary_title = { title = d_socotra }
				num_of_duke_titles = 4
			}
			k_socotra = {
				is_titular = no
			}
		}

	}
}

e_socotra = {
	color = { 152 255 85 }
	color2 = { 255 255 255 }
	capital = 1369
	short_name = yes
	dignity = 10
	gain_effect = {
		primary_title = { copy_title_laws = k_socotra }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_socotra = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_socotra
			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 = christian
			
				primary_title = { title = k_socotra }
				num_of_king_titles = 3
			}
			e_socotra = {
				is_titular = no
			}
		}

	}
}

k_norse_pagan_reformed = {
	color = { 179 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 = north_germanic
				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 = { 217 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 = north_germanic
				religion_group = pagan_group
			
				primary_title = { title = k_norse_pagan_reformed }
				num_of_king_titles = 3
			}
			e_norse_pagan_reformed = {
				is_titular = no
			}
		}

	}
}

k_sauvira = {
	color = { 230 110 20 }
	color2 = { 255 255 255 }
	capital = 1297
	gain_effect = {
		primary_title = { copy_title_laws = d_sauvira }
		
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_sauvira = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_sauvira
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = indo_aryan_group
				religion_group = muslim
			
				primary_title = { title = d_sauvira }
				num_of_duke_titles = 4
			}
			k_sauvira = {
				is_titular = no
			}
		}

	}
}

e_sauvira = {
	color = { 230 122 20 }
	color2 = { 255 255 255 }
	capital = 1297
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_sauvira }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_sauvira = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_sauvira
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = indo_aryan_group
				religion_group = muslim
			
				primary_title = { title = k_sauvira }
				num_of_king_titles = 3
			}
			e_sauvira = {
				is_titular = no
			}
		}

	}
}

k_bhakkar = {
	color = { 200 127 18 }
	color2 = { 255 255 255 }
	capital = 1138
	gain_effect = {
		primary_title = { copy_title_laws = d_bhakkar }
		
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_bhakkar = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_bhakkar
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = indo_aryan_group
				religion_group = muslim
			
				primary_title = { title = d_bhakkar }
				num_of_duke_titles = 4
			}
			k_bhakkar = {
				is_titular = no
			}
		}

	}
}

e_bhakkar = {
	color = { 200 181 18 }
	color2 = { 255 255 255 }
	capital = 1138
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_bhakkar }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_bhakkar = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_bhakkar
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = indo_aryan_group
				religion_group = muslim
			
				primary_title = { title = k_bhakkar }
				num_of_king_titles = 3
			}
			e_bhakkar = {
				is_titular = no
			}
		}

	}
}

k_multan = {
	color = { 234 100 21 }
	color2 = { 255 255 255 }
	capital = 1338
	gain_effect = {
		primary_title = { copy_title_laws = d_multan }
		
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_multan = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_multan
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = indo_aryan_group
				religion_group = muslim
			
				primary_title = { title = d_multan }
				num_of_duke_titles = 4
			}
			k_multan = {
				is_titular = no
			}
		}

	}
}

e_multan = {
	color = { 234 21 31 }
	color2 = { 255 255 255 }
	capital = 1338
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_multan }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_multan = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_multan
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = indo_aryan_group
				religion_group = muslim
			
				primary_title = { title = k_multan }
				num_of_king_titles = 3
			}
			e_multan = {
				is_titular = no
			}
		}

	}
}

k_lahore = {
	color = { 180 160 41 }
	color2 = { 255 255 255 }
	capital = 1362
	gain_effect = {
		primary_title = { copy_title_laws = d_lahore }
		
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_lahore = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_lahore
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = indo_aryan_group
				religion_group = indian_group
			
				primary_title = { title = d_lahore }
				num_of_duke_titles = 4
			}
			k_lahore = {
				is_titular = no
			}
		}

	}
}

e_lahore = {
	color = { 180 110 41 }
	color2 = { 255 255 255 }
	capital = 1362
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_lahore }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_lahore = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_lahore
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = indo_aryan_group
				religion_group = indian_group
			
				primary_title = { title = k_lahore }
				num_of_king_titles = 3
			}
			e_lahore = {
				is_titular = no
			}
		}

	}
}

k_gandhara = {
	color = { 255 83 31 }
	color2 = { 255 255 255 }
	capital = 1180
	gain_effect = {
		primary_title = { copy_title_laws = d_gandhara }
		
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_gandhara = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_gandhara
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = indo_aryan_group
				religion_group = indian_group
			
				primary_title = { title = d_gandhara }
				num_of_duke_titles = 4
			}
			k_gandhara = {
				is_titular = no
			}
		}

	}
}

e_gandhara = {
	color = { 255 137 31 }
	color2 = { 255 255 255 }
	capital = 1180
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_gandhara }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_gandhara = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_gandhara
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = indo_aryan_group
				religion_group = indian_group
			
				primary_title = { title = k_gandhara }
				num_of_king_titles = 3
			}
			e_gandhara = {
				is_titular = no
			}
		}

	}
}

k_kuru = {
	color = { 210 29 12 }
	color2 = { 255 255 255 }
	capital = 1365
	gain_effect = {
		primary_title = { copy_title_laws = d_kuru }
		
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_kuru = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_kuru
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = indo_aryan_group
				religion_group = indian_group
			
				primary_title = { title = d_kuru }
				num_of_duke_titles = 4
			}
			k_kuru = {
				is_titular = no
			}
		}

	}
}

e_kuru = {
	color = { 210 12 42 }
	color2 = { 255 255 255 }
	capital = 1365
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_kuru }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_kuru = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_kuru
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = indo_aryan_group
				religion_group = indian_group
			
				primary_title = { title = k_kuru }
				num_of_king_titles = 3
			}
			e_kuru = {
				is_titular = no
			}
		}

	}
}

k_haritanaka = {
	color = { 100 54 3 }
	color2 = { 255 255 255 }
	capital = 1364
	gain_effect = {
		primary_title = { copy_title_laws = d_haritanaka }
		
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_haritanaka = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_haritanaka
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = indo_aryan_group
				religion_group = indian_group
			
				primary_title = { title = d_haritanaka }
				num_of_duke_titles = 4
			}
			k_haritanaka = {
				is_titular = no
			}
		}

	}
}

e_haritanaka = {
	color = { 100 54 3 }
	color2 = { 255 255 255 }
	capital = 1364
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_haritanaka }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_haritanaka = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_haritanaka
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = indo_aryan_group
				religion_group = indian_group
			
				primary_title = { title = k_haritanaka }
				num_of_king_titles = 3
			}
			e_haritanaka = {
				is_titular = no
			}
		}

	}
}

k_mathura = {
	color = { 150 10 17 }
	color2 = { 255 255 255 }
	capital = 1359
	gain_effect = {
		primary_title = { copy_title_laws = d_mathura }
		
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_mathura = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_mathura
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = indo_aryan_group
				religion_group = indian_group
			
				primary_title = { title = d_mathura }
				num_of_duke_titles = 4
			}
			k_mathura = {
				is_titular = no
			}
		}

	}
}

e_mathura = {
	color = { 150 28 10 }
	color2 = { 255 255 255 }
	capital = 1359
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_mathura }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_mathura = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_mathura
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = indo_aryan_group
				religion_group = indian_group
			
				primary_title = { title = k_mathura }
				num_of_king_titles = 3
			}
			e_mathura = {
				is_titular = no
			}
		}

	}
}

k_vodamayutja = {
	color = { 195 102 0 }
	color2 = { 255 255 255 }
	capital = 1358
	gain_effect = {
		primary_title = { copy_title_laws = d_vodamayutja }
		
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_vodamayutja = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_vodamayutja
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = indo_aryan_group
				religion_group = indian_group
			
				primary_title = { title = d_vodamayutja }
				num_of_duke_titles = 4
			}
			k_vodamayutja = {
				is_titular = no
			}
		}

	}
}

e_vodamayutja = {
	color = { 195 172 0 }
	color2 = { 255 255 255 }
	capital = 1358
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_vodamayutja }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_vodamayutja = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_vodamayutja
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = indo_aryan_group
				religion_group = indian_group
			
				primary_title = { title = k_vodamayutja }
				num_of_king_titles = 3
			}
			e_vodamayutja = {
				is_titular = no
			}
		}

	}
}

k_gurjara_mandala = {
	color = { 175 71 20 }
	color2 = { 255 255 255 }
	capital = 1292
	gain_effect = {
		primary_title = { copy_title_laws = d_gurjara_mandala }
		
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_gurjara_mandala = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_gurjara_mandala
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = indo_aryan_group
				religion_group = indian_group
			
				primary_title = { title = d_gurjara_mandala }
				num_of_duke_titles = 4
			}
			k_gurjara_mandala = {
				is_titular = no
			}
		}

	}
}

e_gurjara_mandala = {
	color = { 175 80 20 }
	color2 = { 255 255 255 }
	capital = 1292
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_gurjara_mandala }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_gurjara_mandala = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_gurjara_mandala
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = indo_aryan_group
				religion_group = indian_group
			
				primary_title = { title = k_gurjara_mandala }
				num_of_king_titles = 3
			}
			e_gurjara_mandala = {
				is_titular = no
			}
		}

	}
}

k_anartta = {
	color = { 195 50 10 }
	color2 = { 255 255 255 }
	capital = 1136
	gain_effect = {
		primary_title = { copy_title_laws = d_anartta }
		
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_anartta = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_anartta
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = indo_aryan_group
				religion_group = indian_group
			
				primary_title = { title = d_anartta }
				num_of_duke_titles = 4
			}
			k_anartta = {
				is_titular = no
			}
		}

	}
}

e_anartta = {
	color = { 195 10 70 }
	color2 = { 255 255 255 }
	capital = 1136
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_anartta }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_anartta = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_anartta
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = indo_aryan_group
				religion_group = indian_group
			
				primary_title = { title = k_anartta }
				num_of_king_titles = 3
			}
			e_anartta = {
				is_titular = no
			}
		}

	}
}

k_saurashtra = {
	color = { 220 90 50 }
	color2 = { 255 255 255 }
	capital = 1134
	gain_effect = {
		primary_title = { copy_title_laws = d_saurashtra }
		
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_saurashtra = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_saurashtra
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = indo_aryan_group
				religion_group = indian_group
			
				primary_title = { title = d_saurashtra }
				num_of_duke_titles = 4
			}
			k_saurashtra = {
				is_titular = no
			}
		}

	}
}

e_saurashtra = {
	color = { 220 50 51 }
	color2 = { 255 255 255 }
	capital = 1134
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_saurashtra }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_saurashtra = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_saurashtra
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = indo_aryan_group
				religion_group = indian_group
			
				primary_title = { title = k_saurashtra }
				num_of_king_titles = 3
			}
			e_saurashtra = {
				is_titular = no
			}
		}

	}
}

k_lata = {
	color = { 200 176 90 }
	color2 = { 255 255 255 }
	capital = 1133
	gain_effect = {
		primary_title = { copy_title_laws = d_lata }
		
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_lata = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_lata
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = indo_aryan_group
				religion_group = indian_group
			
				primary_title = { title = d_lata }
				num_of_duke_titles = 4
			}
			k_lata = {
				is_titular = no
			}
		}

	}
}

e_lata = {
	color = { 200 163 90 }
	color2 = { 255 255 255 }
	capital = 1133
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_lata }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_lata = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_lata
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = indo_aryan_group
				religion_group = indian_group
			
				primary_title = { title = k_lata }
				num_of_king_titles = 3
			}
			e_lata = {
				is_titular = no
			}
		}

	}
}

k_maru = {
	color = { 194 67 10 }
	color2 = { 255 255 255 }
	capital = 1130
	gain_effect = {
		primary_title = { copy_title_laws = d_maru }
		
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_maru = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_maru
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = indo_aryan_group
				religion_group = indian_group
			
				primary_title = { title = d_maru }
				num_of_duke_titles = 4
			}
			k_maru = {
				is_titular = no
			}
		}

	}
}

e_maru = {
	color = { 194 56 10 }
	color2 = { 255 255 255 }
	capital = 1130
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_maru }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_maru = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_maru
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = indo_aryan_group
				religion_group = indian_group
			
				primary_title = { title = k_maru }
				num_of_king_titles = 3
			}
			e_maru = {
				is_titular = no
			}
		}

	}
}

k_jangladesh = {
	color = { 144 47 0 }
	color2 = { 255 255 255 }
	capital = 1354
	gain_effect = {
		primary_title = { copy_title_laws = d_jangladesh }
		
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_jangladesh = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_jangladesh
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = indo_aryan_group
				religion_group = indian_group
			
				primary_title = { title = d_jangladesh }
				num_of_duke_titles = 4
			}
			k_jangladesh = {
				is_titular = no
			}
		}

	}
}

e_jangladesh = {
	color = { 144 107 0 }
	color2 = { 255 255 255 }
	capital = 1354
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_jangladesh }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_jangladesh = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_jangladesh
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = indo_aryan_group
				religion_group = indian_group
			
				primary_title = { title = k_jangladesh }
				num_of_king_titles = 3
			}
			e_jangladesh = {
				is_titular = no
			}
		}

	}
}

k_stravani = {
	color = { 150 53 30 }
	color2 = { 255 255 255 }
	capital = 1304
	gain_effect = {
		primary_title = { copy_title_laws = d_stravani }
		
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_stravani = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_stravani
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = indo_aryan_group
				religion_group = indian_group
			
				primary_title = { title = d_stravani }
				num_of_duke_titles = 4
			}
			k_stravani = {
				is_titular = no
			}
		}

	}
}

e_stravani = {
	color = { 150 53 30 }
	color2 = { 255 255 255 }
	capital = 1304
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_stravani }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_stravani = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_stravani
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = indo_aryan_group
				religion_group = indian_group
			
				primary_title = { title = k_stravani }
				num_of_king_titles = 3
			}
			e_stravani = {
				is_titular = no
			}
		}

	}
}

k_medapata = {
	color = { 136 54 32 }
	color2 = { 255 255 255 }
	capital = 1345
	gain_effect = {
		primary_title = { copy_title_laws = d_medapata }
		
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_medapata = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_medapata
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = indo_aryan_group
				religion_group = indian_group
			
				primary_title = { title = d_medapata }
				num_of_duke_titles = 4
			}
			k_medapata = {
				is_titular = no
			}
		}

	}
}

e_medapata = {
	color = { 136 32 60 }
	color2 = { 255 255 255 }
	capital = 1345
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_medapata }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_medapata = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_medapata
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = indo_aryan_group
				religion_group = indian_group
			
				primary_title = { title = k_medapata }
				num_of_king_titles = 3
			}
			e_medapata = {
				is_titular = no
			}
		}

	}
}

k_ajmer = {
	color = { 230 126 51 }
	color2 = { 255 255 255 }
	capital = 1346
	gain_effect = {
		primary_title = { copy_title_laws = d_ajmer }
		
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_ajmer = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_ajmer
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = indo_aryan_group
				religion_group = indian_group
			
				primary_title = { title = d_ajmer }
				num_of_duke_titles = 4
			}
			k_ajmer = {
				is_titular = no
			}
		}

	}
}

e_ajmer = {
	color = { 230 190 51 }
	color2 = { 255 255 255 }
	capital = 1346
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_ajmer }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_ajmer = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_ajmer
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = indo_aryan_group
				religion_group = indian_group
			
				primary_title = { title = k_ajmer }
				num_of_king_titles = 3
			}
			e_ajmer = {
				is_titular = no
			}
		}

	}
}

k_dadhipadra = {
	color = { 245 241 20 }
	color2 = { 255 255 255 }
	capital = 1288
	gain_effect = {
		primary_title = { copy_title_laws = d_dadhipadra }
		
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_dadhipadra = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_dadhipadra
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = indo_aryan_group
				religion_group = indian_group
			
				primary_title = { title = d_dadhipadra }
				num_of_duke_titles = 4
			}
			k_dadhipadra = {
				is_titular = no
			}
		}

	}
}

e_dadhipadra = {
	color = { 236 245 20 }
	color2 = { 255 255 255 }
	capital = 1288
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_dadhipadra }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_dadhipadra = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_dadhipadra
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = indo_aryan_group
				religion_group = indian_group
			
				primary_title = { title = k_dadhipadra }
				num_of_king_titles = 3
			}
			e_dadhipadra = {
				is_titular = no
			}
		}

	}
}

k_akara_dasarna = {
	color = { 210 115 15 }
	color2 = { 255 255 255 }
	capital = 1170
	gain_effect = {
		primary_title = { copy_title_laws = d_akara_dasarna }
		
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_akara_dasarna = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_akara_dasarna
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = indo_aryan_group
				religion_group = indian_group
			
				primary_title = { title = d_akara_dasarna }
				num_of_duke_titles = 4
			}
			k_akara_dasarna = {
				is_titular = no
			}
		}

	}
}

e_akara_dasarna = {
	color = { 210 150 15 }
	color2 = { 255 255 255 }
	capital = 1170
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_akara_dasarna }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_akara_dasarna = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_akara_dasarna
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = indo_aryan_group
				religion_group = indian_group
			
				primary_title = { title = k_akara_dasarna }
				num_of_king_titles = 3
			}
			e_akara_dasarna = {
				is_titular = no
			}
		}

	}
}

k_anupa = {
	color = { 150 67 5 }
	color2 = { 255 255 255 }
	capital = 1147
	gain_effect = {
		primary_title = { copy_title_laws = d_anupa }
		
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_anupa = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_anupa
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = indo_aryan_group
				religion_group = indian_group
			
				primary_title = { title = d_anupa }
				num_of_duke_titles = 4
			}
			k_anupa = {
				is_titular = no
			}
		}

	}
}

e_anupa = {
	color = { 150 23 5 }
	color2 = { 255 255 255 }
	capital = 1147
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_anupa }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_anupa = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_anupa
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = indo_aryan_group
				religion_group = indian_group
			
				primary_title = { title = k_anupa }
				num_of_king_titles = 3
			}
			e_anupa = {
				is_titular = no
			}
		}

	}
}

k_kanyakubja = {
	color = { 225 137 77 }
	color2 = { 255 255 255 }
	capital = 1356
	gain_effect = {
		primary_title = { copy_title_laws = d_kanyakubja }
		
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_kanyakubja = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_kanyakubja
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = indo_aryan_group
				religion_group = indian_group
			
				primary_title = { title = d_kanyakubja }
				num_of_duke_titles = 4
			}
			k_kanyakubja = {
				is_titular = no
			}
		}

	}
}

e_kanyakubja = {
	color = { 225 146 77 }
	color2 = { 255 255 255 }
	capital = 1356
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_kanyakubja }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_kanyakubja = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_kanyakubja
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = indo_aryan_group
				religion_group = indian_group
			
				primary_title = { title = k_kanyakubja }
				num_of_king_titles = 3
			}
			e_kanyakubja = {
				is_titular = no
			}
		}

	}
}

k_saryupara = {
	color = { 180 85 40 }
	color2 = { 255 255 255 }
	capital = 1250
	gain_effect = {
		primary_title = { copy_title_laws = d_saryupara }
		
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_saryupara = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_saryupara
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = indo_aryan_group
				religion_group = indian_group
			
				primary_title = { title = d_saryupara }
				num_of_duke_titles = 4
			}
			k_saryupara = {
				is_titular = no
			}
		}

	}
}

e_saryupara = {
	color = { 180 43 40 }
	color2 = { 255 255 255 }
	capital = 1250
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_saryupara }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_saryupara = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_saryupara
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = indo_aryan_group
				religion_group = indian_group
			
				primary_title = { title = k_saryupara }
				num_of_king_titles = 3
			}
			e_saryupara = {
				is_titular = no
			}
		}

	}
}

k_jejakabhukti = {
	color = { 120 90 10 }
	color2 = { 255 255 255 }
	capital = 1301
	gain_effect = {
		primary_title = { copy_title_laws = d_jejakabhukti }
		
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_jejakabhukti = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_jejakabhukti
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = indo_aryan_group
				religion_group = indian_group
			
				primary_title = { title = d_jejakabhukti }
				num_of_duke_titles = 4
			}
			k_jejakabhukti = {
				is_titular = no
			}
		}

	}
}

e_jejakabhukti = {
	color = { 120 57 10 }
	color2 = { 255 255 255 }
	capital = 1301
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_jejakabhukti }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_jejakabhukti = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_jejakabhukti
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = indo_aryan_group
				religion_group = indian_group
			
				primary_title = { title = k_jejakabhukti }
				num_of_king_titles = 3
			}
			e_jejakabhukti = {
				is_titular = no
			}
		}

	}
}

k_dahala = {
	color = { 30 125 84 }
	color2 = { 255 255 255 }
	capital = 1271
	gain_effect = {
		primary_title = { copy_title_laws = d_dahala }
		
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_dahala = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_dahala
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = indo_aryan_group
				religion_group = indian_group
			
				primary_title = { title = d_dahala }
				num_of_duke_titles = 4
			}
			k_dahala = {
				is_titular = no
			}
		}

	}
}

e_dahala = {
	color = { 30 125 95 }
	color2 = { 255 255 255 }
	capital = 1271
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_dahala }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_dahala = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_dahala
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = indo_aryan_group
				religion_group = indian_group
			
				primary_title = { title = k_dahala }
				num_of_king_titles = 3
			}
			e_dahala = {
				is_titular = no
			}
		}

	}
}

k_ratanpur = {
	color = { 36 175 90 }
	color2 = { 255 255 255 }
	capital = 1272
	gain_effect = {
		primary_title = { copy_title_laws = d_ratanpur }
		
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_ratanpur = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_ratanpur
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = indo_aryan_group
				religion_group = indian_group
			
				primary_title = { title = d_ratanpur }
				num_of_duke_titles = 4
			}
			k_ratanpur = {
				is_titular = no
			}
		}

	}
}

e_ratanpur = {
	color = { 36 175 73 }
	color2 = { 255 255 255 }
	capital = 1272
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_ratanpur }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_ratanpur = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_ratanpur
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = indo_aryan_group
				religion_group = indian_group
			
				primary_title = { title = k_ratanpur }
				num_of_king_titles = 3
			}
			e_ratanpur = {
				is_titular = no
			}
		}

	}
}

k_vanga = {
	color = { 35 165 82 }
	color2 = { 255 255 255 }
	capital = 1319
	gain_effect = {
		primary_title = { copy_title_laws = d_vanga }
		
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_vanga = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_vanga
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = indo_aryan_group
				religion_group = indian_group
			
				primary_title = { title = d_vanga }
				num_of_duke_titles = 4
			}
			k_vanga = {
				is_titular = no
			}
		}

	}
}

e_vanga = {
	color = { 35 165 121 }
	color2 = { 255 255 255 }
	capital = 1319
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_vanga }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_vanga = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_vanga
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = indo_aryan_group
				religion_group = indian_group
			
				primary_title = { title = k_vanga }
				num_of_king_titles = 3
			}
			e_vanga = {
				is_titular = no
			}
		}

	}
}

k_varendra = {
	color = { 20 125 58 }
	color2 = { 255 255 255 }
	capital = 1381
	gain_effect = {
		primary_title = { copy_title_laws = d_varendra }
		
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_varendra = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_varendra
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = indo_aryan_group
				religion_group = indian_group
			
				primary_title = { title = d_varendra }
				num_of_duke_titles = 4
			}
			k_varendra = {
				is_titular = no
			}
		}

	}
}

e_varendra = {
	color = { 20 125 77 }
	color2 = { 255 255 255 }
	capital = 1381
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_varendra }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_varendra = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_varendra
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = indo_aryan_group
				religion_group = indian_group
			
				primary_title = { title = k_varendra }
				num_of_king_titles = 3
			}
			e_varendra = {
				is_titular = no
			}
		}

	}
}

k_gauda = {
	color = { 110 200 60 }
	color2 = { 255 255 255 }
	capital = 1151
	gain_effect = {
		primary_title = { copy_title_laws = d_gauda }
		
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_gauda = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_gauda
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = indo_aryan_group
				religion_group = indian_group
			
				primary_title = { title = d_gauda }
				num_of_duke_titles = 4
			}
			k_gauda = {
				is_titular = no
			}
		}

	}
}

e_gauda = {
	color = { 169 200 60 }
	color2 = { 255 255 255 }
	capital = 1151
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_gauda }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_gauda = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_gauda
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = indo_aryan_group
				religion_group = indian_group
			
				primary_title = { title = k_gauda }
				num_of_king_titles = 3
			}
			e_gauda = {
				is_titular = no
			}
		}

	}
}

k_nadia = {
	color = { 100 255 156 }
	color2 = { 255 255 255 }
	capital = 1323
	gain_effect = {
		primary_title = { copy_title_laws = d_nadia }
		
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_nadia = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_nadia
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = indo_aryan_group
				religion_group = indian_group
			
				primary_title = { title = d_nadia }
				num_of_duke_titles = 4
			}
			k_nadia = {
				is_titular = no
			}
		}

	}
}

e_nadia = {
	color = { 100 255 212 }
	color2 = { 255 255 255 }
	capital = 1323
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_nadia }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_nadia = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_nadia
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = indo_aryan_group
				religion_group = indian_group
			
				primary_title = { title = k_nadia }
				num_of_king_titles = 3
			}
			e_nadia = {
				is_titular = no
			}
		}

	}
}

k_suhma = {
	color = { 26 100 10 }
	color2 = { 255 255 255 }
	capital = 1238
	gain_effect = {
		primary_title = { copy_title_laws = d_suhma }
		
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_suhma = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_suhma
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = indo_aryan_group
				religion_group = indian_group
			
				primary_title = { title = d_suhma }
				num_of_duke_titles = 4
			}
			k_suhma = {
				is_titular = no
			}
		}

	}
}

e_suhma = {
	color = { 69 100 10 }
	color2 = { 255 255 255 }
	capital = 1238
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_suhma }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_suhma = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_suhma
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = indo_aryan_group
				religion_group = indian_group
			
				primary_title = { title = k_suhma }
				num_of_king_titles = 3
			}
			e_suhma = {
				is_titular = no
			}
		}

	}
}

k_kamarupanagara = {
	color = { 25 140 15 }
	color2 = { 255 255 255 }
	capital = 1321
	gain_effect = {
		primary_title = { copy_title_laws = d_kamarupanagara }
		
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_kamarupanagara = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_kamarupanagara
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = indo_aryan_group
				religion_group = indian_group
			
				primary_title = { title = d_kamarupanagara }
				num_of_duke_titles = 4
			}
			k_kamarupanagara = {
				is_titular = no
			}
		}

	}
}

e_kamarupanagara = {
	color = { 15 140 27 }
	color2 = { 255 255 255 }
	capital = 1321
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_kamarupanagara }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_kamarupanagara = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_kamarupanagara
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = indo_aryan_group
				religion_group = indian_group
			
				primary_title = { title = k_kamarupanagara }
				num_of_king_titles = 3
			}
			e_kamarupanagara = {
				is_titular = no
			}
		}

	}
}

k_para_lauhitya = {
	color = { 15 220 154 }
	color2 = { 255 255 255 }
	capital = 1246
	gain_effect = {
		primary_title = { copy_title_laws = d_para_lauhitya }
		
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_para_lauhitya = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_para_lauhitya
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = indo_aryan_group
				religion_group = indian_group
			
				primary_title = { title = d_para_lauhitya }
				num_of_duke_titles = 4
			}
			k_para_lauhitya = {
				is_titular = no
			}
		}

	}
}

e_para_lauhitya = {
	color = { 15 220 154 }
	color2 = { 255 255 255 }
	capital = 1246
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_para_lauhitya }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_para_lauhitya = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_para_lauhitya
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = indo_aryan_group
				religion_group = indian_group
			
				primary_title = { title = k_para_lauhitya }
				num_of_king_titles = 3
			}
			e_para_lauhitya = {
				is_titular = no
			}
		}

	}
}

k_sutiya = {
	color = { 40 200 150 }
	color2 = { 255 255 255 }
	capital = 1418
	gain_effect = {
		primary_title = { copy_title_laws = d_sutiya }
		
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_sutiya = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_sutiya
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = indo_aryan_group
				religion_group = indian_group
			
				primary_title = { title = d_sutiya }
				num_of_duke_titles = 4
			}
			k_sutiya = {
				is_titular = no
			}
		}

	}
}

e_sutiya = {
	color = { 40 200 140 }
	color2 = { 255 255 255 }
	capital = 1418
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_sutiya }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_sutiya = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_sutiya
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = indo_aryan_group
				religion_group = indian_group
			
				primary_title = { title = k_sutiya }
				num_of_king_titles = 3
			}
			e_sutiya = {
				is_titular = no
			}
		}

	}
}

k_daksina_kosala = {
	color = { 85 150 41 }
	color2 = { 255 255 255 }
	capital = 1160
	gain_effect = {
		primary_title = { copy_title_laws = d_daksina_kosala }
		
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_daksina_kosala = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_daksina_kosala
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = indo_aryan_group
				religion_group = indian_group
			
				primary_title = { title = d_daksina_kosala }
				num_of_duke_titles = 4
			}
			k_daksina_kosala = {
				is_titular = no
			}
		}

	}
}

e_daksina_kosala = {
	color = { 41 150 49 }
	color2 = { 255 255 255 }
	capital = 1160
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_daksina_kosala }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_daksina_kosala = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_daksina_kosala
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = indo_aryan_group
				religion_group = indian_group
			
				primary_title = { title = k_daksina_kosala }
				num_of_king_titles = 3
			}
			e_daksina_kosala = {
				is_titular = no
			}
		}

	}
}

k_tosali = {
	color = { 77 190 30 }
	color2 = { 255 255 255 }
	capital = 1129
	gain_effect = {
		primary_title = { copy_title_laws = d_tosali }
		
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_tosali = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_tosali
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = indo_aryan_group
				religion_group = indian_group
			
				primary_title = { title = d_tosali }
				num_of_duke_titles = 4
			}
			k_tosali = {
				is_titular = no
			}
		}

	}
}

e_tosali = {
	color = { 30 190 60 }
	color2 = { 255 255 255 }
	capital = 1129
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_tosali }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_tosali = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_tosali
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = indo_aryan_group
				religion_group = indian_group
			
				primary_title = { title = k_tosali }
				num_of_king_titles = 3
			}
			e_tosali = {
				is_titular = no
			}
		}

	}
}

k_kalinga = {
	color = { 70 220 115 }
	color2 = { 255 255 255 }
	capital = 1224
	gain_effect = {
		primary_title = { copy_title_laws = d_kalinga }
		
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_kalinga = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_kalinga
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = indo_aryan_group
				religion_group = indian_group
			
				primary_title = { title = d_kalinga }
				num_of_duke_titles = 4
			}
			k_kalinga = {
				is_titular = no
			}
		}

	}
}

e_kalinga = {
	color = { 70 220 106 }
	color2 = { 255 255 255 }
	capital = 1224
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_kalinga }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_kalinga = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_kalinga
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = indo_aryan_group
				religion_group = indian_group
			
				primary_title = { title = k_kalinga }
				num_of_king_titles = 3
			}
			e_kalinga = {
				is_titular = no
			}
		}

	}
}

k_dandakaranya = {
	color = { 38 150 77 }
	color2 = { 255 255 255 }
	capital = 1227
	gain_effect = {
		primary_title = { copy_title_laws = d_dandakaranya }
		
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_dandakaranya = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_dandakaranya
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = indo_aryan_group
				religion_group = indian_group
			
				primary_title = { title = d_dandakaranya }
				num_of_duke_titles = 4
			}
			k_dandakaranya = {
				is_titular = no
			}
		}

	}
}

e_dandakaranya = {
	color = { 38 150 97 }
	color2 = { 255 255 255 }
	capital = 1227
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_dandakaranya }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_dandakaranya = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_dandakaranya
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = indo_aryan_group
				religion_group = indian_group
			
				primary_title = { title = k_dandakaranya }
				num_of_king_titles = 3
			}
			e_dandakaranya = {
				is_titular = no
			}
		}

	}
}

k_tirabhukti = {
	color = { 42 178 41 }
	color2 = { 255 255 255 }
	capital = 1419
	gain_effect = {
		primary_title = { copy_title_laws = d_tirabhukti }
		
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_tirabhukti = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_tirabhukti
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = indo_aryan_group
				religion_group = indian_group
			
				primary_title = { title = d_tirabhukti }
				num_of_duke_titles = 4
			}
			k_tirabhukti = {
				is_titular = no
			}
		}

	}
}

e_tirabhukti = {
	color = { 50 178 41 }
	color2 = { 255 255 255 }
	capital = 1419
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_tirabhukti }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_tirabhukti = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_tirabhukti
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = indo_aryan_group
				religion_group = indian_group
			
				primary_title = { title = k_tirabhukti }
				num_of_king_titles = 3
			}
			e_tirabhukti = {
				is_titular = no
			}
		}

	}
}

k_kasi = {
	color = { 202 235 91 }
	color2 = { 255 255 255 }
	capital = 1166
	gain_effect = {
		primary_title = { copy_title_laws = d_kasi }
		
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_kasi = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_kasi
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = indo_aryan_group
				religion_group = indian_group
			
				primary_title = { title = d_kasi }
				num_of_duke_titles = 4
			}
			k_kasi = {
				is_titular = no
			}
		}

	}
}

e_kasi = {
	color = { 150 235 91 }
	color2 = { 255 255 255 }
	capital = 1166
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_kasi }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_kasi = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_kasi
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = indo_aryan_group
				religion_group = indian_group
			
				primary_title = { title = k_kasi }
				num_of_king_titles = 3
			}
			e_kasi = {
				is_titular = no
			}
		}

	}
}

k_jharkand = {
	color = { 35 138 31 }
	color2 = { 255 255 255 }
	capital = 1248
	gain_effect = {
		primary_title = { copy_title_laws = d_jharkand }
		
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_jharkand = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_jharkand
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = indo_aryan_group
				religion_group = indian_group
			
				primary_title = { title = d_jharkand }
				num_of_duke_titles = 4
			}
			k_jharkand = {
				is_titular = no
			}
		}

	}
}

e_jharkand = {
	color = { 31 138 91 }
	color2 = { 255 255 255 }
	capital = 1248
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_jharkand }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_jharkand = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_jharkand
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = indo_aryan_group
				religion_group = indian_group
			
				primary_title = { title = k_jharkand }
				num_of_king_titles = 3
			}
			e_jharkand = {
				is_titular = no
			}
		}

	}
}

k_magadha = {
	color = { 18 122 15 }
	color2 = { 255 255 255 }
	capital = 1154
	gain_effect = {
		primary_title = { copy_title_laws = d_magadha }
		
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_magadha = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_magadha
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = indo_aryan_group
				religion_group = indian_group
			
				primary_title = { title = d_magadha }
				num_of_duke_titles = 4
			}
			k_magadha = {
				is_titular = no
			}
		}

	}
}

e_magadha = {
	color = { 56 122 15 }
	color2 = { 255 255 255 }
	capital = 1154
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_magadha }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_magadha = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_magadha
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = indo_aryan_group
				religion_group = indian_group
			
				primary_title = { title = k_magadha }
				num_of_king_titles = 3
			}
			e_magadha = {
				is_titular = no
			}
		}

	}
}

k_vidharba = {
	color = { 155 5 30 }
	color2 = { 255 255 255 }
	capital = 1285
	gain_effect = {
		primary_title = { copy_title_laws = d_vidharba }
		
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_vidharba = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_vidharba
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = indo_aryan_group
				religion_group = indian_group
			
				primary_title = { title = d_vidharba }
				num_of_duke_titles = 4
			}
			k_vidharba = {
				is_titular = no
			}
		}

	}
}

e_vidharba = {
	color = { 155 5 30 }
	color2 = { 255 255 255 }
	capital = 1285
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_vidharba }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_vidharba = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_vidharba
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = indo_aryan_group
				religion_group = indian_group
			
				primary_title = { title = k_vidharba }
				num_of_king_titles = 3
			}
			e_vidharba = {
				is_titular = no
			}
		}

	}
}

k_konkana = {
	color = { 115 20 40 }
	color2 = { 255 255 255 }
	capital = 1125
	gain_effect = {
		primary_title = { copy_title_laws = d_konkana }
		
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_konkana = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_konkana
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = indo_aryan_group
				religion_group = indian_group
			
				primary_title = { title = d_konkana }
				num_of_duke_titles = 4
			}
			k_konkana = {
				is_titular = no
			}
		}

	}
}

e_konkana = {
	color = { 115 20 86 }
	color2 = { 255 255 255 }
	capital = 1125
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_konkana }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_konkana = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_konkana
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = indo_aryan_group
				religion_group = indian_group
			
				primary_title = { title = k_konkana }
				num_of_king_titles = 3
			}
			e_konkana = {
				is_titular = no
			}
		}

	}
}

k_nasikya = {
	color = { 120 50 69 }
	color2 = { 255 255 255 }
	capital = 1213
	gain_effect = {
		primary_title = { copy_title_laws = d_nasikya }
		
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_nasikya = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_nasikya
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = indo_aryan_group
				religion_group = indian_group
			
				primary_title = { title = d_nasikya }
				num_of_duke_titles = 4
			}
			k_nasikya = {
				is_titular = no
			}
		}

	}
}

e_nasikya = {
	color = { 120 50 77 }
	color2 = { 255 255 255 }
	capital = 1213
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_nasikya }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_nasikya = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_nasikya
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = indo_aryan_group
				religion_group = indian_group
			
				primary_title = { title = k_nasikya }
				num_of_king_titles = 3
			}
			e_nasikya = {
				is_titular = no
			}
		}

	}
}

k_devagiri = {
	color = { 220 99 85 }
	color2 = { 255 255 255 }
	capital = 1145
	gain_effect = {
		primary_title = { copy_title_laws = d_devagiri }
		
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_devagiri = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_devagiri
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = indo_aryan_group
				religion_group = indian_group
			
				primary_title = { title = d_devagiri }
				num_of_duke_titles = 4
			}
			k_devagiri = {
				is_titular = no
			}
		}

	}
}

e_devagiri = {
	color = { 220 156 85 }
	color2 = { 255 255 255 }
	capital = 1145
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_devagiri }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_devagiri = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_devagiri
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = indo_aryan_group
				religion_group = indian_group
			
				primary_title = { title = k_devagiri }
				num_of_king_titles = 3
			}
			e_devagiri = {
				is_titular = no
			}
		}

	}
}

k_rattapadi = {
	color = { 255 70 138 }
	color2 = { 255 255 255 }
	capital = 1206
	gain_effect = {
		primary_title = { copy_title_laws = d_rattapadi }
		
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_rattapadi = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_rattapadi
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = dravidian_group
				religion_group = indian_group
			
				primary_title = { title = d_rattapadi }
				num_of_duke_titles = 4
			}
			k_rattapadi = {
				is_titular = no
			}
		}

	}
}

e_rattapadi = {
	color = { 255 80 70 }
	color2 = { 255 255 255 }
	capital = 1206
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_rattapadi }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_rattapadi = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_rattapadi
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = dravidian_group
				religion_group = indian_group
			
				primary_title = { title = k_rattapadi }
				num_of_king_titles = 3
			}
			e_rattapadi = {
				is_titular = no
			}
		}

	}
}

k_kalyani = {
	color = { 110 6 2 }
	color2 = { 255 255 255 }
	capital = 1143
	gain_effect = {
		primary_title = { copy_title_laws = d_kalyani }
		
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_kalyani = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_kalyani
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = dravidian_group
				religion_group = indian_group
			
				primary_title = { title = d_kalyani }
				num_of_duke_titles = 4
			}
			k_kalyani = {
				is_titular = no
			}
		}

	}
}

e_kalyani = {
	color = { 110 2 57 }
	color2 = { 255 255 255 }
	capital = 1143
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_kalyani }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_kalyani = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_kalyani
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = dravidian_group
				religion_group = indian_group
			
				primary_title = { title = k_kalyani }
				num_of_king_titles = 3
			}
			e_kalyani = {
				is_titular = no
			}
		}

	}
}

k_gangavadi = {
	color = { 108 23 55 }
	color2 = { 255 255 255 }
	capital = 1196
	gain_effect = {
		primary_title = { copy_title_laws = d_gangavadi }
		
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_gangavadi = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_gangavadi
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = dravidian_group
				religion_group = indian_group
			
				primary_title = { title = d_gangavadi }
				num_of_duke_titles = 4
			}
			k_gangavadi = {
				is_titular = no
			}
		}

	}
}

e_gangavadi = {
	color = { 108 23 29 }
	color2 = { 255 255 255 }
	capital = 1196
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_gangavadi }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_gangavadi = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_gangavadi
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = dravidian_group
				religion_group = indian_group
			
				primary_title = { title = k_gangavadi }
				num_of_king_titles = 3
			}
			e_gangavadi = {
				is_titular = no
			}
		}

	}
}

k_nulambavadi = {
	color = { 178 102 29 }
	color2 = { 255 255 255 }
	capital = 1197
	gain_effect = {
		primary_title = { copy_title_laws = d_nulambavadi }
		
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_nulambavadi = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_nulambavadi
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = dravidian_group
				religion_group = indian_group
			
				primary_title = { title = d_nulambavadi }
				num_of_duke_titles = 4
			}
			k_nulambavadi = {
				is_titular = no
			}
		}

	}
}

e_nulambavadi = {
	color = { 147 178 29 }
	color2 = { 255 255 255 }
	capital = 1197
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_nulambavadi }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_nulambavadi = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_nulambavadi
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = dravidian_group
				religion_group = indian_group
			
				primary_title = { title = k_nulambavadi }
				num_of_king_titles = 3
			}
			e_nulambavadi = {
				is_titular = no
			}
		}

	}
}

k_raichur_doab = {
	color = { 188 161 35 }
	color2 = { 255 255 255 }
	capital = 1203
	gain_effect = {
		primary_title = { copy_title_laws = d_raichur_doab }
		
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_raichur_doab = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_raichur_doab
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = dravidian_group
				religion_group = indian_group
			
				primary_title = { title = d_raichur_doab }
				num_of_duke_titles = 4
			}
			k_raichur_doab = {
				is_titular = no
			}
		}

	}
}

e_raichur_doab = {
	color = { 151 188 35 }
	color2 = { 255 255 255 }
	capital = 1203
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_raichur_doab }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_raichur_doab = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_raichur_doab
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = dravidian_group
				religion_group = indian_group
			
				primary_title = { title = k_raichur_doab }
				num_of_king_titles = 3
			}
			e_raichur_doab = {
				is_titular = no
			}
		}

	}
}

k_chola_nadu = {
	color = { 140 65 83 }
	color2 = { 255 255 255 }
	capital = 1115
	gain_effect = {
		primary_title = { copy_title_laws = d_chola_nadu }
		
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_chola_nadu = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_chola_nadu
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = dravidian_group
				religion_group = indian_group
			
				primary_title = { title = d_chola_nadu }
				num_of_duke_titles = 4
			}
			k_chola_nadu = {
				is_titular = no
			}
		}

	}
}

e_chola_nadu = {
	color = { 140 65 124 }
	color2 = { 255 255 255 }
	capital = 1115
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_chola_nadu }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_chola_nadu = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_chola_nadu
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = dravidian_group
				religion_group = indian_group
			
				primary_title = { title = k_chola_nadu }
				num_of_king_titles = 3
			}
			e_chola_nadu = {
				is_titular = no
			}
		}

	}
}

k_pandya_nadu = {
	color = { 180 80 100 }
	color2 = { 255 255 255 }
	capital = 1112
	gain_effect = {
		primary_title = { copy_title_laws = d_pandya_nadu }
		
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_pandya_nadu = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_pandya_nadu
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = dravidian_group
				religion_group = indian_group
			
				primary_title = { title = d_pandya_nadu }
				num_of_duke_titles = 4
			}
			k_pandya_nadu = {
				is_titular = no
			}
		}

	}
}

e_pandya_nadu = {
	color = { 180 80 82 }
	color2 = { 255 255 255 }
	capital = 1112
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_pandya_nadu }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_pandya_nadu = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_pandya_nadu
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = dravidian_group
				religion_group = indian_group
			
				primary_title = { title = k_pandya_nadu }
				num_of_king_titles = 3
			}
			e_pandya_nadu = {
				is_titular = no
			}
		}

	}
}

k_chera_nadu = {
	color = { 140 75 75 }
	color2 = { 255 255 255 }
	capital = 1114
	gain_effect = {
		primary_title = { copy_title_laws = d_chera_nadu }
		
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_chera_nadu = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_chera_nadu
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = dravidian_group
				religion_group = indian_group
			
				primary_title = { title = d_chera_nadu }
				num_of_duke_titles = 4
			}
			k_chera_nadu = {
				is_titular = no
			}
		}

	}
}

e_chera_nadu = {
	color = { 140 75 118 }
	color2 = { 255 255 255 }
	capital = 1114
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_chera_nadu }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_chera_nadu = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_chera_nadu
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = dravidian_group
				religion_group = indian_group
			
				primary_title = { title = k_chera_nadu }
				num_of_king_titles = 3
			}
			e_chera_nadu = {
				is_titular = no
			}
		}

	}
}

k_tondai_nadu = {
	color = { 200 134 120 }
	color2 = { 255 255 255 }
	capital = 1119
	gain_effect = {
		primary_title = { copy_title_laws = d_tondai_nadu }
		
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_tondai_nadu = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_tondai_nadu
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = dravidian_group
				religion_group = indian_group
			
				primary_title = { title = d_tondai_nadu }
				num_of_duke_titles = 4
			}
			k_tondai_nadu = {
				is_titular = no
			}
		}

	}
}

e_tondai_nadu = {
	color = { 200 158 120 }
	color2 = { 255 255 255 }
	capital = 1119
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_tondai_nadu }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_tondai_nadu = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_tondai_nadu
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = dravidian_group
				religion_group = indian_group
			
				primary_title = { title = k_tondai_nadu }
				num_of_king_titles = 3
			}
			e_tondai_nadu = {
				is_titular = no
			}
		}

	}
}

k_vengi = {
	color = { 190 40 42 }
	color2 = { 255 255 255 }
	capital = 1121
	gain_effect = {
		primary_title = { copy_title_laws = d_vengi }
		
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_vengi = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_vengi
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = dravidian_group
				religion_group = indian_group
			
				primary_title = { title = d_vengi }
				num_of_duke_titles = 4
			}
			k_vengi = {
				is_titular = no
			}
		}

	}
}

e_vengi = {
	color = { 190 110 40 }
	color2 = { 255 255 255 }
	capital = 1121
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_vengi }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_vengi = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_vengi
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = dravidian_group
				religion_group = indian_group
			
				primary_title = { title = k_vengi }
				num_of_king_titles = 3
			}
			e_vengi = {
				is_titular = no
			}
		}

	}
}

k_udayagiri = {
	color = { 197 20 90 }
	color2 = { 255 255 255 }
	capital = 1122
	gain_effect = {
		primary_title = { copy_title_laws = d_udayagiri }
		
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_udayagiri = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_udayagiri
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = dravidian_group
				religion_group = indian_group
			
				primary_title = { title = d_udayagiri }
				num_of_duke_titles = 4
			}
			k_udayagiri = {
				is_titular = no
			}
		}

	}
}

e_udayagiri = {
	color = { 177 20 197 }
	color2 = { 255 255 255 }
	capital = 1122
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_udayagiri }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_udayagiri = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_udayagiri
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = dravidian_group
				religion_group = indian_group
			
				primary_title = { title = k_udayagiri }
				num_of_king_titles = 3
			}
			e_udayagiri = {
				is_titular = no
			}
		}

	}
}

k_warangal = {
	color = { 185 39 71 }
	color2 = { 255 255 255 }
	capital = 1256
	gain_effect = {
		primary_title = { copy_title_laws = d_warangal }
		
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_warangal = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_warangal
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = dravidian_group
				religion_group = indian_group
			
				primary_title = { title = d_warangal }
				num_of_duke_titles = 4
			}
			k_warangal = {
				is_titular = no
			}
		}

	}
}

e_warangal = {
	color = { 185 39 115 }
	color2 = { 255 255 255 }
	capital = 1256
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_warangal }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_warangal = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_warangal
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = dravidian_group
				religion_group = indian_group
			
				primary_title = { title = k_warangal }
				num_of_king_titles = 3
			}
			e_warangal = {
				is_titular = no
			}
		}

	}
}

k_racakonda = {
	color = { 130 3 0 }
	color2 = { 255 255 255 }
	capital = 1209
	gain_effect = {
		primary_title = { copy_title_laws = d_racakonda }
		
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_racakonda = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_racakonda
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = dravidian_group
				religion_group = indian_group
			
				primary_title = { title = d_racakonda }
				num_of_duke_titles = 4
			}
			k_racakonda = {
				is_titular = no
			}
		}

	}
}

e_racakonda = {
	color = { 130 11 0 }
	color2 = { 255 255 255 }
	capital = 1209
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_racakonda }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_racakonda = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_racakonda
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = dravidian_group
				religion_group = indian_group
			
				primary_title = { title = k_racakonda }
				num_of_king_titles = 3
			}
			e_racakonda = {
				is_titular = no
			}
		}

	}
}

k_sinhala = {
	color = { 181 147 55 }
	color2 = { 255 255 255 }
	capital = 1195
	gain_effect = {
		primary_title = { copy_title_laws = d_sinhala }
		
		any_demesne_title = {
			limit = {
				tier = DUKE
				OR = {
					k_sinhala = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = k_sinhala
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = indo_aryan_group
				religion_group = indian_group
			
				primary_title = { title = d_sinhala }
				num_of_duke_titles = 4
			}
			k_sinhala = {
				is_titular = no
			}
		}

	}
}

e_sinhala = {
	color = { 181 64 55 }
	color2 = { 255 255 255 }
	capital = 1195
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_sinhala }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_sinhala = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_sinhala
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = indo_aryan_group
				religion_group = indian_group
			
				primary_title = { title = k_sinhala }
				num_of_king_titles = 3
			}
			e_sinhala = {
				is_titular = no
			}
		}

	}
}

e_frisia = {
	color = { 245 127 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 = west_germanic
				religion_group = christian
			
				primary_title = { title = k_frisia }
				num_of_king_titles = 3
			}
			e_frisia = {
				is_titular = no
			}
		}

	}
}

e_lotharingia = {
	color = { 117 110 150 }
	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 = latin
				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 = central_germanic
				religion_group = christian
			
				primary_title = { title = k_bavaria }
				num_of_king_titles = 3
			}
			e_bavaria = {
				is_titular = no
			}
		}

	}
}

e_germany = {
	color = { 160 160 160 }
	color2 = { 220 220 20 }
	capital = 121
	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 = central_germanic
				religion_group = christian
			
				primary_title = { title = k_germany }
				num_of_king_titles = 3
			}
			e_germany = {
				is_titular = no
			}
		}

	}
}

e_anatolia = {
	color = { 177 60 128 }
	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 = byzantine
				religion_group = christian
			
				primary_title = { title = k_anatolia }
				num_of_king_titles = 3
			}
			e_anatolia = {
				is_titular = no
			}
		}

	}
}

e_armenia = {
	color = { 172 82 55 }
	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 = byzantine
				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 = south_slavic
				religion_group = christian
			
				primary_title = { title = k_bulgaria }
				num_of_king_titles = 3
			}
			e_bulgaria = {
				is_titular = no
			}
		}

	}
}

e_serbia = {
	color = { 113 92 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 = south_slavic
				religion_group = christian
			
				primary_title = { title = k_serbia }
				num_of_king_titles = 3
			}
			e_serbia = {
				is_titular = no
			}
		}

	}
}

e_croatia = {
	color = { 122 46 76 }
	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 = south_slavic
				religion_group = christian
			
				primary_title = { title = k_croatia }
				num_of_king_titles = 3
			}
			e_croatia = {
				is_titular = no
			}
		}

	}
}

e_sicily = {
	color = { 235 188 95 }
	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 = latin
				religion_group = christian
			
				primary_title = { title = k_sicily }
				num_of_king_titles = 3
			}
			e_sicily = {
				is_titular = no
			}
		}

	}
}

e_georgia = {
	color = { 205 145 156 }
	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 = byzantine
				religion_group = christian
			
				primary_title = { title = k_georgia }
				num_of_king_titles = 3
			}
			e_georgia = {
				is_titular = no
			}
		}

	}
}

e_venice = {
	color = { 54 164 167 }
	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 153 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 = north_germanic
				religion_group = pagan_group
			
				primary_title = { title = k_sweden }
				num_of_king_titles = 3
			}
			e_sweden = {
				is_titular = no
			}
		}

	}
}

e_denmark = {
	color = { 247 146 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 = north_germanic
				religion_group = pagan_group
			
				primary_title = { title = k_denmark }
				num_of_king_titles = 3
			}
			e_denmark = {
				is_titular = no
			}
		}

	}
}

e_norway = {
	color = { 177 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 = north_germanic
				religion_group = pagan_group
			
				primary_title = { title = k_norway }
				num_of_king_titles = 3
			}
			e_norway = {
				is_titular = no
			}
		}

	}
}

e_finland = {
	color = { 130 93 20 }
	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 = finno_ugric
				religion_group = pagan_group
			
				primary_title = { title = k_finland }
				num_of_king_titles = 3
			}
			e_finland = {
				is_titular = no
			}
		}

	}
}

e_poland = {
	color = { 150 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 = west_slavic
				religion_group = pagan_group
			
				primary_title = { title = k_poland }
				num_of_king_titles = 3
			}
			e_poland = {
				is_titular = no
			}
		}

	}
}

e_pomerania = {
	color = { 141 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 = west_slavic
				religion_group = pagan_group
			
				primary_title = { title = k_pomerania }
				num_of_king_titles = 3
			}
			e_pomerania = {
				is_titular = no
			}
		}

	}
}

e_lithuania = {
	color = { 90 37 0 }
	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 = baltic
				religion_group = pagan_group
			
				primary_title = { title = k_lithuania }
				num_of_king_titles = 3
			}
			e_lithuania = {
				is_titular = no
			}
		}

	}
}

e_bohemia = {
	color = { 176 136 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 = west_slavic
				religion_group = pagan_group
			
				primary_title = { title = k_bohemia }
				num_of_king_titles = 3
			}
			e_bohemia = {
				is_titular = no
			}
		}

	}
}

e_rus = {
	color = { 53 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 = east_slavic
				religion_group = pagan_group
			
				primary_title = { title = k_rus }
				num_of_king_titles = 3
			}
			e_rus = {
				is_titular = no
			}
		}

	}
}

e_ruthenia = {
	color = { 140 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 = east_slavic
				religion_group = pagan_group
			
				primary_title = { title = k_ruthenia }
				num_of_king_titles = 3
			}
			e_ruthenia = {
				is_titular = no
			}
		}

	}
}

e_perm = {
	color = { 204 188 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 = finno_ugric
				religion_group = pagan_group
			
				primary_title = { title = k_perm }
				num_of_king_titles = 3
			}
			e_perm = {
				is_titular = no
			}
		}

	}
}

e_cuman = {
	color = { 231 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 = altaic
				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 = altaic
				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 142 }
	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 = byzantine
				religion_group = christian
			
				primary_title = { title = k_taurica }
				num_of_king_titles = 3
			}
			e_taurica = {
				is_titular = no
			}
		}

	}
}

e_alania = {
	color = { 155 91 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 = byzantine
				religion_group = christian
			
				primary_title = { title = k_alania }
				num_of_king_titles = 3
			}
			e_alania = {
				is_titular = no
			}
		}

	}
}

e_turkestan = {
	color = { 204 183 21 }
	color2 = { 255 255 255 }
	capital = 900
	short_name = yes
	tengri_pagan_reformed = 500
	gain_effect = {
		primary_title = { copy_title_laws = k_turkestan }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_turkestan = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_turkestan
			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_turkestan }
				num_of_king_titles = 3
			}
			e_turkestan = {
				is_titular = no
			}
		}

	}
}

e_baluchistan = {
	color = { 155 169 114 }
	color2 = { 255 255 255 }
	capital = 1139
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_baluchistan }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_baluchistan = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_baluchistan
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = iranian
				religion_group = muslim
			
				primary_title = { title = k_baluchistan }
				num_of_king_titles = 3
			}
			e_baluchistan = {
				is_titular = no
			}
		}

	}
}

e_afghanistan = {
	color = { 163 83 57 }
	color2 = { 220 220 0 }
	capital = 1185
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_afghanistan }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_afghanistan = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_afghanistan
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = iranian
				religion_group = indian_group
			
				primary_title = { title = k_afghanistan }
				num_of_king_titles = 3
			}
			e_afghanistan = {
				is_titular = no
			}
		}

	}
}

e_khiva = {
	color = { 95 138 51 }
	color2 = { 255 255 255 }
	capital = 626
	short_name = yes
	tengri_pagan_reformed = 50
	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 = iranian
				religion_group = zoroastrian_group
			
				primary_title = { title = k_khiva }
				num_of_king_titles = 3
			}
			e_khiva = {
				is_titular = no
			}
		}

	}
}

e_mesopotamia = {
	color = { 55 128 58 }
	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 = arabic
				religion_group = muslim
			
				primary_title = { title = k_mesopotamia }
				num_of_king_titles = 3
			}
			e_mesopotamia = {
				is_titular = no
			}
		}

	}
}

e_dacia = {
	color = { 220 186 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 = south_slavic
				religion_group = pagan_group
			
				primary_title = { title = k_dacia }
				num_of_king_titles = 3
			}
			e_dacia = {
				is_titular = no
			}
		}

	}
}

e_hungary = {
	color = { 187 77 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 = magyar
				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 = latin
				religion_group = christian
			
				primary_title = { title = k_aquitaine }
				num_of_king_titles = 3
			}
			e_aquitaine = {
				is_titular = no
			}
		}

	}
}

e_brittany = {
	color = { 165 49 16 }
	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 = celtic
				religion_group = christian
			
				primary_title = { title = k_brittany }
				num_of_king_titles = 3
			}
			e_brittany = {
				is_titular = no
			}
		}

	}
}

e_burgundy = {
	color = { 134 0 13 }
	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 = latin
				religion_group = christian
			
				primary_title = { title = k_burgundy }
				num_of_king_titles = 3
			}
			e_burgundy = {
				is_titular = no
			}
		}

	}
}

e_leon = {
	color = { 233 180 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 = iberian
				religion_group = christian
			
				primary_title = { title = k_castille }
				num_of_king_titles = 3
			}
			e_castille = {
				is_titular = no
			}
		}

	}
}

e_aragon = {
	color = { 166 63 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 = iberian
				religion_group = christian
			
				primary_title = { title = k_aragon }
				num_of_king_titles = 3
			}
			e_aragon = {
				is_titular = no
			}
		}

	}
}

e_navarra = {
	color = { 150 120 5 }
	capital = 152
	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 = iberian
				religion_group = christian
			
				primary_title = { title = k_navarra }
				num_of_king_titles = 3
			}
			e_navarra = {
				is_titular = no
			}
		}

	}
}

e_asturias = {
	color = { 233 103 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 = iberian
				religion_group = christian
			
				primary_title = { title = k_asturias }
				num_of_king_titles = 3
			}
			e_asturias = {
				is_titular = no
			}
		}

	}
}

e_spanish_galicia = {
	color = { 255 214 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 = iberian
				religion_group = christian
			
				primary_title = { title = k_spanish_galicia }
				num_of_king_titles = 3
			}
			e_spanish_galicia = {
				is_titular = no
			}
		}

	}
}

e_portugal = {
	color = { 182 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 = iberian
				religion_group = christian
			
				primary_title = { title = k_portugal }
				num_of_king_titles = 3
			}
			e_portugal = {
				is_titular = no
			}
		}

	}
}

e_andalusia = {
	color = { 31 138 40 }
	color2 = { 255 255 255 }
	capital = 181
	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 = arabic
				religion_group = muslim
			
				primary_title = { title = k_andalusia }
				num_of_king_titles = 3
			}
			e_andalusia = {
				is_titular = no
			}
		}

	}
}

e_egypt = {
	color = { 10 255 80 }
	color2 = { 255 255 255 }
	capital = 796
	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 = arabic
				religion_group = muslim
			
				primary_title = { title = k_egypt }
				num_of_king_titles = 3
			}
			e_egypt = {
				is_titular = no
			}
		}

	}
}

e_jerusalem = {
	color = { 180 180 180 }
	color2 = { 255 255 255 }
	capital = 774
	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 = arabic
				religion_group = muslim
			
				primary_title = { title = k_jerusalem }
				num_of_king_titles = 3
			}
			e_jerusalem = {
				is_titular = no
			}
		}

	}
}

e_syria = {
	color = { 145 130 88 }
	color2 = { 255 255 255 }
	capital = 728
	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 = arabic
				religion_group = muslim
			
				primary_title = { title = k_syria }
				num_of_king_titles = 3
			}
			e_syria = {
				is_titular = no
			}
		}

	}
}

e_mauretania = {
	color = { 84 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 = arabic
				religion_group = muslim
			
				primary_title = { title = k_mauretania }
				num_of_king_titles = 3
			}
			e_mauretania = {
				is_titular = no
			}
		}

	}
}

e_africa = {
	color = { 21 255 3 }
	color2 = { 255 255 255 }
	capital = 817
	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 = arabic
				religion_group = muslim
			
				primary_title = { title = k_africa }
				num_of_king_titles = 3
			}
			e_africa = {
				is_titular = no
			}
		}

	}
}

e_nubia = {
	color = { 180 102 39 }
	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 = east_african
				religion_group = christian
			
				primary_title = { title = k_nubia }
				num_of_king_titles = 3
			}
			e_nubia = {
				is_titular = no
			}
		}

	}
}

e_england = {
	color = { 202 26 89 }
	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 5 }
	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 123 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 = { 51 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 = celtic
				religion_group = pagan_group
			
				primary_title = { title = k_ireland }
				num_of_king_titles = 3
			}
			e_ireland = {
				is_titular = no
			}
		}

	}
}

e_pechenegs = {
	color = { 173 150 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 156 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 171 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 84 }
	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 87 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 = { 224 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_seljuk_turks = {
	color = { 133 168 74 }
	capital = 646
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_seljuk_turks }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_seljuk_turks = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_seljuk_turks
			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 = muslim
			
				primary_title = { title = k_seljuk_turks }
				num_of_king_titles = 3
			}
			e_seljuk_turks = {
				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 110 126 }
	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 = west_slavic
				religion_group = pagan_group
			
				primary_title = { title = k_hansa }
				num_of_king_titles = 3
			}
			e_hansa = {
				is_titular = no
			}
		}

	}
}

e_sindh = {
	color = { 225 98 20 }
	color2 = { 255 255 255 }
	capital = 1297
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_sindh }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_sindh = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_sindh
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = indo_aryan_group
				religion_group = muslim
			
				primary_title = { title = k_sindh }
				num_of_king_titles = 3
			}
			e_sindh = {
				is_titular = no
			}
		}

	}
}

e_punjab = {
	color = { 255 161 20 }
	color2 = { 255 255 255 }
	capital = 1362
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_punjab }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_punjab = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_punjab
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = indo_aryan_group
				religion_group = indian_group
			
				primary_title = { title = k_punjab }
				num_of_king_titles = 3
			}
			e_punjab = {
				is_titular = no
			}
		}

	}
}

e_delhi = {
	color = { 220 159 75 }
	color2 = { 255 255 255 }
	capital = 1365
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_delhi }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_delhi = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_delhi
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = indo_aryan_group
				religion_group = indian_group
			
				primary_title = { title = k_delhi }
				num_of_king_titles = 3
			}
			e_delhi = {
				is_titular = no
			}
		}

	}
}

e_gujarat = {
	color = { 155 65 28 }
	color2 = { 255 255 255 }
	capital = 1292
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_gujarat }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_gujarat = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_gujarat
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = indo_aryan_group
				religion_group = indian_group
			
				primary_title = { title = k_gujarat }
				num_of_king_titles = 3
			}
			e_gujarat = {
				is_titular = no
			}
		}

	}
}

e_rajputana = {
	color = { 200 70 0 }
	color2 = { 255 255 255 }
	capital = 1346
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_rajputana }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_rajputana = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_rajputana
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = indo_aryan_group
				religion_group = indian_group
			
				primary_title = { title = k_rajputana }
				num_of_king_titles = 3
			}
			e_rajputana = {
				is_titular = no
			}
		}

	}
}

e_malwa = {
	color = { 255 131 25 }
	color2 = { 200 0 0 }
	capital = 1288
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_malwa }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_malwa = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_malwa
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = indo_aryan_group
				religion_group = indian_group
			
				primary_title = { title = k_malwa }
				num_of_king_titles = 3
			}
			e_malwa = {
				is_titular = no
			}
		}

	}
}

e_kosala = {
	color = { 205 48 10 }
	color2 = { 255 255 255 }
	capital = 1356
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_kosala }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_kosala = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_kosala
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = indo_aryan_group
				religion_group = indian_group
			
				primary_title = { title = k_kosala }
				num_of_king_titles = 3
			}
			e_kosala = {
				is_titular = no
			}
		}

	}
}

e_gondwana = {
	color = { 32 128 55 }
	color2 = { 255 255 255 }
	capital = 1271
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_gondwana }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_gondwana = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_gondwana
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = indo_aryan_group
				religion_group = indian_group
			
				primary_title = { title = k_gondwana }
				num_of_king_titles = 3
			}
			e_gondwana = {
				is_titular = no
			}
		}

	}
}

e_kamarupa = {
	color = { 6 127 65 }
	color2 = { 255 255 255 }
	capital = 1321
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_kamarupa }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_kamarupa = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_kamarupa
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = indo_aryan_group
				religion_group = indian_group
			
				primary_title = { title = k_kamarupa }
				num_of_king_titles = 3
			}
			e_kamarupa = {
				is_titular = no
			}
		}

	}
}

e_orissa = {
	color = { 116 145 40 }
	color2 = { 255 255 23 }
	capital = 1129
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_orissa }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_orissa = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_orissa
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = indo_aryan_group
				religion_group = indian_group
			
				primary_title = { title = k_orissa }
				num_of_king_titles = 3
			}
			e_orissa = {
				is_titular = no
			}
		}

	}
}

e_bihar = {
	color = { 68 208 51 }
	color2 = { 255 255 255 }
	capital = 1154
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_bihar }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_bihar = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_bihar
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = indo_aryan_group
				religion_group = indian_group
			
				primary_title = { title = k_bihar }
				num_of_king_titles = 3
			}
			e_bihar = {
				is_titular = no
			}
		}

	}
}

e_maharastra = {
	color = { 150 0 74 }
	color2 = { 255 255 255 }
	capital = 1145
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_maharastra }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_maharastra = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_maharastra
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = indo_aryan_group
				religion_group = indian_group
			
				primary_title = { title = k_maharastra }
				num_of_king_titles = 3
			}
			e_maharastra = {
				is_titular = no
			}
		}

	}
}

e_karnata = {
	color = { 150 20 0 }
	color2 = { 255 255 255 }
	capital = 1143
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_karnata }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_karnata = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_karnata
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = dravidian_group
				religion_group = indian_group
			
				primary_title = { title = k_karnata }
				num_of_king_titles = 3
			}
			e_karnata = {
				is_titular = no
			}
		}

	}
}

e_tamilakam = {
	color = { 200 48 25 }
	color2 = { 255 255 255 }
	capital = 1115
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_tamilakam }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_tamilakam = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_tamilakam
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = dravidian_group
				religion_group = indian_group
			
				primary_title = { title = k_tamilakam }
				num_of_king_titles = 3
			}
			e_tamilakam = {
				is_titular = no
			}
		}

	}
}

e_andhra = {
	color = { 110 0 46 }
	color2 = { 220 220 20 }
	capital = 1122
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_andhra }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_andhra = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_andhra
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = dravidian_group
				religion_group = indian_group
			
				primary_title = { title = k_andhra }
				num_of_king_titles = 3
			}
			e_andhra = {
				is_titular = no
			}
		}

	}
}

e_telingana = {
	color = { 195 71 50 }
	color2 = { 220 220 0 }
	capital = 1256
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_telingana }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_telingana = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_telingana
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = dravidian_group
				religion_group = indian_group
			
				primary_title = { title = k_telingana }
				num_of_king_titles = 3
			}
			e_telingana = {
				is_titular = no
			}
		}

	}
}

e_lanka = {
	color = { 221 187 80 }
	color2 = { 255 255 255 }
	capital = 1215
	short_name = yes
	gain_effect = {
		primary_title = { copy_title_laws = k_lanka }
		
		any_demesne_title = {
			limit = {
				tier = KING
				OR = {
					e_lanka = { is_titular = yes }
					FROM = { has_character_flag = creating_title_loop }
				}
			}
			de_jure_liege = e_lanka
			hidden_tooltip = { FROM = {	set_character_flag = creating_title_loop } }
		}
		hidden_tooltip = { clr_character_flag = creating_title_loop }

	}
	allow = {
		OR = {
			AND = {
				culture_group = indo_aryan_group
				religion_group = indian_group
			
				primary_title = { title = k_lanka }
				num_of_king_titles = 3
			}
			e_lanka = {
				is_titular = no
			}
		}

	}
}

