﻿#Other religion stuff

UralGetActualBishopTitle = {
	type = character
	#sami
	text = {
		trigger = {
			faith = faith:sami_pagan
		}
		localization_key = councillor_court_chaplain_sami_religion
	}
}
realm_priest_f_sami = {
	type = character
	#sami
	text = {
		trigger = {
			faith = faith:sami_pagan
		}
		localization_key = councillor_court_chaplain_sami_religion
	}
}
realm_priest_sami = {
	type = character
	#sami
	text = {
		trigger = {
			faith = faith:sami_pagan
		}
		localization_key = councillor_court_chaplain_sami_religion
	}
}

################################################################################################CTP - County


DynastyCountyMaleIrish = {
	type = character
	text = {
		trigger = {
			is_ruler = yes
			root.top_liege ?= {
				culture = {
					has_cultural_pillar = heritage_west_germanic
				}
				OR = {
					has_primary_title = title:e_britannia
					has_primary_title = title:k_england
					has_primary_title = title:k_scotland
				}
			}
		}
		localization_key = earl_male_holder_irish
	}
	text = {
		trigger = {
			root.top_liege ?= {
				culture = {
					has_cultural_pillar = heritage_west_germanic
				}
				OR = {
					has_primary_title = title:e_britannia
					has_primary_title = title:k_england
					has_primary_title = title:k_scotland
				}
			}
		}
		localization_key = earl_male_non_holder_irish
	}
	text = {
		trigger = {
			is_ruler = yes
		}
		localization_key = count_male_holder_irish
	}
	text = {
		localization_key = count_male_non_holder_irish
		fallback = yes
	}
}
CountMaleIrish = {
	type = character
	text = {
		trigger = {
			culture = {
				any_parent_culture_or_above = {
					this = {
						has_cultural_pillar = heritage_north_germanic
					}
				}
			}
		}
		localization_key = count_male_gael_norse
	}
	text = {
		localization_key = count_default_male_irish
		fallback = yes
	}
}
EarlMaleIrish = {
	type = character
	text = {
		trigger = {
			culture = {
				any_parent_culture_or_above = {
					this = {
						has_cultural_pillar = heritage_north_germanic
					}
				}
			}
		}
		localization_key = earl_male_gael_norse
	}
	text = {
		localization_key = earl_male_irish
		fallback = yes
	}
}
DynastyCountyFemaleIrish = {
	type = character
	text = {
		trigger = {
			is_ruler = yes
			root.top_liege ?= {
				culture = {
					has_cultural_pillar = heritage_west_germanic
				}
				OR = {
					has_primary_title = title:e_britannia
					has_primary_title = title:k_england
					has_primary_title = title:k_scotland
				}
			}
		}
		localization_key = earl_female_holder_irish
	}
	text = {
		trigger = {
			root.top_liege ?= {
				culture = {
					has_cultural_pillar = heritage_west_germanic
				}
				OR = {
					has_primary_title = title:e_britannia
					has_primary_title = title:k_england
					has_primary_title = title:k_scotland
				}
			}
		}
		localization_key = earl_female_non_holder_irish
	}
	text = {
		trigger = {
			is_ruler = yes
		}
		localization_key = count_female_holder_irish
	}
	text = {
		localization_key = count_female_non_holder_irish
		fallback = yes
	}
}
CountFemaleIrish = {
	type = character
	text = {
		trigger = {
			culture = {
				any_parent_culture_or_above = {
					this = {
						has_cultural_pillar = heritage_north_germanic
					}
				}
			}
		}
		localization_key = count_female_gael_norse
	}
	text = {
		localization_key = count_default_female_irish
		fallback = yes
	}
}
EarlFemaleIrish = {
	type = character
	text = {
		trigger = {
			culture = {
				any_parent_culture_or_above = {
					this = {
						has_cultural_pillar = heritage_north_germanic
					}
				}
			}
		}
		localization_key = earl_female_gael_norse
	}
	text = {
		localization_key = earl_female_irish
		fallback = yes
	}
}
CountyIrish = {
	type = character
	text = {
		trigger = {
			root.top_liege ?= {
				culture = {
					has_cultural_pillar = heritage_west_germanic
				}
				OR = {
					has_primary_title = title:e_britannia
					has_primary_title = title:k_england
					has_primary_title = title:k_scotland
				}
			}
		}
		localization_key = earldom_irish
	}
	text = {
		localization_key = county_default_irish
		fallback = yes
	}
}
DynastyCountyMaleGaelic = {
	type = character
	text = {
		trigger = {
			is_ruler = yes
			root.top_liege ?= {
				culture = {
					has_cultural_pillar = heritage_west_germanic
				}
				OR = {
					has_primary_title = title:e_britannia
					has_primary_title = title:k_england
					has_primary_title = title:k_scotland
				}
			}
		}
		localization_key = earl_male_holder_irish
	}
	text = {
		trigger = {
			root.top_liege ?= {
				culture = {
					has_cultural_pillar = heritage_west_germanic
				}
				OR = {
					has_primary_title = title:e_britannia
					has_primary_title = title:k_england
					has_primary_title = title:k_scotland
				}
			}
		}
		localization_key = earl_male_non_holder_irish
	}
	text = {
		trigger = {
			is_ruler = yes
		}
		localization_key = count_male_holder_gaelic
	}
	text = {
		localization_key = count_male_non_holder_gaelic
		fallback = yes
	}
}
CountMaleGaelic = {
	type = character
	text = {
		trigger = {
			culture = {
				any_parent_culture_or_above = {
					this = {
						has_cultural_pillar = heritage_north_germanic
					}
				}
			}
		}
		localization_key = count_male_gael_norse
	}
	text = {
		localization_key = count_default_male_gaelic
		fallback = yes
	}
}
DynastyCountyFemaleGaelic = {
	type = character
	text = {
		trigger = {
			is_ruler = yes
			root.top_liege ?= {
				culture = {
					has_cultural_pillar = heritage_west_germanic
				}
				OR = {
					has_primary_title = title:e_britannia
					has_primary_title = title:k_england
					has_primary_title = title:k_scotland
				}
			}
		}
		localization_key = earl_female_holder_irish
	}
	text = {
		trigger = {
			root.top_liege ?= {
				culture = {
					has_cultural_pillar = heritage_west_germanic
				}
				OR = {
					has_primary_title = title:e_britannia
					has_primary_title = title:k_england
					has_primary_title = title:k_scotland
				}
			}
		}
		localization_key = earl_female_non_holder_irish
	}
	text = {
		trigger = {
			is_ruler = yes
		}
		localization_key = count_female_holder_gaelic
	}
	text = {
		localization_key = count_female_non_holder_gaelic
		fallback = yes
	}
}
CountFemaleGaelic = {
	type = character
	text = {
		trigger = {
			culture = {
				any_parent_culture_or_above = {
					this = {
						has_cultural_pillar = heritage_north_germanic
					}
				}
			}
		}
		localization_key = count_female_gael_norse
	}
	text = {
		localization_key = count_default_female_gaelic
		fallback = yes
	}
}
CountFemaleGaelicHolder = {
	type = character
	text = {
		trigger = {
			culture = {
				any_parent_culture_or_above = {
					this = {
						has_cultural_pillar = heritage_north_germanic
					}
				}
			}
		}
		localization_key = count_female_gael_norse
	}
	text = {
		localization_key = count_default_female_gaelic_holder
		fallback = yes
	}
}
CountyGaelic = {
	type = character
	text = {
		trigger = {
			root.top_liege ?= {
				culture = {
					has_cultural_pillar = heritage_west_germanic
				}
				OR = {
					has_primary_title = title:e_britannia
					has_primary_title = title:k_england
					has_primary_title = title:k_scotland
				}
			}
		}
		localization_key = earldom_irish
	}
	text = {
		localization_key = county_default_gaelic
		fallback = yes
	}
}
CountMaleEnglish = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_male_english
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_male_english_independent
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_male_english_independent
	}
	text = {
		localization_key = count_default_male_english
		fallback = yes
	}
}
CountFemaleEnglish = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_female_english
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_female_english_independent
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_female_english_independent
	}
	text = {
		localization_key = count_default_female_english
		fallback = yes
	}
}
CountyEnglish = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			is_male = yes
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_english_male
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			is_male = no
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_english_female
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = independent_duchy_english
	}
	text = {
		localization_key = county_default_english
		fallback = yes
	}
}
CountMaleAnglo = {
	type = character
	text = {
		trigger = {
			culture = {
				any_parent_culture_or_above = {
					this = {
						has_cultural_pillar = heritage_north_germanic
					}
				}
			}
		}
		localization_key = count_feudalclan_male_anglo_norse
	}
	text = {
		localization_key = count_feudalclan_male_anglo_saxon
		fallback = yes
	}
}
CountMaleScottish = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_male_english
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_male_scottish_independent
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_male_scottish_independent
	}
	text = {
		localization_key = count_default_male_scottish
		fallback = yes
	}
}
CountFemaleScottish = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_female_english
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_female_scottish_independent
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_female_scottish_independent
	}
	text = {
		localization_key = count_default_female_scottish
		fallback = yes
	}
}
CountyScottish = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			is_male = yes
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_english_male
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			is_male = no
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_english_female
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = independent_duchy_scottish
	}
	text = {
		localization_key = county_default_scottish
		fallback = yes
	}
}
CountMalePictishCumbrian = {
	type = character
	text = {
		trigger = {
			root.top_liege ?= {
				culture = {
					has_cultural_pillar = heritage_west_germanic
				}
				OR = {
					has_primary_title = title:e_britannia
					has_primary_title = title:k_england
					has_primary_title = title:k_scotland
				}
			}
		}
		localization_key = earl_male_pictish_cumbrian
	}
	text = {
		trigger = {
			root.culture = culture:pictish
		}
		localization_key = count_default_male_pictish
	}
	text = {
		localization_key = count_default_male_cumbrian
		fallback = yes
	}
}
CountFemalePictishCumbrian = {
	type = character
	text = {
		trigger = {
			root.top_liege ?= {
				culture = {
					has_cultural_pillar = heritage_west_germanic
				}
				OR = {
					has_primary_title = title:e_britannia
					has_primary_title = title:k_england
					has_primary_title = title:k_scotland
				}
			}
		}
		localization_key = earl_female_pictish_cumbrian
	}
	text = {
		trigger = {
			root.culture = culture:pictish
		}
		localization_key = count_default_female_pictish
	}
	text = {
		localization_key = count_default_female_cumbrian
		fallback = yes
	}
}
CountyPictishCumbrian = {
	type = character
	text = {
		trigger = {
			root.top_liege ?= {
				culture = {
					has_cultural_pillar = heritage_west_germanic
				}
				OR = {
					has_primary_title = title:e_britannia
					has_primary_title = title:k_england
					has_primary_title = title:k_scotland
				}
			}
		}
		localization_key = earldom_pictish_cumbrian
	}
	text = {
		trigger = {
			root.culture = culture:pictish
		}
		localization_key = county_default_pictish
	}
	text = {
		localization_key = county_default_cumbrian
		fallback = yes
	}
}
CountMaleWelsh = {
	type = character
	text = {
		trigger = {
			root.top_liege ?= {
				culture = {
					has_cultural_pillar = heritage_west_germanic
				}
				OR = {
					has_primary_title = title:e_britannia
					has_primary_title = title:k_england
					has_primary_title = title:k_scotland
				}
			}
		}
		localization_key = earl_male_welsh
	}
	text = {
		localization_key = count_default_male_welsh
		fallback = yes
	}
}
CountFemaleWelsh = {
	type = character
	text = {
		trigger = {
			root.top_liege ?= {
				culture = {
					has_cultural_pillar = heritage_west_germanic
				}
				OR = {
					has_primary_title = title:e_britannia
					has_primary_title = title:k_england
					has_primary_title = title:k_scotland
				}
			}
		}
		localization_key = earl_female_welsh
	}
	text = {
		localization_key = count_default_female_welsh
		fallback = yes
	}
}
CountyWelsh = {
	type = character
	text = {
		trigger = {
			root.top_liege ?= {
				culture = {
					has_cultural_pillar = heritage_west_germanic
				}
				OR = {
					has_primary_title = title:e_britannia
					has_primary_title = title:k_england
					has_primary_title = title:k_scotland
				}
			}
		}
		localization_key = earldom_welsh
	}
	text = {
		localization_key = county_default_welsh
		fallback = yes
	}
}
CountMaleCornish = {
	type = character
	text = {
		trigger = {
			root.top_liege ?= {
				culture = {
					has_cultural_pillar = heritage_west_germanic
				}
				OR = {
					has_primary_title = title:e_britannia
					has_primary_title = title:k_england
					has_primary_title = title:k_scotland
				}
			}
		}
		localization_key = earl_male_cornish
	}
	text = {
		localization_key = count_default_male_cornish
		fallback = yes
	}
}
CountFemaleCornish = {
	type = character
	text = {
		trigger = {
			root.top_liege ?= {
				culture = {
					has_cultural_pillar = heritage_west_germanic
				}
				OR = {
					has_primary_title = title:e_britannia
					has_primary_title = title:k_england
					has_primary_title = title:k_scotland
				}
			}
		}
		localization_key = earl_female_cornish
	}
	text = {
		localization_key = count_default_female_cornish
		fallback = yes
	}
}
CountyCornish = {
	type = character
	text = {
		trigger = {
			root.top_liege ?= {
				culture = {
					has_cultural_pillar = heritage_west_germanic
				}
				OR = {
					has_primary_title = title:e_britannia
					has_primary_title = title:k_england
					has_primary_title = title:k_scotland
				}
			}
		}
		localization_key = earldom_cornish
	}
	text = {
		localization_key = county_default_cornish
		fallback = yes
	}
}
CountMaleFrench = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_male_french
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_male_french_independent
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_male_french_independent
	}
	text = {
		trigger = {
			OR = {
				has_primary_title = title:c_viennois
				AND = {
					exists = primary_spouse
					primary_spouse = {
						has_primary_title = title:c_viennois
					}
				}
			}
			OR = {
				AND = {
					exists = father
					father = {
						highest_held_title_tier >= tier_kingdom
						primary_heir = root
					}
				}
				AND = {
					exists = mother
					mother = {
						highest_held_title_tier >= tier_kingdom
						primary_heir = root
					}
				}
				AND = {
					exists = primary_spouse.father
					primary_spouse.father = {
						highest_held_title_tier >= tier_kingdom
						primary_heir = root
					}
				}
				AND = {
					exists = primary_spouse.mother
					primary_spouse.mother = {
						highest_held_title_tier >= tier_kingdom
						primary_heir = root
					}
				}
			}
		}
		localization_key = dolphin_male_french
	}
	text = {
		localization_key = count_default_male_french
		fallback = yes
	}
}
CountFemaleFrench = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_female_french
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_female_french_independent
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_female_french_independent
	}
	text = {
		trigger = {
			OR = {
				has_primary_title = title:c_viennois
				AND = {
					exists = primary_spouse
					primary_spouse = {
						has_primary_title = title:c_viennois
					}
				}
			}
			OR = {
				AND = {
					exists = father
					father = {
						highest_held_title_tier >= tier_kingdom
						primary_heir = root
					}
				}
				AND = {
					exists = mother
					mother = {
						highest_held_title_tier >= tier_kingdom
						primary_heir = root
					}
				}
				AND = {
					exists = primary_spouse.father
					primary_spouse.father = {
						highest_held_title_tier >= tier_kingdom
						primary_heir = root
					}
				}
				AND = {
					exists = primary_spouse.mother
					primary_spouse.mother = {
						highest_held_title_tier >= tier_kingdom
						primary_heir = root
					}
				}
			}
		}
		localization_key = dolphin_female_french
	}
	text = {
		localization_key = count_default_female_french
		fallback = yes
	}
}
CountyFrench = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			is_male = yes
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_french_male
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			is_male = no
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_french_female
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = independent_duchy_french
	}
	text = {
		localization_key = county_default_french
		fallback = yes
	}
}
CountMaleNorman = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_male_norman
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_male_norman_independent
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_male_norman_independent
	}
	text = {
		localization_key = count_default_male_norman
		fallback = yes
	}
}
CountFemaleNorman = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_female_norman
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_female_norman_independent
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_female_norman_independent
	}
	text = {
		localization_key = count_default_female_norman
		fallback = yes
	}
}
CountyNorman = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			is_male = yes
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_norman_male
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			is_male = no
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_norman_female
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = independent_duchy_norman
	}
	text = {
		localization_key = county_default_norman
		fallback = yes
	}
}
CountMaleOccitan = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_male_occitan
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_male_occitan_independent
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_male_occitan_independent
	}
	text = {
		localization_key = count_default_male_occitan
		fallback = yes
	}
}
CountFemaleOccitan = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_female_occitan
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_female_occitan_independent
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_female_occitan_independent
	}
	text = {
		localization_key = count_default_female_occitan
		fallback = yes
	}
}
CountyOccitan = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			is_male = yes
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_occitan_male
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			is_male = no
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_occitan_female
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = independent_duchy_occitan
	}
	text = {
		localization_key = county_default_occitan
		fallback = yes
	}
}
CountMaleCastillian = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_male_castillian
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_feudalclan_male_castilian_independent
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_feudalclan_male_castilian_independent
	}
	text = {
		localization_key = count_default_male_castilian
		fallback = yes
	}
}
CountFemaleCastillian = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_female_castillian
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_feudalclan_female_castilian_independent
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_feudalclan_female_castilian_independent
	}
	text = {
		localization_key = count_default_female_castilian
		fallback = yes
	}
}
CountyCastillian = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			is_male = yes
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_castilian_male
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			is_male = no
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_castilian_female
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = independent_duchy_castilian
	}
	text = {
		localization_key = county_default_castillian
		fallback = yes
	}
}
CountMaleCatalan = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_male_catalan
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_feudalclan_male_catalan_independent
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_feudalclan_male_catalan_independent
	}
	text = {
		localization_key = count_default_male_catalan
		fallback = yes
	}
}
CountFemaleCatalan = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_female_catalan
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_feudalclan_female_catalan_independent
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_feudalclan_female_catalan_independent
	}
	text = {
		localization_key = count_default_female_catalan
		fallback = yes
	}
}
CountyCatalan = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			is_male = yes
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_catalan_male
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			is_male = no
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_catalan_female
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = independent_duchy_catalan
	}
	text = {
		localization_key = county_default_catalan
		fallback = yes
	}
}
CountMalePort = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_male_portugese
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_feudalclan_male_portugese_independent
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_feudalclan_male_portugese_independent
	}
	text = {
		localization_key = count_default_male_portugese
		fallback = yes
	}
}
CountFemalePort = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_female_portugese
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_feudalclan_female_portugese_independent
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_feudalclan_female_portugese_independent
	}
	text = {
		localization_key = count_default_female_portugese
		fallback = yes
	}
}
CountyPort = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			is_male = yes
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_portugese_male
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			is_male = no
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_portugese_female
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = independent_duchy_portugese
	}
	text = {
		localization_key = county_default_portugese
		fallback = yes
	}
}
CountMaleAsturleonese = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_male_asturleonese
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_feudalclan_male_asturleonese_independent
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_feudalclan_male_asturleonese_independent
	}
	text = {
		localization_key = count_default_male_asturleonese
		fallback = yes
	}
}
CountFemaleAsturleonese = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_female_asturleonese
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_feudalclan_female_asturleonese_independent
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_feudalclan_female_asturleonese_independent
	}
	text = {
		localization_key = count_default_female_asturleonese
		fallback = yes
	}
}
CountyAsturleonese = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			is_male = yes
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_asturleonese_male
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			is_male = no
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_asturleonese_female
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = independent_duchy_asturleonese
	}
	text = {
		localization_key = county_default_asturleonese
		fallback = yes
	}
}
CountMaleAragonese = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_male_aragonese
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_feudalclan_male_aragonese_independent
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_feudalclan_male_aragonese_independent
	}
	text = {
		localization_key = count_default_male_aragonese
		fallback = yes
	}
}
CountFemaleAragonese = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_female_aragonese
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_feudalclan_female_aragonese_independent
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_feudalclan_female_aragonese_independent
	}
	text = {
		localization_key = count_default_female_aragonese
		fallback = yes
	}
}
CountyAragonese = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			is_male = yes
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_aragonese_male
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			is_male = no
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_aragonese_female
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = independent_duchy_aragonese
	}
	text = {
		localization_key = county_default_aragonese
		fallback = yes
	}
}
CountyNorth = {
	type = character
	text = {
		trigger = {
			root.top_liege ?= {
				culture = {
					has_cultural_pillar = heritage_west_germanic
				}
				OR = {
					has_primary_title = title:e_britannia
					has_primary_title = title:k_england
					has_primary_title = title:k_scotland
				}
			}
		}
		localization_key = duchy_norse_norwegian
	}
	text = {
		localization_key = county_default_norse_norwegian
		fallback = yes
	}
}
CountMaleNorse = {
	type = character
	text = {
		trigger = {
			root.top_liege ?= {
				culture = {
					has_cultural_pillar = heritage_west_germanic
				}
				OR = {
					has_primary_title = title:e_britannia
					has_primary_title = title:k_england
					has_primary_title = title:k_scotland
				}
			}
		}
		localization_key = duke_male_norse_norwegian
	}
	text = {
		localization_key = count_default_male_norse_norwegian
		fallback = yes
	}
}
CountFemaleNorse = {
	type = character
	text = {
		trigger = {
			root.top_liege ?= {
				culture = {
					has_cultural_pillar = heritage_west_germanic
				}
				OR = {
					has_primary_title = title:e_britannia
					has_primary_title = title:k_england
					has_primary_title = title:k_scotland
				}
			}
		}
		localization_key = duke_female_norse_norwegian
	}
	text = {
		localization_key = count_default_female_norse_norwegian
		fallback = yes
	}
}
CountySwedish = {
	type = character
	text = {
		trigger = {
			root.top_liege ?= {
				culture = {
					has_cultural_pillar = heritage_west_germanic
				}
				OR = {
					has_primary_title = title:e_britannia
					has_primary_title = title:k_england
					has_primary_title = title:k_scotland
				}
			}
		}
		localization_key = duchy_swedish_danish
	}
	text = {
		localization_key = county_default_swedish_danish
		fallback = yes
	}
}
CountMaleSwedish = {
	type = character
	text = {
		trigger = {
			root.top_liege ?= {
				culture = {
					has_cultural_pillar = heritage_west_germanic
				}
				OR = {
					has_primary_title = title:e_britannia
					has_primary_title = title:k_england
					has_primary_title = title:k_scotland
				}
			}
		}
		localization_key = duke_male_swedish_danish
	}
	text = {
		localization_key = count_default_male_swedish_danish
		fallback = yes
	}
}
CountFemaleSwedish = {
	type = character
	text = {
		trigger = {
			root.top_liege ?= {
				culture = {
					has_cultural_pillar = heritage_west_germanic
				}
				OR = {
					has_primary_title = title:e_britannia
					has_primary_title = title:k_england
					has_primary_title = title:k_scotland
				}
			}
		}
		localization_key = duke_female_swedish_danish
	}
	text = {
		localization_key = count_default_female_swedish_danish
		fallback = yes
	}
}
CountMaleEstonian = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_male_estonian
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_feudalclan_male_estonian_independent
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_feudalclan_male_estonian_independent
	}
	text = {
		localization_key = count_default_male_estonian
		fallback = yes
	}
}
CountFemaleEstonian = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_female_estonian
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_feudalclan_female_estonian_independent
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_feudalclan_female_estonian_independent
	}
	text = {
		localization_key = count_default_female_estonian
		fallback = yes
	}
}
CountyEstonian = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_estonian
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = independent_duchy_estonian
	}
	text = {
		localization_key = county_default_estonian
		fallback = yes
	}
}
FreeMayorMaleSaxon = {
	type = character
	text = {
		trigger = {
			exists = liege
			root.liege = {
				has_primary_title = title:e_hre
			}
		}
		localization_key = free_mayor_male_saxon
	}
	text = {
		localization_key = count_republic_default_male_saxon
		fallback = yes
	}
}
FreeMayorFemaleSaxon = {
	type = character
	text = {
		trigger = {
			exists = liege
			root.liege = {
				has_primary_title = title:e_hre
			}
		}
		localization_key = free_mayor_female_saxon
	}
	text = {
		localization_key = count_republic_default_female_saxon
		fallback = yes
	}
}
FreeCitySaxon = {
	type = character
	text = {
		trigger = {
			exists = liege
			root.liege = {
				has_primary_title = title:e_hre
			}
		}
		localization_key = free_city_saxon
	}
	text = {
		localization_key = county_republic_default_saxon
		fallback = yes
	}
}
CountMaleSaxon = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_male_saxon
	}
	#The way the below works, from what I can tell, is that ANY independent county gets the duchy based title and they're only called a Graf under a duchy. That doesn't really make sense since the counties were all still called Grafs after the Stem Duchies were abolished
	#text = {
	#	trigger = {
	#		exists = primary_spouse
	#		root.primary_spouse = {
	#			exists = liege
	#			liege.primary_title = {
	#				has_title_law = princely_elective_succession_law
	#				any_elector = {
	#					this = root.primary_spouse
	#				}
	#			}
	#		}
	#	}
	#	localization_key = duke_male_saxon_independent
	#}
	#text = {
	#	trigger = {
	#		OR = {
	#			AND = {
	#				exists = liege
	#				liege.primary_title = {
	#					has_title_law = princely_elective_succession_law
	#				}
	#				OR = {
	#					AND = {
	#						has_realm_law = crown_authority_1
	#						liege = {
	#							NOR = {
	#								has_realm_law = crown_authority_1
	#								has_realm_law = crown_authority_2
	#								has_realm_law = crown_authority_3
	#							}
	#						}
	#					}
	#					AND = {
	#						has_realm_law = crown_authority_2
	#						liege = {
	#							NOR = {
	#								has_realm_law = crown_authority_2
	#								has_realm_law = crown_authority_3
	#							}
	#						}
	#					}
	#					AND = {
	#						has_realm_law = crown_authority_3
	#						liege = {
	#							NOT = {
	#								has_realm_law = crown_authority_3
	#							}
	#						}
	#					}
	#				}
	#			}
	#			AND = {
	#				exists = primary_spouse
	#				root.primary_spouse = {
	#					exists = liege
	#					liege.primary_title = {
	#						has_title_law = princely_elective_succession_law
	#					}
	#					OR = {
	#						AND = {
	#							has_realm_law = crown_authority_1
	#							liege = {
	#								NOR = {
	#									has_realm_law = crown_authority_1
	#									has_realm_law = crown_authority_2
	#									has_realm_law = crown_authority_3
	#								}
	#							}
	#						}
	#						AND = {
	#							has_realm_law = crown_authority_2
	#							liege = {
	#								NOR = {
	#									has_realm_law = crown_authority_2
	#									has_realm_law = crown_authority_3
	#								}
	#							}
	#						}
	#						AND = {
	#							has_realm_law = crown_authority_3
	#							liege = {
	#								NOT = {
	#									has_realm_law = crown_authority_3
	#								}
	#							}
	#						}
	#					}
	#				}
	#			}
	#		}
	#	}
	#	localization_key = duke_male_saxon_independent
	#}
	text = {
		localization_key = count_default_male_saxon
		fallback = yes
	}
}
CountFemaleSaxon = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_female_saxon
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_female_saxon_independent
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_female_saxon_independent
	}
	text = {
		localization_key = count_default_female_saxon
		fallback = yes
	}
}
CountySaxon = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_saxon
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = independent_duchy_saxon
	}
	text = {
		localization_key = county_default_saxon
		fallback = yes
	}
}
FreeMayorMaleMiddleHighGerman = {
	type = character
	text = {
		trigger = {
			exists = liege
			root.liege = {
				has_primary_title = title:e_hre
			}
		}
		localization_key = free_mayor_male_middle_high_german
	}
	text = {
		localization_key = count_republic_default_male_middle_high_german
		fallback = yes
	}
}
FreeMayorFemaleMiddleHighGerman = {
	type = character
	text = {
		trigger = {
			exists = liege
			root.liege = {
				has_primary_title = title:e_hre
			}
		}
		localization_key = free_mayor_female_middle_high_german
	}
	text = {
		localization_key = count_republic_default_female_middle_high_german
		fallback = yes
	}
}
FreeCityMiddleHighGerman = {
	type = character
	text = {
		trigger = {
			exists = liege
			root.liege = {
				has_primary_title = title:e_hre
			}
		}
		localization_key = free_city_middle_high_german
	}
	text = {
		localization_key = county_republic_default_middle_high_german
		fallback = yes
	}
}
CountMaleMiddleHighGerman = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_male_middle_high_german
	}
	#The way the below works, from what I can tell, is that ANY independent county gets the duchy based title and they're only called a Graf under a duchy. That doesn't really make sense since the counties were all still called Grafs after the Stem Duchies were abolished
	#text = {
	#	trigger = {
	#		exists = primary_spouse
	#		root.primary_spouse = {
	#			exists = liege
	#			liege.primary_title = {
	#				has_title_law = princely_elective_succession_law
	#				any_elector = {
	#					this = root.primary_spouse
	#				}
	#			}
	#		}
	#	}
	#	localization_key = duke_male_middle_high_german_independent
	#}
	#text = {
	#	trigger = {
	#		OR = {
	#			AND = {
	#				exists = liege
	#				liege.primary_title = {
	#					has_title_law = princely_elective_succession_law
	#				}
	#				OR = {
	#					AND = {
	#						has_realm_law = crown_authority_1
	#						liege = {
	#							NOR = {
	#								has_realm_law = crown_authority_1
	#								has_realm_law = crown_authority_2
	#								has_realm_law = crown_authority_3
	#							}
	#						}
	#					}
	#					AND = {
	#						has_realm_law = crown_authority_2
	#						liege = {
	#							NOR = {
	#								has_realm_law = crown_authority_2
	#								has_realm_law = crown_authority_3
	#							}
	#						}
	#					}
	#					AND = {
	#						has_realm_law = crown_authority_3
	#						liege = {
	#							NOT = {
	#								has_realm_law = crown_authority_3
	#							}
	#						}
	#					}
	#				}
	#			}
	#			AND = {
	#				exists = primary_spouse
	#				root.primary_spouse = {
	#					exists = liege
	#					liege.primary_title = {
	#						has_title_law = princely_elective_succession_law
	#					}
	#					OR = {
	#						AND = {
	#							has_realm_law = crown_authority_1
	#							liege = {
	#								NOR = {
	#									has_realm_law = crown_authority_1
	#									has_realm_law = crown_authority_2
	#									has_realm_law = crown_authority_3
	#								}
	#							}
	#						}
	#						AND = {
	#							has_realm_law = crown_authority_2
	#							liege = {
	#								NOR = {
	#									has_realm_law = crown_authority_2
	#									has_realm_law = crown_authority_3
	#								}
	#							}
	#						}
	#						AND = {
	#							has_realm_law = crown_authority_3
	#							liege = {
	#								NOT = {
	#									has_realm_law = crown_authority_3
	#								}
	#							}
	#						}
	#					}
	#				}
	#			}
	#		}
	#	}
	#	localization_key = duke_male_middle_high_german_independent
	#}
	text = {
		localization_key = count_default_male_middle_high_german
		fallback = yes
	}
}
CountFemaleMiddleHighGerman = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_female_middle_high_german
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_female_middle_high_german_independent
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_female_middle_high_german_independent
	}
	text = {
		localization_key = count_default_female_middle_high_german
		fallback = yes
	}
}
CountyMiddleHighGerman = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_middle_high_german
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = independent_duchy_middle_high_german
	}
	text = {
		localization_key = county_default_middle_high_german
		fallback = yes
	}
}
FreeMayorDutch = {
	type = character
	text = {
		trigger = {
			exists = liege
			root.liege = {
				has_primary_title = title:e_hre
			}
		}
		localization_key = free_mayor_male_dutch
	}
	text = {
		localization_key = count_republic_default_dutch
		fallback = yes
	}
}
FreeMayorFemaleDutch = {
	type = character
	text = {
		trigger = {
			exists = liege
			root.liege = {
				has_primary_title = title:e_hre
			}
		}
		localization_key = free_mayor_female_dutch
	}
	text = {
		localization_key = count_republic_default_dutch
		fallback = yes
	}
}
FreeCityDutch = {
	type = character
	text = {
		trigger = {
			exists = liege
			root.liege = {
				has_primary_title = title:e_hre
			}
		}
		localization_key = free_city_dutch
	}
	text = {
		localization_key = county_republic_default_dutch
		fallback = yes
	}
}
CountMaleDutch = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_male_dutch
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = furst_male_dutch
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = furst_male_dutch
	}
	text = {
		localization_key = count_default_male_dutch
		fallback = yes
	}
}
CountFemaleDutch = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_female_dutch
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = furst_female_dutch
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = furst_female_dutch
	}
	text = {
		localization_key = count_default_female_dutch
		fallback = yes
	}
}
CountyDutch = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_dutch
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = furstdom_dutch
	}
	text = {
		localization_key = county_default_dutch
		fallback = yes
	}
}
CountMaleGreek = {
	type = character
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_count_male_greek
	}
	text = {
		localization_key = count_default_male_greek
		fallback = yes
	}
}
CountFemaleGreek = {
	type = character
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_count_female_greek
	}
	text = {
		localization_key = count_default_female_greek
		fallback = yes
	}
}
CountyGreek = {
	type = character
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_county_greek
	}
	text = {
		localization_key = county_default_greek
		fallback = yes
	}
}
CountMaleItalian = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_male_italian
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_feudalclan_male_italian_independent
	}
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_count_male_italian
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_feudalclan_male_italian_independent
	}
	text = {
		localization_key = count_default_male_italian
		fallback = yes
	}
}
CountFemaleItalian = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_female_italian
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_feudalclan_female_italian_independent
	}
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_count_female_italian
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_feudalclan_female_italian_independent
	}
	text = {
		localization_key = count_default_female_italian
		fallback = yes
	}
}
CountyItalian = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			is_male = yes
			is_independent_ruler = no
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_male_italian
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			is_male = no
			is_independent_ruler = no
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_female_italian
	}
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_county_italian
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = independent_duchy_italian
	}
	text = {
		localization_key = county_default_italian
		fallback = yes
	}
}
CountMaleRoman = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = very_shameful_roman_male
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_feudalclan_male_roman_independent
	}
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = surpreme_roman_count_male
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_feudalclan_male_roman_independent
	}
	text = {
		localization_key = count_default_male_roman
		fallback = yes
	}
}
CountFemaleRoman = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = very_shameful_roman_female
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_feudalclan_female_roman_independent
	}
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = surpreme_roman_count_female
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_feudalclan_female_roman_independent
	}
	text = {
		localization_key = count_default_female_roman
		fallback = yes
	}
}
CountyRoman = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			is_male = yes
			is_independent_ruler = no
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = very_shameful_roman_mas
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			is_male = no
			is_independent_ruler = no
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = very_shameful_roman_fem
	}
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = surpreme_roman_county
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = independent_duchy_roman
	}
	text = {
		localization_key = county_default_roman
		fallback = yes
	}
}
CountMaleCisalpine = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_male_cisalpine
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_male_cisalpine_independent
	}
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_count_male_italian
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_male_cisalpine_independent
	}
	text = {
		localization_key = count_default_male_cisalpine
		fallback = yes
	}
}
CountFemaleCisalpine = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_female_cisalpine
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_female_cisalpine_independent
	}
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_count_female_italian
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_female_cisalpine_independent
	}
	text = {
		localization_key = count_default_female_cisalpine
		fallback = yes
	}
}
CountyCisalpine = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			is_male = yes
			is_independent_ruler = no
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_male_cisalpine
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			is_male = no
			exists = liege
			is_independent_ruler = no
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_female_cisalpine
	}
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_county_italian
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = independent_duchy_cisalpine
	}
	text = {
		localization_key = county_default_cisalpine
		fallback = yes
	}
}
CountMaleSardinian = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_male_sardinian
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_default_male_sardinian
	}
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_count_male_sardinian
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_default_male_sardinian
	}
	text = {
		localization_key = count_default_male_sardinian
		fallback = yes
	}
}
CountFemaleSardinian = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_female_sardinian
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_default_female_sardinian
	}
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_count_female_sardinian
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_default_female_sardinian
	}
	text = {
		localization_key = count_default_female_sardinian
		fallback = yes
	}
}
CountySardinian = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			is_male = yes
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_male_sardinian
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			is_male = no
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_female_sardinian
	}
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_county_sardinian
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = independent_duchy_sardinian
	}
	text = {
		localization_key = county_default_sardinian
		fallback = yes
	}
}
CountMaleSicilian = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_male_sicilian
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_male_sicilian_independent
	}
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_count_male_sicilian
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_male_sicilian_independent
	}
	text = {
		localization_key = count_default_male_sicilian
		fallback = yes
	}
}
CountFemaleSicilian = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_female_sicilian
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_female_sicilian_independent
	}
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_count_female_sicilian
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_female_sicilian_independent
	}
	text = {
		localization_key = count_default_female_sicilian
		fallback = yes
	}
}
CountySicilian = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			is_male = yes
			exists = liege
			is_independent_ruler = no
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_male_sicilian
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			is_male = no
			exists = liege
			is_independent_ruler = no
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_female_sicilian
	}
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_county_sicilian
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = independent_duchy_sicilian
	}
	text = {
		localization_key = county_default_sicilian
		fallback = yes
	}
}
CountMaleLombard = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_male_lombard
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_male_lombard_independent
	}
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_count_male_lombard
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_male_lombard_independent
	}
	text = {
		localization_key = count_default_male_lombard
		fallback = yes
	}
}
CountFemaleLombard = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_female_lombard
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_female_lombard_independent
	}
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_count_female_lombard
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_female_lombard_independent
	}
	text = {
		localization_key = count_default_female_lombard
		fallback = yes
	}
}
CountyLombard = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			is_male = yes
			exists = liege
			is_independent_ruler = no
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_male_lombard
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			is_male = no
			exists = liege
			is_independent_ruler = no
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_female_lombard
	}
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_county_lombard
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = independent_duchy_lombard
	}
	text = {
		localization_key = county_default_lombard
		fallback = yes
	}
}
CountMaleCroatian = {
	type = character
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_count_male_croatian
	}
	text = {
		localization_key = count_default_male_croatian
		fallback = yes
	}
}
CountFemaleCroatian = {
	type = character
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_count_female_croatian
	}
	text = {
		localization_key = count_default_female_croatian
		fallback = yes
	}
}
CountyCroatian = {
	type = character
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_county_croatian
	}
	text = {
		localization_key = county_default_croatian
		fallback = yes
	}
}
CountMaleSerbian = {
	type = character
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_count_male_serbian
	}
	text = {
		localization_key = count_default_male_serbian
		fallback = yes
	}
}
CountFemaleSerbian = {
	type = character
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_count_female_serbian
	}
	text = {
		localization_key = count_default_female_serbian
		fallback = yes
	}
}
CountySerbian = {
	type = character
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_county_serbian
	}
	text = {
		localization_key = county_default_serbian
		fallback = yes
	}
}
CountMaleBulgarian = {
	type = character
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_count_male_bulgarian
	}
	text = {
		localization_key = count_default_male_bulgarian
		fallback = yes
	}
}
CountFemaleBulgarian = {
	type = character
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_count_female_bulgarian
	}
	text = {
		localization_key = count_default_female_bulgarian
		fallback = yes
	}
}
CountyBulgarian = {
	type = character
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_county_bulgarian
	}
	text = {
		localization_key = county_default_bulgarian
		fallback = yes
	}
}
CountMaleCzech = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_male_czech
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = furst_male_czech
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = furst_male_czech
	}
	text = {
		localization_key = count_default_male_czech
		fallback = yes
	}
}
CountFemaleCzech = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_female_czech
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = furst_female_czech
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = furst_female_czech
	}
	text = {
		localization_key = count_default_female_czech
		fallback = yes
	}
}
CountyCzech = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_czech
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = furstdom_czech
	}
	text = {
		localization_key = county_default_czech
		fallback = yes
	}
}
CountMalePolish = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_male_polish
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_default_male_polish
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_default_male_polish
	}
	text = {
		localization_key = count_default_male_polish
		fallback = yes
	}
}
CountFemalePolish = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_female_polish
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_default_female_polish
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_default_female_polish
	}
	text = {
		localization_key = count_default_female_polish
		fallback = yes
	}
}
CountyPolish = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = duchy_default_polish
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = duchy_default_polish
	}
	text = {
		localization_key = county_default_polish
		fallback = yes
	}
}
CountMaleSlovien = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_male_slovien
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = count_default_male_slovien
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = count_default_male_slovien
	}
	text = {
		localization_key = count_default_male_slovien
		fallback = yes
	}
}
CountFemaleSlovien = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_female_slovien
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = count_default_female_slovien
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = count_default_female_slovien
	}
	text = {
		localization_key = count_default_female_slovien
		fallback = yes
	}
}
CountySlovien = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_slovien
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = county_default_slovien
	}
	text = {
		localization_key = county_default_slovien
		fallback = yes
	}
}
FreeMayorMaleMogyer = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			OR = {
				has_primary_title = title:c_cagliari
				has_primary_title = title:c_arborea
				has_primary_title = title:c_gallura
				has_primary_title = title:c_logudoro
			}
		}
		localization_key = judge_mogyer
	}
	text = {
		trigger = {
			exists = primary_spouse
			primary_spouse = {
				highest_held_title_tier = tier_county
				OR = {
					has_primary_title = title:c_cagliari
					has_primary_title = title:c_arborea
					has_primary_title = title:c_gallura
					has_primary_title = title:c_logudoro
				}
			}
		}
		localization_key = ctp_blank
	}
	text = {
		trigger = {
			exists = liege
			root.liege = {
				has_government = republic_government
			}
		}
		localization_key = perfecto_male_mogyer
	}
	text = {
		localization_key = count_republic_default_male_mogyer
		fallback = yes
	}
}
FreeMayorFemaleMogyer = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			OR = {
				has_primary_title = title:c_cagliari
				has_primary_title = title:c_arborea
				has_primary_title = title:c_gallura
				has_primary_title = title:c_logudoro
			}
		}
		localization_key = judge_mogyer
	}
	text = {
		trigger = {
			exists = primary_spouse
			primary_spouse = {
				highest_held_title_tier = tier_county
				OR = {
					has_primary_title = title:c_cagliari
					has_primary_title = title:c_arborea
					has_primary_title = title:c_gallura
					has_primary_title = title:c_logudoro
				}
			}
		}
		localization_key = ctp_blank
	}
	text = {
		trigger = {
			exists = liege
			root.liege = {
				has_government = republic_government
			}
		}
		localization_key = perfecto_female_mogyer
	}
	text = {
		localization_key = count_republic_default_female_mogyer
		fallback = yes
	}
}
FreeCityMogyer = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			OR = {
				has_primary_title = title:c_cagliari
				has_primary_title = title:c_arborea
				has_primary_title = title:c_gallura
				has_primary_title = title:c_logudoro
			}
		}
		localization_key = judgedom_mogyer
	}
	text = {
		localization_key = county_republic_default_mogyer
		fallback = yes
	}
}
FreeMayorMaleHung = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			OR = {
				has_primary_title = title:c_cagliari
				has_primary_title = title:c_arborea
				has_primary_title = title:c_gallura
				has_primary_title = title:c_logudoro
			}
		}
		localization_key = judge_hung
	}
	text = {
		trigger = {
			exists = primary_spouse
			primary_spouse = {
				highest_held_title_tier = tier_county
				OR = {
					has_primary_title = title:c_cagliari
					has_primary_title = title:c_arborea
					has_primary_title = title:c_gallura
					has_primary_title = title:c_logudoro
				}
			}
		}
		localization_key = ctp_blank
	}
	text = {
		trigger = {
			exists = liege
			root.liege = {
				has_government = republic_government
			}
		}
		localization_key = perfecto_male_hung
	}
	text = {
		trigger = {
			exists = liege
			root.liege = {
				has_primary_title = title:e_hre
			}
		}
		localization_key = free_mayor_male_hungarian
	}
	text = {
		localization_key = count_republic_default_male_hungarian
		fallback = yes
	}
}
FreeMayorFemaleHung = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			OR = {
				has_primary_title = title:c_cagliari
				has_primary_title = title:c_arborea
				has_primary_title = title:c_gallura
				has_primary_title = title:c_logudoro
			}
		}
		localization_key = judge_hung
	}
	text = {
		trigger = {
			exists = primary_spouse
			primary_spouse = {
				highest_held_title_tier = tier_county
				OR = {
					has_primary_title = title:c_cagliari
					has_primary_title = title:c_arborea
					has_primary_title = title:c_gallura
					has_primary_title = title:c_logudoro
				}
			}
		}
		localization_key = ctp_blank
	}
	text = {
		trigger = {
			exists = liege
			root.liege = {
				has_government = republic_government
			}
		}
		localization_key = perfecto_female_hung
	}
	text = {
		trigger = {
			exists = liege
			root.liege = {
				has_primary_title = title:e_hre
			}
		}
		localization_key = free_mayor_female_hungarian
	}
	text = {
		localization_key = count_republic_default_female_hungarian
		fallback = yes
	}
}
FreeCityHung = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			OR = {
				has_primary_title = title:c_cagliari
				has_primary_title = title:c_arborea
				has_primary_title = title:c_gallura
				has_primary_title = title:c_logudoro
			}
		}
		localization_key = judgedom_hung
	}
	text = {
		trigger = {
			exists = liege
			root.liege = {
				has_primary_title = title:e_hre
			}
		}
		localization_key = free_city_hungarian
	}
	text = {
		localization_key = county_republic_default_hungarian
		fallback = yes
	}
}
CountMaleHung = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_hungarian
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = title_prince_male_hungarian
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = title_prince_male_hungarian
	}
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
		}
		localization_key = count_feudalclan_male_hungarian_independent
	}
	text = {
		localization_key = count_default_male_hungarian
		fallback = yes
	}
}
CountFemaleHung = {
	type = character
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = hre_prince_female_hungarian
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
				}
				OR = {
					AND = {
						has_realm_law = crown_authority_1
						liege = {
							NOR = {
								has_realm_law = crown_authority_1
								has_realm_law = crown_authority_2
								has_realm_law = crown_authority_3
							}
						}
					}
					AND = {
						has_realm_law = crown_authority_2
						liege = {
							NOR = {
								has_realm_law = crown_authority_2
								has_realm_law = crown_authority_3
							}
						}
					}
					AND = {
						has_realm_law = crown_authority_3
						liege = {
							NOT = {
								has_realm_law = crown_authority_3
							}
						}
					}
				}
			}
		}
		localization_key = hre_prince_female_hungarian
	}
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
		}
		localization_key = count_feudalclan_male_hungarian_independent
	}
	text = {
		localization_key = count_default_female_hungarian
		fallback = yes
	}
}
CountFemaleHolderHung = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_hungarian
	}
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = title_prince_female_hungarian
	}
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
		}
		localization_key = count_feudalclan_female_holder_hungarian_independent
	}
	text = {
		localization_key = count_default_male_hungarian
		fallback = yes
	}
}
CountyHung = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_hungarian
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = hre_princedom_hungarian
	}
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
		}
		localization_key = independent_county_hung
	}
	text = {
		localization_key = county_default_hungarian
		fallback = yes
	}
}


################################################################################################CTP - Independent County


DynastGoidIndepCountMale = {
	type = character
	text = {
		trigger = {
			culture = {
				any_parent_culture_or_above = {
					this = {
						has_cultural_pillar = heritage_north_germanic
					}
				}
			}
		}
		localization_key = king_male_gael_norse
	}
	text = {
		localization_key = indep_count_male_goid
		fallback = yes
	}
}
IndepCountMaleGoid = {
	type = character
	text = {
		trigger = {
			has_culture = culture:irish
		}
		localization_key = count_default_male_irish
	}
	text = {
		localization_key = count_feudalclan_male_gaelic_independent
		fallback = yes
	}
}
DynastGoidIndepCountFemale = {
	type = character
	text = {
		trigger = {
			culture = {
				any_parent_culture_or_above = {
					this = {
						has_cultural_pillar = heritage_north_germanic
					}
				}
			}
		}
		localization_key = king_female_gael_norse
	}
	text = {
		localization_key = indep_count_female_goid
		fallback = yes
	}
}
IndepCountFemaleGoid = {
	type = character
	text = {
		trigger = {
			has_culture = culture:irish
		}
		localization_key = count_default_female_irish
	}
	text = {
		localization_key = count_feudalclan_female_gaelic_independent
		fallback = yes
	}
}
IndepCountyGoid = {
	type = character
	text = {
		trigger = {
			has_culture = culture:irish
		}
		localization_key = county_default_irish
	}
	text = {
		trigger = {
			highest_held_title_tier >= tier_duchy
		}
		localization_key = county_default_gaelic
	}
	text = {
		fallback = yes
		localization_key = independent_county_gaelic
	}
}
AngloIndepCountMale = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_male_anglo_saxon
	}
	text = {
		trigger = {
			is_ruler = yes
		}
		localization_key = indep_count_default_male_holder_anglo
	}
	text = {
		fallback = yes
		localization_key = indep_count_default_male_anglo
	}
}
AngloIndepCountMaleTwo = {
	type = character
	text = {
		trigger = {
			culture = {
				any_parent_culture_or_above = {
					this = {
						has_cultural_pillar = heritage_north_germanic
					}
				}
			}
		}
		localization_key = count_feudalclan_male_anglo_norse_independent
	}
	text = {
		fallback = yes
		localization_key = king_default_male_anglo_saxon
	}
}
AngloIndepCounty = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_duchy
		}
		localization_key = county_feudalclan_anglo
	}
	text = {
		trigger = {
			is_independent_ruler = yes
			root.faith = {
				has_doctrine = tenet_struggle_submission
			}
		}
		localization_key = sultanate_anglo_saxon
	}
	text = {
		fallback = yes
		localization_key = kingdom_default_anglo_saxon
	}
}
OldSaxonIndepCounty = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_duchy
		}
		localization_key = county_old_saxon
	}
	text = {
		fallback = yes
		localization_key = independent_county_old_saxon
	}
}
PictishCumbrianIndepCounty = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_duchy
			root.culture = culture:pictish
		}
		localization_key = county_default_pictish
	}
	text = {
		trigger = {
			highest_held_title_tier >= tier_duchy
			root.culture = culture:cumbrian
		}
		localization_key = county_default_cumbrian
	}
	text = {
		fallback = yes
		localization_key = independent_county_pictish_cumbrian
	}
}
WelshIndepCounty = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_duchy
		}
		localization_key = county_default_welsh
	}
	text = {
		fallback = yes
		localization_key = independent_county_welsh
	}
}
CornishIndepCounty = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_duchy
		}
		localization_key = county_default_cornish
	}
	text = {
		fallback = yes
		localization_key = independent_county_cornish
	}
}
NorthIndepCounty = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_duchy
		}
		localization_key = county_default_norse_norwegian
	}
	text = {
		fallback = yes
		localization_key = kingdom_norse_norwegian
	}
}
SwedishIndepCounty = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_duchy
		}
		localization_key = county_default_swedish_danish
	}
	text = {
		fallback = yes
		localization_key = kingdom_swedish_danish
	}
}
FinnishIndepCounty = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_duchy
		}
		localization_key = county_feudalclan_finnish
	}
	text = {
		fallback = yes
		localization_key = independent_county_finnish
	}
}
SamiIndepCounty = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_duchy
		}
		localization_key = county_sami
	}
	text = {
		fallback = yes
		localization_key = kingdom_sami
	}
}
KarelianIndepCounty = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_duchy
		}
		localization_key = county_feudalclan_karelian
	}
	text = {
		fallback = yes
		localization_key = independent_county_karelian
	}
}
VepsianIndepCounty = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_duchy
		}
		localization_key = county_feudalclan_vepsian
	}
	text = {
		fallback = yes
		localization_key = independent_county_vepsian
	}
}
SaxonIndepCounty = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_duchy
		}
		localization_key = county_default_saxon
	}
	text = {
		fallback = yes
		localization_key = independent_county_saxon
	}
}
MiddleHighGermanIndepCounty = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_duchy
		}
		localization_key = county_default_middle_high_german
	}
	text = {
		fallback = yes
		localization_key = independent_county_middle_high_german
	}
}
FrisianIndepCounty = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_duchy
		}
		localization_key = county_frisian
	}
	text = {
		fallback = yes
		localization_key = independent_county_frisian
	}
}
DutchIndepCounty = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_duchy
		}
		localization_key = county_default_dutch
	}
	text = {
		fallback = yes
		localization_key = independent_county_dutch
	}
}
GeorgianIndepCounty = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_duchy
		}
		localization_key = county_georgian
	}
	text = {
		fallback = yes
		localization_key = independent_duchy_georgian
	}
}
AlanIndepCounty = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_duchy
		}
		localization_key = county_alan
	}
	text = {
		fallback = yes
		localization_key = duchy_default_alan
	}
}
SardinianIndepCounty = {
	type = character
	text = {
		trigger = {
			has_primary_title = title:e_byzantium
		}
		localization_key = byzantine_county_sardinian
	}
	text = {
		trigger = {
			highest_held_title_tier >= tier_duchy
			has_government = feudal_government
		}
		localization_key = county_default_sardinian
	}
	text = {
		trigger = {
			highest_held_title_tier >= tier_duchy
			has_government = republic_government
		}
		localization_key = county_republic_sardinian
	}
	text = {
		fallback = yes
		localization_key = judicatu_independent
	}
}
CroatianIndepCounty = {
	type = character
	text = {
		trigger = {
			has_primary_title = title:e_byzantium
		}
		localization_key = byzantine_county_croatian
	}
	text = {
		trigger = {
			highest_held_title_tier >= tier_duchy
		}
		localization_key = county_default_croatian
	}
	text = {
		fallback = yes
		localization_key = independent_county_croatian
	}
}
SerbianIndepCounty = {
	type = character
	text = {
		trigger = {
			has_primary_title = title:e_byzantium
		}
		localization_key = byzantine_county_serbian
	}
	text = {
		trigger = {
			highest_held_title_tier >= tier_duchy
		}
		localization_key = county_default_serbian
	}
	text = {
		fallback = yes
		localization_key = independent_county_serbian
	}
}
VlachIndepCounty = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_duchy
		}
		localization_key = county_feudalclan_vlach
	}
	text = {
		fallback = yes
		localization_key = independent_county_vlach
	}
}
BulgarianIndepCounty = {
	type = character
	text = {
		trigger = {
			has_primary_title = title:e_byzantium
		}
		localization_key = byzantine_county_bulgarian
	}
	text = {
		trigger = {
			highest_held_title_tier >= tier_duchy
		}
		localization_key = county_default_bulgarian
	}
	text = {
		fallback = yes
		localization_key = independent_county_bulgarian
	}
}
MogyerIndepCountMale = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			OR = {
				has_primary_title = title:c_cagliari
				has_primary_title = title:c_arborea
				has_primary_title = title:c_gallura
				has_primary_title = title:c_logudoro
			}
		}
		localization_key = judge_mogyer
	}
	text = {
		trigger = {
			exists = primary_spouse
			primary_spouse = {
				highest_held_title_tier = tier_county
				OR = {
					has_primary_title = title:c_cagliari
					has_primary_title = title:c_arborea
					has_primary_title = title:c_gallura
					has_primary_title = title:c_logudoro
				}
			}
		}
		localization_key = ctp_blank
	}
	text = {
		fallback = yes
		localization_key = independent_count_male_mogyer
	}
}
MogyerIndepCountFemale = {
	type = character
	text = {
		trigger = {
			exists = primary_spouse
			primary_spouse = {
				highest_held_title_tier = tier_county
				OR = {
					has_primary_title = title:c_cagliari
					has_primary_title = title:c_arborea
					has_primary_title = title:c_gallura
					has_primary_title = title:c_logudoro
				}
			}
		}
		localization_key = ctp_blank
	}
	text = {
		fallback = yes
		localization_key = independent_count_female_mogyer
	}
}
MogyerIndepCountFemaleHolder = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			OR = {
				has_primary_title = title:c_cagliari
				has_primary_title = title:c_arborea
				has_primary_title = title:c_gallura
				has_primary_title = title:c_logudoro
			}
		}
		localization_key = judge_mogyer
	}
	text = {
		fallback = yes
		localization_key = independent_count_female_holder_mogyer
	}
}
MogyerIndepCounty = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			OR = {
				has_primary_title = title:c_cagliari
				has_primary_title = title:c_arborea
				has_primary_title = title:c_gallura
				has_primary_title = title:c_logudoro
			}
		}
		localization_key = judgedom_mogyer
	}
	text = {
		trigger = {
			highest_held_title_tier >= tier_duchy
		}
		localization_key = independent_county_mogyer
	}
	text = {
		fallback = yes
		localization_key = independent_county_mogyer
	}
}
HungIndepCountMale = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			OR = {
				has_primary_title = title:c_cagliari
				has_primary_title = title:c_arborea
				has_primary_title = title:c_gallura
				has_primary_title = title:c_logudoro
			}
		}
		localization_key = judge_hung
	}
	text = {
		trigger = {
			exists = primary_spouse
			primary_spouse = {
				highest_held_title_tier = tier_county
				OR = {
					has_primary_title = title:c_cagliari
					has_primary_title = title:c_arborea
					has_primary_title = title:c_gallura
					has_primary_title = title:c_logudoro
				}
			}
		}
		localization_key = ctp_blank
	}
	text = {
		fallback = yes
		localization_key = independent_count_male_hung
	}
}
HungIndepCountFemale = {
	type = character
	text = {
		trigger = {
			exists = primary_spouse
			primary_spouse = {
				highest_held_title_tier = tier_county
				OR = {
					has_primary_title = title:c_cagliari
					has_primary_title = title:c_arborea
					has_primary_title = title:c_gallura
					has_primary_title = title:c_logudoro
				}
			}
		}
		localization_key = ctp_blank
	}
	text = {
		fallback = yes
		localization_key = independent_count_female_hung
	}
}
HungIndepCountFemaleHolder = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			OR = {
				has_primary_title = title:c_cagliari
				has_primary_title = title:c_arborea
				has_primary_title = title:c_gallura
				has_primary_title = title:c_logudoro
			}
		}
		localization_key = judge_hung
	}
	text = {
		fallback = yes
		localization_key = independent_count_female_holder_hung
	}
}
HungIndepCounty = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			OR = {
				has_primary_title = title:c_cagliari
				has_primary_title = title:c_arborea
				has_primary_title = title:c_gallura
				has_primary_title = title:c_logudoro
			}
		}
		localization_key = judgedom_hung
	}
	text = {
		trigger = {
			highest_held_title_tier >= tier_duchy
		}
		localization_key = county_default_hungarian
	}
	text = {
		fallback = yes
		localization_key = independent_county_hung
	}
}
PrussianIndepCounty = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_duchy
		}
		localization_key = county_feudalclan_hungarian
	}
	text = {
		fallback = yes
		localization_key = independent_land_prussian
	}
}
RusIndepCountMale = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			OR = {
				has_primary_title = title:c_cagliari
				has_primary_title = title:c_arborea
				has_primary_title = title:c_gallura
				has_primary_title = title:c_logudoro
			}
		}
		localization_key = judge_rus
	}
	text = {
		trigger = {
			exists = primary_spouse
			primary_spouse = {
				highest_held_title_tier = tier_county
				OR = {
					has_primary_title = title:c_cagliari
					has_primary_title = title:c_arborea
					has_primary_title = title:c_gallura
					has_primary_title = title:c_logudoro
				}
			}
		}
		localization_key = ctp_blank
	}
	text = {
		fallback = yes
		localization_key = independent_count_male_rus
	}
}
RusIndepCountFemale = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			OR = {
				has_primary_title = title:c_cagliari
				has_primary_title = title:c_arborea
				has_primary_title = title:c_gallura
				has_primary_title = title:c_logudoro
			}
		}
		localization_key = judge_rus
	}
	text = {
		trigger = {
			exists = primary_spouse
			primary_spouse = {
				highest_held_title_tier = tier_county
				OR = {
					has_primary_title = title:c_cagliari
					has_primary_title = title:c_arborea
					has_primary_title = title:c_gallura
					has_primary_title = title:c_logudoro
				}
			}
		}
		localization_key = ctp_blank
	}
	text = {
		fallback = yes
		localization_key = independent_count_female_rus
	}
}
RusIndepCounty = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_duchy
		}
		localization_key = county_feudalclan_russian
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			OR = {
				has_primary_title = title:c_cagliari
				has_primary_title = title:c_arborea
				has_primary_title = title:c_gallura
				has_primary_title = title:c_logudoro
			}
		}
		localization_key = judgedom_rus
	}
	text = {
		fallback = yes
		localization_key = independent_county_rus
	}
}
IlmenianIndepCountMale = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			OR = {
				has_primary_title = title:c_cagliari
				has_primary_title = title:c_arborea
				has_primary_title = title:c_gallura
				has_primary_title = title:c_logudoro
			}
		}
		localization_key = judge_old_east_slavic
	}
	text = {
		trigger = {
			exists = primary_spouse
			primary_spouse = {
				highest_held_title_tier = tier_county
				OR = {
					has_primary_title = title:c_cagliari
					has_primary_title = title:c_arborea
					has_primary_title = title:c_gallura
					has_primary_title = title:c_logudoro
				}
			}
		}
		localization_key = ctp_blank
	}
	text = {
		fallback = yes
		localization_key = independent_count_male_ilmenian
	}
}
OldEastSlavicIndepCountMale = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			OR = {
				has_primary_title = title:c_cagliari
				has_primary_title = title:c_arborea
				has_primary_title = title:c_gallura
				has_primary_title = title:c_logudoro
			}
		}
		localization_key = judge_old_east_slavic
	}
	text = {
		trigger = {
			exists = primary_spouse
			primary_spouse = {
				highest_held_title_tier = tier_county
				OR = {
					has_primary_title = title:c_cagliari
					has_primary_title = title:c_arborea
					has_primary_title = title:c_gallura
					has_primary_title = title:c_logudoro
				}
			}
		}
		localization_key = ctp_blank
	}
	text = {
		fallback = yes
		localization_key = independent_count_male_old_east_slavic
	}
}
OldEastSlavicIndepCountFemale = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			OR = {
				has_primary_title = title:c_cagliari
				has_primary_title = title:c_arborea
				has_primary_title = title:c_gallura
				has_primary_title = title:c_logudoro
			}
		}
		localization_key = judge_old_east_slavic
	}
	text = {
		trigger = {
			exists = primary_spouse
			primary_spouse = {
				highest_held_title_tier = tier_county
				OR = {
					has_primary_title = title:c_cagliari
					has_primary_title = title:c_arborea
					has_primary_title = title:c_gallura
					has_primary_title = title:c_logudoro
				}
			}
		}
		localization_key = ctp_blank
	}
	text = {
		fallback = yes
		localization_key = independent_count_female_old_east_slavic
	}
}
OldEastSlavicIndepCounty = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_duchy
			has_culture = culture:ilmenian
		}
		localization_key = county_feudalclan_ilmenian
	}
	text = {
		trigger = {
			highest_held_title_tier >= tier_duchy
			OR = {
				has_culture = culture:severian
				has_culture = culture:volhynian
			}
		}
		localization_key = county_feudalclan_severian_volhynian
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			OR = {
				has_primary_title = title:c_cagliari
				has_primary_title = title:c_arborea
				has_primary_title = title:c_gallura
				has_primary_title = title:c_logudoro
			}
		}
		localization_key = judgedom_old_east_slavic
	}
	text = {
		fallback = yes
		localization_key = independent_county_old_east_slavic
	}
}
KanuriIndepCounty = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_duchy
		}
		localization_key = county_kanuri
	}
	text = {
		fallback = yes
		localization_key = independent_county_kanuri
	}
}


################################################################################################CTP - Duchy


DynastyDuchyMaleIrish = {
	type = character
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_male_irish
	}
	text = {
		trigger = {
			root.top_liege ?= {
				culture = {
					has_cultural_pillar = heritage_west_germanic
				}
				OR = {
					has_primary_title = title:e_britannia
					has_primary_title = title:k_england
					has_primary_title = title:k_scotland
				}
			}
		}
		localization_key = duke_default_male_irish
	}
	text = {
		trigger = {
			is_ruler = yes
		}
		localization_key = duke_male_holder_irish
	}
	text = {
		localization_key = duke_male_non_holder_irish
		fallback = yes
	}
}
DukeMaleIrish = {
	type = character
	text = {
		trigger = {
			culture = {
				any_parent_culture_or_above = {
					this = {
						has_cultural_pillar = heritage_north_germanic
					}
				}
			}
		}
		localization_key = earl_male_gael_norse
	}
	text = {
		localization_key = duke_default_male_irish
		fallback = yes
	}
}
DynastyDuchyFemaleIrish = {
	type = character
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_female_irish
	}
	text = {
		trigger = {
			root.top_liege ?= {
				culture = {
					has_cultural_pillar = heritage_west_germanic
				}
				OR = {
					has_primary_title = title:e_britannia
					has_primary_title = title:k_england
					has_primary_title = title:k_scotland
				}
			}
		}
		localization_key = duke_default_female_irish
	}
	text = {
		trigger = {
			is_ruler = yes
		}
		localization_key = duke_female_holder_irish
	}
	text = {
		localization_key = duke_female_non_holder_irish
		fallback = yes
	}
}
DukeFemaleIrish = {
	type = character
	text = {
		trigger = {
			culture = {
				any_parent_culture_or_above = {
					this = {
						has_cultural_pillar = heritage_north_germanic
					}
				}
			}
		}
		localization_key = earl_female_gael_norse
	}
	text = {
		localization_key = duke_default_female_irish
		fallback = yes
	}
}
DuchyIrish = {
	type = character
	text = {
		trigger = {
			vassal_contract_has_flag = has_march_contract
		}
		localization_key = march_irish
	}
	text = {
		trigger = {
			root.top_liege ?= {
				culture = {
					has_cultural_pillar = heritage_west_germanic
				}
				OR = {
					has_primary_title = title:e_britannia
					has_primary_title = title:k_england
					has_primary_title = title:k_scotland
				}
			}
		}
		localization_key = duchy_default_irish
	}
	text = {
		localization_key = duchy_dynast_irish
		fallback = yes
	}
}
DynastDuchyIrish = {
	type = character
	text = {
		trigger = {
			culture = {
				any_parent_culture_or_above = {
					this = {
						has_cultural_pillar = heritage_north_germanic
					}
				}
			}
		}
		localization_key = earldom_irish
	}
	text = {
		localization_key = duchy_default_irish
		fallback = yes
	}
}
DynastyDuchyMaleGaelic = {
	type = character
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_male_irish
	}
	text = {
		trigger = {
			root.top_liege ?= {
				culture = {
					has_cultural_pillar = heritage_west_germanic
				}
				OR = {
					has_primary_title = title:e_britannia
					has_primary_title = title:k_england
					has_primary_title = title:k_scotland
				}
			}
		}
		localization_key = duke_default_male_gaelic
	}
	text = {
		trigger = {
			is_ruler = yes
		}
		localization_key = duke_male_holder_gaelic
	}
	text = {
		localization_key = duke_male_non_holder_gaelic
		fallback = yes
	}
}
DukeMaleGaelic = {
	type = character
	text = {
		trigger = {
			culture = {
				any_parent_culture_or_above = {
					this = {
						has_cultural_pillar = heritage_north_germanic
					}
				}
			}
		}
		localization_key = earl_male_gael_norse
	}
	text = {
		localization_key = duke_default_male_gaelic
		fallback = yes
	}
}
DynastyDuchyFemaleGaelic = {
	type = character
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_female_irish
	}
	text = {
		trigger = {
			root.top_liege ?= {
				culture = {
					has_cultural_pillar = heritage_west_germanic
				}
				OR = {
					has_primary_title = title:e_britannia
					has_primary_title = title:k_england
					has_primary_title = title:k_scotland
				}
			}
		}
		localization_key = duke_default_female_gaelic
	}
	text = {
		trigger = {
			is_ruler = yes
		}
		localization_key = duke_female_holder_gaelic
	}
	text = {
		localization_key = duke_female_non_holder_gaelic
		fallback = yes
	}
}
DukeFemaleGaelic = {
	type = character
	text = {
		trigger = {
			culture = {
				any_parent_culture_or_above = {
					this = {
						has_cultural_pillar = heritage_north_germanic
					}
				}
			}
		}
		localization_key = earl_female_gael_norse
	}
	text = {
		localization_key = duke_default_female_gaelic
		fallback = yes
	}
}
DuchyGaelic = {
	type = character
	text = {
		trigger = {
			vassal_contract_has_flag = has_march_contract
		}
		localization_key = march_irish
	}
	text = {
		trigger = {
			root.top_liege ?= {
				culture = {
					has_cultural_pillar = heritage_west_germanic
				}
				OR = {
					has_primary_title = title:e_britannia
					has_primary_title = title:k_england
					has_primary_title = title:k_scotland
				}
			}
		}
		localization_key = duchy_default_gaelic
	}
	text = {
		localization_key = duchy_dynast_gaelic
		fallback = yes
	}
}
DynastDuchyGaelic = {
	type = character
	text = {
		trigger = {
			culture = {
				any_parent_culture_or_above = {
					this = {
						has_cultural_pillar = heritage_north_germanic
					}
				}
			}
		}
		localization_key = earldom_irish
	}
	text = {
		localization_key = duchy_default_gaelic
		fallback = yes
	}
}
DukeMaleEnglish = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_male_english
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_male_english_independent
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_male_english
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_male_english
	}
	text = {
		trigger = {
			OR = {
				any_held_title = {
					count = 2
					tier = tier_duchy
				}
				AND = {
					exists = primary_spouse
						any_held_title = {
						count = 2
						tier = tier_duchy
					}
				}
			}
		}
		localization_key = grand_duke_male_english
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_male_english_independent
	}
	text = {
		localization_key = duke_default_male_english
		fallback = yes
	}
}
DukeFemaleEnglish = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_female_english
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_female_english_independent
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_female_english
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_female_english
	}
	text = {
		trigger = {
			OR = {
				any_held_title = {
					count = 2
					tier = tier_duchy
				}
				AND = {
					exists = primary_spouse
						any_held_title = {
						count = 2
						tier = tier_duchy
					}
				}
			}
		}
		localization_key = grand_duke_female_english
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_female_english_independent
	}
	text = {
		localization_key = duke_default_female_english
		fallback = yes
	}
}
DuchyEnglish = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier = tier_duchy
			is_male = yes
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_english_male
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_duchy
			is_male = no
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_english_female
	}
	text = {
		trigger = {
			vassal_contract_has_flag = has_march_contract
		}
		localization_key = march_english
	}
	text = {
		trigger = {
			vassal_contract_has_flag = has_palatinate_contract
		}
		localization_key = palatinate_english
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_duchy
			any_held_title = {
				count = 2
				tier = tier_duchy
			}
		}
		localization_key = grand_duchy_english
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_duchy
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = independent_duchy_english
	}
	text = {
		localization_key = duchy_default_english
		fallback = yes
	}
}
DukeMaleAngloSaxon = {
	type = character
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_male_anglo_saxon
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_male_anglo_saxon
	}
	text = {
		localization_key = duke_default_male_anglo_saxon
		fallback = yes
	}
}
DukeFemaleAngloSaxon = {
	type = character
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_female_anglo_saxon
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_female_anglo_saxon
	}
	text = {
		localization_key = duke_default_female_anglo_saxon
		fallback = yes
	}
}
DuchyAngloSaxon = {
	type = character
	text = {
		trigger = {
			vassal_contract_has_flag = has_march_contract
		}
		localization_key = march_anglo_saxon
	}
	text = {
		trigger = {
			vassal_contract_has_flag = has_palatinate_contract
		}
		localization_key = palatinate_anglo_saxon
	}
	text = {
		localization_key = duchy_default_anglo_saxon
		fallback = yes
	}
}
DukeMaleOldSaxon = {
	type = character
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_male_old_saxon
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_male_old_saxon
	}
	text = {
		localization_key = duke_default_male_old_saxon
		fallback = yes
	}
}
DukeFemaleOldSaxon = {
	type = character
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_female_old_saxon
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_female_old_saxon
	}
	text = {
		localization_key = duke_default_female_old_saxon
		fallback = yes
	}
}
DuchyOldSaxon = {
	type = character
	text = {
		trigger = {
			vassal_contract_has_flag = has_march_contract
		}
		localization_key = march_old_saxon
	}
	text = {
		trigger = {
			vassal_contract_has_flag = has_palatinate_contract
		}
		localization_key = palatinate_old_saxon
	}
	text = {
		localization_key = duchy_default_old_saxon
		fallback = yes
	}
}
DukeMaleScottish = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_male_english
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_male_scottish_independent
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_male_scottish
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_male_english
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_male_scottish_independent
	}
	text = {
		localization_key = duke_default_male_scottish
		fallback = yes
	}
}
DukeFemaleScottish = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_female_english
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_female_scottish_independent
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_female_scottish
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_female_english
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_female_scottish_independent
	}
	text = {
		localization_key = duke_default_female_scottish
		fallback = yes
	}
}
DuchyScottish = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier = tier_duchy
			is_male = yes
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_english_male
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_duchy
			is_male = no
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_english_female
	}
	text = {
		trigger = {
			vassal_contract_has_flag = has_march_contract
		}
		localization_key = march_english
	}
	text = {
		trigger = {
			vassal_contract_has_flag = has_palatinate_contract
		}
		localization_key = palatinate_english
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_duchy
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = independent_duchy_scottish
	}
	text = {
		localization_key = duchy_default_scottish
		fallback = yes
	}
}
DukeMalePictish = {
	type = character
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_male_pictish
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_male_pictish
	}
	text = {
		localization_key = duke_default_male_pictish
		fallback = yes
	}
}
DukeFemalePictish = {
	type = character
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_female_pictish
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_female_pictish
	}
	text = {
		localization_key = duke_default_female_pictish
		fallback = yes
	}
}
DuchyPictish = {
	type = character
	text = {
		trigger = {
			vassal_contract_has_flag = has_march_contract
		}
		localization_key = march_pictish
	}
	text = {
		trigger = {
			vassal_contract_has_flag = has_palatinate_contract
		}
		localization_key = palatinate_pictish
	}
	text = {
		localization_key = duchy_default_pictish
		fallback = yes
	}
}
DukeMaleWelsh = {
	type = character
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_male_welsh
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_male_welsh
	}
	text = {
		localization_key = duke_default_male_welsh
		fallback = yes
	}
}
DukeFemaleWelsh = {
	type = character
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_female_welsh
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_female_welsh
	}
	text = {
		localization_key = duke_default_female_welsh
		fallback = yes
	}
}
DuchyWelsh = {
	type = character
	text = {
		trigger = {
			vassal_contract_has_flag = has_march_contract
		}
		localization_key = march_welsh
	}
	text = {
		trigger = {
			vassal_contract_has_flag = has_palatinate_contract
		}
		localization_key = palatinate_welsh
	}
	text = {
		localization_key = duchy_default_welsh
		fallback = yes
	}
}
DukeMaleBreton = {
	type = character
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_male_breton
	}
	text = {
		localization_key = duke_default_male_breton
		fallback = yes
	}
}
DukeFemaleBreton = {
	type = character
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_female_breton
	}
	text = {
		localization_key = duke_default_female_breton
		fallback = yes
	}
}
DuchyBreton = {
	type = character
	text = {
		trigger = {
			vassal_contract_has_flag = has_march_contract
		}
		localization_key = march_breton
	}
	text = {
		localization_key = duchy_default_breton
		fallback = yes
	}
}
DukeMaleCornish = {
	type = character
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_male_cornish
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_female_cornish
	}	
	text = {
		localization_key = duke_default_male_cornish
		fallback = yes
	}
}
DukeFemaleCornish = {
	type = character
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_female_cornish
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_female_cornish
	}
	text = {
		localization_key = duke_default_female_cornish
		fallback = yes
	}
}
DuchyCornish = {
	type = character
	text = {
		trigger = {
			vassal_contract_has_flag = has_march_contract
		}
		localization_key = march_cornish
	}
	text = {
		trigger = {
			vassal_contract_has_flag = has_palatinate_contract
		}
		localization_key = palatinate_cornish
	}
	text = {
		localization_key = duchy_default_cornish
		fallback = yes
	}
}
DukeMaleFrench = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_male_french
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_male_french_independent
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_male_french
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_male_french
	}
	text = {
		trigger = {
			OR = {
				any_held_title = {
					count = 2
					tier = tier_duchy
				}
				AND = {
					exists = primary_spouse
						any_held_title = {
						count = 2
						tier = tier_duchy
					}
				}
			}
		}
		localization_key = grand_duke_male_french
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_male_french_independent
	}
	text = {
		trigger = {
			OR = {
				has_primary_title = title:d_dauphine
				AND = {
					exists = primary_spouse
					primary_spouse = {
						has_primary_title = title:d_dauphine
					}
				}
			}
			OR = {
				AND = {
					exists = father
					father = {
						highest_held_title_tier >= tier_kingdom
						primary_heir = root
					}
				}
				AND = {
					exists = mother
					mother = {
						highest_held_title_tier >= tier_kingdom
						primary_heir = root
					}
				}
				AND = {
					exists = primary_spouse.father
					primary_spouse.father = {
						highest_held_title_tier >= tier_kingdom
						primary_heir = root
					}
				}
				AND = {
					exists = primary_spouse.mother
					primary_spouse.mother = {
						highest_held_title_tier >= tier_kingdom
						primary_heir = root
					}
				}
			}
		}
		localization_key = dolphin_male_french
	}
	text = {
		localization_key = duke_default_male_french
		fallback = yes
	}
}
DukeFemaleFrench = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_female_french
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_female_french_independent
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_female_french
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_female_french
	}
	text = {
		trigger = {
			OR = {
				any_held_title = {
					count = 2
					tier = tier_duchy
				}
				AND = {
					exists = primary_spouse
						any_held_title = {
						count = 2
						tier = tier_duchy
					}
				}
			}
		}
		localization_key = grand_duke_female_french
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_female_french_independent
	}
	text = {
		trigger = {
			OR = {
				has_primary_title = title:d_dauphine
				AND = {
					exists = primary_spouse
					primary_spouse = {
						has_primary_title = title:d_dauphine
					}
				}
			}
			OR = {
				AND = {
					exists = father
					father = {
						highest_held_title_tier >= tier_kingdom
						primary_heir = root
					}
				}
				AND = {
					exists = mother
					mother = {
						highest_held_title_tier >= tier_kingdom
						primary_heir = root
					}
				}
				AND = {
					exists = primary_spouse.father
					primary_spouse.father = {
						highest_held_title_tier >= tier_kingdom
						primary_heir = root
					}
				}
				AND = {
					exists = primary_spouse.mother
					primary_spouse.mother = {
						highest_held_title_tier >= tier_kingdom
						primary_heir = root
					}
				}
			}
		}
		localization_key = dolphin_female_french
	}
	text = {
		localization_key = duke_default_female_french
		fallback = yes
	}
}
DuchyFrench = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier = tier_duchy
			is_male = yes
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_french_male
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_duchy
			is_male = no
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_french_female
	}
	text = {
		trigger = {
			vassal_contract_has_flag = has_march_contract
		}
		localization_key = march_french
	}
	text = {
		trigger = {
			vassal_contract_has_flag = has_palatinate_contract
		}
		localization_key = palatinate_french
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_duchy
			any_held_title = {
				count = 2
				tier = tier_duchy
			}
		}
		localization_key = grand_duchy_french
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_duchy
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = independent_duchy_french
	}
	text = {
		localization_key = duchy_default_french
		fallback = yes
	}
}
DukeMaleNorman = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_male_norman
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_male_norman_independent
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_male_french
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_male_french
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_male_norman_independent
	}
	text = {
		localization_key = duke_default_male_french
		fallback = yes
	}
}
DukeFemaleNorman = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_female_norman
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_female_norman_independent
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_female_norman
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_female_french
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_female_norman_independent
	}
	text = {
		localization_key = duke_default_female_french
		fallback = yes
	}
}
DuchyNorman = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier = tier_duchy
			is_male = yes
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_norman_male
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_duchy
			is_male = no
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_norman_female
	}
	text = {
		trigger = {
			vassal_contract_has_flag = has_march_contract
		}
		localization_key = march_french
	}
	text = {
		trigger = {
			vassal_contract_has_flag = has_palatinate_contract
		}
		localization_key = palatinate_norman
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_duchy
			any_held_title = {
				count = 2
				tier = tier_duchy
			}
		}
		localization_key = grand_duchy_french
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_duchy
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = independent_duchy_norman
	}
	text = {
		localization_key = duchy_default_french
		fallback = yes
	}
}
DukeMaleOccitan = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_male_occitan
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_male_occitan_independent
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_male_occitan
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_male_occitan
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_male_occitan_independent
	}
	text = {
		localization_key = duke_default_male_occitan
		fallback = yes
	}
}
DukeFemaleOccitan = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_female_occitan
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_female_occitan_independent
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_female_occitan
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_female_occitan
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_female_occitan_independent
	}
	text = {
		localization_key = duke_default_female_occitan
		fallback = yes
	}
}
DuchyOccitan = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier = tier_duchy
			is_male = yes
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_occitan_male
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_duchy
			is_male = no
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_occitan_female
	}
	text = {
		trigger = {
			vassal_contract_has_flag = has_march_contract
		}
		localization_key = march_occitan
	}
	text = {
		trigger = {
			vassal_contract_has_flag = has_palatinate_contract
		}
		localization_key = palatinate_occitan
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_duchy
			any_held_title = {
				count = 2
				tier = tier_duchy
			}
		}
		localization_key = grand_duchy_occitan
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_duchy
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = independent_duchy_occitan
	}
	text = {
		localization_key = duchy_default_occitan
		fallback = yes
	}
}
DukeMaleOutremer = {
	type = character
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_male_outremer
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_male_outremer
	}
	text = {
		localization_key = duke_default_male_outremer
		fallback = yes
	}
}
DukeFemaleOutremer = {
	type = character
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_female_outremer
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_female_outremer
	}
	text = {
		localization_key = duke_default_female_outremer
		fallback = yes
	}
}
DuchyOutremer = {
	type = character
	text = {
		trigger = {
			vassal_contract_has_flag = has_march_contract
		}
		localization_key = march_outremer
	}
	text = {
		trigger = {
			vassal_contract_has_flag = has_palatinate_contract
		}
		localization_key = palatinate_outremer
	}
	text = {
		localization_key = duchy_default_outremer
		fallback = yes
	}
}
DukeMaleBasque = {
	type = character
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_male_basque
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_male_basque
	}
	text = {
		localization_key = duke_default_male_basque
		fallback = yes
	}
}
DukeFemaleBasque = {
	type = character
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_female_basque
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_female_basque
	}
	text = {
		localization_key = duke_default_female_basque
		fallback = yes
	}
}
DuchyBasque = {
	type = character
	text = {
		trigger = {
			vassal_contract_has_flag = has_march_contract
		}
		localization_key = march_basque
	}
	text = {
		trigger = {
			vassal_contract_has_flag = has_palatinate_contract
		}
		localization_key = palatinate_basque
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_duchy
			any_held_title = {
				count = 2
				tier = tier_duchy
			}
		}
		localization_key = grand_duchy_basque
	}
	text = {
		localization_key = duchy_default_basque
		fallback = yes
	}
}
DukeMaleCastilian = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_male_castillian
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_feudalclan_male_castilian_independent
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_male_castilian
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_male_castilian
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_feudalclan_male_castilian_independent
	}
	text = {
		localization_key = duke_default_male_castilian
		fallback = yes
	}
}
DukeFemaleCastilian = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_female_castillian
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_feudalclan_female_castilian_independent
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_female_castilian
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_female_castilian
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_feudalclan_female_castilian_independent
	}
	text = {
		localization_key = duke_default_female_castilian
		fallback = yes
	}
}
DuchyCastilian = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier = tier_duchy
			is_male = yes
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_castilian_male
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_duchy
			is_male = no
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_castilian_female
	}
	text = {
		trigger = {
			vassal_contract_has_flag = has_march_contract
		}
		localization_key = march_castilian
	}
	text = {
		trigger = {
			vassal_contract_has_flag = has_palatinate_contract
		}
		localization_key = palatinate_castilian
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_duchy
			any_held_title = {
				count = 2
				tier = tier_duchy
			}
		}
		localization_key = grand_duchy_castilian
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_duchy
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = independent_duchy_castilian
	}
	text = {
		localization_key = duchy_default_castilian
		fallback = yes
	}
}
DukeMaleCatalan = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_male_catalan
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_feudalclan_male_catalan_independent
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_male_catalan
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_male_catalan
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_feudalclan_male_catalan_independent
	}
	text = {
		localization_key = duke_default_male_catalan
		fallback = yes
	}
}
DukeFemaleCatalan = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_female_catalan
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_feudalclan_female_catalan_independent
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_female_catalan
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_female_catalan
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_feudalclan_female_catalan_independent
	}
	text = {
		localization_key = duke_default_female_catalan
		fallback = yes
	}
}
DuchyCatalan = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier = tier_duchy
			is_male = yes
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_catalan_male
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_duchy
			is_male = no
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_catalan_female
	}
	text = {
		trigger = {
			vassal_contract_has_flag = has_march_contract
		}
		localization_key = march_catalan
	}
	text = {
		trigger = {
			vassal_contract_has_flag = has_palatinate_contract
		}
		localization_key = palatinate_catalan
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_duchy
			any_held_title = {
				count = 2
				tier = tier_duchy
			}
		}
		localization_key = grand_duchy_catalan
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_duchy
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = independent_duchy_catalan
	}
	text = {
		localization_key = duchy_default_catalan
		fallback = yes
	}
}
DukeMalePortGalician = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_male_portugese
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_feudalclan_male_portugese_independent
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_male_portugese
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_male_portugese
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_feudalclan_male_portugese_independent
	}
	text = {
		localization_key = duke_default_male_portugese
		fallback = yes
	}
}
DukeFemalePortGalician = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_female_portugese
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_feudalclan_female_portugese_independent
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_female_portugese
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_female_portugese
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_feudalclan_female_portugese_independent
	}
	text = {
		localization_key = duke_default_female_portugese
		fallback = yes
	}
}
DuchyPortGalician = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier = tier_duchy
			is_male = yes
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_portugese_male
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_duchy
			is_male = no
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_portugese_female
	}
	text = {
		trigger = {
			vassal_contract_has_flag = has_march_contract
		}
		localization_key = march_portugese
	}
	text = {
		trigger = {
			vassal_contract_has_flag = has_palatinate_contract
		}
		localization_key = palatinate_portugese
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_duchy
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = independent_duchy_portugese
	}
	text = {
		localization_key = duchy_default_portugese
		fallback = yes
	}
}
DukeMaleVisigothic = {
	type = character
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_male_visigothic
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_male_visigothic
	}
	text = {
		localization_key = duke_default_male_visigothic
		fallback = yes
	}
}
DukeFemaleVisigothic = {
	type = character
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_female_visigothic
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_female_visigothic
	}
	text = {
		localization_key = duke_default_female_visigothic
		fallback = yes
	}
}
DuchyVisigothic = {
	type = character
	text = {
		trigger = {
			vassal_contract_has_flag = has_march_contract
		}
		localization_key = march_visigothic
	}
	text = {
		trigger = {
			vassal_contract_has_flag = has_palatinate_contract
		}
		localization_key = palatinate_visigothic
	}
	text = {
		localization_key = duchy_default_visigothic
		fallback = yes
	}
}
DukeMaleAsturleonese = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_male_asturleonese
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_feudalclan_male_asturleonese_independent
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_male_asturleonese
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_male_asturleonese
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_feudalclan_male_asturleonese_independent
	}
	text = {
		localization_key = duke_default_male_asturleonese
		fallback = yes
	}
}
DukeFemaleAsturleonese = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_female_asturleonese
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_feudalclan_female_asturleonese_independent
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_female_asturleonese
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_female_asturleonese
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_feudalclan_female_asturleonese_independent
	}
	text = {
		localization_key = duke_default_female_asturleonese
		fallback = yes
	}
}
DuchyAsturleonese = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier = tier_duchy
			is_male = yes
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_asturleonese_male
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_duchy
			is_male = no
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_asturleonese_female
	}
	text = {
		trigger = {
			vassal_contract_has_flag = has_march_contract
		}
		localization_key = march_asturleonese
	}
	text = {
		trigger = {
			vassal_contract_has_flag = has_palatinate_contract
		}
		localization_key = palatinate_asturleonese
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_duchy
			any_held_title = {
				count = 2
				tier = tier_duchy
			}
		}
		localization_key = grand_duchy_asturleonese
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_duchy
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = independent_duchy_asturleonese
	}
	text = {
		localization_key = duchy_default_asturleonese
		fallback = yes
	}
}
DukeMaleAragonese = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_male_aragonese
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_feudalclan_male_aragonese_independent
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_male_aragonese
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_male_aragonese
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_feudalclan_male_aragonese_independent
	}
	text = {
		localization_key = duke_default_male_aragonese
		fallback = yes
	}
}
DukeFemaleAragonese = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_female_aragonese
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_feudalclan_female_aragonese_independent
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_female_aragonese
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_female_aragonese
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_feudalclan_female_aragonese_independent
	}
	text = {
		localization_key = duke_default_female_aragonese
		fallback = yes
	}
}
DuchyAragonese = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier = tier_duchy
			is_male = yes
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_aragonese_male
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_duchy
			is_male = no
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_aragonese_female
	}
	text = {
		trigger = {
			vassal_contract_has_flag = has_march_contract
		}
		localization_key = march_aragonese
	}
	text = {
		trigger = {
			vassal_contract_has_flag = has_palatinate_contract
		}
		localization_key = palatinate_aragonese
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_duchy
			any_held_title = {
				count = 2
				tier = tier_duchy
			}
		}
		localization_key = grand_duchy_aragonese
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_duchy
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = independent_duchy_aragonese
	}
	text = {
		localization_key = duchy_default_aragonese
		fallback = yes
	}
}
DukeMaleFinnish = {
	type = character
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_male_finnish
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_male_finnish
	}
	text = {
		localization_key = duke_default_male_finnish
		fallback = yes
	}
}
DukeFemaleFinnish = {
	type = character
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_female_finnish
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_female_finnish
	}
	text = {
		localization_key = duke_default_female_finnish
		fallback = yes
	}
}
DuchyFinnish = {
	type = character
	text = {
		trigger = {
			vassal_contract_has_flag = has_march_contract
		}
		localization_key = march_finnish
	}
	text = {
		trigger = {
			vassal_contract_has_flag = has_palatinate_contract
		}
		localization_key = palatinate_finnish
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_duchy
			any_held_title = {
				count = 2
				tier = tier_duchy
			}
		}
		localization_key = grand_duchy_finnish
	}
	text = {
		localization_key = duchy_default_finnish
		fallback = yes
	}
}
DukeMaleEstonian = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_male_estonian
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_feudalclan_male_estonian_independent
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_male_estonian
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_male_estonian
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_feudalclan_male_estonian_independent
	}
	text = {
		localization_key = duke_default_male_estonian
		fallback = yes
	}
}
DukeFemaleEstonian = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_female_estonian
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_feudalclan_female_estonian_independent
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_female_estonian
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_female_estonian
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_feudalclan_female_estonian_independent
	}
	text = {
		localization_key = duke_default_female_estonian
		fallback = yes
	}
}
DuchyEstonian = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier = tier_duchy
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_estonian
	}
	text = {
		trigger = {
			vassal_contract_has_flag = has_march_contract
		}
		localization_key = march_estonian
	}
	text = {
		trigger = {
			vassal_contract_has_flag = has_palatinate_contract
		}
		localization_key = palatinate_estonian
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_duchy
			any_held_title = {
				count = 2
				tier = tier_duchy
			}
		}
		localization_key = grand_duchy_estonian
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_duchy
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = independent_duchy_estonian
	}
	text = {
		localization_key = duchy_default_estonian
		fallback = yes
	}
}
DukeMaleSaxon = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_male_saxon
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_male_saxon_independent
	}
	text = {
		trigger = {
			OR = {
				has_primary_title = title:d_transylvania
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						has_primary_title = title:d_transylvania
					}
				}
			}
			exists = liege
			top_liege.primary_title = {
				NOT = {
					has_title_law = princely_elective_succession_law
				}
			}
		}
		localization_key = vajda_male_saxon
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_male_saxon
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_male_saxon
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_male_saxon_independent
	}
	text = {
		localization_key = duke_default_male_saxon
		fallback = yes
	}
}
DukeFemaleSaxon = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_female_saxon
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_female_saxon_independent
	}
	text = {
		trigger = {
			OR = {
				has_primary_title = title:d_transylvania
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						has_primary_title = title:d_transylvania
					}
				}
			}
			exists = liege
			top_liege.primary_title = {
				NOT = {
					has_title_law = princely_elective_succession_law
				}
			}
		}
		localization_key = vajda_female_saxon
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_female_saxon
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_female_saxon
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_female_saxon_independent
	}
	text = {
		localization_key = duke_default_female_saxon
		fallback = yes
	}
}
DuchySaxon = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier = tier_duchy
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_saxon
	}
	text = {
		trigger = {
			vassal_contract_has_flag = has_march_contract
		}
		localization_key = march_saxon
	}
	text = {
		trigger = {
			vassal_contract_has_flag = has_palatinate_contract
		}
		localization_key = palatinate_saxon
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_duchy
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = independent_duchy_saxon
	}
	text = {
		localization_key = duchy_default_saxon
		fallback = yes
	}
}
DukeMaleMiddleHighGerman = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_male_middle_high_german
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_male_middle_high_german_independent
	}
	text = {
		trigger = {
			OR = {
				has_primary_title = title:d_transylvania
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						has_primary_title = title:d_transylvania
					}
				}
			}
			exists = liege
			top_liege.primary_title = {
				NOT = {
					has_title_law = princely_elective_succession_law
				}
			}
		}
		localization_key = vajda_male_middle_high_german
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_male_middle_high_german
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_male_middle_high_german
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_male_middle_high_german_independent
	}
	text = {
		localization_key = duke_default_male_middle_high_german
		fallback = yes
	}
}
DukeFemaleMiddleHighGerman = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_female_middle_high_german
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_female_middle_high_german_independent
	}
	text = {
		trigger = {
			OR = {
				has_primary_title = title:d_transylvania
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						has_primary_title = title:d_transylvania
					}
				}
			}
			exists = liege
			top_liege.primary_title = {
				NOT = {
					has_title_law = princely_elective_succession_law
				}
			}
		}
		localization_key = vajda_female_middle_high_german
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_female_middle_high_german
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_female_middle_high_german
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_female_middle_high_german_independent
	}
	text = {
		localization_key = duke_default_female_middle_high_german
		fallback = yes
	}
}
DuchyMiddleHighGerman = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier = tier_duchy
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_middle_high_german
	}
	text = {
		trigger = {
			vassal_contract_has_flag = has_march_contract
		}
		localization_key = march_middle_high_german
	}
	text = {
		trigger = {
			vassal_contract_has_flag = has_palatinate_contract
		}
		localization_key = palatinate_middle_high_german
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_duchy
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = independent_duchy_middle_high_german
	}
	text = {
		localization_key = duchy_default_middle_high_german
		fallback = yes
	}
}
DukeMaleFrisian = {
	type = character
	text = {
		trigger = {
			OR = {
				has_primary_title = title:d_transylvania
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						has_primary_title = title:d_transylvania
					}
				}
			}
			exists = liege
			top_liege.primary_title = {
				NOT = {
					has_title_law = princely_elective_succession_law
				}
			}
		}
		localization_key = vajda_male_frisian
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_male_frisian
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_male_frisian
	}
	text = {
		localization_key = duke_default_male_frisian
		fallback = yes
	}
}
DukeFemaleFrisian = {
	type = character
	text = {
		trigger = {
			OR = {
				has_primary_title = title:d_transylvania
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						has_primary_title = title:d_transylvania
					}
				}
			}
			exists = liege
			top_liege.primary_title = {
				NOT = {
					has_title_law = princely_elective_succession_law
				}
			}
		}
		localization_key = vajda_female_frisian
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_female_frisian
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_female_frisian
	}
	text = {
		localization_key = duke_default_female_frisian
		fallback = yes
	}
}
DuchyFrisian = {
	type = character
	text = {
		trigger = {
			vassal_contract_has_flag = has_march_contract
		}
		localization_key = march_frisian
	}
	text = {
		trigger = {
			vassal_contract_has_flag = has_palatinate_contract
		}
		localization_key = palatinate_frisian
	}
	text = {
		localization_key = duchy_default_frisian
		fallback = yes
	}
}
DukeMaleDutch = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_male_dutch
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = furst_male_dutch
	}
	text = {
		trigger = {
			OR = {
				has_primary_title = title:d_transylvania
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						has_primary_title = title:d_transylvania
					}
				}
			}
			exists = liege
			top_liege.primary_title = {
				NOT = {
					has_title_law = princely_elective_succession_law
				}
			}
		}
		localization_key = vajda_male_dutch
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_male_dutch
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_male_dutch
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = furst_male_dutch
	}
	text = {
		localization_key = duke_default_male_dutch
		fallback = yes
	}
}
DukeFemaleDutch = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_female_dutch
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = furst_female_dutch
	}
	text = {
		trigger = {
			OR = {
				has_primary_title = title:d_transylvania
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						has_primary_title = title:d_transylvania
					}
				}
			}
			exists = liege
			top_liege.primary_title = {
				NOT = {
					has_title_law = princely_elective_succession_law
				}
			}
		}
		localization_key = vajda_female_dutch
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_female_dutch
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_female_dutch
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = furst_female_dutch
	}
	text = {
		localization_key = duke_default_female_dutch
		fallback = yes
	}
}
DuchyDutch = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier = tier_duchy
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_dutch
	}
	text = {
		trigger = {
			vassal_contract_has_flag = has_march_contract
		}
		localization_key = march_dutch
	}
	text = {
		trigger = {
			vassal_contract_has_flag = has_palatinate_contract
		}
		localization_key = palatinate_dutch
	}
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = furstdom_dutch
	}
	text = {
		localization_key = duchy_default_dutch
		fallback = yes
	}
}
DukeMaleArabic = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					has_culture = culture:andalusian
					vassal_contract_has_flag = has_palatinate_contract
					has_religion = religion:christianity_religion
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						has_culture = culture:andalusian
						vassal_contract_has_flag = has_march_contract
						has_religion = religion:christianity_religion
					}
				}
			}
		}
		localization_key = marquess_male_christian_andulusian
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_male_arabic_group
	}
	text = {
		trigger = {
			OR = {
				AND = {
					has_culture = culture:andalusian
					vassal_contract_has_flag = has_palatinate_contract
					has_religion = religion:christianity_religion
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						has_culture = culture:andalusian
						vassal_contract_has_flag = has_palatinate_contract
						has_religion = religion:christianity_religion
					}
				}
			}
		}
		localization_key = palatine_male_christian_andulusian
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
			NOT = {
				has_religion = religion:christianity_religion
			}
		}
		localization_key = palatine_male_arabic_group
	}
	text = {
		trigger = {
			has_culture = culture:andalusian
			has_religion = religion:christianity_religion
		}
		localization_key = duke_christian_male_andulusian
	}
	text = {
		localization_key = duke_default_male_arabic_group
		fallback = yes
	}
}
DukeFemaleArabic = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					has_culture = culture:andalusian
					vassal_contract_has_flag = has_march_contract
					has_religion = religion:christianity_religion
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						has_culture = culture:andalusian
						vassal_contract_has_flag = has_march_contract
						has_religion = religion:christianity_religion
					}
				}
			}
		}
		localization_key = marquess_female_christian_andulusian
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_female_arabic_group
	}
	text = {
		trigger = {
			OR = {
				AND = {
					has_culture = culture:andalusian
					vassal_contract_has_flag = has_palatinate_contract
					has_religion = religion:christianity_religion
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						has_culture = culture:andalusian
						vassal_contract_has_flag = has_palatinate_contract
						has_religion = religion:christianity_religion
					}
				}
			}
		}
		localization_key = palatine_female_christian_andulusian
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
			NOT = {
				has_religion = religion:christianity_religion
			}
		}
		localization_key = palatine_female_arabic_group
	}
	text = {
		trigger = {
			has_culture = culture:andalusian
			has_religion = religion:christianity_religion
		}
		localization_key = duke_christian_female_andulusian
	}
	text = {
		localization_key = duke_default_female_arabic_group
		fallback = yes
	}
}
DuchyArabic = {
	type = character
	text = {
		trigger = {
			vassal_contract_has_flag = has_march_contract
			has_culture = culture:andalusian
			has_religion = religion:christianity_religion
		}
		localization_key = march_christian_andulusian
	}
	text = {
		trigger = {
			vassal_contract_has_flag = has_palatinate_contract
			has_culture = culture:andalusian
			has_religion = religion:christianity_religion
		}
		localization_key = palatinate_christian_andulusian
	}
	text = {
		trigger = {
			vassal_contract_has_flag = has_march_contract
		}
		localization_key = march_arabic_group
	}
	text = {
		trigger = {
			has_culture = culture:andalusian
			has_religion = religion:christianity_religion
		}
		localization_key = duchy_christian_andulusian
	}
	text = {
		localization_key = duchy_arabic_group
		fallback = yes
	}
}
DukeMaleCoptic = {
	type = character
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_coptic
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_male_coptic
	}
	text = {
		localization_key = duke_default_male_coptic
		fallback = yes
	}
}
DukeFemaleCoptic = {
	type = character
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_coptic
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_female_coptic
	}
	text = {
		localization_key = duke_default_female_coptic
		fallback = yes
	}
}
DuchyCoptic = {
	type = character
	text = {
		trigger = {
			vassal_contract_has_flag = has_march_contract
		}
		localization_key = march_coptic
	}
	text = {
		trigger = {
			vassal_contract_has_flag = has_palatinate_contract
		}
		localization_key = palatinate_coptic
	}
	text = {
		localization_key = duchy_default_coptic
		fallback = yes
	}
}
DukeMaleArmenian = {
	type = character
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_male_armenian
	}
	text = {
		localization_key = duke_default_male_armenian
		fallback = yes
	}
}
DukeFemaleArmenian = {
	type = character
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_female_armenian
	}
	text = {
		localization_key = duke_default_female_armenian
		fallback = yes
	}
}
DukeFemaleHolderArmenian = {
	type = character
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_female_armenian
	}
	text = {
		localization_key = duke_default_holder_female_armenian
		fallback = yes
	}
}
DuchyArmenian = {
	type = character
	text = {
		trigger = {
			vassal_contract_has_flag = has_march_contract
		}
		localization_key = march_armenian
	}
	text = {
		localization_key = duchy_default_armenian
		fallback = yes
	}
}
DukeMaleGreek = {
	type = character
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = byzantine_marquess_male_greek
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_male_greek
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_male_greek
	}
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_duke_male_greek
	}
	text = {
		localization_key = duke_default_male_greek
		fallback = yes
	}
}
DukeFemaleGreek = {
	type = character
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = byzantine_marquess_female_greek
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_female_greek
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_female_greek
	}
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_duke_female_greek
	}
	text = {
		localization_key = duke_default_female_greek
		fallback = yes
	}
}
DuchyGreek = {
	type = character
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
			vassal_contract_has_flag = has_march_contract
		}
		localization_key = byzantine_march_greek
	}
	text = {
		trigger = {
			vassal_contract_has_flag = has_march_contract
		}
		localization_key = march_greek
	}
	text = {
		trigger = {
			vassal_contract_has_flag = has_palatinate_contract
		}
		localization_key = palatinate_greek
	}
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_duchy_greek
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_duchy
			any_held_title = {
				count = 2
				tier = tier_duchy
			}
		}
		localization_key = grand_duchy_greek
	}
	text = {
		localization_key = duchy_default_greek
		fallback = yes
	}
}
DukeGeorgian = {
	type = character
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_georgian
	}
	text = {
		localization_key = duke_default_georgian
		fallback = yes
	}
}
DuchyGeorgian = {
	type = character
	text = {
		trigger = {
			vassal_contract_has_flag = has_march_contract
		}
		localization_key = march_georgian
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_duchy
			any_held_title = {
				count = 2
				tier = tier_duchy
			}
		}
		localization_key = grand_duchy_georgian
	}
	text = {
		localization_key = duchy_default_georgian
		fallback = yes
	}
}
DukeMaleAlan = {
	type = character
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_male_alan
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_male_alan
	}
	text = {
		localization_key = duke_default_male_alan
		fallback = yes
	}
}
DukeFemaleAlan = {
	type = character
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_female_alan
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_female_alan
	}
	text = {
		localization_key = duke_default_female_alan
		fallback = yes
	}
}
DuchyAlan = {
	type = character
	text = {
		trigger = {
			vassal_contract_has_flag = has_march_contract
		}
		localization_key = march_alan
	}
	text = {
		trigger = {
			vassal_contract_has_flag = has_palatinate_contract
		}
		localization_key = county_alan
	}
	text = {
		localization_key = duchy_default_alan
		fallback = yes
	}
}
DukeMaleAssyrian = {
	type = character
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_male_assyrian
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_male_assyrian
	}
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_duke_male_assyrian
	}
	text = {
		localization_key = duke_default_male_assyrian
		fallback = yes
	}
}
DukeFemaleAssyrian = {
	type = character
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_female_assyrian
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_female_assyrian
	}
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_duke_female_assyrian
	}
	text = {
		localization_key = duke_default_female_assyrian
		fallback = yes
	}
}
DuchyAssyrian = {
	type = character
	text = {
		trigger = {
			vassal_contract_has_flag = has_march_contract
		}
		localization_key = march_assyrian
	}
	text = {
		trigger = {
			vassal_contract_has_flag = has_palatinate_contract
		}
		localization_key = palatinate_assyrian
	}
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_duchy_assyrian
	}
	text = {
		localization_key = duchy_default_assyrian
		fallback = yes
	}
}
DukeMaleItalian = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_male_italian
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_feudalclan_male_italian_independent
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_male_italian
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_male_italian
	}
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_duke_male_italian
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_feudalclan_male_italian_independent
	}
	text = {
		localization_key = duke_default_male_italian
		fallback = yes
	}
}
DukeFemaleItalian = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_female_italian
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_feudalclan_female_italian_independent
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_female_italian
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_female_italian
	}
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_duke_female_italian
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_feudalclan_female_italian_independent
	}
	text = {
		localization_key = duke_default_female_italian
		fallback = yes
	}
}
DuchyItalian = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier = tier_duchy
			is_male = yes
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_male_italian
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_duchy
			is_male = no
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_female_italian
	}
	text = {
		trigger = {
			vassal_contract_has_flag = has_march_contract
		}
		localization_key = march_italian
	}
	text = {
		trigger = {
			vassal_contract_has_flag = has_palatinate_contract
		}
		localization_key = palatinate_italian
	}
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_duchy_italian
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_duchy
			any_held_title = {
				count = 2
				tier = tier_duchy
			}
		}
		localization_key = grand_duchy_italian
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_duchy
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = independent_duchy_italian
	}
	text = {
		localization_key = duchy_default_italian
		fallback = yes
	}
}
DukeMaleRoman = { ##Unusually set but should work
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = very_shameful_roman_male
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_feudalclan_male_roman_independent
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = duke_tribal_male_roman ##"Dux"
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_male_roman
	}
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = duke_tribal_male_roman
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_feudalclan_male_roman_independent
	}
	text = {
		trigger = {
			highest_held_title_tier >= tier_duchy ##Is the holder not spouse
		}
		localization_key = duke_feudalclan_roman_holder
	}
	text = {
		localization_key = duke_default_male_roman
		fallback = yes
	}
}
DukeFemaleRoman = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = very_shameful_roman_female
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_feudalclan_female_roman_independent
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = duke_tribal_female_roman ##"Ducissa"
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_female_roman
	}
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = duke_tribal_female_roman
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_feudalclan_female_roman_independent
	}
	text = {
		trigger = {
			highest_held_title_tier >= tier_duchy ##Is the holder not spouse
		}
		localization_key = duke_feudalclan_roman_holder
	}
	text = {
		localization_key = duke_default_female_roman
		fallback = yes
	}
}
DuchyRoman = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier = tier_duchy
			is_male = yes
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = very_shameful_roman_mas
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_duchy
			is_male = no
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = very_shameful_roman_fem
	}
	text = {
		trigger = {
			vassal_contract_has_flag = has_march_contract
		}
		localization_key = march_roman
	}
	text = {
		trigger = {
			vassal_contract_has_flag = has_palatinate_contract
		}
		localization_key = palatinate_roman
	}
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = surpreme_roman_duchy
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_duchy
			any_held_title = {
				count = 2
				tier = tier_duchy
			}
		}
		localization_key = grand_duchy_roman
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_duchy
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = independent_duchy_roman
	}
	text = {
		localization_key = duchy_default_roman
		fallback = yes
	}
}
DukeMaleCisalpine = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_male_cisalpine
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_male_cisalpine_independent
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_male_italian
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_male_italian
	}
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_duke_male_italian
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_male_cisalpine_independent
	}
	text = {
		localization_key = duke_default_male_cisalpine
		fallback = yes
	}
}
DukeFemaleCisalpine = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_female_cisalpine
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_female_cisalpine_independent
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_female_italian
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_female_italian
	}
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_duke_female_italian
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_female_cisalpine_independent
	}
	text = {
		localization_key = duke_default_female_cisalpine
		fallback = yes
	}
}
DuchyCisalpine = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier = tier_duchy
			is_male = yes
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_male_cisalpine
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_duchy
			is_male = no
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_female_cisalpine
	}
	text = {
		trigger = {
			vassal_contract_has_flag = has_march_contract
		}
		localization_key = march_italian
	}
	text = {
		trigger = {
			vassal_contract_has_flag = has_palatinate_contract
		}
		localization_key = palatinate_italian
	}
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_duchy_italian
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_duchy
			any_held_title = {
				count = 2
				tier = tier_duchy
			}
		}
		localization_key = grand_duchy_cisalpine
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_duchy
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = independent_duchy_cisalpine
	}
	text = {
		localization_key = duchy_default_cisalpine
		fallback = yes
	}
}
DukeMaleSardinian = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_male_sardinian
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_default_male_sardinian
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_male_sardinian
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_male_sardinian
	}
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_duke_male_sardinian
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_default_male_sardinian
	}
	text = {
		localization_key = duke_default_male_sardinian
		fallback = yes
	}
}
DukeFemaleSardinian = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_female_sardinian
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_default_female_sardinian
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_female_sardinian
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_female_sardinian
	}
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_duke_female_sardinian
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_default_female_sardinian
	}
	text = {
		localization_key = duke_default_female_sardinian
		fallback = yes
	}
}
DuchySardinian = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier = tier_duchy
			is_male = yes
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_male_sardinian
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_duchy
			is_male = no
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_female_sardinian
	}
	text = {
		trigger = {
			vassal_contract_has_flag = has_march_contract
		}
		localization_key = march_sardinian
	}
	text = {
		trigger = {
			vassal_contract_has_flag = has_palatinate_contract
		}
		localization_key = palatinate_sardinian
	}
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_duchy_sardinian
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_duchy
			any_held_title = {
				count = 2
				tier = tier_duchy
			}
		}
		localization_key = grand_duchy_sardinian
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_duchy
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = independent_duchy_sardinian
	}
	text = {
		localization_key = duchy_default_sardinian
		fallback = yes
	}
}
DukeMaleSicilian = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_male_sicilian
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_male_sicilian_independent
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_male_sicilian
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_male_sardinian
	}
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_duke_male_sardinian
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_male_sicilian_independent
	}
	text = {
		localization_key = duke_default_male_sardinian
		fallback = yes
	}
}
DukeFemaleSicilian = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_female_sicilian
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_female_sicilian_independent
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_female_sardinian
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_female_sardinian
	}
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_duke_female_sardinian
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_female_sicilian_independent
	}
	text = {
		localization_key = duke_default_female_sardinian
		fallback = yes
	}
}
DuchySicilian = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier = tier_duchy
			is_male = yes
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_male_sicilian
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_duchy
			is_male = no
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_female_sicilian
	}
	text = {
		trigger = {
			vassal_contract_has_flag = has_march_contract
		}
		localization_key = march_sardinian
	}
	text = {
		trigger = {
			vassal_contract_has_flag = has_palatinate_contract
		}
		localization_key = palatinate_sardinian
	}
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_duchy_sardinian
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_duchy
			any_held_title = {
				count = 2
				tier = tier_duchy
			}
		}
		localization_key = grand_duchy_sicilian
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_duchy
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = independent_duchy_sicilian
	}
	text = {
		localization_key = duchy_default_sardinian
		fallback = yes
	}
}
DukeMaleLombard = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_male_lombard
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_male_lombard_independent
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_male_lombard
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_male_lombard
	}
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_duke_male_lombard
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_male_lombard_independent
	}
	text = {
		localization_key = duke_default_male_lombard
		fallback = yes
	}
}
DukeFemaleLombard = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_female_lombard
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_female_lombard_independent
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_female_lombard
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_female_lombard
	}
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_duke_female_lombard
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_female_lombard_independent
	}
	text = {
		localization_key = duke_default_female_lombard
		fallback = yes
	}
}
DuchyLombard = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier = tier_duchy
			is_male = yes
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_male_lombard
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_duchy
			is_male = no
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_female_lombard
	}
	text = {
		trigger = {
			vassal_contract_has_flag = has_march_contract
		}
		localization_key = march_lombard
	}
	text = {
		trigger = {
			vassal_contract_has_flag = has_palatinate_contract
		}
		localization_key = palatinate_lombard
	}
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_duchy_lombard
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_duchy
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = independent_duchy_lombard
	}
	text = {
		localization_key = duchy_default_lombard
		fallback = yes
	}
}
DukeMaleCroatian = {
	type = character
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_male_croatian
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_male_croatian
	}
	text = {
		localization_key = duke_default_male_croatian
		fallback = yes
	}
}
DukeFemaleCroatian = {
	type = character
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_female_croatian
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_female_croatian
	}
	text = {
		localization_key = duke_default_female_croatian
		fallback = yes
	}
}
DuchyCroatian = {
	type = character
	text = {
		trigger = {
			vassal_contract_has_flag = has_march_contract
		}
		localization_key = march_croatian
	}
	text = {
		trigger = {
			vassal_contract_has_flag = has_palatinate_contract
		}
		localization_key = palatinate_croatian
	}
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_duchy_croatian
	}
	text = {
		localization_key = duchy_default_croatian
		fallback = yes
	}
}
DukeMaleSerbian = {
	type = character
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_male_serbian
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_male_serbian
	}
	text = {
		localization_key = duke_default_male_serbian
		fallback = yes
	}
}
DukeFemaleSerbian = {
	type = character
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_female_serbian
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_female_serbian
	}
	text = {
		localization_key = duke_default_female_serbian
		fallback = yes
	}
}
DuchySerbian = {
	type = character
	text = {
		trigger = {
			vassal_contract_has_flag = has_march_contract
		}
		localization_key = march_serbian
	}
	text = {
		trigger = {
			vassal_contract_has_flag = has_palatinate_contract
		}
		localization_key = palatinate_serbian
	}
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_duchy_serbian
	}
	text = {
		localization_key = duchy_default_serbian
		fallback = yes
	}
}
DukeMaleVlach = {
	type = character
	text = {
		trigger = {
			OR = {
				has_primary_title = title:d_transylvania
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						has_primary_title = title:d_transylvania
					}
				}
			}
			exists = liege
			top_liege.primary_title = {
				NOT = {
					has_title_law = princely_elective_succession_law
				}
			}
		}
		localization_key = vajda_male_vlach
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_male_vlach
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_male_vlach
	}
	text = {
		localization_key = duke_default_male_vlach
		fallback = yes
	}
}
DukeFemaleVlach = {
	type = character
	text = {
		trigger = {
			OR = {
				has_primary_title = title:d_transylvania
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						has_primary_title = title:d_transylvania
					}
				}
			}
			exists = liege
			top_liege.primary_title = {
				NOT = {
					has_title_law = princely_elective_succession_law
				}
			}
		}
		localization_key = vajda_female_vlach
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_female_vlach
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_female_vlach
	}
	text = {
		localization_key = duke_default_female_vlach
		fallback = yes
	}
}
DuchyVlach = {
	type = character
	text = {
		trigger = {
			has_primary_title = title:d_transylvania
			exists = liege
			top_liege.primary_title = {
				NOT = {
					has_title_law = princely_elective_succession_law
				}
			}
		}
		localization_key = vajdaasag_vlach
	}
	text = {
		trigger = {
			vassal_contract_has_flag = has_march_contract
		}
		localization_key = march_vlach
	}
	text = {
		trigger = {
			vassal_contract_has_flag = has_palatinate_contract
		}
		localization_key = palatinate_vlach
	}
	text = {
		localization_key = duchy_default_vlach
		fallback = yes
	}
}
DukeMalePom = {
	type = character
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_male_pom
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_male_pom
	}
	text = {
		localization_key = duke_default_male_pom
		fallback = yes
	}
}
DukeFemalePom = {
	type = character
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_female_pom
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_female_pom
	}
	text = {
		localization_key = duke_default_female_pom
		fallback = yes
	}
}
DuchyPom = {
	type = character
	text = {
		trigger = {
			vassal_contract_has_flag = has_march_contract
		}
		localization_key = march_pom
	}
	text = {
		trigger = {
			vassal_contract_has_flag = has_palatinate_contract
		}
		localization_key = palatinate_pom
	}
	text = {
		localization_key = duchy_default_pom
		fallback = yes
	}
}
DukeMaleCzech = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_male_czech
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = furst_male_czech
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_male_czech
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_male_czech
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = furst_male_czech
	}
	text = {
		localization_key = duke_default_male_czech
		fallback = yes
	}
}
DukeFemaleCzech = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_female_czech
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = furst_female_czech
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_female_czech
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_female_czech
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = furst_female_czech
	}
	text = {
		localization_key = duke_default_female_czech
		fallback = yes
	}
}
DuchyCzech = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier = tier_duchy
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_czech
	}
	text = {
		trigger = {
			vassal_contract_has_flag = has_march_contract
		}
		localization_key = march_czech
	}
	text = {
		trigger = {
			vassal_contract_has_flag = has_palatinate_contract
		}
		localization_key = palatinate_czech
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_duchy
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = furstdom_czech
	}
	text = {
		localization_key = duchy_default_czech
		fallback = yes
	}
}
DukeMalePolish = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_male_polish
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_default_male_polish
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_male_polish
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_male_polish
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_default_male_polish
	}
	text = {
		localization_key = duke_default_male_polish
		fallback = yes
	}
}
DukeFemalePolish = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_female_polish
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_default_female_polish
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_female_polish
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_female_polish
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_default_female_polish
	}
	text = {
		localization_key = duke_default_female_polish
		fallback = yes
	}
}
DuchyPolish = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier = tier_duchy
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = duchy_default_polish
	}
	text = {
		trigger = {
			vassal_contract_has_flag = has_march_contract
		}
		localization_key = march_polish
	}
	text = {
		trigger = {
			vassal_contract_has_flag = has_palatinate_contract
		}
		localization_key = palatinate_polish
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_duchy
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = duchy_default_polish
	}
	text = {
		localization_key = duchy_default_polish
		fallback = yes
	}
}
DukeMalePolabian = {
	type = character
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_male_polabian
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_male_polabian
	}
	text = {
		localization_key = duke_default_male_polabian
		fallback = yes
	}
}
DukeFemalePolabian = {
	type = character
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_female_polabian
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_female_polabian
	}
	text = {
		localization_key = duke_default_female_polabian
		fallback = yes
	}
}
DuchyPolabian = {
	type = character
	text = {
		trigger = {
			vassal_contract_has_flag = has_march_contract
		}
		localization_key = march_polabian
	}
	text = {
		trigger = {
			vassal_contract_has_flag = has_palatinate_contract
		}
		localization_key = palatinate_polabian
	}
	text = {
		localization_key = duchy_default_polabian
		fallback = yes
	}
}
DukeMaleSlovien = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_male_slovien
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_default_male_slovien
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_male_slovien
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_male_slovien
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_default_male_slovien
	}
	text = {
		localization_key = duke_default_male_slovien
		fallback = yes
	}
}
DukeFemaleSlovien = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_female_slovien
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_default_female_slovien
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_female_slovien
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_female_czech
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_default_female_slovien
	}
	text = {
		localization_key = duke_default_female_slovien
		fallback = yes
	}
}
DuchySlovien = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier = tier_duchy
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_slovien
	}
	text = {
		trigger = {
			vassal_contract_has_flag = has_march_contract
		}
		localization_key = march_slovien
	}
	text = {
		trigger = {
			vassal_contract_has_flag = has_palatinate_contract
		}
		localization_key = palatinate_slovien
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_duchy
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = duchy_default_slovien
	}
	text = {
		localization_key = duchy_default_slovien
		fallback = yes
	}
}
DukeMaleMogyer = {
	type = character
	text = {
		trigger = {
			OR = {
				has_primary_title = title:d_transylvania
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						has_primary_title = title:d_transylvania
					}
				}
			}
			exists = liege
			top_liege.primary_title = {
				NOT = {
					has_title_law = princely_elective_succession_law
				}
			}
		}
		localization_key = vajda_male_mogyer
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_male_mogyer
	}
	text = {
		localization_key = duke_default_male_mogyer
		fallback = yes
	}
}
DukeFemaleMogyer = {
	type = character
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				has_primary_title = title:d_transylvania
			}
			exists = liege
			top_liege.primary_title = {
				NOT = {
					has_title_law = princely_elective_succession_law
				}
			}
		}
		localization_key = vajda_female_mogyer
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_female_mogyer
	}
	text = {
		localization_key = duke_default_female_mogyer
		fallback = yes
	}
}
DukeHolderFemaleMogyer = {
	type = character
	text = {
		trigger = {
			has_primary_title = title:d_transylvania
			exists = liege
			top_liege.primary_title = {
				NOT = {
					has_title_law = princely_elective_succession_law
				}
			}
		}
		localization_key = vajda_male_mogyer
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_female_holder_mogyer
	}
	text = {
		localization_key = duke_holder_default_female_mogyer
		fallback = yes
	}
}
DuchyMogyer = {
	type = character
	text = {
		trigger = {
			has_primary_title = title:d_transylvania
			exists = liege
			top_liege.primary_title = {
				NOT = {
					has_title_law = princely_elective_succession_law
				}
			}
		}
		localization_key = vajdaasag_mogyer
	}
	text = {
		trigger = {
			vassal_contract_has_flag = has_march_contract
		}
		localization_key = march_mogyer
	}
	text = {
		localization_key = duchy_default_mogyer
		fallback = yes
	}
}
DukeMaleHung = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_hungarian
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = title_prince_male_hungarian
	}
	text = {
		trigger = {
			OR = {
				has_primary_title = title:d_transylvania
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						has_primary_title = title:d_transylvania
					}
				}
			}
			exists = liege
			top_liege.primary_title = {
				NOT = {
					has_title_law = princely_elective_succession_law
				}
			}
		}
		localization_key = vajda_male_hung
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_male_hung
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_male_hung
	}
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
		}
		localization_key = title_prince_male_hungarian
	}
	text = {
		localization_key = duke_default_male_hung
		fallback = yes
	}
}
DukeFemaleHung = {
	type = character
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = hre_prince_female_hungarian
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				has_primary_title = title:d_transylvania
			}
			exists = liege
			top_liege.primary_title = {
				NOT = {
					has_title_law = princely_elective_succession_law
				}
			}
		}
		localization_key = vajda_female_hung
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_female_hung
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_female_hung
	}
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
		}
		localization_key = hre_prince_female_hungarian
	}
	text = {
		localization_key = duke_default_female_hung
		fallback = yes
	}
}
DukeHolderFemaleHung = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_hungarian
	}
	text = {
		trigger = {
			has_primary_title = title:d_transylvania
			exists = liege
			top_liege.primary_title = {
				NOT = {
					has_title_law = princely_elective_succession_law
				}
			}
		}
		localization_key = vajda_male_hung
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_female_holder_hung
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_female_holder_hung
	}
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
		}
		localization_key = title_prince_female_hungarian
	}
	text = {
		localization_key = duke_holder_default_female_hung
		fallback = yes
	}
}
DuchyHung = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_hungarian
	}
	text = {
		trigger = {
			has_primary_title = title:d_transylvania
			exists = liege
			top_liege.primary_title = {
				NOT = {
					has_title_law = princely_elective_succession_law
				}
			}
		}
		localization_key = vajdaasag_hung
	}
	text = {
		trigger = {
			vassal_contract_has_flag = has_march_contract
		}
		localization_key = march_hung
	}
	text = {
		trigger = {
			vassal_contract_has_flag = has_palatinate_contract
		}
		localization_key = palatinate_hung
	}
	text = {
		localization_key = duchy_default_hung
		fallback = yes
	}
}
DukeMaleRus = {
	type = character
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_male_rus
	}
	text = {
		localization_key = duke_default_male_rus
		fallback = yes
	}
}
DukeFemaleRus = {
	type = character
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_female_rus
	}
	text = {
		localization_key = duke_default_female_rus
		fallback = yes
	}
}
DuchyRus = {
	type = character
	text = {
		trigger = {
			vassal_contract_has_flag = has_march_contract
		}
		localization_key = march_rus
	}
	text = {
		localization_key = duchy_default_rus
		fallback = yes
	}
}
DukeMaleBurmese = {
	type = character
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_burmese
	}
	text = {
		localization_key = duke_default_male_burmese
		fallback = yes
	}
}
DuchyBurmese = {
	type = character
	text = {
		trigger = {
			vassal_contract_has_flag = has_march_contract
		}
		localization_key = march_burmese
	}
	text = {
		localization_key = duchy_default_burmese
		fallback = yes
	}
}
DukeMaleHan = {
	type = character
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_han
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_male_han
	}
	text = {
		localization_key = duke_default_male_han
		fallback = yes
	}
}
DukeFemaleHan = {
	type = character
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_han
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_female_han
	}
	text = {
		localization_key = duke_default_female_han
		fallback = yes
	}
}
DuchyHan = {
	type = character
	text = {
		trigger = {
			vassal_contract_has_flag = has_march_contract
		}
		localization_key = march_han
	}
	text = {
		trigger = {
			vassal_contract_has_flag = has_palatinate_contract
		}
		localization_key = palatinate_han
	}
	text = {
		localization_key = duchy_default_han
		fallback = yes
	}
}
DukeMaleTelugu = {
	type = character
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_male_telugu
	}
	text = {
		localization_key = duke_default_male_telugu
		fallback = yes
	}
}
DukeFemaleTelugu = {
	type = character
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_female_telugu
	}
	text = {
		localization_key = duke_default_female_telugu
		fallback = yes
	}
}
DuchyTelugu = {
	type = character
	text = {
		trigger = {
			vassal_contract_has_flag = has_march_contract
		}
		localization_key = march_telugu
	}
	text = {
		localization_key = duchy_default_telugu
		fallback = yes
	}
}
DukeMaleKannada = {
	type = character
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_male_kannada
	}
	text = {
		localization_key = duke_default_male_kannada
		fallback = yes
	}
}
DukeFemaleKannada = {
	type = character
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_female_kannada
	}
	text = {
		localization_key = duke_default_female_kannada
		fallback = yes
	}
}
DuchyKannada = {
	type = character
	text = {
		trigger = {
			vassal_contract_has_flag = has_march_contract
		}
		localization_key = march_kannada
	}
	text = {
		localization_key = duchy_default_kannada
		fallback = yes
	}
}
DukeNubian = {
	type = character
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_nubian
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_nubian
	}
	text = {
		localization_key = duke_default_nubian
		fallback = yes
	}
}
DuchyNubian = {
	type = character
	text = {
		trigger = {
			vassal_contract_has_flag = has_march_contract
		}
		localization_key = march_nubian
	}
	text = {
		trigger = {
			vassal_contract_has_flag = has_palatinate_contract
		}
		localization_key = palatinate_nubian
	}
	text = {
		localization_key = duchy_default_nubian
		fallback = yes
	}
}
DukeMaleBengali = {
	type = character
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_bengali
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_bengali
	}
	text = {
		localization_key = duke_default_male_bengali
		fallback = yes
	}
}
DukeFemaleBengali = {
	type = character
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_bengali
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_bengali
	}
	text = {
		localization_key = duke_default_female_bengali
		fallback = yes
	}
}
DuchyBengali = {
	type = character
	text = {
		trigger = {
			vassal_contract_has_flag = has_march_contract
		}
		localization_key = march_bengali
	}
	text = {
		localization_key = duchy_default_bengali
		fallback = yes
	}
}
DukeMaleOriya = {
	type = character
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_oriya
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_oriya
	}
	text = {
		localization_key = duke_default_male_oriya
		fallback = yes
	}
}
DukeFemaleOriya = {
	type = character
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_oriya
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_oriya
	}
	text = {
		localization_key = duke_default_female_oriya
		fallback = yes
	}
}
DuchyOriya = {
	type = character
	text = {
		trigger = {
			vassal_contract_has_flag = has_march_contract
		}
		localization_key = march_oriya
	}
	text = {
		localization_key = duchy_default_oriya
		fallback = yes
	}
}
DukeMaleAssamese = {
	type = character
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_assamese
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_assamese
	}
	text = {
		localization_key = duke_default_male_assamese
		fallback = yes
	}
}
DukeFemaleAssamese = {
	type = character
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_assamese
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_assamese
	}
	text = {
		localization_key = duke_default_female_assamese
		fallback = yes
	}
}
DuchyAssamese = {
	type = character
	text = {
		trigger = {
			vassal_contract_has_flag = has_march_contract
		}
		localization_key = march_assamese
	}
	text = {
		localization_key = duchy_default_assamese
		fallback = yes
	}
}
DukeMaleHindustani = {
	type = character
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_hindustani
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_hindustani
	}
	text = {
		localization_key = duke_default_male_hindustani
		fallback = yes
	}
}
DukeFemaleHindustani = {
	type = character
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_hindustani
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_hindustani
	}
	text = {
		localization_key = duke_default_female_hindustani
		fallback = yes
	}
}
DuchyHindustani = {
	type = character
	text = {
		trigger = {
			vassal_contract_has_flag = has_march_contract
		}
		localization_key = march_hindustani
	}
	text = {
		localization_key = duchy_default_hindustani
		fallback = yes
	}
}
DukeMaleGujarati = {
	type = character
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_gujarati
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_gujarati
	}
	text = {
		localization_key = duke_default_male_gujarati
		fallback = yes
	}
}
DukeFemaleGujarati = {
	type = character
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_gujarati
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_gujarati
	}
	text = {
		localization_key = duke_default_female_gujarati
		fallback = yes
	}
}
DuchyGujarati = {
	type = character
	text = {
		trigger = {
			vassal_contract_has_flag = has_march_contract
		}
		localization_key = march_gujarati
	}
	text = {
		localization_key = duchy_default_gujarati
		fallback = yes
	}
}
DukeMalePunjabi = {
	type = character
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_punjabi
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_punjabi
	}
	text = {
		localization_key = duke_default_male_punjabi
		fallback = yes
	}
}
DukeFemalePunjabi = {
	type = character
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_punjabi
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_punjabi
	}
	text = {
		localization_key = duke_default_female_punjabi
		fallback = yes
	}
}
DuchyPunjabi = {
	type = character
	text = {
		trigger = {
			vassal_contract_has_flag = has_march_contract
		}
		localization_key = march_punjabi
	}
	text = {
		localization_key = duchy_default_punjabi
		fallback = yes
	}
}
DukeMaleRajput = {
	type = character
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_rajput
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_rajput
	}
	text = {
		localization_key = duke_default_male_rajput
		fallback = yes
	}
}
DukeFemaleRajput = {
	type = character
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_rajput
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_rajput
	}
	text = {
		localization_key = duke_default_female_rajput
		fallback = yes
	}
}
DuchyRajput = {
	type = character
	text = {
		trigger = {
			vassal_contract_has_flag = has_march_contract
		}
		localization_key = march_rajput
	}
	text = {
		localization_key = duchy_default_rajput
		fallback = yes
	}
}
DukeMaleSindhi = {
	type = character
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_sindhi
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_sindhi
	}
	text = {
		localization_key = duke_default_male_sindhi
		fallback = yes
	}
}
DukeFemaleSindhi = {
	type = character
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_sindhi
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_sindhi
	}
	text = {
		localization_key = duke_default_female_sindhi
		fallback = yes
	}
}
DuchySindhi = {
	type = character
	text = {
		trigger = {
			vassal_contract_has_flag = has_march_contract
		}
		localization_key = march_sindhi
	}
	text = {
		localization_key = duchy_default_sindhi
		fallback = yes
	}
}
DukeMaleMarathi = {
	type = character
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_marathi
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_marathi
	}
	text = {
		localization_key = duke_default_male_marathi
		fallback = yes
	}
}
DukeFemaleMarathi = {
	type = character
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_marathi
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_marathi
	}
	text = {
		localization_key = duke_default_female_marathi
		fallback = yes
	}
}
DuchyMarathi = {
	type = character
	text = {
		trigger = {
			vassal_contract_has_flag = has_march_contract
		}
		localization_key = march_marathi
	}
	text = {
		localization_key = duchy_default_marathi
		fallback = yes
	}
}
DukeMaleKashmiri = {
	type = character
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_kashmiri
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_kashmiri
	}
	text = {
		localization_key = duke_default_male_kashmiri
		fallback = yes
	}
}
DukeFemaleKashmiri = {
	type = character
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_kashmiri
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_kashmiri
	}
	text = {
		localization_key = duke_default_female_kashmiri
		fallback = yes
	}
}
DuchyKashmiri = {
	type = character
	text = {
		trigger = {
			vassal_contract_has_flag = has_march_contract
		}
		localization_key = march_kashmiri
	}
	text = {
		localization_key = duchy_default_kashmiri
		fallback = yes
	}
}
DukeMaleSinhala = {
	type = character
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_sinhala
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_sinhala
	}
	text = {
		localization_key = duke_default_male_sinhala
		fallback = yes
	}
}
DukeFemaleSinhala = {
	type = character
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_sinhala
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_sinhala
	}
	text = {
		localization_key = duke_default_female_sinhala
		fallback = yes
	}
}
DuchySinhala = {
	type = character
	text = {
		trigger = {
			vassal_contract_has_flag = has_march_contract
		}
		localization_key = march_sinhala
	}
	text = {
		localization_key = duchy_default_sinhala
		fallback = yes
	}
}
DukeMaleNepali = {
	type = character
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_nepali
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_nepali
	}
	text = {
		localization_key = duke_default_male_nepali
		fallback = yes
	}
}
DukeFemaleNepali = {
	type = character
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_nepali
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_nepali
	}
	text = {
		localization_key = duke_default_female_nepali
		fallback = yes
	}
}
DuchyNepali = {
	type = character
	text = {
		trigger = {
			vassal_contract_has_flag = has_march_contract
		}
		localization_key = march_nepali
	}
	text = {
		localization_key = duchy_default_nepali
		fallback = yes
	}
}
DukeBodpa = {
	type = character
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_bodpa
	}
	text = {
		localization_key = duke_default_bodpa
		fallback = yes
	}
}
DukeMaleTurkishOne = {
	type = character
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_turkish_group_one
	}
	text = {
		localization_key = duke_default_male_turkish_group_one
		fallback = yes
	}
}
DukeFemaleTurkishOne = {
	type = character
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_turkish_group_one
	}
	text = {
		localization_key = duke_default_female_turkish_group_one
		fallback = yes
	}
}
DukeMaleAvar = {
	type = character
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_avar
	}
	text = {
		localization_key = duke_default_male_avar
		fallback = yes
	}
}
DukeFemaleAvar = {
	type = character
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_avar
	}
	text = {
		localization_key = duke_default_female_avar
		fallback = yes
	}
}
DuchyAvar = {
	type = character
	text = {
		trigger = {
			vassal_contract_has_flag = has_march_contract
		}
		localization_key = march_avar
	}
	text = {
		localization_key = duchy_default_avar
		fallback = yes
	}
}
DukeMaleHolderKhazar = {
	type = character
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_khazar
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_khazar
	}
	text = {
		localization_key = duke_holder_male_khazar
		fallback = yes
	}
}
DukeFemaleHolderKhazar = {
	type = character
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_khazar
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_khazar
	}
	text = {
		localization_key = duke_holder_female_khazar
		fallback = yes
	}
}
DukeMaleKhazar = {
	type = character
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_khazar
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_khazar
	}
	text = {
		localization_key = duke_default_male_khazar
		fallback = yes
	}
}
DukeFemaleKhazar = {
	type = character
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_khazar
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_khazar
	}
	text = {
		localization_key = duke_default_female_khazar
		fallback = yes
	}
}
DuchyKhazar = {
	type = character
	text = {
		trigger = {
			vassal_contract_has_flag = has_march_contract
		}
		localization_key = march_khazar
	}
	text = {
		trigger = {
			vassal_contract_has_flag = has_palatinate_contract
		}
		localization_key = palatinate_khazar
	}
	text = {
		localization_key = duchy_default_khazar
		fallback = yes
	}
}
DukeMalePersian = {
	type = character
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_male_persian
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = duke_default_male_persian
	}
	text = {
		localization_key = duke_default_male_persian
		fallback = yes
	}
}
DukeFemalePersian = {
	type = character
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_female_persian
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = duke_default_female_persian
	}
	text = {
		localization_key = duke_default_female_persian
		fallback = yes
	}
}
DuchyPersian = {
	type = character
	text = {
		trigger = {
			vassal_contract_has_flag = has_march_contract
		}
		localization_key = march_persian
	}
	text = {
		localization_key = duchy_default_persian
		fallback = yes
	}
}
DukeMaleSogdian = {
	type = character
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_sogdian
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_male_sogdian
	}
	text = {
		localization_key = duke_default_male_sogdian
		fallback = yes
	}
}
DukeFemaleSogdian = {
	type = character
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_sogdian
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_female_sogdian
	}
	text = {
		trigger = {
			is_landed = yes
		}
		localization_key = duke_default_female_holder_sogdian
	}
	text = {
		localization_key = duke_default_female_sogdian
		fallback = yes
	}
}
DuchySogdian = {
	type = character
	text = {
		trigger = {
			vassal_contract_has_flag = has_march_contract
		}
		localization_key = march_sogdian
	}
	text = {
		trigger = {
			vassal_contract_has_flag = has_palatinate_contract
		}
		localization_key = palatinate_sogdian
	}
	text = {
		localization_key = duchy_default_sogdian
		fallback = yes
	}
}
DukeMaleTocharian = {
	type = character
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_male_tocharian
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_male_tocharian
	}
	text = {
		localization_key = duke_default_male_tocharian
		fallback = yes
	}
}
DukeFemaleTocharian = {
	type = character
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_female_tocharian
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_female_tocharian
	}
	text = {
		localization_key = duke_default_female_tocharian
		fallback = yes
	}
}
DuchyTocharian = {
	type = character
	text = {
		trigger = {
			vassal_contract_has_flag = has_march_contract
		}
		localization_key = march_tocharian
	}
	text = {
		trigger = {
			vassal_contract_has_flag = has_palatinate_contract
		}
		localization_key = palatinate_tocharian
	}
	text = {
		localization_key = duchy_default_tocharian
		fallback = yes
	}
}
DukeSaka = {
	type = character
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_saka
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_saka
	}
	text = {
		localization_key = duke_default_saka
		fallback = yes
	}
}
DuchySaka = {
	type = character
	text = {
		trigger = {
			vassal_contract_has_flag = has_march_contract
		}
		localization_key = march_saka
	}
	text = {
		trigger = {
			vassal_contract_has_flag = has_palatinate_contract
		}
		localization_key = palatinate_saka
	}
	text = {
		localization_key = duchy_default_saka
		fallback = yes
	}
}
DukeMaleTajik = {
	type = character
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_tajik
	}
	text = {
		localization_key = duke_default_male_tajik
		fallback = yes
	}
}
DukeFemaleTajik = {
	type = character
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_tajik
	}
	text = {
		localization_key = duke_default_female_tajik
		fallback = yes
	}
}
DuchyTajik = {
	type = character
	text = {
		trigger = {
			vassal_contract_has_flag = has_march_contract
		}
		localization_key = march_tajik
	}
	text = {
		localization_key = duchy_default_tajik
		fallback = yes
	}
}


################################################################################################CTP - Independent Duchy


DynastGoidIndepDukeMale = {
	type = character
	text = {
		trigger = {
			culture = {
				any_parent_culture_or_above = {
					this = {
						has_cultural_pillar = heritage_north_germanic
					}
				}
			}
		}
		localization_key = king_male_gael_norse
	}
	text = {
		localization_key = indep_duke_male_goid
		fallback = yes
	}
}
IndepDukeMaleGoid = {
	type = character
	text = {
		trigger = {
			culture = { has_name_list = name_list_irish }
		}
		localization_key = duke_default_male_irish
	}
	text = {
		localization_key = duke_feudalclan_male_gaelic_independent
		fallback = yes
	}
}
DynastGoidIndepDukeFemale = {
	type = character
	text = {
		trigger = {
			culture = {
				any_parent_culture_or_above = {
					this = {
						has_cultural_pillar = heritage_north_germanic
					}
				}
			}
		}
		localization_key = king_female_gael_norse
	}
	text = {
		localization_key = indep_duke_female_goid
		fallback = yes
	}
}
IndepDukeFemaleGoid = {
	type = character
	text = {
		trigger = {
			culture = { has_name_list = name_list_irish }
		}
		localization_key = duke_default_female_irish
	}
	text = {
		localization_key = duke_feudalclan_female_gaelic_independent
		fallback = yes
	}
}
GoidIndepDuchy = {
	type = character
	text = {
		trigger = {
			culture = { has_name_list = name_list_irish }
		}
		localization_key = duchy_default_irish
	}
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
		}
		localization_key = duchy_default_gaelic
	}
	text = {
		fallback = yes
		localization_key = independent_duchy_gaelic
	}
}
EnglishIndepDuchy = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
		}
		localization_key = duchy_default_english
	}
	text = {
		fallback = yes
		localization_key = independent_duchy_english
	}
}
AngloSaxonIndepDuchy = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
		}
		localization_key = duchy_default_anglo_saxon
	}
	text = {
		trigger = {
			is_independent_ruler = yes
			root.faith = {
				has_doctrine = tenet_struggle_submission
			}
		}
		localization_key = sultanate_anglo_saxon
	}
	text = {
		fallback = yes
		localization_key = kingdom_default_anglo_saxon
	}
}
OldSaxonIndepDuchy = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
		}
		localization_key = duchy_default_old_saxon
	}
	text = {
		fallback = yes
		localization_key = independent_duchy_old_saxon
	}
}
ScottishIndepDuchy = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
		}
		localization_key = duchy_default_scottish
	}
	text = {
		fallback = yes
		localization_key = independent_duchy_scottish
	}
}
PictishCumbrianIndepDuchy = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
		}
		localization_key = duchy_default_pictish
	}
	text = {
		fallback = yes
		localization_key = independent_duchy_pictish_cumbrian
	}
}
BretonIndepDuchy = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
		}
		localization_key = duchy_default_breton
	}
	text = {
		fallback = yes
		localization_key = independent_duchy_breton
	}
}
CornishIndepDuchy = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
		}
		localization_key = duchy_default_cornish
	}
	text = {
		fallback = yes
		localization_key = independent_duchy_cornish
	}
}
FrankishIndepDuchy = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
		}
		localization_key = duchy_frankish
	}
	text = {
		fallback = yes
		localization_key = independent_duchy_frankish
	}
}
FrenchIndepDuchy = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
		}
		localization_key = duchy_default_french
	}
	text = {
		fallback = yes
		localization_key = independent_duchy_french
	}
}
NormanIndepDuchy = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
		}
		localization_key = duchy_default_french
	}
	text = {
		fallback = yes
		localization_key = independent_duchy_norman
	}
}
OccitanIndepDuchy = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
		}
		localization_key = duchy_default_occitan
	}
	text = {
		fallback = yes
		localization_key = independent_duchy_occitan
	}
}
OutremerIndepDuchy = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
		}
		localization_key = duchy_default_outremer
	}
	text = {
		fallback = yes
		localization_key = independent_duchy_outremer
	}
}
BasqueIndepDuchy = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
		}
		localization_key = duchy_default_basque
	}
	text = {
		fallback = yes
		localization_key = independent_duchy_basque
	}
}
CastilianIndepDuchy = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
		}
		localization_key = duchy_default_castilian
	}
	text = {
		fallback = yes
		localization_key = independent_duchy_castilian
	}
}
CatalanIndepDuchy = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
		}
		localization_key = duchy_default_catalan
	}
	text = {
		fallback = yes
		localization_key = independent_duchy_catalan
	}
}
PortGalicianIndepDuchy = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
		}
		localization_key = duchy_default_portugese
	}
	text = {
		fallback = yes
		localization_key = independent_duchy_portugese
	}
}
VisigothicIndepDuchy = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
		}
		localization_key = duchy_default_visigothic
	}
	text = {
		fallback = yes
		localization_key = independent_duchy_visigothic
	}
}
AsturleoneseIndepDuchy = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
		}
		localization_key = duchy_default_asturleonese
	}
	text = {
		fallback = yes
		localization_key = independent_duchy_asturleonese
	}
}
AragoneseIndepDuchy = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
		}
		localization_key = duchy_default_aragonese
	}
	text = {
		fallback = yes
		localization_key = independent_duchy_aragonese
	}
}
NorthIndepDuchy = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier <= tier_kingdom
		}
		localization_key = duchy_norse_norwegian
	}
	text = {
		fallback = yes
		localization_key = kingdom_norse_norwegian
	}
}
SwedishIndepDuchy = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
		}
		localization_key = duchy_swedish_danish
	}
	text = {
		fallback = yes
		localization_key = kingdom_swedish_danish
	}
}
FinnishIndepDukeMale = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier = tier_duchy
			OR = {
				any_held_title = {
					count = 2
					tier = tier_duchy
				}
				AND = {
					exists = primary_spouse
						any_held_title = {
						count = 2
						tier = tier_duchy
					}
				}
			}
		}
		localization_key = grand_duke_male_finnish
	}
	text = {
		fallback = yes
		localization_key = duke_male_finnish_independent
	}
}
FinnishIndepDukeFemale = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier = tier_duchy
			OR = {
				any_held_title = {
					count = 2
					tier = tier_duchy
				}
				AND = {
					exists = primary_spouse
						any_held_title = {
						count = 2
						tier = tier_duchy
					}
				}
			}
		}
		localization_key = grand_duke_female_finnish
	}
	text = {
		fallback = yes
		localization_key = duke_female_finnish_independent
	}
}
FinnishIndepDuchy = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
			has_government = tribal_government
		}
		localization_key = duchy_tribal_finnish
	}
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
		}
		localization_key = duchy_default_finnish
	}
	text = {
		trigger = {
			has_government = feudal_government
			any_held_title = {
				count = 2
				tier = tier_duchy
			}
		}
		localization_key = grand_duchy_finnish
	}
	text = {
		fallback = yes
		localization_key = independent_duchy_finnish
	}
}
SamiIndepDuchy = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
		}
		localization_key = duchy_sami
	}
	text = {
		fallback = yes
		localization_key = kingdom_sami
	}
}
EstonianIndepDukeMale = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier = tier_duchy
			OR = {
				any_held_title = {
					count = 2
					tier = tier_duchy
				}
				AND = {
					exists = primary_spouse
						any_held_title = {
						count = 2
						tier = tier_duchy
					}
				}
			}
		}
		localization_key = grand_duke_male_estonian
	}
	text = {
		fallback = yes
		localization_key = duke_feudalclan_male_estonian_independent
	}
}
EstonianIndepDukeFemale = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier = tier_duchy
			OR = {
				any_held_title = {
					count = 2
					tier = tier_duchy
				}
				AND = {
					exists = primary_spouse
						any_held_title = {
						count = 2
						tier = tier_duchy
					}
				}
			}
		}
		localization_key = grand_duke_female_estonian
	}
	text = {
		fallback = yes
		localization_key = duke_feudalclan_female_estonian_independent
	}
}
EstonianIndepDuchy = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
		}
		localization_key = duchy_default_estonian
	}
	text = {
		trigger = {
			has_government = feudal_government
			any_held_title = {
				count = 2
				tier = tier_duchy
			}
		}
		localization_key = grand_duchy_estonian
	}
	text = {
		fallback = yes
		localization_key = independent_duchy_estonian
	}
}
KarelianIndepDuchy = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
		}
		localization_key = duchy_feudalclan_karelian
	}
	text = {
		fallback = yes
		localization_key = kingdom_karelian
	}
}
VepsianIndepDuchy = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
		}
		localization_key = duchy_feudalclan_vepsian
	}
	text = {
		fallback = yes
		localization_key = independent_duchy_vepsian
	}
}
SaxonIndepDuchy = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
		}
		localization_key = duchy_default_middle_high_german
	}
	text = {
		fallback = yes
		localization_key = independent_duchy_saxon
	}
}
MiddleHighGermanIndepDuchy = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
		}
		localization_key = duchy_default_middle_high_german
	}
	text = {
		fallback = yes
		localization_key = independent_duchy_middle_high_german
	}
}
FrisianIndepDuchy = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
		}
		localization_key = duchy_default_frisian
	}
	text = {
		fallback = yes
		localization_key = independent_duchy_frisian
	}
}
DutchIndepDuchy = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
		}
		localization_key = duchy_default_dutch
	}
	text = {
		fallback = yes
		localization_key = independent_duchy_dutch
	}
}
AndalusianIndepDuchy = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
		}
		localization_key = duchy_arabic_group
	}
	text = {
		fallback = yes
		localization_key = independent_duchy_andalusian
	}
}
GreekIndepDuchy = {
	type = character
	text = {
		trigger = {
			OR = {
				has_primary_title = title:e_byzantium
				has_primary_title = title:e_roman_empire
			}
		}
		localization_key = byzantine_duchy_greek
	}
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
		}
		localization_key = duchy_default_greek
	}
	text = {
		fallback = yes
		localization_key = independent_duchy_greek
	}
}
GeorgianIndepDuchy = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
		}
		localization_key = duchy_default_georgian
	}
	text = {
		fallback = yes
		localization_key = independent_duchy_georgian
	}
}
AssyrianIndepDuchy = {
	type = character
	text = {
		trigger = {
			OR = {
				has_primary_title = title:e_byzantium
				has_primary_title = title:e_roman_empire
			}
		}
		localization_key = byzantine_duchy_assyrian
	}
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
		}
		localization_key = duchy_default_assyrian
	}
	text = {
		fallback = yes
		localization_key = independent_duchy_assyrian
	}
}
ItalianIndepDuchy = {
	type = character
	text = {
		trigger = {
			OR = {
				has_primary_title = title:e_byzantium
				has_primary_title = title:e_roman_empire
			}
		}
		localization_key = byzantine_duchy_italian
	}
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
		}
		localization_key = duchy_default_italian
	}
	text = {
		fallback = yes
		localization_key = independent_duchy_italian
	}
}
RomanIndepDuchy = {
	type = character
	text = {
		trigger = {
			OR = {
				has_primary_title = title:e_byzantium
				has_primary_title = title:e_roman_empire
			}
		}
		localization_key = surpreme_roman_duchy
	}
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
		}
		localization_key = duchy_default_roman
	}
	text = {
		fallback = yes
		localization_key = independent_duchy_roman
	}
}
CisalpineIndepDuchy = {
	type = character
	text = {
		trigger = {
			OR = {
				has_primary_title = title:e_byzantium
				has_primary_title = title:e_roman_empire
			}
		}
		localization_key = byzantine_duchy_italian
	}
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
		}
		localization_key = duchy_default_cisalpine
	}
	text = {
		fallback = yes
		localization_key = independent_duchy_cisalpine
	}
}
SardinianIndepDuchy = {
	type = character
	text = {
		trigger = {
			OR = {
				has_primary_title = title:e_byzantium
				has_primary_title = title:e_roman_empire
			}
		}
		localization_key = byzantine_duchy_sardinian
	}
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
		}
		localization_key = duchy_default_sardinian
	}
	text = {
		fallback = yes
		localization_key = independent_duchy_sardinian
	}
}
SicilianIndepDuchy = {
	type = character
	text = {
		trigger = {
			OR = {
				has_primary_title = title:e_byzantium
				has_primary_title = title:e_roman_empire
			}
		}
		localization_key = byzantine_duchy_sardinian
	}
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
		}
		localization_key = duchy_default_sardinian
	}
	text = {
		fallback = yes
		localization_key = independent_duchy_sicilian
	}
}
LombardIndepDuchy = {
	type = character
	text = {
		trigger = {
			OR = {
				has_primary_title = title:e_byzantium
				has_primary_title = title:e_roman_empire
			}
		}
		localization_key = byzantine_duchy_lombard
	}
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
		}
		localization_key = duchy_default_lombard
	}
	text = {
		fallback = yes
		localization_key = independent_duchy_lombard
	}
}
CroatianIndepDuchy = {
	type = character
	text = {
		trigger = {
			OR = {
				has_primary_title = title:e_byzantium
				has_primary_title = title:e_roman_empire
			}
		}
		localization_key = byzantine_duchy_croatian
	}
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
		}
		localization_key = duchy_default_croatian
	}
	text = {
		fallback = yes
		localization_key = independent_duchy_croatian
	}
}
SerbianIndepDuchy = {
	type = character
	text = {
		trigger = {
			OR = {
				has_primary_title = title:e_byzantium
				has_primary_title = title:e_roman_empire
			}
		}
		localization_key = byzantine_duchy_serbian
	}
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
		}
		localization_key = duchy_default_serbian
	}
	text = {
		trigger = {
			any_held_title = {
				count = 2
				tier = tier_duchy
			}
		}
		localization_key = grand_duchy_serbian
	}
	text = {
		fallback = yes
		localization_key = independent_duchy_serbian
	}
}
VlachIndepDuchy = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
		}
		localization_key = duchy_default_vlach
	}
	text = {
		fallback = yes
		localization_key = independent_duchy_vlach
	}
}
BulgarianIndepDuchy = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
		}
		localization_key = duchy_bulgarian
	}
	text = {
		fallback = yes
		localization_key = independent_duchy_bulgarian
	}
}
MogyerIndepDuchy = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
		}
		localization_key = duchy_default_mogyer
	}
	text = {
		fallback = yes
		localization_key = independent_duchy_mogyer
	}
}
HungIndepDuchy = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
		}
		localization_key = duchy_default_hung
	}
	text = {
		fallback = yes
		localization_key = independent_duchy_hung
	}
}
PrussianIndepDuchy = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
		}
		localization_key = duchy_feudalclan_prussian
	}
	text = {
		fallback = yes
		localization_key = independent_land_prussian
	}
}
AkanIndepDuchy = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
		}
		localization_key = duchy_akan
	}
	text = {
		fallback = yes
		localization_key = kingdom_akan
    }
}
BurmeseIndepDuchy = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
		}
		localization_key = duchy_default_burmese
	}
	text = {
		fallback = yes
		localization_key = kingdom_burmese
    }
}
KanuriIndepDuchy = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
		}
		localization_key = duchy_kanuri
	}
	text = {
		fallback = yes
		localization_key = independent_duchy_kanuri
	}
}
HausaIndepDuchy = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
		}
		localization_key = duchy_hausa
	}
	text = {
		fallback = yes
		localization_key = kingdom_hausa
	}
}
HanIndepDuchy = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
		}
		localization_key = duchy_default_han
	}
	text = {
		fallback = yes
		localization_key = kingdom_han
	}
}
MonIndepDuchy = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
		}
		localization_key = duchy_mon
	}
	text = {
		fallback = yes
		localization_key = kingdom_mon
	}
}
TamilIndepDuchy = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
		}
		localization_key = duchy_tamil
	}
	text = {
		fallback = yes
		localization_key = independent_duchy_tamil
	}
}
TeluguIndepDuchy = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
		}
		localization_key = duchy_telugu
	}
	text = {
		fallback = yes
		localization_key = independent_duchy_telugu
	}
}
KannadaIndepDuchy = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
		}
		localization_key = duchy_kannada
	}
	text = {
		fallback = yes
		localization_key = independent_duchy_kannada
	}
}
EthiopianIndepDuchy = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
		}
		localization_key = duchy_feudalclan_ethiopian
	}
	text = {
		fallback = yes
		localization_key = independent_duchy_ethiopian
	}
}
NubianIndepDuchy = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
		}
		localization_key = duchy_default_nubian
	}
	text = {
		fallback = yes
		localization_key = kingdom_nubian
	}
}
DajuIndepDuchy = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
		}
		localization_key = duchy_daju
	}
	text = {
		fallback = yes
		localization_key = kingdom_daju
	}
}
BengaliIndepDuchy = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
		}
		localization_key = duchy_default_bengali
	}
	text = {
		fallback = yes
		localization_key = independent_duchy_bengali
	}
}
OriyaIndepDuchy = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
		}
		localization_key = duchy_default_oriya
	}
	text = {
		fallback = yes
		localization_key = independent_duchy_oriya
	}
}
AssameseIndepDuchy = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
		}
		localization_key = duchy_default_oriya
	}
	text = {
		fallback = yes
		localization_key = independent_duchy_oriya
	}
}
HindustaniIndepDuchy = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
		}
		localization_key = duchy_default_hindustani
	}
	text = {
		fallback = yes
		localization_key = independent_duchy_hindustani
	}
}
GujaratiIndepDuchy = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
		}
		localization_key = duchy_default_gujarati
	}
	text = {
		fallback = yes
		localization_key = independent_duchy_gujarati
	}
}
PunjabiIndepDuchy = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
		}
		localization_key = duchy_default_punjabi
	}
	text = {
		fallback = yes
		localization_key = independent_duchy_punjabi
	}
}
RajputIndepDuchy = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
		}
		localization_key = duchy_default_rajput
	}
	text = {
		fallback = yes
		localization_key = independent_duchy_rajput
	}
}
SindhiIndepDuchy = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
		}
		localization_key = duchy_default_sindhi
	}
	text = {
		fallback = yes
		localization_key = independent_duchy_sindhi
	}
}
MarathiIndepDuchy = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
		}
		localization_key = duchy_default_marathi
	}
	text = {
		fallback = yes
		localization_key = independent_duchy_marathi
	}
}
KashmiriIndepDuchy = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
		}
		localization_key = duchy_default_kashmiri
	}
	text = {
		fallback = yes
		localization_key = independent_duchy_kashmiri
	}
}
SinhalaIndepDuchy = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
		}
		localization_key = duchy_default_sinhala
	}
	text = {
		fallback = yes
		localization_key = independent_duchy_sinhala
	}
}
NepaliIndepDuchy = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
		}
		localization_key = duchy_default_nepali
	}
	text = {
		fallback = yes
		localization_key = independent_duchy_nepali
	}
}
SoninkeIndepDuchy = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
		}
		localization_key = duchy_soninke
	}
	text = {
		fallback = yes
		localization_key = kingdom_soninke
	}
}
BodpaIndepDuchy = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
		}
		localization_key = duchy_bodpa
	}
	text = {
		fallback = yes
		localization_key = kingdom_bodpa
	}
}
KhazarIndepDuchy = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
		}
		localization_key = duchy_default_khazar
	}
	text = {
		fallback = yes
		localization_key = duchy_turkish_group_two
	}
}
TurkishThreeIndepDuchy = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
		}
		localization_key = duchy_turkish_group_three
	}
	text = {
		fallback = yes
		localization_key = independent_duchy_turkish_group_three
	}
}
MordvinIndepDuchy = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
		}
		localization_key = duchy_mordvin
	}
	text = {
		fallback = yes
		localization_key = kingdom_mordvin
	}
}
AshkenaziIndepDuchy = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
		}
		localization_key = duchy_ashkenazi
	}
	text = {
		fallback = yes
		localization_key = independent_duchy_ashkenazi
	}
}
SephardiIndepDuchy = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
		}
		localization_key = duchy_sephardi
	}
	text = {
		fallback = yes
		localization_key = independent_duchy_sephardi
	}
}
TocharianIndepDuchy = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
		}
		localization_key = duchy_default_tocharian
	}
	text = {
		fallback = yes
		localization_key = kingdom_tocharian
	}
}
KurdishIndepDuchy = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
		}
		localization_key = duchy_kurdish
	}
	text = {
		fallback = yes
		localization_key = independent_duchy_kurdish
	}
}
MalinkeIndepDuchy = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
		}
		localization_key = duchy_malinke
	}
	text = {
		fallback = yes
		localization_key = kingdom_malinke
	}
}
KanuriIndepDuchy = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
			has_government = tribal_government
		}
		localization_key = county_kanuri
	}
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
		}
		localization_key = duchy_kanuri
	}
	text = {
		fallback = yes
		localization_key = kingdom_kanuri
	}
}


################################################################################################CTP - Kingdom


SultanMaleGoidelic = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_male_goidelic
	}
	text = {
		trigger = {
			is_ruler = yes
		}
		localization_key = king_male_holder_goid
	}
	text = {
		fallback = yes
		localization_key = king_male_non_holder_goid
	}
}
KingMaleGoid = {
	type = character
	text = {
		trigger = {
			culture = {
				any_parent_culture_or_above = {
					this = {
						has_cultural_pillar = heritage_north_germanic
					}
				}
			}
		}
		localization_key = high_king_male_gael_norse
	}
	text = {
		localization_key = king_default_male_goidelic
		fallback = yes
	}
}
SultanFemaleGoidelic = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_female_goidelic
	}
	text = {
		trigger = {
			is_ruler = yes
		}
		localization_key = king_female_holder_goid
	}
	text = {
		fallback = yes
		localization_key = king_female_non_holder_goid
	}
}
KingFemaleGoid = {
	type = character
	text = {
		trigger = {
			culture = {
				any_parent_culture_or_above = {
					this = {
						has_cultural_pillar = heritage_north_germanic
					}
				}
			}
		}
		localization_key = high_king_female_gael_norse
	}
	text = {
		localization_key = king_default_female_goidelic
		fallback = yes
	}
}
KingdomGoidelic = {
	type = character
	text = {
		trigger = {
			is_independent_ruler = yes
			root.faith = {
				has_doctrine = tenet_struggle_submission
			}
		}
		localization_key = sultanate_goidelic
	}
	text = {
		fallback = yes
		localization_key = kingdom_default_goidelic
	}
}
KingMaleEnglish = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_male_english
	}
	text = {
		fallback = yes
		localization_key = king_default_male_english
	}
}
KingFemaleEnglish = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_female_english
	}
	text = {
		fallback = yes
		localization_key = king_default_female_english
	}
}
KingdomEnglish = {
	type = character
	text = {
		trigger = {
			is_independent_ruler = yes
			root.faith = {
				has_doctrine = tenet_struggle_submission
			}
		}
		localization_key = sultanate_english
	}
	text = {
		fallback = yes
		localization_key = kingdom_default_english
	}
}
SultanMaleAngloSaxon = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_male_anglo_saxon
	}
	text = {
		trigger = {
			is_ruler = yes
		}
		localization_key = king_default_male_holder_anglo
	}
	text = {
		fallback = yes
		localization_key = king_default_male_anglo
	}
}
KingMaleAnglo = {
	type = character
	text = {
		trigger = {
			culture = {
				any_parent_culture_or_above = {
					this = {
						has_cultural_pillar = heritage_north_germanic
					}
				}
			}
		}
		localization_key = king_default_male_anglo_norse
	}
	text = {
		localization_key = king_default_male_anglo_saxon
		fallback = yes
	}
}
SultanFemaleAngloSaxon = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_female_anglo_saxon
	}
	text = {
		trigger = {
			is_ruler = yes
		}
		localization_key = king_default_female_holder_anglo
	}
	text = {
		fallback = yes
		localization_key = king_default_female_anglo
	}
}
KingFemaleAnglo = {
	type = character
	text = {
		trigger = {
			culture = {
				any_parent_culture_or_above = {
					this = {
						has_cultural_pillar = heritage_north_germanic
					}
				}
			}
		}
		localization_key = king_default_female_anglo_norse
	}
	text = {
		localization_key = king_default_female_anglo_saxon
		fallback = yes
	}
}
KingdomAngloSaxon = {
	type = character
	text = {
		trigger = {
			is_independent_ruler = yes
			root.faith = {
				has_doctrine = tenet_struggle_submission
			}
		}
		localization_key = sultanate_anglo_saxon
	}
	text = {
		fallback = yes
		localization_key = kingdom_default_anglo_saxon
	}
}
KingMaleScottish = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_male_scottish
	}
	text = {
		fallback = yes
		localization_key = king_default_male_scottish
	}
}
KingFemaleScottish = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_female_scottish
	}
	text = {
		fallback = yes
		localization_key = king_default_female_scottish
	}
}
KingdomScottish = {
	type = character
	text = {
		trigger = {
			is_independent_ruler = yes
			root.faith = {
				has_doctrine = tenet_struggle_submission
			}
		}
		localization_key = sultanate_scottish
	}
	text = {
		fallback = yes
		localization_key = kingdom_default_scottish
	}
}
KingMaleWelsh = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_male_welsh
	}
	text = {
		fallback = yes
		localization_key = king_default_male_welsh
	}
}
KingFemaleWelsh = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_female_welsh
	}
	text = {
		fallback = yes
		localization_key = king_default_female_welsh
	}
}
KingdomWelsh = {
	type = character
	text = {
		trigger = {
			is_independent_ruler = yes
			root.faith = {
				has_doctrine = tenet_struggle_submission
			}
		}
		localization_key = sultanate_welsh
	}
	text = {
		fallback = yes
		localization_key = kingdom_default_welsh
	}
}
KingMaleCornish = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_male_cornish
	}
	text = {
		fallback = yes
		localization_key = king_default_male_cornish
	}
}
KingFemaleCornish = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_female_cornish
	}
	text = {
		fallback = yes
		localization_key = king_default_female_cornish
	}
}
KingdomCornish = {
	type = character
	text = {
		trigger = {
			is_independent_ruler = yes
			root.faith = {
				has_doctrine = tenet_struggle_submission
			}
		}
		localization_key = sultanate_cornish
	}
	text = {
		fallback = yes
		localization_key = kingdom_default_cornish
	}
}
KingMaleFrench = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_male_french
	}
	text = {
		fallback = yes
		localization_key = king_default_male_french
	}
}
KingFemaleFrench = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_female_french
	}
	text = {
		fallback = yes
		localization_key = king_default_female_french
	}
}
KingdomFrench = {
	type = character
	text = {
		trigger = {
			is_independent_ruler = yes
			root.faith = {
				has_doctrine = tenet_struggle_submission
			}
		}
		localization_key = sultanate_french
	}
	text = {
		fallback = yes
		localization_key = kingdom_default_french
	}
}
KingMaleBasque = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_male_basque
	}
	text = {
		fallback = yes
		localization_key = king_default_male_basque
	}
}
KingFemaleBasque = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_female_basque
	}
	text = {
		fallback = yes
		localization_key = king_default_female_basque
	}
}
KingdomBasque = {
	type = character
	text = {
		trigger = {
			is_independent_ruler = yes
			root.faith = {
				has_doctrine = tenet_struggle_submission
			}
		}
		localization_key = sultanate_basque
	}
	text = {
		fallback = yes
		localization_key = kingdom_default_basque
	}
}
KingMaleCastillian = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_male_castillian
	}
	text = {
		fallback = yes
		localization_key = king_default_male_castillian
	}
}
KingFemaleCastillian = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_female_castillian
	}
	text = {
		fallback = yes
		localization_key = king_default_female_castillian
	}
}
KingdomCastillian = {
	type = character
	text = {
		trigger = {
			is_independent_ruler = yes
			root.faith = {
				has_doctrine = tenet_struggle_submission
			}
		}
		localization_key = sultanate_castillian
	}
	text = {
		fallback = yes
		localization_key = kingdom_default_castillian
	}
}
KingMaleCatalan = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_male_catalan
	}
	text = {
		fallback = yes
		localization_key = king_default_male_catalan
	}
}
KingFemaleCatalan = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_female_catalan
	}
	text = {
		fallback = yes
		localization_key = king_default_female_catalan
	}
}
KingdomCatalan = {
	type = character
	text = {
		trigger = {
			is_independent_ruler = yes
			root.faith = {
				has_doctrine = tenet_struggle_submission
			}
		}
		localization_key = sultanate_catalan
	}
	text = {
		fallback = yes
		localization_key = kingdom_default_catalan
	}
}
KingMalePortugese = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_male_portugese
	}
	text = {
		fallback = yes
		localization_key = king_default_male_portugese
	}
}
KingFemalePortugese = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_female_portugese
	}
	text = {
		fallback = yes
		localization_key = king_default_female_portugese
	}
}
KingdomPortugese = {
	type = character
	text = {
		trigger = {
			is_independent_ruler = yes
			root.faith = {
				has_doctrine = tenet_struggle_submission
			}
		}
		localization_key = sultanate_portugese
	}
	text = {
		fallback = yes
		localization_key = kingdom_default_portugese
	}
}
KingMaleVisigothic = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_male_visigothic
	}
	text = {
		fallback = yes
		localization_key = king_default_male_visigothic
	}
}
KingFemaleVisigothic = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_female_visigothic
	}
	text = {
		fallback = yes
		localization_key = king_default_female_visigothic
	}
}
KingdomVisigothic = {
	type = character
	text = {
		trigger = {
			is_independent_ruler = yes
			root.faith = {
				has_doctrine = tenet_struggle_submission
			}
		}
		localization_key = sultanate_visigothic
	}
	text = {
		fallback = yes
		localization_key = kingdom_default_visigothic
	}
}
KingMaleAsturleonese = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_male_asturleonese
	}
	text = {
		fallback = yes
		localization_key = king_default_male_asturleonese
	}
}
KingFemaleAsturleonese = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_female_asturleonese
	}
	text = {
		fallback = yes
		localization_key = king_default_female_asturleonese
	}
}
KingdomAsturleonese = {
	type = character
	text = {
		trigger = {
			is_independent_ruler = yes
			root.faith = {
				has_doctrine = tenet_struggle_submission
			}
		}
		localization_key = sultanate_asturleonese
	}
	text = {
		fallback = yes
		localization_key = kingdom_default_asturleonese
	}
}
KingMaleAragonese = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_male_aragonese
	}
	text = {
		fallback = yes
		localization_key = king_default_male_aragonese
	}
}
KingFemaleAragonese = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_female_aragonese
	}
	text = {
		fallback = yes
		localization_key = king_default_female_aragonese
	}
}
KingdomAragonese = {
	type = character
	text = {
		trigger = {
			is_independent_ruler = yes
			root.faith = {
				has_doctrine = tenet_struggle_submission
			}
		}
		localization_key = sultanate_aragonese
	}
	text = {
		fallback = yes
		localization_key = kingdom_default_aragonese
	}
}
KingMaleFinnish = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_finnish
	}
	text = {
		fallback = yes
		localization_key = king_default_male_finnish
	}
}
KingFemaleFinnish = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_finnish
	}
	text = {
		fallback = yes
		localization_key = king_default_female_finnish
	}
}
KingdomFinnish = {
	type = character
	text = {
		trigger = {
			is_independent_ruler = yes
			root.faith = {
				has_doctrine = tenet_struggle_submission
			}
		}
		localization_key = sultanate_finnish
	}
	text = {
		fallback = yes
		localization_key = kingdom_default_finnish
	}
}
KingMaleEstonian = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_male_estonian
	}
	text = {
		fallback = yes
		localization_key = king_default_male_estonian
	}
}
KingFemaleEstonian = {
	type = character
	text = {
		trigger = {
			is_independent_ruler = yes
			root.faith = {
				has_doctrine = tenet_struggle_submission
			}
		}
		localization_key = sultan_female_holder_estonian
	}
	text = {
		trigger = {
			exists = primary_spouse
				root.primary_spouse = {
					is_independent_ruler = yes
					faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
			}
		localization_key = sultan_female_estonian
	}
	text = {
		fallback = yes
		localization_key = king_default_female_estonian
	}
}
KingdomEstonian = {
	type = character
	text = {
		trigger = {
			is_independent_ruler = yes
			root.faith = {
				has_doctrine = tenet_struggle_submission
			}
		}
		localization_key = sultanate_estonian
	}
	text = {
		fallback = yes
		localization_key = kingdom_default_estonian
	}
}
KingMaleSaxon = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_male_saxon
	}
	text = {
		fallback = yes
		localization_key = king_default_male_saxon
	}
}
KingFemaleSaxon = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_female_saxon
	}
	text = {
		fallback = yes
		localization_key = king_default_female_saxon
	}
}
KingdomSaxon = {
	type = character
	text = {
		trigger = {
			is_independent_ruler = yes
			root.faith = {
				has_doctrine = tenet_struggle_submission
			}
		}
		localization_key = sultanate_saxon
	}
	text = {
		fallback = yes
		localization_key = kingdom_default_saxon
	}
}
KingMaleMiddleHighGerman = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_male_middle_high_german
	}
	text = {
		fallback = yes
		localization_key = king_default_male_middle_high_german
	}
}
KingFemaleMiddleHighGerman = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_female_middle_high_german
	}
	text = {
		fallback = yes
		localization_key = king_default_female_middle_high_german
	}
}
KingdomMiddleHighGerman = {
	type = character
	text = {
		trigger = {
			is_independent_ruler = yes
			root.faith = {
				has_doctrine = tenet_struggle_submission
			}
		}
		localization_key = sultanate_middle_high_german
	}
	text = {
		fallback = yes
		localization_key = kingdom_default_middle_high_german
	}
}
KingMaleDutch = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_dutch
	}
	text = {
		fallback = yes
		localization_key = king_default_male_dutch
	}
}
KingFemaleDutch = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_dutch
	}
	text = {
		fallback = yes
		localization_key = king_default_female_dutch
	}
}
KingdomDutch = {
	type = character
	text = {
		trigger = {
			is_independent_ruler = yes
			root.faith = {
				has_doctrine = tenet_struggle_submission
			}
		}
		localization_key = sultanate_dutch
	}
	text = {
		fallback = yes
		localization_key = kingdom_default_dutch
	}
}
KingMaleButr = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_male_butr
	}
	text = {
		fallback = yes
		localization_key = king_default_male_butr
	}
}
KingFemaleButr = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_female_butr
	}
	text = {
		fallback = yes
		localization_key = king_default_female_butr
	}
}
KingdomButr = {
	type = character
	text = {
		trigger = {
			is_independent_ruler = yes
			root.faith = {
				has_doctrine = tenet_struggle_submission
			}
		}
		localization_key = sultanate_butr
	}
	text = {
		fallback = yes
		localization_key = kingdom_default_butr
	}
}
KingMaleBaranis = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_male_baranis
	}
	text = {
		fallback = yes
		localization_key = king_default_male_baranis
	}
}
KingFemaleBaranis = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_female_baranis
	}
	text = {
		fallback = yes
		localization_key = king_default_female_baranis
	}
}
KingdomBaranis = {
	type = character
	text = {
		trigger = {
			is_independent_ruler = yes
			root.faith = {
				has_doctrine = tenet_struggle_submission
			}
		}
		localization_key = sultanate_baranis
	}
	text = {
		fallback = yes
		localization_key = kingdom_default_baranis
	}
}
KingMaleArabic = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_landed = yes
					has_culture = culture:andalusian
					has_religion = religion:christianity_religion
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						has_culture = culture:andalusian
						has_religion = religion:christianity_religion
					}
				}
			}
		}
		localization_key = king_christian_andalusian
	}
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_arabic
	}
	text = {
		fallback = yes
		localization_key = king_default_male_arabic
	}
}
KingFemaleHolderArabic = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_landed = yes
					has_culture = culture:andalusian
					has_religion = religion:christianity_religion
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						has_culture = culture:andalusian
						has_religion = religion:christianity_religion
					}
				}
			}
		}
		localization_key = king_female_christian_andalusian
	}
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_female_arabic
	}
	text = {
		fallback = yes
		localization_key = king_default_female_holder_arabic
	}
}
KingFemaleArabic = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_landed = yes
					has_culture = culture:andalusian
					has_religion = religion:christianity_religion
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						has_culture = culture:andalusian
						has_religion = religion:christianity_religion
					}
				}
			}
		}
		localization_key = king_female_christian_andalusian
	}
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_female_arabic
	}
	text = {
		fallback = yes
		localization_key = king_default_female_arabic
	}
}
KingdomArabic = {
	type = character
	text = {
		trigger = {
			has_culture = culture:andalusian
			has_religion = religion:christianity_religion
		}
		localization_key = kingdom_christian_andalusian
	}
	text = {
		trigger = {
			is_independent_ruler = yes
			root.faith = {
				has_doctrine = tenet_struggle_submission
			}
		}
		localization_key = sultanate_arabic
	}
	text = {
		fallback = yes
		localization_key = kingdom_default_arabic
	}
}
KingMaleArmenian = {
	type = character
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_king_male_armenian
	}
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_male_armenian
	}
	text = {
		trigger = {
			OR = {
				has_primary_title = title:k_armenian_principality
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						has_primary_title = title:k_armenian_principality
					}
				}
			}
		}
		localization_key = armenian_prince_ruler_male
	}
	text = {
		fallback = yes
		localization_key = king_default_male_armenian
	}
}
KingFemaleArmenian = {
	type = character
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_king_female_armenian
	}
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_female_armenian
	}
	text = {
		trigger = {
			OR = {
				has_primary_title = title:k_armenian_principality
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						has_primary_title = title:k_armenian_principality
					}
				}
			}
		}
		localization_key = armenian_prince_ruler_female
	}
	text = {
		fallback = yes
		localization_key = king_default_female_armenian
	}
}
KingdomArmenian = {
	type = character
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_kingdom_armenian
	}
	text = {
		trigger = {
			is_independent_ruler = yes
			root.faith = {
				has_doctrine = tenet_struggle_submission
			}
		}
		localization_key = sultanate_armenian
	}
	text = {
		fallback = yes
		localization_key = kingdom_default_armenian
	}
}
KingMaleGreek = {
	type = character
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_king_male_greek
	}
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_male_greek
	}
	text = {
		fallback = yes
		localization_key = king_default_male_greek
	}
}
KingFemaleGreek = {
	type = character
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_king_female_greek
	}
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_female_greek
	}
	text = {
		fallback = yes
		localization_key = king_default_female_greek
	}
}
KingdomGreek = {
	type = character
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_kingdom_greek
	}
	text = {
		trigger = {
			is_independent_ruler = yes
			root.faith = {
				has_doctrine = tenet_struggle_submission
			}
		}
		localization_key = sultanate_greek
	}
	text = {
		fallback = yes
		localization_key = kingdom_default_greek
	}
}
KingMaleGeorgian = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_georgian
	}
	text = {
		fallback = yes
		localization_key = king_default_male_georgian
	}
}
KingFemaleGeorgian = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_georgian
	}
	text = {
		fallback = yes
		localization_key = king_default_female_georgian
	}
}
KingdomGeorgian = {
	type = character
	text = {
		trigger = {
			is_independent_ruler = yes
			root.faith = {
				has_doctrine = tenet_struggle_submission
			}
		}
		localization_key = sultanate_georgian
	}
	text = {
		fallback = yes
		localization_key = kingdom_default_georgian
	}
}
KingMaleAlan = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_male_alan
	}
	text = {
		fallback = yes
		localization_key = king_default_male_alan
	}
}
KingFemaleAlan = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_female_alan
	}
	text = {
		fallback = yes
		localization_key = king_default_female_alan
	}
}
KingdomAlan = {
	type = character
	text = {
		trigger = {
			is_independent_ruler = yes
			root.faith = {
				has_doctrine = tenet_struggle_submission
			}
		}
		localization_key = sultanate_alan
	}
	text = {
		fallback = yes
		localization_key = kingdom_default_alan
	}
}
KingMaleAssyrian = {
	type = character
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_king_male_assyrian
	}
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_male_assyrian
	}
	text = {
		fallback = yes
		localization_key = king_default_male_assyrian
	}
}
KingFemaleAssyrian = {
	type = character
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_king_female_assyrian
	}
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_female_assyrian
	}
	text = {
		fallback = yes
		localization_key = king_default_female_assyrian
	}
}
KingdomAssyrian = {
	type = character
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_kingdom_assyrian
	}
	text = {
		trigger = {
			is_independent_ruler = yes
			root.faith = {
				has_doctrine = tenet_struggle_submission
			}
		}
		localization_key = sultanate_assyrian
	}
	text = {
		fallback = yes
		localization_key = kingdom_default_assyrian
	}
}
KingMaleItalian = {
	type = character
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_king_male_italian
	}
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_male_italian
	}
	text = {
		fallback = yes
		localization_key = king_default_male_italian
	}
}
KingFemaleItalian = {
	type = character
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_king_female_italian
	}
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_female_italian
	}
	text = {
		fallback = yes
		localization_key = king_default_female_italian
	}
}
KingdomItalian = {
	type = character
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_kingdom_italian
	}
	text = {
		trigger = {
			is_independent_ruler = yes
			root.faith = {
				has_doctrine = tenet_struggle_submission
			}
		}
		localization_key = sultanate_italian
	}
	text = {
		fallback = yes
		localization_key = kingdom_default_italian
	}
}
KingMaleRoman = {
	type = character
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = surpreme_roman_king_male
	}
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_male_roman
	}
	text = {
		fallback = yes
		localization_key = king_default_male_roman
	}
}
KingFemaleRoman = {
	type = character
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = surpreme_roman_king_female
	}
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_female_roman
	}
	text = {
		fallback = yes
		localization_key = king_default_female_roman
	}
}
KingdomRoman = {
	type = character
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = surpreme_roman_kingdom
	}
	text = {
		trigger = {
			is_independent_ruler = yes
			root.faith = {
				has_doctrine = tenet_struggle_submission
			}
		}
		localization_key = sultanate_roman
	}
	text = {
		fallback = yes
		localization_key = kingdom_default_roman
	}
}
KingMaleCisalpine = {
	type = character
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_king_male_italian
	}
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_male_italian
	}
	text = {
		fallback = yes
		localization_key = king_default_male_cisalpine
	}
}
KingFemaleCisalpine = {
	type = character
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_king_female_italian
	}
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_female_italian
	}
	text = {
		fallback = yes
		localization_key = king_default_female_cisalpine
	}
}
KingdomCisalpine = {
	type = character
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_kingdom_italian
	}
	text = {
		trigger = {
			is_independent_ruler = yes
			root.faith = {
				has_doctrine = tenet_struggle_submission
			}
		}
		localization_key = sultanate_italian
	}
	text = {
		fallback = yes
		localization_key = kingdom_default_cisalpine
	}
}
KingMaleSardinian = {
	type = character
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_king_male_sardinian
	}
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_male_sardinian
	}
	text = {
		fallback = yes
		localization_key = king_default_male_sardinian
	}
}
KingFemaleSardinian = {
	type = character
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_king_female_sardinian
	}
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_female_sardinian
	}
	text = {
		fallback = yes
		localization_key = king_default_female_sardinian
	}
}
KingdomSardinian = {
	type = character
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_kingdom_sardinian
	}
	text = {
		trigger = {
			is_independent_ruler = yes
			root.faith = {
				has_doctrine = tenet_struggle_submission
			}
		}
		localization_key = sultanate_sardinian
	}
	text = {
		fallback = yes
		localization_key = kingdom_default_sardinian
	}
}
KingMaleSicilian = {
	type = character
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_king_male_sardinian
	}
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_male_sardinian
	}
	text = {
		fallback = yes
		localization_key = king_default_male_sicilian
	}
}
KingFemaleSicilian = {
	type = character
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_king_female_sardinian
	}
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_female_sardinian
	}
	text = {
		fallback = yes
		localization_key = king_default_female_sicilian
	}
}
KingdomSicilian = {
	type = character
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_kingdom_sardinian
	}
	text = {
		trigger = {
			is_independent_ruler = yes
			root.faith = {
				has_doctrine = tenet_struggle_submission
			}
		}
		localization_key = sultanate_sardinian
	}
	text = {
		fallback = yes
		localization_key = kingdom_default_sicilian
	}
}
KingMaleLombard = {
	type = character
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_king_male_lombard
	}
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_male_lombard
	}
	text = {
		fallback = yes
		localization_key = king_default_male_lombard
	}
}
KingFemaleLombard = {
	type = character
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_king_female_lombard
	}
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_female_lombard
	}
	text = {
		fallback = yes
		localization_key = king_default_female_lombard
	}
}
KingdomLombard = {
	type = character
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_kingdom_lombard
	}
	text = {
		trigger = {
			is_independent_ruler = yes
			root.faith = {
				has_doctrine = tenet_struggle_submission
			}
		}
		localization_key = sultanate_lombard
	}
	text = {
		fallback = yes
		localization_key = kingdom_default_lombard
	}
}
KingMaleCroatian = {
	type = character
	text = {
		trigger = {
			OR = {
				root.top_liege ?= {
					OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
				}
				AND = {
					has_faith = faith:orthodox
					is_landed = yes
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						has_faith = faith:orthodox
						is_landed = yes
					}
				}
			}
		}
		localization_key = byzantine_king_male_croatian
	}
	text = {
		fallback = yes
		localization_key = king_default_male_croatian
	}
}
KingFemaleCroatian = {
	type = character
	text = {
		trigger = {
			OR = {
				root.top_liege ?= {
					OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
				}
				AND = {
					has_faith = faith:orthodox
					is_landed = yes
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						has_faith = faith:orthodox
						is_landed = yes
					}
				}
			}
		}
		localization_key = byzantine_king_female_croatian
	}
	text = {
		fallback = yes
		localization_key = king_default_female_croatian
	}
}
KingdomCroatian = {
	type = character
	text = {
		trigger = {
			OR = {
				has_faith = faith:orthodox
				root.top_liege ?= {
					OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
				}
			}
		}
		localization_key = byzantine_kingdom_croatian
	}
	text = {
		fallback = yes
		localization_key = kingdom_default_croatian
	}
}
KingMaleSerbian = {
	type = character
	text = {
		trigger = {
			OR = {
				root.top_liege ?= {
					OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
				}
				AND = {
					has_faith = faith:orthodox
					is_landed = yes
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						has_faith = faith:orthodox
						is_landed = yes
					}
				}
			}
		}
		localization_key = byzantine_king_male_serbian
	}
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_male_serbian
	}
	text = {
		fallback = yes
		localization_key = king_default_male_serbian
	}
}
KingFemaleSerbian = {
	type = character
	text = {
		trigger = {
			OR = {
				root.top_liege ?= {
					OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
				}
				AND = {
					has_faith = faith:orthodox
					is_landed = yes
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						has_faith = faith:orthodox
						is_landed = yes
					}
				}
			}
		}
		localization_key = byzantine_king_female_serbian
	}
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_female_serbian
	}
	text = {
		fallback = yes
		localization_key = king_default_female_serbian
	}
}
KingdomSerbian = {
	type = character
	text = {
		trigger = {
			OR = {
				has_faith = faith:orthodox
				root.top_liege ?= {
					OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
				}
			}
		}
		localization_key = byzantine_kingdom_serbian
	}
	text = {
		trigger = {
			is_independent_ruler = yes
			root.faith = {
				has_doctrine = tenet_struggle_submission
			}
		}
		localization_key = sultanate_serbian
	}
	text = {
		fallback = yes
		localization_key = kingdom_default_serbian
	}
}
KingMaleVlach = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_male_vlach
	}
	text = {
		fallback = yes
		localization_key = king_default_male_vlach
	}
}
KingFemaleVlach = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_female_vlach
	}
	text = {
		fallback = yes
		localization_key = king_default_female_vlach
	}
}
KingdomVlach = {
	type = character
	text = {
		trigger = {
			is_independent_ruler = yes
			root.faith = {
				has_doctrine = tenet_struggle_submission
			}
		}
		localization_key = sultanate_vlach
	}
	text = {
		fallback = yes
		localization_key = kingdom_default_vlach
	}
}
KingMaleBulgarian = {
	type = character
	text = {
		trigger = {
			OR = {
				root.top_liege ?= {
					OR = {
						has_primary_title = title:e_byzantium
						has_primary_title = title:e_roman_empire
					}
				}
				AND = {
					has_faith = faith:orthodox
					is_landed = yes
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						has_faith = faith:orthodox
						is_landed = yes
					}
				}
			}
		}
		localization_key = byzantine_king_male_bulgarian
	}
	text = {
		fallback = yes
		localization_key = king_default_male_bulgarian
	}
}
KingFemaleBulgarian = {
	type = character
	text = {
		trigger = {
			OR = {
				root.top_liege ?= {
					OR = {
						has_primary_title = title:e_byzantium
						has_primary_title = title:e_roman_empire
					}
				}
				AND = {
					has_faith = faith:orthodox
					is_landed = yes
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						has_faith = faith:orthodox
						is_landed = yes
					}
				}
			}
		}
		localization_key = byzantine_king_female_bulgarian
	}
	text = {
		fallback = yes
		localization_key = king_default_female_bulgarian
	}
}
KingdomBulgarian = {
	type = character
	text = {
		trigger = {
			OR = {
				has_faith = faith:orthodox
				root.top_liege ?= {
					OR = {
						has_primary_title = title:e_byzantium
						has_primary_title = title:e_roman_empire
					}
				}
			}
		}
		localization_key = byzantine_kingdom_bulgarian
	}
	text = {
		fallback = yes
		localization_key = kingdom_default_bulgarian
	}
}
KingMalePom = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_male_pom
	}
	text = {
		fallback = yes
		localization_key = king_default_male_pom
	}
}
KingFemalePom = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_female_pom
	}
	text = {
		fallback = yes
		localization_key = king_default_female_pom
	}
}
KingdomPom = {
	type = character
	text = {
		trigger = {
			is_independent_ruler = yes
			root.faith = {
				has_doctrine = tenet_struggle_submission
			}
		}
		localization_key = sultanate_pom
	}
	text = {
		fallback = yes
		localization_key = kingdom_default_pom
	}
}
KingMaleCzech = {
	type = character
	text = {
		trigger = {
			OR = {
				root.top_liege ?= {
					OR = {
						has_primary_title = title:e_byzantium
						has_primary_title = title:e_roman_empire
					}
				}
				AND = {
					has_faith = faith:orthodox
					is_landed = yes
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						has_faith = faith:orthodox
						is_landed = yes
					}
				}
			}
		}
		localization_key = byzantine_king_male_czech
	}
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_male_czech
	}
	text = {
		fallback = yes
		localization_key = king_default_male_czech
	}
}
KingFemaleCzech = {
	type = character
	text = {
		trigger = {
			OR = {
				root.top_liege ?= {
					OR = {
						has_primary_title = title:e_byzantium
						has_primary_title = title:e_roman_empire
					}
				}
				AND = {
					has_faith = faith:orthodox
					is_landed = yes
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						has_faith = faith:orthodox
						is_landed = yes
					}
				}
			}
		}
		localization_key = byzantine_king_male_czech
	}
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_female_czech
	}
	text = {
		fallback = yes
		localization_key = king_default_female_czech
	}
}
KingdomCzech = {
	type = character
	text = {
		trigger = {
			OR = {
				has_faith = faith:orthodox
				root.top_liege ?= {
					OR = {
						has_primary_title = title:e_byzantium
						has_primary_title = title:e_roman_empire
					}
				}
			}
		}
		localization_key = byzantine_kingdom_czech
	}
	text = {
		trigger = {
			is_independent_ruler = yes
			root.faith = {
				has_doctrine = tenet_struggle_submission
			}
		}
		localization_key = sultanate_czech
	}
	text = {
		fallback = yes
		localization_key = kingdom_default_czech
	}
}
KingMalePolish = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_male_polish
	}
	text = {
		fallback = yes
		localization_key = king_default_male_polish
	}
}
KingFemalePolish = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_female_polish
	}
	text = {
		fallback = yes
		localization_key = king_default_female_polish
	}
}
KingdomPolish = {
	type = character
	text = {
		trigger = {
			is_independent_ruler = yes
			root.faith = {
				has_doctrine = tenet_struggle_submission
			}
		}
		localization_key = sultanate_polish
	}
	text = {
		fallback = yes
		localization_key = kingdom_default_polish
	}
}
KingMaleMogyer = {
	type = character
	text = {
		trigger = {
			OR = {
				root.top_liege ?= {
					OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
				}
				AND = {
					has_faith = faith:orthodox
					is_landed = yes
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						has_faith = faith:orthodox
						is_landed = yes
					}
				}
			}
		}
		localization_key = byzantine_king_mogyer
	}
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_male_mogyer
	}
	text = {
		fallback = yes
		localization_key = king_default_male_mogyer
	}
}
KingFemaleMogyer = {
	type = character
	text = {
		trigger = {
			OR = {
				root.top_liege ?= {
					OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
				}
				AND = {
					has_faith = faith:orthodox
					is_landed = yes
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						has_faith = faith:orthodox
						is_landed = yes
					}
				}
			}
		}
		localization_key = byzantine_king_mogyer
	}
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_female_mogyer
	}
	text = {
		fallback = yes
		localization_key = king_default_female_mogyer
	}
}
KingdomMogyer = {
	type = character
	text = {
		trigger = {
			OR = {
				has_faith = faith:orthodox
				top_liege = {
					OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
				}
			}
		}
		localization_key = byzantine_kingdom_mogyer
	}
	text = {
		trigger = {
			is_independent_ruler = yes
			root.faith = {
				has_doctrine = tenet_struggle_submission
			}
		}
		localization_key = sultanate_mogyer
	}
	text = {
		fallback = yes
		localization_key = kingdom_default_mogyer
	}
}
KingMaleHung = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					top_liege = {
						OR = {
							has_primary_title = title:e_byzantium
							has_primary_title = title:e_roman_empire
						}
					}
				}
				AND = {
					has_faith = faith:orthodox
					is_landed = yes
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						has_faith = faith:orthodox
						is_landed = yes
					}
				}
			}
		}
		localization_key = byzantine_king_hung
	}
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_male_hung
	}
	text = {
		fallback = yes
		localization_key = king_default_male_hung
	}
}
KingFemaleHung = {
	type = character
	text = {
		trigger = {
			OR = {
				root.top_liege ?= {
					OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
				}
				AND = {
					has_faith = faith:orthodox
					is_landed = yes
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						has_faith = faith:orthodox
						is_landed = yes
					}
				}
			}
		}
		localization_key = byzantine_king_hung
	}
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_female_hung
	}
	text = {
		fallback = yes
		localization_key = king_default_female_hung
	}
}
KingFemaleHolderHung = {
	type = character
	text = {
		trigger = {
			OR = {
				root.top_liege ?= {
					OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
				}
				AND = {
					has_faith = faith:orthodox
					is_landed = yes
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						has_faith = faith:orthodox
						is_landed = yes
					}
				}
			}
		}
		localization_key = byzantine_king_hung
	}
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_female_hung
	}
	text = {
		fallback = yes
		localization_key = king_default_female_holder_hung
	}
}
KingdomHung = {
	type = character
	text = {
		trigger = {
			OR = {
				has_faith = faith:orthodox
				root.top_liege ?= {
					OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
				}
			}
		}
		localization_key = byzantine_kingdom_hung
	}
	text = {
		trigger = {
			is_independent_ruler = yes
			root.faith = {
				has_doctrine = tenet_struggle_submission
			}
		}
		localization_key = sultanate_hung
	}
	text = {
		fallback = yes
		localization_key = kingdom_default_hung
	}
}
KingMaleRus = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_male_rus
	}
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					OR = {
						has_faith = faith:catholic
						has_faith = faith:cathar
						has_faith = faith:waldensian
						has_faith = faith:lollard
						has_faith = faith:insular_celtic
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						OR = {
							has_faith = faith:catholic
							has_faith = faith:cathar
							has_faith = faith:waldensian
							has_faith = faith:lollard
							has_faith = faith:insular_celtic
						}
					}
				}
			}
		}
		localization_key = karl_male_rus
	}
	text = {
		fallback = yes
		localization_key = king_default_male_rus
	}
}
KingFemaleRus = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_female_rus
	}
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					OR = {
						has_faith = faith:catholic
						has_faith = faith:cathar
						has_faith = faith:waldensian
						has_faith = faith:lollard
						has_faith = faith:insular_celtic
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						OR = {
							has_faith = faith:catholic
							has_faith = faith:cathar
							has_faith = faith:waldensian
							has_faith = faith:lollard
							has_faith = faith:insular_celtic
						}
					}
				}
			}
		}
		localization_key = karl_female_rus
	}
	text = {
		fallback = yes
		localization_key = king_default_female_rus
	}
}
KingdomRus = {
	type = character
	text = {
		trigger = {
			is_independent_ruler = yes
			root.faith = {
				has_doctrine = tenet_struggle_submission
			}
		}
		localization_key = sultanate_rus
	}
	text = {
		trigger = {
			OR = {
				has_faith = faith:catholic
				has_faith = faith:cathar
				has_faith = faith:waldensian
				has_faith = faith:lollard
				has_faith = faith:insular_celtic
			}
		}
		localization_key = karldom_rus
	}
	text = {
		fallback = yes
		localization_key = kingdom_default_rus
	}
}
KingMaleIlmenian = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_male_ilmenian
	}
	text = {
		fallback = yes
		localization_key = king_default_male_ilmenian
	}
}
KingMaleSeverian = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_male_severian_volhynian
	}
	text = {
		fallback = yes
		localization_key = king_default_male_severian
	}
}
KingMaleVolhynian = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_male_severian_volhynian
	}
	text = {
		fallback = yes
		localization_key = king_default_male_volhynian
	}
}
KingFemaleOldEastSlavic = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_female_old_east_slavic
	}
	text = {
		fallback = yes
		localization_key = king_default_female_old_east_slavic
	}
}
KingdomOldEastSlavic = {
	type = character
	text = {
		trigger = {
			is_independent_ruler = yes
			root.faith = {
				has_doctrine = tenet_struggle_submission
			}
		}
		localization_key = sultanate_old_east_slavic
	}
	text = {
		fallback = yes
		localization_key = kingdom_default_old_east_slavic
	}
}
KingMaleTamil = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_male_tamil
	}
	text = {
		fallback = yes
		localization_key = king_default_male_tamil
	}
}
KingFemaleTamil = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_female_tamil
	}
	text = {
		fallback = yes
		localization_key = king_default_female_tamil
	}
}
KingFemaleHolderTamil = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_female_tamil
	}
	text = {
		fallback = yes
		localization_key = king_default_female_holder_tamil
	}
}
KingdomTamil = {
	type = character
	text = {
		trigger = {
			is_independent_ruler = yes
			root.faith = {
				has_doctrine = tenet_struggle_submission
			}
		}
		localization_key = sultanate_tamil
	}
	text = {
		fallback = yes
		localization_key = kingdom_default_tamil
	}
}
KingMaleTelugu = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						root.faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_male_telugu
	}
	text = {
		fallback = yes
		localization_key = king_default_male_telugu
	}
}
KingFemaleTelugu = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						root.faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_female_telugu
	}
	text = {
		fallback = yes
		localization_key = king_default_female_telugu
	}
}
KingFemaleHolderTelugu = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						root.faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_female_telugu
	}
	text = {
		fallback = yes
		localization_key = king_default_female_holder_telugu
	}
}
KingdomTelugu = {
	type = character
	text = {
		trigger = {
			is_independent_ruler = yes
			root.faith = {
				has_doctrine = tenet_struggle_submission
			}
		}
		localization_key = sultanate_telugu
	}
	text = {
		fallback = yes
		localization_key = kingdom_default_telugu
	}
}
KingMaleKannada = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						root.faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_male_kannada
	}
	text = {
		fallback = yes
		localization_key = king_default_male_kannada
	}
}
KingFemaleKannada = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						root.faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_female_kannada
	}
	text = {
		fallback = yes
		localization_key = king_default_female_kannada
	}
}
KingFemaleHolderKannada = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						root.faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_female_kannada
	}
	text = {
		fallback = yes
		localization_key = king_default_female_holder_kannada
	}
}
KingdomKannada = {
	type = character
	text = {
		trigger = {
			is_independent_ruler = yes
			root.faith = {
				has_doctrine = tenet_struggle_submission
			}
		}
		localization_key = sultanate_kannada
	}
	text = {
		fallback = yes
		localization_key = kingdom_default_kannada
	}
}
KingMaleBengali = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_male_bengali
	}
	text = {
		fallback = yes
		localization_key = king_default_male_bengali
	}
}
KingMaleHolderBengali = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_male_bengali
	}
	text = {
		fallback = yes
		localization_key = king_default_male_holder_bengali
	}
}
KingFemaleBengali = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_female_bengali
	}
	text = {
		fallback = yes
		localization_key = king_default_female_bengali
	}
}
KingFemaleHolderBengali = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_female_bengali
	}
	text = {
		fallback = yes
		localization_key = king_default_female_holder_bengali
	}
}
KingdomBengali = {
	type = character
	text = {
		trigger = {
			is_independent_ruler = yes
			root.faith = {
				has_doctrine = tenet_struggle_submission
			}
		}
		localization_key = sultanate_bengali
	}
	text = {
		fallback = yes
		localization_key = kingdom_default_bengali
	}
}
KingMaleOriya = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_male_oriya
	}
	text = {
		fallback = yes
		localization_key = king_default_male_oriya
	}
}
KingFemaleOriya = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_female_oriya
	}
	text = {
		fallback = yes
		localization_key = king_default_female_oriya
	}
}
KingFemaleHolderOriya = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_female_oriya
	}
	text = {
		fallback = yes
		localization_key = king_default_female_holder_oriya
	}
}
KingdomOriya = {
	type = character
	text = {
		trigger = {
			is_independent_ruler = yes
			root.faith = {
				has_doctrine = tenet_struggle_submission
			}
		}
		localization_key = sultanate_oriya
	}
	text = {
		fallback = yes
		localization_key = kingdom_default_oriya
	}
}
KingMaleAssamese = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_male_assamese
	}
	text = {
		fallback = yes
		localization_key = king_default_male_assamese
	}
}
KingMaleHolderAssamese = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_male_assamese
	}
	text = {
		fallback = yes
		localization_key = king_default_male_holder_assamese
	}
}
KingFemaleAssamese = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_female_assamese
	}
	text = {
		fallback = yes
		localization_key = king_default_female_assamese
	}
}
KingFemaleHolderAssamese = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_female_assamese
	}
	text = {
		fallback = yes
		localization_key = king_default_female_holder_assamese
	}
}
KingdomAssamese = {
	type = character
	text = {
		trigger = {
			is_independent_ruler = yes
			root.faith = {
				has_doctrine = tenet_struggle_submission
			}
		}
		localization_key = sultanate_assamese
	}
	text = {
		fallback = yes
		localization_key = kingdom_default_assamese
	}
}
KingMaleHindustani = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_male_hindustani
	}
	text = {
		fallback = yes
		localization_key = king_default_male_hindustani
	}
}
KingFemaleHindustani = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_female_hindustani
	}
	text = {
		fallback = yes
		localization_key = king_default_female_hindustani
	}
}
KingFemaleHolderHindustani = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_female_hindustani
	}
	text = {
		fallback = yes
		localization_key = king_default_female_holder_hindustani
	}
}
KingdomHindustani = {
	type = character
	text = {
		trigger = {
			is_independent_ruler = yes
			root.faith = {
				has_doctrine = tenet_struggle_submission
			}
		}
		localization_key = sultanate_hindustani
	}
	text = {
		fallback = yes
		localization_key = kingdom_default_hindustani
	}
}
KingMaleGujarati = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_male_gujarati
	}
	text = {
		fallback = yes
		localization_key = king_default_male_gujarati
	}
}
KingFemaleGujarati = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_female_gujarati
	}
	text = {
		fallback = yes
		localization_key = king_default_female_gujarati
	}
}
KingFemaleHolderGujarati = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_female_gujarati
	}
	text = {
		fallback = yes
		localization_key = king_default_female_holder_gujarati
	}
}
KingdomGujarati = {
	type = character
	text = {
		trigger = {
			is_independent_ruler = yes
			root.faith = {
				has_doctrine = tenet_struggle_submission
			}
		}
		localization_key = sultanate_gujarati
	}
	text = {
		fallback = yes
		localization_key = kingdom_default_gujarati
	}
}
KingMalePunjabi = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_male_punjabi
	}
	text = {
		fallback = yes
		localization_key = king_default_male_punjabi
	}
}
KingFemalePunjabi = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_female_punjabi
	}
	text = {
		fallback = yes
		localization_key = king_default_female_punjabi
	}
}
KingFemaleHolderPunjabi = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_female_punjabi
	}
	text = {
		fallback = yes
		localization_key = king_default_female_holder_punjabi
	}
}
KingdomPunjabi = {
	type = character
	text = {
		trigger = {
			is_independent_ruler = yes
			root.faith = {
				has_doctrine = tenet_struggle_submission
			}
		}
		localization_key = sultanate_punjabi
	}
	text = {
		fallback = yes
		localization_key = kingdom_default_punjabi
	}
}
KingMaleRajput = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_male_rajput
	}
	text = {
		fallback = yes
		localization_key = king_default_male_rajput
	}
}
KingFemaleRajput = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_female_rajput
	}
	text = {
		fallback = yes
		localization_key = king_default_female_rajput
	}
}
KingFemaleHolderRajput = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_female_rajput
	}
	text = {
		fallback = yes
		localization_key = king_default_female_holder_rajput
	}
}
KingdomRajput = {
	type = character
	text = {
		trigger = {
			is_independent_ruler = yes
			root.faith = {
				has_doctrine = tenet_struggle_submission
			}
		}
		localization_key = sultanate_rajput
	}
	text = {
		fallback = yes
		localization_key = kingdom_default_rajput
	}
}
KingMaleSindhi = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_male_sindhi
	}
	text = {
		fallback = yes
		localization_key = king_default_male_sindhi
	}
}
KingFemaleSindhi = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_female_sindhi
	}
	text = {
		fallback = yes
		localization_key = king_default_female_sindhi
	}
}
KingdomSindhi = {
	type = character
	text = {
		trigger = {
			is_independent_ruler = yes
			root.faith = {
				has_doctrine = tenet_struggle_submission
			}
		}
		localization_key = sultanate_sindhi
	}
	text = {
		fallback = yes
		localization_key = kingdom_default_sindhi
	}
}
KingMaleMarathi = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_male_marathi
	}
	text = {
		fallback = yes
		localization_key = king_default_male_marathi
	}
}
KingFemaleMarathi = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_female_marathi
	}
	text = {
		fallback = yes
		localization_key = king_default_female_marathi
	}
}
KingFemaleHolderMarathi = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_female_marathi
	}
	text = {
		fallback = yes
		localization_key = king_default_female_holder_marathi
	}
}
KingdomMarathi = {
	type = character
	text = {
		trigger = {
			is_independent_ruler = yes
			root.faith = {
				has_doctrine = tenet_struggle_submission
			}
		}
		localization_key = sultanate_marathi
	}
	text = {
		fallback = yes
		localization_key = kingdom_default_marathi
	}
}
KingMaleKashmiri = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_male_kashmiri
	}
	text = {
		fallback = yes
		localization_key = king_default_male_kashmiri
	}
}
KingFemaleKashmiri = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_female_kashmiri
	}
	text = {
		fallback = yes
		localization_key = king_default_female_kashmiri
	}
}
KingFemaleHolderKashmiri = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_female_kashmiri
	}
	text = {
		fallback = yes
		localization_key = king_default_female_holder_kashmiri
	}
}
KingdomKashmiri = {
	type = character
	text = {
		trigger = {
			is_independent_ruler = yes
			root.faith = {
				has_doctrine = tenet_struggle_submission
			}
		}
		localization_key = sultanate_kashmiri
	}
	text = {
		fallback = yes
		localization_key = kingdom_default_kashmiri
	}
}
KingMaleSinhala = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_male_sinhala
	}
	text = {
		fallback = yes
		localization_key = king_default_male_sinhala
	}
}
KingFemaleSinhala = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_female_sinhala
	}
	text = {
		fallback = yes
		localization_key = king_default_female_sinhala
	}
}
KingFemaleHolderSinhala = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_female_sinhala
	}
	text = {
		fallback = yes
		localization_key = king_default_female_holder_sinhala
	}
}
KingdomSinhala = {
	type = character
	text = {
		trigger = {
			is_independent_ruler = yes
			root.faith = {
				has_doctrine = tenet_struggle_submission
			}
		}
		localization_key = sultanate_sinhala
	}
	text = {
		fallback = yes
		localization_key = kingdom_default_sinhala
	}
}
KingMaleNepali = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_male_nepali
	}
	text = {
		fallback = yes
		localization_key = king_default_male_nepali
	}
}
KingFemaleNepali = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_female_nepali
	}
	text = {
		fallback = yes
		localization_key = king_default_female_nepali
	}
}
KingFemaleHolderNepali = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_female_nepali
	}
	text = {
		fallback = yes
		localization_key = king_default_female_holder_nepali
	}
}
KingdomNepali = {
	type = character
	text = {
		trigger = {
			is_independent_ruler = yes
			root.faith = {
				has_doctrine = tenet_struggle_submission
			}
		}
		localization_key = sultanate_nepali
	}
	text = {
		fallback = yes
		localization_key = kingdom_default_nepali
	}
}
KingMaleSomali = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_male_somali
	}
	text = {
		fallback = yes
		localization_key = king_default_male_somali
	}
}
KingFemaleSomali = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_female_somali
	}
	text = {
		fallback = yes
		localization_key = king_default_female_somali
	}
}
KingMaleBeja = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_male_beja
	}
	text = {
		fallback = yes
		localization_key = king_default_male_sbeja
	}
}
KingFemaleBeja = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_female_beja
	}
	text = {
		fallback = yes
		localization_key = king_default_female_beja
	}
}
KingMaleTurkishOne = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_turkish_group_one
	}
	text = {
		fallback = yes
		localization_key = king_default_male_turkish_group_one
	}
}
KingFemaleHolderTurkishOne = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_turkish_group_one
	}
	text = {
		fallback = yes
		localization_key = king_female_turkish_group_one
	}
}
KingdomTurkishOne = {
	type = character
	text = {
		trigger = {
			is_independent_ruler = yes
			root.faith = {
				has_doctrine = tenet_struggle_submission
			}
		}
		localization_key = sultanate_turkish_group_one
	}
	text = {
		fallback = yes
		localization_key = kingdom_default_turkish_group_one
	}
}
KingMaleTurkishTwo = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_male_turkish_group_two
	}
	text = {
		fallback = yes
		localization_key = king_default_male_turkish_group_two
	}
}
KingFemaleTurkishTwo = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_female_turkish_group_two
	}
	text = {
		fallback = yes
		localization_key = king_default_female_turkish_group_two
	}
}
KingdomTurkishTwo = {
	type = character
	text = {
		trigger = {
			is_independent_ruler = yes
			root.faith = {
				has_doctrine = tenet_struggle_submission
			}
		}
		localization_key = sultanate_turkish_group_two
	}
	text = {
		fallback = yes
		localization_key = kingdom_default_turkish_group_two
	}
}
KingMaleKhazar = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_khazar
	}
	text = {
		fallback = yes
		localization_key = king_default_male_turkish_group_two
	}
}
KingFemaleHolderKhazar = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_khazar
	}
	text = {
		fallback = yes
		localization_key = king_female_khazar
	}
}
KingdomKhazar = {
	type = character
	text = {
		trigger = {
			is_independent_ruler = yes
			root.faith = {
				has_doctrine = tenet_struggle_submission
			}
		}
		localization_key = sultanate_khazar
	}
	text = {
		fallback = yes
		localization_key = kingdom_default_turkish_group_two
	}
}
KingMaleKimek = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_male_turkish_group_two
	}
	text = {
		fallback = yes
		localization_key = king_default_male_turkish_group_two
	}
}
KingFemaleKimek = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_female_turkish_group_two
	}
	text = {
		fallback = yes
		localization_key = king_female_khazar
	}
}
KingdomKimek = {
	type = character
	text = {
		trigger = {
			is_independent_ruler = yes
			root.faith = {
				has_doctrine = tenet_struggle_submission
			}
		}
		localization_key = sultanate_turkish_group_two
	}
	text = {
		fallback = yes
		localization_key = kingdom_default_turkish_group_two
	}
}
IndepKingdomMongol = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_empire
		}
		localization_key = kingdom_mongolic_group
	}
	text = {
		fallback = yes
		localization_key = empire_mongolic_group
	}
}
KingMalePersian = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_male_persian
	}
	text = {
		fallback = yes
		localization_key = king_default_male_persian
	}
}
KingFemalePersian = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_female_persian
	}
	text = {
		fallback = yes
		localization_key = king_default_female_persian
	}
}
KingdomPersian = {
	type = character
	text = {
		trigger = {
			is_independent_ruler = yes
			root.faith = {
				has_doctrine = tenet_struggle_submission
			}
		}
		localization_key = sultanate_persian
	}
	text = {
		fallback = yes
		localization_key = kingdom_default_persian
	}
}
KingMaleSogdian = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_male_sogdian
	}
	text = {
		fallback = yes
		localization_key = king_default_male_sogdian
	}
}
KingFemaleSogdian = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_female_sogdian
	}
	text = {
		fallback = yes
		localization_key = king_default_female_sogdian
	}
}
KingdomSogdian = {
	type = character
	text = {
		trigger = {
			is_independent_ruler = yes
			root.faith = {
				has_doctrine = tenet_struggle_submission
			}
		}
		localization_key = sultanate_sogdian
	}
	text = {
		fallback = yes
		localization_key = kingdom_default_sogdian
	}
}
KingMaleKurdish = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_male_kurdish
	}
	text = {
		fallback = yes
		localization_key = king_default_male_kurdish
	}
}
KingFemaleKurdish = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_female_kurdish
	}
	text = {
		fallback = yes
		localization_key = king_default_female_kurdish
	}
}
KingdomKurdish = {
	type = character
	text = {
		trigger = {
			is_independent_ruler = yes
			root.faith = {
				has_doctrine = tenet_struggle_submission
			}
		}
		localization_key = sultanate_kurdish
	}
	text = {
		fallback = yes
		localization_key = kingdom_default_kurdish
	}
}
KingMaleAfghan = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_male_afghan
	}
	text = {
		fallback = yes
		localization_key = king_default_male_afghan
	}
}
KingFemaleAfghan = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_female_afghan
	}
	text = {
		fallback = yes
		localization_key = king_default_female_afghan
	}
}
KingdomAfghan = {
	type = character
	text = {
		trigger = {
			is_independent_ruler = yes
			root.faith = {
				has_doctrine = tenet_struggle_submission
			}
		}
		localization_key = sultanate_afghan
	}
	text = {
		fallback = yes
		localization_key = kingdom_default_afghan
	}
}
KingMaleBaloch = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_male_baloch
	}
	text = {
		fallback = yes
		localization_key = king_default_male_baloch
	}
}
KingFemaleBaloch = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_female_baloch
	}
	text = {
		fallback = yes
		localization_key = king_default_female_baloch
	}
}
KingdomBaloch = {
	type = character
	text = {
		trigger = {
			is_independent_ruler = yes
			root.faith = {
				has_doctrine = tenet_struggle_submission
			}
		}
		localization_key = sultanate_baloch
	}
	text = {
		fallback = yes
		localization_key = kingdom_default_baloch
	}
}
KingMaleKhwarezmian = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_male_khwarezmian
	}
	text = {
		fallback = yes
		localization_key = king_default_male_khwarezmian
	}
}
KingFemaleKhwarezmian = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_female_khwarezmian
	}
	text = {
		fallback = yes
		localization_key = king_default_female_khwarezmian
	}
}
KingdomKhwarezmian = {
	type = character
	text = {
		trigger = {
			is_independent_ruler = yes
			root.faith = {
				has_doctrine = tenet_struggle_submission
			}
		}
		localization_key = sultanate_khwarezmian
	}
	text = {
		fallback = yes
		localization_key = kingdom_default_khwarezmian
	}
}
KingMaleTajik = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_male_tajik
	}
	text = {
		fallback = yes
		localization_key = king_default_male_tajik
	}
}
KingFemaleTajik = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_female_tajik
	}
	text = {
		fallback = yes
		localization_key = king_default_female_tajik
	}
}
KingdomTajik = {
	type = character
	text = {
		trigger = {
			is_independent_ruler = yes
			root.faith = {
				has_doctrine = tenet_struggle_submission
			}
		}
		localization_key = sultanate_tajik
	}
	text = {
		fallback = yes
		localization_key = kingdom_default_tajik
	}
}


################################################################################################CTP - Independent Kingdom


SoninkeIndepKingdom = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier = tier_empire
		}
		localization_key = kingdom_nubian
	}
	text = {
		fallback = yes
		localization_key = empire_soninke
	}
}
BodpaIndepKingdom = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier = tier_empire
		}
		localization_key = kingdom_bodpa
	}
	text = {
		fallback = yes
		localization_key = indep_kingdom_bodpa
	}
}
MalinkeIndepKingdom = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier = tier_empire
		}
		localization_key = kingdom_malinke
	}
	text = {
		fallback = yes
		localization_key = empire_malinke
	}
}


################################################################################################CTP - Empire


EmperorMaleArabic = {
	type = character
	text = {
		trigger = {
			OR = {
				root.faith = {
					has_doctrine = tenet_struggle_submission
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
			}
		}
		localization_key = sultan_arabic
	}
	text = {
		fallback = yes
		localization_key = emperor_default_male_arabic
	}
}
EmperorFemaleArabic = {
	type = character
	text = {
		trigger = {
			is_landed = yes
			root.faith = {
				has_doctrine = tenet_struggle_submission
			}
		}
		localization_key = sultan_arabic
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse.faith = {
				has_doctrine = tenet_struggle_submission
			}
		}
		localization_key = sultan_female_arabic
	}
	text = {
		fallback = yes
		localization_key = emperor_default_female_arabic
	}
}
EmpireArabic = {
	type = character
	text = {
		trigger = {
			root.faith = {
				has_doctrine = tenet_struggle_submission
			}
		}
		localization_key = sultanate_arabic
	}
	text = {
		fallback = yes
		localization_key = empire_default_arabic
	}
}
EmperorMaleTurkish = {
	type = character
	text = {
		trigger = {
			has_culture = culture:turkish
			OR = {
				root.faith = {
					has_doctrine = tenet_struggle_submission
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
			}
		}
		localization_key = sultan_male_turkish_e
	}
	text = {
		fallback = yes
		localization_key = emperor_default_male_turkish_group_one
	}
}
EmperorFemaleTurkish = {
	type = character
	text = {
		trigger = {
			has_culture = culture:turkish
			OR = {
				root.faith = {
					has_doctrine = tenet_struggle_submission
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
			}
		}
		localization_key = sultan_female_turkish_e
	}
	text = {
		fallback = yes
		localization_key = emperor_default_female_turkish_group_one
	}
}
EmpireTurkish = {
	type = character
	text = {
		trigger = {
			has_culture = culture:turkish
			root.faith = {
				has_doctrine = tenet_struggle_submission
			}
		}
		localization_key = sultanate_turkish_e
	}
	text = {
		fallback = yes
		localization_key = empire_default_turkish_group_one
	}
}


################################################################################################CTP - Barony


DynastyCheckBaronIrishM = {
	type = character
	text = {
		trigger = {
			is_ruler = yes
		}
		localization_key = baron_male_holder_irish
	}
	text = {
		localization_key = baron_male_non_holder_irish
		fallback = yes
	}
}
BaronMaleIrish = {
	type = character
	text = {
		trigger = {
			culture = {
				any_parent_culture_or_above = {
					this = {
						has_cultural_pillar = heritage_north_germanic
					}
				}
			}
		}
		localization_key = baron_male_gael_norse
	}
	text = {
		localization_key = baron_male_irish_default
		fallback = yes
	}
}
DynastyCheckBaronIrishF = {
	type = character
	text = {
		trigger = {
			is_ruler = yes
		}
		localization_key = baron_female_holder_irish
	}
	text = {
		localization_key = baron_female_non_holder_irish
		fallback = yes
	}
}
BaronFemaleIrish = {
	type = character
	text = {
		trigger = {
			culture = {
				any_parent_culture_or_above = {
					this = {
						has_cultural_pillar = heritage_north_germanic
					}
				}
			}
		}
		localization_key = baron_female_gael_norse
	}
	text = {
		localization_key = baron_female_irish_default
		fallback = yes
	}
}
DynastyCheckBaronAnglo = {
	type = character
	text = {
		trigger = {
			is_ruler = yes
		}
		localization_key = baron_male_holder_anglo
	}
	text = {
		localization_key = baron_male_non_holder_anglo
		fallback = yes
	}
}
BaronMaleAnglo = {
	type = character
	text = {
		trigger = {
			culture = {
				any_parent_culture_or_above = {
					this = {
						has_cultural_pillar = heritage_north_germanic
					}
				}
			}
		}
		localization_key = baron_male_anglo_norse
	}
	text = {
		localization_key = baron_male_anglo_saxon
		fallback = yes
	}
}
BaronyAnglo = {
	type = character
	text = {
		trigger = {
			culture = {
				any_parent_culture_or_above = {
					this = {
						has_cultural_pillar = heritage_north_germanic
					}
				}
			}
		}
		localization_key = barony_castle_anglo_norse
	}
	text = {
		localization_key = barony_castle_anglo_saxon
		fallback = yes
	}
}
BaronRepublicBasque = {
	type = character
	text = {
		trigger = {
			exists = liege
			root.liege = {
				has_government = republic_government
			}
		}
		localization_key = perfecto_basque
	}
	text = {
		localization_key = baron_default_republic_basque
		fallback = yes
	}
}
BaronMaleItalian = {
	type = character
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_baron_male_italian
	}
	text = {
		localization_key = baron_default_male_italian
		fallback = yes
	}
}
BaronFemaleItalian = {
	type = character
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_baron_female_italian
	}
	text = {
		localization_key = baron_default_female_italian
		fallback = yes
	}
}
BaronyItalian = {
	type = character
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_barony_italian
	}
	text = {
		localization_key = barony_default_italian
		fallback = yes
	}
}
BaronMaleRoman = {
	type = character
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = surpreme_roman_baron_male
	}
	text = {
		localization_key = baron_default_male_roman
		fallback = yes
	}
}
BaronFemaleRoman = {
	type = character
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = surpreme_roman_baron_female
	}
	text = {
		localization_key = baron_default_female_roman
		fallback = yes
	}
}
BaronyRoman = {
	type = character
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = surpreme_roman_barony
	}
	text = {
		localization_key = barony_default_roman
		fallback = yes
	}
}
BaronMaleCisalpine = {
	type = character
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_baron_male_italian
	}
	text = {
		localization_key = baron_default_male_cisalpine
		fallback = yes
	}
}

BaronFemaleCisalpine = {
	type = character
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_baron_female_italian
	}
	text = {
		localization_key = baron_default_female_cisalpine
		fallback = yes
	}
}
BaronyCisalpine = {
	type = character
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_barony_italian
	}
	text = {
		localization_key = barony_default_cisalpine
		fallback = yes
	}
}
BaronMaleSardinian = {
	type = character
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_baron_male_sardinian
	}
	text = {
		trigger = {
			holds_landed_title = yes
			root.top_liege ?= {
				highest_held_title_tier = tier_county
				OR = {
					has_primary_title = title:c_cagliari
					has_primary_title = title:c_arborea
					has_primary_title = title:c_gallura
					has_primary_title = title:c_logudoro
					has_primary_title = title:c_tortoli
				}
			}
		}
		localization_key = curadore_sardinian
	}
	text = {
		trigger = {
			holds_landed_title = no
			root.top_liege ?= {
				highest_held_title_tier = tier_county
				OR = {
					has_primary_title = title:c_cagliari
					has_primary_title = title:c_arborea
					has_primary_title = title:c_gallura
					has_primary_title = title:c_logudoro
					has_primary_title = title:c_tortoli
				}
			}
		}
		localization_key = ctp_blank
	}
	text = {
		localization_key = baron_male_sardinian_default
		fallback = yes
	}
}

BaronFemaleSardinian = {
	type = character
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_baron_female_sardinian
	}
	text = {
		trigger = {
			holds_landed_title = yes
			root.top_liege ?= {
				highest_held_title_tier = tier_county
				OR = {
					has_primary_title = title:c_cagliari
					has_primary_title = title:c_arborea
					has_primary_title = title:c_gallura
					has_primary_title = title:c_logudoro
					has_primary_title = title:c_tortoli
				}
			}
		}
		localization_key = curadore_sardinian
	}
	text = {
		trigger = {
			holds_landed_title = no
			root.top_liege ?= {
				highest_held_title_tier = tier_county
				OR = {
					has_primary_title = title:c_cagliari
					has_primary_title = title:c_arborea
					has_primary_title = title:c_gallura
					has_primary_title = title:c_logudoro
					has_primary_title = title:c_tortoli
				}
			}
		}
		localization_key = ctp_blank
	}
	text = {
		localization_key = baron_female_sardinian_default
		fallback = yes
	}
}
BaronySardinian = {
	type = character
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_barony_sardinian
	}
	text = {
		trigger = {
			root.top_liege ?= {
				highest_held_title_tier = tier_county
				OR = {
					has_primary_title = title:c_cagliari
					has_primary_title = title:c_arborea
					has_primary_title = title:c_gallura
					has_primary_title = title:c_logudoro
					has_primary_title = title:c_tortoli
				}
			}
		}
		localization_key = curadoria_sardinian
	}
	text = {
		localization_key = barony_feudal_sardinian_default
		fallback = yes
	}
}
BaronMaleSardinianRepublic = {
	type = character
	text = {
		trigger = {
			root.top_liege ?= {
				highest_held_title_tier = tier_county
				OR = {
					has_primary_title = title:c_cagliari
					has_primary_title = title:c_arborea
					has_primary_title = title:c_gallura
					has_primary_title = title:c_logudoro
					has_primary_title = title:c_tortoli
				}
			}
		}
		localization_key = curadore_sardinian
	}
	text = {
		localization_key = baron_default_republic_male_sardinian
		fallback = yes
	}
}
BaronFemaleSardinianRepublic = {
	type = character
	text = {
		trigger = {
			root.top_liege ?= {
				highest_held_title_tier = tier_county
				OR = {
					has_primary_title = title:c_cagliari
					has_primary_title = title:c_arborea
					has_primary_title = title:c_gallura
					has_primary_title = title:c_logudoro
					has_primary_title = title:c_tortoli
				}
			}
		}
		localization_key = curadore_sardinian
	}
	text = {
		localization_key = baron_default_republic_female_sardinian
		fallback = yes
	}
}
BaronySardinianRepublic = {
	type = character
	text = {
		trigger = {
			root.top_liege ?= {
				highest_held_title_tier = tier_county
				OR = {
					has_primary_title = title:c_cagliari
					has_primary_title = title:c_arborea
					has_primary_title = title:c_gallura
					has_primary_title = title:c_logudoro
					has_primary_title = title:c_tortoli
				}
			}
		}
		localization_key = curadoria_sardinian
	}
	text = {
		localization_key = barony_default_republic_sardinian
		fallback = yes
	}
}
BaronMaleSicilian = {
	type = character
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_baron_male_sardinian
	}
	text = {
		localization_key = baron_male_sicilian_default
		fallback = yes
	}
}
BaronFemaleSicilian = {
	type = character
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_baron_female_sardinian
	}
	text = {
		localization_key = baron_female_sicilian_default
		fallback = yes
	}
}
BaronySicilian = {
	type = character
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_barony_sardinian
	}
	text = {
		localization_key = barony_feudal_sicilian_default
		fallback = yes
	}
}
BaronMaleLombard = {
	type = character
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_baron_male_lombard
	}
	text = {
		localization_key = baron_male_lombard_default
		fallback = yes
	}
}

BaronFemaleLombard = {
	type = character
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_baron_female_lombard
	}
	text = {
		localization_key = baron_female_lombard_default
		fallback = yes
	}
}
BaronyLombard = {
	type = character
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_barony_lombard
	}
	text = {
		localization_key = barony_feudal_lombard_default
		fallback = yes
	}
}
BaronMaleCroatian = {
	type = character
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_baron_male_croatian
	}
	text = {
		localization_key = baron_default_male_croatian
		fallback = yes
	}
}
BaronFemaleCroatian = {
	type = character
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_baron_female_croatian
	}
	text = {
		localization_key = baron_default_female_croatian
		fallback = yes
	}
}
BaronyCroatian = {
	type = character
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_barony_croatian
	}
	text = {
		localization_key = barony_default_croatian
		fallback = yes
	}
}
BaronMaleSerbian = {
	type = character
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_baron_male_serbian
	}
	text = {
		localization_key = baron_default_male_serbian
		fallback = yes
	}
}

BaronFemaleSerbian = {
	type = character
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_baron_female_serbian
	}
	text = {
		localization_key = baron_default_female_serbian
		fallback = yes
	}
}
BaronySerbian = {
	type = character
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_barony_serbian
	}
	text = {
		localization_key = barony_default_serbian
		fallback = yes
	}
}
BaronMaleBulgarian = {
	type = character
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_baron_male_bulgarian
	}
	text = {
		localization_key = baron_default_male_bulgarian
		fallback = yes
	}
}

BaronFemaleBulgarian = {
	type = character
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_baron_female_bulgarian
	}
	text = {
		localization_key = baron_default_female_bulgarian
		fallback = yes
	}
}
BaronyBulgarian = {
	type = character
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_barony_bulgarian
	}
	text = {
		localization_key = barony_default_bulgarian
		fallback = yes
	}
}
BaronMaleMogyer = {
	type = character
	text = {
		trigger = {
			holds_landed_title = yes
			root.top_liege ?= {
				highest_held_title_tier = tier_county
				OR = {
					has_primary_title = title:c_cagliari
					has_primary_title = title:c_arborea
					has_primary_title = title:c_gallura
					has_primary_title = title:c_logudoro
					has_primary_title = title:c_tortoli
				}
			}
		}
		localization_key = curadore_mogyer
	}
	text = {
		trigger = {
			holds_landed_title = no
			root.top_liege ?= {
				highest_held_title_tier = tier_county
				OR = {
					has_primary_title = title:c_cagliari
					has_primary_title = title:c_arborea
					has_primary_title = title:c_gallura
					has_primary_title = title:c_logudoro
					has_primary_title = title:c_tortoli
				}
			}
		}
		localization_key = ctp_blank
	}
	text = {
		localization_key = baron_male_mogyer_default
		fallback = yes
	}
}

BaronFemaleMogyer = {
	type = character
	text = {
		trigger = {
			holds_landed_title = yes
			root.top_liege ?= {
				highest_held_title_tier = tier_county
				OR = {
					has_primary_title = title:c_cagliari
					has_primary_title = title:c_arborea
					has_primary_title = title:c_gallura
					has_primary_title = title:c_logudoro
					has_primary_title = title:c_tortoli
				}
			}
		}
		localization_key = curadore_mogyer
	}
	text = {
		trigger = {
			holds_landed_title = no
			root.top_liege ?= {
				highest_held_title_tier = tier_county
				OR = {
					has_primary_title = title:c_cagliari
					has_primary_title = title:c_arborea
					has_primary_title = title:c_gallura
					has_primary_title = title:c_logudoro
					has_primary_title = title:c_tortoli
				}
			}
		}
		localization_key = ctp_blank
	}
	text = {
		localization_key = baron_female_mogyer_default
		fallback = yes
	}
}
BaronMaleMogyerRepublic = {
	type = character
	text = {
		trigger = {
			root.top_liege ?= {
				highest_held_title_tier = tier_county
				OR = {
					has_primary_title = title:c_cagliari
					has_primary_title = title:c_arborea
					has_primary_title = title:c_gallura
					has_primary_title = title:c_logudoro
					has_primary_title = title:c_tortoli
				}
			}
		}
		localization_key = curadore_mogyer
	}
	text = {
		trigger = {
			exists = liege
			root.liege = {
				has_government = republic_government
			}
		}
		localization_key = perfecto_male_mogyer
	}
	text = {
		localization_key = baron_default_republic_male_mogyer
		fallback = yes
	}
}
BaronFemaleMogyerRepublic = {
	type = character
	text = {
		trigger = {
			root.top_liege ?= {
				highest_held_title_tier = tier_county
				OR = {
					has_primary_title = title:c_cagliari
					has_primary_title = title:c_arborea
					has_primary_title = title:c_gallura
					has_primary_title = title:c_logudoro
					has_primary_title = title:c_tortoli
				}
			}
		}
		localization_key = curadore_mogyer
	}
	text = {
		trigger = {
			exists = liege
			root.liege = {
				has_government = republic_government
			}
		}
		localization_key = perfecto_female_mogyer
	}
	text = {
		localization_key = baron_default_republic_female_mogyer
		fallback = yes
	}
}
BaronMaleHung = {
	type = character
	text = {
		trigger = {
			holds_landed_title = yes
			root.top_liege ?= {
				highest_held_title_tier = tier_county
				OR = {
					has_primary_title = title:c_cagliari
					has_primary_title = title:c_arborea
					has_primary_title = title:c_gallura
					has_primary_title = title:c_logudoro
					has_primary_title = title:c_tortoli
				}
			}
		}
		localization_key = curadore_hung
	}
	text = {
		trigger = {
			holds_landed_title = no
			root.top_liege ?= {
				highest_held_title_tier = tier_county
				OR = {
					has_primary_title = title:c_cagliari
					has_primary_title = title:c_arborea
					has_primary_title = title:c_gallura
					has_primary_title = title:c_logudoro
					has_primary_title = title:c_tortoli
				}
			}
		}
		localization_key = ctp_blank
	}
	text = {
		localization_key = baron_male_hung_default
		fallback = yes
	}
}
BaronFemaleHung = {
	type = character
	text = {
		trigger = {
			holds_landed_title = yes
			root.top_liege ?= {
				highest_held_title_tier = tier_county
				OR = {
					has_primary_title = title:c_cagliari
					has_primary_title = title:c_arborea
					has_primary_title = title:c_gallura
					has_primary_title = title:c_logudoro
					has_primary_title = title:c_tortoli
				}
			}
		}
		localization_key = curadore_hung
	}
	text = {
		trigger = {
			holds_landed_title = no
			root.top_liege ?= {
				highest_held_title_tier = tier_county
				OR = {
					has_primary_title = title:c_cagliari
					has_primary_title = title:c_arborea
					has_primary_title = title:c_gallura
					has_primary_title = title:c_logudoro
					has_primary_title = title:c_tortoli
				}
			}
		}
		localization_key = ctp_blank
	}
	text = {
		localization_key = baron_female_hung_default
		fallback = yes
	}
}
BaronFemaleHolderHung = {
	type = character
	text = {
		trigger = {
			holds_landed_title = yes
			root.top_liege ?= {
				highest_held_title_tier = tier_county
				OR = {
					has_primary_title = title:c_cagliari
					has_primary_title = title:c_arborea
					has_primary_title = title:c_gallura
					has_primary_title = title:c_logudoro
					has_primary_title = title:c_tortoli
				}
			}
		}
		localization_key = curadore_hung
	}
	text = {
		trigger = {
			holds_landed_title = no
			root.top_liege ?= {
				highest_held_title_tier = tier_county
				OR = {
					has_primary_title = title:c_cagliari
					has_primary_title = title:c_arborea
					has_primary_title = title:c_gallura
					has_primary_title = title:c_logudoro
					has_primary_title = title:c_tortoli
				}
			}
		}
		localization_key = ctp_blank
	}
	text = {
		localization_key = baron_female_holder_hung_default
		fallback = yes
	}
}
BaronMaleHungRepublic = {
	type = character
	text = {
		trigger = {
			root.top_liege ?= {
				highest_held_title_tier = tier_county
				OR = {
					has_primary_title = title:c_cagliari
					has_primary_title = title:c_arborea
					has_primary_title = title:c_gallura
					has_primary_title = title:c_logudoro
					has_primary_title = title:c_tortoli
				}
			}
		}
		localization_key = curadore_hung
	}
	text = {
		trigger = {
			exists = liege
			root.liege = {
				has_government = republic_government
			}
		}
		localization_key = perfecto_male_hung
	}
	text = {
		localization_key = baron_default_republic_male_hung
		fallback = yes
	}
}
BaronFemaleMogyerRepublic = {
	type = character
	text = {
		trigger = {
			root.top_liege ?= {
				highest_held_title_tier = tier_county
				OR = {
					has_primary_title = title:c_cagliari
					has_primary_title = title:c_arborea
					has_primary_title = title:c_gallura
					has_primary_title = title:c_logudoro
					has_primary_title = title:c_tortoli
				}
			}
		}
		localization_key = curadore_hung
	}
	text = {
		trigger = {
			exists = liege
			root.liege = {
				has_government = republic_government
			}
		}
		localization_key = perfecto_female_hung
	}
	text = {
		localization_key = baron_default_republic_female_hung
		fallback = yes
	}
}


################################################################################################RoA - Misc
#Stuff from RoA


# Javanese
CountJavaMale = {
	type = character
	text = {
		trigger = { is_alive = yes }
		localization_key = custom_count_feudal_male_java
	}
	text = {
		localization_key = custom_default_count_feudal_male_java
		fallback = yes
	}
}
CountJavaFemale = {
	type = character
	text = {
		trigger = { is_alive = yes }
		localization_key = custom_count_feudal_female_java
	}
	text = {
		localization_key = custom_default_count_feudal_female_java
		fallback = yes
	}
}
DukeIndependentJavaMale = {
	type = character
	text = {
		trigger = { is_alive = yes }
		localization_key = custom_duke_feudal_male_java_independent
	}
	text = {
		localization_key = custom_default_duke_feudal_male_java_independent
		fallback = yes
	}
}
DukeIndependentJavaFemale = {
	type = character
	text = {
		trigger = { is_alive = yes }
		localization_key = custom_duke_feudal_female_java_independent
	}
	text = {
		localization_key = custom_default_duke_feudal_female_java_independent
		fallback = yes
	}
}
KingJavaMale = {
	type = character
	text = {
		trigger = { is_alive = yes }
		localization_key = custom_king_feudal_male_java
	}
	text = {
		localization_key = custom_default_king_feudal_male_java
		fallback = yes
	}
}
KingJavaFemale = {
	type = character
	text = {
		trigger = { is_alive = yes }
		localization_key = custom_king_feudal_female_java
	}
	text = {
		localization_key = custom_default_king_feudal_female_java
		fallback = yes
	}
}
EmperorJavaMale = {
	type = character
	text = {
		trigger = { is_alive = yes }
		localization_key = custom_emperor_feudal_male_java
	}
	text = {
		localization_key = custom_default_emperor_feudal_male_java
		fallback = yes
	}
}
EmperorJavaFemale = {
	type = character
	text = {
		trigger = { is_alive = yes }
		localization_key = custom_emperor_feudal_female_java
	}
	text = {
		localization_key = custom_default_emperor_feudal_female_java
		fallback = yes
	}
}

# Yamato
BaronYamatoMale = {
    type = character
    text = {
    	trigger = {
			exists = liege
			is_diarch_of_target = liege
			liege = { is_adult = yes }
    	}
		localization_key = yamato_regent_kampaku
	}
    text = {
    	trigger = {
			exists = liege
			is_diarch_of_target = liege
			liege = { is_adult = no }
    	}
		localization_key = yamato_regent_sessho
	}
    text = {
        fallback = yes
        localization_key = baron_feudal_male_yamato_default
    }
}
BaronYamatoFemale = {
    type = character
    text = {
    	trigger = {
			exists = liege
			is_diarch_of_target = liege
			liege = { is_adult = yes }
    	}
		localization_key = yamato_regent_kampaku
	}
    text = {
    	trigger = {
			exists = liege
			is_diarch_of_target = liege
			liege = { is_adult = no }
    	}
		localization_key = yamato_regent_sessho
	}
    text = {
        fallback = yes
        localization_key = baron_feudal_female_yamato_default
    }
}
CountYamatoMale = {
    type = character
    text = {
    	trigger = {
			exists = liege
			is_diarch_of_target = liege
			liege = { is_adult = yes }
    	}
		localization_key = yamato_regent_kampaku
	}
    text = {
    	trigger = {
			exists = liege
			is_diarch_of_target = liege
			liege = { is_adult = no }
    	}
		localization_key = yamato_regent_sessho
	}
    text = {
        fallback = yes
        localization_key = count_feudal_male_yamato_default
    }
}
CountYamatoFemale = {
    type = character
    text = {
    	trigger = {
			exists = liege
			is_diarch_of_target = liege
			liege = { is_adult = yes }
    	}
		localization_key = yamato_regent_kampaku
	}
    text = {
    	trigger = {
			exists = liege
			is_diarch_of_target = liege
			liege = { is_adult = no }
    	}
		localization_key = yamato_regent_sessho
	}
    text = {
        fallback = yes
        localization_key = count_feudal_female_yamato_default
    }
}
CountYamatoMaleIndependent = {
    type = character
    text = {
    	trigger = {
			exists = liege
			is_diarch_of_target = liege
			liege = { is_adult = yes }
    	}
		localization_key = yamato_regent_kampaku
	}
    text = {
    	trigger = {
			exists = liege
			is_diarch_of_target = liege
			liege = { is_adult = no }
    	}
		localization_key = yamato_regent_sessho
	}
    text = {
        fallback = yes
        localization_key = count_feudal_male_yamato_independent_default
    }
}
CountYamatoFemaleIndependent = {
    type = character
    text = {
    	trigger = {
			exists = liege
			is_diarch_of_target = liege
			liege = { is_adult = yes }
    	}
		localization_key = yamato_regent_kampaku
	}
    text = {
    	trigger = {
			exists = liege
			is_diarch_of_target = liege
			liege = { is_adult = no }
    	}
		localization_key = yamato_regent_sessho
	}
    text = {
        fallback = yes
        localization_key = count_feudal_female_yamato_independent_default
    }
}
DukeYamatoMale = {
    type = character
    text = {
    	trigger = {
			exists = liege
			is_diarch_of_target = liege
			liege = { is_adult = yes }
    	}
		localization_key = yamato_regent_kampaku
	}
    text = {
    	trigger = {
			exists = liege
			is_diarch_of_target = liege
			liege = { is_adult = no }
    	}
		localization_key = yamato_regent_sessho
	}
    text = {
        fallback = yes
        localization_key = duke_feudal_male_yamato_default
    }
}
DukeYamatoFemale = {
    type = character
    text = {
    	trigger = {
			exists = liege
			is_diarch_of_target = liege
			liege = { is_adult = yes }
    	}
		localization_key = yamato_regent_kampaku
	}
    text = {
    	trigger = {
			exists = liege
			is_diarch_of_target = liege
			liege = { is_adult = no }
    	}
		localization_key = yamato_regent_sessho
	}
    text = {
        fallback = yes
        localization_key = duke_feudal_female_yamato_default
    }
}
DukeYamatoMaleIndependent = {
    type = character
    text = {
    	trigger = {
			exists = liege
			is_diarch_of_target = liege
			liege = { is_adult = yes }
    	}
		localization_key = yamato_regent_kampaku
	}
    text = {
    	trigger = {
			exists = liege
			is_diarch_of_target = liege
			liege = { is_adult = no }
    	}
		localization_key = yamato_regent_sessho
	}
    text = {
        fallback = yes
        localization_key = duke_feudal_male_yamato_independent_default
    }
}
DukeYamatoFemaleIndependent = {
    type = character
    text = {
    	trigger = {
			exists = liege
			is_diarch_of_target = liege
			liege = { is_adult = yes }
    	}
		localization_key = yamato_regent_kampaku
	}
    text = {
    	trigger = {
			exists = liege
			is_diarch_of_target = liege
			liege = { is_adult = no }
    	}
		localization_key = yamato_regent_sessho
	}
    text = {
        fallback = yes
        localization_key = duke_feudal_female_yamato_independent_default
    }
}
DukeYamatoMaleTohoku = {
    type = character
    text = {
    	trigger = {
			exists = liege
			is_diarch_of_target = liege
			liege = { is_adult = yes }
    	}
		localization_key = yamato_regent_kampaku
	}
    text = {
    	trigger = {
			exists = liege
			is_diarch_of_target = liege
			liege = { is_adult = no }
    	}
		localization_key = yamato_regent_sessho
	}
    text = {
        fallback = yes
        localization_key = duke_feudal_male_yamato_tohoku_default
    }
}
DukeYamatoFemaleTohoku = {
    type = character
    text = {
    	trigger = {
			exists = liege
			is_diarch_of_target = liege
			liege = { is_adult = yes }
    	}
		localization_key = yamato_regent_kampaku
	}
    text = {
    	trigger = {
			exists = liege
			is_diarch_of_target = liege
			liege = { is_adult = no }
    	}
		localization_key = yamato_regent_sessho
	}
    text = {
        fallback = yes
        localization_key = duke_feudal_female_yamato_tohoku_default
    }
}
KingYamatoMale = {
    type = character
    text = {
    	trigger = {
			exists = liege
			is_diarch_of_target = liege
			liege = { is_adult = yes }
    	}
		localization_key = yamato_regent_kampaku
	}
    text = {
    	trigger = {
			exists = liege
			is_diarch_of_target = liege
			liege = { is_adult = no }
    	}
		localization_key = yamato_regent_sessho
	}
    text = {
        fallback = yes
        localization_key = king_feudal_male_yamato_default
    }
}
KingYamatoFemale = {
    type = character
    text = {
    	trigger = {
			exists = liege
			is_diarch_of_target = liege
			liege = { is_adult = yes }
    	}
		localization_key = yamato_regent_kampaku
	}
    text = {
    	trigger = {
			exists = liege
			is_diarch_of_target = liege
			liege = { is_adult = no }
    	}
		localization_key = yamato_regent_sessho
	}
    text = {
        fallback = yes
        localization_key = king_feudal_female_yamato_default
    }
}
KingYamatoMaleJapan = {
    type = character
    text = {
    	trigger = {
			exists = liege
			is_diarch_of_target = liege
			liege = { is_adult = yes }
    	}
		localization_key = yamato_regent_kampaku
	}
    text = {
    	trigger = {
			exists = liege
			is_diarch_of_target = liege
			liege = { is_adult = no }
    	}
		localization_key = yamato_regent_sessho
	}
    text = {
        fallback = yes
        localization_key = king_feudal_male_yamato_japan_default
    }
}
KingYamatoFemaleJapan = {
    type = character
    text = {
    	trigger = {
			exists = liege
			is_diarch_of_target = liege
			liege = { is_adult = yes }
    	}
		localization_key = yamato_regent_kampaku
	}
    text = {
    	trigger = {
			exists = liege
			is_diarch_of_target = liege
			liege = { is_adult = no }
    	}
		localization_key = yamato_regent_sessho
	}
    text = {
        fallback = yes
        localization_key = king_feudal_female_yamato_japan_default
    }
}


TamilIndepCounty = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_duchy
		}
		localization_key = county_tamil
	}
	text = {
		fallback = yes
		localization_key = independent_county_tamil
	}
}
TeluguIndepCounty = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_duchy
		}
		localization_key = county_telugu
	}
	text = {
		fallback = yes
		localization_key = independent_county_telugu
	}
}
KannadaIndepCounty = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_duchy
		}
		localization_key = county_kannada
	}
	text = {
		fallback = yes
		localization_key = independent_county_kannada
	}
}
BengaliIndepCounty = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_duchy
		}
		localization_key = county_bengali
	}
	text = {
		fallback = yes
		localization_key = independent_county_bengali
	}
}
AssameseIndepCounty = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_duchy
		}
		localization_key = county_assamese
	}
	text = {
		fallback = yes
		localization_key = independent_county_assamese
	}
}
HindustaniIndepCounty = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_duchy
		}
		localization_key = county_hindustani
	}
	text = {
		fallback = yes
		localization_key = independent_county_hindustani
	}
}
GujaratiIndepCounty = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_duchy
		}
		localization_key = county_gujarati
	}
	text = {
		fallback = yes
		localization_key = independent_county_gujarati
	}
}
PunjabiIndepCounty = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_duchy
		}
		localization_key = county_punjabi
	}
	text = {
		fallback = yes
		localization_key = independent_county_punjabi
	}
}
RajputIndepCounty = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_duchy
		}
		localization_key = county_rajput
	}
	text = {
		fallback = yes
		localization_key = independent_county_rajput
	}
}
MarathiIndepCounty = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_duchy
		}
		localization_key = county_marathi
	}
	text = {
		fallback = yes
		localization_key = independent_county_marathi
	}
}

#######################################
# Pratihara Realms
# For the cultures of pratihara Empire
#######################################
PrincePratihara = {
	type = character
	text = {
		trigger = {
			any_parent = {
				is_independent_ruler = yes
				faith = {
					has_doctrine = tenet_struggle_submission
				}
			}
		}
		localization_key = sultan_prince_male_pratihara
	}
	text = {
		fallback = yes
		localization_key =  prince_default_male_pratihara
	}
}
PrincessPratihara = {
	type = character
	text = {
		trigger = {
			any_parent = {
				is_independent_ruler = yes
				faith = {
					has_doctrine = tenet_struggle_submission
				}
			}
		}
		localization_key = sultan_prince_female_pratihara
	}
	text = {
		fallback = yes
		localization_key =  prince_default_female_pratihara
	}
}
QueenMPratihara = {
	type = character
	text = {
		trigger = {
			faith = {
				has_doctrine = tenet_struggle_submission
			}
		}
		localization_key = sultan_female_pratihara
	}
	text = {
		fallback = yes
		localization_key =  queen_mother_default_pratihara
	}
}
PratiharaIndepCounty = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_duchy
		}
		localization_key = county_pratihara
	}
	text = {
		fallback = yes
		localization_key = independent_county_pratihara
	}
}
DukeMalePratihara = {
	type = character
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_pratihara
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_pratihara
	}
	text = {
		localization_key = duke_default_male_pratihara
		fallback = yes
	}
}
DukeFemalePratihara = {
	type = character
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_pratihara
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_pratihara
	}
	text = {
		localization_key = duke_default_female_pratihara
		fallback = yes
	}
}
DuchyPratihara = {
	type = character
	text = {
		trigger = {
			vassal_contract_has_flag = has_march_contract
		}
		localization_key = march_pratihara
	}
	text = {
		localization_key = duchy_default_pratihara
		fallback = yes
	}
}
PratiharaIndepDuchy = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
		}
		localization_key = duchy_default_pratihara
	}
	text = {
		fallback = yes
		localization_key = independent_duchy_pratihara
	}
}
KingMalePratihara = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_male_pratihara
	}
	text = {
		fallback = yes
		localization_key = king_default_male_pratihara
	}
}
KingFemalePratihara = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_female_pratihara
	}
	text = {
		fallback = yes
		localization_key = king_default_female_pratihara
	}
}
KingFemaleHolderPratihara = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_female_pratihara
	}
	text = {
		fallback = yes
		localization_key = king_default_female_holder_pratihara
	}
}
KingdomPratihara = {
	type = character
	text = {
		trigger = {
			is_independent_ruler = yes
			root.faith = {
				has_doctrine = tenet_struggle_submission
			}
		}
		localization_key = sultanate_pratihara
	}
	text = {
		fallback = yes
		localization_key = kingdom_default_pratihara
	}
}
#######################################
# Pala Realms
# For the pala and Bihari cultures
#######################################
PrincePala = {
	type = character
	text = {
		trigger = {
			any_parent = {
				is_independent_ruler = yes
				faith = {
					has_doctrine = tenet_struggle_submission
				}
			}
		}
		localization_key = sultan_prince_male_pala
	}
	text = {
		fallback = yes
		localization_key =  prince_default_male_pala
	}
}
PrincessPala = {
	type = character
	text = {
		trigger = {
			any_parent = {
				is_independent_ruler = yes
				faith = {
					has_doctrine = tenet_struggle_submission
				}
			}
		}
		localization_key = sultan_prince_female_pala
	}
	text = {
		fallback = yes
		localization_key =  prince_default_female_pala
	}
}
QueenMPala = {
	type = character
	text = {
		trigger = {
			faith = {
				has_doctrine = tenet_struggle_submission
			}
		}
		localization_key = sultan_female_pala
	}
	text = {
		fallback = yes
		localization_key =  queen_mother_default_pala
	}
}
PalaIndepCounty = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_duchy
		}
		localization_key = county_pala
	}
	text = {
		fallback = yes
		localization_key = independent_county_pala
	}
}
DukeMalePala = {
	type = character
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_pala
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_pala
	}
	text = {
		localization_key = duke_default_male_pala
		fallback = yes
	}
}
DukeFemalePala = {
	type = character
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_pala
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_pala
	}
	text = {
		localization_key = duke_default_female_pala
		fallback = yes
	}
}
DuchyPala = {
	type = character
	text = {
		trigger = {
			vassal_contract_has_flag = has_march_contract
		}
		localization_key = march_pala
	}
	text = {
		localization_key = duchy_default_pala
		fallback = yes
	}
}
PalaIndepDuchy = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
		}
		localization_key = duchy_default_pala
	}
	text = {
		fallback = yes
		localization_key = independent_duchy_pala
	}
}
KingMalePala = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_male_pala
	}
	text = {
		fallback = yes
		localization_key = king_default_male_pala
	}
}
KingMaleHolderPala = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_male_pala
	}
	text = {
		fallback = yes
		localization_key = king_default_male_holder_pala
	}
}
KingFemalePala = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_female_pala
	}
	text = {
		fallback = yes
		localization_key = king_default_female_pala
	}
}
KingFemaleHolderPala = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_female_pala
	}
	text = {
		fallback = yes
		localization_key = king_default_female_holder_pala
	}
}
KingdomPala = {
	type = character
	text = {
		trigger = {
			is_independent_ruler = yes
			root.faith = {
				has_doctrine = tenet_struggle_submission
			}
		}
		localization_key = sultanate_pala
	}
	text = {
		fallback = yes
		localization_key = kingdom_default_pala
	}
}
#######################################
# Rashtrakuta Realms
# For Deccan Cultures
#######################################
PrinceDeccan = {
	type = character
	text = {
		trigger = {
			any_parent = {
				is_independent_ruler = yes
				faith = {
					has_doctrine = tenet_struggle_submission
				}
			}
		}
		localization_key = sultan_prince_male_deccan
	}
	text = {
		fallback = yes
		localization_key =  prince_default_male_deccan
	}
}
PrincessDeccan = {
	type = character
	text = {
		trigger = {
			any_parent = {
				is_independent_ruler = yes
				faith = {
					has_doctrine = tenet_struggle_submission
				}
			}
		}
		localization_key = sultan_prince_female_deccan
	}
	text = {
		fallback = yes
		localization_key =  prince_default_female_deccan
	}
}
QueenMDeccan = {
	type = character
	text = {
		trigger = {
			faith = {
				has_doctrine = tenet_struggle_submission
			}
		}
		localization_key = sultan_female_deccan
	}
	text = {
		fallback = yes
		localization_key =  king_default_female_deccan
	}
}
DeccanIndepDuchy = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
		}
		localization_key = duchy_deccan
	}
	text = {
		fallback = yes
		localization_key = independent_duchy_deccan
	}
}
DukeMaleDeccan = {
	type = character
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_male_deccan
	}
	text = {
		localization_key = duke_default_male_deccan
		fallback = yes
	}
}
DukeFemaleDeccan = {
	type = character
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_female_deccan
	}
	text = {
		localization_key = duke_default_female_deccan
		fallback = yes
	}
}
DuchyDeccan = {
	type = character
	text = {
		trigger = {
			vassal_contract_has_flag = has_march_contract
		}
		localization_key = march_deccan
	}
	text = {
		localization_key = duchy_default_deccan
		fallback = yes
	}
}
DeccanIndepCounty = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_duchy
		}
		localization_key = county_deccan
	}
	text = {
		fallback = yes
		localization_key = independent_county_deccan
	}
}
KingMaleDeccan = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						root.faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_male_deccan
	}
	text = {
		fallback = yes
		localization_key = king_default_male_deccan
	}
}
KingFemaleDeccan = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						root.faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_female_deccan
	}
	text = {
		fallback = yes
		localization_key = king_default_female_deccan
	}
}
KingFemaleHolderDeccan = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						root.faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_female_deccan
	}
	text = {
		fallback = yes
		localization_key = king_default_female_holder_deccan
	}
}
KingdomDeccan = {
	type = character
	text = {
		trigger = {
			is_independent_ruler = yes
			root.faith = {
				has_doctrine = tenet_struggle_submission
			}
		}
		localization_key = sultanate_deccan
	}
	text = {
		fallback = yes
		localization_key = kingdom_default_deccan
	}
}
#######################################
# Chola Realms
# For Dravidian Cultures
#######################################
PrinceChola = {
	type = character
	text = {
		trigger = {
			any_parent = {
				is_independent_ruler = yes
				faith = {
					has_doctrine = tenet_struggle_submission
				}
			}
		}
		localization_key = sultan_prince_male_chola
	}
	text = {
		fallback = yes
		localization_key =  prince_default_male_chola
	}
}
PrincessChola = {
	type = character
	text = {
		trigger = {
			any_parent = {
				is_independent_ruler = yes
				faith = {
					has_doctrine = tenet_struggle_submission
				}
			}
		}
		localization_key = sultan_prince_female_chola
	}
	text = {
		fallback = yes
		localization_key =  prince_default_female_chola
	}
}
QueenMChola = {
	type = character
	text = {
		trigger = {
			faith = {
				has_doctrine = tenet_struggle_submission
			}
		}
		localization_key = sultan_female_chola
	}
	text = {
		fallback = yes
		localization_key =  king_default_female_chola
	}
}
CholaIndepCounty = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_duchy
		}
		localization_key = county_chola
	}
	text = {
		fallback = yes
		localization_key = independent_county_chola
	}
}
CholaIndepDuchy = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
		}
		localization_key = duchy_chola
	}
	text = {
		fallback = yes
		localization_key = independent_duchy_chola
	}
}
KingMaleChola = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_male_chola
	}
	text = {
		fallback = yes
		localization_key = king_default_male_chola
	}
}
KingFemaleChola = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_female_chola
	}
	text = {
		fallback = yes
		localization_key = king_default_female_chola
	}
}
KingFemaleHolderChola = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_female_chola
	}
	text = {
		fallback = yes
		localization_key = king_default_female_holder_chola
	}
}
KingdomChola = {
	type = character
	text = {
		trigger = {
			is_independent_ruler = yes
			root.faith = {
				has_doctrine = tenet_struggle_submission
			}
		}
		localization_key = sultanate_chola
	}
	text = {
		fallback = yes
		localization_key = kingdom_default_chola
	}
}
#######################################
# Somavamsi Realms
# For Odia
#######################################
PrinceOriya = {
	type = character
	text = {
		trigger = {
			any_parent = {
				is_independent_ruler = yes
				faith = {
					has_doctrine = tenet_struggle_submission
				}
			}
		}
		localization_key = sultan_prince_male_oriya
	}
	text = {
		fallback = yes
		localization_key =  prince_default_male_oriya
	}
}
PrincessOriya = {
	type = character
	text = {
		trigger = {
			any_parent = {
				is_independent_ruler = yes
				faith = {
					has_doctrine = tenet_struggle_submission
				}
			}
		}
		localization_key = sultan_prince_female_oriya
	}
	text = {
		fallback = yes
		localization_key =  prince_default_female_oriya
	}
}
QueenMOriya = {
	type = character
	text = {
		trigger = {
			faith = {
				has_doctrine = tenet_struggle_submission
			}
		}
		localization_key = sultan_female_oriya
	}
	text = {
		fallback = yes
		localization_key =  queen_mother_default_oriya
	}
}
OriyaIndepCounty = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_duchy
		}
		localization_key = county_oriya
	}
	text = {
		fallback = yes
		localization_key = independent_county_oriya
	}
}
DukeMaleOriya = {
	type = character
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_oriya
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_oriya
	}
	text = {
		localization_key = duke_default_male_oriya
		fallback = yes
	}
}
DukeFemaleOriya = {
	type = character
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_oriya
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_oriya
	}
	text = {
		localization_key = duke_default_female_oriya
		fallback = yes
	}
}
DuchyOriya = {
	type = character
	text = {
		trigger = {
			vassal_contract_has_flag = has_march_contract
		}
		localization_key = march_oriya
	}
	text = {
		localization_key = duchy_default_oriya
		fallback = yes
	}
}
OriyaIndepDuchy = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
		}
		localization_key = duchy_default_oriya
	}
	text = {
		fallback = yes
		localization_key = independent_duchy_oriya
	}
}
KingMaleOriya = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_male_oriya
	}
	text = {
		fallback = yes
		localization_key = king_default_male_oriya
	}
}
KingFemaleOriya = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_female_oriya
	}
	text = {
		fallback = yes
		localization_key = king_default_female_oriya
	}
}
KingFemaleHolderOriya = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_female_oriya
	}
	text = {
		fallback = yes
		localization_key = king_default_female_holder_oriya
	}
}
KingdomOriya = {
	type = character
	text = {
		trigger = {
			is_independent_ruler = yes
			root.faith = {
				has_doctrine = tenet_struggle_submission
			}
		}
		localization_key = sultanate_oriya
	}
	text = {
		fallback = yes
		localization_key = kingdom_default_oriya
	}
}
#######################################
# Sindhi Realms
# For Sindhi
#######################################
QueenMSindhi = {
	type = character
	text = {
		trigger = {
			faith = {
				has_doctrine = tenet_struggle_submission
			}
		}
		localization_key = sultan_female_sindhi
	}
	text = {
		fallback = yes
		localization_key =  queen_mother_default_sindhi
	}
}
SindhiIndepCounty = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_duchy
		}
		localization_key = county_sindhi
	}
	text = {
		fallback = yes
		localization_key = independent_county_sindhi
	}
}
DukeMaleSindhi = {
	type = character
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_sindhi
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_sindhi
	}
	text = {
		localization_key = duke_default_male_sindhi
		fallback = yes
	}
}
DukeFemaleSindhi = {
	type = character
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_sindhi
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_sindhi
	}
	text = {
		localization_key = duke_default_female_sindhi
		fallback = yes
	}
}
DuchySindhi = {
	type = character
	text = {
		trigger = {
			vassal_contract_has_flag = has_march_contract
		}
		localization_key = march_sindhi
	}
	text = {
		localization_key = duchy_default_sindhi
		fallback = yes
	}
}
SindhiIndepDuchy = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
		}
		localization_key = duchy_default_sindhi
	}
	text = {
		fallback = yes
		localization_key = independent_duchy_sindhi
	}
}
KingMaleSindhi = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_male_sindhi
	}
	text = {
		fallback = yes
		localization_key = king_default_male_sindhi
	}
}
KingFemaleSindhi = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_female_sindhi
	}
	text = {
		fallback = yes
		localization_key = king_default_female_sindhi
	}
}
KingdomSindhi = {
	type = character
	text = {
		trigger = {
			is_independent_ruler = yes
			root.faith = {
				has_doctrine = tenet_struggle_submission
			}
		}
		localization_key = sultanate_sindhi
	}
	text = {
		fallback = yes
		localization_key = kingdom_default_sindhi
	}
}
#######################################
# Kashmiri Realms
# For Kashmiri
#######################################
PrinceKashmiri = {
	type = character
	text = {
		trigger = {
			any_parent = {
				is_independent_ruler = yes
				faith = {
					has_doctrine = tenet_struggle_submission
				}
			}
		}
		localization_key = sultan_prince_male_kashmiri
	}
	text = {
		fallback = yes
		localization_key =  prince_default_male_kashmiri
	}
}
PrincessKashmiri = {
	type = character
	text = {
		trigger = {
			any_parent = {
				is_independent_ruler = yes
				faith = {
					has_doctrine = tenet_struggle_submission
				}
			}
		}
		localization_key = sultan_prince_female_kashmiri
	}
	text = {
		fallback = yes
		localization_key =  prince_default_female_kashmiri
	}
}
QueenMKashmiri = {
	type = character
	text = {
		trigger = {
			faith = {
				has_doctrine = tenet_struggle_submission
			}
		}
		localization_key = sultan_female_kashmiri
	}
	text = {
		fallback = yes
		localization_key =  queen_mother_default_kashmiri
	}
}
KashmiriIndepCounty = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_duchy
		}
		localization_key = county_kashmiri
	}
	text = {
		fallback = yes
		localization_key = independent_county_kashmiri
	}
}
DukeMaleKashmiri = {
	type = character
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_kashmiri
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_kashmiri
	}
	text = {
		localization_key = duke_default_male_kashmiri
		fallback = yes
	}
}
DukeFemaleKashmiri = {
	type = character
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_kashmiri
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_kashmiri
	}
	text = {
		localization_key = duke_default_female_kashmiri
		fallback = yes
	}
}
DuchyKashmiri = {
	type = character
	text = {
		trigger = {
			vassal_contract_has_flag = has_march_contract
		}
		localization_key = march_kashmiri
	}
	text = {
		localization_key = duchy_default_kashmiri
		fallback = yes
	}
}
KashmiriIndepDuchy = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
		}
		localization_key = duchy_default_kashmiri
	}
	text = {
		fallback = yes
		localization_key = independent_duchy_kashmiri
	}
}
KingMaleKashmiri = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_male_kashmiri
	}
	text = {
		fallback = yes
		localization_key = king_default_male_kashmiri
	}
}
KingFemaleKashmiri = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_female_kashmiri
	}
	text = {
		fallback = yes
		localization_key = king_default_female_kashmiri
	}
}
KingFemaleHolderKashmiri = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_female_kashmiri
	}
	text = {
		fallback = yes
		localization_key = king_default_female_holder_kashmiri
	}
}
KingdomKashmiri = {
	type = character
	text = {
		trigger = {
			is_independent_ruler = yes
			root.faith = {
				has_doctrine = tenet_struggle_submission
			}
		}
		localization_key = sultanate_kashmiri
	}
	text = {
		fallback = yes
		localization_key = kingdom_default_kashmiri
	}
}
#######################################
# Nepali Realms
# For Nepali and indo-aryan himalayan cultures
#######################################
PrinceNepali = {
	type = character
	text = {
		trigger = {
			any_parent = {
				is_independent_ruler = yes
				faith = {
					has_doctrine = tenet_struggle_submission
				}
			}
		}
		localization_key = sultan_prince_male_nepali
	}
	text = {
		fallback = yes
		localization_key =  prince_default_male_nepali
	}
}
PrincessNepali = {
	type = character
	text = {
		trigger = {
			any_parent = {
				is_independent_ruler = yes
				faith = {
					has_doctrine = tenet_struggle_submission
				}
			}
		}
		localization_key = sultan_prince_female_nepali
	}
	text = {
		fallback = yes
		localization_key =  prince_default_female_nepali
	}
}
QueenMNepali = {
	type = character
	text = {
		trigger = {
			faith = {
				has_doctrine = tenet_struggle_submission
			}
		}
		localization_key = sultan_female_nepali
	}
	text = {
		fallback = yes
		localization_key =  queen_mother_default_nepali
	}
}
NepaliIndepCounty = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_duchy
		}
		localization_key = county_nepali
	}
	text = {
		fallback = yes
		localization_key = independent_county_nepali
	}
}
DukeMaleNepali = {
	type = character
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_nepali
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_nepali
	}
	text = {
		localization_key = duke_default_male_nepali
		fallback = yes
	}
}
DukeFemaleNepali = {
	type = character
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_nepali
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_nepali
	}
	text = {
		localization_key = duke_default_female_nepali
		fallback = yes
	}
}
DuchyNepali = {
	type = character
	text = {
		trigger = {
			vassal_contract_has_flag = has_march_contract
		}
		localization_key = march_nepali
	}
	text = {
		localization_key = duchy_default_nepali
		fallback = yes
	}
}
NepaliIndepDuchy = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
		}
		localization_key = duchy_default_nepali
	}
	text = {
		fallback = yes
		localization_key = independent_duchy_nepali
	}
}
KingMaleNepali = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_male_nepali
	}
	text = {
		fallback = yes
		localization_key = king_default_male_nepali
	}
}
KingFemaleNepali = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_female_nepali
	}
	text = {
		fallback = yes
		localization_key = king_default_female_nepali
	}
}
KingFemaleHolderNepali = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_female_nepali
	}
	text = {
		fallback = yes
		localization_key = king_default_female_holder_nepali
	}
}
KingdomNepali = {
	type = character
	text = {
		trigger = {
			is_independent_ruler = yes
			root.faith = {
				has_doctrine = tenet_struggle_submission
			}
		}
		localization_key = sultanate_nepali
	}
	text = {
		fallback = yes
		localization_key = kingdom_default_nepali
	}
}
#######################################
# Sinhala Realms
# For Sinhala
#######################################
PrinceSinhala = {
	type = character
	text = {
		trigger = {
			any_parent = {
				is_independent_ruler = yes
				faith = {
					has_doctrine = tenet_struggle_submission
				}
			}
		}
		localization_key = sultan_prince_male_sinhala
	}
	text = {
		fallback = yes
		localization_key =  prince_default_male_sinhala
	}
}
PrincessSinhala = {
	type = character
	text = {
		trigger = {
			any_parent = {
				is_independent_ruler = yes
				faith = {
					has_doctrine = tenet_struggle_submission
				}
			}
		}
		localization_key = sultan_prince_female_sinhala
	}
	text = {
		fallback = yes
		localization_key =  prince_default_female_sinhala
	}
}
QueenMSinhala = {
	type = character
	text = {
		trigger = {
			faith = {
				has_doctrine = tenet_struggle_submission
			}
		}
		localization_key = sultan_female_sinhala
	}
	text = {
		fallback = yes
		localization_key =  empress_mother_sinhala
	}
}
SinhalaIndepCounty = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_duchy
		}
		localization_key = county_sinhala
	}
	text = {
		fallback = yes
		localization_key = independent_county_sinhala
	}
}
DukeMaleSinhala = {
	type = character
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_sinhala
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_sinhala
	}
	text = {
		localization_key = duke_default_male_sinhala
		fallback = yes
	}
}
DukeFemaleSinhala = {
	type = character
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_sinhala
	}
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_palatinate_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_palatinate_contract
					}
				}
			}
		}
		localization_key = palatine_sinhala
	}
	text = {
		localization_key = duke_default_female_sinhala
		fallback = yes
	}
}
DuchySinhala = {
	type = character
	text = {
		trigger = {
			vassal_contract_has_flag = has_march_contract
		}
		localization_key = march_sinhala
	}
	text = {
		localization_key = duchy_default_sinhala
		fallback = yes
	}
}
SinhalaIndepDuchy = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
		}
		localization_key = duchy_default_sinhala
	}
	text = {
		fallback = yes
		localization_key = independent_duchy_sinhala
	}
}
KingMaleSinhala = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_male_sinhala
	}
	text = {
		fallback = yes
		localization_key = king_default_male_sinhala
	}
}
KingFemaleSinhala = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_female_sinhala
	}
	text = {
		fallback = yes
		localization_key = king_default_female_sinhala
	}
}
KingFemaleHolderSinhala = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					is_independent_ruler = yes
					root.faith = {
						has_doctrine = tenet_struggle_submission
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						is_independent_ruler = yes
						faith = {
							has_doctrine = tenet_struggle_submission
						}
					}
				}
			}
		}
		localization_key = sultan_female_sinhala
	}
	text = {
		fallback = yes
		localization_key = king_default_female_holder_sinhala
	}
}
KingdomSinhala = {
	type = character
	text = {
		trigger = {
			is_independent_ruler = yes
			root.faith = {
				has_doctrine = tenet_struggle_submission
			}
		}
		localization_key = sultanate_sinhala
	}
	text = {
		fallback = yes
		localization_key = kingdom_default_sinhala
	}
}
#######################################
# Tibetan Adminstration
# For Tibetan
#######################################
DukeBodpa = {
	type = character
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_bodpa
	}
	text = {
		localization_key = duke_default_bodpa
		fallback = yes
	}
}
BodpaIndepKingdom = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier = tier_empire
		}
		localization_key = kingdom_bodpa
	}
	text = {
		fallback = yes
		localization_key = indep_kingdom_bodpa
	}
}
BodpaIndepDuchy = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
		}
		localization_key = duchy_bodpa
	}
	text = {
		fallback = yes
		localization_key = kingdom_bodpa
	}
}
#######################################
# Burmese Realms
# For Burmes and Rahkine
#######################################
DukeMaleBurmese = {
	type = character
	text = {
		trigger = {
			OR = {
				vassal_contract_has_flag = has_march_contract
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						vassal_contract_has_flag = has_march_contract
					}
				}
			}
		}
		localization_key = marquess_burmese
	}
	text = {
		localization_key = duke_default_male_burmese
		fallback = yes
	}
}
DuchyBurmese = {
	type = character
	text = {
		trigger = {
			vassal_contract_has_flag = has_march_contract
		}
		localization_key = march_burmese
	}
	text = {
		localization_key = duchy_default_burmese
		fallback = yes
	}
}
BurmeseIndepDuchy = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
		}
		localization_key = duchy_default_burmese
	}
	text = {
		fallback = yes
		localization_key = kingdom_burmese
    }
}
PrinceBurman = {
	type = character
	text = {
		trigger = {
			OR = {
				AND = {
					exists = father.primary_heir
					root.father.primary_heir = root
				}
				AND = {
					exists = mother.primary_heir
					root.mother.primary_heir = root
				}
			}
		}
		localization_key = burman_primary_heir
	}
	text = {
		fallback = yes
		localization_key =  prince_default_male_burman
	}
}
#######################################
# Mon Realms
# For Mon
#######################################


################################################################################################WAP/Africa Plus


BaronMaleNubian = {
	type = character
	text = {
        trigger = {
            OR = {
				culture = { has_innovation = innovation_nubianization }
				current_date >= 1100.1.1
            }
        }
        localization_key = baron_male_old_nubian
    }
    text = {
       fallback = yes
       localization_key = baron_male_nubian_greek
    }
}
BaronFemaleNubian = {
	type = character
	text = {
        trigger = {
            OR = {
				culture = { has_innovation = innovation_nubianization }
				current_date >= 1100.1.1
            }
        }
        localization_key = baron_female_old_nubian
    }
    text = {
       fallback = yes
       localization_key = baron_female_nubian_greek
    }
}
CountMaleNubian = {
	type = character
	text = {
        trigger = {
            OR = {
				culture = { has_innovation = innovation_nubianization }
				current_date >= 1100.1.1
            }
        }
        localization_key = count_male_old_nubian
    }
    text = {
       fallback = yes
       localization_key = count_male_nubian_greek
    }
}
CountFemaleNubian = {
	type = character
	text = {
        trigger = {
            OR = {
				culture = { has_innovation = innovation_nubianization }
				current_date >= 1100.1.1
            }
        }
		localization_key = count_female_old_nubian
    }
	text = {
		fallback = yes
		localization_key = count_female_nubian_greek
    }
}

DukeMaleNubian = {
	type = character
	text = {
        trigger = {
            OR = {
				culture = { has_innovation = innovation_nubianization }
				current_date >= 1100.1.1
            }
        }
        localization_key = duke_male_old_nubian
    }
    text = {
       fallback = yes
       localization_key = duke_male_nubian_greek
    }
}
DukeFemaleNubian = {
	type = character
	text = {
        trigger = {
            OR = {
				culture = { has_innovation = innovation_nubianization }
				current_date >= 1100.1.1
            }
        }
        localization_key = duke_female_old_nubian
    }
    text = {
       fallback = yes
       localization_key = duke_female_nubian_greek
    }
}
DukeMaleIndpNubian = {
	type = character
	text = {
        trigger = {
            OR = {
				culture = { has_innovation = innovation_nubianization }
				current_date >= 1100.1.1
            }
        }
        localization_key = duke_male_old_nubian_independent
    }
    text = {
       fallback = yes
       localization_key = duke_male_nubian_greek_independent
    }
}
DukeFemaleIndpNubian = {
	type = character
	text = {
        trigger = {
            OR = {
				culture = { has_innovation = innovation_nubianization }
				current_date >= 1100.1.1
            }
        }
        localization_key = duke_female_old_nubian_independent
    }
    text = {
       fallback = yes
       localization_key = duke_female_nubian_greek_independent
    }
}
KingMaleNubian = {
	type = character
	text = {
        trigger = {
            OR = {
				culture = { has_innovation = innovation_nubianization }
				current_date >= 1100.1.1
            }
        }
        localization_key = king_male_old_nubian
    }
    text = {
       fallback = yes
       localization_key = king_male_nubian_greek
    }
}

KingFemaleNubian = {
	type = character
	text = {
        trigger = {
            OR = {
				culture = { has_innovation = innovation_nubianization }
				current_date >= 1100.1.1
            }
        }
        localization_key = king_female_old_nubian
    }
    text = {
       fallback = yes
       localization_key = king_female_nubian_greek
    }
}
EmperorMaleNubian = {
	type = character
	text = {
        trigger = {
            OR = {
				culture = { has_innovation = innovation_nubianization }
				current_date >= 1100.1.1
            }
        }
        localization_key = emperor_male_old_nubian
    }
    text = {
       fallback = yes
       localization_key = emperor_male_nubian_greek
    }
}
EmperorFemaleNubian = {
	type = character
	text = {
        trigger = {
            OR = {
				culture = { has_innovation = innovation_nubianization }
				current_date >= 1100.1.1
            }
        }
        localization_key = emperor_female_old_nubian
    }
    text = {
       fallback = yes
       localization_key = emperor_female_nubian_greek
    }
}

QueenMotherNubian = {
	type = character
	text = {
        trigger = {
            OR = {
				culture = { has_innovation = innovation_nubianization }
				current_date >= 1100.1.1
            }
        }
        localization_key = queen_mother_old_nubian
    }
    text = {
       fallback = yes
       localization_key = queen_mother_nubian_greek
    }
}
EmpressMotherNubian = {
	type = character
	text = {
        trigger = {
            OR = {
				culture = { has_innovation = innovation_nubianization }
				current_date >= 1100.1.1
            }
        }
        localization_key = empress_mother_old_nubian
    }
    text = {
       fallback = yes
       localization_key = empress_mother_nubian_greek
    }
}
PrinceMaleNubian = {
	type = character
	text = {
        trigger = {
            OR = {
				culture = { has_innovation = innovation_nubianization }
				current_date >= 1100.1.1
            }
        }
        localization_key = prince_male_old_nubian
    }
    text = {
       fallback = yes
       localization_key = prince_male_nubian_greek
    }
}
PrincessFemaleNubian = {
	type = character
	text = {
        trigger = {
            OR = {
				culture = { has_innovation = innovation_nubianization }
				current_date >= 1100.1.1
            }
        }
        localization_key = princess_female_old_nubian
    }
    text = {
       fallback = yes
       localization_key = princess_female_nubian_greek
    }
}
PrinceMaleNubianEmpire = {
	type = character
	text = {
        trigger = {
            OR = {
				culture = { has_innovation = innovation_nubianization }
				current_date >= 1100.1.1
            }
        }
        localization_key = prince_male_old_nubian_empire
    }
    text = {
       fallback = yes
       localization_key = prince_male_nubian_greek_empire
    }
}
PrincessFemaleNubianEmpire = {
	type = character
	text = {
        trigger = {
            OR = {
				culture = { has_innovation = innovation_nubianization }
				current_date >= 1100.1.1
            }
        }
        localization_key = princess_female_old_nubian_empire
    }
    text = {
       fallback = yes
       localization_key = princess_female_nubian_greek_empire
    }
}
### Bini
KingMaleEdo = {
	type = character
	text = {
        trigger = {
			current_date >= 1169.1.1
        }
        localization_key = king_male_oba_era
    }
    text = {
       fallback = yes
       localization_key = king_male_ogiso_era
    }
}
DukeMaleEdoInd = {
	type = character
	text = {
        trigger = {
			current_date >= 1169.1.1
        }
        localization_key = duke_male_edo_ind_oba_era
    }
    text = {
       fallback = yes
       localization_key = duke_male_edo_ind_ogiso_era
    }
}


################################################################################################CTP - Catholic aka Europe


CountMaleCath = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_count_male_cath
	}
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = count_male_theo_cath_independent
	}
	text = {
		fallback = yes
		localization_key = count_default_male_cath
	}
}
CountFemaleCath = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_count_female_cath
	}
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = count_female_theo_cath_independent
	}
	text = {
		fallback = yes
		localization_key = count_default_female_cath
	}
}
CountyCath = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_county_cath
	}
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			highest_held_title_tier = tier_county
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = independent_county_cath
	}
	text = {
		fallback = yes
		localization_key = county_default_cath
	}
}
IndepCountyCath = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_duchy
		}
		localization_key = county_default_cath
	}
	text = {
		fallback = yes
		localization_key = independent_county_cath
	}
}
DukeMaleCath = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_duke_male_cath
	}
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = duke_male_theo_cath_independent
	}
	text = {
		fallback = yes
		localization_key = duke_default_male_cath
	}
}
DukeFemaleCath = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_duke_female_cath
	}
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = duke_female_theo_cath_independent
	}
	text = {
		fallback = yes
		localization_key = duke_default_female_cath
	}
}
DuchyCath = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_duchy_cath
	}
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			highest_held_title_tier = tier_duchy
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = independent_duchy_cath
	}
	text = {
		fallback = yes
		localization_key = duchy_default_cath
	}
}
IndepDuchyCath = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
		}
		localization_key = duchy_default_cath
	}
	text = {
		fallback = yes
		localization_key = independent_duchy_cath
	}
}
CountMaleCathEnglish = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_count_male_cath_english
	}
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = count_male_theo_cath_english_independent
	}
	text = {
		fallback = yes
		localization_key = count_default_cath_english
	}
}
CountFemaleCathEnglish = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_count_female_cath_english
	}
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = count_female_theo_cath_english_independent
	}
	text = {
		fallback = yes
		localization_key = count_default_cath_english
	}
}
CountyCathEnglish = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_county_cath_english
	}
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			highest_held_title_tier = tier_county
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = independent_county_cath_english
	}
	text = {
		fallback = yes
		localization_key = county_default_cath_english
	}
}
IndepCountyCathEnglish = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_duchy
		}
		localization_key = county_default_cath_english
	}
	text = {
		fallback = yes
		localization_key = independent_county_cath_english
	}
}
DukeMaleCathEnglish = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_duke_male_cath_english
	}
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = duke_male_theo_cath_english_independent
	}
	text = {
		fallback = yes
		localization_key = duke_default_cath_english
	}
}
DukeFemaleCathEnglish = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_duke_female_cath_english
	}
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = duke_female_theo_cath_english_independent
	}
	text = {
		fallback = yes
		localization_key = duke_default_cath_english
	}
}
DuchyCathEnglish = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_duchy_cath_english
	}
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			highest_held_title_tier = tier_duchy
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = independent_duchy_cath_english
	}
	text = {
		fallback = yes
		localization_key = duchy_default_cath_english
	}
}
IndepDuchyCathEnglish = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
		}
		localization_key = duchy_default_cath_english
	}
	text = {
		fallback = yes
		localization_key = independent_duchy_cath_english
	}
}
CountMaleCathOldSaxon = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_count_male_cath_old_saxon
	}
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = count_male_theo_cath_old_saxon_independent
	}
	text = {
		fallback = yes
		localization_key = count_default_male_cath_old_saxon
	}
}
CountFemaleCathOldSaxon = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_count_female_cath_old_saxon
	}
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = count_female_theo_cath_old_saxon_independent
	}
	text = {
		fallback = yes
		localization_key = count_default_female_cath_old_saxon
	}
}
CountyCathOldSaxon = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_county_cath_old_saxon
	}
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			highest_held_title_tier = tier_county
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = independent_county_cath_old_saxon
	}
	text = {
		fallback = yes
		localization_key = county_default_cath_old_saxon
	}
}
IndepCountyCathOldSaxon = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_duchy
		}
		localization_key = county_default_cath_old_saxon
	}
	text = {
		fallback = yes
		localization_key = independent_county_cath_old_saxon
	}
}
DukeMaleCathOldSaxon = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_duke_male_cath_old_saxon
	}
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = duke_male_theo_cath_old_saxon_independent
	}
	text = {
		fallback = yes
		localization_key = duke_default_male_cath_old_saxon
	}
}
DukeFemaleCathOldSaxon = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_duke_female_cath_old_saxon
	}
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = duke_female_theo_cath_old_saxon_independent
	}
	text = {
		fallback = yes
		localization_key = duke_default_female_cath_old_saxon
	}
}
DuchyCathOldSaxon = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_duchy_cath_old_saxon
	}
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			highest_held_title_tier = tier_duchy
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = independent_duchy_cath_old_saxon
	}
	text = {
		fallback = yes
		localization_key = duchy_default_cath_old_saxon
	}
}
IndepDuchyCathOldSaxon = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
		}
		localization_key = duchy_default_cath_old_saxon
	}
	text = {
		fallback = yes
		localization_key = independent_duchy_cath_old_saxon
	}
}
CountMaleCathFrench = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_count_male_cath_french
	}
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = count_male_theo_cath_french_independent
	}
	text = {
		fallback = yes
		localization_key = count_default_male_cath_french
	}
}
CountFemaleCathFrench = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_count_female_cath_french
	}
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = count_female_theo_cath_french_independent
	}
	text = {
		fallback = yes
		localization_key = count_default_female_cath_french
	}
}
CountyCathFrench = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_county_cath_french
	}
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			highest_held_title_tier = tier_county
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = independent_county_cath_french
	}
	text = {
		fallback = yes
		localization_key = county_default_cath_french
	}
}
IndepCountyCathFrench = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_duchy
		}
		localization_key = county_default_cath_french
	}
	text = {
		fallback = yes
		localization_key = independent_county_cath_french
	}
}
DukeMaleCathFrench = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_duke_male_cath_french
	}
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = duke_male_theo_cath_french_independent
	}
	text = {
		fallback = yes
		localization_key = duke_default_male_cath_french
	}
}
DukeFemaleCathFrench = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_duke_female_cath_french
	}
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = duke_female_theo_cath_french_independent
	}
	text = {
		fallback = yes
		localization_key = duke_default_female_cath_french
	}
}
DuchyCathFrench = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_duchy_cath_french
	}
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			highest_held_title_tier = tier_duchy
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = independent_duchy_cath_french
	}
	text = {
		fallback = yes
		localization_key = duchy_default_cath_french
	}
}
IndepDuchyCathFrench = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
		}
		localization_key = duchy_default_cath_french
	}
	text = {
		fallback = yes
		localization_key = independent_duchy_cath_french
	}
}
CountMaleCathNorman = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_count_male_cath_norman
	}
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = count_male_theo_cath_norman_independent
	}
	text = {
		fallback = yes
		localization_key = count_default_male_cath_norman
	}
}
CountFemaleCathNorman = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_count_female_cath_norman
	}
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = count_female_theo_cath_norman_independent
	}
	text = {
		fallback = yes
		localization_key = count_default_female_cath_norman
	}
}
CountyCathNorman = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_county_cath_norman
	}
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			highest_held_title_tier = tier_county
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = independent_county_cath_norman
	}
	text = {
		fallback = yes
		localization_key = county_default_cath_norman
	}
}
IndepCountyCathNorman = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_duchy
		}
		localization_key = county_default_cath_norman
	}
	text = {
		fallback = yes
		localization_key = independent_county_cath_norman
	}
}
DukeMaleCathNorman = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_duke_male_cath_norman
	}
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = duke_male_theo_cath_norman_independent
	}
	text = {
		fallback = yes
		localization_key = duke_default_male_cath_norman
	}
}
DukeFemaleCathNorman = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_duke_female_cath_norman
	}
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = duke_female_theo_cath_norman_independent
	}
	text = {
		fallback = yes
		localization_key = duke_default_female_cath_norman
	}
}
DuchyCathNorman = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_duchy_cath_norman
	}
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			highest_held_title_tier = tier_duchy
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = independent_duchy_cath_norman
	}
	text = {
		fallback = yes
		localization_key = duchy_default_cath_norman
	}
}
IndepDuchyCathNorman = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
		}
		localization_key = duchy_default_cath_norman
	}
	text = {
		fallback = yes
		localization_key = independent_duchy_cath_norman
	}
}
CountMaleCathOccitan = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_count_male_cath_occitan
	}
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = count_male_theo_cath_occitan_independent
	}
	text = {
		fallback = yes
		localization_key = count_default_male_cath_occitan
	}
}
CountFemaleCathOccitan = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_count_female_cath_occitan
	}
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = count_female_theo_cath_occitan_independent
	}
	text = {
		fallback = yes
		localization_key = count_default_female_cath_occitan
	}
}
CountyCathOccitan = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_county_cath_occitan
	}
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			highest_held_title_tier = tier_county
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = independent_county_cath_occitan
	}
	text = {
		fallback = yes
		localization_key = county_default_cath_occitan
	}
}
IndepCountyCathOccitan = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_duchy
		}
		localization_key = county_default_cath_occitan
	}
	text = {
		fallback = yes
		localization_key = independent_county_cath_occitan
	}
}
DukeMaleCathOccitan = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_duke_male_cath_occitan
	}
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = duke_male_theo_cath_occitan_independent
	}
	text = {
		fallback = yes
		localization_key = duke_default_male_cath_occitan
	}
}
DukeFemaleCathOccitan = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_duke_female_cath_occitan
	}
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = duke_female_theo_cath_occitan_independent
	}
	text = {
		fallback = yes
		localization_key = duke_default_female_cath_occitan
	}
}
DuchyCathOccitan = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_duchy_cath_occitan
	}
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			highest_held_title_tier = tier_duchy
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = independent_duchy_cath_occitan
	}
	text = {
		fallback = yes
		localization_key = duchy_default_cath_occitan
	}
}
IndepDuchyCathOccitan = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
		}
		localization_key = duchy_default_cath_occitan
	}
	text = {
		fallback = yes
		localization_key = independent_duchy_cath_occitan
	}
}
CountMaleCathBasque = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_count_male_cath_basque
	}
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = count_male_theo_cath_basque_independent
	}
	text = {
		fallback = yes
		localization_key = count_default_male_cath_basque
	}
}
CountyCathBasque = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_county_cath_basque
	}
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			highest_held_title_tier = tier_county
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = independent_county_cath_basque
	}
	text = {
		fallback = yes
		localization_key = county_default_cath_basque
	}
}
IndepCountyCathBasque = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_duchy
		}
		localization_key = county_default_cath_basque
	}
	text = {
		fallback = yes
		localization_key = independent_county_cath_basque
	}
}
DukeMaleCathBasque = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_duke_male_cath_basque
	}
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = duke_male_theo_cath_basque_independent
	}
	text = {
		fallback = yes
		localization_key = duke_default_male_cath_basque
	}
}
DuchyCathBasque = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_duchy_cath_basque
	}
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			highest_held_title_tier = tier_duchy
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = independent_duchy_cath_basque
	}
	text = {
		fallback = yes
		localization_key = duchy_default_cath_basque
	}
}
IndepDuchyCathBasuqe = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
		}
		localization_key = duchy_default_cath_basque
	}
	text = {
		fallback = yes
		localization_key = independent_duchy_cath_basque
	}
}
CountMaleCathCastillian = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_count_male_cath_castilian
	}
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = count_male_theo_cath_castilian_independent
	}
	text = {
		fallback = yes
		localization_key = count_default_male_cath_castilian
	}
}
CountFemaleCathCastillian = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_count_female_cath_castilian
	}
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = count_female_theo_cath_castilian_independent
	}
	text = {
		fallback = yes
		localization_key = count_default_female_cath_castilian
	}
}
CountyCathCastillian = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_county_cath_castilian
	}
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			highest_held_title_tier = tier_county
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = independent_county_cath_castilian
	}
	text = {
		fallback = yes
		localization_key = county_default_cath_castilian
	}
}
IndepCountyCathCastillian = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_duchy
		}
		localization_key = county_default_cath_castilian
	}
	text = {
		fallback = yes
		localization_key = independent_county_cath_castilian
	}
}
DukeMaleCathCastillian = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_duke_male_cath_castilian
	}
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = duke_male_theo_cath_castilian_independent
	}
	text = {
		fallback = yes
		localization_key = duke_default_male_cath_castilian
	}
}
DukeFemaleCathCastillian = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_duke_female_cath_castilian
	}
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = duke_female_theo_cath_castilian_independent
	}
	text = {
		fallback = yes
		localization_key = duke_default_female_cath_castilian
	}
}
DuchyCathCastillian = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_duchy_cath_castilian
	}
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			highest_held_title_tier = tier_duchy
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = independent_duchy_cath_castilian
	}
	text = {
		fallback = yes
		localization_key = duchy_default_cath_castilian
	}
}
IndepDuchyCathCastillian = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
		}
		localization_key = duchy_default_cath_castilian
	}
	text = {
		fallback = yes
		localization_key = independent_duchy_cath_castilian
	}
}
CountMaleCathCatalan = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_count_male_cath_catalan
	}
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = count_male_theo_cath_catalan_independent
	}
	text = {
		fallback = yes
		localization_key = count_default_male_cath_catalan
	}
}
CountFemaleCathCatalan = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_count_female_cath_catalan
	}
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = count_female_theo_cath_catalan_independent
	}
	text = {
		fallback = yes
		localization_key = count_default_female_cath_catalan
	}
}
CountyCathCatalan = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_county_cath_catalan
	}
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			highest_held_title_tier = tier_county
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = independent_county_cath_catalan
	}
	text = {
		fallback = yes
		localization_key = county_default_cath_catalan
	}
}
IndepCountyCathCatalan = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_duchy
		}
		localization_key = county_default_cath_catalan
	}
	text = {
		fallback = yes
		localization_key = independent_county_cath_catalan
	}
}
DukeMaleCathCatalan = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_duke_male_cath_catalan
	}
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = duke_male_theo_cath_catalan_independent
	}
	text = {
		fallback = yes
		localization_key = duke_default_male_cath_catalan
	}
}
DukeFemaleCathCatalan = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_duke_female_cath_catalan
	}
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = duke_female_theo_cath_catalan_independent
	}
	text = {
		fallback = yes
		localization_key = duke_default_female_cath_catalan
	}
}
DuchyCathCatalan = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_duchy_cath_catalan
	}
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			highest_held_title_tier = tier_duchy
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = independent_duchy_cath_catalan
	}
	text = {
		fallback = yes
		localization_key = duchy_default_cath_catalan
	}
}
IndepDuchyCathCatalan = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
		}
		localization_key = duchy_default_cath_catalan
	}
	text = {
		fallback = yes
		localization_key = independent_duchy_cath_catalan
	}
}
CountMaleCathPort = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_count_male_cath_portuguese
	}
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = count_male_theo_cath_portuguese_independent
	}
	text = {
		fallback = yes
		localization_key = count_default_male_cath_portuguese
	}
}
CountFemaleCathPort = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_count_female_cath_portuguese
	}
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = count_female_theo_cath_portuguese_independent
	}
	text = {
		fallback = yes
		localization_key = count_default_female_cath_portuguese
	}
}
CountyCathPort = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_county_cath_portuguese
	}
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			highest_held_title_tier = tier_county
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = independent_county_cath_portuguese
	}
	text = {
		fallback = yes
		localization_key = county_default_cath_portuguese
	}
}
IndepCountyCathPort = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_duchy
		}
		localization_key = county_default_cath_portuguese
	}
	text = {
		fallback = yes
		localization_key = independent_county_cath_portuguese
	}
}
DukeMaleCathPort = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_duke_male_cath_portuguese
	}
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = duke_male_theo_cath_portuguese_independent
	}
	text = {
		fallback = yes
		localization_key = duke_default_male_cath_portuguese
	}
}
DukeFemaleCathPort = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_duke_female_cath_portuguese
	}
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = duke_female_theo_cath_portuguese_independent
	}
	text = {
		fallback = yes
		localization_key = duke_default_female_cath_portuguese
	}
}
DuchyCathPort = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_duchy_cath_portuguese
	}
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			highest_held_title_tier = tier_duchy
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = independent_duchy_cath_portuguese
	}
	text = {
		fallback = yes
		localization_key = duchy_default_cath_portuguese
	}
}
IndepDuchyCathPort = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
		}
		localization_key = duchy_default_cath_portuguese
	}
	text = {
		fallback = yes
		localization_key = independent_duchy_cath_portuguese
	}
}
CountMaleCathSaxon = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_count_male_cath_saxon
	}
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = count_male_theo_cath_saxon_independent
	}
	text = {
		fallback = yes
		localization_key = count_default_male_cath_saxon
	}
}
CountFemaleCathSaxon = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_count_female_cath_saxon
	}
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = count_female_theo_cath_saxon_independent
	}
	text = {
		fallback = yes
		localization_key = count_default_female_cath_saxon
	}
}
CountyCathSaxon = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_county_cath_saxon
	}
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			highest_held_title_tier = tier_county
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = independent_county_cath_saxon
	}
	text = {
		fallback = yes
		localization_key = county_default_cath_saxon
	}
}
IndepCountyCathSaxon = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_duchy
		}
		localization_key = county_default_cath_saxon
	}
	text = {
		fallback = yes
		localization_key = independent_county_cath_saxon
	}
}
DukeMaleCathSaxon = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_duke_male_cath_saxon
	}
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = duke_male_theo_cath_saxon_independent
	}
	text = {
		fallback = yes
		localization_key = duke_default_male_cath_saxon
	}
}
DukeFemaleCathSaxon = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_duke_female_cath_saxon
	}
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = duke_female_theo_cath_saxon_independent
	}
	text = {
		fallback = yes
		localization_key = duke_default_female_cath_saxon
	}
}
DuchyCathSaxon = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_duchy_cath_saxon
	}
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			highest_held_title_tier = tier_duchy
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = independent_duchy_cath_saxon
	}
	text = {
		fallback = yes
		localization_key = duchy_default_cath_saxon
	}
}
IndepDuchyCathSaxon = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
		}
		localization_key = duchy_default_cath_saxon
	}
	text = {
		fallback = yes
		localization_key = independent_duchy_cath_mhg
	}
}
CountMaleCathMHG = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_count_male_cath_mhg
	}
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = count_male_theo_cath_mhg_independent
	}
	text = {
		fallback = yes
		localization_key = count_default_male_cath_mhg
	}
}
CountFemaleCathMHG = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_count_female_cath_mhg
	}
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = count_female_theo_cath_mhg_independent
	}
	text = {
		fallback = yes
		localization_key = count_default_female_cath_mhg
	}
}
CountyCathMHG = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_county_cath_mhg
	}
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			highest_held_title_tier = tier_county
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = independent_county_cath_mhg
	}
	text = {
		fallback = yes
		localization_key = county_default_cath_mhg
	}
}
IndepCountyCathMHG = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_duchy
		}
		localization_key = county_default_cath_mhg
	}
	text = {
		fallback = yes
		localization_key = independent_county_cath_mhg
	}
}
DukeMaleCathMHG = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_duke_male_cath_mhg
	}
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = duke_male_theo_cath_mhg_independent
	}
	text = {
		fallback = yes
		localization_key = duke_default_male_cath_mhg
	}
}
DukeFemaleCathMHG = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_duke_female_cath_mhg
	}
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = duke_female_theo_cath_mhg_independent
	}
	text = {
		fallback = yes
		localization_key = duke_default_female_cath_mhg
	}
}
DuchyCathMHG = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_duchy_cath_mhg
	}
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			highest_held_title_tier = tier_duchy
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = independent_duchy_cath_mhg
	}
	text = {
		fallback = yes
		localization_key = duchy_default_cath_mhg
	}
}
IndepDuchyCathMHG = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
		}
		localization_key = duchy_default_cath_mhg
	}
	text = {
		fallback = yes
		localization_key = independent_duchy_cath_mhg
	}
}
CountCathDutch = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_count_cath_dutch
	}
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = count_theo_cath_dutch_independent
	}
	text = {
		fallback = yes
		localization_key = count_default_cath_dutch
	}
}
CountyCathDutch = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_county_cath_dutch
	}
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			highest_held_title_tier = tier_county
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = independent_county_cath_dutch
	}
	text = {
		fallback = yes
		localization_key = county_default_cath_dutch
	}
}
IndepCountyCathDutch = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_duchy
		}
		localization_key = county_default_cath_dutch
	}
	text = {
		fallback = yes
		localization_key = independent_county_cath_dutch
	}
}
DukeCathDutch = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_duke_cath_dutch
	}
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = duke_theo_cath_dutch_independent
	}
	text = {
		fallback = yes
		localization_key = duke_default_male_cath_dutch
	}
}
DuchyCathDutch = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_duchy_cath_dutch
	}
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			highest_held_title_tier = tier_duchy
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = independent_duchy_cath_dutch
	}
	text = {
		fallback = yes
		localization_key = duchy_default_cath_dutch
	}
}
IndepDuchyCathDutch = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
		}
		localization_key = duchy_default_cath_dutch
	}
	text = {
		fallback = yes
		localization_key = independent_duchy_cath_dutch
	}
}