# Allows you to create your own dynamic keys
# to be called in localization.
# defined_text -> this is it, we're defining the text
# text -> a discrete entry that can be picked to display in loc.
# trigger -> determines if a text entry will be picked or not.
# (The triggers need to be valid for the scope the key is called in
# (eg Root or From.From).)
# localization_key -> points to the localization key
# that'll be used if trigger passes

defined_text = { # Country/leader/pop/species scope
	name = GetInsultDesc
	text = {
		trigger = {
			has_authority = auth_xilin_mind
		}
		localization_key = ACTION_INSULT_DESC_A
	}
	text = {
		trigger = {
			NOT = { has_authority = auth_xilin_mind }
		}
		localization_key = ACTION_INSULT_DESC_B
	}
}

#øӹ
defined_text = { # Country/leader/pop/species scope
	name = GetSubjetName
	text = {
		trigger = {
			is_subject_type = xilin_discipline
		}
		localization_key = SUBJECT_xilin_discipline
	}
	text = {
		trigger = {
			is_subject_type = xilin_servant
		}
		localization_key = SUBJECT_xilin_servant
	}
	text = {
		trigger = {
			is_subject_type = protectorate
		}
		localization_key = SUBJECT_protectorate
	}
	text = {
		trigger = {
			is_subject_type = vassal
		}
		localization_key = SUBJECT_vassal
	}
	text = {
		trigger = {
			is_subject_type = xilin_follower_protector
		}
		localization_key = SUBJECT_xilin_follower_protector
	}
	text = {
		trigger = {
			is_subject_type = xilin_follower_vassal
		}
		localization_key = SUBJECT_xilin_follower_vassal
	}
	text = {
		trigger = {
			is_subject_type = xilin_blessed
		}
		localization_key = SUBJECT_xilin_blessed
	}
}
