# 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 = GetMolotovCocktailsTooltip text = { trigger = { has_completed_focus = FIN_oy_alkoholiliike #Focus grants bonuses } localization_key = FIN_oy_alkoholiliike_dynamic_modifier_tt } text = { localization_key = generic_null } } defined_text = { name = GetCasOrFighterDesignsTooltip text = { #CAS default trigger = { has_completed_focus = FIN_support_for_ground_forces #Focus grants bonuses NOT = { has_completed_focus = FIN_modernize_production_lines } } localization_key = FIN_support_for_ground_forces_dynamic_modifier_tt } text = { #CAS improved trigger = { has_completed_focus = FIN_support_for_ground_forces #Focus grants bonuses has_completed_focus = FIN_modernize_production_lines } localization_key = FIN_support_for_ground_forces_improved_dynamic_modifier_tt } text = { #Fighter default trigger = { has_completed_focus = FIN_dominate_the_skies #Focus grants bonuses NOT = { has_completed_focus = FIN_modernize_production_lines } } localization_key = FIN_dominate_the_skies_dynamic_modifier_tt } text = { #Fighter improved trigger = { has_completed_focus = FIN_dominate_the_skies #Focus grants bonuses has_completed_focus = FIN_modernize_production_lines } localization_key = FIN_dominate_the_skies_improved_dynamic_modifier_tt } text = { localization_key = generic_null } } defined_text = { name = GetNavalAirforceTooltip text = { #Naval default trigger = { has_completed_focus = FIN_naval_airforce #Focus grants bonuses NOT = { has_completed_focus = FIN_modernize_production_lines } } localization_key = FIN_naval_airforce_dynamic_modifier_tt } text = { #Naval improved trigger = { has_completed_focus = FIN_naval_airforce #Focus grants bonuses has_completed_focus = FIN_modernize_production_lines } localization_key = FIN_naval_airforce_improved_dynamic_modifier_tt } text = { localization_key = generic_null } } defined_text = { name = GetConvoyTooltip text = { trigger = { has_completed_focus = FIN_the_merchant_fleet #Focus grants bonuses } localization_key = FIN_the_merchant_fleet_dynamic_modifier_tt } text = { localization_key = generic_null } } defined_text = { name = GetConversionTooltip text = { trigger = { has_completed_focus = FIN_conversion_of_civilian_vessels #Focus grants bonuses has_dlc = "Man the Guns" } localization_key = FIN_conversion_of_civilian_vessels_dynamic_modifier_tt } text = { trigger = { has_completed_focus = FIN_conversion_of_civilian_vessels #Focus grants bonuses NOT = { has_dlc = "Man the Guns" } } localization_key = FIN_conversion_of_civilian_vessels_dynamic_modifier_no_mtg_tt } text = { localization_key = generic_null } } defined_text = { name = GetAppropriateDlcConversionTooltip text = { trigger = { has_dlc = "Man the Guns" } localization_key = FIN_conversion_of_civilian_vessels_dynamic_modifier_tt } text = { trigger = { NOT = { has_dlc = "Man the Guns" } } localization_key = FIN_conversion_of_civilian_vessels_dynamic_modifier_no_mtg_tt } } defined_text = { name = GetDestroyerNamesBasedOnTag text = { trigger = { tag = FIN } localization_key = FIN_DD_HISTORICAL } text = { localization_key = DEN_DD_HISTORICAL } } defined_text = { name = GetLeaderBopIcon text = { trigger = { has_country_leader = { ruling_only = yes character = FIN_pehr_evind_svinhufvud } } localization_key = svinhuvfud } text = { trigger = { has_country_leader = { ruling_only = yes character = FIN_kyosti_kallio } } localization_key = kallio } text = { trigger = { has_country_leader = { ruling_only = yes character = FIN_risto_ryti } } localization_key = ryti } text = { trigger = { has_country_leader = { ruling_only = yes character = FIN_carl_mannerheim } } localization_key = mannerheim } text = { trigger = { has_country_leader = { ruling_only = yes character = FIN_juho_kusti_paasikivi } } localization_key = paasikivi } text = { trigger = { has_country_leader = { ruling_only = yes character = FIN_prince_wolfgang_von_hesse } } localization_key = prince_wolfgang } text = { trigger = { has_country_leader = { ruling_only = yes character = FIN_vilho_annala } } localization_key = annala } text = { trigger = { has_country_leader = { ruling_only = yes character = FIN_vaino_tanner } } localization_key = tanner } text = { trigger = { has_country_leader = { ruling_only = yes character = FIN_aimo_aaltonen } } localization_key = aaltonen } text = { trigger = { has_country_leader = { ruling_only = yes character = FIN_yrjo_leino } } localization_key = leino } text = { trigger = { has_country_leader = { ruling_only = yes character = FIN_otto_wille_kuusinen } } localization_key = kuusinen } } defined_text = { name = GetFinnishWinterWarOrNot text = { trigger = { any_enemy_country = { original_tag = SOV } } localization_key = FIN_winter_war_name } text = { localization_key = FIN_normal_war } } defined_text = { name = GetFinnishChildrenDestination text = { trigger = { SWE = { has_war = no } NOT = { any_enemy_country = { is_in_faction_with = SWE } is_justifying_wargoal_against = SWE SWE = { is_justifying_wargoal_against = ROOT } has_wargoal_against = SWE SWE = { has_wargoal_against = ROOT } } } localization_key = FIN_children_destination_sweden } text = { trigger = { NOR = { has_war = no } NOT = { any_enemy_country = { is_in_faction_with = NOR } is_justifying_wargoal_against = NOR NOR = { is_justifying_wargoal_against = ROOT } has_wargoal_against = NOR NOR = { has_wargoal_against = ROOT } } } localization_key = FIN_children_destination_norway } text = { trigger = { DEN = { has_war = no } NOT = { any_enemy_country = { is_in_faction_with = DEN } is_justifying_wargoal_against = DEN DEN = { is_justifying_wargoal_against = ROOT } has_wargoal_against = DEN DEN = { has_wargoal_against = ROOT } } } localization_key = FIN_children_destination_denmark } text = { trigger = { ICE = { has_war = no } NOT = { any_enemy_country = { is_in_faction_with = ICE } is_justifying_wargoal_against = ICE ICE = { is_justifying_wargoal_against = ROOT } has_wargoal_against = ICE ICE = { has_wargoal_against = ROOT } } } localization_key = FIN_children_destination_iceland } text = { localization_key = FIN_children_destination_other } } defined_text = { name = GetCoastalGarrisonsDecTooltipFromNavyBranch text = { trigger = { has_completed_focus = FIN_defensive_preparations } localization_key = FIN_coastal_garrisons_unlocked } text = { localization_key = FIN_coastal_garrisons_locked } } defined_text = { name = GetCoastalGarrisonsDecTooltipFromPoliticalBranch text = { trigger = { has_completed_focus = FIN_coastal_defense } localization_key = FIN_coastal_garrisons_unlocked } text = { localization_key = FIN_coastal_garrisons_locked } } defined_text = { name = GetMiningTheSeasDecTooltipFromNavyBranch text = { trigger = { has_completed_focus = FIN_defensive_preparations } localization_key = FIN_mining_the_sea_unlocked } text = { localization_key = FIN_mining_the_sea_locked } } defined_text = { name = GetMiningTheSeasDecTooltipFromPoliticalBranch text = { trigger = { has_completed_focus = FIN_sea_mines_strategy } localization_key = FIN_mining_the_sea_unlocked } text = { localization_key = FIN_mining_the_sea_locked } } defined_text = { name = GetDiplomacyDescriptionNiceNotNice text = { trigger = { ROOT = { has_government = fascism } } localization_key = FIN_not_nice_desc } text = { localization_key = FIN_nice_desc } } defined_text = { name = GetPoliticsDescriptionOldManPete text = { trigger = { has_country_leader = { character = FIN_pehr_evind_svinhufvud ruling_only = yes } } localization_key = FIN_reelection_old_man_pete } text = { localization_key = FIN_reelection_other_leader } } #For use if Kallo was leader during the Winter War. defined_text = { name = GetPoliticsDescriptionKallioWinterWar text = { trigger = { FIN = { has_country_flag = FIN_winter_war_kallio has_country_leader = { character = FIN_kyosti_kallio ruling_only = yes } } } localization_key = FIN_politics_kallio_winter_war } text = { localization_key = FIN_politics_no_kallio_winter_war } } defined_text = { name = GetAppropriateFinnishFactionInviteTooltip text = { trigger = { is_in_faction = yes OR = { has_completed_focus = FIN_join_the_comintern has_completed_focus = FIN_united_under_the_north_star is_in_faction_with = SOV is_faction_leader = yes } } localization_key = FIN_faction_name } text = { localization_key = FIN_no_faction } } # Get Nordic or Baltic for diplomatic events (based on Keepers of the North or Keepers of the Baltic) defined_text = { name = GetBalticOrNordic text = { trigger = { FIN = { has_completed_focus = FIN_keepers_of_the_north } } localization_key = AAT_finland_diplomacy_nordic } text = { localization_key = AAT_finland_diplomacy_baltic } } defined_text = { name = GetSovietFactionForFinland text = { trigger = { SOV = { is_in_faction = yes is_faction_leader = yes has_government = communism } } localization_key = [SOV.GetFactionName] } text = { localization_key = Comintern } } defined_text = { name = GetFascistFactionForFinland text = { trigger = { GER = { is_faction_leader = yes has_government = fascism NOT = { has_war_with = ROOT } all_allied_country = { NOT = { has_war_with = ROOT } } } } localization_key = [GER.GetFactionName] } text = { trigger = { ITA = { is_faction_leader = yes has_government = fascism NOT = { has_war_with = ROOT } all_allied_country = { NOT = { has_war_with = ROOT } } } } localization_key = [ITA.GetFactionName] } text = { localization_key = Axis } } defined_text = { name = GetAlliesFactionForFinland text = { trigger = { ENG = { is_faction_leader = yes has_government = democratic NOT = { has_war_with = ROOT } all_allied_country = { NOT = { has_war_with = ROOT } } } } localization_key = [ENG.GetFactionName] } text = { trigger = { FRA = { is_faction_leader = yes has_government = democratic NOT = { has_war_with = ROOT } all_allied_country = { NOT = { has_war_with = ROOT } } } } localization_key = [FRA.GetFactionName] } text = { trigger = { USA = { is_faction_leader = yes has_government = democratic NOT = { has_war_with = ROOT } all_allied_country = { NOT = { has_war_with = ROOT } } } } localization_key = [USA.GetFactionName] } text = { localization_key = Allies } } defined_text = { name = GetFinnishCommittmentInKareliaOrNot text = { trigger = { FIN = { has_country_flag = FIN_full_support_for_karelia_flag } check_variable = { SOV.SOV_nationalist_country = KAR } } localization_key = FIN_karelian_uprising_supported_by_finland } text = { localization_key = generic_null } }