# 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 = {
	name = GetStateCategory
	text = {
		trigger = {
			is_wasteland_state = yes
		}
		localization_key = STATE_CATEGORY_WASTELAND
	}
	text = {
		trigger = {
			is_pastoral_state = yes
		}
		localization_key = STATE_CATEGORY_PASTORAL
	}
	text = {
		trigger = {
			is_rural_state = yes
		}
		localization_key = STATE_CATEGORY_RURAL
	}
	text = {
		trigger = {
			is_town_state = yes
		}
		localization_key = STATE_CATEGORY_TOWN
	}
	text = {
		trigger = {
			is_large_town_state = yes
		}
		localization_key = STATE_CATEGORY_LARGE_TOWN
	}
	text = {
		trigger = {
			is_city_state = yes
		}
		localization_key = STATE_CATEGORY_CITY
	}
	text = {
		trigger = {
			is_large_city_state = yes
		}
		localization_key = STATE_CATEGORY_LARGE_CITY
	}
	text = {
		trigger = {
			is_metropolis_state = yes
		}
		localization_key = STATE_CATEGORY_METROPOLIS
	}
	text = {
		trigger = {
			is_megalopolis_state = yes
		}
		localization_key = STATE_CATEGORY_MEGALOPOLIS
	}
}