councillor_chancellor = {
	skill = diplomacy
	
	name = {
		first_valid = {
			triggered_desc = {
				trigger = {
					highest_held_title_tier >= tier_hegemony
					government_has_flag = government_has_merit
					is_independent_ruler = yes
				}
				desc = councillor_chancellor_celestial_government_imperial
			}
			triggered_desc = {
				trigger = {
					OR = {
						highest_held_title_tier = tier_empire
						highest_held_title_tier = tier_kingdom
					}
					government_has_flag = government_has_merit
					is_independent_ruler = yes
				}
				desc = councillor_chancellor_non_celestial_government_imperial
			}
			triggered_desc = {
				trigger = {
					highest_held_title_tier < tier_hegemony
					government_has_flag = government_has_merit
					is_governor_or_admin_count = yes
				}
				desc = councillor_chancellor_celestial_government_non_imperial
			}
			triggered_desc = {
				trigger = { government_has_flag = government_is_japan_administrative }
				desc = councillor_chancellor_japan_administrative
			}
			triggered_desc = {
				trigger = { government_has_flag = government_is_japan_feudal }
				desc = councillor_chancellor_japan_feudal
			}
			triggered_desc = {
				trigger = {
					highest_held_title_tier < tier_kingdom
					government_has_flag = government_has_merit
					is_governor_or_admin_count = no
				}
				desc = councillor_chancellor_celestial_family_head
			}
			desc = councillor_chancellor
		}
	}

	valid_position = {
		NOR = { 
			government_has_flag = government_is_landless_adventurer 
			government_has_flag = government_is_nomadic
		}
	}

	tooltip = {
		first_valid = {
			triggered_desc = {
				trigger = {
					scope:councillor_liege = { tgp_has_access_to_ministry_trigger = yes }
				}
				desc = game_concept_minister_grand_chancellor_desc
			}
			desc = game_concept_chancellor_desc
		}
	}

	auto_fill = {
	}

	modifier = {
		name = councillor_chancellor_modifier
		fellow_vassal_opinion = 5
		monthly_diplomacy_lifestyle_xp_gain_mult = 0.05
		scale = council_scaled_by_liege_tier
	}

	modifier = {
		name = councillor_chancellor_modifier
		monthly_prestige = 1
		scale = council_scaled_monthly_income
	}

	modifier = {
		name = councillor_chancellor_modifier
		monthly_influence = 1
		enemy_political_scheme_success_chance_max_add = -5
		scale = council_scaled_admin_value
	}

	council_owner_modifier = {
		name = learn_on_the_job_modifier
		diplomacy = 1
		scale = chancellor_learn_on_the_job_scale
	}

	council_owner_modifier = {
		name = reliable_house_modifier
		diplomacy = 1
		scale = chancellor_reliable_house_scale
	}

	valid_character = {
		exists = root.liege_or_court_owner
		trigger_if = { # If the liege has a ministry, we check a separate minister trigger
			limit = {
				root.liege_or_court_owner = { tgp_has_access_to_ministry_trigger = yes }
			}
			tgp_can_be_a_minister_trigger = { COURT_OWNER = root.liege_or_court_owner }
		}
		trigger_else = {
			can_be_chancellor_trigger = { COURT_OWNER = root.liege_or_court_owner }
		}
		tgp_is_ceremonial_liege_trigger = no
	}

	on_get_position = {
		got_council_position_effect = yes
		got_minister_position_effect = { MINISTER_TITLE = e_minister_chancellor MINISTER_POSITION = councillor_chancellor }
	}

	on_fired_from_position = {
		fired_from_council_position_effect = yes
	}

	on_lose_position = {
		fired_minister_position_effect = yes
	}

	portrait_animation = chancellor

	barbershop_data = {
		position = { 918.0 172.0 }
		click_to_front = no
	}
}

councillor_steward = {
	skill = stewardship
	
	name = {
		first_valid = {
			triggered_desc = {
				trigger = {
					highest_held_title_tier >= tier_hegemony
					government_has_flag = government_has_merit
					is_independent_ruler = yes
				}
				desc = councillor_steward_celestial_government_imperial
			}
			triggered_desc = {
				trigger = {
					OR = {
						highest_held_title_tier = tier_empire
						highest_held_title_tier = tier_kingdom
					}
					government_has_flag = government_has_merit
					is_independent_ruler = yes
				}
				desc = councillor_steward_non_celestial_government_imperial
			}
			triggered_desc = {
				trigger = {
					highest_held_title_tier < tier_hegemony
					government_has_flag = government_has_merit
					is_governor_or_admin_count = yes
				}
				desc = councillor_steward_celestial_government_non_imperial
			}
			triggered_desc = {
				trigger = { government_has_flag = government_is_japan_administrative }
				desc = councillor_steward_japan_administrative
			}
			triggered_desc = {
				trigger = { government_has_flag = government_is_japan_feudal }
				desc = councillor_steward_japan_feudal
			}
			triggered_desc = {
				trigger = {
					highest_held_title_tier < tier_kingdom
					government_has_flag = government_has_merit
					is_governor_or_admin_count = no
				}
				desc = councillor_steward_celestial_family_head
			}
			desc = councillor_steward
		}
	}

	tooltip = {
		first_valid = {
			triggered_desc = {
				trigger = {
					scope:councillor_liege = { tgp_has_access_to_ministry_trigger = yes }
				}
				desc = game_concept_minister_of_revenue_desc
			}
			desc = game_concept_steward_desc
		}
	}
	
	auto_fill = {
	}
	
	valid_position = {
		NOR = { 
			government_has_flag = government_is_landless_adventurer 
			government_has_flag = government_is_nomadic
		}
	}

	modifier = {
		name = councillor_steward_modifier
		monthly_income = 1
		scale = council_scaled_monthly_income
	}

	modifier = {
		name = councillor_steward_modifier
		build_gold_cost = -0.025
		monthly_stewardship_lifestyle_xp_gain_mult = 0.05
		domain_tax_mult = 0.025
		scale = council_scaled_by_liege_tier
	}

	modifier = {
		name = councillor_steward_modifier
		monthly_influence = 1
		domicile_build_gold_cost = -0.05
		scale = council_scaled_admin_value
	}

	council_owner_modifier = {
		name = learn_on_the_job_modifier
		stewardship = 1
		scale = steward_learn_on_the_job_scale
	}

	council_owner_modifier = {
		name = reliable_house_modifier
		stewardship = 1
		scale = steward_reliable_house_scale
	}

	valid_character = {
		exists = root.liege_or_court_owner
		trigger_if = { # If the liege has a ministry, we check a separate minister trigger
			limit = {
				root.liege_or_court_owner = { tgp_has_access_to_ministry_trigger = yes }
			}
			tgp_can_be_a_minister_trigger = { COURT_OWNER = root.liege_or_court_owner }
		}
		trigger_else = {
			can_be_steward_trigger = { COURT_OWNER = root.liege_or_court_owner }
		}
		tgp_is_ceremonial_liege_trigger = no
	}

	on_get_position = {
		got_council_position_effect = yes
		got_minister_position_effect = { MINISTER_TITLE = e_minister_of_revenue MINISTER_POSITION = councillor_steward }
	}

	on_fired_from_position = {
		fired_from_council_position_effect = yes
	}

	on_lose_position = {
		fired_minister_position_effect = yes
	}

	portrait_animation = steward

	barbershop_data = {
		position = { 1268.0 172.0 }
		click_to_front = no
	}
}

councillor_marshal = {
	skill = martial
	
	name = {
		first_valid = {
			triggered_desc = {
				trigger = {
					highest_held_title_tier >= tier_hegemony
					government_has_flag = government_has_merit
					is_independent_ruler = yes
				}
				desc = minister_war
			}
			triggered_desc = {
				trigger = {
					OR = {
						highest_held_title_tier = tier_empire
						highest_held_title_tier = tier_kingdom
					}
					government_has_flag = government_has_merit
					is_independent_ruler = yes
				}
				desc = councillor_marshal_non_celestial_government_imperial
			}
			triggered_desc = {
				trigger = {
					highest_held_title_tier < tier_hegemony
					government_has_flag = government_has_merit
					is_governor = yes
				}
				desc = councillor_marshal_celestial_government_non_imperial
			}
			triggered_desc = {
				trigger = { government_has_flag = government_is_japan_administrative }
				desc = councillor_marshal_japan_administrative
			}
			triggered_desc = {
				trigger = { government_has_flag = government_is_japan_feudal }
				desc = councillor_marshal_japan_feudal
			}
			triggered_desc = {
				trigger = {
					highest_held_title_tier < tier_kingdom
					government_has_flag = government_has_merit
					is_governor_or_admin_count = no
				}
				desc = councillor_marshal_celestial_family_head
			}
			desc = councillor_marshal
		}
	}

	tooltip = {
		first_valid = {
			triggered_desc = {
				trigger = {
					scope:councillor_liege = { tgp_has_access_to_ministry_trigger = yes }
				}
				desc = game_concept_minister_of_war_desc
			}
			desc = game_concept_marshal_desc
		}
	}
	
	auto_fill = {
	}

	valid_position = {
		NOR = { 
			government_has_flag = government_is_landless_adventurer 
			government_has_flag = government_is_nomadic
		}
	}

	modifier = {
		name = councillor_marshal_modifier
		prowess = 1
		army_maintenance_mult = -0.05
		monthly_martial_lifestyle_xp_gain_mult = 0.05
		scale = council_scaled_by_liege_tier
	}

	modifier = {
		name = councillor_marshal_modifier
		levy_size = 0.05
		scale = council_scaled_by_liege_tier_not_admin
	}

	modifier = {
		name = councillor_marshal_modifier
		monthly_influence = 1
		maa_toughness_mult = 0.04
		scale = council_scaled_admin_value
	}

	modifier = { # Minister modifiers
		name = minister_war_modifier
		monthly_merit = 1
		scale = council_scaled_celestial_ministry_value
	}

	council_owner_modifier = {
		name = learn_on_the_job_modifier
		martial = 1
		scale = marshal_learn_on_the_job_scale
	}

	council_owner_modifier = {
		name = reliable_house_modifier
		martial = 1
		scale = marshal_reliable_house_scale
	}

	valid_character = {
		exists = root.liege_or_court_owner
		trigger_if = { # If the liege has a ministry, we check a separate minister trigger
			limit = {
				root.liege_or_court_owner = { tgp_has_access_to_ministry_trigger = yes }
			}
			tgp_can_be_a_minister_trigger = { COURT_OWNER = root.liege_or_court_owner }
		}
		trigger_else = {
			can_be_marshal_trigger = { COURT_OWNER = root.liege_or_court_owner }
		}
		tgp_is_ceremonial_liege_trigger = no
	}

	on_get_position = {
		got_council_position_effect = yes
		got_minister_position_effect = { MINISTER_TITLE = e_minister_of_war MINISTER_POSITION = councillor_marshal }
	}

	on_fired_from_position = {
		fired_from_council_position_effect = yes
	}

	on_lose_position = {
		fired_minister_position_effect = yes
	}

	portrait_animation = marshal

	barbershop_data = {
		position = { 558.0 172.0 }
		click_to_front = no
	}
}

councillor_spymaster = {
	skill = intrigue
	
	name = {
		first_valid = {
			triggered_desc = {
				trigger = {
					highest_held_title_tier >= tier_hegemony
					government_has_flag = government_has_merit
					is_independent_ruler = yes
				}
				desc = councillor_spymaster_celestial_government_imperial
			}
			triggered_desc = {
				trigger = {
					OR = {
						highest_held_title_tier = tier_empire
						highest_held_title_tier = tier_kingdom
					}
					government_has_flag = government_has_merit
					is_independent_ruler = yes
				}
				desc = councillor_spymaster_non_celestial_government_imperial
			}
			triggered_desc = {
				trigger = {
					highest_held_title_tier < tier_hegemony
					government_has_flag = government_has_merit
					is_governor_or_admin_count = yes
				}
				desc = councillor_spymaster_celestial_government_non_imperial
			}
			triggered_desc = {
				trigger = { government_has_flag = government_is_japan_administrative }
				desc = councillor_spymaster_japan_administrative
			}
			triggered_desc = {
				trigger = { government_has_flag = government_is_japan_feudal }
				desc = councillor_spymaster_japan_feudal
			}
			triggered_desc = {
				trigger = {
					highest_held_title_tier < tier_kingdom
					government_has_flag = government_has_merit
					is_governor_or_admin_count = no
				}
				desc = councillor_spymaster_celestial_family_head
			}
			desc = councillor_spymaster
		}
	}

	tooltip = {
		first_valid = {
			triggered_desc = {
				trigger = {
					scope:councillor_liege = { tgp_has_access_to_ministry_trigger = yes }
				}
				desc = game_concept_minister_censor_desc
			}
			desc = game_concept_spymaster_desc
		}
	}
	
	auto_fill = {
	}

	valid_position = {
		NOT = { government_has_flag = government_is_landless_adventurer }
	}

	# Scaled modifiers.
	modifier = {
		name = councillor_spymaster_modifier
		scale = council_scaled_by_liege_tier
		monthly_intrigue_lifestyle_xp_gain_mult = 0.05
		dread_baseline_add = 10
	}

	# Unscaled modifiers.
	modifier = {
		name = councillor_spymaster_modifier
		hostile_scheme_phase_duration_add = -10
		owned_hostile_scheme_success_chance_max_add = 10
	}

	modifier = {
		name = councillor_spymaster_modifier
		monthly_influence = 1
		owned_scheme_secrecy_add = 5
		scale = council_scaled_admin_value
	}

	council_owner_modifier = {
		name = learn_on_the_job_modifier
		intrigue = 1
		scale = spymaster_learn_on_the_job_scale
	}

	council_owner_modifier = {
		name = reliable_house_modifier
		intrigue = 1
		scale = spymaster_reliable_house_scale
	}

	valid_character = {
		exists = root.liege_or_court_owner
		trigger_if = { # If the liege has a ministry, we check a separate minister trigger
			limit = {
				root.liege_or_court_owner = { tgp_has_access_to_ministry_trigger = yes }
			}
			tgp_can_be_a_minister_trigger = { COURT_OWNER = root.liege_or_court_owner }
		}
		trigger_else = {
			can_be_spymaster_trigger = { COURT_OWNER = root.liege_or_court_owner }
		}
		tgp_is_ceremonial_liege_trigger = no
	}

	on_get_position = {
		got_council_position_effect = yes
		got_minister_position_effect = { MINISTER_TITLE = e_minister_censor MINISTER_POSITION = councillor_spymaster }
	}

	on_fired_from_position = {
		fired_from_council_position_effect = yes
	}

	on_lose_position = {
		fired_minister_position_effect = yes
	}
	
	use_for_scheme_phase_duration = yes
	use_for_scheme_resistance = yes

	portrait_animation = spymaster

	barbershop_data = {
		position = { 1433.0 261.0 }
		click_to_front = yes
	}
}

councillor_court_chaplain = {
	skill = learning

	auto_fill = {
		trigger_if = {
			limit = {
				is_ai = yes
				tgp_has_access_to_ministry_trigger = no
			}
			always = yes
		}
		trigger_else_if = {
			limit = {
				tgp_has_access_to_ministry_trigger = yes
			}
			always = no
		}
		trigger_else = {
			faith = {
				NOT = { has_doctrine_parameter = clerical_appointment_ruler }
			}
		}
	}

	fill_from_pool = yes
	is_clergy_position = yes

	can_fire = {
		trigger_if = {
			limit = {
				tgp_has_access_to_ministry_trigger = no
			}
			custom_description = {
				text = "court_chaplain_cant_fire_doctrines"
				faith = {
					NOT = { has_doctrine_parameter = clerical_appointment_fixed }
				}
			}
		}
	}
	
	can_reassign = {
		trigger_if = {
			limit = {
				NAND = {
					government_has_flag = government_has_merit
					highest_held_title_tier >= tier_hegemony
				}
			}
			custom_description = {
				text = "court_chaplain_cant_reassign_doctrines"
				OR = {
					faith = {
						NOT = { has_doctrine_parameter = clerical_appointment_fixed }
					}
					NOT = { exists = cp:councillor_court_chaplain }
				}
			}
		}
	}
	
	can_change_once = {
		faith = {
			has_doctrine_parameter = clerical_appointment_fixed
		}
		NAND = {
			government_has_flag = government_has_merit
			highest_held_title_tier >= tier_hegemony
		}
		exists = cp:councillor_court_chaplain
	}
	
	inherit = no
	
	name = {
		first_valid = {
			triggered_desc = {
				trigger = {
					highest_held_title_tier >= tier_hegemony
					government_has_flag = government_has_merit 
				}
				desc = councillor_court_chaplain_celestial_government_imperial
			}
			triggered_desc = {
				trigger = {
					OR = {
						culture = { has_cultural_pillar = heritage_chinese }
						culture = { has_cultural_pillar = heritage_tungusic }
					}
					religion = religion:buddhism_religion
				}
				desc = councillor_court_chaplain_buddhist_chinese
			}
			triggered_desc = {
				trigger = {
					OR = {
						culture = { has_cultural_pillar = heritage_chinese }
						culture = { has_cultural_pillar = heritage_tungusic }
					}
					religion = religion:taoism_religion
				}
				desc = councillor_court_chaplain_daoist_chinese
			}
			triggered_desc = {
				trigger = {
					OR = {
						culture = { has_cultural_pillar = heritage_chinese }
						culture = { has_cultural_pillar = heritage_tungusic }
					}
					religion = religion:confucianism_religion
				}
				desc = councillor_court_chaplain_confucian_chinese
			}
			triggered_desc = {
				trigger = {
					OR = {
						culture = { has_cultural_pillar = heritage_tibetan }
					}
					religion = religion:buddhism_religion
				}
				desc = councillor_court_chaplain_buddhist_tibetan
			}
			triggered_desc = {
				trigger = {
					government_has_flag = government_is_mandala
				}
				desc = councillor_court_chaplain_mandala_government
			}
			triggered_desc = {
				trigger = {
					faith = {
						OR = {
							has_doctrine = doctrine_theocracy_temporal
							religion = { is_in_family = rf_pagan }
						}
					}
				}
				desc = actual_bishop_title
			}
			triggered_desc = {
				trigger = {
					faith = {
						NOR = {
							has_doctrine = doctrine_theocracy_temporal
							religion = { is_in_family = rf_pagan }
						}
					}
				}
				desc = {
					first_valid = {
						#Shia
#						triggered_desc = {
#							trigger = { highest_held_title_tier >= tier_empire faith = faith:ismaili }
#							desc = councillor_court_chaplain_ismaili_empire
#						}
#						triggered_desc = {
#							trigger = { highest_held_title_tier >= tier_kingdom faith = faith:ismaili }
#							desc = councillor_court_chaplain_ismaili_kingdom
#						}
						#Islam
						triggered_desc = {
							trigger = { highest_held_title_tier >= tier_empire faith.religion = faith:aqlani.religion }
							desc = councillor_court_chaplain_islam_empire
						}
						triggered_desc = {
							trigger = { highest_held_title_tier >= tier_kingdom faith.religion = faith:aqlani.religion }
							desc = councillor_court_chaplain_islam_kingdom
						}
						triggered_desc = {
							trigger = { highest_held_title_tier >= tier_duchy faith.religion = faith:aqlani.religion }
							desc = councillor_court_chaplain_islam_duchy
						}
						triggered_desc = {
							trigger = { highest_held_title_tier < tier_duchy faith.religion = faith:aqlani.religion }
							desc = councillor_court_chaplain_islam_county
						}
						#Yazidi
						triggered_desc = {
							trigger = { highest_held_title_tier >= tier_empire faith.religion = faith:yazidi.religion }
							desc = councillor_court_chaplain_yazidi_empire
						}
						triggered_desc = {
							trigger = { highest_held_title_tier >= tier_kingdom faith.religion = faith:yazidi.religion }
							desc = councillor_court_chaplain_yazidi_kingdom
						}
						triggered_desc = {
							trigger = { highest_held_title_tier >= tier_duchy faith.religion = faith:yazidi.religion }
							desc = councillor_court_chaplain_yazidi_duchy
						}
						triggered_desc = {
							trigger = { highest_held_title_tier < tier_duchy faith.religion = faith:yazidi.religion }
							desc = councillor_court_chaplain_yazidi_county
						}
						desc = councillor_court_chaplain
					}
				}
			}
			desc = councillor_court_chaplain
		}
	}

	tooltip = {
		first_valid = {
			triggered_desc = {
				trigger = {
					scope:councillor_liege = { tgp_has_access_to_ministry_trigger = yes }
				}
				desc = game_concept_minister_of_rites_desc
			}
			triggered_desc = {
				trigger = {
					faith = { has_doctrine = doctrine_theocracy_temporal }
				}
				desc = game_concept_realm_priest_desc
			}
			desc = game_concept_court_chaplain_desc
		}
	}

	modifier = {
		name = councillor_court_chaplain_modifier
		county_opinion_add = 5
		monthly_learning_lifestyle_xp_gain_mult = 0.05
		scale = council_scaled_by_liege_tier
	}

	modifier = {
		name = councillor_court_chaplain_modifier
		monthly_piety = 1
		scale = council_scaled_monthly_income
	}

	council_owner_modifier = {
		name = learn_on_the_job_modifier
		learning = 1
		scale = court_chaplain_learn_on_the_job_scale
	}

	council_owner_modifier = {
		name = reliable_house_modifier
		learning = 1
		scale = court_chaplain_reliable_house_scale
	}

	pool_character_config = pool_court_chaplain
	
	valid_character = {
		exists = root.liege_or_court_owner
		trigger_if = { # If the liege has a ministry, we check a separate minister trigger
			limit = {
				root.liege_or_court_owner = { tgp_has_access_to_ministry_trigger = yes }
			}
			tgp_can_be_a_minister_trigger = { COURT_OWNER = root.liege_or_court_owner }
		}
		trigger_else = {
			can_be_court_chaplain_trigger = { COURT_OWNER = root.liege_or_court_owner }
		}
		tgp_is_ceremonial_liege_trigger = no
	}
	
	valid_position = {
		NOR = { 
			government_has_flag = government_is_landless_adventurer 
			government_has_flag = government_is_nomadic
		}
	}

	on_get_position = {
		got_council_position_effect = yes
		got_minister_position_effect = { MINISTER_TITLE = e_minister_of_rites MINISTER_POSITION = councillor_court_chaplain }
		if = {
			limit = {
				years_from_game_start >= 1
			}
			if = {
				limit = {
					is_ruler = no
					liege = {
						faith = { has_doctrine = doctrine_clerical_succession_spiritual_fixed_appointment }
						any_vassal = {
							is_physically_able_adult = yes
							is_councillor = no
							government_has_flag = government_is_theocracy
							can_be_court_chaplain_trigger = { COURT_OWNER = liege }
							faith = liege.faith
						}
					}
				}
				liege = {
					random_vassal = {
						limit = {
							is_physically_able_adult = yes
							is_councillor = no
							government_has_flag = government_is_theocracy
							can_be_court_chaplain_trigger = { COURT_OWNER = liege }
							faith = liege.faith
						}
						weight = {
							base = 1
							modifier = {
								add = 1000
								faith.religious_head ?= this
							}
							modifier = {
								add = learning
							}
							modifier = {
								add = primary_title.tier
							}
						}
						liege = {
							assign_councillor_type = {
								type = councillor_court_chaplain
								remove_existing_councillor = yes
								target = prev
							}
						}
					}
				}
				move_to_pool = yes
			}
			if = {
				limit = {
					exists = this
					exists = liege.culture
					NOT = {
						knows_language_of_culture = liege.culture
					}
				}
				random_list = {
					10 = {
						modifier = {
							add = learning
						}
						learn_language_of_culture = liege.culture
					}
					5 = {
						trigger = {
							can_start_scheme = { 
								type = learn_language 
								target_character = liege 
							}
						}
						start_scheme = {
							type = learn_language
							target_character = liege
						}
					}
					5 = {
						trigger = {
							OR = {
								has_trait = arrogant
								has_trait = arbitrary
								has_trait = lazy
								has_trait = fickle
							}
						}
					}
				}
			}
		}
	}

	on_fired_from_position = {
		fired_from_council_position_effect = yes
	}

	on_lose_position = {
		fired_minister_position_effect = yes
	}

	portrait_animation = chaplain

	barbershop_data = {
		position = { 1618.0 172.0 }
		click_to_front = no
	}
}

councillor_spouse = {
	auto_fill = yes
	can_fire = { councillor_spouse_can_fire = yes }
	can_reassign = { councillor_spouse_can_reassign = yes }
	
	name = {
		first_valid = {
			triggered_desc = {
				trigger = {
					NOT = { exists = scope:councillor }
				}
				desc = councillor_spouse
			}
			triggered_desc = {
				trigger = { scope:councillor = { is_male = yes } }
				desc = {
					first_valid = {
						#Mongol All
						triggered_desc = {
							trigger = {
								highest_held_title_tier = tier_barony
								OR = {
									government_has_flag = government_is_feudal
									government_has_flag = government_is_tribal
									government_has_flag = government_is_clan
								}
								culture = { has_name_list = name_list_mongol }
							}
							desc = baron_feudal_male_mongol
						}
						#Saxon Feudal/Clan
						triggered_desc = {
							trigger = {
								highest_held_title_tier = tier_duchy
								OR = {
									government_has_flag = government_is_feudal
									government_has_flag = government_is_clan
								}
								culture = { has_name_list = name_list_sogdian }
							}
							desc = duke_feudal_male_sogdian
						}
						#Saxon Feudal/Tribal
						triggered_desc = {
							trigger = {
								highest_held_title_tier = tier_barony
								OR = {
									government_has_flag = government_is_feudal
									government_has_flag = government_is_tribal
								}
								culture = { has_name_list = name_list_anglo_saxon }
							}
							desc = baron_feudal_male_anglo_saxon
						}
						#English Feudal/Tribal
						triggered_desc = {
							trigger = {
								highest_held_title_tier = tier_county
								OR = {
									government_has_flag = government_is_feudal
									government_has_flag = government_is_tribal
								}
								OR = {
									culture = { has_name_list = name_list_english }
									culture = { has_name_list = name_list_anglo_saxon }
									culture = { has_name_list = name_list_irish }
									culture = { has_name_list = name_list_pictish }
									culture = { has_name_list = name_list_scottish }
									culture = { has_name_list = name_list_gaelic }
								}
							}
							desc = count_feudal_male_english
						}

						#Tibetan Feudal/Clan
						triggered_desc = {
							trigger = {
								highest_held_title_tier = tier_empire
								OR = {
									government_has_flag = government_is_feudal
									government_has_flag = government_is_clan
								}
								culture = { has_cultural_pillar = heritage_tibetan }
							}
							desc = emperor_feudal_male_tibetan_group
						}
						triggered_desc = {
							trigger = {
								highest_held_title_tier = tier_kingdom
								OR = {
									government_has_flag = government_is_feudal
									government_has_flag = government_is_clan
								}
								culture = { has_cultural_pillar = heritage_tibetan }
							}
							desc = king_feudal_male_tibetan_group
						}
						triggered_desc = {
							trigger = {
								highest_held_title_tier = tier_duchy
								OR = {
									government_has_flag = government_is_feudal
									government_has_flag = government_is_clan
								}
								culture = { has_cultural_pillar = heritage_tibetan }
							}
							desc = duke_feudal_male_tibetan_group
						}
						triggered_desc = {
							trigger = {
								highest_held_title_tier = tier_county
								OR = {
									government_has_flag = government_is_feudal
									government_has_flag = government_is_clan
								}
								culture = { has_cultural_pillar = heritage_tibetan }
							}
							desc = count_feudal_male_tibetan_group
						}
						#West-African Feudal/Clan/Tribal
						triggered_desc = {
							trigger = {
								highest_held_title_tier = tier_kingdom
								OR = {
									government_has_flag = government_is_feudal
									government_has_flag = government_is_clan
									government_has_flag = government_is_tribal
								}
								culture = {
									OR = {
										has_cultural_pillar = heritage_west_african
										has_cultural_pillar = heritage_sahelian
										has_cultural_pillar = heritage_senegambian
										has_cultural_pillar = heritage_akan
									}
								}
							}
							desc = king_feudal_male_west_african_group
						}
						triggered_desc = {
							trigger = {
								highest_held_title_tier = tier_duchy
								OR = {
									government_has_flag = government_is_feudal
									government_has_flag = government_is_clan
									government_has_flag = government_is_tribal
								}
								culture = {
									OR = {
										has_cultural_pillar = heritage_west_african
										has_cultural_pillar = heritage_sahelian
										has_cultural_pillar = heritage_senegambian
										has_cultural_pillar = heritage_akan
									}
								}
							}
							desc = duke_feudal_male_west_african_group
						}
						triggered_desc = {
							trigger = {
								highest_held_title_tier = tier_county
								OR = {
									government_has_flag = government_is_feudal
									government_has_flag = government_is_clan
									government_has_flag = government_is_tribal
								}
								culture = {
									OR = {
										has_cultural_pillar = heritage_west_african
										has_cultural_pillar = heritage_sahelian
										has_cultural_pillar = heritage_senegambian
										has_cultural_pillar = heritage_akan
									}
								}
							}
							desc = count_feudal_male_west_african_group
						}
						#Dravidian/Indo-Aryan Feudal/Clan/Tribal
						triggered_desc = {
							trigger = {
								highest_held_title_tier = tier_empire
								OR = {
									government_has_flag = government_is_feudal
									government_has_flag = government_is_clan
									government_has_flag = government_is_tribal
								}
								culture = {
									OR = {
										has_cultural_pillar = heritage_dravidian
										has_cultural_pillar = heritage_indo_aryan
									}
								}
							}
							desc = emperor_feudal_male_dravidian_group
						}
						triggered_desc = {
							trigger = {
								highest_held_title_tier = tier_kingdom
								OR = {
									government_has_flag = government_is_feudal
									government_has_flag = government_is_clan
									government_has_flag = government_is_tribal
								}
								culture = {
									OR = {
										has_cultural_pillar = heritage_dravidian
										has_cultural_pillar = heritage_indo_aryan
									}
								}
							}
							desc = king_feudal_male_dravidian_group
						}
						triggered_desc = {
							trigger = {
								highest_held_title_tier = tier_duchy
								OR = {
									government_has_flag = government_is_feudal
									government_has_flag = government_is_clan
									government_has_flag = government_is_tribal
								}
								culture = {
									OR = {
										has_cultural_pillar = heritage_dravidian
										has_cultural_pillar = heritage_indo_aryan
									}
								}
							}
							desc = duke_feudal_male_dravidian_group
						}
						triggered_desc = {
							trigger = {
								highest_held_title_tier = tier_county
								OR = {
									government_has_flag = government_is_feudal
									government_has_flag = government_is_clan
									government_has_flag = government_is_tribal
								}
								culture = {
									OR = {
										has_cultural_pillar = heritage_dravidian
										has_cultural_pillar = heritage_indo_aryan
									}
								}
							}
							desc = count_feudal_male_dravidian_group
						}
						triggered_desc = {
							trigger = {
								highest_held_title_tier = tier_barony
								OR = {
									government_has_flag = government_is_feudal
									government_has_flag = government_is_clan
									government_has_flag = government_is_tribal
								}
								culture = {
									OR = {
										has_cultural_pillar = heritage_dravidian
										has_cultural_pillar = heritage_indo_aryan
									}
								}
							}
							desc = baron_feudal_male_dravidian_group
						}

						#Mongolic and Turkic All
						triggered_desc = {
							trigger = {
								highest_held_title_tier = tier_empire
								OR = {
									government_has_flag = government_is_feudal
									government_has_flag = government_is_clan
									government_has_flag = government_is_tribal
								}
								culture = {
									OR = {
										has_cultural_pillar = heritage_mongolic
										has_cultural_pillar = heritage_turkic
									}
								}
							}
							desc = emperor_feudal_male_altaic_group
						}
						triggered_desc = {
							trigger = {
								highest_held_title_tier = tier_kingdom
								OR = {
									government_has_flag = government_is_feudal
									government_has_flag = government_is_clan
									government_has_flag = government_is_tribal
								}
								culture = {
									OR = {
										has_cultural_pillar = heritage_mongolic
										has_cultural_pillar = heritage_turkic
									}
								}
							}
							desc = king_feudal_male_altaic_group
						}
						#Iranian Feudal/Clan
						triggered_desc = {
							trigger = {
								highest_held_title_tier = tier_empire
								OR = {
									government_has_flag = government_is_feudal
									government_has_flag = government_is_clan
								}
								culture = { has_cultural_pillar = heritage_iranian }
							}
							desc = emperor_feudal_male_iranian_group
						}
						triggered_desc = {
							trigger = {
								highest_held_title_tier = tier_kingdom
								OR = {
									government_has_flag = government_is_feudal
									government_has_flag = government_is_clan
								}
								culture = { has_cultural_pillar = heritage_iranian }
							}
							desc = king_feudal_male_iranian_group
						}
						triggered_desc = {
							trigger = {
								highest_held_title_tier = tier_duchy
								OR = {
									government_has_flag = government_is_feudal
									government_has_flag = government_is_clan
								}
								culture = { has_cultural_pillar = heritage_iranian }
							}
							desc = duke_feudal_male_iranian_group
						}
						triggered_desc = {
							trigger = {
								highest_held_title_tier = tier_county
								OR = {
									government_has_flag = government_is_feudal
									government_has_flag = government_is_clan
								}
								culture = { has_cultural_pillar = heritage_iranian }
							}
							desc = count_feudal_male_iranian_group
						}
						triggered_desc = {
							trigger = {
								highest_held_title_tier = tier_barony
								OR = {
									government_has_flag = government_is_feudal
									government_has_flag = government_is_clan
								}
								culture = { has_cultural_pillar = heritage_iranian }
							}
							desc = baron_feudal_male_iranian_group
						}

						#Turkish Feudal/Clan
						triggered_desc = {
							trigger = {
								highest_held_title_tier = tier_empire
								OR = {
									government_has_flag = government_is_feudal
									government_has_flag = government_is_clan
								}
								culture = { has_name_list = name_list_turkish }
							}
							desc = emperor_feudal_male_turkish
						}
						triggered_desc = {
							trigger = {
								highest_held_title_tier = tier_kingdom
								OR = {
									government_has_flag = government_is_feudal
									government_has_flag = government_is_clan
								}
								culture = { has_name_list = name_list_turkish }
							}
							desc = king_feudal_male_turkish
						}
						triggered_desc = {
							trigger = {
								highest_held_title_tier = tier_duchy
								OR = {
									government_has_flag = government_is_feudal
									government_has_flag = government_is_clan
								}
								culture = { has_name_list = name_list_turkish }
							}
							desc = duke_feudal_male_turkish
						}
						triggered_desc = {
							trigger = {
								highest_held_title_tier = tier_county
								OR = {
									government_has_flag = government_is_feudal
									government_has_flag = government_is_clan
								}
								culture = { has_name_list = name_list_turkish }
							}
							desc = count_feudal_male_turkish
						}
						triggered_desc = {
							trigger = {
								highest_held_title_tier = tier_barony
								OR = {
									government_has_flag = government_is_feudal
									government_has_flag = government_is_clan
								}
								culture = { has_name_list = name_list_turkish }
							}
							desc = baron_feudal_male_turkish
						}
						#Arabic Republic
						triggered_desc = {
							trigger = {
								highest_held_title_tier = tier_kingdom
								government_has_flag = government_is_republic
								culture = { has_cultural_pillar = heritage_arabic }
							}
							desc = king_republic_male_arabic_group
						}
						triggered_desc = {
							trigger = {
								highest_held_title_tier = tier_duchy
								government_has_flag = government_is_republic
								culture = { has_cultural_pillar = heritage_arabic }
							}
							desc = duke_republic_male_arabic_group
						}
						triggered_desc = {
							trigger = {
								highest_held_title_tier = tier_county
								government_has_flag = government_is_republic
								culture = { has_cultural_pillar = heritage_arabic }
							}
							desc = count_republic_male_arabic_group
						}
						#Arabic Feudal/Clan/Tribal
						triggered_desc = {
							trigger = {
								highest_held_title_tier = tier_empire
								OR = {
									government_has_flag = government_is_feudal
									government_has_flag = government_is_tribal
									government_has_flag = government_is_clan
								}
								culture = { has_cultural_pillar = heritage_arabic }
							}
							desc = emperor_feudal_male_arabic_group
						}
						triggered_desc = {
							trigger = {
								highest_held_title_tier = tier_kingdom
								OR = {
									government_has_flag = government_is_feudal
									government_has_flag = government_is_tribal
									government_has_flag = government_is_clan
								}
								culture = { has_cultural_pillar = heritage_arabic }
							}
							desc = king_feudal_male_arabic_group
						}
						triggered_desc = {
							trigger = {
								highest_held_title_tier = tier_duchy
								OR = {
									government_has_flag = government_is_feudal
									government_has_flag = government_is_tribal
									government_has_flag = government_is_clan
								}
								culture = { has_cultural_pillar = heritage_arabic }
							}
							desc = duke_feudal_male_arabic_group
						}
						triggered_desc = {
							trigger = {
								highest_held_title_tier = tier_county
								OR = {
									government_has_flag = government_is_feudal
									government_has_flag = government_is_tribal
									government_has_flag = government_is_clan
								}
								culture = { has_cultural_pillar = heritage_arabic }
							}
							desc = count_feudal_male_arabic_group
						}
						triggered_desc = {
							trigger = {
								highest_held_title_tier = tier_barony
								OR = {
									government_has_flag = government_is_feudal
									government_has_flag = government_is_tribal
									government_has_flag = government_is_clan
								}
								culture = { has_cultural_pillar = heritage_arabic }
							}
							desc = baron_feudal_male_arabic_group
						}

						#Russian Feudal
						triggered_desc = {
							trigger = {
								highest_held_title_tier = tier_empire
								government_has_flag = government_is_feudal
								culture = { has_name_list = name_list_russian }
							}
							desc = emperor_feudal_male_russian
						}
						triggered_desc = {
							trigger = {
								highest_held_title_tier = tier_duchy
								government_has_flag = government_is_feudal
								culture = { has_name_list = name_list_russian }
							}
							desc = duke_feudal_male_russian
						}
						#Norse Feudal/Tribal
						triggered_desc = {
							trigger = {
								highest_held_title_tier = tier_county
								OR = {
									government_has_flag = government_is_feudal
									government_has_flag = government_is_tribal
								}
								culture = { has_name_list = name_list_norse }
							}
							desc = count_feudal_male_norse
						}
						triggered_desc = {
							trigger = {
								highest_held_title_tier = tier_barony
								OR = {
									government_has_flag = government_is_feudal
									government_has_flag = government_is_tribal
								}
								culture = { has_name_list = name_list_norse }
							}
							desc = baron_feudal_male_norse
						}
						#German Feudal/Tribal
						triggered_desc = {
							trigger = {
								highest_held_title_tier = tier_empire
								OR = {
									government_has_flag = government_is_feudal
									government_has_flag = government_is_tribal
								}
								culture = { has_cultural_pillar = heritage_central_germanic }
							}
							desc = emperor_feudal_male_german
						}
						#Byzantine Republic
						triggered_desc = {
							trigger = {
								highest_held_title_tier = tier_kingdom
								government_has_flag = government_is_republic
								culture = { has_cultural_pillar = heritage_byzantine }
							}
							desc = king_republic_male_byzantine_group
						}
						triggered_desc = {
							trigger = {
								highest_held_title_tier = tier_duchy
								government_has_flag = government_is_republic
								culture = { has_cultural_pillar = heritage_byzantine }
							}
							desc = duke_republic_male_byzantine_group
						}
						#Greek Feudal
						triggered_desc = {
							trigger = {
								highest_held_title_tier = tier_empire
								government_has_flag = government_is_feudal
								culture = { has_name_list = name_list_greek }
							}
							desc = emperor_feudal_male_greek
						}
						triggered_desc = {
							trigger = {
								highest_held_title_tier = tier_kingdom
								government_has_flag = government_is_feudal
								culture = { has_name_list = name_list_greek }
							}
							desc = king_feudal_male_greek
						}
						triggered_desc = {
							trigger = {
								highest_held_title_tier = tier_duchy
								government_has_flag = government_is_feudal
								culture = { has_name_list = name_list_greek }
							}
							desc = duke_feudal_male_greek
						}
						#Roman Republic
						triggered_desc = {
							trigger = {
								highest_held_title_tier = tier_empire
								government_has_flag = government_is_republic
								culture = { has_name_list = name_list_roman }
							}
							desc = emperor_republic_male_roman
						}
						triggered_desc = {
							trigger = {
								highest_held_title_tier = tier_kingdom
								government_has_flag = government_is_republic
								culture = { has_name_list = name_list_roman }
							}
							desc = king_republic_male_roman
						}
						triggered_desc = {
							trigger = {
								highest_held_title_tier = tier_duchy
								government_has_flag = government_is_republic
								culture = { has_name_list = name_list_roman }
							}
							desc = duke_republic_male_roman
						}
						triggered_desc = {
							trigger = {
								highest_held_title_tier = tier_county
								government_has_flag = government_is_republic
								culture = { has_name_list = name_list_roman }
							}
							desc = count_republic_male_roman
						}
						triggered_desc = {
							trigger = {
								highest_held_title_tier = tier_barony
								government_has_flag = government_is_republic
								culture = { has_name_list = name_list_roman }
							}
							desc = baron_republic_male_roman
						}
						#Roman Feudal
						triggered_desc = {
							trigger = {
								highest_held_title_tier = tier_empire
								government_has_flag = government_is_feudal
								culture = { has_name_list = name_list_roman }
							}
							desc = emperor_feudal_male_roman
						}
						triggered_desc = {
							trigger = {
								highest_held_title_tier = tier_kingdom
								government_has_flag = government_is_feudal
								culture = { has_name_list = name_list_roman }
							}
							desc = king_feudal_male_roman
						}
						triggered_desc = {
							trigger = {
								highest_held_title_tier = tier_duchy
								government_has_flag = government_is_feudal
								culture = { has_name_list = name_list_roman }
							}
							desc = duke_feudal_male_roman
						}
						triggered_desc = {
							trigger = {
								highest_held_title_tier = tier_county
								government_has_flag = government_is_feudal
								culture = { has_name_list = name_list_roman }
							}
							desc = count_feudal_male_roman
						}
						triggered_desc = {
							trigger = {
								highest_held_title_tier = tier_barony
								government_has_flag = government_is_feudal
								culture = { has_name_list = name_list_roman }
							}
							desc = baron_feudal_male_roman
						}
						#Latin Republic
						triggered_desc = {
							trigger = {
								highest_held_title_tier = tier_kingdom
								government_has_flag = government_is_republic
								culture = { has_cultural_pillar = heritage_latin }
							}
							desc = king_republic_male_latin_group
						}
						triggered_desc = {
							trigger = {
								highest_held_title_tier = tier_duchy
								government_has_flag = government_is_republic
								culture = { has_cultural_pillar = heritage_latin }
							}
							desc = duke_republic_male_latin_group
						}
						#Tribal Default
						triggered_desc = {
							trigger = {
								highest_held_title_tier = tier_empire
								government_has_flag = government_is_tribal
							}
							desc = emperor_tribal_male
						}
						triggered_desc = {
							trigger = {
								highest_held_title_tier = tier_kingdom
								government_has_flag = government_is_tribal
							}
							desc = king_tribal_male
						}
						triggered_desc = {
							trigger = {
								highest_held_title_tier = tier_duchy
								government_has_flag = government_is_tribal
							}
							desc = duke_tribal_male
						}
						triggered_desc = {
							trigger = {
								highest_held_title_tier = tier_county
								government_has_flag = government_is_tribal
							}
							desc = count_tribal_male
						}
						triggered_desc = {
							trigger = {
								highest_held_title_tier = tier_barony
								government_has_flag = government_is_tribal
							}
							desc = baron_tribal_male
						}
						#Clan Default
						triggered_desc = {
							trigger = {
								highest_held_title_tier = tier_empire
								government_has_flag = government_is_clan
							}
							desc = emperor_clan_male
						}
						triggered_desc = {
							trigger = {
								highest_held_title_tier = tier_kingdom
								government_has_flag = government_is_clan
							}
							desc = king_clan_male
						}
						triggered_desc = {
							trigger = {
								highest_held_title_tier = tier_duchy
								government_has_flag = government_is_clan
							}
							desc = duke_clan_male
						}
						triggered_desc = {
							trigger = {
								highest_held_title_tier = tier_county
								government_has_flag = government_is_clan
							}
							desc = count_clan_male
						}
						triggered_desc = {
							trigger = {
								highest_held_title_tier = tier_barony
								government_has_flag = government_is_clan
							}
							desc = baron_clan_male
						}
						#Republic Default
						triggered_desc = {
							trigger = {
								highest_held_title_tier = tier_empire
								government_has_flag = government_is_republic
							}
							desc = emperor_republic_male
						}
						triggered_desc = {
							trigger = {
								highest_held_title_tier = tier_kingdom
								government_has_flag = government_is_republic
							}
							desc = king_republic_male
						}
						triggered_desc = {
							trigger = {
								highest_held_title_tier = tier_duchy
								government_has_flag = government_is_republic
							}
							desc = duke_republic_male
						}
						triggered_desc = {
							trigger = {
								highest_held_title_tier = tier_county
								government_has_flag = government_is_republic
							}
							desc = count_republic_male
						}
						triggered_desc = {
							trigger = {
								highest_held_title_tier = tier_barony
								government_has_flag = government_is_republic
							}
							desc = baron_republic_male
						}

						#Admin/Ceremonial Regent
						triggered_desc = {
							trigger = {
								is_governor = yes
								tgp_is_ceremonial_regent_trigger = yes
								NOR = { #The following governments have "Spouses"
									government_has_flag = government_is_theocracy
									government_has_flag = government_is_mercenary
									government_has_flag = government_is_holy_order
								}
							}
							desc = councillor_spouse
						}

						#Feudal/Default Fallback
						triggered_desc = {
							trigger = {
								highest_held_title_tier = tier_empire
								NOR = { #The following governments have "Spouses"
									government_has_flag = government_is_theocracy
									government_has_flag = government_is_mercenary
									government_has_flag = government_is_holy_order
									AND = {
										is_independent_ruler = no
										government_allows = administrative
									}
									tgp_is_any_minister = yes
								}
							}
							desc = councillor_spouse_emperor
						}
						triggered_desc = {
							trigger = {
								highest_held_title_tier = tier_kingdom
								NOR = { #The following governments have "Spouses"
									government_has_flag = government_is_theocracy
									government_has_flag = government_is_mercenary
									government_has_flag = government_is_holy_order
									AND = {
										is_independent_ruler = no
										government_allows = administrative
									}
								}
							}
							desc = councillor_spouse_king
						}
						triggered_desc = {
							trigger = {
								highest_held_title_tier = tier_duchy
								NOR = { #The following governments have "Spouses"
									government_has_flag = government_is_theocracy
									government_has_flag = government_is_mercenary
									government_has_flag = government_is_holy_order
									AND = {
										is_independent_ruler = no
										government_allows = administrative
									}
								}
							}
							desc = councillor_spouse_duke
						}
						triggered_desc = {
							trigger = {
								highest_held_title_tier = tier_county
								NOR = { #The following governments have "Spouses"
									government_has_flag = government_is_theocracy
									government_has_flag = government_is_mercenary
									government_has_flag = government_is_holy_order
									AND = {
										is_independent_ruler = no
										government_allows = administrative
									}
								}
							}
							desc = councillor_spouse_count
						}
						triggered_desc = {
							trigger = {
								highest_held_title_tier = tier_barony
								NOR = { #The following governments have "Spouses"
									government_has_flag = government_is_theocracy
									government_has_flag = government_is_mercenary
									government_has_flag = government_is_holy_order
									AND = {
										is_independent_ruler = no
										government_allows = administrative
									}
								}
							}
							desc = councillor_spouse_baron
						}
						triggered_desc = {
							trigger = { highest_held_title_tier >= tier_kingdom }
							desc = councillor_spouse_prince_consort
						}
						desc = councillor_spouse_consort
					}
				}
			}
			desc = {
				first_valid = {
					#Saxon Feudal/Tribal
					triggered_desc = {
						trigger = {
							highest_held_title_tier = tier_barony
							OR = {
								government_has_flag = government_is_feudal
								government_has_flag = government_is_tribal
							}
							culture = { has_name_list = name_list_anglo_saxon }
						}
						desc = baron_feudal_female_anglo_saxon
					}
					#Tibetan Feudal/Clan
					triggered_desc = {
						trigger = {
							highest_held_title_tier = tier_empire
							OR = {
								government_has_flag = government_is_feudal
								government_has_flag = government_is_clan
							}
							culture = { has_cultural_pillar = heritage_tibetan }
						}
						desc = emperor_feudal_female_tibetan_group
					}
					triggered_desc = {
						trigger = {
							highest_held_title_tier = tier_kingdom
							OR = {
								government_has_flag = government_is_feudal
								government_has_flag = government_is_clan
							}
							culture = { has_cultural_pillar = heritage_tibetan }
						}
						desc = king_feudal_female_tibetan_group
					}
					triggered_desc = {
						trigger = {
							highest_held_title_tier = tier_duchy
							OR = {
								government_has_flag = government_is_feudal
								government_has_flag = government_is_clan
							}
							culture = { has_cultural_pillar = heritage_tibetan }
						}
						desc = duke_feudal_female_tibetan_group
					}
					triggered_desc = {
						trigger = {
							highest_held_title_tier = tier_county
							OR = {
								government_has_flag = government_is_feudal
								government_has_flag = government_is_clan
							}
							culture = { has_cultural_pillar = heritage_tibetan }
						}
						desc = count_feudal_female_tibetan_group
					}
					#West-African Feudal/Clan/Tribal
					triggered_desc = {
						trigger = {
							highest_held_title_tier = tier_kingdom
							OR = {
								government_has_flag = government_is_feudal
								government_has_flag = government_is_clan
								government_has_flag = government_is_tribal
							}
							culture = {
								OR = {
									has_cultural_pillar = heritage_west_african
									has_cultural_pillar = heritage_sahelian
									has_cultural_pillar = heritage_senegambian
									has_cultural_pillar = heritage_akan
								}
							}
						}
						desc = king_feudal_female_west_african_group
					}
					triggered_desc = {
						trigger = {
							highest_held_title_tier = tier_duchy
							OR = {
								government_has_flag = government_is_feudal
								government_has_flag = government_is_clan
								government_has_flag = government_is_tribal
							}
							culture = {
								OR = {
									has_cultural_pillar = heritage_west_african
									has_cultural_pillar = heritage_sahelian
									has_cultural_pillar = heritage_senegambian
									has_cultural_pillar = heritage_akan
								}
							}
						}
						desc = duke_feudal_female_west_african_group
					}
					triggered_desc = {
						trigger = {
							highest_held_title_tier = tier_county
							OR = {
								government_has_flag = government_is_feudal
								government_has_flag = government_is_clan
								government_has_flag = government_is_tribal
							}
							culture = {
								OR = {
									has_cultural_pillar = heritage_west_african
									has_cultural_pillar = heritage_sahelian
									has_cultural_pillar = heritage_senegambian
									has_cultural_pillar = heritage_akan
								}
							}
						}
						desc = count_feudal_female_west_african_group
					}
					#Dravidian/Indo-Aryan Feudal/Clan/Tribal
					triggered_desc = {
						trigger = {
							highest_held_title_tier = tier_empire
							OR = {
								government_has_flag = government_is_feudal
								government_has_flag = government_is_clan
								government_has_flag = government_is_tribal
							}
							culture = {
								OR = {
									has_cultural_pillar = heritage_dravidian
									has_cultural_pillar = heritage_indo_aryan
								}
							}
						}
						desc = emperor_feudal_female_dravidian_group
					}
					triggered_desc = {
						trigger = {
							highest_held_title_tier = tier_kingdom
							OR = {
								government_has_flag = government_is_feudal
								government_has_flag = government_is_clan
								government_has_flag = government_is_tribal
							}
							culture = {
								OR = {
									has_cultural_pillar = heritage_dravidian
									has_cultural_pillar = heritage_indo_aryan
								}
							}
						}
						desc = king_feudal_female_dravidian_group
					}
					triggered_desc = {
						trigger = {
							highest_held_title_tier = tier_duchy
							OR = {
								government_has_flag = government_is_feudal
								government_has_flag = government_is_clan
								government_has_flag = government_is_tribal
							}
							culture = {
								OR = {
									has_cultural_pillar = heritage_dravidian
									has_cultural_pillar = heritage_indo_aryan
								}
							}
						}
						desc = duke_feudal_female_dravidian_group
					}
					triggered_desc = {
						trigger = {
							highest_held_title_tier = tier_county
							OR = {
								government_has_flag = government_is_feudal
								government_has_flag = government_is_clan
								government_has_flag = government_is_tribal
							}
							culture = {
								OR = {
									has_cultural_pillar = heritage_dravidian
									has_cultural_pillar = heritage_indo_aryan
								}
							}
						}
						desc = count_feudal_female_dravidian_group
					}
					triggered_desc = {
						trigger = {
							highest_held_title_tier = tier_barony
							OR = {
								government_has_flag = government_is_feudal
								government_has_flag = government_is_clan
								government_has_flag = government_is_tribal
							}
							culture = {
								OR = {
									has_cultural_pillar = heritage_dravidian
									has_cultural_pillar = heritage_indo_aryan
								}
							}
						}
						desc = baron_feudal_female_dravidian_group
					}

					#Mongolic and Turkic All
					triggered_desc = {
						trigger = {
							highest_held_title_tier = tier_empire
							OR = {
								government_has_flag = government_is_feudal
								government_has_flag = government_is_clan
								government_has_flag = government_is_tribal
							}
							culture = {
								OR = {
									has_cultural_pillar = heritage_mongolic
									has_cultural_pillar = heritage_turkic
								}
							}
						}
						desc = emperor_feudal_female_altaic_group
					}
					triggered_desc = {
						trigger = {
							highest_held_title_tier = tier_kingdom
							OR = {
								government_has_flag = government_is_feudal
								government_has_flag = government_is_clan
								government_has_flag = government_is_tribal
							}
							culture = {
								OR = {
									has_cultural_pillar = heritage_mongolic
									has_cultural_pillar = heritage_turkic
								}
							}
						}
						desc = king_feudal_female_altaic_group
					}
					#Iranian non-Muslim Feudal/Clan
					triggered_desc = {
						trigger = {
							highest_held_title_tier = tier_empire
							OR = {
								government_has_flag = government_is_feudal
								government_has_flag = government_is_clan
							}
							culture = { has_cultural_pillar = heritage_iranian }
						}
						desc = emperor_feudal_female_iranian_group
					}
					triggered_desc = {
						trigger = {
							highest_held_title_tier = tier_kingdom
							OR = {
								government_has_flag = government_is_feudal
								government_has_flag = government_is_clan
							}
							culture = { has_cultural_pillar = heritage_iranian }
							NOT = { religion = religion:islam_religion } # Uses persianized arabic titles instead
						}
						desc = king_feudal_female_iranian_group
					}
					triggered_desc = {
						trigger = {
							highest_held_title_tier = tier_duchy
							OR = {
								government_has_flag = government_is_feudal
								government_has_flag = government_is_clan
							}
							culture = { has_cultural_pillar = heritage_iranian }
							NOT = { religion = religion:islam_religion } # Uses persianized arabic titles instead
						}
						desc = duke_feudal_female_iranian_group
					}
					triggered_desc = {
						trigger = {
							highest_held_title_tier = tier_county
							OR = {
								government_has_flag = government_is_feudal
								government_has_flag = government_is_clan
							}
							culture = { has_cultural_pillar = heritage_iranian }
							NOT = { religion = religion:islam_religion } # Uses persianized arabic titles instead
						}
						desc = count_feudal_female_iranian_group
					}
					triggered_desc = {
						trigger = {
							highest_held_title_tier = tier_barony
							OR = {
								government_has_flag = government_is_feudal
								government_has_flag = government_is_clan
							}
							culture = { has_cultural_pillar = heritage_iranian }
							NOT = { religion = religion:islam_religion } # Uses persianized arabic titles instead
						}
						desc = baron_feudal_female_iranian_group
					}

					#Iranian Muslim Feudal/Clan
					#Empire-tier titles use same loc as non-Muslim
					triggered_desc = {
						trigger = {
							highest_held_title_tier = tier_kingdom
							OR = {
								government_has_flag = government_is_feudal
								government_has_flag = government_is_clan
							}
							culture = { has_cultural_pillar = heritage_iranian }
							religion = religion:islam_religion
						}
						desc = king_feudal_muslim_female_iranian_group
					}
					triggered_desc = {
						trigger = {
							highest_held_title_tier = tier_duchy
							OR = {
								government_has_flag = government_is_feudal
								government_has_flag = government_is_clan
							}
							culture = { has_cultural_pillar = heritage_iranian }
							religion = religion:islam_religion
						}
						desc = duke_feudal_muslim_female_iranian_group
					}
					triggered_desc = {
						trigger = {
							highest_held_title_tier = tier_county
							OR = {
								government_has_flag = government_is_feudal
								government_has_flag = government_is_clan
							}
							culture = { has_cultural_pillar = heritage_iranian }
							religion = religion:islam_religion
						}
						desc = count_feudal_muslim_female_iranian_group
					}
					triggered_desc = {
						trigger = {
							highest_held_title_tier = tier_barony
							OR = {
								government_has_flag = government_is_feudal
								government_has_flag = government_is_clan
							}
							culture = { has_cultural_pillar = heritage_iranian }
							religion = religion:islam_religion
						}
						desc = baron_feudal_muslim_female_iranian_group
					}

					#Turkish Feudal/Clan
					triggered_desc = {
						trigger = {
							highest_held_title_tier = tier_empire
							OR = {
								government_has_flag = government_is_feudal
								government_has_flag = government_is_clan
							}
							culture = { has_name_list = name_list_turkish }
						}
						desc = emperor_feudal_female_turkish
					}
					triggered_desc = {
						trigger = {
							highest_held_title_tier = tier_kingdom
							OR = {
								government_has_flag = government_is_feudal
								government_has_flag = government_is_clan
							}
							culture = { has_name_list = name_list_turkish }
						}
						desc = king_feudal_female_turkish
					}
					triggered_desc = {
						trigger = {
							highest_held_title_tier = tier_duchy
							OR = {
								government_has_flag = government_is_feudal
								government_has_flag = government_is_clan
							}
							culture = { has_name_list = name_list_turkish }
						}
						desc = duke_feudal_female_turkish
					}
					triggered_desc = {
						trigger = {
							highest_held_title_tier = tier_county
							OR = {
								government_has_flag = government_is_feudal
								government_has_flag = government_is_clan
							}
							culture = { has_name_list = name_list_turkish }
						}
						desc = count_feudal_female_turkish
					}
					triggered_desc = {
						trigger = {
							highest_held_title_tier = tier_barony
							OR = {
								government_has_flag = government_is_feudal
								government_has_flag = government_is_clan
							}
							culture = { has_name_list = name_list_turkish }
						}
						desc = baron_feudal_female_turkish
					}
					#Arabic Republic
					triggered_desc = {
						trigger = {
							highest_held_title_tier = tier_kingdom
							government_has_flag = government_is_republic
							culture = { has_cultural_pillar = heritage_arabic }
						}
						desc = king_republic_female_arabic_group
					}
					triggered_desc = {
						trigger = {
							highest_held_title_tier = tier_duchy
							government_has_flag = government_is_republic
							culture = { has_cultural_pillar = heritage_arabic }
						}
						desc = duke_republic_female_arabic_group
					}
					triggered_desc = {
						trigger = {
							highest_held_title_tier = tier_county
							government_has_flag = government_is_republic
							culture = { has_cultural_pillar = heritage_arabic }
						}
						desc = count_republic_female_arabic_group
					}
					#Arabic Feudal/Clan/Tribal
					triggered_desc = {
						trigger = {
							highest_held_title_tier = tier_empire
							OR = {
								government_has_flag = government_is_feudal
								government_has_flag = government_is_tribal
								government_has_flag = government_is_clan
							}
							culture = { has_cultural_pillar = heritage_arabic }
						}
						desc = emperor_feudal_female_arabic_group
					}
					triggered_desc = {
						trigger = {
							highest_held_title_tier = tier_kingdom
							OR = {
								government_has_flag = government_is_feudal
								government_has_flag = government_is_tribal
								government_has_flag = government_is_clan
							}
							culture = { has_cultural_pillar = heritage_arabic }
						}
						desc = king_feudal_female_arabic_group
					}
					triggered_desc = {
						trigger = {
							highest_held_title_tier = tier_duchy
							OR = {
								government_has_flag = government_is_feudal
								government_has_flag = government_is_tribal
								government_has_flag = government_is_clan
							}
							culture = { has_cultural_pillar = heritage_arabic }
						}
						desc = duke_feudal_female_arabic_group
					}
					triggered_desc = {
						trigger = {
							highest_held_title_tier = tier_county
							OR = {
								government_has_flag = government_is_feudal
								government_has_flag = government_is_tribal
								government_has_flag = government_is_clan
							}
							culture = { has_cultural_pillar = heritage_arabic }
						}
						desc = count_feudal_female_arabic_group
					}
					triggered_desc = {
						trigger = {
							highest_held_title_tier = tier_barony
							OR = {
								government_has_flag = government_is_feudal
								government_has_flag = government_is_tribal
								government_has_flag = government_is_clan
							}
							culture = { has_cultural_pillar = heritage_arabic }
						}
						desc = baron_feudal_female_arabic_group
					}

					#Russian Feudal
					triggered_desc = {
						trigger = {
							highest_held_title_tier = tier_empire
							government_has_flag = government_is_feudal
							culture = { has_name_list = name_list_russian }
						}
						desc = emperor_feudal_female_russian
					}
					triggered_desc = {
						trigger = {
							highest_held_title_tier = tier_duchy
							government_has_flag = government_is_feudal
							culture = { has_name_list = name_list_russian }
						}
						desc = duke_feudal_female_russian
					}
					#Norse Feudal/Tribal
					triggered_desc = {
						trigger = {
							highest_held_title_tier = tier_county
							OR = {
								government_has_flag = government_is_feudal
								government_has_flag = government_is_tribal
							}
							culture = { has_name_list = name_list_norse }
						}
						desc = count_feudal_female_norse
					}
					triggered_desc = {
						trigger = {
							highest_held_title_tier = tier_barony
							OR = {
								government_has_flag = government_is_feudal
								government_has_flag = government_is_tribal
							}
							culture = { has_name_list = name_list_norse }
						}
						desc = baron_feudal_female_norse
					}
					#German Feudal/Tribal
					triggered_desc = {
						trigger = {
							highest_held_title_tier = tier_empire
							OR = {
								government_has_flag = government_is_feudal
								government_has_flag = government_is_tribal
							}
							culture = { has_cultural_pillar = heritage_central_germanic }
						}
						desc = emperor_feudal_female_german
					}
					#Byzantine Republic
					triggered_desc = {
						trigger = {
							highest_held_title_tier = tier_kingdom
							government_has_flag = government_is_republic
							culture = { has_cultural_pillar = heritage_byzantine }
						}
						desc = king_republic_female_byzantine_group
					}
					triggered_desc = {
						trigger = {
							highest_held_title_tier = tier_duchy
							government_has_flag = government_is_republic
							culture = { has_cultural_pillar = heritage_byzantine }
						}
						desc = duke_republic_female_byzantine_group
					}
					#Greek Feudal
					triggered_desc = {
						trigger = {
							highest_held_title_tier = tier_empire
							government_has_flag = government_is_feudal
							culture = { has_name_list = name_list_greek }
						}
						desc = emperor_feudal_female_greek
					}
					triggered_desc = {
						trigger = {
							highest_held_title_tier = tier_kingdom
							government_has_flag = government_is_feudal
							culture = { has_name_list = name_list_greek }
						}
						desc = king_feudal_female_greek
					}
					#Roman Republic
					triggered_desc = {
						trigger = {
							highest_held_title_tier = tier_empire
							government_has_flag = government_is_republic
							culture = { has_name_list = name_list_roman }
						}
						desc = emperor_republic_female_roman
					}
					triggered_desc = {
						trigger = {
							highest_held_title_tier = tier_kingdom
							government_has_flag = government_is_republic
							culture = { has_name_list = name_list_roman }
						}
						desc = king_republic_female_roman
					}
					triggered_desc = {
						trigger = {
							highest_held_title_tier = tier_duchy
							government_has_flag = government_is_republic
							culture = { has_name_list = name_list_roman }
						}
						desc = duke_republic_female_roman
					}
					triggered_desc = {
						trigger = {
							highest_held_title_tier = tier_county
							government_has_flag = government_is_republic
							culture = { has_name_list = name_list_roman }
						}
						desc = count_republic_female_roman
					}
					triggered_desc = {
						trigger = {
							highest_held_title_tier = tier_barony
							government_has_flag = government_is_republic
							culture = { has_name_list = name_list_roman }
						}
						desc = baron_republic_female_roman
					}
					#Roman Feudal
					triggered_desc = {
						trigger = {
							highest_held_title_tier = tier_empire
							government_has_flag = government_is_feudal
							culture = { has_name_list = name_list_roman }
						}
						desc = emperor_feudal_female_roman
					}
					triggered_desc = {
						trigger = {
							highest_held_title_tier = tier_kingdom
							government_has_flag = government_is_feudal
							culture = { has_name_list = name_list_roman }
						}
						desc = king_feudal_female_roman
					}
					triggered_desc = {
						trigger = {
							highest_held_title_tier = tier_duchy
							government_has_flag = government_is_feudal
							culture = { has_name_list = name_list_roman }
						}
						desc = duke_feudal_female_roman
					}
					triggered_desc = {
						trigger = {
							highest_held_title_tier = tier_county
							government_has_flag = government_is_feudal
							culture = { has_name_list = name_list_roman }
						}
						desc = count_feudal_female_roman
					}
					triggered_desc = {
						trigger = {
							highest_held_title_tier = tier_barony
							government_has_flag = government_is_feudal
							culture = { has_name_list = name_list_roman }
						}
						desc = baron_feudal_female_roman
					}
					#Latin Republic
					triggered_desc = {
						trigger = {
							highest_held_title_tier = tier_kingdom
							government_has_flag = government_is_republic
							culture = { has_cultural_pillar = heritage_latin }
						}
						desc = king_republic_female_latin_group
					}
					triggered_desc = {
						trigger = {
							highest_held_title_tier = tier_duchy
							government_has_flag = government_is_republic
							culture = { has_cultural_pillar = heritage_latin }
						}
						desc = duke_republic_female_latin_group
					}
					#Tribal Default
					triggered_desc = {
						trigger = {
							highest_held_title_tier = tier_empire
							government_has_flag = government_is_tribal
						}
						desc = emperor_tribal_female
					}
					triggered_desc = {
						trigger = {
							highest_held_title_tier = tier_kingdom
							government_has_flag = government_is_tribal
						}
						desc = king_tribal_female
					}
					triggered_desc = {
						trigger = {
							highest_held_title_tier = tier_duchy
							government_has_flag = government_is_tribal
						}
						desc = duke_tribal_female
					}
					triggered_desc = {
						trigger = {
							highest_held_title_tier = tier_county
							government_has_flag = government_is_tribal
						}
						desc = count_tribal_female
					}
					triggered_desc = {
						trigger = {
							highest_held_title_tier = tier_barony
							government_has_flag = government_is_tribal
						}
						desc = baron_tribal_female
					}
					#Clan Default
					triggered_desc = {
						trigger = {
							highest_held_title_tier = tier_empire
							government_has_flag = government_is_clan
						}
						desc = emperor_clan_female
					}
					triggered_desc = {
						trigger = {
							highest_held_title_tier = tier_kingdom
							government_has_flag = government_is_clan
						}
						desc = king_clan_female
					}
					triggered_desc = {
						trigger = {
							highest_held_title_tier = tier_duchy
							government_has_flag = government_is_clan
						}
						desc = duke_clan_female
					}
					triggered_desc = {
						trigger = {
							highest_held_title_tier = tier_county
							government_has_flag = government_is_clan
						}
						desc = count_clan_female
					}
					triggered_desc = {
						trigger = {
							highest_held_title_tier = tier_barony
							government_has_flag = government_is_clan
						}
						desc = baron_clan_female
					}
					#Republic Default
					triggered_desc = {
						trigger = {
							highest_held_title_tier = tier_empire
							government_has_flag = government_is_republic
						}
						desc = emperor_republic_female
					}
					triggered_desc = {
						trigger = {
							highest_held_title_tier = tier_kingdom
							government_has_flag = government_is_republic
						}
						desc = king_republic_female
					}
					triggered_desc = {
						trigger = {
							highest_held_title_tier = tier_duchy
							government_has_flag = government_is_republic
						}
						desc = duke_republic_female
					}
					triggered_desc = {
						trigger = {
							highest_held_title_tier = tier_county
							government_has_flag = government_is_republic
						}
						desc = count_republic_female
					}
					triggered_desc = {
						trigger = {
							highest_held_title_tier = tier_barony
							government_has_flag = government_is_republic
						}
						desc = baron_republic_female
					}

					#Admin / Ceremonial Regent
					triggered_desc = {
						trigger = {
							OR = {
								is_governor = yes
								tgp_is_ceremonial_regent_trigger = yes
							}
							NOR = { #The following governments have "Spouses"
								government_has_flag = government_is_theocracy
								government_has_flag = government_is_mercenary
								government_has_flag = government_is_holy_order
							}
						}
						desc = councillor_spouse
					}

					#Feudal/Default Fallback
					triggered_desc = {
						trigger = {
							highest_held_title_tier = tier_empire
							NOR = { #The following governments have "Spouses"
								government_has_flag = government_is_theocracy
								government_has_flag = government_is_mercenary
								government_has_flag = government_is_holy_order
								AND = {
									is_independent_ruler = no
									government_allows = administrative
								}
								tgp_is_any_minister = yes
							}
						}
						desc = councillor_spouse_empress
					}
					triggered_desc = {
						trigger = {
							highest_held_title_tier = tier_kingdom
							NOR = { #The following governments have "Spouses"
								government_has_flag = government_is_theocracy
								government_has_flag = government_is_mercenary
								government_has_flag = government_is_holy_order
								AND = {
									is_independent_ruler = no
									government_allows = administrative
								}
							}
						}
						desc = councillor_spouse_queen
					}
					triggered_desc = {
						trigger = {
							highest_held_title_tier = tier_duchy
							NOR = { #The following governments have "Spouses"
								government_has_flag = government_is_theocracy
								government_has_flag = government_is_mercenary
								government_has_flag = government_is_holy_order
								AND = {
									is_independent_ruler = no
									government_allows = administrative
								}
							}
						}
						desc = councillor_spouse_duchess
					}
					triggered_desc = {
						trigger = {
							highest_held_title_tier = tier_county
							NOR = { #The following governments have "Spouses"
								government_has_flag = government_is_theocracy
								government_has_flag = government_is_mercenary
								government_has_flag = government_is_holy_order
								AND = {
									is_independent_ruler = no
									government_allows = administrative
								}
							}
						}
						desc = councillor_spouse_countess
					}
					triggered_desc = {
						trigger = {
							highest_held_title_tier = tier_barony
							NOR = { #The following governments have "Spouses"
								government_has_flag = government_is_theocracy
								government_has_flag = government_is_mercenary
								government_has_flag = government_is_holy_order
								AND = {
									is_independent_ruler = no
									government_allows = administrative
								}
							}
						}
						desc = councillor_spouse_baroness
					}
					desc = councillor_spouse_consort
				}
			}
		}
	}

	tooltip = game_concept_spouse_desc

	valid_position = {
		councillor_spouse_valid_position = yes
	}

	valid_character = {
		exists = liege
		can_be_spouse_councillor_trigger = { COUNCIL_OWNER = liege }
		tgp_is_ceremonial_liege_trigger = no
	}

	on_get_position = {
		set_variable = {
			name = councillor_spouse_lifestyle_progress
			value = 0
		}
#		if = {
#			limit = {
#				primary_spouse.primary_title = title:e_hre
#			}
#			debug_log = "Set new Spouse council position"
#			debug_log_scopes = yes
#		}
		trigger_event = councillor_spouse_background.0001
	}

	on_lose_position = {
		remove_variable = councillor_spouse_lifestyle_progress
	}

	on_fired_from_position = {
		remove_variable = councillor_spouse_lifestyle_progress
	}

	barbershop_data = {
		position = { 763.0 261.00 }
		click_to_front = yes
	}
}

councillor_vizier = {
	auto_fill = yes
	can_fire = yes
	can_reassign = yes
	
	name = councillor_vizier
	tooltip = councillor_vizier_desc

	valid_position = {
		government_has_flag = may_appoint_viziers
	}

	valid_character = {
		exists = liege_or_court_owner
		can_be_vizier_councillor_trigger = { COUNCIL_OWNER = liege_or_court_owner }
	}

	on_get_position = {
		set_variable = {
			name = councillor_vizier_lifestyle_progress
			value = 0
		}
	}

	on_lose_position = {
		remove_variable = councillor_vizier_lifestyle_progress
	}

	on_fired_from_position = {
		remove_variable = councillor_vizier_lifestyle_progress
	}

	barbershop_data = {
		position = { 763.0 261.00 }
		click_to_front = yes
	}
}

councillor_kurultai_1 = {
	name = councillor_kurultai
	tooltip = game_concept_kurultai_desc

	valid_position = {
		government_has_flag = government_is_nomadic
	}

	valid_character = {
		exists = root.liege_or_court_owner
		can_be_kurultai_trigger = { 
			COURT_OWNER = root.liege_or_court_owner 
			CP1 = councillor_kurultai_2
			CP2 = councillor_kurultai_3
			CP3 = councillor_kurultai_4
		}
	}
	
	council_owner_modifier = {
		name = learn_on_the_job_modifier
		diplomacy = 1
		scale = kurultai_chancellor_learn_on_the_job_scale
	}

	council_owner_modifier = {
		name = learn_on_the_job_modifier
		stewardship = 1
		scale = kurultai_steward_learn_on_the_job_scale
	}

	council_owner_modifier = {
		name = learn_on_the_job_modifier
		martial = 1
		scale = kurultai_marshal_learn_on_the_job_scale
	}

	council_owner_modifier = {
		name = learn_on_the_job_modifier
		learning = 1
		scale = kurultai_court_chaplain_learn_on_the_job_scale
	}

	modifier = {
		name = councillor_kurultai_modifier
		monthly_income = 0.5
		scale = council_scaled_monthly_income
	}

	modifier = {
		name = councillor_kurultai_modifier
		monthly_prestige = 0.15
		herd_gain_mult = 0.05
		herd_capacity_mult = 0.05
		scale = council_scaled_by_liege_tier_nomad
	}

	modifier = {
		name = councillor_kurultai_modifier
		monthly_prestige = 0.15
		levy_size = 0.05
		scale = council_scaled_by_liege_tier_not_nomad
	}


	modifier = {
		name = councillor_kurultai_modifier
		fellow_vassal_opinion = 10
	}

	on_get_position = {
		got_council_position_effect = yes
	}

	on_fired_from_position = {
		if = {
			limit = {
				exists = root.liege_or_court_owner
				liege_or_court_owner = { is_ai = no }
			}
			liege_or_court_owner = {
				add_prestige = major_prestige_loss
			}
		}
		fired_from_council_position_effect = yes
	}

	portrait_animation = survey

	barbershop_data = {
		position = { 918.0 172.0 }
		click_to_front = no
	}
}

councillor_kurultai_2 = {
	name = councillor_kurultai
	tooltip = game_concept_kurultai_desc

	valid_position = {
		government_has_flag = government_is_nomadic
	}

	valid_character = {
		exists = root.liege_or_court_owner
		can_be_kurultai_trigger = { 
			COURT_OWNER = root.liege_or_court_owner 
			CP1 = councillor_kurultai_1
			CP2 = councillor_kurultai_3
			CP3 = councillor_kurultai_4
		}
	}
	
	council_owner_modifier = {
		name = learn_on_the_job_modifier
		diplomacy = 1
		scale = kurultai_chancellor_learn_on_the_job_scale
	}

	council_owner_modifier = {
		name = learn_on_the_job_modifier
		stewardship = 1
		scale = kurultai_steward_learn_on_the_job_scale
	}

	council_owner_modifier = {
		name = learn_on_the_job_modifier
		martial = 1
		scale = kurultai_marshal_learn_on_the_job_scale
	}

	council_owner_modifier = {
		name = learn_on_the_job_modifier
		learning = 1
		scale = kurultai_court_chaplain_learn_on_the_job_scale
	}

	modifier = {
		name = councillor_kurultai_modifier
		monthly_income = 0.5
		scale = council_scaled_monthly_income
	}

	modifier = {
		name = councillor_kurultai_modifier
		monthly_prestige = 0.15
		herd_gain_mult = 0.05
		herd_capacity_mult = 0.05
		scale = council_scaled_by_liege_tier_nomad
	}

	modifier = {
		name = councillor_kurultai_modifier
		monthly_prestige = 0.15
		levy_size = 0.05
		scale = council_scaled_by_liege_tier_not_nomad
	}


	modifier = {
		name = councillor_kurultai_modifier
		fellow_vassal_opinion = 10
	}

	on_get_position = {
		got_council_position_effect = yes
	}

	on_fired_from_position = {
		if = {
			limit = {
				exists = root.liege_or_court_owner
				liege_or_court_owner = { is_ai = no }
			}
			liege_or_court_owner = {
				add_prestige = major_prestige_loss
			}
		}
		fired_from_council_position_effect = yes
	}

	portrait_animation = hunting_falcon

	barbershop_data = {
		position = { 1268.0 172.0 }
		click_to_front = no
	}
}

councillor_kurultai_3 = {
	name = councillor_kurultai
	tooltip = game_concept_kurultai_desc

	valid_position = {
		government_has_flag = government_is_nomadic
	}

	valid_character = {
		exists = root.liege_or_court_owner
		can_be_kurultai_trigger = { 
			COURT_OWNER = root.liege_or_court_owner 
			CP1 = councillor_kurultai_1
			CP2 = councillor_kurultai_2
			CP3 = councillor_kurultai_4
		}
	}
	
	council_owner_modifier = {
		name = learn_on_the_job_modifier
		diplomacy = 1
		scale = kurultai_chancellor_learn_on_the_job_scale
	}

	council_owner_modifier = {
		name = learn_on_the_job_modifier
		stewardship = 1
		scale = kurultai_steward_learn_on_the_job_scale
	}

	council_owner_modifier = {
		name = learn_on_the_job_modifier
		martial = 1
		scale = kurultai_marshal_learn_on_the_job_scale
	}

	council_owner_modifier = {
		name = learn_on_the_job_modifier
		learning = 1
		scale = kurultai_court_chaplain_learn_on_the_job_scale
	}

	modifier = {
		name = councillor_kurultai_modifier
		monthly_income = 0.5
		scale = council_scaled_monthly_income
	}

	modifier = {
		name = councillor_kurultai_modifier
		monthly_prestige = 0.15
		herd_gain_mult = 0.05
		herd_capacity_mult = 0.05
		scale = council_scaled_by_liege_tier_nomad
	}

	modifier = {
		name = councillor_kurultai_modifier
		monthly_prestige = 0.15
		levy_size = 0.05
		scale = council_scaled_by_liege_tier_not_nomad
	}


	modifier = {
		name = councillor_kurultai_modifier
		fellow_vassal_opinion = 10
	}

	on_get_position = {
		got_council_position_effect = yes
	}

	on_fired_from_position = {
		if = {
			limit = {
				exists = root.liege_or_court_owner
				liege_or_court_owner = { is_ai = no }
			}
			liege_or_court_owner = {
				add_prestige = major_prestige_loss
			}
		}
		fired_from_council_position_effect = yes
	}

	portrait_animation = hunting_shortbow_aim_arrow_default

	barbershop_data = {
		position = { 1618.0 172.0 }
		click_to_front = no
	}
}

councillor_kurultai_4 = {
	name = councillor_kurultai
	tooltip = game_concept_kurultai_desc

	valid_position = {
		government_has_flag = government_is_nomadic
	}

	valid_character = {
		exists = root.liege_or_court_owner
		can_be_kurultai_trigger = { 
			COURT_OWNER = root.liege_or_court_owner 
			CP1 = councillor_kurultai_1
			CP2 = councillor_kurultai_2
			CP3 = councillor_kurultai_3
		}
	}
	
	council_owner_modifier = {
		name = learn_on_the_job_modifier
		diplomacy = 1
		scale = kurultai_chancellor_learn_on_the_job_scale
	}

	council_owner_modifier = {
		name = learn_on_the_job_modifier
		stewardship = 1
		scale = kurultai_steward_learn_on_the_job_scale
	}

	council_owner_modifier = {
		name = learn_on_the_job_modifier
		martial = 1
		scale = kurultai_marshal_learn_on_the_job_scale
	}

	council_owner_modifier = {
		name = learn_on_the_job_modifier
		learning = 1
		scale = kurultai_court_chaplain_learn_on_the_job_scale
	}

	modifier = {
		name = councillor_kurultai_modifier
		monthly_income = 0.5
		scale = council_scaled_monthly_income
	}

	modifier = {
		name = councillor_kurultai_modifier
		monthly_prestige = 0.15
		herd_gain_mult = 0.05
		herd_capacity_mult = 0.05
		scale = council_scaled_by_liege_tier_nomad
	}

	modifier = {
		name = councillor_kurultai_modifier
		monthly_prestige = 0.15
		levy_size = 0.05
		scale = council_scaled_by_liege_tier_not_nomad
	}


	modifier = {
		name = councillor_kurultai_modifier
		fellow_vassal_opinion = 10
	}

	on_get_position = {
		got_council_position_effect = yes
	}

	on_fired_from_position = {
		if = {
			limit = {
				exists = root.liege_or_court_owner
				liege_or_court_owner = { is_ai = no }
			}
			liege_or_court_owner = {
				add_prestige = major_prestige_loss
			}
		}
		fired_from_council_position_effect = yes
	}

	portrait_animation = shepherd_with_sheep

	barbershop_data = {
		position = { 558.0 172.0 }
		click_to_front = no
	}
}
