﻿# GetActualBishopTitlePossessive should be updated synchronously with this
GetActualBishopTitle = {
	type = character

	# 'Early Out' keys for Head of Faith/Landed Rulers.
	text = {
		trigger = {
			exists = faith.religious_head
			this = faith.religious_head
		}
		localization_key = religious_head_name
	}

	# Religion-By-Religion Titles for Bishops based on Liege's Tier.
	# Zunism
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
			faith.religion = faith:zun_pagan.religion
			NOT = { # Required formatting to include male/female check as well as vacancy
				cp:councillor_court_chaplain ?= {
					is_female = yes
				}
			}
		}
		localization_key = councillor_court_chaplain_zunism_religion_kingdom
	}
	text = {
		trigger = {
			highest_held_title_tier < tier_kingdom
			faith.religion = faith:zun_pagan.religion
			NOT = { # Required formatting to include male/female check as well as vacancy
				cp:councillor_court_chaplain ?= {
					is_female = yes
				}
			}
		}
		localization_key = councillor_court_chaplain_zunism_religion_duchy
	}

	# Zoroastrianism
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
			NOT = { # Required formatting to include male/female check as well as vacancy
				cp:councillor_court_chaplain ?= {
					is_female = yes
				}
			}
			fp3_custom_divinity_for_zoroastrianism_faiths = yes
		}
		localization_key = councillor_court_chaplain_zoroastrianism_religion_kingdom
	}
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
			NOT = { # Required formatting to include male/female check as well as vacancy
				cp:councillor_court_chaplain ?= {
					is_female = no
				}
			}
			fp3_custom_divinity_for_zoroastrianism_faiths = yes
		}
		localization_key = councillor_court_chaplain_zoroastrianism_religion_kingdom_female
	}
	text = {
		trigger = {
			highest_held_title_tier >= tier_duchy
			NOT = { # Required formatting to include male/female check as well as vacancy
				cp:councillor_court_chaplain ?= {
					is_female = yes
				}
			}
			fp3_custom_divinity_for_zoroastrianism_faiths = yes
		}
		localization_key = councillor_court_chaplain_zoroastrianism_religion_duchy
	}
	text = {
		trigger = {
			highest_held_title_tier >= tier_duchy
			NOT = { # Required formatting to include male/female check as well as vacancy
				cp:councillor_court_chaplain ?= {
					is_female = no
				}
			}
			fp3_custom_divinity_for_zoroastrianism_faiths = yes
		}
		localization_key = councillor_court_chaplain_zoroastrianism_religion_duchy_female
	}
	text = {
		trigger = {
			highest_held_title_tier < tier_duchy
			fp3_custom_divinity_for_zoroastrianism_faiths = yes
		}
		localization_key = councillor_court_chaplain_zoroastrianism_religion_county
	}
	# African Roog
	text = {
		trigger = {
			faith.religion = faith:west_african_roog_pagan.religion
		}
		localization_key = councillor_court_chaplain_west_african_roog_religion_duchy
	}
	# African Bori
	text = {
		trigger = {
			faith.religion = faith:west_african_bori_pagan.religion
			NOT = { # Required formatting to include male/female check as well as vacancy
				cp:councillor_court_chaplain ?= {
					is_female = yes
				}
			}
		}
		localization_key = councillor_court_chaplain_west_african_bori_religion_duchy
	}
	text = {
		trigger = {
			faith.religion = faith:west_african_bori_pagan.religion
			NOT = { # Required formatting to include male/female check as well as vacancy
				cp:councillor_court_chaplain ?= {
					is_female = yes
				}
			}
		}
		localization_key = councillor_court_chaplain_west_african_bori_religion_duchy_female
	}
	# African
	text = {
		trigger = {
			faith.religion = faith:west_african_pagan.religion
		}
		localization_key = councillor_court_chaplain_west_african_religion_duchy
	}
	
	# Tengrism
	text = {
		trigger = {
			highest_held_title_tier >= tier_duchy
			faith.religion = faith:tengri_pagan.religion
		}
		localization_key = councillor_court_chaplain_tengrism_religion_kingdom
	}
	text = {
		trigger = {
			highest_held_title_tier < tier_duchy
			faith.religion = faith:tengri_pagan.religion
		}
		localization_key = councillor_court_chaplain_tengrism_religion_duchy
	}

	#Taoism
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
			faith.religion = religion:taoism_religion
		}
		localization_key = councillor_court_chaplain_taoism_religion_kingdom
	}
	text = {
		trigger = {
			highest_held_title_tier >= tier_duchy
			faith.religion = religion:taoism_religion
		}
		localization_key = councillor_court_chaplain_taoism_religion_duchy
	}
	text = {
		trigger = {
			highest_held_title_tier < tier_duchy
			faith.religion = religion:taoism_religion
			NOT = { # Required formatting to include male/female check as well as vacancy
				cp:councillor_court_chaplain ?= {
					is_female = yes
				}
			}
		}
		localization_key = councillor_court_chaplain_taoism_religion_county
	}
	text = {
		trigger = {
			highest_held_title_tier < tier_duchy
			faith.religion = religion:taoism_religion
			NOT = { # Required formatting to include male/female check as well as vacancy
				cp:councillor_court_chaplain ?= {
					is_female = no
				}
			}
		}
		localization_key = councillor_court_chaplain_taoism_religion_county_female
	}

	#Finno-Ugric
	text = {
		trigger = {
			faith.religion = faith:finnish_pagan.religion
		}
		localization_key = councillor_court_chaplain_finno_ugric_religion_duchy
	}
	
	#Slavic
	text = {
		trigger = {
			highest_held_title_tier >= tier_duchy
			faith.religion = faith:slavic_pagan.religion
			NOT = { # Required formatting to include male/female check as well as vacancy
				cp:councillor_court_chaplain ?= {
					is_female = yes
				}
			}
		}
		localization_key = councillor_court_chaplain_slavic_religion_kingdom
	}
	text = {
		trigger = {
			highest_held_title_tier >= tier_duchy
			faith.religion = faith:slavic_pagan.religion
			NOT = { # Required formatting to include male/female check as well as vacancy
				cp:councillor_court_chaplain ?= {
					is_female = no
				}
			}
		}
		localization_key = councillor_court_chaplain_slavic_religion_kingdom_female
	}
	text = {
		trigger = {
			highest_held_title_tier < tier_duchy
			faith.religion = faith:slavic_pagan.religion
			NOT = { # Required formatting to include male/female check as well as vacancy
				cp:councillor_court_chaplain ?= {
					is_female = yes
				}
			}
		}
		localization_key = councillor_court_chaplain_slavic_religion_duchy
	}
	text = {
		trigger = {
			highest_held_title_tier < tier_duchy
			faith.religion = faith:slavic_pagan.religion
			NOT = { # Required formatting to include male/female check as well as vacancy
				cp:councillor_court_chaplain ?= {
					is_female = no
				}
			}
		}
		localization_key = councillor_court_chaplain_slavic_religion_duchy_female
	}

	#Baltic
	text = {
		trigger = {
			highest_held_title_tier >= tier_duchy
			faith.religion = faith:baltic_pagan.religion
			NOT = { # Required formatting to include male/female check as well as vacancy
				cp:councillor_court_chaplain ?= {
					is_female = yes
				}
			}
		}
		localization_key = councillor_court_chaplain_baltic_religion_duchy
	}
	text = {
		trigger = {
			highest_held_title_tier >= tier_duchy
			faith.religion = faith:baltic_pagan.religion
			NOT = { # Required formatting to include male/female check as well as vacancy
				cp:councillor_court_chaplain ?= {
					is_female = no
				}
			}
		}
		localization_key = councillor_court_chaplain_baltic_religion_duchy_female
	}
	text = {
		trigger = {
			highest_held_title_tier < tier_duchy
			NOT = { # Required formatting to include male/female check as well as vacancy
				cp:councillor_court_chaplain ?= {
					is_female = yes
				}
			}
			OR = {
				faith.religion = faith:baltic_pagan.religion
				faith.religion = faith:slavic_pagan.religion
				faith.religion = faith:finnish_pagan.religion
				faith.religion = faith:zun_pagan.religion
			}
		}
		localization_key = councillor_court_chaplain_baltic_religion_county
	}
	text = {
		trigger = {
			highest_held_title_tier < tier_duchy
			NOT = { # Required formatting to include male/female check as well as vacancy
				cp:councillor_court_chaplain ?= {
					is_female = no
				}
			}
			OR = {
				faith.religion = faith:baltic_pagan.religion
				faith.religion = faith:slavic_pagan.religion
				faith.religion = faith:finnish_pagan.religion
				faith.religion = faith:zun_pagan.religion
			}
		}
		localization_key = councillor_court_chaplain_baltic_religion_county_female
	}

	#Magyarism
	text = {
		trigger = {
			faith.religion = faith:magyar_pagan.religion
		}
		localization_key = councillor_court_chaplain_magyarism_religion_county
	}

	#Judaism
	text = {
		trigger = {
			highest_held_title_tier >= tier_empire
			faith.religion = faith:rabbinism.religion
		}
		localization_key = councillor_court_chaplain_judaism_religion_empire
	}
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
			faith.religion = faith:rabbinism.religion
		}
		localization_key = councillor_court_chaplain_judaism_religion_kingdom
	}
	text = {
		trigger = {
			highest_held_title_tier >= tier_duchy
			faith.religion = faith:rabbinism.religion
		}
		localization_key = councillor_court_chaplain_judaism_religion_duchy
	}
	text = {
		trigger = {
			highest_held_title_tier < tier_duchy
			faith.religion = faith:rabbinism.religion
		}
		localization_key = councillor_court_chaplain_judaism_religion_county
	}
	
	#Hellenic
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
			faith.religion = faith:hellenic_pagan.religion
			NOT = { # Required formatting to include male/female check as well as vacancy
				cp:councillor_court_chaplain ?= {
					is_female = yes
				}
			}
		}
		localization_key = councillor_court_chaplain_hellenism_religion_kingdom
	}
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
			faith.religion = faith:hellenic_pagan.religion
			NOT = { # Required formatting to include male/female check as well as vacancy
				cp:councillor_court_chaplain ?= {
					is_female = no
				}
			}
		}
		localization_key = councillor_court_chaplain_hellenism_religion_kingdom_female
	}
	text = {
		trigger = {
			highest_held_title_tier >= tier_duchy
			faith.religion = faith:hellenic_pagan.religion
		}
		localization_key = councillor_court_chaplain_hellenism_religion_duchy
	}
	text = {
		trigger = {
			highest_held_title_tier < tier_duchy
			faith.religion = faith:hellenic_pagan.religion
			NOT = { # Required formatting to include male/female check as well as vacancy
				cp:councillor_court_chaplain ?= {
					is_female = yes
				}
			}
		}
		localization_key = councillor_court_chaplain_hellenism_religion_county
	}
	text = {
		trigger = {
			highest_held_title_tier < tier_duchy
			faith.religion = faith:hellenic_pagan.religion
			NOT = { # Required formatting to include male/female check as well as vacancy
				cp:councillor_court_chaplain ?= {
					is_female = no
				}
			}
		}
		localization_key = councillor_court_chaplain_hellenism_religion_county_female
	}

	#Norse
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
			faith.religion = faith:norse_pagan.religion
		}
		localization_key = councillor_court_chaplain_germanic_religion_kingdom
	}
	text = {
		trigger = {
			highest_held_title_tier >= tier_duchy
			faith.religion = faith:norse_pagan.religion
		}
		localization_key = councillor_court_chaplain_germanic_religion_duchy
	}
	text = {
		trigger = {
			highest_held_title_tier < tier_duchy
			faith.religion = faith:norse_pagan.religion
			NOT = { # Required formatting to include male/female check as well as vacancy
				cp:councillor_court_chaplain ?= {
					is_female = yes
				}
			}
		}
		localization_key = councillor_court_chaplain_germanic_religion_county
	}
	text = {
		trigger = {
			highest_held_title_tier < tier_duchy
			faith.religion = faith:norse_pagan.religion
			NOT = { # Required formatting to include male/female check as well as vacancy
				cp:councillor_court_chaplain ?= {
					is_female = no
				}
			}
		}
		localization_key = councillor_court_chaplain_germanic_religion_county_female
	}

	#Dualism
	text = {
		trigger = {
			highest_held_title_tier < tier_duchy
			faith.religion = faith:manichean.religion
		}
		localization_key = councillor_court_chaplain_dualism_religion_county
	}

	#Bon
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
			faith.religion = faith:bon.religion
		}
		localization_key = councillor_court_chaplain_bon_religion_kingdom
	}

	# Japanese Buddhism
	text = {
		trigger = {
			culture = { has_cultural_pillar = language_japonic }
			religion = religion:buddhism_religion
		}
		localization_key = councillor_court_chaplain_japanese_buddhism_religion
	}

	# Korean Buddhism
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			culture = {
				OR = {
					has_cultural_pillar = heritage_korean
					has_cultural_pillar = heritage_buyeo
				}
			}
			religion = religion:buddhism_religion
		}
		localization_key = councillor_court_chaplain_buddhist_korean_county
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_duchy
			culture = {
				OR = {
					has_cultural_pillar = heritage_korean
					has_cultural_pillar = heritage_buyeo
				}
			}
			religion = religion:buddhism_religion
		}
		localization_key = councillor_court_chaplain_buddhist_korean_duchy
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_kingdom
			culture = {
				OR = {
					has_cultural_pillar = heritage_korean
					has_cultural_pillar = heritage_buyeo
				}
			}
			OR = {
				faith = faith:dhyana
				AND = {
					faith = { has_doctrine = tenet_no_mind }
					religion = religion:buddhism_religion
				}
			}
		}
		localization_key = councillor_court_chaplain_seon_korean_kingdom
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_kingdom
			culture = {
				OR = {
					has_cultural_pillar = heritage_korean
					has_cultural_pillar = heritage_buyeo
				}
			}
			religion = religion:buddhism_religion
		}
		localization_key = councillor_court_chaplain_buddhist_korean_kingdom
	}
	text = {
		trigger = {
			highest_held_title_tier >= tier_empire
			culture = {
				OR = {
					has_cultural_pillar = heritage_korean
					has_cultural_pillar = heritage_buyeo
				}
			}
			OR = {
				faith = faith:dhyana
				AND = {
					faith = { has_doctrine = tenet_no_mind }
					religion = religion:buddhism_religion
				}
			}
		}
		localization_key = councillor_court_chaplain_seon_korean_empire
	}
	text = {
		trigger = {
			highest_held_title_tier >= tier_empire
			culture = {
				OR = {
					has_cultural_pillar = heritage_korean
					has_cultural_pillar = heritage_buyeo
				}
			}
			religion = religion:buddhism_religion
		}
		localization_key = councillor_court_chaplain_buddhist_korean_empire
	}

	# Viet Buddhism
	text = {
		trigger = {
			culture = { has_cultural_pillar = language_vietnamese }
			religion = religion:buddhism_religion
		}
		localization_key = councillor_court_chaplain_buddhist_viet
	}

	#Buddhism/Hinduism/Jainism
	text = {
		trigger = {
			highest_held_title_tier >= tier_empire
			OR = {
				faith.religion = faith:theravada.religion
				faith.religion = faith:vaishnavism.religion
				faith.religion = faith:digambara.religion
			}
		}
		localization_key = councillor_court_chaplain_buddhism_religion_empire
	}
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
			OR = {
				faith.religion = faith:theravada.religion
				faith.religion = faith:vaishnavism.religion
				faith.religion = faith:digambara.religion
			}
		}
		localization_key = councillor_court_chaplain_buddhism_religion_kingdom
	}
	text = {
		trigger = {
			highest_held_title_tier >= tier_duchy
			OR = {
				faith.religion = faith:theravada.religion
				faith.religion = faith:vaishnavism.religion
				faith.religion = faith:digambara.religion
				faith.religion = faith:bon.religion
			}
		}
		localization_key = councillor_court_chaplain_buddhism_religion_duchy
	}
	text = {
		trigger = {
			highest_held_title_tier < tier_duchy
			OR = {
				faith.religion = faith:theravada.religion
				faith.religion = faith:vaishnavism.religion
				faith.religion = faith:digambara.religion
				faith.religion = faith:bon.religion
			}
		}
		localization_key = councillor_court_chaplain_buddhism_religion_county
	}
	
	#The Modern Age#
	#Shia
	text = {
		trigger = { 
			highest_held_title_tier >= tier_empire 
			faith = { has_doctrine = muhammad_succession_shia_doctrine }
		}	
		localization_key = councillor_court_chaplain_ismaili_empire
	}
	text = {
		trigger = { 
			highest_held_title_tier >= tier_kingdom 
			faith = { has_doctrine = muhammad_succession_shia_doctrine }
		}	
		localization_key = councillor_court_chaplain_ismaili_kingdom
	}
	text = {
		trigger = { 
			highest_held_title_tier >= tier_duchy
			faith = { has_doctrine = muhammad_succession_shia_doctrine }
		}	
		localization_key = councillor_court_chaplain_ismaili_duchy
	}
	text = {
		trigger = { 
			highest_held_title_tier < tier_duchy
			faith = { has_doctrine = muhammad_succession_shia_doctrine }
		}
		localization_key = councillor_court_chaplain_ismaili_county
	}

	#Druze
	text = {
		trigger = { highest_held_title_tier >= tier_empire faith = faith:druze}
		localization_key = councillor_court_chaplain_druze_empire
	}
	text = {
		trigger = { highest_held_title_tier >= tier_kingdom faith = faith:druze}
		localization_key = councillor_court_chaplain_druze_kingdom
	}
	text = {
		trigger = { highest_held_title_tier >= tier_duchy faith = faith:druze}
		localization_key = councillor_court_chaplain_druze_duchy
	}
	text = {
		trigger = { highest_held_title_tier < tier_duchy faith = faith:druze}
		localization_key = councillor_court_chaplain_druze_county
	}
	#Druze
	#The Modern Age#

	#Islam
	text = {
		trigger = { highest_held_title_tier >= tier_empire faith.religion = faith:ashari.religion }
		localization_key = councillor_court_chaplain_islam_empire
	}
	text = {
		trigger = { highest_held_title_tier >= tier_kingdom faith.religion = faith:ashari.religion }
		localization_key = councillor_court_chaplain_islam_kingdom
	}
	text = {
		trigger = { highest_held_title_tier >= tier_duchy faith.religion = faith:ashari.religion }
		localization_key = councillor_court_chaplain_islam_duchy
	}
	text = {
		trigger = { highest_held_title_tier < tier_duchy faith.religion = faith:ashari.religion }
		localization_key = councillor_court_chaplain_islam_county
	}

	#Yazidi
	text = {
		trigger = { highest_held_title_tier >= tier_empire faith.religion = faith:yazidi.religion }
		localization_key = councillor_court_chaplain_yazidi_empire
	}
	text = {
		trigger = { highest_held_title_tier >= tier_kingdom faith.religion = faith:yazidi.religion }
		localization_key = councillor_court_chaplain_yazidi_kingdom
	}
	text = {
		trigger = { highest_held_title_tier >= tier_duchy faith.religion = faith:yazidi.religion }
		localization_key = councillor_court_chaplain_yazidi_duchy
	}
	text = {
		trigger = { highest_held_title_tier < tier_duchy faith.religion = faith:yazidi.religion }
		localization_key = councillor_court_chaplain_yazidi_county
	}

	#Orthodox
	text = {
		trigger = {
			highest_held_title_tier >= tier_empire
			NOT = { # Required formatting to include male/female check as well as vacancy
				cp:councillor_court_chaplain ?= {
					is_female = yes
				}
			}
			OR = {
				faith = faith:orthodox
				faith.religion = faith:manichean.religion
			}
		}
		localization_key = councillor_court_chaplain_orthodox_empire
	}
	text = {
		trigger = {
			highest_held_title_tier >= tier_empire
			NOT = { # Required formatting to include male/female check as well as vacancy
				cp:councillor_court_chaplain ?= {
					is_female = no
				}
			}
			OR = {
				faith = faith:orthodox
				faith.religion = faith:manichean.religion
			}
		}
		localization_key = councillor_court_chaplain_orthodox_empire_female
	}
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
			NOT = { # Required formatting to include male/female check as well as vacancy
				cp:councillor_court_chaplain ?= {
					is_female = yes
				}
			}
			OR = {
				faith = faith:orthodox
				faith.religion = faith:manichean.religion
			}
		}
		localization_key = councillor_court_chaplain_orthodox_kingdom
	}
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
			NOT = { # Required formatting to include male/female check as well as vacancy
				cp:councillor_court_chaplain ?= {
					is_female = no
				}
			}
			OR = {
				faith = faith:orthodox
				faith.religion = faith:manichean.religion
			}
		}
		localization_key = councillor_court_chaplain_orthodox_kingdom_female
	}
	text = {
		trigger = {
			highest_held_title_tier >= tier_duchy
			OR = {
				faith = faith:orthodox
				faith.religion = faith:manichean.religion
			}
		}
		localization_key = councillor_court_chaplain_orthodox_duchy
	}
	text = {
		trigger = {
			highest_held_title_tier < tier_duchy
			OR = {
				faith = faith:orthodox
				faith.religion = faith:manichean.religion
			}
		}
		localization_key = councillor_court_chaplain_orthodox_county
	}

	#Christian
	text = {
		trigger = { 
			highest_held_title_tier >= tier_empire 
			NOT = { # Required formatting to include male/female check as well as vacancy
				cp:councillor_court_chaplain ?= {
					is_female = yes
				}
			}
			faith.religion = faith:catholic.religion 
		}
		localization_key = councillor_court_chaplain_christian_empire
	}
	text = {
		trigger = { 
			highest_held_title_tier >= tier_empire 
			NOT = { # Required formatting to include male/female check as well as vacancy
				cp:councillor_court_chaplain ?= {
					is_female = no
				}
			}
			faith.religion = faith:catholic.religion 
		}
		localization_key = councillor_court_chaplain_christian_empire_female
	}
	text = {
		trigger = { highest_held_title_tier >= tier_kingdom faith.religion = faith:catholic.religion }
		localization_key = councillor_court_chaplain_christian_kingdom
	}
	text = {
		trigger = { highest_held_title_tier >= tier_duchy faith.religion = faith:catholic.religion }
		localization_key = councillor_court_chaplain_christian_duchy
	}
	text = {
		trigger = { highest_held_title_tier < tier_duchy faith.religion = faith:catholic.religion }
		localization_key = councillor_court_chaplain_christian_county
	}

	#Basque Paganism
	text = {
		trigger = {
			religion = religion:basque_religion
		}
		localization_key = council_basque_priest
	}
	
	# Shinto
	text = {
		trigger = {
			religion = religion:shintoism_religion
		}
		localization_key = councillor_court_chaplain_shintoism_religion
	}

	#Paganism
	text = {
		trigger = {
			faith = { has_doctrine = pagan_hostility_doctrine }
			highest_held_title_tier >= tier_kingdom
			NOT = { # Required formatting to include male/female check as well as vacancy
				cp:councillor_court_chaplain ?= {
					is_female = yes
				}
			}
		}
		localization_key = councillor_court_chaplain_paganism_religion_kingdom
	}
	text = {
		trigger = {
			faith = { has_doctrine = pagan_hostility_doctrine }
			highest_held_title_tier >= tier_kingdom
			NOT = { # Required formatting to include male/female check as well as vacancy
				cp:councillor_court_chaplain ?= {
					is_female = no
				}
			}
		}
		localization_key = councillor_court_chaplain_paganism_religion_kingdom_female
	}
	text = {
		trigger = {
			faith = { has_doctrine = pagan_hostility_doctrine }
			highest_held_title_tier >= tier_duchy
		}
		localization_key = councillor_court_chaplain_paganism_religion_duchy
	}
	text = {
		trigger = {
			faith = { has_doctrine = pagan_hostility_doctrine }
			highest_held_title_tier < tier_duchy
		}
		localization_key = councillor_court_chaplain_paganism_religion_county
	}

	#Fallback
	text = {
		trigger = { 
			highest_held_title_tier >= tier_empire 
			NOT = { # Required formatting to include male/female check as well as vacancy
				cp:councillor_court_chaplain ?= {
					is_female = yes
				}
			}
		}
		localization_key = councillor_court_chaplain_theocrat_empire
	}
	text = {
		trigger = { 
			highest_held_title_tier >= tier_empire 
			NOT = { # Required formatting to include male/female check as well as vacancy
				cp:councillor_court_chaplain ?= {
					is_female = no
				}
			}
		}
		localization_key = councillor_court_chaplain_theocrat_empire_female
	}
	text = {
		trigger = { highest_held_title_tier >= tier_kingdom }
		localization_key = councillor_court_chaplain_theocrat_kingdom
	}
	text = {
		trigger = { highest_held_title_tier >= tier_duchy }
		localization_key = councillor_court_chaplain_theocrat_duchy
	}
	text = {
		trigger = { highest_held_title_tier < tier_duchy }
		localization_key = councillor_court_chaplain_theocrat_county
	}
}

# GetActualBishopTitle should be updated synchronously with this
GetActualBishopTitlePossessive = {
	type = character

	# Religion-By-Religion Titles for Bishops based on Liege's Tier.
	# Zunism
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
			faith.religion = faith:zun_pagan.religion
			NOT = { # Required formatting to include male/female check as well as vacancy
				cp:councillor_court_chaplain ?= {
					is_female = yes
				}
			}
		}
		localization_key = councillor_court_chaplain_zunism_religion_kingdom_possessive
	}
	text = {
		trigger = {
			highest_held_title_tier < tier_kingdom
			faith.religion = faith:zun_pagan.religion
			NOT = { # Required formatting to include male/female check as well as vacancy
				cp:councillor_court_chaplain ?= {
					is_female = yes
				}
			}
		}
		localization_key = councillor_court_chaplain_zunism_religion_duchy_possessive
	}

	# Zoroastrianism
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
			faith.religion = faith:mazdayasna.religion
			NOT = { # Required formatting to include male/female check as well as vacancy
				cp:councillor_court_chaplain ?= {
					is_female = yes
				}
			}
		}
		localization_key = councillor_court_chaplain_zoroastrianism_religion_kingdom_possessive
	}
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
			faith.religion = faith:mazdayasna.religion
			NOT = { # Required formatting to include male/female check as well as vacancy
				cp:councillor_court_chaplain ?= {
					is_female = no
				}
			}
		}
		localization_key = councillor_court_chaplain_zoroastrianism_religion_kingdom_female_possessive
	}
	text = {
		trigger = {
			highest_held_title_tier >= tier_duchy
			faith.religion = faith:mazdayasna.religion
			NOT = { # Required formatting to include male/female check as well as vacancy
				cp:councillor_court_chaplain ?= {
					is_female = yes
				}
			}
		}
		localization_key = councillor_court_chaplain_zoroastrianism_religion_duchy_possessive
	}
	text = {
		trigger = {
			highest_held_title_tier >= tier_duchy
			faith.religion = faith:mazdayasna.religion
			NOT = { # Required formatting to include male/female check as well as vacancy
				cp:councillor_court_chaplain ?= {
					is_female = no
				}
			}
		}
		localization_key = councillor_court_chaplain_zoroastrianism_religion_duchy_female_possessive
	}
	text = {
		trigger = {
			highest_held_title_tier < tier_duchy
			faith.religion = faith:mazdayasna.religion
		}
		localization_key = councillor_court_chaplain_zoroastrianism_religion_county_possessive
	}
	# African Roog
	text = {
		trigger = {
			faith.religion = faith:west_african_roog_pagan.religion
		}
		localization_key = councillor_court_chaplain_west_african_roog_religion_duchy_possessive
	}
	# African Bori
	text = {
		trigger = {
			faith.religion = faith:west_african_bori_pagan.religion
			NOT = { # Required formatting to include male/female check as well as vacancy
				cp:councillor_court_chaplain ?= {
					is_female = yes
				}
			}
		}
		localization_key = councillor_court_chaplain_west_african_bori_religion_duchy_possessive
	}
	text = {
		trigger = {
			faith.religion = faith:west_african_bori_pagan.religion
			NOT = { # Required formatting to include male/female check as well as vacancy
				cp:councillor_court_chaplain ?= {
					is_female = no
				}
			}
		}
		localization_key = councillor_court_chaplain_west_african_bori_religion_duchy_female_possessive
	}
	# African
	text = {
		trigger = {
			faith.religion = faith:west_african_pagan.religion
		}
		localization_key = councillor_court_chaplain_west_african_religion_duchy_possessive
	}
	
	# Tengrism
	text = {
		trigger = {
			highest_held_title_tier >= tier_duchy
			faith.religion = faith:tengri_pagan.religion
		}
		localization_key = councillor_court_chaplain_tengrism_religion_kingdom_possessive
	}
	text = {
		trigger = {
			highest_held_title_tier < tier_duchy
			faith.religion = faith:tengri_pagan.religion
		}
		localization_key = councillor_court_chaplain_tengrism_religion_duchy_possessive
	}

	#Taoism
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
			faith.religion = religion:taoism_religion
		}
		localization_key = councillor_court_chaplain_taoism_religion_kingdom_possessive
	}
	text = {
		trigger = {
			highest_held_title_tier >= tier_duchy
			faith.religion = religion:taoism_religion
		}
		localization_key = councillor_court_chaplain_taoism_religion_duchy_possessive
	}
	text = {
		trigger = {
			highest_held_title_tier < tier_duchy
			faith.religion = religion:taoism_religion
			NOT = { # Required formatting to include male/female check as well as vacancy
				cp:councillor_court_chaplain ?= {
					is_female = yes
				}
			}
		}
		localization_key = councillor_court_chaplain_taoism_religion_county_possessive
	}
	text = {
		trigger = {
			highest_held_title_tier < tier_duchy
			faith.religion = religion:taoism_religion
			NOT = { # Required formatting to include male/female check as well as vacancy
				cp:councillor_court_chaplain ?= {
					is_female = no
				}
			}
		}
		localization_key = councillor_court_chaplain_taoism_religion_county_female_possessive
	}

	#Finno-Ugric
	text = {
		trigger = {
			faith.religion = faith:finnish_pagan.religion
		}
		localization_key = councillor_court_chaplain_finno_ugric_religion_duchy_possessive
	}
	
	#Slavic
	text = {
		trigger = {
			highest_held_title_tier >= tier_duchy
			faith.religion = faith:slavic_pagan.religion
			NOT = { # Required formatting to include male/female check as well as vacancy
				cp:councillor_court_chaplain ?= {
					is_female = yes
				}
			}
		}
		localization_key = councillor_court_chaplain_slavic_religion_kingdom_possessive
	}
	text = {
		trigger = {
			highest_held_title_tier >= tier_duchy
			faith.religion = faith:slavic_pagan.religion
			NOT = { # Required formatting to include male/female check as well as vacancy
				cp:councillor_court_chaplain ?= {
					is_female = no
				}
			}
		}
		localization_key = councillor_court_chaplain_slavic_religion_kingdom_female_possessive
	}
	text = {
		trigger = {
			highest_held_title_tier < tier_duchy
			faith.religion = faith:slavic_pagan.religion
			NOT = { # Required formatting to include male/female check as well as vacancy
				cp:councillor_court_chaplain ?= {
					is_female = yes
				}
			}
		}
		localization_key = councillor_court_chaplain_slavic_religion_duchy_possessive
	}
	text = {
		trigger = {
			highest_held_title_tier < tier_duchy
			faith.religion = faith:slavic_pagan.religion
			NOT = { # Required formatting to include male/female check as well as vacancy
				cp:councillor_court_chaplain ?= {
					is_female = no
				}
			}
		}
		localization_key = councillor_court_chaplain_slavic_religion_duchy_female_possessive
	}

	#Baltic
	text = {
		trigger = {
			highest_held_title_tier >= tier_duchy
			faith.religion = faith:baltic_pagan.religion
			NOT = { # Required formatting to include male/female check as well as vacancy
				cp:councillor_court_chaplain ?= {
					is_female = yes
				}
			}
		}
		localization_key = councillor_court_chaplain_baltic_religion_duchy_possessive
	}
	text = {
		trigger = {
			highest_held_title_tier >= tier_duchy
			faith.religion = faith:baltic_pagan.religion
			NOT = { # Required formatting to include male/female check as well as vacancy
				cp:councillor_court_chaplain ?= {
					is_female = no
				}
			}
		}
		localization_key = councillor_court_chaplain_baltic_religion_duchy_female_possessive
	}
	text = {
		trigger = {
			highest_held_title_tier < tier_duchy
			NOT = { # Required formatting to include male/female check as well as vacancy
				cp:councillor_court_chaplain ?= {
					is_female = yes
				}
			}
			OR = {
				faith.religion = faith:baltic_pagan.religion
				faith.religion = faith:slavic_pagan.religion
				faith.religion = faith:finnish_pagan.religion
				faith.religion = faith:zun_pagan.religion
			}
		}
		localization_key = councillor_court_chaplain_baltic_religion_county_possessive
	}
	text = {
		trigger = {
			highest_held_title_tier < tier_duchy
			NOT = { # Required formatting to include male/female check as well as vacancy
				cp:councillor_court_chaplain ?= {
					is_female = no
				}
			}
			OR = {
				faith.religion = faith:baltic_pagan.religion
				faith.religion = faith:slavic_pagan.religion
				faith.religion = faith:finnish_pagan.religion
				faith.religion = faith:zun_pagan.religion
			}
		}
		localization_key = councillor_court_chaplain_baltic_religion_county_female_possessive
	}

	#Magyarism
	text = {
		trigger = {
			faith.religion = faith:magyar_pagan.religion
		}
		localization_key = councillor_court_chaplain_magyarism_religion_county_possessive
	}

	#Judaism
	text = {
		trigger = {
			highest_held_title_tier >= tier_empire
			faith.religion = faith:rabbinism.religion
		}
		localization_key = councillor_court_chaplain_judaism_religion_empire_possessive
	}
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
			faith.religion = faith:rabbinism.religion
		}
		localization_key = councillor_court_chaplain_judaism_religion_kingdom_possessive
	}
	text = {
		trigger = {
			highest_held_title_tier >= tier_duchy
			faith.religion = faith:rabbinism.religion
		}
		localization_key = councillor_court_chaplain_judaism_religion_duchy_possessive
	}
	text = {
		trigger = {
			highest_held_title_tier < tier_duchy
			faith.religion = faith:rabbinism.religion
		}
		localization_key = councillor_court_chaplain_judaism_religion_county_possessive
	}
	
	#Hellenic
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
			faith.religion = faith:hellenic_pagan.religion
			NOT = { # Required formatting to include male/female check as well as vacancy
				cp:councillor_court_chaplain ?= {
					is_female = yes
				}
			}
		}
		localization_key = councillor_court_chaplain_hellenism_religion_kingdom_possessive
	}
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
			faith.religion = faith:hellenic_pagan.religion
			NOT = { # Required formatting to include male/female check as well as vacancy
				cp:councillor_court_chaplain ?= {
					is_female = no
				}
			}
		}
		localization_key = councillor_court_chaplain_hellenism_religion_kingdom_female_possessive
	}
	text = {
		trigger = {
			highest_held_title_tier >= tier_duchy
			faith.religion = faith:hellenic_pagan.religion
		}
		localization_key = councillor_court_chaplain_hellenism_religion_duchy_possessive
	}
	text = {
		trigger = {
			highest_held_title_tier < tier_duchy
			faith.religion = faith:hellenic_pagan.religion
			NOT = { # Required formatting to include male/female check as well as vacancy
				cp:councillor_court_chaplain ?= {
					is_female = yes
				}
			}
		}
		localization_key = councillor_court_chaplain_hellenism_religion_county_possessive
	}
	text = {
		trigger = {
			highest_held_title_tier < tier_duchy
			faith.religion = faith:hellenic_pagan.religion
			NOT = { # Required formatting to include male/female check as well as vacancy
				cp:councillor_court_chaplain ?= {
					is_female = no
				}
			}
		}
		localization_key = councillor_court_chaplain_hellenism_religion_county_female_possessive
	}

	#Norse
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
			faith.religion = faith:norse_pagan.religion
		}
		localization_key = councillor_court_chaplain_germanic_religion_kingdom_possessive
	}
	text = {
		trigger = {
			highest_held_title_tier >= tier_duchy
			faith.religion = faith:norse_pagan.religion
		}
		localization_key = councillor_court_chaplain_germanic_religion_duchy_possessive
	}
	text = {
		trigger = {
			highest_held_title_tier < tier_duchy
			faith.religion = faith:norse_pagan.religion
			NOT = { # Required formatting to include male/female check as well as vacancy
				cp:councillor_court_chaplain ?= {
					is_female = yes
				}
			}
		}
		localization_key = councillor_court_chaplain_germanic_religion_county_possessive
	}
	text = {
		trigger = {
			highest_held_title_tier < tier_duchy
			faith.religion = faith:norse_pagan.religion
			NOT = { # Required formatting to include male/female check as well as vacancy
				cp:councillor_court_chaplain ?= {
					is_female = no
				}
			}
		}
		localization_key = councillor_court_chaplain_germanic_religion_county_female_possessive
	}

	#Dualism
	text = {
		trigger = {
			highest_held_title_tier < tier_duchy
			faith.religion = faith:manichean.religion
		}
		localization_key = councillor_court_chaplain_dualism_religion_county_possessive
	}

	#Bon
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
			faith.religion = faith:bon.religion
		}
		localization_key = councillor_court_chaplain_bon_religion_kingdom_possessive
	}

	#Buddhism/Hinduism/Jainism
	text = {
		trigger = {
			highest_held_title_tier >= tier_empire
			OR = {
				faith.religion = faith:theravada.religion
				faith.religion = faith:vaishnavism.religion
				faith.religion = faith:digambara.religion
			}
		}
		localization_key = councillor_court_chaplain_buddhism_religion_empire_possessive
	}
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
			OR = {
				faith.religion = faith:theravada.religion
				faith.religion = faith:vaishnavism.religion
				faith.religion = faith:digambara.religion
			}
		}
		localization_key = councillor_court_chaplain_buddhism_religion_kingdom_possessive
	}
	text = {
		trigger = {
			highest_held_title_tier >= tier_duchy
			OR = {
				faith.religion = faith:theravada.religion
				faith.religion = faith:vaishnavism.religion
				faith.religion = faith:digambara.religion
				faith.religion = faith:bon.religion
			}
		}
		localization_key = councillor_court_chaplain_buddhism_religion_duchy_possessive
	}
	text = {
		trigger = {
			highest_held_title_tier < tier_duchy
			OR = {
				faith.religion = faith:theravada.religion
				faith.religion = faith:vaishnavism.religion
				faith.religion = faith:digambara.religion
				faith.religion = faith:bon.religion
			}
		}
		localization_key = councillor_court_chaplain_buddhism_religion_county_possessive
	}

	#The Modern Age#
	#Shia
	text = {
		trigger = { 
			highest_held_title_tier >= tier_empire
			faith = { has_doctrine = muhammad_succession_shia_doctrine }
		}
		localization_key = councillor_court_chaplain_ismaili_empire_possessive
	}
	text = {
		trigger = { 
			highest_held_title_tier >= tier_kingdom
			faith = { has_doctrine = muhammad_succession_shia_doctrine }
		}
		localization_key = councillor_court_chaplain_ismaili_kingdom_possessive
	}
	text = {
		trigger = { 
			highest_held_title_tier >= tier_duchy
			faith = { has_doctrine = muhammad_succession_shia_doctrine }
		}	
		localization_key = councillor_court_chaplain_ismaili_duchy
	}
	text = {
		trigger = { 
			highest_held_title_tier < tier_duchy
			faith = { has_doctrine = muhammad_succession_shia_doctrine }
		}
		localization_key = councillor_court_chaplain_ismaili_county_possessive
	}
	
	#Druze
	text = {
		trigger = { highest_held_title_tier >= tier_empire faith = faith:druze}
		localization_key = councillor_court_chaplain_druze_empire_possessive
	}
	text = {
		trigger = { highest_held_title_tier >= tier_kingdom faith = faith:druze}
		localization_key = councillor_court_chaplain_druze_kingdom_possessive
	}
	text = {
		trigger = { highest_held_title_tier >= tier_duchy faith = faith:druze}
		localization_key = councillor_court_chaplain_druze_duchy_possessive
	}
	text = {
		trigger = { highest_held_title_tier < tier_duchy faith = faith:druze}
		localization_key = councillor_court_chaplain_druze_county_possessive
	}
	#Druze
	#The Modern Age#
	
	#Islam
	text = {
		trigger = { highest_held_title_tier >= tier_empire faith.religion = faith:ashari.religion }
		localization_key = councillor_court_chaplain_islam_empire_possessive
	}
	text = {
		trigger = { highest_held_title_tier >= tier_kingdom faith.religion = faith:ashari.religion }
		localization_key = councillor_court_chaplain_islam_kingdom_possessive
	}
	text = {
		trigger = { highest_held_title_tier >= tier_duchy faith.religion = faith:ashari.religion }
		localization_key = councillor_court_chaplain_islam_duchy_possessive
	}
	text = {
		trigger = { highest_held_title_tier < tier_duchy faith.religion = faith:ashari.religion }
		localization_key = councillor_court_chaplain_islam_county_possessive
	}

	#Yazidi
	text = {
		trigger = { highest_held_title_tier >= tier_empire faith.religion = faith:yazidi.religion }
		localization_key = councillor_court_chaplain_yazidi_empire_possessive
	}
	text = {
		trigger = { highest_held_title_tier >= tier_kingdom faith.religion = faith:yazidi.religion }
		localization_key = councillor_court_chaplain_yazidi_kingdom_possessive
	}
	text = {
		trigger = { highest_held_title_tier >= tier_duchy faith.religion = faith:yazidi.religion }
		localization_key = councillor_court_chaplain_yazidi_duchy_possessive
	}
	text = {
		trigger = { highest_held_title_tier < tier_duchy faith.religion = faith:yazidi.religion }
		localization_key = councillor_court_chaplain_yazidi_county_possessive
	}

	#Orthodox
	text = {
		trigger = {
			highest_held_title_tier >= tier_empire
			NOT = { # Required formatting to include male/female check as well as vacancy
				cp:councillor_court_chaplain ?= {
					is_female = yes
				}
			}
			OR = {
				faith = faith:orthodox
				faith.religion = faith:manichean.religion
			}
		}
		localization_key = councillor_court_chaplain_orthodox_empire_possessive
	}
	text = {
		trigger = {
			highest_held_title_tier >= tier_empire
			NOT = { # Required formatting to include male/female check as well as vacancy
				cp:councillor_court_chaplain ?= {
					is_female = no
				}
			}
			OR = {
				faith = faith:orthodox
				faith.religion = faith:manichean.religion
			}
		}
		localization_key = councillor_court_chaplain_orthodox_empire_female_possessive
	}
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
			NOT = { # Required formatting to include male/female check as well as vacancy
				cp:councillor_court_chaplain ?= {
					is_female = yes
				}
			}
			OR = {
				faith = faith:orthodox
				faith.religion = faith:manichean.religion
			}
		}
		localization_key = councillor_court_chaplain_orthodox_kingdom_possessive
	}
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
			NOT = { # Required formatting to include male/female check as well as vacancy
				cp:councillor_court_chaplain ?= {
					is_female = no
				}
			}
			OR = {
				faith = faith:orthodox
				faith.religion = faith:manichean.religion
			}
		}
		localization_key = councillor_court_chaplain_orthodox_kingdom_female_possessive
	}
	text = {
		trigger = {
			highest_held_title_tier >= tier_duchy
			OR = {
				faith = faith:orthodox
				faith.religion = faith:manichean.religion
			}
		}
		localization_key = councillor_court_chaplain_orthodox_duchy_possessive
	}
	text = {
		trigger = {
			highest_held_title_tier < tier_duchy
			OR = {
				faith = faith:orthodox
				faith.religion = faith:manichean.religion
			}
		}
		localization_key = councillor_court_chaplain_orthodox_county_possessive
	}

	#Christian
	text = {
		trigger = { 
			highest_held_title_tier >= tier_empire 
			NOT = { # Required formatting to include male/female check as well as vacancy
				cp:councillor_court_chaplain ?= {
					is_female = yes
				}
			}
			faith.religion = faith:catholic.religion 
		}
		localization_key = councillor_court_chaplain_christian_empire_possessive
	}
	text = {
		trigger = { 
			highest_held_title_tier >= tier_empire 
			NOT = { # Required formatting to include male/female check as well as vacancy
				cp:councillor_court_chaplain ?= {
					is_female = no
				}
			}
			faith.religion = faith:catholic.religion 
		}
		localization_key = councillor_court_chaplain_christian_empire_female_possessive
	}
	text = {
		trigger = { highest_held_title_tier >= tier_kingdom faith.religion = faith:catholic.religion }
		localization_key = councillor_court_chaplain_christian_kingdom_possessive
	}
	text = {
		trigger = { highest_held_title_tier >= tier_duchy faith.religion = faith:catholic.religion }
		localization_key = councillor_court_chaplain_christian_duchy_possessive
	}
	text = {
		trigger = { highest_held_title_tier < tier_duchy faith.religion = faith:catholic.religion }
		localization_key = councillor_court_chaplain_christian_county_possessive
	}
	# Shinto
	text = {
		trigger = {
			religion = religion:shintoism_religion
		}
		localization_key = councillor_court_chaplain_shintoism_religion_possessive
	}

	#Paganism
	text = {
		trigger = {
			faith = { has_doctrine = pagan_hostility_doctrine }
			highest_held_title_tier >= tier_kingdom
			NOT = { # Required formatting to include male/female check as well as vacancy
				cp:councillor_court_chaplain ?= {
					is_female = yes
				}
			}
		}
		localization_key = councillor_court_chaplain_paganism_religion_kingdom_possessive
	}
	text = {
		trigger = {
			faith = { has_doctrine = pagan_hostility_doctrine }
			highest_held_title_tier >= tier_kingdom
			NOT = { # Required formatting to include male/female check as well as vacancy
				cp:councillor_court_chaplain ?= {
					is_female = no
				}
			}
		}
		localization_key = councillor_court_chaplain_paganism_religion_kingdom_female_possessive
	}
	text = {
		trigger = {
			faith = { has_doctrine = pagan_hostility_doctrine }
			highest_held_title_tier >= tier_duchy
		}
		localization_key = councillor_court_chaplain_paganism_religion_duchy_possessive
	}
	text = {
		trigger = {
			faith = { has_doctrine = pagan_hostility_doctrine }
			highest_held_title_tier < tier_duchy
		}
		localization_key = councillor_court_chaplain_paganism_religion_county_possessive
	}

	#Fallback
	text = {
		trigger = { 
			highest_held_title_tier >= tier_empire 
			NOT = { # Required formatting to include male/female check as well as vacancy
				cp:councillor_court_chaplain ?= {
					is_female = yes
				}
			}
		}
		localization_key = councillor_court_chaplain_theocrat_empire_possessive
	}
	text = {
		trigger = { 
			highest_held_title_tier >= tier_empire 
			NOT = { # Required formatting to include male/female check as well as vacancy
				cp:councillor_court_chaplain ?= {
					is_female = no
				}
			}
		}
		localization_key = councillor_court_chaplain_theocrat_empire_female_possessive
	}
	text = {
		trigger = { highest_held_title_tier >= tier_kingdom }
		localization_key = councillor_court_chaplain_theocrat_kingdom_possessive
	}
	text = {
		trigger = { highest_held_title_tier >= tier_duchy }
		localization_key = councillor_court_chaplain_theocrat_duchy_possessive
	}
	text = {
		trigger = { highest_held_title_tier < tier_duchy }
		localization_key = councillor_court_chaplain_theocrat_county_possessive
	}
}