
GetInviteToActivityFlavor = {
	type = character

	### TOURNAMENT

	text = {
		trigger = {
			involved_activity = {
				has_activity_type = activity_tournament
				NOT = { has_current_phase = tournament_phase_horse_race }
			}
			scope:second = {
				is_adult = yes
				# Exclude clergy who don't fight
				trigger_if = {
					limit = { is_clergy = yes }
					faith = { has_doctrine_parameter = clergy_can_fight }
				}
				can_be_combatant_based_on_gender_trigger = { ARMY_OWNER = root }
				is_healthy = yes
			}
		}
		localization_key = tournament_invite_flavor_contestant
	}

	text = {
		trigger = {
			involved_activity = { has_activity_type = activity_tournament }
		}
		localization_key = tournament_invite_flavor_standard
	}

	### WEDDING

	text = {
		trigger = {
			involved_activity = {
				has_activity_type = activity_wedding
				special_guest:spouse_2 ?= scope:second
			}
		}
		localization_key = wedding_invite_flavor_betrothed
	}

	text = {
		trigger = {
			involved_activity = {
				has_activity_type = activity_wedding
				special_guest:spouse_1 ?= root
			}
		}
		localization_key = wedding_invite_flavor_host
	}

	text = {
		trigger = {
			involved_activity = { has_activity_type = activity_wedding }
		}
		localization_key = wedding_invite_flavor_standard
	}

	### TOUR

	text = {
		trigger = {
			involved_activity = { has_activity_type = activity_tour }
		}
		localization_key = invite_to_activity_flavor_tour
	}

	### FEAST

	text = {
		trigger = {
			involved_activity = {
				has_activity_type = activity_feast
				OR = {
					special_guest:honorary_guest_regular ?= scope:second
					special_guest:honorary_guest ?= scope:second
				}
			}
		}
		localization_key = feast_invite_flavor_honor
	}

	text = {
		trigger = {
			involved_activity = {
				has_activity_type = activity_feast
				NOR = {
					special_guest:honorary_guest_regular ?= scope:second
					special_guest:honorary_guest ?= scope:second
				}
			}
		}
		localization_key = feast_invite_flavor_standard
	}

	### HUNT

	text = {
		trigger = {
			involved_activity = {
				has_activity_type = activity_hunt
				has_activity_option = { category = special_type option = hunt_type_standard }
				NOT = {
					activity_location.county = { has_county_modifier = hunt_sighting_dangerous_modifier }
				}
			}
		}
		localization_key = hunt_invite_flavor_standard
	}

	text = {
		trigger = {
			involved_activity = {
				has_activity_type = activity_hunt
				has_activity_option = { category = special_type option = hunt_type_standard }
				activity_location.county = { has_county_modifier = hunt_sighting_dangerous_modifier }
			}
		}
		localization_key = hunt_invite_flavor_dangerous
	}

	text = {
		trigger = {
			involved_activity = {
				has_activity_type = activity_hunt
				has_activity_option = { category = special_type option = hunt_type_legendary }
			}
		}
		localization_key = hunt_invite_flavor_legendary
	}

	text = {
		trigger = {
			involved_activity = {
				has_activity_type = activity_hunt
				has_activity_option = { category = special_type option = hunt_type_falconry }
			}
		}
		localization_key = hunt_invite_flavor_falconry
	}

	### PILGRIMAGE

	text = {
		trigger = {
			involved_activity = {
				has_activity_type = activity_pilgrimage
			}
		}
		localization_key = invite_to_activity_flavor_pilgrimage
	}

	### PLAYDATE

	text = {
		trigger = {
			involved_activity = { has_activity_type = activity_playdate }
		}
		localization_key = invite_to_activity_flavor_playdate
	}

	### WITCH RITUAL

	text = {
		trigger = {
			involved_activity = { has_activity_type = activity_witch_ritual }
		}
		localization_key = invite_to_activity_flavor_witch_ritual
	}

	### GRUESOME FESTIVAL

	text = {
		trigger = {
			involved_activity = { has_activity_type = activity_gruesome_festival }
		}
		localization_key = invite_to_activity_flavor_gruesome_festival
	}

	### FALLBACK

	text = {
		trigger = { always = no }
		localization_key = invite_to_activity_flavor_fallback
		fallback = yes
	}
}

GetTournamentPrizeFlavor = {
	type = character

	text = {
		trigger = {
			involved_activity = {
				has_activity_type = activity_tournament
				has_activity_option = { category = tournament_option_prizes option = tournament_prizes_bad }
			}
		}
		localization_key = tournament_invite_flavor_bad_prizes
	}

	text = {
		trigger = {
			involved_activity = {
				has_activity_type = activity_tournament
				has_activity_option = { category = tournament_option_prizes option = tournament_prizes_normal }
			}
		}
		localization_key = tournament_invite_flavor_normal_prizes
	}

	text = {
		trigger = {
			involved_activity = {
				has_activity_type = activity_tournament
				has_activity_option = { category = tournament_option_prizes option = tournament_prizes_good }
			}
		}
		localization_key = tournament_invite_flavor_good_prizes
	}

	text = {
		trigger = {
			involved_activity = {
				has_activity_type = activity_tournament
				has_activity_option = { category = tournament_option_prizes option = tournament_prizes_very_good }
			}
		}
		localization_key = tournament_invite_flavor_very_good_prizes
	}

	text = {
		trigger = {
			involved_activity = {
				has_activity_type = activity_tournament
				has_activity_option = { category = tournament_option_prizes option = tournament_prizes_splendid }
			}
		}
		localization_key = tournament_invite_flavor_splendid_prizes
	}
}

GetTournamentFavor = {
	type = character

	text = {
		trigger = { 
			culture = { has_cultural_era_or_later = culture_era_early_medieval }
		}
		localization_key = tournament_favor_glove
	}

	text = {
		trigger = {
			culture = { has_cultural_era_or_later = culture_era_late_medieval }
		}
		localization_key = tournament_favor_sleeve
	}

	text = {
		trigger = { always = yes }
		localization_key = tournament_favor_scarf
	}
}

GetVersusRound = {
	type = activity

	text = {
		trigger = { var:contest_versus_progress ?= 0 }
		localization_key = tournament_versus_qualifiers
	}

	text = {
		trigger = { var:contest_versus_progress ?= 1 }
		localization_key = tournament_versus_semifinals
	}

	text = {
		trigger = { var:contest_versus_progress ?= 2 }
		localization_key = tournament_versus_final
	}
}

GetVersusContestEndFlavor = {
	type = character
	random_valid = yes

	text = {
		trigger = {
			involved_activity = { has_current_phase = tournament_phase_joust }
		}
		localization_key = tournament_versus_contest_end_flavor_joust_1
	}

	text = {
		trigger = {
			involved_activity = { has_current_phase = tournament_phase_joust }
		}
		localization_key = tournament_versus_contest_end_flavor_joust_2
	}

	text = {
		trigger = {
			involved_activity = { has_current_phase = tournament_phase_joust }
		}
		localization_key = tournament_versus_contest_end_flavor_joust_3
	}

	text = {
		trigger = {
			involved_activity = { has_current_phase = tournament_phase_wrestling }
		}
		localization_key = tournament_versus_contest_end_flavor_wrestling_1
	}

	text = {
		trigger = {
			involved_activity = { has_current_phase = tournament_phase_wrestling }
		}
		localization_key = tournament_versus_contest_end_flavor_wrestling_2
	}

	text = {
		trigger = {
			involved_activity = { has_current_phase = tournament_phase_wrestling }
		}
		localization_key = tournament_versus_contest_end_flavor_wrestling_3
	}

	text = {
		trigger = {
			involved_activity = { has_current_phase = tournament_phase_duel }
		}
		localization_key = tournament_versus_contest_end_flavor_duel_1
	}

	text = {
		trigger = {
			involved_activity = { has_current_phase = tournament_phase_duel }
		}
		localization_key = tournament_versus_contest_end_flavor_duel_2
	}

	text = {
		trigger = {
			involved_activity = { has_current_phase = tournament_phase_duel }
		}
		localization_key = tournament_versus_contest_end_flavor_duel_3
	}

	text = {
		trigger = {
			involved_activity = { has_current_phase = tournament_phase_board_game }
		}
		localization_key = tournament_versus_contest_end_flavor_board_game_1
	}

	text = {
		trigger = {
			involved_activity = { has_current_phase = tournament_phase_board_game }
		}
		localization_key = tournament_versus_contest_end_flavor_board_game_2
	}

	text = {
		trigger = {
			involved_activity = { has_current_phase = tournament_phase_board_game }
		}
		localization_key = tournament_versus_contest_end_flavor_board_game_3
	}
}

GetVersusContestImplementFlavor = {
	type = activity
	random_valid = yes

	text = {
		trigger = { has_current_phase = tournament_phase_joust }
		localization_key = tournament_versus_contest_implement_lance
	}

	text = {
		trigger = { has_current_phase = tournament_phase_joust }
		localization_key = tournament_versus_contest_implement_horse
	}

	text = {
		trigger = { has_current_phase = tournament_phase_wrestling }
		localization_key = tournament_versus_contest_implement_hands
	}

	text = {
		trigger = { has_current_phase = tournament_phase_wrestling }
		localization_key = tournament_versus_contest_implement_steps
	}

	text = {
		trigger = { has_current_phase = tournament_phase_duel }
		localization_key = tournament_versus_contest_implement_blade
	}

	text = {
		trigger = { has_current_phase = tournament_phase_duel }
		localization_key = tournament_versus_contest_implement_weapon
	}

	text = {
		trigger = { has_current_phase = tournament_phase_board_game }
		localization_key = tournament_versus_contest_implement_hand
	}

	text = {
		trigger = { has_current_phase = tournament_phase_board_game }
		localization_key = tournament_versus_contest_implement_piece
	}
}

GetGrotesque = {
	type = character
	random_valid = yes
	
	text = {
		trigger = {
			root.location = {	
				OR = {
					geographical_region = world_europe
					geographical_region = world_india
					geographical_region = world_africa
				}
			}
		}
		localization_key = get_grotesque_cynocephalus
		fallback = yes
	}
	
	text = {
		trigger = {
			root.location = {	
				OR = {
					geographical_region = world_india
					geographical_region = world_africa
					geographical_region = world_burma
					geographical_region = world_middle_east
				}
			}
		}
		localization_key = get_grotesque_blemee
	}
	
	text = {
		trigger = {
			root.location = {	
				OR = {
					geographical_region = world_india
					geographical_region = world_africa
					geographical_region = world_middle_east
				}
			}
		}
		localization_key = get_grotesque_sciapod
	}
}

GetGrotesquePlural = {
	type = character
	random_valid = yes
	
	text = {
		trigger = {
			root.location = {
				OR = {
					geographical_region = world_europe
					geographical_region = world_india
					geographical_region = world_africa
				}
			}
		}
		localization_key = get_grotesque_cynocephaly
		fallback = yes
	}
	
	text = {
		trigger = {
			root.location = {
				OR = {
					geographical_region = world_india
					geographical_region = world_africa
					geographical_region = world_burma
					geographical_region = world_middle_east
				}
			}
		}
		localization_key = get_grotesque_blemmyae
	}
	
	text = {
		trigger = {
			root.location = {	
				OR = {
					geographical_region = world_india
					geographical_region = world_africa
					geographical_region = world_middle_east
				}
			}
		}
		localization_key = get_grotesque_sciapodes
	}
}

GetPositiveChant = {
	type = character
	random_valid = yes

	text = {
		trigger = {
			involved_activity = { has_activity_type = activity_tournament }
		}
		localization_key = tournament_chant_positive_1
	}

	text = {
		trigger = {
			involved_activity = { has_activity_type = activity_tournament }
		}
		localization_key = tournament_chant_positive_2
	}

	text = {
		trigger = {
			involved_activity = { has_activity_type = activity_tournament }
		}
		localization_key = tournament_chant_positive_3
	}

	text = {
		trigger = {
			involved_activity = { has_activity_type = activity_tournament }
		}
		localization_key = tournament_chant_positive_4
	}
}

GetNegativeChant = {
	type = character
	random_valid = yes

	text = {
		trigger = {
			involved_activity = { has_activity_type = activity_tournament }
		}
		localization_key = tournament_chant_negative_1
	}

	text = {
		trigger = {
			involved_activity = { has_activity_type = activity_tournament }
		}
		localization_key = tournament_chant_negative_2
	}

	text = {
		trigger = {
			involved_activity = { has_activity_type = activity_tournament }
		}
		localization_key = tournament_chant_negative_3
	}

	text = {
		trigger = {
			involved_activity = { has_activity_type = activity_tournament }
		}
		localization_key = tournament_chant_negative_4
	}
	text = {
		trigger = {
			involved_activity = { has_activity_type = activity_tournament }
		}
		localization_key = tournament_chant_negative_5
	}
}

GetNegativeInsultChant = {
	type = character
	random_valid = yes

	text = {
		trigger = {
			involved_activity = { has_activity_type = activity_tournament }
			OR = {
				has_trait = gluttonous
				current_weight > 50
			}
		}
		localization_key = tournament_chant_negative_fat_1
	}
}

GoodBad = {
	type = character
	random_valid = yes

	text = {
		trigger = { has_character_flag = good_thing_flag }
		localization_key = good_thing
	}
	
	text = {
		trigger = { has_character_flag = bad_thing_flag }
		localization_key = bad_thing
	}
}

GetVersusContestPhase = {
	type = activity

	text = {
		trigger = { var:contest_versus_progress = 0 }
		localization_key = tournament_contest_versus_quarter
	}

	text = {
		trigger = { var:contest_versus_progress = 1 }
		localization_key = tournament_contest_versus_semi
	}

	text = {
		trigger = { var:contest_versus_progress = 2 }
		localization_key = tournament_contest_versus_final
	}
}

GetRandomWonContest = {
	type = character

	text = {
		trigger = {
			tournament_character_any_contest_winner_trigger = { CONTEST = joust CHAR = root }
		}
		localization_key = tournament_phase_joust
	}
	text = {
		trigger = {
			tournament_character_any_contest_winner_trigger = { CONTEST = wrestling CHAR = root }
		}
		localization_key = tournament_phase_wrestling
	}
	text = {
		trigger = {
			tournament_character_any_contest_winner_trigger = { CONTEST = duel CHAR = root }
		}
		localization_key = tournament_phase_duel
	}
	text = {
		trigger = {
			tournament_character_any_contest_winner_trigger = { CONTEST = board_game CHAR = root }
		}
		localization_key = tournament_phase_board_game
	}
	text = {
		trigger = {
			tournament_character_any_contest_winner_trigger = { CONTEST = archery CHAR = root }
		}
		localization_key = tournament_phase_archery
	}
	text = {
		trigger = {
			tournament_character_any_contest_winner_trigger = { CONTEST = recital CHAR = root }
		}
		localization_key = tournament_phase_recital
	}
	text = {
		trigger = {
			tournament_character_any_contest_winner_trigger = { CONTEST = horse_race CHAR = root }
		}
		localization_key = tournament_phase_horse_race
	}
	text = {
		trigger = { always = no }
		fallback = yes
		localization_key = tournament_contest
	}
}

GetContestHorseRaceName = {
	type = character

	text = {
		trigger = { exists = var:contest_horse_race_name_2 }
		localization_key = contest_horse_race_name_2
	}

	text = {
		trigger = { always = no }
		fallback = yes
		localization_key = contest_horse_race_name
	}
}

ContestHorseRaceName = {
	type = character
	## FAITH
	# BUDDHISM
	text = {
		trigger = { var:contest_horse_race_name = flag:kanthaka }
		localization_key = warhorse_name_kanthaka
	}
	# GODS/SAINTS
	text = {
		trigger = { var:contest_horse_race_name = flag:faith_fate_god }
		localization_key = racehorse_name_faith_fate_god
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:faith_knowledge_god }
		localization_key = racehorse_name_faith_knowledge_god
	}
    text = {
		trigger = { var:contest_horse_race_name = flag:faith_night_god }
		localization_key = racehorse_name_faith_night_god
	}
    text = {
		trigger = { var:contest_horse_race_name = flag:faith_trickster_god }
		localization_key = racehorse_name_faith_trickster_god
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:faith_war_god }
		localization_key = racehorse_name_faith_war_god
	}
    text = {
		trigger = { var:contest_horse_race_name = flag:faith_water_god }
		localization_key = racehorse_name_faith_water_god
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:faith_wealth_god }
		localization_key = racehorse_name_faith_wealth_god
	}
	# HINDUISM
	text = {
		trigger = { var:contest_horse_race_name = flag:dadhi_kra }
		localization_key = warhorse_name_dadhi_kra
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:devadatta }
		localization_key = warhorse_name_devadatta
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:dyauspitar }
		localization_key = racehorse_name_dyauspitar
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:keshi }
		localization_key = warhorse_name_keshi
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:uchchaihshravas }
		localization_key = warhorse_name_uchchaihshravas
	}
	# ISLAM
	text = {
		trigger = { var:contest_horse_race_name = flag:abbayan }
		localization_key = racehorse_name_abbayan
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:al_murtajiz }
		localization_key = racehorse_name_al_murtajiz
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:al_sakb }
		localization_key = racehorse_name_al_sakb
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:al_yasub }
		localization_key = racehorse_name_al_yasub
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:buraq }
		localization_key = warhorse_name_buraq
	} 
	text = {
		trigger = { var:contest_horse_race_name = flag:hadban }
		localization_key = racehorse_name_hadban
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:haizum }
		localization_key = warhorse_name_haizum
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:hamdani }
		localization_key = racehorse_name_hamdani
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:kuhaylan }
		localization_key = racehorse_name_kuhaylan
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:lihaf }
		localization_key = racehorse_name_lihaf
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:lizaz }
		localization_key = racehorse_name_lizaz
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:seqlawi }
		localization_key = racehorse_name_seqlawi
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:zuljanah }
		localization_key = warhorse_name_zuljanah
	}
	# NORSE
	text = {
		trigger = { var:contest_horse_race_name = flag:alsvidr }
		localization_key = racehorse_name_alsvidr
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:arvakr }
		localization_key = racehorse_name_arvakr
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:falhofnir }
		localization_key = racehorse_name_falhofnir
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:glad }
		localization_key = racehorse_name_glad
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:glaer }
		localization_key = racehorse_name_glaer
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:gulltoppr }
		localization_key = racehorse_name_gulltoppr
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:hofvarpnir }
		localization_key = racehorse_name_hofvarpnir
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:hrimfaxi }
		localization_key = racehorse_name_hrimfaxi
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:skinfaxi }
		localization_key = racehorse_name_skinfaxi
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:sleipnir }
		localization_key = warhorse_name_sleipnir
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:svadilfari }
		localization_key = racehorse_name_svadilfari
	}
	## CULTURE
	# ARABIC
	text = {
		trigger = { var:contest_horse_race_name = flag:al_dinari }
		localization_key = racehorse_name_al_dinari
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:al_hujays }
		localization_key = racehorse_name_al_hujays
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:al_ward }
		localization_key = racehorse_name_al_ward
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:awaj }
		localization_key = racehorse_name_awaj
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:dhi_al_uqqal }
		localization_key = racehorse_name_dhi_al_uqqal
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:sabal }
		localization_key = racehorse_name_sabal
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:zad_al_rakib }
		localization_key = racehorse_name_zad_al_rakib
	}
	# CELTIC
	text = {
		trigger = { var:contest_horse_race_name = flag:dub_sainglend }
		localization_key = racehorse_name_dub_sainglend
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:enbarr }
		localization_key = racehorse_name_enbarr
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:gringolet }
		localization_key = racehorse_name_gringolet
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:hengroen }
		localization_key = racehorse_name_hengroen
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:kelpie }
		localization_key = racehorse_name_kelpie
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:liath_macha }
		localization_key = racehorse_name_liath_macha
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:llamrei }
		localization_key = warhorse_name_llamrei
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:morvarch }
		localization_key = racehorse_name_morvarch
	}
	# FRANKISH
	text = {
		trigger = { var:contest_horse_race_name = flag:baucent }
		localization_key = racehorse_name_baucent
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:bayard }
		localization_key = racehorse_name_bayard
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:sorel }
		localization_key = racehorse_name_sorel
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:tencendur }
		localization_key = warhorse_name_tencendur
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:veillantif }
		localization_key = warhorse_name_veillantif
	}
	# GRECO-ROMAN
	text = {
		trigger = { var:contest_horse_race_name = flag:arion }
		localization_key = racehorse_name_arion
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:asturcus }
		localization_key = racehorse_name_asturcus
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:balius }
		localization_key = warhorse_name_balius
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:boreas }
		localization_key = warhorse_name_boreas
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:bucephalus }
		localization_key = warhorse_name_bucephalus
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:caesar }
		localization_key = racehorse_name_caesar
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:chiron }
		localization_key = racehorse_name_chiron
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:epona }
		localization_key = racehorse_name_epona
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:equuleus }
		localization_key = racehorse_name_equuleus
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:hippocampus }
		localization_key = racehorse_name_hippocampus
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:incitatus }
		localization_key = warhorse_name_incitatus
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:notus }
		localization_key = racehorse_name_notus
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:pedasos }
		localization_key = racehorse_name_pedasos
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:pegasus }
		localization_key = racehorse_name_pegasus
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:rhaebus }
		localization_key = racehorse_name_rhaebus
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:seianian }
		localization_key = warhorse_name_seianian
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:sterope }
		localization_key = racehorse_name_sterope
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:xanthos }
		localization_key = warhorse_name_xanthos
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:zephryus }
		localization_key = racehorse_name_zephryus
	}
 	# IBERIAN
 	text = { # Altivo - El Dorado
		trigger = { var:contest_horse_race_name = flag:altivo }
		localization_key = racehorse_name_altivo
	}
	text = { # Babieca - El Cid's
		trigger = { var:contest_horse_race_name = flag:babieca }
		localization_key = racehorse_name_babieca
	}
	text = { # Rocinante - Don Quixote's
		trigger = { var:contest_horse_race_name = flag:rocinante }
		localization_key = racehorse_name_rocinante
	}
	# INDO-ARYAN
 	text = { # Atak - Pratap's
		trigger = { var:contest_horse_race_name = flag:atak }
		localization_key = racehorse_name_atak
	}
	text = { # Chetak - Pratap's
		trigger = { var:contest_horse_race_name = flag:chetak }
		localization_key = racehorse_name_chetak
	}
	text = { # Leili - Ranjit's
		trigger = { var:contest_horse_race_name = flag:laili }
		localization_key = racehorse_name_laili
	}
	text = { # Natak - Pratap's
		trigger = { var:contest_horse_race_name = flag:natak }
		localization_key = racehorse_name_natak
	}
	# MONGOLIC
	text = { # Aranjagaan - Jangar's
		trigger = { var:contest_horse_race_name = flag:aranjagaan }
		localization_key = warhorse_name_aranjagaan
	}
	text = { # Oyomaa - Jangar's
		trigger = { var:contest_horse_race_name = flag:oyomaa }
		localization_key = racehorse_name_oyomaa
	}
	text = { # Tolin Khul - folk song
		trigger = { var:contest_horse_race_name = flag:tolin_khul }
		localization_key = racehorse_name_tolin_khul
	}
	# PERSIAN
	text = { # Rahbar - Akbar's
		trigger = { var:contest_horse_race_name = flag:rahbar }
		localization_key = racehorse_name_rahbar
	}
	text = { # Rakhsh - Rostam's
		trigger = { var:contest_horse_race_name = flag:rakhsh }
		localization_key = racehorse_name_rakhsh
	}
	# SCANDINAVIAN
	text = { # Grani - Sigurd's
		trigger = { var:contest_horse_race_name = flag:grani }
		localization_key = racehorse_name_grani
	}
	# SLAVIC
	text = {
		trigger = { var:contest_horse_race_name = flag:burko }
		localization_key = warhorse_name_burko
	}
	text = { # Sivko-Burko - Ivan the Fool's
		trigger = { var:contest_horse_race_name = flag:sivko_burko }
		localization_key = racehorse_name_sivko_burko
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:sivko }
		localization_key = racehorse_name_sivko
	}
	# TURKIC
	text = { # G'irot - Koroghlu's
		trigger = { var:contest_horse_race_name = flag:girot }
		localization_key = racehorse_name_girot
	}
	text = { # Tulpar - mythological
		trigger = { var:contest_horse_race_name = flag:tulpar }
		localization_key = racehorse_name_tulpar
	}
	## COLOR
    text = {
		trigger = { var:contest_horse_race_name = flag:bay }
		localization_key = racehorse_name_bay
	}
    text = {
		trigger = { var:contest_horse_race_name = flag:black }
		localization_key = racehorse_name_black
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:blue }
		localization_key = racehorse_name_blue
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:brindle }
		localization_key = racehorse_name_brindle
	}
    text = {
		trigger = { var:contest_horse_race_name = flag:buckskin }
		localization_key = racehorse_name_buckskin
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:chestnut }
		localization_key = racehorse_name_chestnut
	}
    text = {
		trigger = { var:contest_horse_race_name = flag:cloud }
		localization_key = racehorse_name_cloud
	}
    text = {
		trigger = { var:contest_horse_race_name = flag:cream }
		localization_key = racehorse_name_cream
	}
    text = {
		trigger = { var:contest_horse_race_name = flag:crimson }
		localization_key = racehorse_name_crimson
	}
    text = {
		trigger = { var:contest_horse_race_name = flag:dapple }
		localization_key = racehorse_name_dapple
	}
    text = {
		trigger = { var:contest_horse_race_name = flag:dawn }
		localization_key = racehorse_name_dawn
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:dun }
		localization_key = racehorse_name_dun
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:dusk }
		localization_key = racehorse_name_dusk
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:flaxen }
		localization_key = racehorse_name_flaxen
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:golden }
		localization_key = racehorse_name_golden
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:gray }
		localization_key = racehorse_name_gray
	}
    text = {
		trigger = { var:contest_horse_race_name = flag:leopard }
		localization_key = racehorse_name_leopard
	}
    text = {
		trigger = { var:contest_horse_race_name = flag:milk }
		localization_key = racehorse_name_milk
	}
    text = {
		trigger = { var:contest_horse_race_name = flag:night }
		localization_key = racehorse_name_night
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:pearl }
		localization_key = racehorse_name_pearl
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:red }
		localization_key = racehorse_name_red
	}
    text = {
		trigger = { var:contest_horse_race_name = flag:roan }
		localization_key = racehorse_name_roan
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:rose }
		localization_key = racehorse_name_rose
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:ruby }
		localization_key = racehorse_name_ruby
	}
    text = {
		trigger = { var:contest_horse_race_name = flag:scarlet }
		localization_key = racehorse_name_scarlet
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:shade }
		localization_key = racehorse_name_shade
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:shadow }
		localization_key = racehorse_name_shadow
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:silk }
		localization_key = racehorse_name_silk
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:silver }
		localization_key = racehorse_name_silver
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:smoke }
		localization_key = racehorse_name_smoke
	}
    text = {
		trigger = { var:contest_horse_race_name = flag:snow }
		localization_key = racehorse_name_snow
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:sorrel }
		localization_key = racehorse_name_sorrel
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:sun }
		localization_key = racehorse_name_sun
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:tawny }
		localization_key = racehorse_name_tawny
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:yellow }
		localization_key = racehorse_name_yellow
	}
	## ADJECTIVE
    text = {
		trigger = { var:contest_horse_race_name = flag:brave }
		localization_key = racehorse_name_brave
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:brisk }
		localization_key = racehorse_name_brisk
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:long }
		localization_key = racehorse_name_long
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:speed }
		localization_key = racehorse_name_speed
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:storm }
		localization_key = racehorse_name_storm
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:swift }
		localization_key = racehorse_name_swift
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:thunder }
		localization_key = racehorse_name_thunder
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:wind }
		localization_key = racehorse_name_wind
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:wave }
		localization_key = racehorse_name_wave
	}
	## GENERIC
	text = {
		trigger = { var:contest_horse_race_name = flag:abbess }
		localization_key = racehorse_name_abbess
	}
    text = {
		trigger = { var:contest_horse_race_name = flag:abbot }
		localization_key = warhorse_name_abbot
	}
    text = {
		trigger = { var:contest_horse_race_name = flag:adamant }
		localization_key = racehorse_name_adamant
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:agile }
		localization_key = racehorse_name_agile
	}
    text = {
		trigger = { var:contest_horse_race_name = flag:charger }
		localization_key = warhorse_name_charger
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:chaser }
		localization_key = racehorse_name_chestnut
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:chieftain }
		localization_key = racehorse_name_chieftain
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:chieftess }
		localization_key = racehorse_name_chieftess
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:commander }
		localization_key = racehorse_name_commander
	}
    text = {
		trigger = { var:contest_horse_race_name = flag:cyclone }
		localization_key = racehorse_name_cyclone
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:deluge }
		localization_key = racehorse_name_deluge
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:downpour }
		localization_key = racehorse_name_downpour
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:endurance }
		localization_key = racehorse_name_endurance
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:faithful }
		localization_key = racehorse_name_faithful
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:flame }
		localization_key = racehorse_name_flame
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:flash }
		localization_key = racehorse_name_flash
	}
    text = {
		trigger = { var:contest_horse_race_name = flag:fleet }
		localization_key = racehorse_name_fleet
	}
    text = {
		trigger = { var:contest_horse_race_name = flag:forthright }
		localization_key = racehorse_name_forthright
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:frost }
		localization_key = racehorse_name_frost
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:fury }
		localization_key = racehorse_name_fury
	}
    text = {
		trigger = { var:contest_horse_race_name = flag:gale }
		localization_key = racehorse_name_gale
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:hare }
		localization_key = racehorse_name_haste
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:haste }
		localization_key = racehorse_name_hare
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:intrepid }
		localization_key = racehorse_name_intrepid
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:lady }
		localization_key = racehorse_name_winner
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:leader }
		localization_key = racehorse_name_leader
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:lightning }
		localization_key = racehorse_name_lightning
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:lord }
		localization_key = racehorse_name_winner
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:lucky }
		localization_key = racehorse_name_lucky
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:majesty }
		localization_key = racehorse_name_majesty
	}
    text = {
		trigger = { var:contest_horse_race_name = flag:marshal }
		localization_key = racehorse_name_marshal
	}
    text = {
		trigger = { var:contest_horse_race_name = flag:mule }
		localization_key = racehorse_name_mule
	}
    text = {
		trigger = { var:contest_horse_race_name = flag:plucky }
		localization_key = racehorse_name_plucky
	}
    text = {
		trigger = { var:contest_horse_race_name = flag:prancer }
		localization_key = warhorse_name_prancer
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:pride }
		localization_key = racehorse_name_pride
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:prince }
		localization_key = racehorse_name_prince
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:princess }
		localization_key = racehorse_name_princess
	}
    text = {
		trigger = { var:contest_horse_race_name = flag:rapid }
		localization_key = racehorse_name_rapid
	}
    text = {
		trigger = { var:contest_horse_race_name = flag:resolute }
		localization_key = racehorse_name_resolute
	}
    text = {
		trigger = { var:contest_horse_race_name = flag:seneschal }
		localization_key = racehorse_name_seneschal
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:shining }
		localization_key = racehorse_name_shining
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:snowflake }
		localization_key = racehorse_name_snowflake
	}
	text = { # Spirit
		trigger = { var:contest_horse_race_name = flag:spirit }
		localization_key = racehorse_name_spirit
	}
    text = {
		trigger = { var:contest_horse_race_name = flag:steadfast }
		localization_key = racehorse_name_steadfast
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:strength }
		localization_key = racehorse_name_strength
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:sunlight }
		localization_key = racehorse_name_sunlight
	}
    text = {
		trigger = { var:contest_horse_race_name = flag:tenacity }
		localization_key = racehorse_name_tenacity
	}
    text = {
		trigger = { var:contest_horse_race_name = flag:tempest }
		localization_key = racehorse_name_tempest
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:thunderclap }
		localization_key = racehorse_name_thunderclap
	}
    text = {
		trigger = { var:contest_horse_race_name = flag:tornado }
		localization_key = racehorse_name_tornado
	}
    text = {
		trigger = { var:contest_horse_race_name = flag:typhoon }
		localization_key = racehorse_name_typhoon
	}
    text = {
		trigger = { var:contest_horse_race_name = flag:unwavering }
		localization_key = racehorse_name_unwavering
	}
    text = {
		trigger = { var:contest_horse_race_name = flag:whirlwind }
		localization_key = racehorse_name_whirlwind
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:winner }
		localization_key = racehorse_name_winner
	}
	## FETCH
	text = {
		trigger = { var:contest_horse_race_name = flag:capital_name }
		localization_key = racehorse_name_capital_name
	}
		text = {
		trigger = { var:contest_horse_race_name = flag:capital_empire }
		localization_key = racehorse_name_capital_empire
	}
    text = {
		trigger = { var:contest_horse_race_name = flag:capital_pride }
		localization_key = racehorse_name_capital_pride
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:capital_county }
		localization_key = racehorse_name_capital_county
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:culture_knight }
		localization_key = racehorse_name_culture_knight
	}
    text = {
		trigger = { var:contest_horse_race_name = flag:culture_lightning }
		localization_key = racehorse_name_culture_lightning
	}
    text = {
		trigger = { var:contest_horse_race_name = flag:culture_thunder }
		localization_key = racehorse_name_culture_thunder
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:faith_adherent }
		localization_key = racehorse_name_faith_adherent
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:faith_afterlife }
		localization_key = racehorse_name_faith_afterlife
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:faith_bishop_female }
		localization_key = racehorse_name_faith_bishop_female
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:faith_bishop_male }
		localization_key = racehorse_name_faith_bishop_male
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:faith_crusade }
		localization_key = racehorse_name_faith_crusade
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:faith_devotee_female }
		localization_key = racehorse_name_faith_devotee_female
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:faith_devotee_male }
		localization_key = racehorse_name_faith_devotee_male
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:faith_divine_realm }
		localization_key = racehorse_name_faith_divine_realm
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:faith_pope }
		localization_key = racehorse_name_faith_pope
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:faith_priest_female }
		localization_key = racehorse_name_faith_priest_female
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:faith_priest_male }
		localization_key = racehorse_name_faith_priest_male
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:faith_symbol }
		localization_key = racehorse_name_faith_symbol
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:liege_title }
		localization_key = racehorse_name_liege_title
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:liege_title_name }
		localization_key = racehorse_name_liege_title_name
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:owner_title }
		localization_key = racehorse_name_owner_title
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:title_name }
		localization_key = racehorse_name_title_name
	}
	## TRAITS
	text = {
		trigger = { var:contest_horse_race_name = flag:berserker }
		localization_key = racehorse_name_berserker
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:crusader }
		localization_key = racehorse_name_crusader
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:pilgrim }
		localization_key = racehorse_name_pilgrim
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:varangian }
		localization_key = racehorse_name_varangian
	}
	## EASTER EGGS
	text = {
		trigger = { var:contest_horse_race_name = flag:arkle }
		localization_key = racehorse_name_arkle
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:beaujacques }
		localization_key = racehorse_name_beaujacques
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:big_dog }
		localization_key = racehorse_name_big_dog
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:big_honse }
		localization_key = racehorse_name_big_honse
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:binky }
		localization_key = racehorse_name_binky
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:black_beauty }
		localization_key = racehorse_name_black_beauty
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:boxer }
		localization_key = racehorse_name_boxer
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:brego }
		localization_key = racehorse_name_brego
	}
	text = { # Secretariat
		trigger = { var:contest_horse_race_name = flag:chancery }
		localization_key = racehorse_name_chancery
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:clip_clop }
		localization_key = racehorse_name_clip_clop
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:cloppy }
		localization_key = racehorse_name_cloppy
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:copenhagen }
		localization_key = racehorse_name_copenhagen
	}
	text = { # Desert Orchid
		trigger = { var:contest_horse_race_name = flag:desert_orchid }
		localization_key = racehorse_name_desert_orchid
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:dustkicker }
		localization_key = racehorse_name_dustkicker
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:donkey }
		localization_key = racehorse_name_donkey
	}
	text = { # Enable
		trigger = { var:contest_horse_race_name = flag:facilitate }
		localization_key = racehorse_name_facilitate
	}
	text = { # Frankel
		trigger = { var:contest_horse_race_name = flag:frenkel }
		localization_key = racehorse_name_frenkel
	}
	text = { # Man o' War
		trigger = { var:contest_horse_race_name = flag:galley }
		localization_key = racehorse_name_galley
	}
    text = {
		trigger = { var:contest_horse_race_name = flag:glitterhoof }
		localization_key = warhorse_name_glitterhoof
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:gymer }
		localization_key = racehorse_name_gymer
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:hoarse }
		localization_key = racehorse_name_hoarse
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:honse }
		localization_key = racehorse_name_honse
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:horsey }
		localization_key = racehorse_name_horsey
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:khan }
		localization_key = racehorse_name_khan
	}
	text = { # Napoleon's
		trigger = { var:contest_horse_race_name = flag:kjekk }
		localization_key = racehorse_name_kjekk
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:jerry }
		localization_key = racehorse_name_jerry
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:joseph }
		localization_key = racehorse_name_joseph
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:lord_pepper_iii }
		localization_key = racehorse_name_lord_pepper_iii
	}
	text = { # Napoleon's
		trigger = { var:contest_horse_race_name = flag:marengo }
		localization_key = racehorse_name_marengo
	}
    text = {
		trigger = { var:contest_horse_race_name = flag:marshal_neigh }
		localization_key = racehorse_name_marshal_neigh
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:maximus }
		localization_key = racehorse_name_maximus
	}
    text = { # Seabiscuit
		trigger = { var:contest_horse_race_name = flag:oceancracker }
		localization_key = racehorse_name_oceancracker
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:pebbles }
		localization_key = racehorse_name_pebbles
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:pringle }
		localization_key = racehorse_name_pringle
	}
	text = { # Galileo
		trigger = { var:contest_horse_race_name = flag:ptolemy }
		localization_key = racehorse_name_ptolemy
	}
	text = { # Red Rum
		trigger = { var:contest_horse_race_name = flag:red_wine }
		localization_key = racehorse_name_red_wine
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:roach }
		localization_key = racehorse_name_roach
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:sir_horsington }
		localization_key = racehorse_name_sir_horsington
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:sir_whinny }
		localization_key = racehorse_name_sir_whinny
	}
	text = {
		trigger = { var:contest_horse_race_name = flag:torrent }
		localization_key = racehorse_name_torrent
	}
}

ContestHorseRaceName2 = {
	type = character
	
	text = {
		trigger = { var:contest_horse_race_name_2 = flag:bolt }
		localization_key = racehorse_name_2_bolt
	}
	text = {
		trigger = { var:contest_horse_race_name_2 = flag:bound }
		localization_key = racehorse_name_2_bound
	}
	text = {
		trigger = { var:contest_horse_race_name_2 = flag:blaze }
		localization_key = racehorse_name_2_blaze
	}
	text = {
		trigger = { var:contest_horse_race_name_2 = flag:coat }
		localization_key = racehorse_name_2_coat
	}
	text = {
		trigger = { var:contest_horse_race_name_2 = flag:dart }
		localization_key = racehorse_name_2_dart
	}
	text = {
		trigger = { var:contest_horse_race_name_2 = flag:dash }
		localization_key = racehorse_name_2_dash
	}
	text = {
		trigger = { var:contest_horse_race_name_2 = flag:face }
		localization_key = racehorse_name_2_face
	}
	text = {
		trigger = { var:contest_horse_race_name_2 = flag:feet }
		localization_key = racehorse_name_2_feet
	}
	text = {
		trigger = { var:contest_horse_race_name_2 = flag:foot }
		localization_key = racehorse_name_2_foot
	}
	text = {
		trigger = { var:contest_horse_race_name_2 = flag:hair }
		localization_key = racehorse_name_2_hair
	}
	text = {
		trigger = { var:contest_horse_race_name_2 = flag:hide }
		localization_key = racehorse_name_2_hide
	}
	text = {
		trigger = { var:contest_horse_race_name_2 = flag:hocks }
		localization_key = racehorse_name_2_hocks
	}
	text = {
		trigger = { var:contest_horse_race_name_2 = flag:hoof }
		localization_key = racehorse_name_2_hoof
	}
	text = {
		trigger = { var:contest_horse_race_name_2 = flag:hooves }
		localization_key = racehorse_name_2_hooves
	}
	text = {
		trigger = { var:contest_horse_race_name_2 = flag:mane }
		localization_key = racehorse_name_2_mane
	}
	text = {
		trigger = { var:contest_horse_race_name_2 = flag:mottle }
		localization_key = racehorse_name_2_socks
	}
	text = {
		trigger = { var:contest_horse_race_name_2 = flag:rush }
		localization_key = racehorse_name_2_rush
	}
	text = {
		trigger = { var:contest_horse_race_name_2 = flag:socks }
		localization_key = racehorse_name_2_socks
	}
	text = {
		trigger = { var:contest_horse_race_name_2 = flag:speckles }
		localization_key = racehorse_name_2_speckles
	}
	text = {
		trigger = { var:contest_horse_race_name_2 = flag:spots }
		localization_key = racehorse_name_2_spots
	}
	text = {
		trigger = { var:contest_horse_race_name_2 = flag:sprint }
		localization_key = racehorse_name_2_sprint
	}
    text = {
		trigger = { var:contest_horse_race_name = flag:star }
		localization_key = racehorse_name_2_star
	}
	text = {
		trigger = { var:contest_horse_race_name_2 = flag:steed }
		localization_key = racehorse_name_2_steed
	}
	text = {
		trigger = { var:contest_horse_race_name_2 = flag:step }
		localization_key = racehorse_name_2_step
	}
	text = {
		trigger = { var:contest_horse_race_name_2 = flag:stockings }
		localization_key = racehorse_name_2_stockings
	}
	text = {
		trigger = { var:contest_horse_race_name_2 = flag:streak }
		localization_key = racehorse_name_2_streak
	}
	text = {
		trigger = { var:contest_horse_race_name_2 = flag:stride }
		localization_key = racehorse_name_2_stride
	}
	text = {
		trigger = { var:contest_horse_race_name_2 = flag:stripe }
		localization_key = racehorse_name_2_stripe
	}
	text = {
		trigger = { var:contest_horse_race_name_2 = flag:tail }
		localization_key = racehorse_name_2_tail
	}
}

ContestHorseRaceGender = {
	type = character

	text = {
		trigger = { var:contest_horse_race_gender = flag:female }
		localization_key = horse_gender_mare
	}
	text = {
		trigger = { always = no }
		localization_key = horse_gender_stallion
		fallback = yes
	}
}

ContestHorseRaceHerHis = {
	type = character

	text = {
		trigger = { var:contest_horse_race_gender = flag:female }
		localization_key = horse_gender_her
	}
	text = {
		trigger = { always = no }
		localization_key = horse_gender_his
		fallback = yes
	}
}

ContestHorseRaceHerHim = {
	type = character

	text = {
		trigger = { var:contest_horse_race_gender = flag:female }
		localization_key = horse_gender_her
	}
	text = {
		trigger = { always = no }
		localization_key = horse_gender_him
		fallback = yes
	}
}

ContestHorseRaceSheHe = {
	type = character

	text = {
		trigger = { var:contest_horse_race_gender = flag:female }
		localization_key = horse_gender_she
	}
	text = {
		trigger = { always = no }
		localization_key = horse_gender_he
		fallback = yes
	}
}

ContestHorseRaceTrack = {
	type = activity

	text = {
		trigger = { exists = var:contest_horse_race_variant var:contest_horse_race_variant = flag:maydan }
		localization_key = race_track_maydan
	}
	text = {
		trigger = { always = no }
		fallback = yes
		localization_key = race_track_track
	}
}

ContestBoardGameType = {
	type = activity

	# Pachisi
	text = {
		trigger = {
			activity_location = { bg_game_type_region_pachisi_trigger = yes }
		}
		localization_key = bg_gametype_pachisi
	}
	# Hnefatafl
	text = {
		trigger = {
			activity_location = { bg_game_type_region_hnefatafl_trigger = yes }
		}
		localization_key = bg_gametype_hnefatafl
	}
	# Tabula
	text = {
		trigger = {
			activity_location = { bg_game_type_region_tabula_trigger = yes }
		}
		localization_key = bg_gametype_tabula
	}
	# Go
	text = {
		trigger = {
			activity_location = { bg_game_type_region_go_trigger = yes }
		}
		localization_key = bg_gametype_go
	}
	# Fidchell
	text = {
		trigger = {
			activity_location = { bg_game_type_region_fidchell_trigger = yes }
		}
		localization_key = bg_gametype_fidchell
	}
	# Chess
	text = {
		trigger = { always = no }
		localization_key = bg_gametype_chess
		fallback = yes
	}
}

GetRandomFavor = {
	type = character

	text = {
		localization_key = handkerchief
	}

	text = {
		localization_key = flower
	}

	text = {
		localization_key = wreath
	}

	text = {
		localization_key = ring
	}
}

GetBirdName = {
	type = character

	random_valid = yes

	text = {
		localization_key = swan_name_illfated
	}

	text = {
		localization_key = swan_name_rose
	}

	text = {
		localization_key = swan_name_anklebiter
	}

	text = {
		localization_key = swan_name_odette
	}

	text = {
		localization_key = pet_name_petal
	}

	text = {
		localization_key = pet_name_songbird
	}

	text = {
		localization_key = pet_name_beauty
	}

	text = {
		localization_key = pet_name_spring_blossom
	}
	
	text = {
		localization_key = chicken
	}

	text = {
		localization_key = food_word_biscuit
	}

	text = {
		localization_key = food_detail_almond
	}

}

GetBirdInsult = {
	type = character

	random_valid = yes

	text = {
		localization_key = round_as_an_egg
	}

	text = {
		localization_key = heavy_as_a_stone
	}

	text = {
		localization_key = graceful_as_a_goose
	}

	text = {
		localization_key = shaped_like_a_brick
	}

	text = {
		localization_key = as_thick_as_you
	}

	text = {
		localization_key = barely_a_fledgeling
	}

	text = {
		localization_key = wobbly_like_a_duck
	}

	text = {
		localization_key = as_fast_as_a_mountain
	}

	text = {
		localization_key = as_bright_as_a_rain_cloud
	}
}

ThrowableObjectArticle = {
	type = character

	random_valid = yes

	text = {
		localization_key = a_shoe
	}

	text = {
		localization_key = an_empty_cup
	}

	text = {
		localization_key = a_stick_simple
	}

	text = {
		localization_key = a_rock
	}
}

GetObjectToBalanceOnNose = {
	type = character

	random_valid = yes

	text = {
		localization_key = dagger
	}

	text = {
		localization_key = sword
	}
	
	text = {
		localization_key = shoe
	}

	text = {
		localization_key = chicken
	}

	text = {
		localization_key = rooster
	}

	text = {
		localization_key = goose
	}

	text = {
		localization_key = duck
	}

	text = {
		localization_key = expensive_food_roast_swan
	}

	text = {
		localization_key = candle
	}

	text = {
		localization_key = signature_weapon_sword
	}

	text = {
		localization_key = signature_weapon_mace
	}

	text = {
		localization_key = signature_weapon_spear
	}
}

GetParadeType = {
	type = character

	text = {
		trigger = {
			var:parade_type = flag:military_parade
		}
		localization_key = parade_type_military_parade
	}

	text = {
		trigger = {
			var:parade_type = flag:civil_parade
		}
		localization_key = parade_type_civil_parade
	}

	text = {
		trigger = {
			var:parade_type = flag:religious_parade
		}
		localization_key = parade_type_religious_parade
	}
}
GetLiegeParadeType = {
	type = character

	text = {
		trigger = {
			var:liege_parade_type = flag:military_parade
		}
		localization_key = parade_type_military_parade
	}

	text = {
		trigger = {
			var:liege_parade_type = flag:civil_parade
		}
		localization_key = parade_type_civil_parade
	}

	text = {
		trigger = {
			var:liege_parade_type = flag:religious_parade
		}
		localization_key = parade_type_religious_parade
	}
}

GetSmallHidingObject = {
	type = character
	
	random_valid = yes
	
	text = {
		localization_key = barrel
	}

	text = {
		localization_key = chest
	}

	text = {
		localization_key = cupboard
	}
	
	text = {
		localization_key = casket
	}
	
	text = {
		localization_key = cabinet
	}
}

GetRandomWeapon = {
	type = character

	random_valid = yes

	text = {
		localization_key = dagger
	}

	text = {
		localization_key = councillor_prop_sword
	}
	
	text = {
		localization_key = artifact_mace
	}
	
	text = {
		localization_key = signature_weapon_hammer
	}
}
