﻿polite_gender_ref = {
	type = character

	text = {
		trigger = {
			is_male = yes
			age < 5
		}
		localization_key = lmf_little_boy
	}
	text = {
		trigger = {
			is_male = yes
			age >= 5
			age < 9
		}
		localization_key = lmf_boy
	}
	text = {
		trigger = {
			is_male = yes
			age >= 9
			age < 15
		}
		localization_key = lmf_lad
	}
	text = {
		trigger = {
			is_male = yes
			age >= 15
			age < 22
		}
		localization_key = lmf_young_man
	}
	text = {
		trigger = {
			is_male = yes
			age >= 22
		}
		localization_key = lmf_man
	}
	text = {
		trigger = {
			is_female = yes
			age < 6
		}
		localization_key = lmf_little_girl
	}
	text = {
		trigger = {
			is_female = yes
			age >= 6
			age < 12
		}
		localization_key = lmf_girl
	}
	text = {
		trigger = {
			is_female = yes
			age >= 12
			age < 16
		}
		localization_key = lmf_lass
	}
	text = {
		trigger = {
			is_female = yes
			age >= 16
			age < 26
			is_married = yes
		}
		localization_key = lmf_young_woman
	}
	text = {
		trigger = {
			is_female = yes
			age >= 16
			age < 26
			is_married = no
		}
		localization_key = lmf_maiden
	}
	text = {
		trigger = {
			is_female = yes
			age > 25
		}
		localization_key = lmf_woman
	}
}

direct_address_by_familiarity = {
	type = character

	text = {
		localization_key = lmf_address_parent
		trigger = {
			scope:second = { is_parent_of = root }
		}
	}
	text = {
		localization_key = GRANDMOTHER
		trigger = {
			scope:second = {
				is_grandparent_of = root
				is_female = yes
			}
		}
	}
	text = {
		localization_key = GRANDFATHER
		trigger = {
			scope:second = {
				is_grandparent_of = root
				is_male = yes
			}
		}
	}
	text = {
		localization_key = lmf_first_name_address
		trigger = {
			scope:second = {
				OR = {
					is_sibling_of = root
					is_child_of = root
					is_grandchild_of = root
					is_sibling_child_of_root_trigger = yes
					is_consort_of = root
					has_relation_friend = root
					AND = {
						has_relation_lover = root
						NOR = {
							is_uncle_or_aunt_of = root
							is_cousin_of = root
						}
					}
				}
			}
		}
	}
	text = {
		localization_key = lmf_address_auntuncle
		trigger = {
			scope:second = { is_uncle_or_aunt_of = root }
		}
	}
	text = {
		localization_key = lmf_address_cousin
		trigger = {
			scope:second = { is_cousin_of = root }
		}
	}
	text = {
		localization_key = lmf_address_chaplain
		trigger = {
			scope:second = {
				is_councillor = yes
				has_council_position = councillor_court_chaplain
			}
		}
	}
	text = {
		localization_key = lmf_address_title_firstname
		fallback = yes
	}
}

spoken_address_by_familiarity = {
	type = character

	text = {
		localization_key = lmf_address_my_love
		trigger = {
			scope:second = { has_relation_soulmate = root }
		}
	}
	text = {
		localization_key = lmf_address_parent
		trigger = {
			scope:second = { is_parent_of = root }
		}
	}
	text = {
		localization_key = GRANDMOTHER
		trigger = {
			scope:second = {
				is_grandparent_of = root
				is_female = yes
			}
		}
	}
	text = {
		localization_key = GRANDFATHER
		trigger = {
			scope:second = {
				is_grandparent_of = root
				is_male = yes
			}
		}
	}
	text = {
		localization_key = SISTER
		trigger = {
			scope:second = {
				is_sibling_of = root
				is_female = yes
				NOT = {
					any_parent = {
						NOT = { is_parent_of = root }
					}
				}
			}
		}
	}
	text = {
		localization_key = BROTHER
		trigger = {
			scope:second = {
				is_sibling_of = root
				is_male = yes
				NOT = {
					any_parent = {
						NOT = { is_parent_of = root }
					}
				}
			}
		}
	}
	text = {
		localization_key = lmf_address_auntuncle
		trigger = {
			scope:second = { is_uncle_or_aunt_of = root }
		}
	}
	text = {
		localization_key = lmf_address_cousin_direct
		trigger = {
			scope:second = { is_cousin_of = root }
		}
	}
	text = {
		localization_key = lmf_first_name_address
		trigger = {
			scope:second = {
				OR = {
					is_sibling_of = root
					is_child_of = root
					is_grandchild_of = root
					is_sibling_child_of_root_trigger = yes
					is_consort_of = root
					AND = {
						has_relation_friend = root
						NOR = {
							has_council_position = councillor_court_chaplain
							is_liege_or_above_of = root
						}
					}
					AND = {
						has_relation_lover = root
						NOT = { is_liege_or_above_of = root }
					}
				}
			}
		}
	}
	text = {
		localization_key = lmf_address_my_lord
		trigger = {
			OR = {
				scope:second = { is_liege_or_above_of = root }
				AND = {
					is_lowborn = yes
					scope:second = { has_dynasty = yes }
				}
				AND = {
					has_dynasty = yes
					NOR = {
						is_playable_character = yes
						any_close_or_extended_family_member = { is_playable_character = yes }
					}
					scope:second = {
						has_dynasty = yes
						OR = {
							is_playable_character = yes
							any_close_family_member = {
								is_close_family_of = scope:second
								is_playable_character = yes
							}
						}
					}
				}
			}
		}
	}
	text = {
		localization_key = lmf_address_chaplain
		trigger = {
			scope:second = {
				is_councillor = yes
				has_council_position = councillor_court_chaplain
			}
		}
	}
	text = {
		localization_key = lmf_address_title_firstname
		fallback = yes
	}
}

my_relation_by_name = {
	type = character
	
	text = {
		localization_key = FATHER
		trigger = {
			scope:second = {
				is_parent_of = root
				is_male = yes
			}
		}
	}
	text = {
		localization_key = MOTHER
		trigger = {
			scope:second = {
				is_parent_of = root
				is_female = yes
			}
		}
	}
	text = {
		localization_key = GRANDMOTHER
		trigger = {
			scope:second = {
				is_grandparent_of = root
				is_female = yes
			}
		}
	}
	text = {
		localization_key = GRANDFATHER
		trigger = {
			scope:second = {
				is_grandparent_of = root
				is_male = yes
			}
		}
	}
	text = {
		localization_key = lmf_my_primary_spouse
		trigger = {
			scope:second = {
				exists = primary_spouse
				primary_spouse = root
			}
		}
	}
	text = {
		localization_key = lmf_my_younger_sibling
		trigger = {
			scope:second = {
				is_sibling_of = root
				father ?= root.father
				mother ?= root.mother
				age < root.age
			}
		}
	}
	text = {
		localization_key = lmf_my_older_sibling
		trigger = {
			scope:second = {
				is_sibling_of = root
				father ?= root.father
				mother ?= root.mother
				age > root.age
			}
		}
	}
	text = {
		localization_key = lmf_my_twin_sibling
		trigger = {
			has_trait = twin
			scope:second = {
				has_trait = twin
				is_sibling_of = root
				father ?= root.father
				mother ?= root.mother
				age = root.age
			}
		}
	}
	text = {
		localization_key = lmf_my_child
		trigger = {
			scope:second = {
				is_child_of = root
				is_alive = yes
			}
		}
	}
	text = {
		localization_key = lmf_address_auntuncle
		trigger = {
			scope:second = {
				is_uncle_or_aunt_of = root
				is_adult = yes
			}
		}
	}
	text = {
		localization_key = lmf_address_cousin
		trigger = {
			scope:second = {
				is_cousin_of = root
				is_adult = yes
			}
		}
	}
	text = {
		localization_key = lmf_my_relation_first_name
		trigger = {
			scope:second = {
				OR = {
					is_child_of = root
					is_sibling_of = root
					is_grandchild_of = root
					is_great_grandchild_of = root
					is_great_grandparent_of = root
					is_nibling_of = root
					is_uncle_or_aunt_of = root
					is_cousin_of = root
					has_relation_friend = root
					has_relation_lover = root
					has_relation_friend = root
					has_relation_lover = root
				}
				NOT = {
					has_council_position = councillor_court_chaplain
				}
			}
		}
	}
	text = {
		localization_key = lmf_my_relation_chaplain_first_name
		trigger = {
			scope:second = {
				is_councillor = yes
				has_council_position = councillor_court_chaplain
			}
		}
	}
	text = {
		localization_key = lmf_my_liege
		trigger = {
			is_vassal_of = scope:second
		}
	}
	text = {
		localization_key = lmf_my_relation_titled_name
		trigger = {
			scope:second = {
				any_spouse = { is_close_family_of = root }
			}
		}
	}
	text = {
		localization_key = lmf_my_firstname_extended_relative_spouse_relation
		trigger = {
			scope:second = {
				primary_spouse ?= {
					OR = {
						is_cousin_of = root
						is_uncle_or_aunt_of = root
					}
				}
			}
		}
	}
	text = {
		localization_key = lmf_my_male_cousin_child_relation
		trigger = {
			scope:second = {
				father ?= {
					is_cousin_of = root
					OR = {
						patrilinear_marriage = yes
						is_married = no
						primary_spouse = {
							NOT = { is_cousin_of = root }
						}
					}
				}
			}
		}
	}
	text = {
		localization_key = lmf_my_female_cousin_child_relation
		trigger = {
			scope:second = {
				mother ?= {
					is_cousin_of = root
				}
			}
		}
	}
	text = {
		localization_key = lmf_my_extended_relative_spouse_relation
		trigger = {
			scope:second = {
				primary_spouse ?= {
					OR = {
						is_nibling_of = root
						is_great_grandchild_of = root
						is_great_grandparent_of = root
					}
				}
			}
		}
	}
	text = {
		localization_key = lmf_my_male_nibling_child_relation
		trigger = {
			scope:second = {
				father ?= {
					is_nibling_of = root
					OR = {
						patrilinear_marriage = yes
						is_married = no
						primary_spouse = {
							NOT = { is_nibling_of = root }
						}
					}
				}
			}
		}
	}
	text = {
		localization_key = lmf_my_female_nibling_child_relation
		trigger = {
			scope:second = {
				mother ?= {
					is_nibling_of = root
				}
			}
		}
	}
	text = {
		localization_key = lmf_my_relation_titled_name
		trigger = {
			scope:second = {
				OR = {
					is_vassal_of = root
					is_councillor_of = root
					is_hostage_of = root
					AND = {
						is_courtier_of = root
						has_any_court_position = yes
					}
				}
			}
		}
	}
	text = {
		localization_key = lmf_my_close_relative_courtier_relation
		trigger = {
			scope:second = {
				exists = liege
				is_courtier = yes
				liege = {
					NOT = { this = root }
					is_close_or_extended_family_of = root
				}
				OR = {
					has_any_court_position = yes
					is_consort_of = scope:second.liege
					any_close_family_member = {
						is_close_family_of = scope:second
						is_consort_of = scope:second.liege
					}
					is_councillor_of = scope:second.liege
					is_hostage_of = scope:second.liege
					is_knight_of = scope:second.liege
					is_vassal_of = scope:second.liege
					AND = {
						has_relation_lover = scope:second.liege
						NOT = { lover_is_secret_trigger = { CHARACTER = scope:second.liege } }
					}
				}
			}
		}
	}
	text = {
		localization_key = lmf_my_vassal_courtier_relation
		trigger = {
			scope:second = {
				exists = liege
				is_courtier = yes
				liege = {
					NOT = { this = root }
					is_vassal_or_below_of = root
				}
				OR = {
					has_any_court_position = yes
					is_consort_of = scope:second.liege
					any_close_family_member = {
						is_close_family_of = scope:second
						is_consort_of = scope:second.liege
					}
					is_councillor_of = scope:second.liege
					is_hostage_of = scope:second.liege
					is_knight_of = scope:second.liege
					AND = {
						has_relation_lover = scope:second.liege
						NOT = { lover_is_secret_trigger = { CHARACTER = scope:second.liege } }
					}
				}
			}
		}
	}
	text = {
		localization_key = lmf_my_relation_first_name
		fallback = yes
	}
}

my_relation_by_name_no_comma = {
	type = character

	text = {
		localization_key = FATHER
		trigger = {
			scope:second = {
				is_parent_of = root
				is_male = yes
			}
		}
	}
	text = {
		localization_key = MOTHER
		trigger = {
			scope:second = {
				is_parent_of = root
				is_female = yes
			}
		}
	}
	text = {
		localization_key = GRANDMOTHER
		trigger = {
			scope:second = {
				is_grandparent_of = root
				is_female = yes
			}
		}
	}
	text = {
		localization_key = GRANDFATHER
		trigger = {
			scope:second = {
				is_grandparent_of = root
				is_male = yes
			}
		}
	}
	text = {
		localization_key = lmf_my_primary_spouse
		trigger = {
			scope:second = {
				exists = primary_spouse
				primary_spouse = root
			}
		}
	}
	text = {
		localization_key = lmf_my_younger_sibling_no_comma
		trigger = {
			scope:second = {
				is_sibling_of = root
				father ?= root.father
				mother ?= root.mother
				age < root.age
			}
		}
	}
	text = {
		localization_key = lmf_my_older_sibling_no_comma
		trigger = {
			scope:second = {
				is_sibling_of = root
				father ?= root.father
				mother ?= root.mother
				age > root.age
			}
		}
	}
	text = {
		localization_key = lmf_my_twin_sibling_no_comma
		trigger = {
			has_trait = twin
			scope:second = {
				has_trait = twin
				is_sibling_of = root
				father ?= root.father
				mother ?= root.mother
				age = root.age
			}
		}
	}
	text = {
		localization_key = lmf_my_child_no_comma
		trigger = {
			scope:second = {
				is_child_of = root
				is_alive = yes
			}
		}
	}
	text = {
		localization_key = lmf_address_auntuncle
		trigger = {
			scope:second = {
				is_uncle_or_aunt_of = root
				is_adult = yes
			}
		}
	}
	text = {
		localization_key = lmf_address_cousin
		trigger = {
			scope:second = {
				is_cousin_of = root
				is_adult = yes
			}
		}
	}
	text = {
		localization_key = lmf_my_relation_first_name_no_comma
		trigger = {
			scope:second = {
				OR = {
					is_child_of = root
					is_sibling_of = root
					is_grandchild_of = root
					is_great_grandchild_of = root
					is_great_grandparent_of = root
					is_nibling_of = root
					is_uncle_or_aunt_of = root
					is_cousin_of = root
					has_relation_friend = root
					has_relation_lover = root
				}
				NOT = {
					has_council_position = councillor_court_chaplain
				}
			}
		}
	}
	text = {
		localization_key = lmf_my_relation_chaplain_first_name_no_comma
		trigger = {
			scope:second = {
				is_councillor = yes
				has_council_position = councillor_court_chaplain
			}
		}
	}
	text = {
		localization_key = lmf_my_liege_no_comma
		trigger = {
			is_vassal_of = scope:second
		}
	}
	text = {
		localization_key = lmf_my_relation_titled_name_no_comma
		trigger = {
			scope:second = {
				any_spouse = { is_close_family_of = root }
			}
		}
	}
	text = {
		localization_key = lmf_my_firstname_extended_relative_spouse_relation_no_comma
		trigger = {
			scope:second = {
				primary_spouse ?= {
					OR = {
						is_cousin_of = root
						is_uncle_or_aunt_of = root
					}
				}
			}
		}
	}
	text = {
		localization_key = lmf_my_male_cousin_child_relation_no_comma
		trigger = {
			scope:second = {
				father ?= {
					is_cousin_of = root
					OR = {
						patrilinear_marriage = yes
						is_married = no
						primary_spouse = {
							NOT = { is_cousin_of = root }
						}
					}
				}
			}
		}
	}
	text = {
		localization_key = lmf_my_female_cousin_child_relation_no_comma
		trigger = {
			scope:second = {
				mother ?= {
					is_cousin_of = root
				}
			}
		}
	}
	text = {
		localization_key = lmf_my_extended_relative_spouse_relation_no_comma
		trigger = {
			scope:second = {
				primary_spouse ?= {
					OR = {
						is_nibling_of = root
						is_great_grandchild_of = root
						is_great_grandparent_of = root
					}
				}
			}
		}
	}
	text = {
		localization_key = lmf_my_male_nibling_child_relation_no_comma
		trigger = {
			scope:second = {
				father ?= {
					is_nibling_of = root
					OR = {
						patrilinear_marriage = yes
						is_married = no
						primary_spouse = {
							NOT = { is_nibling_of = root }
						}
					}
				}
			}
		}
	}
	text = {
		localization_key = lmf_my_female_nibling_child_relation_no_comma
		trigger = {
			scope:second = {
				mother ?= {
					is_nibling_of = root
				}
			}
		}
	}
	text = {
		localization_key = lmf_my_relation_titled_name_no_comma
		trigger = {
			scope:second = {
				OR = {
					is_vassal_of = root
					is_councillor_of = root
					is_hostage_of = root
					AND = {
						is_courtier_of = root
						has_any_court_position = yes
					}
				}
			}
		}
	}
	text = {
		localization_key = lmf_my_close_relative_courtier_relation_no_comma
		trigger = {
			scope:second = {
				exists = liege
				is_courtier = yes
				liege = {
					NOT = { this = root }
					is_close_or_extended_family_of = root
				}
				OR = {
					has_any_court_position = yes
					is_consort_of = scope:second.liege
					any_close_family_member = {
						is_close_family_of = scope:second
						is_consort_of = scope:second.liege
					}
					is_councillor_of = scope:second.liege
					is_hostage_of = scope:second.liege
					is_knight_of = scope:second.liege
					is_vassal_of = scope:second.liege
					AND = {
						has_relation_lover = scope:second.liege
						NOT = { lover_is_secret_trigger = { CHARACTER = scope:second.liege } }
					}
				}
			}
		}
	}
	text = {
		localization_key = lmf_my_vassal_courtier_relation_no_comma
		trigger = {
			scope:second = {
				exists = liege
				is_courtier = yes
				liege = {
					NOT = { this = root }
					is_vassal_or_below_of = root
				}
				OR = {
					has_any_court_position = yes
					is_consort_of = scope:second.liege
					any_close_family_member = {
						is_close_family_of = scope:second
						is_consort_of = scope:second.liege
					}
					is_councillor_of = scope:second.liege
					is_hostage_of = scope:second.liege
					is_knight_of = scope:second.liege
					AND = {
						has_relation_lover = scope:second.liege
						NOT = { lover_is_secret_trigger = { CHARACTER = scope:second.liege } }
					}
				}
			}
		}
	}
	text = {
		localization_key = lmf_my_relation_first_name_no_comma
		fallback = yes
	}
}

my_child_reference = {
	type = character

	text = {
		localization_key = lmf_eldest_child
		trigger = {
			any_sibling = {
				sex_same_as = root
				scope:second = { is_parent_of = prev }
				count > 1
			}
			NOT = {
				any_sibling = {
					sex_same_as = root
					scope:second = { is_parent_of = prev }
					age >= root.age
				}
			}
		}
	}
	text = {
		localization_key = lmf_youngest_child
		trigger = {
			any_sibling = {
				sex_same_as = root
				scope:second = { is_parent_of = prev }
				count > 1
			}
			NOT = {
				any_sibling = {
					sex_same_as = root
					scope:second = { is_parent_of = prev }
					age <= root.age
				}
			}
		}
	}
	text = {
		localization_key = lmf_middle_child
		trigger = {
			any_sibling = {
				sex_same_as = root
				scope:second = { is_parent_of = prev }
				count = 2
			}
			any_sibling = {
				sex_same_as = root
				scope:second = { is_parent_of = prev }
				age > root.age
			}
			any_sibling = {
				sex_same_as = root
				scope:second = { is_parent_of = prev }
				age < root.age
			}
		}
	}
	text = {
		localization_key = lmf_elder_child
		trigger = {
			any_sibling = {
				sex_same_as = root
				scope:second = { is_parent_of = prev }
				count = 1
			}
			any_sibling = {
				sex_same_as = root
				scope:second = { is_parent_of = prev }
				age < root.age
			}
		}
	}
	text = {
		localization_key = lmf_younger_child
		trigger = {
			any_sibling = {
				sex_same_as = root
				scope:second = { is_parent_of = prev }
				count = 1
			}
			any_sibling = {
				sex_same_as = root
				scope:second = { is_parent_of = prev }
				age > root.age
			}
		}
	}
	text = {
		localization_key = lmf_little_child_default
		trigger = {
			age < 8
		}
	}
	text = {
		localization_key = lmf_young_child_default
		trigger = {
			age < 13
		}
	}
	text = {
		localization_key = lmf_teenage_child_default
		trigger = {
			is_adult = no
		}
	}
	text = {
		localization_key = lmf_child_default
		fallback = yes
	}
}

GetGirlsBoysOpposite = {
	type = character

	text = {
		trigger = {
			is_male = yes
		}
		localization_key = CHARACTER_GIRLS
	}
	text = {
		trigger = {
			is_female = yes
		}
		localization_key = CHARACTER_BOYS
	}
}

GetWomanManOpposite = {
	type = character

	text = {
		trigger = {
			is_male = yes
		}
		localization_key = CHARACTER_WOMAN
	}
	text = {
		trigger = {
			is_female = yes
		}
		localization_key = CHARACTER_MAN
	}
}

GetMotherFatherOpposite = {
	type = character

	text = {
		trigger = {
			is_male = yes
		}
		localization_key = MOTHER
	}
	text = {
		trigger = {
			is_female = yes
		}
		localization_key = FATHER
	}
}

WomenMenGirlsBoys = {
	type = character
	text = {
		trigger = {
			is_adult = yes
			is_female = yes
		}
		localization_key = CHARACTER_WOMEN
	}

	text = {
		trigger = {
			is_adult = yes
			is_male = yes
		}
		localization_key = CHARACTER_MEN
	}

	text = {
		trigger = { is_female = yes }
		localization_key = CHARACTER_GIRLS
	}

	text = {
		trigger = { is_male = yes }
		localization_key = CHARACTER_BOYS
	}
}

QuirkNounPos = {
	type = character
	text = {localization_key = quirk_noun_positive}
}

GetBackupCourtPosition = {
	type = character

	text = {
		trigger = { var:backup_court_position ?= flag:royal_architect }
		localization_key = court_position_architect
	}
	text = {
		trigger = { var:backup_court_position ?= flag:seneschal }
		localization_key = court_position_seneschal
	}
	text = {
		trigger = { var:backup_court_position ?= flag:court_tutor }
		localization_key = court_position_tutor
	}
	text = {
		trigger = { var:backup_court_position ?= flag:high_almoner }
		localization_key = court_position_almoner
	}
	text = {
		trigger = { var:backup_court_position ?= flag:court_physician }
		localization_key = court_position_physician
	}
	text = {
		trigger = { var:backup_court_position ?= flag:antiquarian }
		localization_key = court_position_antiquarian
	}
	text = {
		trigger = { var:backup_court_position ?= flag:master_of_horse }
		localization_key = court_position_horse
	}
	text = {
		trigger = { var:backup_court_position ?= flag:bodyguard }
		localization_key = court_position_bodyguard
	}
	text = {
		trigger = { var:backup_court_position ?= flag:champion }
		localization_key = court_position_champion
	}
	text = {
		trigger = { var:backup_court_position ?= flag:master_of_hunt }
		localization_key = court_position_hunt
	}
	text = {
		trigger = { var:backup_court_position ?= flag:court_poet }
		localization_key = court_position_poet
	}
	text = {
		trigger = { var:backup_court_position ?= flag:court_musician }
		localization_key = court_position_musician
	}
	text = {
		trigger = { var:backup_court_position ?= flag:cupbearer }
		localization_key = court_position_cupbearer
	}
	text = {
		trigger = { var:backup_court_position ?= flag:lady_in_waiting }
		localization_key = court_position_lady
	}
	text = {
		trigger = { var:backup_court_position ?= flag:chief_eunuch }
		localization_key = court_position_eunuch
	}
	text = {
		trigger = { var:backup_court_position ?= flag:court_gardener }
		localization_key = court_position_gardener
	}
	text = {
		trigger = { var:backup_court_position ?= flag:court_artificer }
		localization_key = court_position_artificer
	}
	text = {
		trigger = { var:backup_court_position ?= flag:cultural_emissary }
		localization_key = court_position_emissary
	}
	text = {
		trigger = { var:backup_court_position ?= flag:chief_qadi }
		localization_key = court_position_qadi
	}
	text = {
		trigger = { var:backup_court_position ?= flag:garuda }
		localization_key = court_position_garuda
	}
	text = {
		trigger = { var:backup_court_position ?= flag:keeper_of_swans }
		localization_key = court_position_keeper_of_swans
	}
	text = {
		trigger = { var:backup_court_position ?= flag:travel_leader }
		localization_key = court_position_travel_leader
	}
	text = {
		trigger = { var:backup_court_position ?= flag:akolouthos }
		localization_key = court_position_akolouthos
	}
	text = {
		trigger = { var:backup_court_position ?= flag:chronicler }
		localization_key = court_position_chronicler
	}
	text = {
		trigger = { var:backup_court_position ?= flag:charioteer }
		localization_key = court_position_charioteer
	}
	text = {
		trigger = { var:backup_court_position ?= flag:bookmaker }
		localization_key = court_position_bookmaker
	}
	text = {
		trigger = { var:backup_court_position ?= flag:executioner }
		localization_key = court_position_executioner
	}
	text = {
		trigger = { var:backup_court_position ?= flag:food_taster }
		localization_key = court_position_food_taster
	}
	text = {
		trigger = { var:backup_court_position ?= flag:court_jester }
		localization_key = court_position_court_jester
	}
}

BetrothalMarriage = {
	type = character

	text = {
		trigger = {
			OR = {
				is_adult = no
				scope:second = { is_adult = no }
			}
		}
		localization_key = game_concept_betrothal
	}
	text = {
		fallback = yes
		localization_key = game_concept_marriage
	}
}

