# Variant that reads from `pending_offer_type` # (snapshot var on the target country in investments_event.10) so the displayed # building type doesn't drift if the investor's staging slots get overwritten. defined_text = { name = investments_get_pending_offer_construction_type text = { trigger = { check_variable = { pending_offer_type = 1 } } localization_key = industrial_complex } text = { trigger = { check_variable = { pending_offer_type = 2 } } localization_key = arms_factory } text = { trigger = { check_variable = { pending_offer_type = 3 } } localization_key = dockyard } text = { trigger = { check_variable = { pending_offer_type = 4 } } localization_key = infrastructure } text = { trigger = { check_variable = { pending_offer_type = 5 } } localization_key = offices } text = { trigger = { check_variable = { pending_offer_type = 6 } } localization_key = anti_air_building } text = { trigger = { check_variable = { pending_offer_type = 7 } } localization_key = radar_station } text = { trigger = { check_variable = { pending_offer_type = 8 } } localization_key = air_base } text = { trigger = { check_variable = { pending_offer_type = 9 } } localization_key = fuel_silo } text = { trigger = { check_variable = { pending_offer_type = 10 } } localization_key = internet_station } text = { trigger = { check_variable = { pending_offer_type = 11 } } localization_key = renewable_energy_infra } text = { trigger = { check_variable = { pending_offer_type = 12 } } localization_key = fossil_powerplant } text = { trigger = { check_variable = { pending_offer_type = 13 } } localization_key = nuclear_reactor } text = { trigger = { check_variable = { pending_offer_type = 14 } } localization_key = agriculture_district } text = { localization_key = "Invalid Building!!!" } } # Corruption Localization # Displays Corruptions impact on build cost/time defined_text = { name = investments_get_infrastructure text = { trigger = { check_variable = { infrastructure_level = 0 } } localization_key = investments_Infrastructure_0 } text = { trigger = { check_variable = { infrastructure_level = 1 } } localization_key = investments_Infrastructure_1 } text = { trigger = { check_variable = { infrastructure_level = 2 } } localization_key = investments_Infrastructure_2 } text = { trigger = { check_variable = { infrastructure_level = 3 } } localization_key = investments_Infrastructure_3 } text = { trigger = { check_variable = { infrastructure_level = 4 } } localization_key = investments_Infrastructure_4 } text = { trigger = { check_variable = { infrastructure_level = 5 } } localization_key = investments_Infrastructure_5 } } defined_text = { name = investments_get_build_amount text = { trigger = { selected_investment_building_available = yes } localization_key = "investments_build_amount_green" } text = { localization_key = "investments_build_amount_red" } } defined_text = { name = investments_get_build_button_tt text = { trigger = { is_in_array = { array = THIS.projects_in_state value = ROOT.id } } localization_key = investments_build_button_tt_2 } text = { localization_key = investments_build_button_tt_1 } } defined_text = { name = investments_get_build_button_text text = { trigger = { is_in_array = { array = THIS.projects_in_state value = ROOT.id } } localization_key = investments_cancel_project } text = { trigger = { NOT = { currently_is_considering_a_project = yes } } localization_key = investments_standby_project } text = { localization_key = investments_start_project } } defined_text = { name = investment_cooldown text = { trigger = { has_game_rule = { rule = rule_influence_cooldown_limits option = day_14_cooldown } } localization_key = investments_14_cooldown_tt } text = { trigger = { has_game_rule = { rule = rule_influence_cooldown_limits option = day_30_cooldown } } localization_key = investments_30_cooldown_tt } } ## # Single scripted_loc for completed project building type display. # Reads from completed_project_building_type temp variable set in decision remove_effect. defined_text = { name = investments_get_completed_building_type text = { trigger = { check_variable = { completed_project_building_type = 1 } } localization_key = industrial_complex } text = { trigger = { check_variable = { completed_project_building_type = 2 } } localization_key = arms_factory } text = { trigger = { check_variable = { completed_project_building_type = 3 } } localization_key = dockyard } text = { trigger = { check_variable = { completed_project_building_type = 4 } } localization_key = infrastructure } text = { trigger = { check_variable = { completed_project_building_type = 5 } } localization_key = offices } text = { trigger = { check_variable = { completed_project_building_type = 6 } } localization_key = anti_air_building } text = { trigger = { check_variable = { completed_project_building_type = 7 } } localization_key = radar_station } text = { trigger = { check_variable = { completed_project_building_type = 8 } } localization_key = air_base } text = { trigger = { check_variable = { completed_project_building_type = 9 } } localization_key = fuel_silo } text = { trigger = { check_variable = { completed_project_building_type = 10 } } localization_key = internet_station } text = { trigger = { check_variable = { completed_project_building_type = 11 } } localization_key = renewable_energy_infra } text = { trigger = { check_variable = { completed_project_building_type = 12 } } localization_key = fossil_powerplant } text = { trigger = { check_variable = { completed_project_building_type = 13 } } localization_key = nuclear_reactor } text = { trigger = { check_variable = { completed_project_building_type = 14 } } localization_key = agriculture_district } text = { localization_key = "Invalid Building!!!" } } defined_text = { name = investments_gain_tooltip text = { trigger = { CONTROLLER = { has_country_flag = influence_gained_@ROOT } } localization_key = influence_gain_tooltip_no_tt } text = { localization_key = influence_gain_tooltip_yes_tt } } defined_text = { name = investments_get_influence_icon text = { trigger = { CONTROLLER = { has_country_flag = influence_gained_@ROOT } } localization_key = "GFX_influence_action_button_inactive" } text = { localization_key = "GFX_influence_action_button" } } defined_text = { name = current_soi_count text = { trigger = { ROOT = { count_triggers = { amount = 6 has_country_flag = soi_slot_1 has_country_flag = soi_slot_2 has_country_flag = soi_slot_3 has_country_flag = soi_slot_4 has_country_flag = soi_slot_5 has_country_flag = soi_slot_6 } } } localization_key = "6" } text = { trigger = { ROOT = { count_triggers = { amount = 5 has_country_flag = soi_slot_1 has_country_flag = soi_slot_2 has_country_flag = soi_slot_3 has_country_flag = soi_slot_4 has_country_flag = soi_slot_5 has_country_flag = soi_slot_6 } } } localization_key = "5" } text = { trigger = { ROOT = { count_triggers = { amount = 4 has_country_flag = soi_slot_1 has_country_flag = soi_slot_2 has_country_flag = soi_slot_3 has_country_flag = soi_slot_4 has_country_flag = soi_slot_5 has_country_flag = soi_slot_6 } } } localization_key = "4" } text = { trigger = { ROOT = { count_triggers = { amount = 3 has_country_flag = soi_slot_1 has_country_flag = soi_slot_2 has_country_flag = soi_slot_3 has_country_flag = soi_slot_4 has_country_flag = soi_slot_5 has_country_flag = soi_slot_6 } } } localization_key = "3" } text = { trigger = { ROOT = { count_triggers = { amount = 2 has_country_flag = soi_slot_1 has_country_flag = soi_slot_2 has_country_flag = soi_slot_3 has_country_flag = soi_slot_4 has_country_flag = soi_slot_5 has_country_flag = soi_slot_6 } } } localization_key = "2" } text = { trigger = { ROOT = { count_triggers = { amount = 1 has_country_flag = soi_slot_1 has_country_flag = soi_slot_2 has_country_flag = soi_slot_3 has_country_flag = soi_slot_4 has_country_flag = soi_slot_5 has_country_flag = soi_slot_6 } } } localization_key = "1" } text = { localization_key = "0" } } defined_text = { name = soi_timer_6 text = { trigger = { has_country_flag = soi_slot_6 } localization_key = soi_timer_6_tt } } defined_text = { name = soi_timer_5 text = { trigger = { has_country_flag = soi_slot_5 } localization_key = soi_timer_5_tt } } defined_text = { name = soi_timer_4 text = { trigger = { has_country_flag = soi_slot_4 } localization_key = soi_timer_4_tt } } defined_text = { name = soi_timer_3 text = { trigger = { has_country_flag = soi_slot_3 } localization_key = soi_timer_3_tt } } defined_text = { name = soi_timer_2 text = { trigger = { has_country_flag = soi_slot_2 } localization_key = soi_timer_2_tt } } defined_text = { name = soi_timer_1 text = { trigger = { has_country_flag = soi_slot_1 } localization_key = soi_timer_1_tt } } defined_text = { name = auto_repeat_internal_encourage_investments_status text = { trigger = { has_state_flag = auto_repeat_internal_encourage_investments_@ROOT } localization_key = internal_investment_auto_repeat_enabled } text = { localization_key = internal_investment_auto_repeat_disabled } } defined_text = { name = auto_repeat_internal_encourage_productivity_status text = { trigger = { has_state_flag = auto_repeat_internal_encourage_productivity_@ROOT } localization_key = internal_investment_auto_repeat_enabled } text = { localization_key = internal_investment_auto_repeat_disabled } } defined_text = { name = auto_repeat_internal_expand_building_capacity_status text = { trigger = { has_state_flag = auto_repeat_internal_expand_building_capacity_@ROOT } localization_key = internal_investment_auto_repeat_enabled } text = { localization_key = internal_investment_auto_repeat_disabled } } defined_text = { name = auto_repeat_internal_expand_renewable_capacity_status text = { trigger = { has_state_flag = auto_repeat_internal_expand_renewable_capacity_@ROOT } localization_key = internal_investment_auto_repeat_enabled } text = { localization_key = internal_investment_auto_repeat_disabled } } defined_text = { name = auto_repeat_internal_expand_infrastructure_status text = { trigger = { has_state_flag = auto_repeat_internal_expand_infrastructure_@ROOT } localization_key = internal_investment_auto_repeat_enabled } text = { localization_key = internal_investment_auto_repeat_disabled } } defined_text = { name = auto_repeat_internal_expand_military_infrastructure_status text = { trigger = { has_state_flag = auto_repeat_internal_expand_military_infrastructure_@ROOT } localization_key = internal_investment_auto_repeat_enabled } text = { localization_key = internal_investment_auto_repeat_disabled } } defined_text = { name = auto_repeat_internal_expand_energy_infrastructure_status text = { trigger = { has_state_flag = auto_repeat_internal_expand_energy_infrastructure_@ROOT } localization_key = internal_investment_auto_repeat_enabled } text = { localization_key = internal_investment_auto_repeat_disabled } } defined_text = { name = auto_repeat_internal_build_logistics_base_status text = { trigger = { has_state_flag = auto_repeat_internal_build_logistics_base_@ROOT } localization_key = internal_investment_auto_repeat_enabled } text = { localization_key = internal_investment_auto_repeat_disabled } } defined_text = { name = auto_repeat_internal_improve_rebuilding_status text = { trigger = { has_state_flag = auto_repeat_internal_improve_rebuilding_@ROOT } localization_key = internal_investment_auto_repeat_enabled } text = { localization_key = internal_investment_auto_repeat_disabled } } defined_text = { name = auto_repeat_internal_hire_primary_workers_status text = { trigger = { has_state_flag = auto_repeat_internal_hire_primary_workers_@ROOT } localization_key = internal_investment_auto_repeat_enabled } text = { localization_key = internal_investment_auto_repeat_disabled } } defined_text = { name = auto_repeat_internal_expand_coastal_infrastructure_status text = { trigger = { has_state_flag = auto_repeat_internal_expand_coastal_infrastructure_@ROOT } localization_key = internal_investment_auto_repeat_enabled } text = { localization_key = internal_investment_auto_repeat_disabled } } defined_text = { name = auto_repeat_internal_expand_fortifications_status text = { trigger = { has_state_flag = auto_repeat_internal_expand_fortifications_@ROOT } localization_key = internal_investment_auto_repeat_enabled } text = { localization_key = internal_investment_auto_repeat_disabled } } defined_text = { name = auto_repeat_internal_conservation_status text = { trigger = { has_state_flag = auto_repeat_internal_conservation_@ROOT } localization_key = internal_investment_auto_repeat_enabled } text = { localization_key = internal_investment_auto_repeat_disabled } }