# 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 = GetElectionCampaignDesc text = { trigger = { ROOT = { has_country_flag = DEN_snap_election_flag } } localization_key = denmark_political_events.3.desc_snap_election } text = { localization_key = denmark_political_events.3.desc_annual_election } } defined_text = { name = GetCanceledTradeTitle text = { trigger = { DEN = { is_subject = yes } NOT = { original_tag = DEN } } localization_key = denmark_trade_deal.8.t_subjugation_cancelation } text = { #Title for ENG or GER trigger = { NOT = { original_tag = DEN } } localization_key = denmark_trade_deal.8.t_war_cancelation_partner } text = { #Title for Denmark localization_key = denmark_trade_deal.8.t_war_cancelation_denmark } } defined_text = { name = GetCanceledTradeDesc text = { trigger = { DEN = { is_subject = yes } NOT = { original_tag = DEN } } localization_key = denmark_trade_deal.8.desc_subjugation_cancelation } text = { #Desc for ENG or GER trigger = { NOT = { original_tag = DEN } } localization_key = denmark_trade_deal.8.desc_war_cancelation_partner } text = { #Desc for Denmark localization_key = denmark_trade_deal.8.desc_war_cancelation_denmark } } defined_text = { name = GetDanishIndependenceTitle text = { #If Denmark pledged allegiance to their Overlord trigger = { var:DEN.DEN_overlord_nation = { has_country_flag = DEN_accepted_danish_allegiance_flag } } localization_key = denmark_occupation_event.6.t_asks_for_independence } text = { localization_key = denmark_occupation_event.6.t_declares_independence } } defined_text = { name = GetDanishIndependenceDesc text = { #If Denmark pledged allegiance to their Overlord trigger = { var:DEN.DEN_overlord_nation = { has_country_flag = DEN_accepted_danish_allegiance_flag } } localization_key = denmark_occupation_event.6.desc_asks_for_independence } text = { localization_key = denmark_occupation_event.6.desc_declares_independence } }