# Author(s): AngriestBird, Doolittle, TheBrokenDroid, XCezor scripted_gui = { MD_topbar_missiles_scripted_gui = { window_name = after_logistics_button context_type = player_context dirty = global.international_systems_updated effects = { missiles_button_click = { if = { limit = { has_country_flag = open_MD_countrymissilesview } clr_country_flag = open_MD_countrymissilesview } else = { set_country_flag = open_MD_countrymissilesview } international_systems_update = yes } } properties = { missiles_button = { x = global.var_missiles_button_x } } } #BIG BOI MAIN GUI MD_missiles_gui = { window_name = MD_countrymissilesview context_type = player_context parent_window_token = topbar dirty = global.international_systems_updated visible = { has_country_flag = open_MD_countrymissilesview } triggers = { cyber_gui_ledger_button_click_enabled = { if = { limit = { has_dlc = "La Resistance" } has_done_agency_upgrade = upgrade_establish_cyber_operations_division } else = { custom_trigger_tooltip = { tooltip = is_cyber_complete_techs_to_unlock_tt has_tech = encryption1 has_tech = decryption1 } } } ct_gui_ledger_button_click_enabled = { no_jihadist_government = yes } } effects = { close_button_click = { clr_country_flag = open_MD_countrymissilesview if = { limit = { has_country_flag = open_MD_missile_production_type_window } clear_prod_display_arrays = yes clr_country_flag = open_MD_missile_production_type_window } if = { limit = { has_country_flag = open_MD_space_selection_window } clear_array = OLV_display_array clear_array = sat_payload_display_array clear_array = spp_payload_display_array clr_country_flag = OLV_model clr_country_flag = sat_payload_model clr_country_flag = spp_payload_model clear_variable = var_open_space_selection_ledger_1 clear_variable = var_open_space_selection_ledger_2 clr_country_flag = open_MD_space_selection_window } if = { limit = { has_country_flag = open_MD_select_satellite_system_window } clear_array = GNSS_mil_systems_array clear_array = GNSS_civ_systems_array clear_array = COM_mil_systems_array clear_array = COM_civ_systems_array clear_array = SPY_mil_systems_array clear_array = SPY_civ_systems_array clr_country_flag = open_MD_select_satellite_system_window } international_systems_update = yes } # Missile Production space_gui_ledger_button_click = { set_variable = { var_open_MD_space_gui = 2 } if = { limit = { check_variable = { var_open_MD_missiles_gui_ledger_1 = 0 } check_variable = { var_open_MD_missiles_gui_ledger_4 = 0 } check_variable = { var_open_MD_missiles_gui_ledger_5 = 0 } } set_variable = { var_open_MD_missiles_gui_ledger_1 = 2 } } clear_variable = var_open_MD_CT_gui clear_variable = var_open_MD_PMC_gui clear_variable = var_open_MD_UN_gui clear_variable = var_open_MD_cyber_gui clear_variable = var_open_MD_antarctica_gui space_auto_refresh_ui = yes international_systems_update = yes } ct_gui_ledger_button_click = { set_variable = { var_open_MD_CT_gui = 2 } clear_variable = var_open_MD_space_gui clear_variable = var_open_MD_PMC_gui clear_variable = var_open_MD_UN_gui clear_variable = var_open_MD_cyber_gui clear_variable = var_open_MD_antarctica_gui international_systems_update = yes } pmc_gui_ledger_button_click = { set_variable = { var_open_MD_PMC_gui = 2 } clear_variable = var_open_MD_space_gui clear_variable = var_open_MD_CT_gui clear_variable = var_open_MD_UN_gui clear_variable = var_open_MD_cyber_gui clear_variable = var_open_MD_antarctica_gui international_systems_update = yes } un_gui_ledger_button_click = { set_variable = { var_open_MD_UN_gui = 2 } if = { limit = { check_variable = { var_open_MD_state_recog = 0 } check_variable = { var_open_MD_un_aid = 0 } check_variable = { var_open_MD_un_council = 0 } } set_variable = { var_open_MD_state_recog = 2 } } clear_variable = var_open_MD_space_gui clear_variable = var_open_MD_PMC_gui clear_variable = var_open_MD_CT_gui clear_variable = var_open_MD_cyber_gui clear_variable = var_open_MD_antarctica_gui international_systems_update = yes } cyber_gui_ledger_button_click = { set_variable = { var_open_MD_cyber_gui = 2 } clear_variable = var_open_MD_space_gui clear_variable = var_open_MD_PMC_gui clear_variable = var_open_MD_CT_gui clear_variable = var_open_MD_UN_gui clear_variable = var_open_MD_antarctica_gui international_systems_update = yes } antarctica_gui_ledger_button_click = { set_variable = { var_open_MD_antarctica_gui = 2 } clear_variable = var_open_MD_space_gui clear_variable = var_open_MD_PMC_gui clear_variable = var_open_MD_CT_gui clear_variable = var_open_MD_UN_gui clear_variable = var_open_MD_cyber_gui international_systems_update = yes add_to_variable = { global.missile_ui_updated = 1 } } } properties = { space_gui_ledger_button = { frame = var_open_MD_space_gui } ct_gui_ledger_button = { frame = var_open_MD_CT_gui } pmc_gui_ledger_button = { frame = var_open_MD_PMC_gui } un_gui_ledger_button = { frame = var_open_MD_UN_gui } cyber_gui_ledger_button = { frame = var_open_MD_cyber_gui } antarctica_gui_ledger_button = { frame = var_open_MD_antarctica_gui } } } MD_space_program_main_gui = { window_name = MD_space_program_window context_type = player_context parent_window_name = MD_countrymissilesview dirty = global.international_systems_updated visible = { check_variable = { var_open_MD_space_gui = 2 } has_country_flag = open_MD_countrymissilesview } effects = { production_button_click = { set_variable = { var_open_MD_missiles_gui_ledger_1 = 2 } clear_variable = var_open_MD_missiles_gui_ledger_4 clear_variable = var_open_MD_missiles_gui_ledger_5 clear_variable = var_open_MD_international_space international_systems_update = yes } launching_button_click = { set_variable = { var_open_MD_missiles_gui_ledger_4 = 2 } clear_variable = var_open_MD_missiles_gui_ledger_5 clear_variable = var_open_MD_missiles_gui_ledger_1 clear_variable = var_open_MD_international_space space_auto_refresh_ui = yes international_systems_update = yes } space_button_click = { set_variable = { var_open_MD_missiles_gui_ledger_5 = 2 } clear_variable = var_open_MD_missiles_gui_ledger_4 clear_variable = var_open_MD_missiles_gui_ledger_1 clear_variable = var_open_MD_international_space international_systems_update = yes } iss_button_click = { set_variable = { var_open_MD_international_space = 2 } clear_variable = var_open_MD_missiles_gui_ledger_4 clear_variable = var_open_MD_missiles_gui_ledger_1 clear_variable = var_open_MD_missiles_gui_ledger_5 international_systems_update = yes } } properties = { production_button = { frame = var_open_MD_missiles_gui_ledger_1 } launching_button = { frame = var_open_MD_missiles_gui_ledger_4 } space_button = { frame = var_open_MD_missiles_gui_ledger_5 } iss_button = { frame = var_open_MD_international_space } } } MD_countrymissilesview_production_gui = { window_name = MD_countrymissilesview_production context_type = player_context parent_window_name = MD_space_program_window_instance dirty = global.international_systems_updated visible = { check_variable = { var_open_MD_missiles_gui_ledger_1 = 2 } check_variable = { var_open_MD_space_gui = 2 } has_country_flag = open_MD_countrymissilesview } effects = { ### OLV production_type_10_button_click = { ROOT = { set_country_flag = open_MD_missile_production_type_window set_country_flag = missile_production_type_10 set_prod_display_arrays = yes } international_systems_update = yes } ### production amount button effects ### increase_amount_10_click = { ROOT = { add_to_variable = { var_gui_prod_10_amount = 1 } calculate_production_vars_10 = yes } international_systems_update = yes } decrease_amount_10_click = { ROOT = { subtract_from_variable = { var_gui_prod_10_amount = 1 } calculate_production_vars_10 = yes } international_systems_update = yes } increase_amount_10_control_click = { ROOT = { add_to_variable = { var_gui_prod_10_amount = 10 } calculate_production_vars_10 = yes } international_systems_update = yes } decrease_amount_10_control_click = { ROOT = { subtract_from_variable = { var_gui_prod_10_amount = 10 } calculate_production_vars_10 = yes } international_systems_update = yes } increase_amount_10_shift_click = { ROOT = { add_to_variable = { var_gui_prod_10_amount = 100 } calculate_production_vars_10 = yes } international_systems_update = yes } decrease_amount_10_shift_click = { ROOT = { subtract_from_variable = { var_gui_prod_10_amount = 100 } calculate_production_vars_10 = yes } international_systems_update = yes } start_button_10_click = { ROOT = { set_variable = { var_space_paid_10 = 0 } activate_mission = missile_construction_10 } international_systems_update = yes } delete_button_10_click = { ROOT = { remove_mission = missile_construction_10 set_variable = { var_space_production_OLV = 0 } space_auto_clear_line_10 = yes set_variable = { var_space_paid_10 = 0 } } international_systems_update = yes } increase_CIC_10_button_click = { add_to_variable = { prod_10_multiplier = 1 } calculate_production_vars_10 = yes international_systems_update = yes } decrease_CIC_10_button_click = { subtract_from_variable = { prod_10_multiplier = 1 } calculate_production_vars_10 = yes international_systems_update = yes } increase_CIC_10_button_control_click = { add_to_variable = { prod_10_multiplier = 10 } calculate_production_vars_10 = yes international_systems_update = yes } decrease_CIC_10_button_control_click = { subtract_from_variable = { prod_10_multiplier = 10 } calculate_production_vars_10 = yes international_systems_update = yes } increase_CIC_10_button_shift_click = { add_to_variable = { prod_10_multiplier = 100 } calculate_production_vars_10 = yes international_systems_update = yes } decrease_CIC_10_button_shift_click = { subtract_from_variable = { prod_10_multiplier = 100 } calculate_production_vars_10 = yes international_systems_update = yes } ### GNSS production_type_11_button_click = { ROOT = { set_country_flag = open_MD_missile_production_type_window set_country_flag = missile_production_type_11 set_prod_display_arrays = yes } international_systems_update = yes } ### production amount button effects ### increase_amount_11_click = { ROOT = { add_to_variable = { var_gui_prod_11_amount = 1 } calculate_production_vars_11 = yes } international_systems_update = yes } decrease_amount_11_click = { ROOT = { subtract_from_variable = { var_gui_prod_11_amount = 1 } calculate_production_vars_11 = yes } international_systems_update = yes } increase_amount_11_control_click = { ROOT = { add_to_variable = { var_gui_prod_11_amount = 10 } calculate_production_vars_11 = yes } international_systems_update = yes } decrease_amount_11_control_click = { ROOT = { subtract_from_variable = { var_gui_prod_11_amount = 10 } calculate_production_vars_11 = yes } international_systems_update = yes } increase_amount_11_shift_click = { ROOT = { add_to_variable = { var_gui_prod_11_amount = 100 } calculate_production_vars_11 = yes } international_systems_update = yes } decrease_amount_11_shift_click = { ROOT = { subtract_from_variable = { var_gui_prod_11_amount = 100 } calculate_production_vars_11 = yes } international_systems_update = yes } start_button_11_click = { ROOT = { set_variable = { var_space_paid_11 = 0 } activate_mission = missile_construction_11 } international_systems_update = yes } delete_button_11_click = { ROOT = { remove_mission = missile_construction_11 set_variable = { var_space_production_GNSS = 0 } space_auto_clear_line_11 = yes set_variable = { var_space_paid_11 = 0 } } international_systems_update = yes } increase_CIC_11_button_click = { add_to_variable = { prod_11_multiplier = 1 } calculate_production_vars_11 = yes international_systems_update = yes } decrease_CIC_11_button_click = { subtract_from_variable = { prod_11_multiplier = 1 } calculate_production_vars_11 = yes international_systems_update = yes } increase_CIC_11_button_control_click = { add_to_variable = { prod_11_multiplier = 10 } calculate_production_vars_11 = yes international_systems_update = yes } decrease_CIC_11_button_control_click = { subtract_from_variable = { prod_11_multiplier = 10 } calculate_production_vars_11 = yes international_systems_update = yes } increase_CIC_11_button_shift_click = { add_to_variable = { prod_11_multiplier = 100 } calculate_production_vars_11 = yes international_systems_update = yes } decrease_CIC_11_button_shift_click = { subtract_from_variable = { prod_11_multiplier = 100 } calculate_production_vars_11 = yes international_systems_update = yes } ### COMSAT production_type_12_button_click = { ROOT = { set_country_flag = open_MD_missile_production_type_window set_country_flag = missile_production_type_12 set_prod_display_arrays = yes } international_systems_update = yes } ### production amount button effects ### increase_amount_12_click = { ROOT = { add_to_variable = { var_gui_prod_12_amount = 1 } calculate_production_vars_12 = yes } international_systems_update = yes } decrease_amount_12_click = { ROOT = { subtract_from_variable = { var_gui_prod_12_amount = 1 } calculate_production_vars_12 = yes } international_systems_update = yes } increase_amount_12_control_click = { ROOT = { add_to_variable = { var_gui_prod_12_amount = 10 } calculate_production_vars_12 = yes } international_systems_update = yes } decrease_amount_12_control_click = { ROOT = { subtract_from_variable = { var_gui_prod_12_amount = 10 } calculate_production_vars_12 = yes } international_systems_update = yes } increase_amount_12_shift_click = { ROOT = { add_to_variable = { var_gui_prod_12_amount = 100 } calculate_production_vars_12 = yes } international_systems_update = yes } decrease_amount_12_shift_click = { ROOT = { subtract_from_variable = { var_gui_prod_12_amount = 100 } calculate_production_vars_12 = yes } international_systems_update = yes } start_button_12_click = { ROOT = { set_variable = { var_space_paid_12 = 0 } activate_mission = missile_construction_12 } international_systems_update = yes } delete_button_12_click = { ROOT = { remove_mission = missile_construction_12 set_variable = { var_space_production_COMSAT = 0 } space_auto_clear_line_12 = yes set_variable = { var_space_paid_12 = 0 } } international_systems_update = yes } increase_CIC_12_button_click = { add_to_variable = { prod_12_multiplier = 1 } calculate_production_vars_12 = yes international_systems_update = yes } decrease_CIC_12_button_click = { subtract_from_variable = { prod_12_multiplier = 1 } calculate_production_vars_12 = yes international_systems_update = yes } increase_CIC_12_button_control_click = { add_to_variable = { prod_12_multiplier = 10 } calculate_production_vars_12 = yes international_systems_update = yes } decrease_CIC_12_button_control_click = { subtract_from_variable = { prod_12_multiplier = 10 } calculate_production_vars_12 = yes international_systems_update = yes } increase_CIC_12_button_shift_click = { add_to_variable = { prod_12_multiplier = 100 } calculate_production_vars_12 = yes international_systems_update = yes } decrease_CIC_12_button_shift_click = { subtract_from_variable = { prod_12_multiplier = 100 } calculate_production_vars_12 = yes international_systems_update = yes } ### SPYSAT production_type_13_button_click = { ROOT = { set_country_flag = open_MD_missile_production_type_window set_country_flag = missile_production_type_13 set_prod_display_arrays = yes } international_systems_update = yes } ### production amount button effects ### increase_amount_13_click = { ROOT = { add_to_variable = { var_gui_prod_13_amount = 1 } calculate_production_vars_13 = yes } international_systems_update = yes } decrease_amount_13_click = { ROOT = { subtract_from_variable = { var_gui_prod_13_amount = 1 } calculate_production_vars_13 = yes } international_systems_update = yes } increase_amount_13_control_click = { ROOT = { add_to_variable = { var_gui_prod_13_amount = 10 } calculate_production_vars_13 = yes } international_systems_update = yes } decrease_amount_13_control_click = { ROOT = { subtract_from_variable = { var_gui_prod_13_amount = 10 } calculate_production_vars_13 = yes } international_systems_update = yes } increase_amount_13_shift_click = { ROOT = { add_to_variable = { var_gui_prod_13_amount = 100 } calculate_production_vars_13 = yes } international_systems_update = yes } decrease_amount_13_shift_click = { ROOT = { subtract_from_variable = { var_gui_prod_13_amount = 100 } calculate_production_vars_13 = yes } international_systems_update = yes } start_button_13_click = { ROOT = { set_variable = { var_space_paid_13 = 0 } activate_mission = missile_construction_13 } international_systems_update = yes } delete_button_13_click = { ROOT = { remove_mission = missile_construction_13 set_variable = { var_space_production_SPYSAT = 0 } space_auto_clear_line_13 = yes set_variable = { var_space_paid_13 = 0 } } international_systems_update = yes } increase_CIC_13_button_click = { add_to_variable = { prod_13_multiplier = 1 } calculate_production_vars_13 = yes international_systems_update = yes } decrease_CIC_13_button_click = { subtract_from_variable = { prod_13_multiplier = 1 } calculate_production_vars_13 = yes international_systems_update = yes } increase_CIC_13_button_control_click = { add_to_variable = { prod_13_multiplier = 10 } calculate_production_vars_13 = yes international_systems_update = yes } decrease_CIC_13_button_control_click = { subtract_from_variable = { prod_13_multiplier = 10 } calculate_production_vars_13 = yes international_systems_update = yes } increase_CIC_13_button_shift_click = { add_to_variable = { prod_13_multiplier = 100 } calculate_production_vars_13 = yes international_systems_update = yes } decrease_CIC_13_button_shift_click = { subtract_from_variable = { prod_13_multiplier = 100 } calculate_production_vars_13 = yes international_systems_update = yes } ### KILLSAT production_type_14_button_click = { ROOT = { set_country_flag = open_MD_missile_production_type_window set_country_flag = missile_production_type_14 set_prod_display_arrays = yes } international_systems_update = yes } ### production amount button effects ### increase_amount_14_click = { ROOT = { add_to_variable = { var_gui_prod_14_amount = 1 } calculate_production_vars_14 = yes } international_systems_update = yes } decrease_amount_14_click = { ROOT = { subtract_from_variable = { var_gui_prod_14_amount = 1 } calculate_production_vars_14 = yes } international_systems_update = yes } increase_amount_14_control_click = { ROOT = { add_to_variable = { var_gui_prod_14_amount = 10 } calculate_production_vars_14 = yes } international_systems_update = yes } decrease_amount_14_control_click = { ROOT = { subtract_from_variable = { var_gui_prod_14_amount = 10 } calculate_production_vars_14 = yes } international_systems_update = yes } increase_amount_14_shift_click = { ROOT = { add_to_variable = { var_gui_prod_14_amount = 100 } calculate_production_vars_14 = yes } international_systems_update = yes } decrease_amount_14_shift_click = { ROOT = { subtract_from_variable = { var_gui_prod_14_amount = 100 } calculate_production_vars_14 = yes } international_systems_update = yes } start_button_14_click = { ROOT = { set_variable = { var_space_paid_14 = 0 } activate_mission = missile_construction_14 } international_systems_update = yes } delete_button_14_click = { ROOT = { remove_mission = missile_construction_14 set_variable = { var_space_production_KILLSAT = 0 } set_variable = { var_space_paid_14 = 0 } } international_systems_update = yes } increase_CIC_14_button_click = { add_to_variable = { prod_14_multiplier = 1 } calculate_production_vars_14 = yes international_systems_update = yes } decrease_CIC_14_button_click = { subtract_from_variable = { prod_14_multiplier = 1 } calculate_production_vars_14 = yes international_systems_update = yes } increase_CIC_14_button_control_click = { add_to_variable = { prod_14_multiplier = 10 } calculate_production_vars_14 = yes international_systems_update = yes } decrease_CIC_14_button_control_click = { subtract_from_variable = { prod_14_multiplier = 10 } calculate_production_vars_14 = yes international_systems_update = yes } increase_CIC_14_button_shift_click = { add_to_variable = { prod_14_multiplier = 100 } calculate_production_vars_14 = yes international_systems_update = yes } decrease_CIC_14_button_shift_click = { subtract_from_variable = { prod_14_multiplier = 100 } calculate_production_vars_14 = yes international_systems_update = yes } } triggers = { ### OLV start_button_10_click_enabled = { NOT = { has_active_mission = missile_construction_10 } custom_trigger_tooltip = { tooltip = has_selected_prod_10_trigger_TT check_variable = { var_space_production_OLV > 0 } } } delete_button_10_click_enabled = { has_active_mission = missile_construction_10 } production_type_10_button_click_enabled = { NOT = { has_active_mission = missile_construction_10 } } increase_amount_10_click_enabled = { NOT = { has_active_mission = missile_construction_10 } } decrease_amount_10_click_enabled = { NOT = { has_active_mission = missile_construction_10 } check_variable = { var_gui_prod_10_amount > 1 } } increase_CIC_10_button_click_enabled = { NOT = { has_active_mission = missile_construction_10 } check_variable = { prod_10_multiplier < var_gui_prod_10_amount } } decrease_CIC_10_button_click_enabled = { NOT = { has_active_mission = missile_construction_10 } check_variable = { prod_10_multiplier > 1 } } increase_amount_10_control_click_enabled = { NOT = { has_active_mission = missile_construction_10 } } decrease_amount_10_control_click_enabled = { NOT = { has_active_mission = missile_construction_10 } } increase_amount_10_shift_click_enabled = { NOT = { has_active_mission = missile_construction_10 } } decrease_amount_10_shift_click_enabled = { NOT = { has_active_mission = missile_construction_10 } } increase_CIC_10_button_control_click_enabled = { NOT = { has_active_mission = missile_construction_10 } } decrease_CIC_10_button_control_click_enabled = { NOT = { has_active_mission = missile_construction_10 } } increase_CIC_10_button_shift_click_enabled = { NOT = { has_active_mission = missile_construction_10 } } decrease_CIC_10_button_shift_click_enabled = { NOT = { has_active_mission = missile_construction_10 } } start_button_10_visible = { NOT = { has_active_mission = missile_construction_10 } } prod_icon_10_visible = { has_active_mission = missile_construction_10 } prod_time_10_visible = { has_active_mission = missile_construction_10 } delete_button_10_visible = { has_active_mission = missile_construction_10 } ### GNSS start_button_11_click_enabled = { NOT = { has_active_mission = missile_construction_11 } custom_trigger_tooltip = { tooltip = has_selected_prod_11_trigger_TT check_variable = { var_space_production_GNSS > 0 } } } delete_button_11_click_enabled = { has_active_mission = missile_construction_11 } production_type_11_button_click_enabled = { NOT = { has_active_mission = missile_construction_11 } } increase_amount_11_click_enabled = { NOT = { has_active_mission = missile_construction_11 } } decrease_amount_11_click_enabled = { NOT = { has_active_mission = missile_construction_11 } check_variable = { var_gui_prod_11_amount > 1 } } increase_CIC_11_button_click_enabled = { NOT = { has_active_mission = missile_construction_11 } check_variable = { prod_11_multiplier < var_gui_prod_11_amount } } decrease_CIC_11_button_click_enabled = { NOT = { has_active_mission = missile_construction_11 } check_variable = { prod_11_multiplier > 1 } } increase_amount_11_control_click_enabled = { NOT = { has_active_mission = missile_construction_11 } } decrease_amount_11_control_click_enabled = { NOT = { has_active_mission = missile_construction_11 } } increase_amount_11_shift_click_enabled = { NOT = { has_active_mission = missile_construction_11 } } decrease_amount_11_shift_click_enabled = { NOT = { has_active_mission = missile_construction_11 } } increase_CIC_11_button_control_click_enabled = { NOT = { has_active_mission = missile_construction_11 } } decrease_CIC_11_button_control_click_enabled = { NOT = { has_active_mission = missile_construction_11 } } increase_CIC_11_button_shift_click_enabled = { NOT = { has_active_mission = missile_construction_11 } } decrease_CIC_11_button_shift_click_enabled = { NOT = { has_active_mission = missile_construction_11 } } start_button_11_visible = { NOT = { has_active_mission = missile_construction_11 } } prod_icon_11_visible = { has_active_mission = missile_construction_11 } prod_time_11_visible = { has_active_mission = missile_construction_11 } delete_button_11_visible = { has_active_mission = missile_construction_11 } ### COMSAT start_button_12_click_enabled = { NOT = { has_active_mission = missile_construction_12 } custom_trigger_tooltip = { tooltip = has_selected_prod_12_trigger_TT check_variable = { var_space_production_COMSAT > 0 } } } delete_button_12_click_enabled = { has_active_mission = missile_construction_12 } production_type_12_button_click_enabled = { NOT = { has_active_mission = missile_construction_12 } } increase_amount_12_click_enabled = { NOT = { has_active_mission = missile_construction_12 } } decrease_amount_12_click_enabled = { NOT = { has_active_mission = missile_construction_12 } check_variable = { var_gui_prod_12_amount > 1 } } increase_CIC_12_button_click_enabled = { NOT = { has_active_mission = missile_construction_12 } check_variable = { prod_12_multiplier < var_gui_prod_12_amount } } decrease_CIC_12_button_click_enabled = { NOT = { has_active_mission = missile_construction_12 } check_variable = { prod_12_multiplier > 1 } } increase_amount_12_control_click_enabled = { NOT = { has_active_mission = missile_construction_12 } } decrease_amount_12_control_click_enabled = { NOT = { has_active_mission = missile_construction_12 } } increase_amount_12_shift_click_enabled = { NOT = { has_active_mission = missile_construction_12 } } decrease_amount_12_shift_click_enabled = { NOT = { has_active_mission = missile_construction_12 } } increase_CIC_12_button_control_click_enabled = { NOT = { has_active_mission = missile_construction_12 } } decrease_CIC_12_button_control_click_enabled = { NOT = { has_active_mission = missile_construction_12 } } increase_CIC_12_button_shift_click_enabled = { NOT = { has_active_mission = missile_construction_12 } } decrease_CIC_12_button_shift_click_enabled = { NOT = { has_active_mission = missile_construction_12 } } start_button_12_visible = { NOT = { has_active_mission = missile_construction_12 } } prod_icon_12_visible = { has_active_mission = missile_construction_12 } prod_time_12_visible = { has_active_mission = missile_construction_12 } delete_button_12_visible = { has_active_mission = missile_construction_12 } ### SPYSAT start_button_13_click_enabled = { NOT = { has_active_mission = missile_construction_13 } custom_trigger_tooltip = { tooltip = has_selected_prod_13_trigger_TT check_variable = { var_space_production_SPYSAT > 0 } } } delete_button_13_click_enabled = { has_active_mission = missile_construction_13 } production_type_13_button_click_enabled = { NOT = { has_active_mission = missile_construction_13 } } increase_amount_13_click_enabled = { NOT = { has_active_mission = missile_construction_13 } } decrease_amount_13_click_enabled = { NOT = { has_active_mission = missile_construction_13 } check_variable = { var_gui_prod_13_amount > 1 } } increase_CIC_13_button_click_enabled = { NOT = { has_active_mission = missile_construction_13 } check_variable = { prod_13_multiplier < var_gui_prod_13_amount } } decrease_CIC_13_button_click_enabled = { NOT = { has_active_mission = missile_construction_13 } check_variable = { prod_13_multiplier > 1 } } increase_amount_13_control_click_enabled = { NOT = { has_active_mission = missile_construction_13 } } decrease_amount_13_control_click_enabled = { NOT = { has_active_mission = missile_construction_13 } } increase_amount_13_shift_click_enabled = { NOT = { has_active_mission = missile_construction_13 } } decrease_amount_13_shift_click_enabled = { NOT = { has_active_mission = missile_construction_13 } } increase_CIC_13_button_control_click_enabled = { NOT = { has_active_mission = missile_construction_13 } } decrease_CIC_13_button_control_click_enabled = { NOT = { has_active_mission = missile_construction_13 } } increase_CIC_13_button_shift_click_enabled = { NOT = { has_active_mission = missile_construction_13 } } decrease_CIC_13_button_shift_click_enabled = { NOT = { has_active_mission = missile_construction_13 } } start_button_13_visible = { NOT = { has_active_mission = missile_construction_13 } } prod_icon_13_visible = { has_active_mission = missile_construction_13 } prod_time_13_visible = { has_active_mission = missile_construction_13 } delete_button_13_visible = { has_active_mission = missile_construction_13 } ### KILLSAT start_button_14_click_enabled = { NOT = { has_active_mission = missile_construction_14 } custom_trigger_tooltip = { tooltip = has_selected_prod_14_trigger_TT check_variable = { var_space_production_KILLSAT > 0 } } } delete_button_14_click_enabled = { has_active_mission = missile_construction_14 } production_type_14_button_click_enabled = { NOT = { has_active_mission = missile_construction_14 } } increase_amount_14_click_enabled = { NOT = { has_active_mission = missile_construction_14 } } decrease_amount_14_click_enabled = { NOT = { has_active_mission = missile_construction_14 } check_variable = { var_gui_prod_14_amount > 1 } } increase_CIC_14_button_click_enabled = { NOT = { has_active_mission = missile_construction_14 } check_variable = { prod_14_multiplier < var_gui_prod_14_amount } } decrease_CIC_14_button_click_enabled = { NOT = { has_active_mission = missile_construction_14 } check_variable = { prod_14_multiplier > 1 } } increase_amount_14_control_click_enabled = { NOT = { has_active_mission = missile_construction_14 } } decrease_amount_14_control_click_enabled = { NOT = { has_active_mission = missile_construction_14 } } increase_amount_14_shift_click_enabled = { NOT = { has_active_mission = missile_construction_14 } } decrease_amount_14_shift_click_enabled = { NOT = { has_active_mission = missile_construction_14 } } increase_CIC_14_button_control_click_enabled = { NOT = { has_active_mission = missile_construction_14 } } decrease_CIC_14_button_control_click_enabled = { NOT = { has_active_mission = missile_construction_14 } } increase_CIC_14_button_shift_click_enabled = { NOT = { has_active_mission = missile_construction_14 } } decrease_CIC_14_button_shift_click_enabled = { NOT = { has_active_mission = missile_construction_14 } } start_button_14_visible = { NOT = { has_active_mission = missile_construction_14 } } prod_icon_14_visible = { has_active_mission = missile_construction_14 } prod_time_14_visible = { has_active_mission = missile_construction_14 } delete_button_14_visible = { has_active_mission = missile_construction_14 } #### production_type_10_button_click_enabled = { NOT = { has_country_flag = missile_production_type_10 } NOT = { has_country_flag = missile_production_type_11 } NOT = { has_country_flag = missile_production_type_12 } NOT = { has_country_flag = missile_production_type_13 } NOT = { has_country_flag = missile_production_type_14 } } production_type_11_button_click_enabled = { NOT = { has_country_flag = missile_production_type_10 } NOT = { has_country_flag = missile_production_type_11 } NOT = { has_country_flag = missile_production_type_12 } NOT = { has_country_flag = missile_production_type_13 } NOT = { has_country_flag = missile_production_type_14 } } production_type_12_button_click_enabled = { NOT = { has_country_flag = missile_production_type_10 } NOT = { has_country_flag = missile_production_type_11 } NOT = { has_country_flag = missile_production_type_12 } NOT = { has_country_flag = missile_production_type_13 } NOT = { has_country_flag = missile_production_type_14 } } production_type_13_button_click_enabled = { NOT = { has_country_flag = missile_production_type_10 } NOT = { has_country_flag = missile_production_type_11 } NOT = { has_country_flag = missile_production_type_12 } NOT = { has_country_flag = missile_production_type_13 } NOT = { has_country_flag = missile_production_type_14 } } production_type_14_button_click_enabled = { NOT = { has_country_flag = missile_production_type_10 } NOT = { has_country_flag = missile_production_type_11 } NOT = { has_country_flag = missile_production_type_12 } NOT = { has_country_flag = missile_production_type_13 } NOT = { has_country_flag = missile_production_type_14 } } } properties = { ### OLV prod_icon_10 = { image = "GFX_MD_prod_icon" frame = 2 } production_type_10_model_icon = { image = "[prod_10_icon_gui_texture]" } ### GNSS prod_icon_11 = { image = "GFX_MD_prod_icon" frame = 2 } production_type_11_model_icon = { image = "[prod_11_icon_gui_texture]" } ### COMSAT prod_icon_12 = { image = "GFX_MD_prod_icon" frame = 2 } production_type_12_model_icon = { image = "[prod_12_icon_gui_texture]" } ### SPYSAT prod_icon_13 = { image = "GFX_MD_prod_icon" frame = 2 } production_type_13_model_icon = { image = "[prod_13_icon_gui_texture]" } ### KILLSAT prod_icon_14 = { image = "GFX_MD_prod_icon" frame = 2 } production_type_14_model_icon = { image = "[prod_14_icon_gui_texture]" } } } MD_missile_production_type_window_gui = { window_name = MD_missile_production_type_window context_type = player_context parent_window_token = MD_countrymissilesview_production dirty = global.international_systems_updated visible = { has_country_flag = open_MD_missile_production_type_window check_variable = { var_open_MD_space_gui = 2 } } effects = { ### OLV missile_type_10_button_click = { set_variable = { var_space_production_OLV = prod_10_display_array^i } set_temp_variable = { prod_10_tier_idx = prod_10_display_array^i } subtract_from_temp_variable = { prod_10_tier_idx = 101 } set_variable = { var_gui_prod_10_price_unit = global.prod_10_price_unit^prod_10_tier_idx } set_variable = { var_gui_prod_10_days_unit = global.prod_10_duration_unit^prod_10_tier_idx } set_variable = { var_gui_prod_10_amount = 1 } set_variable = { prod_10_multiplier = 1 } calculate_production_vars_10 = yes clear_prod_display_arrays = yes clr_country_flag = open_MD_missile_production_type_window clr_country_flag = missile_production_type_10 international_systems_update = yes } ### GNSS missile_type_11_button_click = { set_variable = { var_space_production_GNSS = prod_11_display_array^i } set_temp_variable = { prod_11_tier_idx = prod_11_display_array^i } subtract_from_temp_variable = { prod_11_tier_idx = 121 } set_variable = { var_gui_prod_11_price_unit = global.prod_11_price_unit^prod_11_tier_idx } set_variable = { var_gui_prod_11_days_unit = global.prod_11_duration_unit^prod_11_tier_idx } set_variable = { var_gui_prod_11_amount = 1 } set_variable = { prod_11_multiplier = 1 } calculate_production_vars_11 = yes clear_prod_display_arrays = yes clr_country_flag = open_MD_missile_production_type_window clr_country_flag = missile_production_type_11 international_systems_update = yes } ### COMSAT missile_type_12_button_click = { set_variable = { var_space_production_COMSAT = prod_12_display_array^i } set_temp_variable = { prod_12_tier_idx = prod_12_display_array^i } subtract_from_temp_variable = { prod_12_tier_idx = 141 } set_variable = { var_gui_prod_12_price_unit = global.prod_12_price_unit^prod_12_tier_idx } set_variable = { var_gui_prod_12_days_unit = global.prod_12_duration_unit^prod_12_tier_idx } set_variable = { var_gui_prod_12_amount = 1 } set_variable = { prod_12_multiplier = 1 } calculate_production_vars_12 = yes clear_prod_display_arrays = yes clr_country_flag = open_MD_missile_production_type_window clr_country_flag = missile_production_type_12 international_systems_update = yes } ### SPYSAT missile_type_13_button_click = { set_variable = { var_space_production_SPYSAT = prod_13_display_array^i } set_temp_variable = { prod_13_tier_idx = prod_13_display_array^i } subtract_from_temp_variable = { prod_13_tier_idx = 161 } set_variable = { var_gui_prod_13_price_unit = global.prod_13_price_unit^prod_13_tier_idx } set_variable = { var_gui_prod_13_days_unit = global.prod_13_duration_unit^prod_13_tier_idx } set_variable = { var_gui_prod_13_amount = 1 } set_variable = { prod_13_multiplier = 1 } calculate_production_vars_13 = yes clear_prod_display_arrays = yes clr_country_flag = open_MD_missile_production_type_window clr_country_flag = missile_production_type_13 international_systems_update = yes } ### KILLSAT missile_type_14_button_click = { set_variable = { var_space_production_KILLSAT = prod_14_display_array^i } set_temp_variable = { prod_14_tier_idx = prod_14_display_array^i } subtract_from_temp_variable = { prod_14_tier_idx = 181 } set_variable = { var_gui_prod_14_price_unit = global.prod_14_price_unit^prod_14_tier_idx } set_variable = { var_gui_prod_14_days_unit = global.prod_14_duration_unit^prod_14_tier_idx } set_variable = { var_gui_prod_14_amount = 1 } set_variable = { prod_14_multiplier = 1 } calculate_production_vars_14 = yes clear_prod_display_arrays = yes clr_country_flag = open_MD_missile_production_type_window clr_country_flag = missile_production_type_14 international_systems_update = yes } close_button_click = { clear_prod_display_arrays = yes if = { limit = { has_country_flag = open_MD_missile_production_type_window } clr_country_flag = open_MD_missile_production_type_window } international_systems_update = yes } } triggers = { ### OLV missile_type_10_button_visible = { has_country_flag = missile_production_type_10 } missile_type_10_icon_visible = { has_country_flag = missile_production_type_10 } missile_model_name_10_visible = { has_country_flag = missile_production_type_10 } missile_type_10_button_click_enabled = { NOT = { has_active_mission = missile_construction_10 } } ### GNSS missile_type_11_button_visible = { has_country_flag = missile_production_type_11 } missile_type_11_icon_visible = { has_country_flag = missile_production_type_11 } missile_model_name_11_visible = { has_country_flag = missile_production_type_11 } missile_model_type_11_visible = { has_country_flag = missile_production_type_11 } missile_type_11_button_click_enabled = { NOT = { has_active_mission = missile_construction_11 } } ### COMSAT missile_type_12_button_visible = { has_country_flag = missile_production_type_12 } missile_type_12_icon_visible = { has_country_flag = missile_production_type_12 } missile_model_name_12_visible = { has_country_flag = missile_production_type_12 } missile_model_type_12_visible = { has_country_flag = missile_production_type_12 } missile_type_12_button_click_enabled = { NOT = { has_active_mission = missile_construction_12 } } ### SPYSAT missile_type_13_button_visible = { has_country_flag = missile_production_type_13 } missile_type_13_icon_visible = { has_country_flag = missile_production_type_13 } missile_model_name_13_visible = { has_country_flag = missile_production_type_13 } missile_model_type_13_visible = { has_country_flag = missile_production_type_13 } missile_type_13_button_click_enabled = { NOT = { has_active_mission = missile_construction_13 } } ### KILLSAT missile_type_14_button_visible = { has_country_flag = missile_production_type_14 } missile_type_14_icon_visible = { has_country_flag = missile_production_type_14 } missile_model_name_14_visible = { has_country_flag = missile_production_type_14 } missile_type_14_button_click_enabled = { NOT = { has_active_mission = missile_construction_14 } } } properties = { ### OLV missile_type_10_icon = { image = "[prod_10_icon_texture]" } ### GNSS missile_type_11_icon = { image = "[prod_11_icon_texture]" } ### COMSAT missile_type_12_icon = { image = "[prod_12_icon_texture]" } ### SPYSAT missile_type_13_icon = { image = "[prod_13_icon_texture]" } ### KILLSAT missile_type_14_icon = { image = "[prod_14_icon_texture]" } } dynamic_lists = { ### OLV production_types_10_gridbox = { array = prod_10_display_array entry_container = missile_type_10_entry } ### GNSS production_types_11_gridbox = { array = prod_11_display_array entry_container = missile_type_11_entry } ### COMSAT production_types_12_gridbox = { array = prod_12_display_array entry_container = missile_type_12_entry } ### SPYSAT production_types_13_gridbox = { array = prod_13_display_array entry_container = missile_type_13_entry } ### KILLSAT production_types_14_gridbox = { array = prod_14_display_array entry_container = missile_type_14_entry } } } MD_countrymissilesview_space_gui = { window_name = MD_countrymissilesview_space context_type = player_context parent_window_name = MD_space_program_window_instance dirty = global.international_systems_updated visible = { check_variable = { var_open_MD_missiles_gui_ledger_4 = 2 } check_variable = { var_open_MD_space_gui = 2 } has_country_flag = open_MD_countrymissilesview } effects = { OLV_model_button_click = { ROOT = { set_OLV_display_array = yes set_country_flag = open_MD_space_selection_window set_country_flag = OLV_model } international_systems_update = yes } payload_button_click = { ROOT = { set_variable = { var_open_space_selection_ledger_1 = 2 } set_sat_payload_display_array = yes set_country_flag = open_MD_space_selection_window set_country_flag = sat_payload_model } international_systems_update = yes } clear_payload_button_click = { clear_payload_types = yes international_systems_update = yes } OLV_flights_small_plus_button_bg_click = { ROOT = { add_to_variable = { var_OLV_flights = 1 } } international_systems_update = yes } OLV_flights_small_minus_button_bg_click = { ROOT = { subtract_from_variable = { var_OLV_flights = 1 } } international_systems_update = yes } OLV_flights_small_plus_button_bg_control_click = { ROOT = { add_to_variable = { var_OLV_flights = 10 } } international_systems_update = yes } OLV_flights_small_minus_button_bg_control_click = { ROOT = { subtract_from_variable = { var_OLV_flights = 10 } if = { limit = { check_variable = { var_OLV_flights < 0 } } set_variable = { var_OLV_flights = 0 } } } international_systems_update = yes } OLV_flights_small_plus_button_bg_shift_click = { ROOT = { add_to_variable = { var_OLV_flights = 100 } } international_systems_update = yes } OLV_flights_small_minus_button_bg_shift_click = { ROOT = { subtract_from_variable = { var_OLV_flights = 100 } if = { limit = { check_variable = { var_OLV_flights < 0 } } set_variable = { var_OLV_flights = 0 } } } international_systems_update = yes } OLV_launch_button_click = { launch_OLV = yes ### update orbit stat set_variable = { orbit_selected_TAG = ROOT.id } set_sat_access_arrays_selected_TAG = yes set_satellites_gui = yes international_systems_update = yes update_space_system_values = yes } ASAT_model_button_click = { ROOT = { set_ASAT_display_array = yes set_country_flag = open_MD_space_selection_window set_country_flag = ASAT_model } international_systems_update = yes } ASAT_salvo_small_plus_button_bg_click = { ROOT = { add_to_variable = { var_ASAT_salvo = 1 } } international_systems_update = yes } ASAT_salvo_small_minus_button_bg_click = { ROOT = { subtract_from_variable = { var_ASAT_salvo = 1 } if = { limit = { check_variable = { var_ASAT_salvo < 0 } } set_variable = { var_ASAT_salvo = 0 } } } international_systems_update = yes } ASAT_salvo_small_plus_button_bg_control_click = { ROOT = { add_to_variable = { var_ASAT_salvo = 10 } } international_systems_update = yes } ASAT_salvo_small_minus_button_bg_control_click = { ROOT = { subtract_from_variable = { var_ASAT_salvo = 10 } if = { limit = { check_variable = { var_ASAT_salvo < 0 } } set_variable = { var_ASAT_salvo = 0 } } } international_systems_update = yes } ASAT_salvo_small_plus_button_bg_shift_click = { ROOT = { add_to_variable = { var_ASAT_salvo = 100 } } international_systems_update = yes } ASAT_salvo_small_minus_button_bg_shift_click = { ROOT = { subtract_from_variable = { var_ASAT_salvo = 100 } if = { limit = { check_variable = { var_ASAT_salvo < 0 } } set_variable = { var_ASAT_salvo = 0 } } } international_systems_update = yes } ASAT_button_click = { set_variable = { ROOT.var_anti_sat_accuracy = ROOT.var_ASAT_accuracy } set_variable = { ROOT.var_anti_satellite_weapon_num = ROOT.var_ASAT_salvo } anti_satellite_weapon_use = yes subtract_from_variable = { ROOT.missile_inventory_array^var_ASAT_type = ROOT.var_ASAT_salvo } set_variable = { ROOT.var_ASAT_inventory = ROOT.missile_inventory_array^var_ASAT_type } set_variable = { ROOT.var_ASAT_salvo = 0 } international_systems_update = yes } KILLSAT_model_button_click = { ROOT = { set_KILLSAT_display_array = yes set_country_flag = open_MD_space_selection_window set_country_flag = KILLSAT_model } international_systems_update = yes } KILLSAT_salvo_small_plus_button_bg_click = { ROOT = { add_to_variable = { var_KILLSAT_salvo = 1 } } international_systems_update = yes } KILLSAT_salvo_small_minus_button_bg_click = { ROOT = { subtract_from_variable = { var_KILLSAT_salvo = 1 } if = { limit = { check_variable = { var_KILLSAT_salvo < 0 } } set_variable = { var_KILLSAT_salvo = 0 } } } international_systems_update = yes } KILLSAT_salvo_small_plus_button_bg_control_click = { ROOT = { add_to_variable = { var_KILLSAT_salvo = 10 } } international_systems_update = yes } KILLSAT_salvo_small_minus_button_bg_control_click = { ROOT = { subtract_from_variable = { var_KILLSAT_salvo = 10 } if = { limit = { check_variable = { var_KILLSAT_salvo < 0 } } set_variable = { var_KILLSAT_salvo = 0 } } } international_systems_update = yes } KILLSAT_salvo_small_plus_button_bg_shift_click = { ROOT = { add_to_variable = { var_KILLSAT_salvo = 100 } } international_systems_update = yes } KILLSAT_salvo_small_minus_button_bg_shift_click = { ROOT = { subtract_from_variable = { var_KILLSAT_salvo = 100 } if = { limit = { check_variable = { var_KILLSAT_salvo < 0 } } set_variable = { var_KILLSAT_salvo = 0 } } } international_systems_update = yes } activate_killsat_button_click = { set_variable = { ROOT.var_anti_sat_accuracy = ROOT.var_KILLSAT_accuracy } set_variable = { ROOT.var_anti_satellite_weapon_num = ROOT.var_KILLSAT_salvo } anti_satellite_weapon_use = yes remove_killsat_used = yes international_systems_update = yes } open_satellite_orbit_screen_click = { if = { limit = { NOT = { has_country_flag = rods_search_target } } set_country_flag = rods_search_target } else = { clr_country_flag = rods_search_target } international_systems_update = yes } space_auto_toggle_button_click = { space_auto_toggle = yes international_systems_update = yes } space_auto_save_button_click = { space_auto_save_template = yes international_systems_update = yes } space_auto_upgrade_button_click = { space_auto_upgrade_all = yes international_systems_update = yes } space_auto_deficit_button_click = { space_auto_toggle_deficit = yes international_systems_update = yes } space_auto_stockpile_button_click = { space_auto_toggle_stockpile = yes international_systems_update = yes } space_auto_latest_olv_button_click = { space_auto_toggle_latest_olv = yes international_systems_update = yes } space_auto_preset_plus_button_click = { space_auto_cycle_preset = yes international_systems_update = yes } space_auto_preset_minus_button_click = { space_auto_cycle_preset_back = yes international_systems_update = yes } space_auto_flights_plus_button_click = { add_to_variable = { var_space_auto_flights = 1 } clamp_variable = { var = var_space_auto_flights min = 1 max = 10 } space_auto_preview = yes international_systems_update = yes } space_auto_flights_minus_button_click = { subtract_from_variable = { var_space_auto_flights = 1 } clamp_variable = { var = var_space_auto_flights min = 1 max = 10 } space_auto_preview = yes international_systems_update = yes } } triggers = { OLV_model_button_click_enabled = { NOT = { has_country_flag = open_MD_space_selection_window } } payload_button_click_enabled = { NOT = { has_country_flag = open_MD_space_selection_window } } ASAT_model_button_click_enabled = { NOT = { has_country_flag = open_MD_space_selection_window } } KILLSAT_model_button_click_enabled = { NOT = { has_country_flag = open_MD_space_selection_window } } KILLSAT_salvo_small_minus_button_bg_click_enabled = { check_variable = { var_KILLSAT_salvo > 0 } } OLV_launch_button_click_enabled = { custom_trigger_tooltip = { tooltip = OLV_LAUNCH_BUTTON_TT_trigger_1 OR = { check_variable = { var_launch_mass < var_OLV_payload_mass } check_variable = { var_launch_mass = var_OLV_payload_mass } } } custom_trigger_tooltip = { tooltip = OLV_LAUNCH_BUTTON_TT_trigger_2 OR = { check_variable = { var_OLV_flights < var_OLV_inventory } check_variable = { var_OLV_flights = var_OLV_inventory } } } custom_trigger_tooltip = { tooltip = OLV_LAUNCH_BUTTON_TT_trigger_3 check_variable = { var_OLV_flights > 0 } } } OLV_flights_small_minus_button_bg_click_enabled = { check_variable = { var_OLV_flights > 0 } } ASAT_button_click_enabled = { custom_trigger_tooltip = { tooltip = ASAT_salvo_trigger_1_TT check_variable = { var_ASAT_salvo > 0 } } custom_trigger_tooltip = { tooltip = ASAT_salvo_trigger_2_TT OR = { check_variable = { var_ASAT_salvo < var_ASAT_inventory } check_variable = { var_ASAT_salvo = var_ASAT_inventory } } } custom_trigger_tooltip = { tooltip = has_target_list_TT check_variable = { ROOT.sat_target_array^num > 0 } } custom_trigger_tooltip = { tooltip = has_war_sat_trigger_TT all_of_scopes = { array = ROOT.sat_target_TAG_array ROOT = { has_war_with = PREV } } } } ASAT_salvo_small_minus_button_bg_click_enabled = { check_variable = { var_ASAT_salvo > 0 } } space_auto_save_button_click_enabled = { custom_trigger_tooltip = { tooltip = SPACE_AUTO_SAVE_TT_trigger_2 OR = { NOT = { check_variable = { payload_types_array^0 = 1 } } NOT = { check_variable = { payload_types_array^1 = 1 } } NOT = { check_variable = { payload_types_array^2 = 1 } } NOT = { check_variable = { payload_types_array^3 = 1 } } } } } space_auto_upgrade_button_click_enabled = { has_completed_space_program = yes } space_auto_toggle_button_click_enabled = { has_completed_space_program = yes } space_auto_flights_plus_button_click_enabled = { check_variable = { var_space_auto_flights < 10 } } space_auto_flights_minus_button_click_enabled = { check_variable = { var_space_auto_flights > 1 } } activate_killsat_button_click_enabled = { custom_trigger_tooltip = { tooltip = KILLSAT_salvo_trigger_1_TT check_variable = { var_KILLSAT_salvo > 0 } } custom_trigger_tooltip = { tooltip = KILLSAT_salvo_trigger_2_TT OR = { check_variable = { var_KILLSAT_salvo < var_KILLSAT_orbit } check_variable = { var_KILLSAT_salvo = var_KILLSAT_orbit } } } custom_trigger_tooltip = { tooltip = has_target_list_TT check_variable = { ROOT.sat_target_array^num > 0 } } custom_trigger_tooltip = { tooltip = has_war_sat_trigger_TT all_of_scopes = { array = ROOT.sat_target_TAG_array ROOT = { has_war_with = PREV } } } } } properties = { ### OLV OLV_model_icon = { image = "[OLV_selected_icon_texture]" } payload_icon = { image = "[payload_icon_selected_texture]" } ASAT_model_icon = { image = "[ASAT_selected_icon_texture]" } KILLSAT_model_icon = { image = "[KILLSAT_selected_icon_texture]" } space_auto_toggle_button = { frame = var_space_auto_on } space_auto_deficit_button = { frame = var_space_auto_deficit_on } space_auto_stockpile_button = { frame = var_space_auto_stockpile_on } space_auto_latest_olv_button = { frame = var_space_auto_latest_olv_on } } dynamic_lists = { payload_types_gridbox = { array = payload_types_array # one element per type, value = tech lvl entry_container = payload_type_entry } } } MD_space_selection_window_gui = { window_name = MD_space_selection_window context_type = player_context parent_window_token = MD_countrymissilesview_space dirty = global.international_systems_updated visible = { has_country_flag = open_MD_space_selection_window check_variable = { var_open_MD_space_gui = 2 } } effects = { OLV_type_button_click = { set_variable = { var_OLV_type = OLV_display_array^i } set_variable = { var_OLV_reliability = { value = global.OLV_reliability_array^i multiply = { value = 1 add = modifier@olv_launch_reliability_modifier } clamp = { min = 0 max = 1 } } } set_variable = { var_OLV_payload_mass = global.OLV_payload_mass_array^i } set_variable = { var_OLV_inventory = missile_inventory_array^OLV_display_array^i } clear_array = OLV_display_array clr_country_flag = OLV_model clr_country_flag = open_MD_space_selection_window international_systems_update = yes } sat_payload_type_button_click = { if = { limit = { check_variable = { payload_types_array^0 = 1 } } set_variable = { payload_types_array^0 = sat_payload_display_array^i } } else_if = { limit = { check_variable = { payload_types_array^1 = 1 } } set_variable = { payload_types_array^1 = sat_payload_display_array^i } } else_if = { limit = { check_variable = { payload_types_array^2 = 1 } } set_variable = { payload_types_array^2 = sat_payload_display_array^i } } else_if = { limit = { check_variable = { payload_types_array^3 = 1 } } set_variable = { payload_types_array^3 = sat_payload_display_array^i } } else = { add_to_array = { payload_types_array = sat_payload_display_array^i } } add_to_variable = { var_launch_mass = global.sat_mass_array^i } #set_variable = { var_OLV_payload_mass = global.OLV_payload_mass_array^i } clear_array = sat_payload_display_array clr_country_flag = sat_payload_model clr_country_flag = open_MD_space_selection_window international_systems_update = yes } spp_payload_type_button_click = { if = { limit = { check_variable = { payload_types_array^0 = 1 } } set_variable = { payload_types_array^0 = spp_payload_display_array^i } } else_if = { limit = { check_variable = { payload_types_array^1 = 1 } } set_variable = { payload_types_array^1 = spp_payload_display_array^i } } else_if = { limit = { check_variable = { payload_types_array^2 = 1 } } set_variable = { payload_types_array^2 = spp_payload_display_array^i } } else_if = { limit = { check_variable = { payload_types_array^3 = 1 } } set_variable = { payload_types_array^3 = spp_payload_display_array^i } } else = { add_to_array = { payload_types_array = spp_payload_display_array^i } } add_to_variable = { var_launch_mass = global.spp_mass_array^i } #set_variable = { var_OLV_payload_mass = global.OLV_payload_mass_array^i } clear_array = spp_payload_display_array clr_country_flag = spp_payload_model clr_country_flag = open_MD_space_selection_window international_systems_update = yes } space_selection_ledger_btn_1_click = { set_variable = { var_open_space_selection_ledger_1 = 2 } clear_variable = var_open_space_selection_ledger_2 set_sat_payload_display_array = yes set_country_flag = sat_payload_model clear_array = spp_payload_display_array clr_country_flag = spp_payload_model clear_array = OLV_display_array clr_country_flag = OLV_model international_systems_update = yes } space_selection_ledger_btn_2_click = { set_variable = { var_open_space_selection_ledger_2 = 2 } clear_variable = var_open_space_selection_ledger_1 set_spp_payload_display_array = yes set_country_flag = spp_payload_model clear_array = sat_payload_display_array clr_country_flag = sat_payload_model clear_array = OLV_display_array clr_country_flag = OLV_model international_systems_update = yes } ASAT_type_button_click = { set_variable = { var_ASAT_type = ASAT_display_array^i } set_variable = { var_ASAT_accuracy = global.ASAT_accuracy_array^i } set_variable = { var_ASAT_inventory = missile_inventory_array^ASAT_display_array^i } clear_array = ASAT_display_array clr_country_flag = ASAT_model clr_country_flag = open_MD_space_selection_window international_systems_update = yes } KILLSAT_type_button_click = { set_variable = { var_KILLSAT_type = KILLSAT_display_array^i } set_variable = { var_KILLSAT_accuracy = global.KILLSAT_accuracy_array^i } set_variable = { var_KILLSAT_orbit = KILL_satellite_array^i } clear_array = KILLSAT_display_array clr_country_flag = KILLSAT_model clr_country_flag = open_MD_space_selection_window international_systems_update = yes } close_button_click = { clear_array = OLV_display_array clear_array = sat_payload_display_array clear_array = spp_payload_display_array clr_country_flag = OLV_model clr_country_flag = sat_payload_model clr_country_flag = spp_payload_model clear_variable = var_open_space_selection_ledger_1 clear_variable = var_open_space_selection_ledger_2 if = { limit = { has_country_flag = open_MD_space_selection_window } clr_country_flag = open_MD_space_selection_window } international_systems_update = yes } } triggers = { ### OLV OLV_type_button_visible = { has_country_flag = OLV_model } OLV_type_icon_visible = { has_country_flag = OLV_model } OLV_type_button_click_enabled = { custom_trigger_tooltip = { tooltip = has_OLV_inventory_TT check_variable = { missile_inventory_array^OLV_display_array^i > 0 } } } ### sat_payload sat_payload_type_button_visible = { has_country_flag = sat_payload_model } sat_payload_type_icon_visible = { has_country_flag = sat_payload_model } sat_payload_type_button_click_enabled = { custom_trigger_tooltip = { tooltip = has_SAT_inventory_TT check_variable = { missile_inventory_array^sat_payload_display_array^i > 0 } } } ### spp_payload spp_payload_type_button_visible = { has_country_flag = spp_payload_model } spp_payload_type_icon_visible = { has_country_flag = spp_payload_model } spp_payload_type_button_click_enabled = { custom_trigger_tooltip = { tooltip = has_SPP_inventory_TT check_variable = { spp_inventory_array^i > 0 } } } # space_selection_ledger_btn_1_visible = { OR = { has_country_flag = sat_payload_model has_country_flag = spp_payload_model } } icon_space_selection_btn_1_visible = { OR = { has_country_flag = sat_payload_model has_country_flag = spp_payload_model } } space_selection_ledger_btn_2_visible = { OR = { has_country_flag = sat_payload_model has_country_flag = spp_payload_model } } icon_space_selection_btn_2_visible = { OR = { has_country_flag = sat_payload_model has_country_flag = spp_payload_model } } ### ASAT ASAT_type_button_visible = { has_country_flag = ASAT_model } ASAT_type_icon_visible = { has_country_flag = ASAT_model } ASAT_type_button_click_enabled = { custom_trigger_tooltip = { tooltip = has_ASAT_inventory_TT check_variable = { missile_inventory_array^ASAT_display_array^i > 0 } } } ### KILLSAT KILLSAT_type_button_visible = { has_country_flag = KILLSAT_model } KILLSAT_type_icon_visible = { has_country_flag = KILLSAT_model } KILLSAT_type_button_click_enabled = { custom_trigger_tooltip = { tooltip = has_KILLSAT_orbit_TT check_variable = { KILL_satellite_array^i > 0 } } } } properties = { OLV_type_icon = { image = "[OLV_type_icon_texture]" } sat_payload_type_icon = { image = "[sat_payload_type_icon_texture]" } spp_payload_type_icon = { image = "[spp_payload_type_icon_texture]" } space_selection_ledger_btn_1 = { frame = var_open_space_selection_ledger_1 } space_selection_ledger_btn_2 = { frame = var_open_space_selection_ledger_2 } ASAT_type_icon = { image = "[ASAT_type_icon_texture]" } KILLSAT_type_icon = { image = "[KILLSAT_type_icon_texture]" } } dynamic_lists = { OLV_types_gridbox = { array = OLV_display_array # one element per type, value = tech lvl entry_container = OLV_type_entry #change_scope = yes } sat_payload_types_gridbox = { array = sat_payload_display_array # one element per type, value = tech lvl entry_container = sat_payload_type_entry #change_scope = yes } spp_payload_types_gridbox = { array = spp_payload_display_array # one element per type, value = tech lvl entry_container = spp_payload_type_entry #change_scope = yes } ASAT_gridbox = { array = ASAT_display_array # one element per type, value = tech lvl entry_container = ASAT_type_entry #change_scope = yes } KILLSAT_gridbox = { array = KILLSAT_display_array # one element per type, value = tech lvl entry_container = KILLSAT_type_entry #change_scope = yes } } } MD_countrymissilesview_satellites_gui = { window_name = MD_countrymissilesview_satellites context_type = player_context parent_window_name = MD_space_program_window_instance dirty = global.international_systems_updated visible = { check_variable = { var_open_MD_missiles_gui_ledger_5 = 2 } check_variable = { var_open_MD_space_gui = 2 } has_country_flag = open_MD_countrymissilesview } effects = { ### GNSS GNSS_mil_button_click = { set_country_flag = open_MD_select_satellite_system_window set_GNSS_mil_systems = yes international_systems_update = yes } GNSS_civ_button_click = { set_country_flag = open_MD_select_satellite_system_window set_GNSS_civ_systems = yes international_systems_update = yes } ### COM COM_mil_button_click = { set_country_flag = open_MD_select_satellite_system_window set_COM_mil_systems = yes international_systems_update = yes } COM_civ_button_click = { set_country_flag = open_MD_select_satellite_system_window set_COM_civ_systems = yes international_systems_update = yes } ### SPY SPY_mil_button_click = { set_country_flag = open_MD_select_satellite_system_window set_SPY_mil_systems = yes international_systems_update = yes } SPY_civ_button_click = { set_country_flag = open_MD_select_satellite_system_window set_SPY_civ_systems = yes international_systems_update = yes } ### Auto-reject AI satellite access requests MD_auto_reject_satellite_button_click = { if = { limit = { has_country_flag = MD_auto_reject_satellite_access } clr_country_flag = MD_auto_reject_satellite_access } else = { set_country_flag = MD_auto_reject_satellite_access } international_systems_update = yes } } properties = { MD_auto_reject_satellite_button = { image = "[MD_get_auto_reject_satellite_checkbox]" } GNSS_mil_treaty_flags_button = { image = "[?ROOT.GNSS_mil_treaty_array^i.GetFlag]" } GNSS_mil_access_flags_button = { image = "[?ROOT.GNSS_mil_access_array^i.GetFlag]" } GNSS_civ_treaty_flags_button = { image = "[?ROOT.GNSS_civ_treaty_array^i.GetFlag]" } GNSS_civ_access_flags_button = { image = "[?ROOT.GNSS_civ_access_array^i.GetFlag]" } COM_mil_treaty_flags_button = { image = "[?ROOT.COM_mil_treaty_array^i.GetFlag]" } COM_mil_access_flags_button = { image = "[?ROOT.COM_mil_access_array^i.GetFlag]" } COM_civ_treaty_flags_button = { image = "[?ROOT.COM_civ_treaty_array^i.GetFlag]" } COM_civ_access_flags_button = { image = "[?ROOT.COM_civ_access_array^i.GetFlag]" } SPY_mil_treaty_flags_button = { image = "[?ROOT.SPY_mil_treaty_array^i.GetFlag]" } SPY_mil_access_flags_button = { image = "[?ROOT.SPY_mil_access_array^i.GetFlag]" } SPY_civ_treaty_flags_button = { image = "[?ROOT.SPY_civ_treaty_array^i.GetFlag]" } SPY_civ_access_flags_button = { image = "[?ROOT.SPY_civ_access_array^i.GetFlag]" } } dynamic_lists = { ## GNSS GNSS_mil_treaty_gridbox = { array = ROOT.GNSS_mil_treaty_array entry_container = GNSS_mil_treaty_entry } GNSS_mil_access_gridbox = { array = ROOT.GNSS_mil_access_array entry_container = GNSS_mil_access_entry } GNSS_civ_treaty_gridbox = { array = ROOT.GNSS_civ_treaty_array entry_container = GNSS_civ_treaty_entry } GNSS_civ_access_gridbox = { array = ROOT.GNSS_civ_access_array entry_container = GNSS_civ_access_entry } ## COM COM_mil_treaty_gridbox = { array = ROOT.COM_mil_treaty_array entry_container = COM_mil_treaty_entry } COM_mil_access_gridbox = { array = ROOT.COM_mil_access_array entry_container = COM_mil_access_entry } COM_civ_treaty_gridbox = { array = ROOT.COM_civ_treaty_array entry_container = COM_civ_treaty_entry } COM_civ_access_gridbox = { array = ROOT.COM_civ_access_array entry_container = COM_civ_access_entry } ## SPY SPY_mil_treaty_gridbox = { array = ROOT.SPY_mil_treaty_array entry_container = SPY_mil_treaty_entry } SPY_mil_access_gridbox = { array = ROOT.SPY_mil_access_array entry_container = SPY_mil_access_entry } SPY_civ_treaty_gridbox = { array = ROOT.SPY_civ_treaty_array entry_container = SPY_civ_treaty_entry } SPY_civ_access_gridbox = { array = ROOT.SPY_civ_access_array entry_container = SPY_civ_access_entry } } } MD_select_satellite_system_window_gui = { window_name = MD_select_satellite_system_window context_type = player_context parent_window_token = MD_countrymissilesview_satellites dirty = global.international_systems_updated visible = { check_variable = { var_open_MD_space_gui = 2 } has_country_flag = open_MD_select_satellite_system_window } effects = { GNSS_mil_button_click = { GNSS_mil_button_update = yes clr_country_flag = open_MD_select_satellite_system_window international_systems_update = yes } GNSS_civ_button_click = { GNSS_civ_button_update = yes clr_country_flag = open_MD_select_satellite_system_window international_systems_update = yes } COM_mil_button_click = { COM_mil_button_update = yes clr_country_flag = open_MD_select_satellite_system_window international_systems_update = yes } COM_civ_button_click = { COM_civ_button_update = yes clr_country_flag = open_MD_select_satellite_system_window international_systems_update = yes } SPY_mil_button_click = { SPY_mil_button_update = yes clr_country_flag = open_MD_select_satellite_system_window international_systems_update = yes } SPY_civ_button_click = { SPY_civ_button_update = yes clr_country_flag = open_MD_select_satellite_system_window international_systems_update = yes } close_click = { clr_country_flag = open_MD_select_satellite_system_window clear_array = GNSS_mil_systems_array clear_array = GNSS_civ_systems_array clear_array = COM_mil_systems_array clear_array = COM_civ_systems_array clear_array = SPY_mil_systems_array clear_array = SPY_civ_systems_array international_systems_update = yes } } triggers = { GNSS_mil_button_click_enabled = { OR = { check_variable = { GNSS_satellite_array^i > global.GNSS_sat_system_min_array^i } check_variable = { i = 0 } } } GNSS_civ_button_click_enabled = { OR = { check_variable = { GNSS_satellite_array^i > global.GNSS_sat_system_min_array^i } check_variable = { i = 0 } } } COM_mil_button_click_enabled = { OR = { check_variable = { COM_satellite_array^i > global.COM_sat_system_min_array^i } check_variable = { i = 0 } } } COM_civ_button_click_enabled = { OR = { check_variable = { COM_satellite_array^i > global.COM_sat_system_min_array^i } check_variable = { i = 0 } } } SPY_mil_button_click_enabled = { OR = { check_variable = { SPY_satellite_array^i > global.SPY_sat_system_min_array^i } check_variable = { i = 0 } } } SPY_civ_button_click_enabled = { OR = { check_variable = { SPY_satellite_array^i > global.SPY_sat_system_min_array^i } check_variable = { i = 0 } } } } properties = { GNSS_mil_button = { image = "GFX_sat_system_2_frame_btn" frame = 2 } GNSS_civ_button = { image = "GFX_sat_system_2_frame_btn" frame = 2 } COM_mil_button = { image = "GFX_sat_system_2_frame_btn" frame = 2 } COM_civ_button = { image = "GFX_sat_system_2_frame_btn" frame = 2 } SPY_mil_button = { image = "GFX_sat_system_2_frame_btn" frame = 2 } SPY_civ_button = { image = "GFX_sat_system_2_frame_btn" frame = 2 } } dynamic_lists = { GNSS_mil_systems_gridbox = { array = ROOT.GNSS_mil_systems_array entry_container = GNSS_mil_systems_entry } GNSS_civ_systems_gridbox = { array = ROOT.GNSS_civ_systems_array entry_container = GNSS_civ_systems_entry } COM_mil_systems_gridbox = { array = ROOT.COM_mil_systems_array entry_container = COM_mil_systems_entry } COM_civ_systems_gridbox = { array = ROOT.COM_civ_systems_array entry_container = COM_civ_systems_entry } SPY_mil_systems_gridbox = { array = ROOT.SPY_mil_systems_array entry_container = SPY_mil_systems_entry } SPY_civ_systems_gridbox = { array = ROOT.SPY_civ_systems_array entry_container = SPY_civ_systems_entry } } } MD_satellite_orbit_view_gui = { window_name = MD_satellite_orbit_view context_type = player_context parent_window_token = MD_countrymissilesview_space dirty = global.international_systems_updated visible = { ROOT = { check_variable = { var_open_MD_missiles_gui_ledger_4 = 2 } check_variable = { var_open_MD_space_gui = 2 } has_country_flag = open_MD_countrymissilesview NOT = { has_country_flag = rods_search_target } } } effects = { filter_button_click = { add_to_variable = { sat_disp_num = 1 } if = { limit = { check_variable = { sat_disp_num > 3 } } set_variable = { sat_disp_num = 0 } } if = { limit = { NOT = { check_variable = { spec_filter = 0 } } } add_to_variable = { spec_filter = 20 } if = { limit = { check_variable = { spec_filter > 172 } } subtract_from_variable = { spec_filter = 40 } } } international_systems_update = yes } target_all_button_click = { target_all_filtered_sats = yes international_systems_update = yes } adv_filter_button_click = { advanced_filter_effect = yes international_systems_update = yes } sat_1_button_click = { start_satellite_deorbit_selection = yes var:orbit_selected_TAG = { set_variable = { ROOT.var_selected_sat = sat_1_array^i } } international_systems_update = yes } sat_1_button_control_click = { var:orbit_selected_TAG = { add_to_array = { ROOT.sat_target_array = sat_1_array^i } add_to_array = { ROOT.sat_target_TAG_array = orbit_selected_TAG } } international_systems_update = yes } sat_2_button_click = { start_satellite_deorbit_selection = yes var:orbit_selected_TAG = { set_variable = { ROOT.var_selected_sat = sat_2_array^i } } international_systems_update = yes } sat_2_button_control_click = { var:orbit_selected_TAG = { add_to_array = { ROOT.sat_target_array = sat_2_array^i } add_to_array = { ROOT.sat_target_TAG_array = orbit_selected_TAG } } international_systems_update = yes } sat_3_button_click = { start_satellite_deorbit_selection = yes var:orbit_selected_TAG = { set_variable = { ROOT.var_selected_sat = sat_3_array^i } } international_systems_update = yes } sat_3_button_control_click = { var:orbit_selected_TAG = { add_to_array = { ROOT.sat_target_array = sat_3_array^i } add_to_array = { ROOT.sat_target_TAG_array = orbit_selected_TAG } } international_systems_update = yes } sat_4_button_click = { start_satellite_deorbit_selection = yes var:orbit_selected_TAG = { set_variable = { ROOT.var_selected_sat = sat_4_array^i } } international_systems_update = yes } sat_4_button_control_click = { var:orbit_selected_TAG = { add_to_array = { ROOT.sat_target_array = sat_4_array^i } add_to_array = { ROOT.sat_target_TAG_array = orbit_selected_TAG } } international_systems_update = yes } sat_5_button_click = { start_satellite_deorbit_selection = yes var:orbit_selected_TAG = { set_variable = { ROOT.var_selected_sat = sat_5_array^i } } international_systems_update = yes } sat_5_button_control_click = { var:orbit_selected_TAG = { add_to_array = { ROOT.sat_target_array = sat_5_array^i } add_to_array = { ROOT.sat_target_TAG_array = orbit_selected_TAG } } international_systems_update = yes } sat_6_button_click = { start_satellite_deorbit_selection = yes var:orbit_selected_TAG = { set_variable = { ROOT.var_selected_sat = sat_6_array^i } } international_systems_update = yes } sat_6_button_control_click = { var:orbit_selected_TAG = { add_to_array = { ROOT.sat_target_array = sat_6_array^i } add_to_array = { ROOT.sat_target_TAG_array = orbit_selected_TAG } } international_systems_update = yes } add_target_button_click = { add_to_array = { ROOT.sat_target_array = var_selected_sat } add_to_array = { ROOT.sat_target_TAG_array = orbit_selected_TAG } international_systems_update = yes } clear_target_array_button_click = { clear_array = ROOT.sat_target_array clear_array = ROOT.sat_target_TAG_array international_systems_update = yes } deorbit_satellite_button_click = { clear_bulk_deorbit_state = yes set_variable = { var_deorbit_sat_ID = var_selected_sat } set_country_flag = MD_confirm_deorbit_satellite international_systems_update = yes } confirm_deorbit_satellite_button_click = { deorbit_selected_satellite = yes } bulk_deorbit_model_button_click = { stage_bulk_deorbit_selected_model = yes } confirm_bulk_deorbit_model_button_click = { bulk_deorbit_selected_model = yes } # spy_mission_start_button_click = { var:orbit_selected_TAG = { add_to_array = { ROOT.spy_mission_array = THIS.id } add_to_array = { ROOT.spy_mission_sat_num_array = ROOT.var_SPY_mission_num_gui } ROOT = { add_intel = { target = PREV civilian_intel = ROOT.var_SPY_mission_intel_add } add_intel = { target = PREV army_intel = ROOT.var_SPY_mission_intel_add } add_intel = { target = PREV navy_intel = ROOT.var_SPY_mission_intel_add } add_intel = { target = PREV airforce_intel = ROOT.var_SPY_mission_intel_add } PREV = { set_country_flag = { flag = spy_sat_mission_from_@ROOT days = 30 value = 1 } } } } update_SPY_mission_num = yes international_systems_update = yes } spy_sat_small_plus_button_bg_click = { add_to_variable = { var_SPY_mission_num_gui = 1 } update_SPY_mission_plus_minus_button = yes international_systems_update = yes } spy_sat_small_minus_button_bg_click = { subtract_from_variable = { var_SPY_mission_num_gui = 1 } update_SPY_mission_plus_minus_button = yes international_systems_update = yes } spy_mission_button_click = { international_systems_update = yes } country_view_flag_button_click = { clear_satellite_deorbit_state = yes set_country_flag = open_MD_satellite_orbit_country_selection clear_array = temp_countries every_country = { ROOT = { add_to_array = { temp_countries = PREV.id } } } international_systems_update = yes } country_view_flag_button_right_click = { clear_satellite_deorbit_state = yes set_variable = { orbit_selected_TAG = ROOT.id } set_sat_access_arrays_selected_TAG = yes set_satellites_gui = yes international_systems_update = yes } ### sat access buttons GNSS_mil_access_flags_button_click = { clear_satellite_deorbit_state = yes set_variable = { orbit_selected_TAG = selected_TAG_GNSS_mil_access_array^i.id } set_sat_access_arrays_selected_TAG = yes international_systems_update = yes } GNSS_civ_access_flags_button_click = { clear_satellite_deorbit_state = yes set_variable = { orbit_selected_TAG = selected_TAG_GNSS_civ_access_array^i.id } set_sat_access_arrays_selected_TAG = yes international_systems_update = yes } COM_mil_access_flags_button_click = { clear_satellite_deorbit_state = yes set_variable = { orbit_selected_TAG = selected_TAG_COM_mil_access_array^i.id } set_sat_access_arrays_selected_TAG = yes international_systems_update = yes } COM_civ_access_flags_button_click = { clear_satellite_deorbit_state = yes set_variable = { orbit_selected_TAG = selected_TAG_COM_civ_access_array^i.id } set_sat_access_arrays_selected_TAG = yes international_systems_update = yes } SPY_mil_access_flags_button_click = { clear_satellite_deorbit_state = yes set_variable = { orbit_selected_TAG = selected_TAG_SPY_mil_access_array^i.id } set_sat_access_arrays_selected_TAG = yes international_systems_update = yes } SPY_civ_access_flags_button_click = { clear_satellite_deorbit_state = yes set_variable = { orbit_selected_TAG = selected_TAG_SPY_civ_access_array^i.id } set_sat_access_arrays_selected_TAG = yes international_systems_update = yes } close_button_click = { clear_satellite_deorbit_state = yes if = { limit = { NOT = { has_country_flag = rods_search_target } } set_country_flag = rods_search_target } else = { clr_country_flag = rods_search_target } international_systems_update = yes } } triggers = { ### sat sat_1_button_visible = { var:orbit_selected_TAG = { check_variable = { sat_1_array^i > -1 } NOT = { check_variable = { sat_1_array^i < 0 } } is_filtered_type = yes } } ### sat sat_2_button_visible = { var:orbit_selected_TAG = { check_variable = { sat_2_array^i > -1 } NOT = { check_variable = { sat_2_array^i < 0 } } is_filtered_type = yes } } ### sat sat_3_button_visible = { var:orbit_selected_TAG = { check_variable = { sat_3_array^i > -1 } NOT = { check_variable = { sat_3_array^i < 0 } } is_filtered_type = yes } } ### sat sat_4_button_visible = { var:orbit_selected_TAG = { check_variable = { sat_4_array^i > -1 } NOT = { check_variable = { sat_4_array^i < 0 } } is_filtered_type = yes } } ### sat sat_5_button_visible = { var:orbit_selected_TAG = { check_variable = { sat_5_array^i > -1 } NOT = { check_variable = { sat_5_array^i < 0 } } is_filtered_type = yes } } ### sat sat_6_button_visible = { var:orbit_selected_TAG = { check_variable = { sat_6_array^i > 0 } NOT = { check_variable = { sat_6_array^i < 1 } } is_filtered_type = yes } } deorbit_satellite_button_visible = { NOT = { has_country_flag = MD_confirm_deorbit_satellite } check_variable = { orbit_selected_TAG = ROOT.id } } confirm_deorbit_satellite_button_visible = { has_country_flag = MD_confirm_deorbit_satellite has_country_flag = MD_satellite_orbit_selection_active check_variable = { orbit_selected_TAG = ROOT.id } check_variable = { var_deorbit_sat_ID = var_selected_sat } check_variable = { orbit_array^var_deorbit_sat_ID > 0 } } deorbit_satellite_button_click_enabled = { custom_trigger_tooltip = { tooltip = DEORBIT_SATELLITE_SELECTION_TT has_country_flag = MD_satellite_orbit_selection_active check_variable = { var_selected_sat > -1 } check_variable = { orbit_array^var_selected_sat > 0 } } custom_trigger_tooltip = { tooltip = DEORBIT_SATELLITE_SPY_MISSION_TT OR = { check_variable = { orbit_array^var_selected_sat < 161 } check_variable = { orbit_array^var_selected_sat > 178 } check_variable = { var_SPY_mission_num_available > 0 } } } } confirm_deorbit_satellite_button_click_enabled = { OR = { check_variable = { orbit_array^var_deorbit_sat_ID < 161 } check_variable = { orbit_array^var_deorbit_sat_ID > 178 } check_variable = { var_SPY_mission_num_available > 0 } } } bulk_deorbit_model_button_visible = { NOT = { has_country_flag = MD_confirm_bulk_deorbit_satellites } check_variable = { orbit_selected_TAG = ROOT.id } } confirm_bulk_deorbit_model_button_visible = { has_country_flag = MD_confirm_bulk_deorbit_satellites has_country_flag = MD_satellite_orbit_selection_active check_variable = { orbit_selected_TAG = ROOT.id } check_variable = { MD_bulk_deorbit_count > 0 } } bulk_deorbit_model_button_click_enabled = { custom_trigger_tooltip = { tooltip = BULK_DEORBIT_MODEL_SELECTION_TT has_country_flag = MD_satellite_orbit_selection_active check_variable = { var_selected_sat > -1 } check_variable = { orbit_array^var_selected_sat > 0 } } } confirm_bulk_deorbit_model_button_click_enabled = { custom_trigger_tooltip = { tooltip = BULK_DEORBIT_SPY_MISSION_TT OR = { check_variable = { MD_bulk_deorbit_model < 161 } check_variable = { MD_bulk_deorbit_model > 178 } check_variable = { var = MD_bulk_deorbit_count value = var_SPY_mission_num_available compare = less_than_or_equals } } } } #################### ### spy missions ### #################### spy_mission_start_button_click_enabled = { custom_trigger_tooltip = { tooltip = spy_mission_start_button_trigger_1_TT var:orbit_selected_TAG = { NOT = { original_tag = ROOT } NOT = { has_country_flag = spy_sat_mission_from_@ROOT } } } check_variable = { ROOT.var_SPY_mission_num_gui > 0 } custom_trigger_tooltip = { tooltip = spy_mission_start_button_trigger_2_TT OR = { check_variable = { var_SPY_mission_num_available > ROOT.var_SPY_mission_num_gui } check_variable = { var_SPY_mission_num_available = ROOT.var_SPY_mission_num_gui } } } } spy_sat_small_plus_button_bg_click_enabled = { check_variable = { ROOT.var_SPY_mission_intel_ratio < 1 } } spy_sat_small_minus_button_bg_click_enabled = { check_variable = { ROOT.var_SPY_mission_intel_ratio > 0 } } } dynamic_lists = { sat_1_gridbox = { array = sat_1_array entry_container = sat_1_entry } sat_2_gridbox = { array = sat_2_array entry_container = sat_2_entry } sat_3_gridbox = { array = sat_3_array entry_container = sat_3_entry } sat_4_gridbox = { array = sat_4_array entry_container = sat_4_entry } sat_5_gridbox = { array = sat_5_array entry_container = sat_5_entry } sat_6_gridbox = { array = sat_6_array entry_container = sat_6_entry } ### sat treaties ## GNSS GNSS_mil_access_gridbox = { array = selected_TAG_GNSS_mil_access_array entry_container = selected_TAG_GNSS_mil_access_entry } GNSS_civ_access_gridbox = { array = selected_TAG_GNSS_civ_access_array entry_container = selected_TAG_GNSS_civ_access_entry } ## COM COM_mil_access_gridbox = { array = selected_TAG_COM_mil_access_array entry_container = selected_TAG_COM_mil_access_entry } COM_civ_access_gridbox = { array = selected_TAG_COM_civ_access_array entry_container = selected_TAG_COM_civ_access_entry } ## SPY SPY_mil_access_gridbox = { array = selected_TAG_SPY_mil_access_array entry_container = selected_TAG_SPY_mil_access_entry } SPY_civ_access_gridbox = { array = selected_TAG_SPY_civ_access_array entry_container = selected_TAG_SPY_civ_access_entry } sat_target_gridbox = { array = THIS.sat_target_array entry_container = sat_target_entry } spy_mission_gridbox = { array = THIS.spy_mission_array entry_container = spy_mission_entry } } properties = { sat_1_button = { image = "[sat_1_type_icon]" } sat_2_button = { image = "[sat_2_type_icon]" } sat_3_button = { image = "[sat_3_type_icon]" } sat_4_button = { image = "[sat_4_type_icon]" } sat_5_button = { image = "[sat_5_type_icon]" } sat_6_button = { image = "[sat_6_type_icon]" } country_view_flag_button = { image = "[?orbit_selected_TAG.GetFlag]" } GNSS_mil_access_flags_button = { image = "[?selected_TAG_GNSS_mil_access_array^i.GetFlag]" } GNSS_civ_access_flags_button = { image = "[?selected_TAG_GNSS_civ_access_array^i.GetFlag]" } COM_mil_access_flags_button = { image = "[?selected_TAG_COM_mil_access_array^i.GetFlag]" } COM_civ_access_flags_button = { image = "[?selected_TAG_COM_civ_access_array^i.GetFlag]" } SPY_mil_access_flags_button = { image = "[?selected_TAG_SPY_mil_access_array^i.GetFlag]" } SPY_civ_access_flags_button = { image = "[?selected_TAG_SPY_civ_access_array^i.GetFlag]" } } } MD_satellite_orbit_country_selection_gui = { window_name = MD_satellite_orbit_country_selection context_type = player_context #context_type = selected_country_context parent_window_token = MD_satellite_orbit_view dirty = global.international_systems_updated visible = { ROOT = { check_variable = { var_open_MD_missiles_gui_ledger_4 = 2 } check_variable = { var_open_MD_space_gui = 2 } has_country_flag = open_MD_countrymissilesview has_country_flag = open_MD_satellite_orbit_country_selection } } effects = { country_list_flag_button_click = { set_variable = { orbit_selected_TAG = ROOT.temp_countries^i } set_sat_access_arrays_selected_TAG = yes var:orbit_selected_TAG = { set_variable = { ROOT.var_SPY_mission_num_gui = num_controlled_states } } update_SPY_mission_start_button = yes clr_country_flag = open_MD_satellite_orbit_country_selection international_systems_update = yes } close_button_click = { if = { limit = { has_country_flag = open_MD_satellite_orbit_country_selection } clr_country_flag = open_MD_satellite_orbit_country_selection } clear_array = ROOT.temp_countries international_systems_update = yes } } dynamic_lists = { country_list_gridbox = { array = temp_countries entry_container = country_list_entry } } properties = { country_list_flag_button = { #text = "test" #[?ROOT.temp_countries^i.GetFlag] } } } MD_CT_system_gui = { window_name = MD_CT_system_window context_type = player_context parent_window_name = MD_countrymissilesview dirty = global.international_systems_updated visible = { check_variable = { var_open_MD_CT_gui = 2 } has_country_flag = open_MD_countrymissilesview NOT = { salafist_caliphate_are_in_power = yes } NOT = { salafist_caliphate_are_in_coalition = yes } } triggers = { ct_funding_button_click_enabled = { has_political_power > 50 } ct_funding_button_right_click_enabled = { has_political_power > 50 } analyst_focus_button_click_enabled = { check_variable = { selected_org > -1 } check_variable = { selected_org < global.active_terror_orgs^num } has_political_power > 50 } analyst_focus_button_right_click_enabled = { check_variable = { selected_org > -1 } check_variable = { selected_org < global.active_terror_orgs^num } has_political_power > 50 } domestic_survellience_button_click_enabled = { has_political_power > 100 } domestic_survellience_button_right_click_enabled = { has_political_power > 100 } infil_agent_button_click_enabled = { check_variable = { selected_org > -1 } check_variable = { selected_org < global.active_terror_orgs^num } has_political_power > 50 set_temp_variable = { ct_gui_org_id = global.active_terror_orgs^selected_org } custom_trigger_tooltip = { tooltip = ct_has_infiltrated_org NOT = { check_variable = { ct_infiltrated_org_arr^ct_gui_org_id > 0 } } } custom_trigger_tooltip = { tooltip = ct_has_failed_recent_infil_against NOT = { check_variable = { ct_failed_infil_org_arr^ct_gui_org_id > 0 } } } } arrest_sympathizers_button_click_enabled = { check_variable = { selected_org > -1 } check_variable = { selected_org < global.active_terror_orgs^num } has_political_power > 100 set_temp_variable = { req_level > 30 } custom_trigger_tooltip = { tooltip = ct_required_threat_level_only_tt check_variable = { global.active_terror_org_threat_lvl^selected_org > req_level } } set_temp_variable = { req_level > 15 } custom_trigger_tooltip = { tooltip = ct_required_intel_level_only_tt check_variable = { international_terror_org_intel^selected_org > req_level } } } seize_assets_button_click_enabled = { check_variable = { selected_org > -1 } check_variable = { selected_org < global.active_terror_orgs^num } has_political_power > 100 set_temp_variable = { req_level > 40 } custom_trigger_tooltip = { tooltip = ct_required_intel_level_only_tt check_variable = { international_terror_org_intel^selected_org > req_level } } custom_trigger_tooltip = { tooltip = ct_not_has_done_recent_asset_seizure NOT = { has_country_flag = recent_ct_asset_seizure } } } mass_gathering_button_click_enabled = { check_variable = { selected_org > -1 } check_variable = { selected_org < global.active_terror_orgs^num } has_political_power > 100 custom_trigger_tooltip = { tooltip = ct_not_has_done_recent_intel_op NOT = { has_country_flag = recent_ct_intel_op } } } exploit_intelligence_button_click_enabled = { check_variable = { selected_org > -1 } check_variable = { selected_org < global.active_terror_orgs^num } custom_trigger_tooltip = { tooltip = ct_has_intel_to_exploit check_variable = { ct_mass_gather_store_var^selected_org > 0 } } } send_advisors_button_click_enabled = { has_political_power > 100 custom_trigger_tooltip = { tooltip = ct_nation_selected_tt has_valid_ct_nation_selected = yes } custom_trigger_tooltip = { tooltip = is_ct_does_not_have_advisors var:selected_ct_nation = { NOT = { has_country_flag = has_ct_advisor_from@ROOT } } } custom_trigger_tooltip = { tooltip = is_ct_advisors_not_refused_tt var:selected_ct_nation = { NOT = { has_country_flag = refused_ct_advisors_from@ROOT } } } var:selected_ct_nation = { no_jihadist_government = yes } } send_advisors_button_right_click_enabled = { has_political_power > 100 custom_trigger_tooltip = { tooltip = ct_nation_selected_tt has_valid_ct_nation_selected = yes } custom_trigger_tooltip = { tooltip = is_ct_does_have_advisors var:selected_ct_nation = { has_country_flag = has_ct_advisor_from@ROOT } } } conduct_drone_operations_button_click_enabled = { check_variable = { selected_org > -1 } check_variable = { selected_org < global.active_terror_orgs^num } has_political_power > 100 set_temp_variable = { req_level > 24 } custom_trigger_tooltip = { tooltip = ct_nation_selected_tt has_valid_ct_nation_selected = yes } custom_trigger_tooltip = { tooltip = ct_required_intel_level_tt check_variable = { international_terror_org_intel^selected_org > req_level } has_target_in_region = yes } custom_trigger_tooltip = { tooltip = ct_drone_not_prepared_tt var:selected_ct_nation = { NOT = { has_country_flag = ct_drone_op_prepared_by@ROOT } } } } conduct_joint_training_button_click_enabled = { has_political_power > 100 custom_trigger_tooltip = { tooltip = ct_nation_selected_tt has_valid_ct_nation_selected = yes } custom_trigger_tooltip = { tooltip = no_recent_joint_exercises var:selected_ct_nation = { NOT = { has_country_flag = has_recent_joint_exercise@ROOT } } } custom_trigger_tooltip = { tooltip = ct_joint_exercises_not_refused_tt var:selected_ct_nation = { NOT = { has_country_flag = refused_joint_exercises@ROOT } } } } } effects = { ct_funding_button_click = { add_political_power = -50 set_temp_variable = { base_detect_adjust = 0.5 } set_temp_variable = { base_cost_adjust = 0.01 } set_temp_variable = { defense_var = 0.5 } add_to_variable = { ct_home_defense_var = defense_var } add_to_variable = { ct_global_base_detect_var = base_detect_adjust } add_to_variable = { ct_police_cost_var = base_cost_adjust } custom_effect_tooltip = is_ct_adjust_funding international_systems_update = yes } ct_funding_button_right_click = { add_political_power = -50 set_temp_variable = { base_detect_adjust = -0.5 } set_temp_variable = { base_cost_adjust = -0.01 } set_temp_variable = { defense_var = -0.5 } add_to_variable = { ct_home_defense_var = defense_var } add_to_variable = { ct_global_base_detect_var = base_detect_adjust } add_to_variable = { ct_police_cost_var = base_cost_adjust } custom_effect_tooltip = is_ct_adjust_funding international_systems_update = yes } analyst_focus_button_click = { add_political_power = -50 for_each_loop = { array = international_terror_org_specific_intel value = v index = i if = { limit = { check_variable = { i = selected_org } } set_temp_variable = { focus_increase = 0.02 } add_to_variable = { international_terror_org_specific_intel^i = focus_increase } } else = { set_temp_variable = { focus_decrease = -0.01 } add_to_variable = { international_terror_org_specific_intel^i = focus_decrease } } } set_temp_variable = { focus_increase = 0.02 } set_temp_variable = { focus_decrease = -0.01 } custom_effect_tooltip = is_analyst_focus_adjust international_systems_update = yes } analyst_focus_button_right_click = { add_political_power = -50 for_each_loop = { array = international_terror_org_specific_intel value = v index = i if = { limit = { check_variable = { i = selected_org } } set_temp_variable = { focus_increase = -0.02 } add_to_variable = { international_terror_org_specific_intel^i = focus_increase } } else = { set_temp_variable = { focus_decrease = 0.01 } add_to_variable = { international_terror_org_specific_intel^i = focus_decrease } } } set_temp_variable = { focus_increase = -0.02 } set_temp_variable = { focus_decrease = 0.01 } custom_effect_tooltip = is_analyst_focus_adjust international_systems_update = yes } domestic_survellience_button_click = { add_political_power = -100 set_temp_variable = { party_popularity_increase = -0.02 } change_relative_party_popularity = yes set_temp_variable = { defense_var = 1 } add_to_variable = { ct_home_defense_var = defense_var } set_temp_variable = { intel_gain_var = 1 } add_to_variable = { ct_global_base_detect_var = intel_gain_var } custom_effect_tooltip = is_ct_dom_suv_tt set_temp_variable = { fail_chance = { value = 100 subtract = { value = government_coalition_strength multiply = 100 } } } random = { chance = fail_chance country_event = MD_terror.9 } international_systems_update = yes } domestic_survellience_button_right_click = { add_political_power = -100 set_temp_variable = { party_popularity_increase = 0.02 } change_relative_party_popularity = yes set_temp_variable = { defense_var = -1 } add_to_variable = { ct_home_defense_var = defense_var } set_temp_variable = { intel_gain_var = -1 } add_to_variable = { ct_global_base_detect_var = intel_gain_var } custom_effect_tooltip = is_ct_dom_suv_tt international_systems_update = yes } mass_gathering_button_click = { add_political_power = -100 custom_effect_tooltip = is_ct_mass_gather_tt randomize_temp_variable = { var = num_add min = 0 max = 5 distribution = uniform } add_to_temp_variable = { num_add = 1 } add_to_variable = { ct_mass_gather_store_var = num_add } set_country_flag = { flag = recent_ct_intel_op days = 210 value = 1 } random = { chance = 50 country_event = MD_terror.5 } international_systems_update = yes } exploit_intelligence_button_click = { custom_effect_tooltip = is_ct_exploit_intel_tt set_temp_variable = { exploit_int = { value = ct_mass_gather_store_var^selected_org multiply = 1.25 } } set_variable = { ct_mass_gather_store_var^selected_org = 0 } add_to_variable = { international_terror_org_temp_specific_intel^selected_org = exploit_int } international_systems_update = yes } infil_agent_button_click = { add_political_power = -50 custom_effect_tooltip = is_ct_infil_agent_tt if = { limit = { check_variable = { selected_org > -1 } check_variable = { selected_org < global.active_terror_orgs^num } } set_temp_variable = { ct_gui_infil_org_id = global.active_terror_orgs^selected_org } } set_temp_variable = { success_chance = { value = international_terror_org_intel^selected_org add = ct_intel_agency_value } } set_temp_variable = { fail_chance = { value = 100 subtract = success_chance } } random_list = { success_chance = { country_event = MD_terror.7 set_temp_variable_to_random = { var = random_add min = 0.05 max = 0.5 } add_to_variable = { international_terror_org_specific_intel^selected_org = random_add } set_variable = { ct_infiltrated_org_arr^ct_gui_infil_org_id = 1 } } fail_chance = { country_event = MD_terror.8 set_temp_variable_to_random = { var = random_add min = -0.5 max = -0.05 } add_to_variable = { international_terror_org_specific_intel^selected_org = random_add } set_variable = { ct_failed_infil_org_arr^ct_gui_infil_org_id = 13 } } } international_systems_update = yes } arrest_sympathizers_button_click = { add_political_power = -100 randomize_temp_variable = { var = threat_reducer min = 2 max = 6 distribution = uniform } subtract_from_variable = { global.active_terror_org_threat_lvl^selected_org = threat_reducer } subtract_from_variable = { global.active_terror_org_vis_lvl^selected_org = threat_reducer } multiply_temp_variable = { threat_reducer = 0.5 } add_to_variable = { international_terror_org_temp_specific_intel^selected_org = threat_reducer } custom_effect_tooltip = is_ct_arrest_sympathizers_tt set_temp_variable = { random_bad_luck = { value = 100 subtract = international_terror_org_intel^selected_org subtract = ct_intel_agency_value clamp = { min = 0 max = 100 } } } random = { chance = random_bad_luck country_event = MD_terror.6 } international_systems_update = yes } seize_assets_button_click = { add_political_power = -100 set_country_flag = { flag = recent_ct_asset_seizure days = 210 value = 1 } set_temp_variable_to_random = { var = treasury_change min = 2 max = 8 } set_temp_variable = { treasury_change = { value = treasury_change multiply = { value = 1 add = modifier@international_market_income_modifier } } } modify_treasury_effect = yes multiply_temp_variable = { treasury_change = -1 } add_to_variable = { global.active_terror_org_threat_lvl^selected_org = treasury_change } add_to_variable = { global.active_terror_org_vis_lvl^selected_org = treasury_change } custom_effect_tooltip = is_ct_asset_seizure_tt international_systems_update = yes } send_advisors_button_click = { add_political_power = -100 custom_effect_tooltip = is_ct_send_advisors_too hidden_effect = { country_event = MD_terror.12 } international_systems_update = yes } send_advisors_button_right_click = { add_political_power = -100 var:selected_ct_nation = { clr_country_flag = has_ct_advisor_from@ROOT add_to_variable = { foreign_counter_terror_support = -1 } country_event = MD_terror.14 } custom_effect_tooltip = is_ct_recall_advisors_from international_systems_update = yes } conduct_drone_operations_button_click = { add_political_power = -100 var:selected_ct_nation = { set_country_flag = ct_drone_op_prepared_by@ROOT } custom_effect_tooltip = ct_enable_drone_against_nation_tt international_systems_update = yes } conduct_joint_training_button_click = { add_political_power = -100 hidden_effect = { country_event = MD_terror.10 } custom_effect_tooltip = ct_offer_joint_exercises international_systems_update = yes } select_asia_button_click = { clear_array = selected_ct_nations_list for_each_loop = { array = global.asian_nations value = v var:v = { if = { limit = { is_valid_ct_nation_target = yes } add_to_array = { ROOT.selected_ct_nations_list = THIS } } } } international_systems_update = yes } select_me_button_click = { clear_array = selected_ct_nations_list for_each_loop = { array = global.middle_eastern_nations value = v var:v = { if = { limit = { is_valid_ct_nation_target = yes } add_to_array = { ROOT.selected_ct_nations_list = THIS } } } } international_systems_update = yes } select_afr_button_click = { clear_array = selected_ct_nations_list for_each_loop = { array = global.sub_saharan_nations value = v var:v = { if = { limit = { is_valid_ct_nation_target = yes } add_to_array = { ROOT.selected_ct_nations_list = THIS } } } } international_systems_update = yes } select_europe_button_click = { clear_array = selected_ct_nations_list for_each_loop = { array = global.european_nations value = v var:v = { if = { limit = { is_valid_ct_nation_target = yes } add_to_array = { ROOT.selected_ct_nations_list = THIS } } } } international_systems_update = yes } select_american_button_click = { clear_array = selected_ct_nations_list for_each_loop = { array = global.american_nations value = v var:v = { if = { limit = { is_valid_ct_nation_target = yes } add_to_array = { ROOT.selected_ct_nations_list = THIS } } } } international_systems_update = yes } } properties = { } dynamic_lists = { } } #PMC System MD_PMC_system_gui = { window_name = MD_PMC_system_window context_type = player_context parent_window_name = MD_countrymissilesview dirty = global.international_systems_updated visible = { check_variable = { var_open_MD_PMC_gui = 2 } has_country_flag = open_MD_countrymissilesview } triggers = { remove_light_inf_button_visible = { is_major_company = yes } remove_light_inf_button_click_enabled = { custom_trigger_tooltip = { tooltip = has_hired_tt if = { limit = { has_country_flag = blackwater_sel } has_country_flag = pmc_recruited_blackwater_light } else_if = { limit = { has_country_flag = aegis_sel } has_country_flag = pmc_recruited_aegis_light } else_if = { limit = { has_country_flag = constellis_sel } has_country_flag = pmc_recruited_constellis_light } else_if = { limit = { has_country_flag = wagner_sel } has_country_flag = pmc_recruited_wagner_light } else_if = { limit = { has_country_flag = md_sel } has_country_flag = pmc_recruited_md_light } } } remove_mot_inf_button_visible = { is_major_company = yes } remove_mot_inf_button_click_enabled = { custom_trigger_tooltip = { tooltip = has_hired_tt if = { limit = { has_country_flag = blackwater_sel } has_country_flag = pmc_blackwater_mot } else_if = { limit = { has_country_flag = aegis_sel } has_country_flag = pmc_aegis_mot } else_if = { limit = { has_country_flag = constellis_sel } has_country_flag = pmc_constellis_mot } else_if = { limit = { has_country_flag = wagner_sel } has_country_flag = pmc_wagner_mot } else_if = { limit = { has_country_flag = md_sel } has_country_flag = pmc_md_mot } } } remove_mech_inf_button_visible = { is_major_company = yes } remove_mech_inf_button_click_enabled = { custom_trigger_tooltip = { tooltip = has_hired_tt if = { limit = { has_country_flag = blackwater_sel } has_country_flag = pmc_blackwater_mech } else_if = { limit = { has_country_flag = aegis_sel } has_country_flag = pmc_aegis_mech } else_if = { limit = { has_country_flag = constellis_sel } has_country_flag = pmc_constellis_mech } else_if = { limit = { has_country_flag = wagner_sel } has_country_flag = pmc_wagner_mech } else_if = { limit = { has_country_flag = md_sel } has_country_flag = pmc_md_mech } } } remove_hvy_inf_button_visible = { is_major_company = yes } remove_hvy_inf_button_click_enabled = { custom_trigger_tooltip = { tooltip = has_hired_tt if = { limit = { has_country_flag = blackwater_sel } has_country_flag = pmc_blackwater_heavy_mech } else_if = { limit = { has_country_flag = aegis_sel } has_country_flag = pmc_aegis_heavy_mech } else_if = { limit = { has_country_flag = constellis_sel } has_country_flag = pmc_constellis_heavy_mech } else_if = { limit = { has_country_flag = wagner_sel } has_country_flag = pmc_wagner_heavy_mech } else_if = { limit = { has_country_flag = md_sel } has_country_flag = pmc_md_heavy_mech } } } remove_spec_inf_button_visible = { is_major_company = yes } remove_spec_inf_button_click_enabled = { custom_trigger_tooltip = { tooltip = has_hired_tt if = { limit = { has_country_flag = blackwater_sel } has_country_flag = pmc_blackwater_special_unit } else_if = { limit = { has_country_flag = aegis_sel } has_country_flag = pmc_aegis_special_unit } else_if = { limit = { has_country_flag = constellis_sel } has_country_flag = pmc_constellis_special_unit } else_if = { limit = { has_country_flag = wagner_sel } has_country_flag = pmc_wagner_special_unit } else_if = { limit = { has_country_flag = md_sel } has_country_flag = pmc_md_special_unit } } } remove_tank_button_visible = { is_major_company = yes } remove_tank_button_click_enabled = { custom_trigger_tooltip = { tooltip = has_hired_tt if = { limit = { has_country_flag = blackwater_sel } has_country_flag = pmc_blackwater_tank } else_if = { limit = { has_country_flag = aegis_sel } has_country_flag = pmc_aegis_tank } else_if = { limit = { has_country_flag = constellis_sel } has_country_flag = pmc_constellis_tank } else_if = { limit = { has_country_flag = wagner_sel } has_country_flag = pmc_wagner_tank } else_if = { limit = { has_country_flag = md_sel } has_country_flag = pmc_md_tank } } } remove_sf_inf_button_visible = { is_major_company = yes } remove_sf_inf_button_click_enabled = { custom_trigger_tooltip = { tooltip = has_hired_tt if = { limit = { has_country_flag = blackwater_sel } has_country_flag = pmc_blackwater_specops } else_if = { limit = { has_country_flag = aegis_sel } has_country_flag = pmc_aegis_specops } else_if = { limit = { has_country_flag = constellis_sel } has_country_flag = pmc_constellis_specops } else_if = { limit = { has_country_flag = wagner_sel } has_country_flag = pmc_wagner_specops } else_if = { limit = { has_country_flag = md_sel } has_country_flag = pmc_md_specops } } } } effects = { remove_light_inf_button_click = { if = { limit = { has_country_flag = blackwater_sel } delete_light_infantry_blackwater = yes } else_if = { limit = { has_country_flag = aegis_sel } delete_light_infantry_aegis = yes } else_if = { limit = { has_country_flag = constellis_sel } delete_light_infantry_constellis = yes } else_if = { limit = { has_country_flag = wagner_sel } delete_light_infantry_wagner = yes } else_if = { limit = { has_country_flag = md_sel } delete_light_infantry_md = yes } international_systems_update = yes } remove_mot_inf_button_click = { if = { limit = { has_country_flag = blackwater_sel } delete_mot_infantry_blackwater = yes } else_if = { limit = { has_country_flag = aegis_sel } delete_mot_infantry_aegis = yes } else_if = { limit = { has_country_flag = constellis_sel } delete_mot_infantry_constellis = yes } else_if = { limit = { has_country_flag = wagner_sel } delete_mot_infantry_wagner = yes } else_if = { limit = { has_country_flag = md_sel } delete_mot_infantry_md = yes } international_systems_update = yes } remove_mech_inf_button_click = { if = { limit = { has_country_flag = blackwater_sel } delete_mech_infantry_blackwater = yes } else_if = { limit = { has_country_flag = aegis_sel } delete_mech_infantry_aegis = yes } else_if = { limit = { has_country_flag = constellis_sel } delete_mech_infantry_constellis = yes } else_if = { limit = { has_country_flag = wagner_sel } delete_mech_infantry_wagner = yes } else_if = { limit = { has_country_flag = md_sel } delete_mech_infantry_md = yes } international_systems_update = yes } remove_hvy_inf_button_click = { if = { limit = { has_country_flag = blackwater_sel } delete_heavy_mech_infantry_blackwater = yes } else_if = { limit = { has_country_flag = aegis_sel } delete_heavy_mech_infantry_aegis = yes } else_if = { limit = { has_country_flag = constellis_sel } delete_heavy_mech_infantry_constellis = yes } else_if = { limit = { has_country_flag = wagner_sel } delete_heavy_mech_infantry_wagner = yes } else_if = { limit = { has_country_flag = md_sel } delete_heavy_mech_infantry_md = yes } international_systems_update = yes } remove_spec_inf_button_click = { if = { limit = { has_country_flag = blackwater_sel } delete_special_unit_blackwater = yes } else_if = { limit = { has_country_flag = aegis_sel } delete_special_unit_aegis = yes } else_if = { limit = { has_country_flag = constellis_sel } delete_special_unit_constellis = yes } else_if = { limit = { has_country_flag = wagner_sel } delete_special_unit_wagner = yes } else_if = { limit = { has_country_flag = md_sel } delete_special_unit_md = yes } international_systems_update = yes } remove_tank_button_click = { if = { limit = { has_country_flag = blackwater_sel } delete_tank_unit_blackwater = yes } else_if = { limit = { has_country_flag = aegis_sel } delete_tank_unit_aegis = yes } else_if = { limit = { has_country_flag = constellis_sel } delete_tank_unit_constellis = yes } else_if = { limit = { has_country_flag = wagner_sel } delete_tank_unit_wagner = yes } else_if = { limit = { has_country_flag = md_sel } delete_tank_unit_md = yes } international_systems_update = yes } remove_sf_inf_button_click = { if = { limit = { has_country_flag = blackwater_sel } delete_specops_unit_blackwater = yes } else_if = { limit = { has_country_flag = aegis_sel } delete_specops_unit_aegis = yes } else_if = { limit = { has_country_flag = constellis_sel } delete_specops_unit_constellis = yes } else_if = { limit = { has_country_flag = wagner_sel } delete_specops_unit_wagner = yes } else_if = { limit = { has_country_flag = md_sel } delete_specops_unit_md = yes } international_systems_update = yes } } } #UN System MD_UN_main_gui = { window_name = MD_UN_main_window context_type = player_context parent_window_name = MD_countrymissilesview dirty = global.international_systems_updated visible = { check_variable = { var_open_MD_UN_gui = 2 } has_country_flag = open_MD_countrymissilesview } effects = { un_state_recog_btn_click = { set_variable = { var_open_MD_state_recog = 2 } clear_variable = var_open_MD_un_aid clear_variable = var_open_MD_un_council clear_variable = var_open_MD_un_assembly international_systems_update = yes } un_human_aid_btn_click = { set_variable = { var_open_MD_un_aid = 2 } clear_variable = var_open_MD_state_recog clear_variable = var_open_MD_un_council clear_variable = var_open_MD_un_assembly international_systems_update = yes } un_gen_assembly_btn_click = { set_variable = { var_open_MD_un_assembly = 2 } clear_variable = var_open_MD_state_recog clear_variable = var_open_MD_un_aid clear_variable = var_open_MD_un_council international_systems_update = yes } un_sec_con_btn_click = { set_variable = { var_open_MD_un_council = 2 } clear_variable = var_open_MD_state_recog clear_variable = var_open_MD_un_aid clear_variable = var_open_MD_un_assembly international_systems_update = yes } } properties = { un_state_recog_btn = { frame = var_open_MD_state_recog } un_human_aid_btn = { frame = var_open_MD_un_aid } un_sec_con_btn = { frame = var_open_MD_un_council } un_gen_assembly_btn = { frame = var_open_MD_un_assembly } } } MD_UN_system_gui = { window_name = MD_UN_system_window context_type = player_context parent_window_name = MD_UN_main_window_instance dirty = global.international_systems_updated visible = { check_variable = { var_open_MD_state_recog = 2 } check_variable = { var_open_MD_UN_gui = 2 } has_country_flag = open_MD_countrymissilesview } triggers = { pressure_countries_recog_button_visible = { NOT = { has_idea = lacks_international_recognition } } grant_recog_button_visible = { NOT = { has_idea = lacks_international_recognition } } rescind_recog_button_visible = { NOT = { has_idea = lacks_international_recognition } } pressure_countries_recog_button_click_enabled = { var:open_state = { has_idea = lacks_international_recognition } country_exists = var:open_state is_full_state = yes custom_trigger_tooltip = { tooltip = has_recog_tt is_in_array = { recognised_countries = var:open_state } } custom_trigger_tooltip = { tooltip = recent_pressure_tt NOT = { check_variable = { recognition_pressure_end@var:open_state > global.num_days } } } if = { limit = { original_tag = SWI } has_dynamic_modifier = { modifier = united_nations_member } } has_political_power > 100 } grant_recog_button_click_enabled = { var:open_state = { has_idea = lacks_international_recognition } country_exists = var:open_state is_full_state = yes if = { limit = { original_tag = SWI } has_dynamic_modifier = { modifier = united_nations_member } } custom_trigger_tooltip = { tooltip = not_recog_tt NOT = { is_in_array = { recognised_countries = var:open_state } } } has_political_power > 25 } rescind_recog_button_click_enabled = { var:open_state = { has_idea = lacks_international_recognition } country_exists = var:open_state is_full_state = yes if = { limit = { original_tag = SWI } has_dynamic_modifier = { modifier = united_nations_member } } custom_trigger_tooltip = { tooltip = has_recog_tt is_in_array = { recognised_countries = var:open_state } } has_political_power > 25 } un_improve_relations_button_visible = { has_idea = lacks_international_recognition } un_improve_relations_button_click_enabled = { has_political_power > 200 custom_trigger_tooltip = { tooltip = recent_global_campaign_tt NOT = { has_country_flag = recent_global_recog_campaign } } has_civil_war = no } un_campaign_for_recog_button_visible = { has_idea = lacks_international_recognition } un_campaign_for_recog_button_click_enabled = { has_political_power > 200 custom_trigger_tooltip = { tooltip = recent_global_request_campaign_tt NOT = { has_country_flag = recent_global_recog_request_campaign } } has_civil_war = no } un_ascension_button_visible = { has_idea = lacks_international_recognition } un_ascension_button_click_enabled = { custom_trigger_tooltip = { tooltip = is_un_ascension_warning_tt NOT = { has_country_flag = recent_un_ascension_attempt } } has_political_power > 200 has_civil_war = no } un_ask_for_independence_button_visible = { has_idea = lacks_international_recognition } un_ask_for_independence_button_click_enabled = { has_political_power > 350 custom_trigger_tooltip = { tooltip = has_not_recently_requested_independence NOT = { has_country_flag = recent_independence_request } } has_civil_war = no } ir_nation_unre_guide_visible = { has_idea = lacks_international_recognition } nation_supporter_disp_info_visible = { has_idea = lacks_international_recognition } } effects = { # International System grant_recog_button_click = { add_political_power = -25 meta_effect = { text = { add_to_array = { recognised_countries = var:open_state } if = { limit = { NOT = { has_country_flag = original_owner_[stname] } NOT = { has_country_flag = supports_original_owner_[stname] } } custom_effect_tooltip = TT_ALL_UN_MEMBERS every_collection_element = { input = { input = collection:un_general_assembly_members_collection } if = { limit = { has_country_flag = supports_original_owner_[stname] NOT = { is_in_array = { recognised_countries = var:ROOT.open_state } } } add_opinion_modifier = { target = ROOT modifier = recognises_them } } else_if = { limit = { is_in_array = { recognised_countries = var:ROOT.open_state } } add_opinion_modifier = { target = ROOT modifier = supporting_recognized_ally } } } random_country = { limit = { has_country_flag = original_owner_[stname] NOT = { is_in_array = { recognised_countries = var:ROOT.open_state } } } add_opinion_modifier = { target = ROOT modifier = recognises_them } country_event = recognition.1 } } } stname = "[?var:open_state.GetTag]" } var:open_state = { add_opinion_modifier = { target = ROOT modifier = recognises_us } recognition_grant_increment = yes } international_systems_update = yes } pressure_countries_recog_button_click = { meta_effect = { text = { every_collection_element = { input = { input = collection:un_general_assembly_members_collection } if = { limit = { is_influencer = yes NOT = { is_in_array = { recognised_countries = var:ROOT.open_state } } NOT = { has_country_flag = pressured_to_recognize_[stname] } NOT = { tag = ROOT } is_full_state = yes } set_country_flag = pressured_to_recognize_[stname] country_event = recognition.8 } } } stname = "[?var:open_state.GetTag]" } set_variable = { recognition_pressure_end@var:open_state = global.num_days } add_to_variable = { recognition_pressure_end@var:open_state = 180 } add_political_power = -100 international_systems_update = yes } rescind_recog_button_click = { meta_effect = { text = { remove_from_array = { recognised_countries = var:open_state } random_country = { limit = { has_country_flag = original_owner_[stname] NOT = { is_in_array = { recognised_countries = var:ROOT.open_state } } } add_opinion_modifier = { target = ROOT modifier = withdrew_recognition_them } country_event = recognition.4 } } stname = "[?var:open_state.GetTag]" } var:open_state = { add_opinion_modifier = { modifier = withdrew_recognition target = ROOT } subtract_from_variable = { var = Granted_Recognition value = 1 } country_event = recognition.3 } international_systems_update = yes } un_ascension_button_click = { custom_effect_tooltip = un_ascent_effect_tt set_country_flag = { flag = recent_un_ascension_attempt days = 365 value = 1 } set_temp_variable = { sc_new_vote_type = 5 } set_temp_variable = { sc_new_vote_nation = THIS } update_sc_vote = yes international_systems_update = yes } un_improve_relations_button_click = { add_political_power = -200 set_country_flag = { flag = recent_global_recog_campaign days = 365 value = 1 } custom_effect_tooltip = TT_ALL_UN_MEMBER_NATIONS_GAIN every_collection_element = { input = { input = collection:un_general_assembly_members_collection } add_opinion_modifier = { target = ROOT modifier = improving_un_relations } } international_systems_update = yes } un_campaign_for_recog_button_click = { add_political_power = -200 set_country_flag = { flag = recent_global_recog_request_campaign days = 365 value = 1 } custom_effect_tooltip = campaign_attempt_tt hidden_effect = { country_event = recognition.17 } international_systems_update = yes } un_ask_for_independence_button_click = { add_political_power = -350 custom_effect_tooltip = independence_request_tt hidden_effect = { country_event = recognition.30 } international_systems_update = yes } } } MD_UN_SC_gui = { window_name = MD_UN_SC_window context_type = player_context parent_window_name = MD_UN_main_window_instance dirty = global.international_systems_updated visible = { check_variable = { var_open_MD_un_council = 2 } check_variable = { var_open_MD_UN_gui = 2 } has_country_flag = open_MD_countrymissilesview } triggers = { unsc_actions_text_visible = { is_on_un_sec_council = yes } unsc_nations_text_visible = { is_on_un_sec_council = yes } nations_at_war_button_visible = { is_on_un_sec_council = yes } sanction_nations_button_visible = { is_on_un_sec_council = yes } manage_volunteers_button_visible = { is_on_un_sec_council = yes } arms_embargo_button_visible = { is_on_un_sec_council = yes } un_sc_auto_accept_button_visible = { is_on_un_sec_council = yes } un_sc_auto_reject_button_visible = { is_on_un_sec_council = yes } un_sc_auto_abstain_button_visible = { is_on_un_sec_council = yes } un_sc_aa_button_txt_visible = { is_on_un_sec_council = yes } un_sc_ar_button_txt_visible = { is_on_un_sec_council = yes } un_sc_aab_button_txt_visible = { is_on_un_sec_council = yes } } effects = { nations_at_war_button_click = { clear_array = sc_selected_nations_list clear_variable = sc_selected_action for_each_loop = { array = global.un_sc_pressure_end_war value = v var:v = { if = { limit = { NOT = { has_active_mission = UNSC_end_all_offensive_wars } NOT = { has_dynamic_modifier = { modifier = united_nations_security_council_sanctions } } } add_to_array = { ROOT.sc_selected_nations_list = v } } } } set_variable = { sc_selected_action = 1 } international_systems_update = yes } sanction_nations_button_click = { clear_array = sc_selected_nations_list clear_variable = sc_selected_action for_each_loop = { array = global.can_be_sc_sanctioned value = v var:v = { if = { limit = { exists = yes NOT = { has_dynamic_modifier = { modifier = united_nations_security_council_sanctions } } } add_to_array = { ROOT.sc_selected_nations_list = v } } } } set_variable = { sc_selected_action = 2 } international_systems_update = yes } manage_volunteers_button_click = { clear_array = sc_selected_nations_list clear_variable = sc_selected_action for_each_loop = { array = global.un_sc_pressure_end_war value = v var:v = { if = { limit = { NOT = { has_idea = unsc_restricted_volunteers_too } } add_to_array = { ROOT.sc_selected_nations_list = v } } } } set_variable = { sc_selected_action = 3 } international_systems_update = yes } arms_embargo_button_click = { clear_array = sc_selected_nations_list clear_variable = sc_selected_action for_each_loop = { array = global.can_be_sc_sanctioned value = v var:v = { if = { limit = { NOT = { has_idea = unsc_arms_embargo } } add_to_array = { ROOT.sc_selected_nations_list = v } } } } for_each_loop = { array = global.un_sc_pressure_end_war value = v var:v = { if = { limit = { NOT = { has_idea = unsc_arms_embargo } } add_to_array = { ROOT.sc_selected_nations_list = v } } } } set_variable = { sc_selected_action = 4 } international_systems_update = yes } un_sc_auto_accept_button_click = { if = { limit = { has_country_flag = auto_accept_all_sc_votes } clr_country_flag = auto_accept_all_sc_votes set_variable = { UN_SC_auto_accept_frame_var = 1 } } else = { set_country_flag = auto_accept_all_sc_votes set_variable = { UN_SC_auto_accept_frame_var = 2 } } clr_country_flag = auto_reject_all_sc_votes clr_country_flag = auto_abstain_all_sc_votes set_variable = { UN_SC_auto_reject_frame_var = 1 } set_variable = { UN_SC_auto_abstain_frame_var = 1 } international_systems_update = yes } un_sc_auto_reject_button_click = { if = { limit = { has_country_flag = auto_reject_all_sc_votes } clr_country_flag = auto_reject_all_sc_votes set_variable = { UN_SC_auto_reject_frame_var = 1 } } else = { set_country_flag = auto_reject_all_sc_votes set_variable = { UN_SC_auto_reject_frame_var = 2 } } clr_country_flag = auto_accept_all_sc_votes clr_country_flag = auto_abstain_all_sc_votes set_variable = { UN_SC_auto_accept_frame_var = 1 } set_variable = { UN_SC_auto_abstain_frame_var = 1 } international_systems_update = yes } un_sc_auto_abstain_button_click = { if = { limit = { has_country_flag = auto_abstain_all_sc_votes } clr_country_flag = auto_abstain_all_sc_votes set_variable = { UN_SC_auto_abstain_frame_var = 1 } } else = { set_country_flag = auto_abstain_all_sc_votes set_variable = { UN_SC_auto_abstain_frame_var = 2 } } clr_country_flag = auto_accept_all_sc_votes clr_country_flag = auto_reject_all_sc_votes set_variable = { UN_SC_auto_accept_frame_var = 1 } set_variable = { UN_SC_auto_reject_frame_var = 1 } international_systems_update = yes } } properties = { un_sc_auto_accept_button = { frame = UN_SC_auto_accept_frame_var } un_sc_auto_reject_button = { frame = UN_SC_auto_reject_frame_var } un_sc_auto_abstain_button = { frame = UN_SC_auto_abstain_frame_var } } } MD_unsc_pop_out_window = { window_name = "UNSC_pop_out_window" context_type = player_context dirty = global.international_systems_updated visible = { check_variable = { var_open_MD_un_council = 2 } check_variable = { var_open_MD_UN_gui = 2 } has_country_flag = open_MD_countrymissilesview has_country_flag = show_sc_vote_view } } MD_UN_GA_gui = { window_name = MD_UN_GA_window context_type = player_context parent_window_name = MD_UN_main_window_instance dirty = global.international_systems_updated visible = { check_variable = { var_open_MD_un_assembly = 2 } check_variable = { var_open_MD_UN_gui = 2 } has_country_flag = open_MD_countrymissilesview } triggers = { unga_yes_text_visible = { has_global_flag = current_ongoing_ga_vote } unga_no_text_visible = { has_global_flag = current_ongoing_ga_vote } unga_abstain_text_visible = { has_global_flag = current_ongoing_ga_vote } } effects = { un_ga_show_all_nations_button_click = { if = { limit = { has_country_flag = show_full_ga_list } clr_country_flag = show_full_ga_list } else = { set_country_flag = show_full_ga_list } if = { limit = { has_country_flag = show_ga_vote_list } clr_country_flag = show_ga_vote_list } if = { limit = { has_country_flag = show_ga_propose_resolutions } clr_country_flag = show_ga_propose_resolutions } international_systems_update = yes } un_ga_show_pending_votes_button_click = { if = { limit = { has_country_flag = show_ga_vote_list } clr_country_flag = show_ga_vote_list } else = { set_country_flag = show_ga_vote_list } if = { limit = { has_country_flag = show_full_ga_list } clr_country_flag = show_full_ga_list } if = { limit = { has_country_flag = show_ga_propose_resolutions } clr_country_flag = show_ga_propose_resolutions } international_systems_update = yes } un_ga_show_propose_resolutions_button_click = { if = { limit = { has_country_flag = show_ga_propose_resolutions } clr_country_flag = show_ga_propose_resolutions } else = { set_country_flag = show_ga_propose_resolutions } if = { limit = { has_country_flag = show_full_ga_list } clr_country_flag = show_full_ga_list } if = { limit = { has_country_flag = show_ga_vote_list } clr_country_flag = show_ga_vote_list } international_systems_update = yes } un_ga_auto_accept_button_click = { if = { limit = { has_country_flag = auto_accept_all_ga_votes } clr_country_flag = auto_accept_all_ga_votes set_variable = { UN_GA_auto_accept_frame_var = 1 } } else = { set_country_flag = auto_accept_all_ga_votes set_variable = { UN_GA_auto_accept_frame_var = 2 } } clr_country_flag = auto_reject_all_ga_votes clr_country_flag = auto_abstain_all_ga_votes set_variable = { UN_GA_auto_reject_frame_var = 1 } set_variable = { UN_GA_auto_abstain_frame_var = 1 } international_systems_update = yes } un_ga_auto_reject_button_click = { if = { limit = { has_country_flag = auto_reject_all_ga_votes } clr_country_flag = auto_reject_all_ga_votes set_variable = { UN_GA_auto_reject_frame_var = 1 } } else = { set_country_flag = auto_reject_all_ga_votes set_variable = { UN_GA_auto_reject_frame_var = 2 } } clr_country_flag = auto_accept_all_ga_votes clr_country_flag = auto_abstain_all_ga_votes set_variable = { UN_GA_auto_accept_frame_var = 1 } set_variable = { UN_GA_auto_abstain_frame_var = 1 } international_systems_update = yes } un_ga_auto_abstain_button_click = { if = { limit = { has_country_flag = auto_abstain_all_ga_votes } clr_country_flag = auto_abstain_all_ga_votes set_variable = { UN_GA_auto_abstain_frame_var = 1 } } else = { set_country_flag = auto_abstain_all_ga_votes set_variable = { UN_GA_auto_abstain_frame_var = 2 } } clr_country_flag = auto_accept_all_ga_votes clr_country_flag = auto_reject_all_ga_votes set_variable = { UN_GA_auto_accept_frame_var = 1 } set_variable = { UN_GA_auto_reject_frame_var = 1 } international_systems_update = yes } } properties = { un_ga_auto_accept_button = { frame = UN_GA_auto_accept_frame_var } un_ga_auto_reject_button = { frame = UN_GA_auto_reject_frame_var } un_ga_auto_abstain_button = { frame = UN_GA_auto_abstain_frame_var } } } MD_unga_pop_out_window = { window_name = "UNGA_pop_out_window" context_type = player_context dirty = global.international_systems_updated visible = { check_variable = { var_open_MD_un_assembly = 2 } check_variable = { var_open_MD_UN_gui = 2 } has_country_flag = open_MD_countrymissilesview OR = { has_country_flag = show_full_ga_list has_country_flag = show_ga_vote_list has_country_flag = show_ga_propose_resolutions } } } MD_UN_aid_gui = { window_name = MD_UN_aid_window context_type = player_context parent_window_name = MD_UN_main_window_instance dirty = global.international_systems_updated visible = { check_variable = { var_open_MD_un_aid = 2 } check_variable = { var_open_MD_UN_gui = 2 } has_country_flag = open_MD_countrymissilesview } triggers = { cancel_all_contributions_button_click_enabled = { has_political_power > 500 custom_trigger_tooltip = { tooltip = is_spending_additional_money_on_aid_tooltip OR = { check_variable = { united_nations_uncdf_funding > 0 } check_variable = { united_nations_unido_funding > 0 } check_variable = { united_nations_unescoe_funding > 0 } } } } decrease_base_budget_vote_button_click_enabled = { custom_trigger_tooltip = { tooltip = not_had_unga_budget_vote_in_past_year NOT = { has_global_flag = unga_budget_adjustment_vote } } custom_trigger_tooltip = { tooltip = unga_budget_is_not_too_low NOT = { check_variable = { global.general_operating_budget_contribute_percent < 0.0002 } } } custom_trigger_tooltip = { tooltip = unga_current_budget_contributor is_in_array = { global.UN_budget_contribution_tracker = THIS } } has_political_power > 200 } increase_base_budget_vote_button_click_enabled = { custom_trigger_tooltip = { tooltip = not_had_unga_budget_vote_in_past_year NOT = { has_global_flag = unga_budget_adjustment_vote } } custom_trigger_tooltip = { tooltip = unga_budget_is_not_too_high NOT = { check_variable = { global.general_operating_budget_contribute_percent > 0.0009 } } } custom_trigger_tooltip = { tooltip = unga_current_budget_contributor is_in_array = { global.UN_budget_contribution_tracker = THIS } } has_political_power > 200 } is_un_aid_request_subsidies_esco_button_click_enabled = { custom_trigger_tooltip = { tooltip = is_un_research_speed_less_than_global_target check_variable = { modifier@research_speed_factor < global.target_research_speed_mod } } custom_trigger_tooltip = { tooltip = is_un_political_power_gain_less_than_7 political_power_daily < 7 } custom_trigger_tooltip = { tooltip = is_un_is_already_receiving_subsidiy NOT = { is_in_array = { global.unesco_recipients = THIS } } } } is_un_aid_request_subsidies_ido_button_click_enabled = { custom_trigger_tooltip = { tooltip = is_un_construction_speed_less_than_global_target check_variable = { modifier@production_speed_buildings_factor < global.target_const_speed_mod } } custom_trigger_tooltip = { tooltip = is_un_less_global_civ_target check_variable = { industrial_complex_total < global.target_civ_count } NOT = { check_variable = { total_unemployed_percentage_display < 0.05 } } } custom_trigger_tooltip = { tooltip = is_un_is_already_receiving_subsidiy NOT = { is_in_array = { global.unido_recipients = THIS } } } } is_un_aid_request_subsidies_cdf_button_click_enabled = { is_overall_productivity_less_than_global_target = yes gdp_total_lower_than_1000 = yes custom_trigger_tooltip = { tooltip = is_un_is_already_receiving_subsidiy NOT = { is_in_array = { global.uncdf_recipients = THIS } } } } is_un_aid_request_join_esco_button_click_enabled = { has_political_power > 100 has_dynamic_modifier = { modifier = united_nations_member } } is_un_aid_request_join_ido_button_click_enabled = { has_political_power > 100 has_dynamic_modifier = { modifier = united_nations_member } } is_un_aid_request_join_cdf_button_click_enabled = { has_political_power > 100 has_dynamic_modifier = { modifier = united_nations_member } } is_un_increase_esco_contribution_button_click_enabled = { has_idea = un_aid_esco_member check_variable = { united_nations_esco_optional_funding < 5 } } is_un_increase_ido_contribution_button_click_enabled = { has_idea = un_aid_ido_member check_variable = { united_nations_ido_optional_funding < 5 } } is_un_increase_cdf_contribution_button_click_enabled = { has_idea = un_aid_cdf_member check_variable = { united_nations_cdf_optional_funding < 5 } } is_un_decrease_esco_contribution_button_click_enabled = { check_variable = { united_nations_esco_optional_funding > 0 } has_idea = un_aid_esco_member } is_un_decrease_ido_contribution_button_click_enabled = { check_variable = { united_nations_ido_optional_funding > 0 } has_idea = un_aid_ido_member } is_un_decrease_cdf_contribution_button_click_enabled = { check_variable = { united_nations_cdf_optional_funding > 0 } has_idea = un_aid_cdf_member } is_un_decrease_esco_contribution_button_shift_click_enabled = { check_variable = { united_nations_esco_optional_funding > 0.999 } } is_un_decrease_ido_contribution_button_shift_click_enabled = { check_variable = { united_nations_ido_optional_funding > 0.999 } } is_un_decrease_cdf_contribution_button_shift_click_enabled = { check_variable = { united_nations_cdf_optional_funding > 0.999 } } is_un_decrease_esco_contribution_button_control_click_enabled = { check_variable = { united_nations_esco_optional_funding > 0.249 } } is_un_decrease_ido_contribution_button_control_click_enabled = { check_variable = { united_nations_ido_optional_funding > 0.249 } } is_un_decrease_cdf_contribution_button_control_click_enabled = { check_variable = { united_nations_cdf_optional_funding > 0.249 } } is_un_decrease_esco_contribution_button_alt_click_enabled = { check_variable = { united_nations_esco_optional_funding > 0.499 } } is_un_decrease_ido_contribution_button_alt_click_enabled = { check_variable = { united_nations_ido_optional_funding > 0.499 } } is_un_decrease_cdf_contribution_button_alt_click_enabled = { check_variable = { united_nations_cdf_optional_funding > 0.499 } } } effects = { cancel_all_contributions_button_click = { add_political_power = -500 set_variable = { united_nations_uncdf_funding = 0 } set_variable = { united_nations_unido_funding = 0 } set_variable = { united_nations_unescoe_funding = 0 } custom_effect_tooltip = is_cut_all_additional_money_on_programs calculate_un_program_budgets = yes #TODO: Modifiy this to have the nation exit the UN Aid programs international_systems_update = yes } decrease_base_budget_vote_button_click = { set_temp_variable = { ga_new_vote_type = 8 } set_temp_variable = { ga_new_vote_nation = THIS } update_ga_vote = yes set_global_flag = { flag = unga_budget_adjustment_vote days = 365 value = 1 } add_political_power = -200 international_systems_update = yes } increase_base_budget_vote_button_click = { set_temp_variable = { ga_new_vote_type = 9 } set_temp_variable = { ga_new_vote_nation = THIS } update_ga_vote = yes set_global_flag = { flag = unga_budget_adjustment_vote days = 365 value = 1 } add_political_power = -200 international_systems_update = yes } is_un_aid_request_subsidies_esco_button_click = { add_to_array = { global.unesco_recipients = THIS } if = { limit = { NOT = { has_dynamic_modifier = { modifier = un_aid_subsidies_modifier } } } hidden_effect = { add_dynamic_modifier = { modifier = un_aid_subsidies_modifier } } } set_country_flag = is_getting_esco_subsidies custom_effect_tooltip = is_un_aid_get_esco_subsidies calcluate_program_distributions = yes } is_un_aid_request_subsidies_ido_button_click = { add_to_array = { global.unido_recipients = THIS } if = { limit = { NOT = { has_dynamic_modifier = { modifier = un_aid_subsidies_modifier } } } hidden_effect = { add_dynamic_modifier = { modifier = un_aid_subsidies_modifier } } } set_country_flag = is_getting_ido_subsidies custom_effect_tooltip = is_un_aid_get_ido_subsidies calcluate_program_distributions = yes } is_un_aid_request_subsidies_cdf_button_click = { add_to_array = { global.uncdf_recipients = THIS } if = { limit = { NOT = { has_dynamic_modifier = { modifier = un_aid_subsidies_modifier } } } hidden_effect = { add_dynamic_modifier = { modifier = un_aid_subsidies_modifier } } } set_country_flag = is_getting_cdf_subsidies custom_effect_tooltip = is_un_aid_get_cdf_subsidies calcluate_program_distributions = yes } is_un_aid_request_join_esco_button_click = { custom_effect_tooltip = TT_ALL_UN_MEMBER_NATIONS_GAIN if = { limit = { has_idea = un_aid_esco_member } remove_ideas = un_aid_esco_member every_collection_element = { input = { input = collection:un_general_assembly_members_collection } add_opinion_modifier = { target = ROOT modifier = left_un_esco } remove_opinion_modifier = { target = ROOT modifier = un_esco_member } } } else = { add_ideas = un_aid_esco_member every_collection_element = { input = { input = collection:un_general_assembly_members_collection } add_opinion_modifier = { target = ROOT modifier = un_esco_member } } } add_political_power = -100 set_country_flag = update_esco calculate_base_program_contributions = yes calculate_un_program_budgets = yes } is_un_aid_request_join_ido_button_click = { custom_effect_tooltip = TT_ALL_UN_MEMBER_NATIONS_GAIN if = { limit = { has_idea = un_aid_ido_member } remove_ideas = un_aid_ido_member every_collection_element = { input = { input = collection:un_general_assembly_members_collection } add_opinion_modifier = { target = ROOT modifier = left_un_ido } remove_opinion_modifier = { target = ROOT modifier = un_ido_member } } } else = { add_ideas = un_aid_ido_member every_collection_element = { input = { input = collection:un_general_assembly_members_collection } add_opinion_modifier = { target = ROOT modifier = un_ido_member } } } add_political_power = -100 set_country_flag = update_ido calculate_base_program_contributions = yes calculate_un_program_budgets = yes } is_un_aid_request_join_cdf_button_click = { custom_effect_tooltip = TT_ALL_UN_MEMBER_NATIONS_GAIN if = { limit = { has_idea = un_aid_cdf_member } remove_ideas = un_aid_cdf_member every_collection_element = { input = { input = collection:un_general_assembly_members_collection } add_opinion_modifier = { target = ROOT modifier = left_un_cdf } remove_opinion_modifier = { target = ROOT modifier = un_cdf_member } } } else = { add_ideas = un_aid_cdf_member every_collection_element = { input = { input = collection:un_general_assembly_members_collection } add_opinion_modifier = { target = ROOT modifier = un_cdf_member } } } add_political_power = -100 set_country_flag = update_cdf calculate_base_program_contributions = yes calculate_un_program_budgets = yes } is_un_increase_esco_contribution_button_click = { add_to_variable = { united_nations_esco_optional_funding = 0.1 } international_systems_update = yes } is_un_decrease_esco_contribution_button_click = { add_to_variable = { united_nations_esco_optional_funding = -0.1 } international_systems_update = yes } is_un_increase_ido_contribution_button_click = { add_to_variable = { united_nations_ido_optional_funding = 0.1 } international_systems_update = yes } is_un_decrease_ido_contribution_button_click = { add_to_variable = { united_nations_ido_optional_funding = -0.1 } international_systems_update = yes } is_un_increase_cdf_contribution_button_click = { add_to_variable = { united_nations_cdf_optional_funding = 0.1 } international_systems_update = yes } is_un_decrease_cdf_contribution_button_click = { add_to_variable = { united_nations_cdf_optional_funding = -0.1 } international_systems_update = yes } is_un_increase_esco_contribution_button_control_click = { add_to_variable = { united_nations_esco_optional_funding = 0.25 } international_systems_update = yes } is_un_decrease_esco_contribution_button_control_click = { add_to_variable = { united_nations_esco_optional_funding = -0.25 } international_systems_update = yes } is_un_increase_ido_contribution_button_control_click = { add_to_variable = { united_nations_ido_optional_funding = 0.25 } international_systems_update = yes } is_un_decrease_ido_contribution_button_control_click = { add_to_variable = { united_nations_ido_optional_funding = -0.25 } international_systems_update = yes } is_un_increase_cdf_contribution_button_control_click = { add_to_variable = { united_nations_cdf_optional_funding = 0.25 } international_systems_update = yes } is_un_decrease_cdf_contribution_button_control_click = { add_to_variable = { united_nations_cdf_optional_funding = -0.25 } international_systems_update = yes } is_un_increase_esco_contribution_button_alt_click = { add_to_variable = { united_nations_esco_optional_funding = 0.5 } international_systems_update = yes } is_un_decrease_esco_contribution_button_alt_click = { add_to_variable = { united_nations_esco_optional_funding = -0.5 } international_systems_update = yes } is_un_increase_ido_contribution_button_alt_click = { add_to_variable = { united_nations_ido_optional_funding = 0.5 } international_systems_update = yes } is_un_decrease_ido_contribution_button_alt_click = { add_to_variable = { united_nations_ido_optional_funding = -0.5 } international_systems_update = yes } is_un_increase_cdf_contribution_button_alt_click = { add_to_variable = { united_nations_cdf_optional_funding = 0.5 } international_systems_update = yes } is_un_decrease_cdf_contribution_button_alt_click = { add_to_variable = { united_nations_cdf_optional_funding = -0.5 } international_systems_update = yes } is_un_increase_esco_contribution_button_shift_click = { add_to_variable = { united_nations_esco_optional_funding = 1.0 } international_systems_update = yes } is_un_decrease_esco_contribution_button_shift_click = { add_to_variable = { united_nations_esco_optional_funding = -1.0 } international_systems_update = yes } is_un_increase_ido_contribution_button_shift_click = { add_to_variable = { united_nations_ido_optional_funding = 1.0 } international_systems_update = yes } is_un_decrease_ido_contribution_button_shift_click = { add_to_variable = { united_nations_ido_optional_funding = -1.0 } international_systems_update = yes } is_un_increase_cdf_contribution_button_shift_click = { add_to_variable = { united_nations_cdf_optional_funding = 1.0 } international_systems_update = yes } is_un_decrease_cdf_contribution_button_shift_click = { add_to_variable = { united_nations_cdf_optional_funding = -1.0 } international_systems_update = yes } } } MD_cyber_system_gui = { window_name = MD_cyber_system_window context_type = player_context parent_window_name = MD_countrymissilesview dirty = global.international_systems_updated visible = { check_variable = { var_open_MD_cyber_gui = 2 } has_country_flag = open_MD_countrymissilesview } triggers = { # Investment buttons cyber_invest_offense_button_click_enabled = { command_power > 25 custom_trigger_tooltip = { tooltip = cyber_can_expand_offensive_tt check_variable = { cyber_offense_investment < 99 } } } cyber_invest_offense_button_right_click_enabled = { command_power > 25 custom_trigger_tooltip = { tooltip = cyber_has_expanded_offensive_tt check_variable = { cyber_offense_investment > 0 } } } cyber_invest_defense_button_click_enabled = { command_power > 25 custom_trigger_tooltip = { tooltip = cyber_can_expand_offensive_tt check_variable = { cyber_defense_investment < 99 } } } cyber_invest_defense_button_right_click_enabled = { command_power > 25 custom_trigger_tooltip = { tooltip = cyber_has_expanded_defensive_tt check_variable = { cyber_defense_investment > 0 } } } # Operation buttons — evaluated per active target list entry (i = index) cyber_gps_jamming_button_click_enabled = { has_cyber_capability_1 = yes command_power > 5 cyber_has_valid_target = yes cyber_not_at_capacity = yes set_temp_variable = { cyber_op_trigger = 1 } cyber_mission_not_running = yes has_war_with = current_cyber_nation_target } cyber_economic_disruption_button_click_enabled = { has_cyber_capability_2 = yes command_power > 10 cyber_has_valid_target = yes cyber_not_at_capacity = yes set_temp_variable = { cyber_op_trigger = 2 } cyber_mission_not_running = yes } cyber_propaganda_ops_button_click_enabled = { has_cyber_capability_2 = yes command_power > 10 cyber_has_valid_target = yes cyber_not_at_capacity = yes set_temp_variable = { cyber_op_trigger = 3 } cyber_mission_not_running = yes NOT = { has_war_with = current_cyber_nation_target } } cyber_infrastructure_attack_button_click_enabled = { has_cyber_capability_3 = yes command_power > 20 cyber_has_valid_target = yes cyber_not_at_capacity = yes set_temp_variable = { cyber_op_trigger = 4 } cyber_mission_not_running = yes } cyber_critical_strike_button_click_enabled = { has_cyber_capability_4 = yes command_power > 35 cyber_has_valid_target = yes cyber_not_at_capacity = yes set_temp_variable = { cyber_op_trigger = 5 } cyber_mission_not_running = yes } # Tier 1 new operations cyber_sigint_surveillance_button_click_enabled = { has_cyber_capability_1 = yes command_power > 5 cyber_has_valid_target = yes cyber_not_at_capacity = yes set_temp_variable = { cyber_op_trigger = 6 } cyber_mission_not_running = yes } cyber_radar_spoofing_button_click_enabled = { has_cyber_capability_1 = yes command_power > 5 cyber_has_valid_target = yes cyber_not_at_capacity = yes set_temp_variable = { cyber_op_trigger = 7 } cyber_mission_not_running = yes has_war_with = current_cyber_nation_target } # Tier 2 new operations cyber_election_interference_button_click_enabled = { has_cyber_capability_2 = yes command_power > 10 cyber_has_valid_target = yes cyber_not_at_capacity = yes set_temp_variable = { cyber_op_trigger = 8 } cyber_mission_not_running = yes NOT = { has_war_with = current_cyber_nation_target } } cyber_industrial_espionage_button_click_enabled = { has_cyber_capability_2 = yes command_power > 10 cyber_has_valid_target = yes cyber_not_at_capacity = yes set_temp_variable = { cyber_op_trigger = 9 } cyber_mission_not_running = yes } cyber_comms_intercept_button_click_enabled = { has_cyber_capability_2 = yes command_power > 10 cyber_has_valid_target = yes cyber_not_at_capacity = yes set_temp_variable = { cyber_op_trigger = 10 } cyber_mission_not_running = yes } # Tier 3 new operations cyber_financial_system_attack_button_click_enabled = { has_cyber_capability_3 = yes command_power > 20 cyber_has_valid_target = yes cyber_not_at_capacity = yes set_temp_variable = { cyber_op_trigger = 11 } cyber_mission_not_running = yes } cyber_logistics_disruption_button_click_enabled = { has_cyber_capability_3 = yes command_power > 20 cyber_has_valid_target = yes cyber_not_at_capacity = yes set_temp_variable = { cyber_op_trigger = 12 } cyber_mission_not_running = yes has_war_with = current_cyber_nation_target } cyber_sleeper_network_button_click_enabled = { has_cyber_capability_3 = yes command_power > 20 cyber_has_valid_target = yes cyber_not_at_capacity = yes set_temp_variable = { cyber_op_trigger = 13 } cyber_mission_not_running = yes } # Tier 4 new operations cyber_deception_campaign_button_click_enabled = { has_cyber_capability_4 = yes command_power > 35 cyber_has_valid_target = yes cyber_not_at_capacity = yes set_temp_variable = { cyber_op_trigger = 14 } cyber_mission_not_running = yes } cyber_zero_day_strike_button_click_enabled = { has_cyber_capability_4 = yes command_power > 35 cyber_has_valid_target = yes cyber_not_at_capacity = yes set_temp_variable = { cyber_op_trigger = 15 } cyber_mission_not_running = yes } # Defensive operations (self-targeted, consume a capacity slot) cyber_network_hardening_button_click_enabled = { has_cyber_capability_1 = yes command_power > 5 cyber_not_at_capacity = yes NOT = { has_idea = cyber_network_hardening_active } } cyber_counter_intrusion_button_click_enabled = { has_cyber_capability_2 = yes command_power > 10 cyber_not_at_capacity = yes NOT = { has_idea = cyber_counter_intrusion_active } } cyber_attribution_hunt_button_click_enabled = { has_cyber_capability_3 = yes command_power > 20 cyber_not_at_capacity = yes NOT = { has_idea = cyber_attribution_hunt_active } } cyber_cur_decrypt_progress_visible = { has_dlc = "La Resistance" } } effects = { # Investment cyber_invest_offense_button_click = { log = "[GetDateText]: [Root.GetName]: cyber_invest_offense GUI" add_command_power = -25 set_variable = { cyber_offense_investment = { value = cyber_offense_investment add = 2 clamp = { min = 0 max = 100 } } } calculate_cyber_capability = yes custom_effect_tooltip = cyber_gui_invest_offense_tt international_systems_update = yes } cyber_invest_offense_button_right_click = { log = "[GetDateText]: [Root.GetName]: cyber_divest_offense GUI" add_command_power = -25 set_variable = { cyber_offense_investment = { value = cyber_offense_investment subtract = 2 clamp = { min = 0 max = 100 } } } calculate_cyber_capability = yes custom_effect_tooltip = cyber_gui_divest_offense_tt international_systems_update = yes } cyber_invest_defense_button_click = { log = "[GetDateText]: [Root.GetName]: cyber_invest_defense GUI" add_command_power = -25 set_variable = { cyber_defense_investment = { value = cyber_defense_investment add = 2 clamp = { min = 0 max = 100 } } } calculate_cyber_capability = yes custom_effect_tooltip = cyber_gui_invest_defense_tt international_systems_update = yes } cyber_invest_defense_button_right_click = { log = "[GetDateText]: [Root.GetName]: cyber_divest_defense GUI" add_command_power = -25 set_variable = { cyber_defense_investment = { value = cyber_defense_investment subtract = 2 clamp = { min = 0 max = 100 } } } calculate_cyber_capability = yes custom_effect_tooltip = cyber_gui_divest_defense_tt international_systems_update = yes } # Operation execution — i = index of the active target row clicked cyber_gps_jamming_button_click = { log = "[GetDateText]: [Root.GetName]: cyber_gps_jamming vs [This.GetName] GUI" add_command_power = -5 effect_tooltip = { var:current_cyber_nation_target = { add_timed_idea = { idea = cyber_gps_jamming_malus days = 90 } } } set_variable = { ROOT.cyber_op_target = current_cyber_nation_target } set_variable = { ROOT.cyber_op_type = 1 } ROOT = { cyber_launch_operation = yes } } cyber_economic_disruption_button_click = { log = "[GetDateText]: [Root.GetName]: cyber_economic_disruption vs [This.GetName] GUI" add_command_power = -10 effect_tooltip = { var:current_cyber_nation_target = { add_timed_idea = { idea = cyber_economic_disruption_malus days = 120 } } } set_variable = { ROOT.cyber_op_target = current_cyber_nation_target } set_variable = { ROOT.cyber_op_type = 2 } ROOT = { cyber_launch_operation = yes } } cyber_propaganda_ops_button_click = { log = "[GetDateText]: [Root.GetName]: cyber_propaganda_ops vs [This.GetName] GUI" add_command_power = -10 effect_tooltip = { var:current_cyber_nation_target = { add_timed_idea = { idea = cyber_propaganda_ops_malus days = 120 } set_temp_variable = { party_popularity_increase = -0.03 } change_relative_party_popularity = yes add_stability = -0.02 } } set_variable = { ROOT.cyber_op_target = current_cyber_nation_target } set_variable = { ROOT.cyber_op_type = 3 } ROOT = { cyber_launch_operation = yes } } cyber_infrastructure_attack_button_click = { log = "[GetDateText]: [Root.GetName]: cyber_infrastructure_attack vs [This.GetName] GUI" add_command_power = -20 effect_tooltip = { var:current_cyber_nation_target = { add_timed_idea = { idea = cyber_infrastructure_damage_malus days = 180 } random_owned_controlled_state = { damage_building = { type = infrastructure damage = 1 } } } } set_variable = { ROOT.cyber_op_target = current_cyber_nation_target } set_variable = { ROOT.cyber_op_type = 4 } ROOT = { cyber_launch_operation = yes } } cyber_critical_strike_button_click = { log = "[GetDateText]: [Root.GetName]: cyber_critical_strike vs [This.GetName] GUI" add_command_power = -35 effect_tooltip = { var:current_cyber_nation_target = { add_timed_idea = { idea = cyber_critical_strike_malus days = 365 } add_stability = -0.05 random_owned_controlled_state = { damage_building = { type = industrial_complex damage = 1 } } random_owned_controlled_state = { damage_building = { type = infrastructure damage = 1 } } } } set_variable = { ROOT.cyber_op_target = current_cyber_nation_target } set_variable = { ROOT.cyber_op_type = 5 } ROOT = { cyber_launch_operation = yes } } # Tier 1 new operations cyber_sigint_surveillance_button_click = { log = "[GetDateText]: [Root.GetName]: cyber_sigint_surveillance vs [This.GetName] GUI" add_command_power = -5 effect_tooltip = { var:current_cyber_nation_target = { add_timed_idea = { idea = cyber_sigint_surveillance_malus days = 180 } } } set_variable = { ROOT.cyber_op_target = current_cyber_nation_target } set_variable = { ROOT.cyber_op_type = 6 } ROOT = { cyber_launch_operation = yes } } cyber_radar_spoofing_button_click = { log = "[GetDateText]: [Root.GetName]: cyber_radar_spoofing vs [This.GetName] GUI" add_command_power = -5 effect_tooltip = { var:current_cyber_nation_target = { add_timed_idea = { idea = cyber_radar_spoofing_malus days = 30 } } } set_variable = { ROOT.cyber_op_target = current_cyber_nation_target } set_variable = { ROOT.cyber_op_type = 7 } ROOT = { cyber_launch_operation = yes } } # Tier 2 new operations cyber_election_interference_button_click = { log = "[GetDateText]: [Root.GetName]: cyber_election_interference vs [This.GetName] GUI" add_command_power = -10 effect_tooltip = { var:current_cyber_nation_target = { add_timed_idea = { idea = cyber_election_interference_malus days = 180 } set_temp_variable = { party_popularity_increase = -0.04 } change_relative_party_popularity = yes add_stability = -0.02 } } set_variable = { ROOT.cyber_op_target = current_cyber_nation_target } set_variable = { ROOT.cyber_op_type = 8 } ROOT = { cyber_launch_operation = yes } } cyber_industrial_espionage_button_click = { log = "[GetDateText]: [Root.GetName]: cyber_industrial_espionage vs [This.GetName] GUI" add_command_power = -10 effect_tooltip = { var:current_cyber_nation_target = { add_timed_idea = { idea = cyber_industrial_espionage_malus days = 120 } } } set_variable = { ROOT.cyber_op_target = current_cyber_nation_target } set_variable = { ROOT.cyber_op_type = 9 } ROOT = { cyber_launch_operation = yes } } cyber_comms_intercept_button_click = { log = "[GetDateText]: [Root.GetName]: cyber_comms_intercept vs [This.GetName] GUI" add_command_power = -10 effect_tooltip = { var:current_cyber_nation_target = { add_timed_idea = { idea = cyber_comms_intercept_malus days = 180 } } } set_variable = { ROOT.cyber_op_target = current_cyber_nation_target } set_variable = { ROOT.cyber_op_type = 10 } ROOT = { cyber_launch_operation = yes } } # Tier 3 new operations cyber_financial_system_attack_button_click = { log = "[GetDateText]: [Root.GetName]: cyber_financial_system_attack vs [This.GetName] GUI" add_command_power = -20 effect_tooltip = { var:current_cyber_nation_target = { add_timed_idea = { idea = cyber_financial_system_attack_malus days = 150 } add_stability = -0.02 } } set_variable = { ROOT.cyber_op_target = current_cyber_nation_target } set_variable = { ROOT.cyber_op_type = 11 } ROOT = { cyber_launch_operation = yes } } cyber_logistics_disruption_button_click = { log = "[GetDateText]: [Root.GetName]: cyber_logistics_disruption vs [This.GetName] GUI" add_command_power = -20 effect_tooltip = { var:current_cyber_nation_target = { add_timed_idea = { idea = cyber_logistics_disruption_malus days = 90 } } } set_variable = { ROOT.cyber_op_target = current_cyber_nation_target } set_variable = { ROOT.cyber_op_type = 12 } ROOT = { cyber_launch_operation = yes } } cyber_sleeper_network_button_click = { log = "[GetDateText]: [Root.GetName]: cyber_sleeper_network vs [This.GetName] GUI" add_command_power = -20 effect_tooltip = { var:current_cyber_nation_target = { add_timed_idea = { idea = cyber_sleeper_network_malus days = 365 } } } set_variable = { ROOT.cyber_op_target = current_cyber_nation_target } set_variable = { ROOT.cyber_op_type = 13 } ROOT = { cyber_launch_operation = yes } } # Tier 4 new operations cyber_deception_campaign_button_click = { log = "[GetDateText]: [Root.GetName]: cyber_deception_campaign vs [This.GetName] GUI" add_command_power = -35 effect_tooltip = { var:current_cyber_nation_target = { add_timed_idea = { idea = cyber_deception_campaign_malus days = 180 } } } set_variable = { ROOT.cyber_op_target = current_cyber_nation_target } set_variable = { ROOT.cyber_op_type = 14 } ROOT = { cyber_launch_operation = yes } } cyber_zero_day_strike_button_click = { log = "[GetDateText]: [Root.GetName]: cyber_zero_day_strike vs [This.GetName] GUI" add_command_power = -35 effect_tooltip = { var:current_cyber_nation_target = { add_timed_idea = { idea = cyber_zero_day_strike_malus days = 60 } add_stability = -0.03 random_owned_controlled_state = { damage_building = { type = industrial_complex damage = 1 } } random_owned_controlled_state = { damage_building = { type = infrastructure damage = 1 } } } } set_variable = { ROOT.cyber_op_target = current_cyber_nation_target } set_variable = { ROOT.cyber_op_type = 15 } ROOT = { cyber_launch_operation = yes } } # Defensive operations cyber_network_hardening_button_click = { log = "[GetDateText]: [Root.GetName]: cyber_network_hardening GUI" add_command_power = -5 set_variable = { cyber_op_type = 16 } set_variable = { cyber_op_target = ROOT } cyber_launch_operation = yes add_timed_idea = { idea = cyber_network_hardening_active days = 120 } } cyber_counter_intrusion_button_click = { log = "[GetDateText]: [Root.GetName]: cyber_counter_intrusion GUI" add_command_power = -10 set_variable = { cyber_op_type = 17 } set_variable = { cyber_op_target = ROOT } cyber_launch_operation = yes add_timed_idea = { idea = cyber_counter_intrusion_active days = 30 } } cyber_attribution_hunt_button_click = { log = "[GetDateText]: [Root.GetName]: cyber_attribution_hunt GUI" add_command_power = -20 set_variable = { cyber_op_type = 18 } set_variable = { cyber_op_target = ROOT } cyber_launch_operation = yes add_timed_idea = { idea = cyber_attribution_hunt_active days = 60 } } select_asia_button_click = { set_temp_variable = { region_swap = 0 } cyber_rebuild_potential_targets = yes } select_me_button_click = { set_temp_variable = { region_swap = 1 } cyber_rebuild_potential_targets = yes } select_afr_button_click = { set_temp_variable = { region_swap = 2 } cyber_rebuild_potential_targets = yes } select_europe_button_click = { set_temp_variable = { region_swap = 3 } cyber_rebuild_potential_targets = yes } select_american_button_click = { set_temp_variable = { region_swap = 4 } cyber_rebuild_potential_targets = yes } } } MD_antarctica_system_gui = { window_name = MD_antarctica_system_window context_type = player_context parent_window_name = MD_countrymissilesview dirty = global.missile_ui_updated visible = { check_variable = { var_open_MD_antarctica_gui = 2 } has_country_flag = open_MD_countrymissilesview } triggers = { antarctica_treaty_join_button_click_enabled = { has_dynamic_modifier = united_nations_member custom_trigger_tooltip = { tooltip = already_antarctica_treaty_member NOT = { has_idea = at_member } } NOT = { has_idea = ANT_kicked_from_treaty_idea } has_political_power > 200 } antarctica_treaty_join_atcp_button_click_enabled = { has_idea = at_member NOT = { OR = { has_country_flag = antarctica_atcp_application_pending has_country_flag = is_antarctica_atcp_consultative_member } } OR = { has_country_flag = { flag = is_antarctic_research_station_constructed days > 365 } is_startup_research_station = yes } } antarctica_map_open_button_click_enabled = { OR = { has_idea = at_member has_country_flag = antarctica_has_active_station } } antarctica_treaty_join_ccas_button_click_enabled = { has_idea = at_member NOT = { has_country_flag = antarctica_ccas_member } has_political_power > 200 } antarctica_treaty_leave_ccas_button_click_enabled = { has_country_flag = antarctica_ccas_member } antarctica_treaty_join_ccamlr_button_click_enabled = { has_idea = at_member NOT = { has_country_flag = antarctica_ccamlr_member } has_political_power > 200 } antarctica_treaty_leave_ccamlr_button_click_enabled = { has_country_flag = antarctica_ccamlr_member } antarctica_treaty_join_button_visible = { NOT = { has_idea = at_member } } antarctica_treaty_leave_button_click_enabled = { has_idea = at_member NOT = { has_country_flag = antarctica_treaty_leave_pending } } antarctica_treaty_leave_button_visible = { has_idea = at_member } } effects = { antarctica_treaty_join_button_click = { log = "[GetDateText]: [Root.GetName]: Join Antarctica Treaty GUI" add_political_power = -200 news_event = MD_antarctica_news.1 custom_effect_tooltip = join_antarctica_treaty_tt effect_tooltip = { add_ideas = at_member } } antarctica_treaty_join_atcp_button_click = { log = "[GetDateText]: [Root.GetName]: Apply for ATCP GUI" set_country_flag = antarctica_atcp_application_pending custom_effect_tooltip = antarctica_atcp_apply_pending_tt add_to_variable = { global.missile_ui_updated = 1 } } antarctica_treaty_leave_button_click = { log = "[GetDateText]: [Root.GetName]: Leave Antarctica Treaty GUI" add_political_power = -200 news_event = MD_antarctica_news.3 custom_effect_tooltip = leave_antarctica_treaty_tt effect_tooltip = { remove_ideas = at_member } newline = yes custom_effect_tooltip = leave_antarctica_cannot_be_stopped_tt newline = yes custom_effect_tooltip = leave_antarctica_treaty_warning_tt } antarctica_treaty_join_ccamlr_button_click = { log = "[GetDateText]: [Root.GetName]: Joined CCAMLR GUI" set_country_flag = antarctica_ccamlr_member set_temp_variable = { antarctica_small_treaty_leave_temp = 0 } # GUI acts weird without it here but not within CCAS join button antarctica_update_small_treaty_status_effects = yes custom_effect_tooltip = antarctica_join_ccamlr_effect_tt add_to_variable = { global.missile_ui_updated = 1 } add_political_power = -200 } antarctica_treaty_leave_ccamlr_button_click = { log = "[GetDateText]: [Root.GetName]: Left CCAMLR GUI" clr_country_flag = antarctica_ccamlr_member set_temp_variable = { antarctica_small_treaty_leave_temp = 1 } antarctica_update_small_treaty_status_effects = yes custom_effect_tooltip = antarctica_leave_ccamlr_effect_tt add_to_variable = { global.missile_ui_updated = 1 } } antarctica_treaty_join_ccas_button_click = { log = "[GetDateText]: [Root.GetName]: Joined CCAS GUI" set_country_flag = antarctica_ccas_member antarctica_update_small_treaty_status_effects = yes custom_effect_tooltip = antarctica_join_ccas_effect_tt add_to_variable = { global.missile_ui_updated = 1 } add_political_power = -200 } antarctica_treaty_leave_ccas_button_click = { log = "[GetDateText]: [Root.GetName]: Left CCAS GUI" clr_country_flag = antarctica_ccas_member set_temp_variable = { antarctica_small_treaty_leave_temp = 1 } antarctica_update_small_treaty_status_effects = yes custom_effect_tooltip = antarctica_leave_ccas_effect_tt add_to_variable = { global.missile_ui_updated = 1 } } antarctica_map_open_button_click = { log = "[GetDateText]: [Root.GetName]: Open Antarctica Map GUI" if = { limit = { NOT = { has_country_flag = antarctica_map_opened } } set_country_flag = antarctica_map_opened } else = { clr_country_flag = antarctica_map_opened } antarctica_refresh_window_and_variables = yes } } } MD_antarctica_map_gui = { window_name = MD_antarctica_map_view_window context_type = player_context dirty = global.missile_ui_updated visible = { check_variable = { var_open_MD_antarctica_gui = 2 } has_country_flag = open_MD_countrymissilesview has_country_flag = antarctica_map_opened } triggers = { antarctica_map_bp_glow_visible = { has_country_flag = antarctica_station_bp_visible } antarctica_map_bp_visible = { has_country_flag = antarctica_station_bp_visible } antarctica_map_continent_glow_visible = { NOT = { has_country_flag = antarctica_station_bp_visible } } antarctica_station_find_or_create_button_visible = { NOT = { has_country_flag = antarctica_station_bp_visible } } antarctica_station_show_blueprint_button_click_enabled = { original_tag = var:selected_antarctica_station_controller } antarctica_station_find_or_create_button_click_enabled = { check_variable = { antarctica_station_setup_days_remaining = 0 } NOT = { has_country_flag = antarctica_treaty_leave_pending } OR = { has_country_flag = antarctica_has_active_station check_variable = { global.antarctica_station_display_capacity_remaining > 0 } } } antarctica_station_swap_laboratory_button_visible = { has_country_flag = antarctica_station_bp_visible original_tag = var:selected_antarctica_station_controller } antarctica_station_module_preview_visible = { has_country_flag = antarctica_station_bp_visible } antarctica_station_module_preview_frozen_visible = { has_country_flag = antarctica_station_bp_visible } antarctica_station_swap_module_button_visible = { has_country_flag = antarctica_station_bp_visible check_variable = { selected_antarctica_station > 0 } } antarctica_station_swap_module_back_button_visible = { has_country_flag = antarctica_station_bp_visible check_variable = { selected_antarctica_station > 0 } } antarctica_station_install_module_button_visible = { has_country_flag = antarctica_station_bp_visible } antarctica_station_install_module_button_click_enabled = { check_variable = { selected_antarctica_station > 0 } custom_trigger_tooltip = { tooltip = ANTARCTICA_STATION_INSTALL_MODULE_IN_PROGRESS_TT check_variable = { selected_antarctica_station_install_in_progress < 1 } } check_variable = { selected_antarctica_station_selected_module > 0 } antarctica_station_selected_slot_module_different = yes antarctica_can_install_module_no_duplicate_laboratories = yes antarctica_can_install_module_power_balance = yes antarctica_can_install_module_staff_availability = yes antarctica_is_module_researched = yes original_tag = var:selected_antarctica_station_controller } antarctica_station_send_supplies_button_click_enabled = { check_variable = { selected_antarctica_station > 0 } is_station_fuel_supply_ready = yes original_tag = var:selected_antarctica_station_controller } antarctica_station_send_observers_button_visible = { NOT = { has_country_flag = antarctica_station_bp_visible } has_country_flag = antarctica_map_opened has_country_flag = is_antarctica_atcp_consultative_member } antarctica_station_send_observers_button_click_enabled = { check_variable = { selected_antarctica_station > 0 } NOT = { original_tag = var:selected_antarctica_station_controller } has_country_flag = is_antarctica_atcp_consultative_member custom_trigger_tooltip = { tooltip = ANTARCTICA_STATION_SEND_OBSERVERS_COUNTRY_LOCK_TT NOT = { has_country_flag = antarctica_observer_mission_in_progress } } custom_trigger_tooltip = { tooltip = ANTARCTICA_STATION_SEND_OBSERVERS_STATION_LOCK_TT NOT = { check_variable = { global.antarctica_station_observers_incoming^selected_antarctica_station > 0 } } } custom_trigger_tooltip = { tooltip = ANTARCTICA_STATION_SEND_OBSERVERS_BLIZZARD_TT NOT = { has_global_flag = antarctica_blizzard_active } } } antarctica_station_toggle_illegal_activities_button_visible = { has_country_flag = antarctica_station_bp_visible } antarctica_station_toggle_illegal_activities_button_click_enabled = { check_variable = { selected_antarctica_station > 0 } original_tag = var:selected_antarctica_station_controller antarctica_station_check_possible_illegal_laboratories_installed = yes } antarctica_station_dismantle_button_visible = { has_country_flag = antarctica_station_bp_visible check_variable = { selected_antarctica_station > 0 } original_tag = var:selected_antarctica_station_controller has_country_flag = antarctica_treaty_leave_pending } antarctica_station_dismantle_button_click_enabled = { check_variable = { selected_antarctica_station > 0 } original_tag = var:selected_antarctica_station_controller has_country_flag = antarctica_treaty_leave_pending check_variable = { antarctica_station_dismantle_in_progress < 1 } } antarctica_station_module_text_visible = { has_country_flag = antarctica_station_bp_visible } antarctic_station_module_slot_1_visible = { has_country_flag = antarctica_station_bp_visible } antarctic_station_module_slot_1_click_enabled = { check_variable = { selected_antarctica_station > 0 } is_antarctica_station_tier_two = yes hidden_trigger = { original_tag = var:selected_antarctica_station_controller } } antarctic_station_module_slot_2_visible = { has_country_flag = antarctica_station_bp_visible } antarctic_station_module_slot_2_click_enabled = { check_variable = { selected_antarctica_station > 0 } is_antarctica_station_tier_two = yes hidden_trigger = { original_tag = var:selected_antarctica_station_controller custom_trigger_tooltip = { tooltip = ANTARCTICA_MODULE_REPAIR_BLOCKED_TT NOT = { check_variable = { global.antarctica_station_module_slot_2_blizzard_damaged^selected_antarctica_station > 0 } } } } } antarctic_station_module_slot_4_visible = { has_country_flag = antarctica_station_bp_visible } antarctic_station_module_slot_4_click_enabled = { check_variable = { selected_antarctica_station > 0 } is_antarctica_station_tier_three = yes hidden_trigger = { original_tag = var:selected_antarctica_station_controller } } antarctic_station_module_slot_5_visible = { has_country_flag = antarctica_station_bp_visible } antarctic_station_module_slot_5_click_enabled = { check_variable = { selected_antarctica_station > 0 } check_variable = { selected_antarctica_station_tier > 0 } original_tag = var:selected_antarctica_station_controller } antarctic_station_module_slot_6_visible = { has_country_flag = antarctica_station_bp_visible } antarctic_station_module_slot_6_click_enabled = { check_variable = { selected_antarctica_station > 0 } is_antarctica_station_tier_two = yes hidden_trigger = { original_tag = var:selected_antarctica_station_controller custom_trigger_tooltip = { tooltip = ANTARCTICA_MODULE_REPAIR_BLOCKED_TT NOT = { check_variable = { global.antarctica_station_module_slot_6_blizzard_damaged^selected_antarctica_station > 0 } } } } } antarctic_station_module_slot_7_visible = { has_country_flag = antarctica_station_bp_visible } antarctic_station_module_slot_7_click_enabled = { check_variable = { selected_antarctica_station > 0 } check_variable = { selected_antarctica_station_tier > 0 } original_tag = var:selected_antarctica_station_controller custom_trigger_tooltip = { tooltip = ANTARCTICA_MODULE_REPAIR_BLOCKED_TT NOT = { check_variable = { global.antarctica_station_module_slot_7_blizzard_damaged^selected_antarctica_station > 0 } } } } antarctic_station_module_slot_8_visible = { has_country_flag = antarctica_station_bp_visible } antarctic_station_module_slot_8_click_enabled = { check_variable = { selected_antarctica_station > 0 } check_variable = { selected_antarctica_station_tier > 0 } original_tag = var:selected_antarctica_station_controller custom_trigger_tooltip = { tooltip = ANTARCTICA_MODULE_REPAIR_BLOCKED_TT NOT = { check_variable = { global.antarctica_station_module_slot_8_blizzard_damaged^selected_antarctica_station > 0 } } } } antarctic_station_module_slot_9_visible = { has_country_flag = antarctica_station_bp_visible } antarctic_station_module_slot_9_click_enabled = { check_variable = { selected_antarctica_station > 0 } is_antarctica_station_tier_three = yes hidden_trigger = { original_tag = var:selected_antarctica_station_controller custom_trigger_tooltip = { tooltip = ANTARCTICA_MODULE_REPAIR_BLOCKED_TT NOT = { check_variable = { global.antarctica_station_module_slot_9_blizzard_damaged^selected_antarctica_station > 0 } } } } } antarctic_station_module_slot_10_visible = { has_country_flag = antarctica_station_bp_visible } antarctic_station_module_slot_10_click_enabled = { check_variable = { selected_antarctica_station > 0 } is_antarctica_station_tier_three = yes hidden_trigger = { original_tag = var:selected_antarctica_station_controller } } antarctic_station_module_slot_11_visible = { has_country_flag = antarctica_station_bp_visible check_variable = { selected_antarctica_station_tier > 0 } } antarctic_station_module_slot_11_click_enabled = { check_variable = { selected_antarctica_station > 0 } check_variable = { selected_antarctica_station_tier > 0 } original_tag = var:selected_antarctica_station_controller custom_trigger_tooltip = { tooltip = ANTARCTICA_MODULE_REPAIR_BLOCKED_TT NOT = { check_variable = { global.antarctica_station_module_slot_11_blizzard_damaged^selected_antarctica_station > 0 } } } } antarctic_station_module_slot_12_visible = { has_country_flag = antarctica_station_bp_visible check_variable = { selected_antarctica_station_tier > 0 } } antarctic_station_module_slot_12_click_enabled = { check_variable = { selected_antarctica_station > 0 } check_variable = { selected_antarctica_station_tier > 0 } original_tag = var:selected_antarctica_station_controller } antarctic_station_module_slot_13_visible = { has_country_flag = antarctica_station_bp_visible } antarctic_station_module_slot_13_click_enabled = { check_variable = { selected_antarctica_station > 0 } is_antarctica_station_tier_three = yes hidden_trigger = { original_tag = var:selected_antarctica_station_controller custom_trigger_tooltip = { tooltip = ANTARCTICA_MODULE_REPAIR_BLOCKED_TT NOT = { check_variable = { global.antarctica_station_module_slot_13_blizzard_damaged^selected_antarctica_station > 0 } } } } } antarctic_station_module_slot_14_visible = { has_country_flag = antarctica_station_bp_visible check_variable = { selected_antarctica_station_tier > 0 } } antarctic_station_module_slot_14_click_enabled = { check_variable = { selected_antarctica_station > 0 } check_variable = { selected_antarctica_station_tier > 0 } original_tag = var:selected_antarctica_station_controller } antarctica_station_slot_1_housing_1_visible = { has_country_flag = antarctica_station_bp_visible check_variable = { selected_antarctica_station_module_slot_1 = 1 } } antarctica_station_slot_1_housing_2_visible = { has_country_flag = antarctica_station_bp_visible check_variable = { selected_antarctica_station_module_slot_1 = 2 } } antarctica_station_slot_1_housing_3_visible = { has_country_flag = antarctica_station_bp_visible check_variable = { selected_antarctica_station_module_slot_1 = 3 } } antarctica_station_slot_1_housing_4_visible = { has_country_flag = antarctica_station_bp_visible check_variable = { selected_antarctica_station_module_slot_1 = 4 } } antarctica_station_slot_2_power_1_visible = { has_country_flag = antarctica_station_bp_visible check_variable = { selected_antarctica_station_module_slot_2 = 1 } } antarctica_station_slot_2_power_2_visible = { has_country_flag = antarctica_station_bp_visible check_variable = { selected_antarctica_station_module_slot_2 = 2 } } antarctica_station_slot_2_power_3_visible = { has_country_flag = antarctica_station_bp_visible check_variable = { selected_antarctica_station_module_slot_2 = 3 } } antarctica_station_slot_2_power_4_visible = { has_country_flag = antarctica_station_bp_visible check_variable = { selected_antarctica_station_module_slot_2 = 4 } } antarctica_station_slot_2_power_5_visible = { has_country_flag = antarctica_station_bp_visible check_variable = { selected_antarctica_station_module_slot_2 = 5 } } antarctica_station_slot_2_power_6_visible = { has_country_flag = antarctica_station_bp_visible check_variable = { selected_antarctica_station_module_slot_2 = 6 } } antarctica_station_slot_2_power_7_visible = { has_country_flag = antarctica_station_bp_visible check_variable = { selected_antarctica_station_module_slot_2 = 7 } } antarctica_station_slot_2_power_8_visible = { has_country_flag = antarctica_station_bp_visible check_variable = { selected_antarctica_station_module_slot_2 = 8 } } antarctica_station_slot_2_power_9_visible = { has_country_flag = antarctica_station_bp_visible check_variable = { selected_antarctica_station_module_slot_2 = 9 } } antarctica_station_slot_2_power_10_visible = { has_country_flag = antarctica_station_bp_visible check_variable = { selected_antarctica_station_module_slot_2 = 10 } } antarctica_station_slot_4_fuel_1_visible = { has_country_flag = antarctica_station_bp_visible check_variable = { selected_antarctica_station_module_slot_4 = 1 } } antarctica_station_slot_4_fuel_2_visible = { has_country_flag = antarctica_station_bp_visible check_variable = { selected_antarctica_station_module_slot_4 = 2 } } antarctica_station_slot_4_fuel_3_visible = { has_country_flag = antarctica_station_bp_visible check_variable = { selected_antarctica_station_module_slot_4 = 3 } } antarctica_station_slot_4_fuel_4_visible = { has_country_flag = antarctica_station_bp_visible check_variable = { selected_antarctica_station_module_slot_4 = 4 } } antarctica_station_slot_5_housing_1_visible = { has_country_flag = antarctica_station_bp_visible check_variable = { selected_antarctica_station_module_slot_5 = 1 } } antarctica_station_slot_5_housing_2_visible = { has_country_flag = antarctica_station_bp_visible check_variable = { selected_antarctica_station_module_slot_5 = 2 } } antarctica_station_slot_5_housing_3_visible = { has_country_flag = antarctica_station_bp_visible check_variable = { selected_antarctica_station_module_slot_5 = 3 } } antarctica_station_slot_5_housing_4_visible = { has_country_flag = antarctica_station_bp_visible check_variable = { selected_antarctica_station_module_slot_5 = 4 } } antarctica_station_slot_6_lab_1_visible = { has_country_flag = antarctica_station_bp_visible check_variable = { selected_antarctica_station_module_slot_6 = 1 } } antarctica_station_slot_6_lab_2_visible = { has_country_flag = antarctica_station_bp_visible check_variable = { selected_antarctica_station_module_slot_6 = 2 } } antarctica_station_slot_6_lab_3_visible = { has_country_flag = antarctica_station_bp_visible check_variable = { selected_antarctica_station_module_slot_6 = 3 } } antarctica_station_slot_6_lab_4_visible = { has_country_flag = antarctica_station_bp_visible check_variable = { selected_antarctica_station_module_slot_6 = 4 } } antarctica_station_slot_6_lab_5_visible = { has_country_flag = antarctica_station_bp_visible check_variable = { selected_antarctica_station_module_slot_6 = 5 } } antarctica_station_slot_6_lab_6_visible = { has_country_flag = antarctica_station_bp_visible check_variable = { selected_antarctica_station_module_slot_6 = 6 } } antarctica_station_slot_6_lab_7_visible = { has_country_flag = antarctica_station_bp_visible check_variable = { selected_antarctica_station_module_slot_6 = 7 } } antarctica_station_slot_6_lab_8_visible = { has_country_flag = antarctica_station_bp_visible check_variable = { selected_antarctica_station_module_slot_6 = 8 } } antarctica_station_slot_6_lab_9_visible = { has_country_flag = antarctica_station_bp_visible check_variable = { selected_antarctica_station_module_slot_6 = 9 } } antarctica_station_slot_6_lab_10_visible = { has_country_flag = antarctica_station_bp_visible check_variable = { selected_antarctica_station_module_slot_6 = 10 } } antarctica_station_slot_6_lab_11_visible = { has_country_flag = antarctica_station_bp_visible check_variable = { selected_antarctica_station_module_slot_6 = 11 } } antarctica_station_slot_6_lab_12_visible = { has_country_flag = antarctica_station_bp_visible check_variable = { selected_antarctica_station_module_slot_6 = 12 } } antarctica_station_slot_7_lab_1_visible = { has_country_flag = antarctica_station_bp_visible check_variable = { selected_antarctica_station_module_slot_7 = 1 } } antarctica_station_slot_7_lab_2_visible = { has_country_flag = antarctica_station_bp_visible check_variable = { selected_antarctica_station_module_slot_7 = 2 } } antarctica_station_slot_7_lab_3_visible = { has_country_flag = antarctica_station_bp_visible check_variable = { selected_antarctica_station_module_slot_7 = 3 } } antarctica_station_slot_7_lab_4_visible = { has_country_flag = antarctica_station_bp_visible check_variable = { selected_antarctica_station_module_slot_7 = 4 } } antarctica_station_slot_7_lab_5_visible = { has_country_flag = antarctica_station_bp_visible check_variable = { selected_antarctica_station_module_slot_7 = 5 } } antarctica_station_slot_7_lab_6_visible = { has_country_flag = antarctica_station_bp_visible check_variable = { selected_antarctica_station_module_slot_7 = 6 } } antarctica_station_slot_7_lab_7_visible = { has_country_flag = antarctica_station_bp_visible check_variable = { selected_antarctica_station_module_slot_7 = 7 } } antarctica_station_slot_7_lab_8_visible = { has_country_flag = antarctica_station_bp_visible check_variable = { selected_antarctica_station_module_slot_7 = 8 } } antarctica_station_slot_7_lab_9_visible = { has_country_flag = antarctica_station_bp_visible check_variable = { selected_antarctica_station_module_slot_7 = 9 } } antarctica_station_slot_7_lab_10_visible = { has_country_flag = antarctica_station_bp_visible check_variable = { selected_antarctica_station_module_slot_7 = 10 } } antarctica_station_slot_7_lab_11_visible = { has_country_flag = antarctica_station_bp_visible check_variable = { selected_antarctica_station_module_slot_7 = 11 } } antarctica_station_slot_7_lab_12_visible = { has_country_flag = antarctica_station_bp_visible check_variable = { selected_antarctica_station_module_slot_7 = 12 } } antarctica_station_slot_8_lab_1_visible = { has_country_flag = antarctica_station_bp_visible check_variable = { selected_antarctica_station_module_slot_8 = 1 } } antarctica_station_slot_8_lab_2_visible = { has_country_flag = antarctica_station_bp_visible check_variable = { selected_antarctica_station_module_slot_8 = 2 } } antarctica_station_slot_8_lab_3_visible = { has_country_flag = antarctica_station_bp_visible check_variable = { selected_antarctica_station_module_slot_8 = 3 } } antarctica_station_slot_8_lab_4_visible = { has_country_flag = antarctica_station_bp_visible check_variable = { selected_antarctica_station_module_slot_8 = 4 } } antarctica_station_slot_8_lab_5_visible = { has_country_flag = antarctica_station_bp_visible check_variable = { selected_antarctica_station_module_slot_8 = 5 } } antarctica_station_slot_8_lab_6_visible = { has_country_flag = antarctica_station_bp_visible check_variable = { selected_antarctica_station_module_slot_8 = 6 } } antarctica_station_slot_8_lab_7_visible = { has_country_flag = antarctica_station_bp_visible check_variable = { selected_antarctica_station_module_slot_8 = 7 } } antarctica_station_slot_8_lab_8_visible = { has_country_flag = antarctica_station_bp_visible check_variable = { selected_antarctica_station_module_slot_8 = 8 } } antarctica_station_slot_8_lab_9_visible = { has_country_flag = antarctica_station_bp_visible check_variable = { selected_antarctica_station_module_slot_8 = 9 } } antarctica_station_slot_8_lab_10_visible = { has_country_flag = antarctica_station_bp_visible check_variable = { selected_antarctica_station_module_slot_8 = 10 } } antarctica_station_slot_8_lab_11_visible = { has_country_flag = antarctica_station_bp_visible check_variable = { selected_antarctica_station_module_slot_8 = 11 } } antarctica_station_slot_8_lab_12_visible = { has_country_flag = antarctica_station_bp_visible check_variable = { selected_antarctica_station_module_slot_8 = 12 } } antarctica_station_slot_9_lab_1_visible = { has_country_flag = antarctica_station_bp_visible check_variable = { selected_antarctica_station_module_slot_9 = 1 } } antarctica_station_slot_9_lab_2_visible = { has_country_flag = antarctica_station_bp_visible check_variable = { selected_antarctica_station_module_slot_9 = 2 } } antarctica_station_slot_9_lab_3_visible = { has_country_flag = antarctica_station_bp_visible check_variable = { selected_antarctica_station_module_slot_9 = 3 } } antarctica_station_slot_9_lab_4_visible = { has_country_flag = antarctica_station_bp_visible check_variable = { selected_antarctica_station_module_slot_9 = 4 } } antarctica_station_slot_9_lab_5_visible = { has_country_flag = antarctica_station_bp_visible check_variable = { selected_antarctica_station_module_slot_9 = 5 } } antarctica_station_slot_9_lab_6_visible = { has_country_flag = antarctica_station_bp_visible check_variable = { selected_antarctica_station_module_slot_9 = 6 } } antarctica_station_slot_9_lab_7_visible = { has_country_flag = antarctica_station_bp_visible check_variable = { selected_antarctica_station_module_slot_9 = 7 } } antarctica_station_slot_9_lab_8_visible = { has_country_flag = antarctica_station_bp_visible check_variable = { selected_antarctica_station_module_slot_9 = 8 } } antarctica_station_slot_9_lab_9_visible = { has_country_flag = antarctica_station_bp_visible check_variable = { selected_antarctica_station_module_slot_9 = 9 } } antarctica_station_slot_9_lab_10_visible = { has_country_flag = antarctica_station_bp_visible check_variable = { selected_antarctica_station_module_slot_9 = 10 } } antarctica_station_slot_9_lab_11_visible = { has_country_flag = antarctica_station_bp_visible check_variable = { selected_antarctica_station_module_slot_9 = 11 } } antarctica_station_slot_9_lab_12_visible = { has_country_flag = antarctica_station_bp_visible check_variable = { selected_antarctica_station_module_slot_9 = 12 } } antarctica_station_slot_10_housing_1_visible = { has_country_flag = antarctica_station_bp_visible check_variable = { selected_antarctica_station_module_slot_10 = 1 } } antarctica_station_slot_10_housing_2_visible = { has_country_flag = antarctica_station_bp_visible check_variable = { selected_antarctica_station_module_slot_10 = 2 } } antarctica_station_slot_10_housing_3_visible = { has_country_flag = antarctica_station_bp_visible check_variable = { selected_antarctica_station_module_slot_10 = 3 } } antarctica_station_slot_10_housing_4_visible = { has_country_flag = antarctica_station_bp_visible check_variable = { selected_antarctica_station_module_slot_10 = 4 } } antarctica_station_slot_11_power_1_visible = { has_country_flag = antarctica_station_bp_visible check_variable = { selected_antarctica_station_module_slot_11 = 1 } } antarctica_station_slot_11_power_2_visible = { has_country_flag = antarctica_station_bp_visible check_variable = { selected_antarctica_station_module_slot_11 = 2 } } antarctica_station_slot_11_power_3_visible = { has_country_flag = antarctica_station_bp_visible check_variable = { selected_antarctica_station_module_slot_11 = 3 } } antarctica_station_slot_11_power_4_visible = { has_country_flag = antarctica_station_bp_visible check_variable = { selected_antarctica_station_module_slot_11 = 4 } } antarctica_station_slot_11_power_5_visible = { has_country_flag = antarctica_station_bp_visible check_variable = { selected_antarctica_station_module_slot_11 = 5 } } antarctica_station_slot_11_power_6_visible = { has_country_flag = antarctica_station_bp_visible check_variable = { selected_antarctica_station_module_slot_11 = 6 } } antarctica_station_slot_11_power_7_visible = { has_country_flag = antarctica_station_bp_visible check_variable = { selected_antarctica_station_module_slot_11 = 7 } } antarctica_station_slot_11_power_8_visible = { has_country_flag = antarctica_station_bp_visible check_variable = { selected_antarctica_station_module_slot_11 = 8 } } antarctica_station_slot_11_power_9_visible = { has_country_flag = antarctica_station_bp_visible check_variable = { selected_antarctica_station_module_slot_11 = 9 } } antarctica_station_slot_11_power_10_visible = { has_country_flag = antarctica_station_bp_visible check_variable = { selected_antarctica_station_module_slot_11 = 10 } } antarctica_station_slot_12_life_1_visible = { has_country_flag = antarctica_station_bp_visible check_variable = { selected_antarctica_station_module_slot_12 = 1 } } antarctica_station_slot_12_life_2_visible = { has_country_flag = antarctica_station_bp_visible check_variable = { selected_antarctica_station_module_slot_12 = 2 } } antarctica_station_slot_12_life_3_visible = { has_country_flag = antarctica_station_bp_visible check_variable = { selected_antarctica_station_module_slot_12 = 3 } } antarctica_station_slot_12_life_4_visible = { has_country_flag = antarctica_station_bp_visible check_variable = { selected_antarctica_station_module_slot_12 = 4 } } antarctica_station_slot_13_power_1_visible = { has_country_flag = antarctica_station_bp_visible check_variable = { selected_antarctica_station_module_slot_13 = 1 } } antarctica_station_slot_13_power_2_visible = { has_country_flag = antarctica_station_bp_visible check_variable = { selected_antarctica_station_module_slot_13 = 2 } } antarctica_station_slot_13_power_3_visible = { has_country_flag = antarctica_station_bp_visible check_variable = { selected_antarctica_station_module_slot_13 = 3 } } antarctica_station_slot_13_power_4_visible = { has_country_flag = antarctica_station_bp_visible check_variable = { selected_antarctica_station_module_slot_13 = 4 } } antarctica_station_slot_13_power_5_visible = { has_country_flag = antarctica_station_bp_visible check_variable = { selected_antarctica_station_module_slot_13 = 5 } } antarctica_station_slot_13_power_6_visible = { has_country_flag = antarctica_station_bp_visible check_variable = { selected_antarctica_station_module_slot_13 = 6 } } antarctica_station_slot_13_power_7_visible = { has_country_flag = antarctica_station_bp_visible check_variable = { selected_antarctica_station_module_slot_13 = 7 } } antarctica_station_slot_13_power_8_visible = { has_country_flag = antarctica_station_bp_visible check_variable = { selected_antarctica_station_module_slot_13 = 8 } } antarctica_station_slot_13_power_9_visible = { has_country_flag = antarctica_station_bp_visible check_variable = { selected_antarctica_station_module_slot_13 = 9 } } antarctica_station_slot_13_power_10_visible = { has_country_flag = antarctica_station_bp_visible check_variable = { selected_antarctica_station_module_slot_13 = 10 } } antarctica_station_slot_14_fuel_1_visible = { has_country_flag = antarctica_station_bp_visible check_variable = { selected_antarctica_station_module_slot_14 = 1 } } antarctica_station_slot_14_fuel_2_visible = { has_country_flag = antarctica_station_bp_visible check_variable = { selected_antarctica_station_module_slot_14 = 2 } } antarctica_station_slot_14_fuel_3_visible = { has_country_flag = antarctica_station_bp_visible check_variable = { selected_antarctica_station_module_slot_14 = 3 } } antarctica_station_slot_14_fuel_4_visible = { has_country_flag = antarctica_station_bp_visible check_variable = { selected_antarctica_station_module_slot_14 = 4 } } antarctica_station_repair_status_visible = { check_variable = { selected_antarctica_station > 0 } OR = { check_variable = { selected_antarctica_station_repair_days_remaining > 0 } check_variable = { selected_antarctica_station_module_slot_2_blizzard_damaged > 0 } check_variable = { selected_antarctica_station_module_slot_6_blizzard_damaged > 0 } check_variable = { selected_antarctica_station_module_slot_7_blizzard_damaged > 0 } check_variable = { selected_antarctica_station_module_slot_8_blizzard_damaged > 0 } check_variable = { selected_antarctica_station_module_slot_9_blizzard_damaged > 0 } check_variable = { selected_antarctica_station_module_slot_11_blizzard_damaged > 0 } check_variable = { selected_antarctica_station_module_slot_13_blizzard_damaged > 0 } } } antarctica_station_preview_powerplant_1_visible = { check_variable = { selected_antarctica_station_selected_module_category = 1 } check_variable = { selected_antarctica_station_selected_module = 1 } has_country_flag = antarctica_station_bp_visible } antarctica_station_preview_powerplant_2_visible = { check_variable = { selected_antarctica_station_selected_module_category = 1 } check_variable = { selected_antarctica_station_selected_module = 2 } has_country_flag = antarctica_station_bp_visible } antarctica_station_preview_powerplant_3_visible = { check_variable = { selected_antarctica_station_selected_module_category = 1 } check_variable = { selected_antarctica_station_selected_module = 3 } has_country_flag = antarctica_station_bp_visible } antarctica_station_preview_powerplant_4_visible = { check_variable = { selected_antarctica_station_selected_module_category = 1 } check_variable = { selected_antarctica_station_selected_module = 4 } has_country_flag = antarctica_station_bp_visible } antarctica_station_preview_powerplant_5_visible = { check_variable = { selected_antarctica_station_selected_module_category = 1 } check_variable = { selected_antarctica_station_selected_module = 5 } has_country_flag = antarctica_station_bp_visible } antarctica_station_preview_powerplant_6_visible = { check_variable = { selected_antarctica_station_selected_module_category = 1 } check_variable = { selected_antarctica_station_selected_module = 6 } has_country_flag = antarctica_station_bp_visible } antarctica_station_preview_powerplant_7_visible = { check_variable = { selected_antarctica_station_selected_module_category = 1 } check_variable = { selected_antarctica_station_selected_module = 7 } has_country_flag = antarctica_station_bp_visible } antarctica_station_preview_powerplant_8_visible = { check_variable = { selected_antarctica_station_selected_module_category = 1 } check_variable = { selected_antarctica_station_selected_module = 8 } has_country_flag = antarctica_station_bp_visible } antarctica_station_preview_powerplant_9_visible = { check_variable = { selected_antarctica_station_selected_module_category = 1 } check_variable = { selected_antarctica_station_selected_module = 9 } has_country_flag = antarctica_station_bp_visible } antarctica_station_preview_powerplant_10_visible = { check_variable = { selected_antarctica_station_selected_module_category = 1 } check_variable = { selected_antarctica_station_selected_module = 10 } has_country_flag = antarctica_station_bp_visible } antarctica_station_preview_life_1_visible = { check_variable = { selected_antarctica_station_selected_module_category = 2 } check_variable = { selected_antarctica_station_selected_module = 1 } has_country_flag = antarctica_station_bp_visible } antarctica_station_preview_life_2_visible = { check_variable = { selected_antarctica_station_selected_module_category = 2 } check_variable = { selected_antarctica_station_selected_module = 2 } has_country_flag = antarctica_station_bp_visible } antarctica_station_preview_life_3_visible = { check_variable = { selected_antarctica_station_selected_module_category = 2 } check_variable = { selected_antarctica_station_selected_module = 3 } has_country_flag = antarctica_station_bp_visible } antarctica_station_preview_life_4_visible = { check_variable = { selected_antarctica_station_selected_module_category = 2 } check_variable = { selected_antarctica_station_selected_module = 4 } has_country_flag = antarctica_station_bp_visible } antarctica_station_preview_fuel_1_visible = { check_variable = { selected_antarctica_station_selected_module_category = 3 } check_variable = { selected_antarctica_station_selected_module = 1 } has_country_flag = antarctica_station_bp_visible } antarctica_station_preview_fuel_2_visible = { check_variable = { selected_antarctica_station_selected_module_category = 3 } check_variable = { selected_antarctica_station_selected_module = 2 } has_country_flag = antarctica_station_bp_visible } antarctica_station_preview_fuel_3_visible = { check_variable = { selected_antarctica_station_selected_module_category = 3 } check_variable = { selected_antarctica_station_selected_module = 3 } has_country_flag = antarctica_station_bp_visible } antarctica_station_preview_fuel_4_visible = { check_variable = { selected_antarctica_station_selected_module_category = 3 } check_variable = { selected_antarctica_station_selected_module = 4 } has_country_flag = antarctica_station_bp_visible } antarctica_station_preview_housing_1_visible = { check_variable = { selected_antarctica_station_selected_module_category = 4 } check_variable = { selected_antarctica_station_selected_module = 1 } has_country_flag = antarctica_station_bp_visible } antarctica_station_preview_housing_2_visible = { check_variable = { selected_antarctica_station_selected_module_category = 4 } check_variable = { selected_antarctica_station_selected_module = 2 } has_country_flag = antarctica_station_bp_visible } antarctica_station_preview_housing_3_visible = { check_variable = { selected_antarctica_station_selected_module_category = 4 } check_variable = { selected_antarctica_station_selected_module = 3 } has_country_flag = antarctica_station_bp_visible } antarctica_station_preview_housing_4_visible = { check_variable = { selected_antarctica_station_selected_module_category = 4 } check_variable = { selected_antarctica_station_selected_module = 4 } has_country_flag = antarctica_station_bp_visible } antarctica_station_preview_lab_1_visible = { check_variable = { selected_antarctica_station_selected_module_category = 5 } check_variable = { selected_antarctica_station_selected_module = 1 } has_country_flag = antarctica_station_bp_visible } antarctica_station_preview_lab_2_visible = { check_variable = { selected_antarctica_station_selected_module_category = 5 } check_variable = { selected_antarctica_station_selected_module = 2 } has_country_flag = antarctica_station_bp_visible } antarctica_station_preview_lab_3_visible = { check_variable = { selected_antarctica_station_selected_module_category = 5 } check_variable = { selected_antarctica_station_selected_module = 3 } has_country_flag = antarctica_station_bp_visible } antarctica_station_preview_lab_4_visible = { check_variable = { selected_antarctica_station_selected_module_category = 5 } check_variable = { selected_antarctica_station_selected_module = 4 } has_country_flag = antarctica_station_bp_visible } antarctica_station_preview_lab_5_visible = { check_variable = { selected_antarctica_station_selected_module_category = 5 } check_variable = { selected_antarctica_station_selected_module = 5 } has_country_flag = antarctica_station_bp_visible } antarctica_station_preview_lab_6_visible = { check_variable = { selected_antarctica_station_selected_module_category = 5 } check_variable = { selected_antarctica_station_selected_module = 6 } has_country_flag = antarctica_station_bp_visible } antarctica_station_preview_lab_7_visible = { check_variable = { selected_antarctica_station_selected_module_category = 5 } check_variable = { selected_antarctica_station_selected_module = 7 } has_country_flag = antarctica_station_bp_visible } antarctica_station_preview_lab_8_visible = { check_variable = { selected_antarctica_station_selected_module_category = 5 } check_variable = { selected_antarctica_station_selected_module = 8 } has_country_flag = antarctica_station_bp_visible } antarctica_station_preview_lab_9_visible = { check_variable = { selected_antarctica_station_selected_module_category = 5 } check_variable = { selected_antarctica_station_selected_module = 9 } has_country_flag = antarctica_station_bp_visible } antarctica_station_preview_lab_10_visible = { check_variable = { selected_antarctica_station_selected_module_category = 5 } check_variable = { selected_antarctica_station_selected_module = 10 } has_country_flag = antarctica_station_bp_visible } antarctica_station_preview_lab_11_visible = { check_variable = { selected_antarctica_station_selected_module_category = 5 } check_variable = { selected_antarctica_station_selected_module = 11 } has_country_flag = antarctica_station_bp_visible } antarctica_station_preview_lab_12_visible = { check_variable = { selected_antarctica_station_selected_module_category = 5 } check_variable = { selected_antarctica_station_selected_module = 12 } has_country_flag = antarctica_station_bp_visible } antarctica_station_marker_0_visible = { set_temp_variable = { temp_antarctica_station_id = 0 } check_antarctica_marker_triggers = yes } antarctica_station_marker_1_visible = { set_temp_variable = { temp_antarctica_station_id = 1 } check_antarctica_marker_triggers = yes } antarctica_station_marker_2_visible = { set_temp_variable = { temp_antarctica_station_id = 2 } check_antarctica_marker_triggers = yes } antarctica_station_marker_3_visible = { set_temp_variable = { temp_antarctica_station_id = 3 } check_antarctica_marker_triggers = yes } antarctica_station_marker_4_visible = { set_temp_variable = { temp_antarctica_station_id = 4 } check_antarctica_marker_triggers = yes } antarctica_station_marker_5_visible = { set_temp_variable = { temp_antarctica_station_id = 5 } check_antarctica_marker_triggers = yes } antarctica_station_marker_6_visible = { set_temp_variable = { temp_antarctica_station_id = 6 } check_antarctica_marker_triggers = yes } antarctica_station_marker_7_visible = { set_temp_variable = { temp_antarctica_station_id = 7 } check_antarctica_marker_triggers = yes } antarctica_station_marker_8_visible = { set_temp_variable = { temp_antarctica_station_id = 8 } check_antarctica_marker_triggers = yes } antarctica_station_marker_9_visible = { set_temp_variable = { temp_antarctica_station_id = 9 } check_antarctica_marker_triggers = yes } antarctica_station_marker_10_visible = { set_temp_variable = { temp_antarctica_station_id = 10 } check_antarctica_marker_triggers = yes } antarctica_station_marker_11_visible = { set_temp_variable = { temp_antarctica_station_id = 11 } check_antarctica_marker_triggers = yes } antarctica_station_marker_12_visible = { set_temp_variable = { temp_antarctica_station_id = 12 } check_antarctica_marker_triggers = yes } antarctica_station_marker_13_visible = { set_temp_variable = { temp_antarctica_station_id = 13 } check_antarctica_marker_triggers = yes } antarctica_station_marker_14_visible = { set_temp_variable = { temp_antarctica_station_id = 14 } check_antarctica_marker_triggers = yes } antarctica_station_marker_15_visible = { set_temp_variable = { temp_antarctica_station_id = 15 } check_antarctica_marker_triggers = yes } antarctica_station_marker_16_visible = { set_temp_variable = { temp_antarctica_station_id = 16 } check_antarctica_marker_triggers = yes } antarctica_station_marker_17_visible = { set_temp_variable = { temp_antarctica_station_id = 17 } check_antarctica_marker_triggers = yes } antarctica_station_marker_18_visible = { set_temp_variable = { temp_antarctica_station_id = 18 } check_antarctica_marker_triggers = yes } antarctica_station_marker_19_visible = { set_temp_variable = { temp_antarctica_station_id = 19 } check_antarctica_marker_triggers = yes } antarctica_station_marker_20_visible = { set_temp_variable = { temp_antarctica_station_id = 20 } check_antarctica_marker_triggers = yes } antarctica_station_marker_21_visible = { set_temp_variable = { temp_antarctica_station_id = 21 } check_antarctica_marker_triggers = yes } antarctica_station_marker_22_visible = { set_temp_variable = { temp_antarctica_station_id = 22 } check_antarctica_marker_triggers = yes } antarctica_station_marker_23_visible = { set_temp_variable = { temp_antarctica_station_id = 23 } check_antarctica_marker_triggers = yes } antarctica_station_marker_24_visible = { set_temp_variable = { temp_antarctica_station_id = 24 } check_antarctica_marker_triggers = yes } antarctica_station_marker_25_visible = { set_temp_variable = { temp_antarctica_station_id = 25 } check_antarctica_marker_triggers = yes } antarctica_station_marker_26_visible = { set_temp_variable = { temp_antarctica_station_id = 26 } check_antarctica_marker_triggers = yes } antarctica_station_marker_27_visible = { set_temp_variable = { temp_antarctica_station_id = 27 } check_antarctica_marker_triggers = yes } antarctica_station_marker_28_visible = { set_temp_variable = { temp_antarctica_station_id = 28 } check_antarctica_marker_triggers = yes } antarctica_station_marker_29_visible = { set_temp_variable = { temp_antarctica_station_id = 29 } check_antarctica_marker_triggers = yes } antarctica_station_marker_30_visible = { set_temp_variable = { temp_antarctica_station_id = 30 } check_antarctica_marker_triggers = yes } antarctica_station_marker_31_visible = { set_temp_variable = { temp_antarctica_station_id = 31 } check_antarctica_marker_triggers = yes } antarctica_station_marker_32_visible = { set_temp_variable = { temp_antarctica_station_id = 32 } check_antarctica_marker_triggers = yes } antarctica_station_marker_33_visible = { set_temp_variable = { temp_antarctica_station_id = 33 } check_antarctica_marker_triggers = yes } antarctica_station_marker_34_visible = { set_temp_variable = { temp_antarctica_station_id = 34 } check_antarctica_marker_triggers = yes } antarctica_station_marker_35_visible = { set_temp_variable = { temp_antarctica_station_id = 35 } check_antarctica_marker_triggers = yes } antarctica_station_marker_36_visible = { set_temp_variable = { temp_antarctica_station_id = 36 } check_antarctica_marker_triggers = yes } antarctica_station_marker_37_visible = { set_temp_variable = { temp_antarctica_station_id = 37 } check_antarctica_marker_triggers = yes } antarctica_station_marker_38_visible = { set_temp_variable = { temp_antarctica_station_id = 38 } check_antarctica_marker_triggers = yes } antarctica_station_marker_39_visible = { set_temp_variable = { temp_antarctica_station_id = 39 } check_antarctica_marker_triggers = yes } antarctica_station_marker_40_visible = { set_temp_variable = { temp_antarctica_station_id = 40 } check_antarctica_marker_triggers = yes } antarctica_station_marker_41_visible = { set_temp_variable = { temp_antarctica_station_id = 41 } check_antarctica_marker_triggers = yes } antarctica_station_marker_42_visible = { set_temp_variable = { temp_antarctica_station_id = 42 } check_antarctica_marker_triggers = yes } antarctica_station_marker_43_visible = { set_temp_variable = { temp_antarctica_station_id = 43 } check_antarctica_marker_triggers = yes } antarctica_station_marker_44_visible = { set_temp_variable = { temp_antarctica_station_id = 44 } check_antarctica_marker_triggers = yes } antarctica_station_marker_45_visible = { set_temp_variable = { temp_antarctica_station_id = 45 } check_antarctica_marker_triggers = yes } antarctica_station_marker_46_visible = { set_temp_variable = { temp_antarctica_station_id = 46 } check_antarctica_marker_triggers = yes } antarctica_station_marker_47_visible = { set_temp_variable = { temp_antarctica_station_id = 47 } check_antarctica_marker_triggers = yes } antarctica_station_marker_48_visible = { set_temp_variable = { temp_antarctica_station_id = 48 } check_antarctica_marker_triggers = yes } antarctica_station_marker_49_visible = { set_temp_variable = { temp_antarctica_station_id = 49 } check_antarctica_marker_triggers = yes } antarctica_station_marker_50_visible = { set_temp_variable = { temp_antarctica_station_id = 50 } check_antarctica_marker_triggers = yes } antarctica_station_marker_51_visible = { set_temp_variable = { temp_antarctica_station_id = 51 } check_antarctica_marker_triggers = yes } antarctica_station_marker_52_visible = { set_temp_variable = { temp_antarctica_station_id = 52 } check_antarctica_marker_triggers = yes } antarctica_station_marker_53_visible = { set_temp_variable = { temp_antarctica_station_id = 53 } check_antarctica_marker_triggers = yes } antarctica_station_marker_54_visible = { set_temp_variable = { temp_antarctica_station_id = 54 } check_antarctica_marker_triggers = yes } antarctica_station_marker_55_visible = { set_temp_variable = { temp_antarctica_station_id = 55 } check_antarctica_marker_triggers = yes } antarctica_station_marker_56_visible = { set_temp_variable = { temp_antarctica_station_id = 56 } check_antarctica_marker_triggers = yes } antarctica_station_marker_57_visible = { set_temp_variable = { temp_antarctica_station_id = 57 } check_antarctica_marker_triggers = yes } antarctica_station_marker_58_visible = { set_temp_variable = { temp_antarctica_station_id = 58 } check_antarctica_marker_triggers = yes } antarctica_station_marker_59_visible = { set_temp_variable = { temp_antarctica_station_id = 59 } check_antarctica_marker_triggers = yes } antarctica_station_marker_60_visible = { set_temp_variable = { temp_antarctica_station_id = 60 } check_antarctica_marker_triggers = yes } antarctica_station_marker_61_visible = { set_temp_variable = { temp_antarctica_station_id = 61 } check_antarctica_marker_triggers = yes } antarctica_station_marker_62_visible = { set_temp_variable = { temp_antarctica_station_id = 62 } check_antarctica_marker_triggers = yes } antarctica_station_marker_63_visible = { set_temp_variable = { temp_antarctica_station_id = 63 } check_antarctica_marker_triggers = yes } antarctica_station_marker_64_visible = { set_temp_variable = { temp_antarctica_station_id = 64 } check_antarctica_marker_triggers = yes } antarctica_station_marker_65_visible = { set_temp_variable = { temp_antarctica_station_id = 65 } check_antarctica_marker_triggers = yes } antarctica_station_marker_66_visible = { set_temp_variable = { temp_antarctica_station_id = 66 } check_antarctica_marker_triggers = yes } antarctica_station_marker_67_visible = { set_temp_variable = { temp_antarctica_station_id = 67 } check_antarctica_marker_triggers = yes } antarctica_station_marker_68_visible = { set_temp_variable = { temp_antarctica_station_id = 68 } check_antarctica_marker_triggers = yes } antarctica_station_marker_69_visible = { set_temp_variable = { temp_antarctica_station_id = 69 } check_antarctica_marker_triggers = yes } } effects = { antarctica_map_close_button_click = { clr_country_flag = antarctica_map_opened log = "[GetDateText]: [Root.GetName]: Closed Antarctica Map GUI." } antarctica_filter_america_click = { if = { limit = { check_variable = { station_filter_america < 2 } } set_variable = { station_filter_america = 2 } set_country_flag = antarctica_filters_active } else = { set_variable = { station_filter_america = 1 } check_antarctica_filters = yes } antarctica_refresh_window_and_variables = yes } antarctica_filter_asia_click = { if = { limit = { check_variable = { station_filter_asia < 2 } } set_variable = { station_filter_asia = 2 } set_country_flag = antarctica_filters_active } else = { set_variable = { station_filter_asia = 1 } check_antarctica_filters = yes } antarctica_refresh_window_and_variables = yes } antarctica_filter_europe_click = { if = { limit = { check_variable = { station_filter_europe < 2 } } set_variable = { station_filter_europe = 2 } set_country_flag = antarctica_filters_active } else = { set_variable = { station_filter_europe = 1 } check_antarctica_filters = yes } antarctica_refresh_window_and_variables = yes } antarctica_filter_africa_click = { if = { limit = { check_variable = { station_filter_africa < 2 } } set_variable = { station_filter_africa = 2 } set_country_flag = antarctica_filters_active } else = { set_variable = { station_filter_africa = 1 } check_antarctica_filters = yes } antarctica_refresh_window_and_variables = yes } antarctica_station_show_blueprint_button_click = { if = { limit = { has_country_flag = antarctica_station_bp_visible } clr_country_flag = antarctica_station_bp_visible check_antarctica_filters = yes } else_if = { limit = { check_variable = { selected_antarctica_station > 0 } original_tag = var:selected_antarctica_station_controller } set_country_flag = antarctica_station_bp_visible set_country_flag = antarctica_filters_active } antarctica_refresh_window_and_variables = yes } antarctica_station_find_or_create_button_click = { antarctica_select_or_create_player_station = yes if = { limit = { check_variable = { selected_antarctica_station > 0 } original_tag = var:selected_antarctica_station_controller } set_country_flag = antarctica_station_bp_visible set_country_flag = antarctica_filters_active } antarctica_refresh_window_and_variables = yes } antarctica_station_send_supplies_button_click = { if = { limit = { check_variable = { selected_antarctica_station > 0 } } antarctica_send_supplies_to_selected_station = yes } antarctica_refresh_window_and_variables = yes } antarctica_station_send_observers_button_click = { if = { limit = { check_variable = { selected_antarctica_station > 0 } has_country_flag = is_antarctica_atcp_consultative_member NOT = { has_country_flag = antarctica_observer_mission_in_progress } NOT = { check_variable = { global.antarctica_station_observers_incoming^selected_antarctica_station > 0 } } } set_variable = { antarctica_observer_target_station = selected_antarctica_station } set_variable = { antarctica_observer_target_country = selected_antarctica_station_controller } set_country_flag = antarctica_observer_mission_in_progress set_variable = { global.antarctica_station_observers_incoming^selected_antarctica_station = 1 } # Notify the target station owner immediately, then resolve inspection in 7 days. var:selected_antarctica_station_controller = { country_event = MD_antarctica.1 } country_event = { id = MD_antarctica.2 days = 7 } } antarctica_refresh_window_and_variables = yes } antarctica_station_toggle_illegal_activities_button_click = { if = { limit = { check_variable = { selected_antarctica_station > 0 } original_tag = var:selected_antarctica_station_controller } if = { limit = { check_variable = { selected_antarctica_station_illegal_activities > 0 } } set_variable = { global.antarctica_station_illegal_activities_enabled^selected_antarctica_station = 0 } } else = { set_variable = { global.antarctica_station_illegal_activities_enabled^selected_antarctica_station = 1 } } } antarctica_refresh_window_and_variables = yes } antarctica_station_dismantle_button_click = { antarctica_start_station_dismantle = yes antarctica_refresh_window_and_variables = yes } antarctic_station_module_slot_1_click = { if = { limit = { check_variable = { selected_antarctica_station > 0 } } set_variable = { selected_antarctica_station_selected_slot = 1 } set_variable = { selected_antarctica_station_selected_non_lab_category = 4 } antarctica_set_selected_station_preview_defaults = yes } antarctica_refresh_window_and_variables = yes } antarctic_station_module_slot_2_click = { if = { limit = { check_variable = { selected_antarctica_station > 0 } } set_variable = { selected_antarctica_station_selected_slot = 2 } set_variable = { selected_antarctica_station_selected_non_lab_category = 1 } antarctica_set_selected_station_preview_defaults = yes } antarctica_refresh_window_and_variables = yes } antarctic_station_module_slot_4_click = { if = { limit = { check_variable = { selected_antarctica_station > 0 } } set_variable = { selected_antarctica_station_selected_slot = 4 } set_variable = { selected_antarctica_station_selected_non_lab_category = 3 } antarctica_set_selected_station_preview_defaults = yes } antarctica_refresh_window_and_variables = yes } antarctic_station_module_slot_5_click = { if = { limit = { check_variable = { selected_antarctica_station > 0 } } set_variable = { selected_antarctica_station_selected_slot = 5 } set_variable = { selected_antarctica_station_selected_non_lab_category = 4 } antarctica_set_selected_station_preview_defaults = yes } antarctica_refresh_window_and_variables = yes } antarctic_station_module_slot_6_click = { if = { limit = { check_variable = { selected_antarctica_station > 0 } } set_variable = { selected_antarctica_station_selected_slot = 6 } set_variable = { selected_antarctica_station_selected_module_category = 5 } antarctica_set_selected_station_preview_defaults = yes } antarctica_refresh_window_and_variables = yes } antarctic_station_module_slot_7_click = { if = { limit = { check_variable = { selected_antarctica_station > 0 } } set_variable = { selected_antarctica_station_selected_slot = 7 } set_variable = { selected_antarctica_station_selected_module_category = 5 } antarctica_set_selected_station_preview_defaults = yes } antarctica_refresh_window_and_variables = yes } antarctic_station_module_slot_8_click = { if = { limit = { check_variable = { selected_antarctica_station > 0 } } set_variable = { selected_antarctica_station_selected_slot = 8 } set_variable = { selected_antarctica_station_selected_module_category = 5 } antarctica_set_selected_station_preview_defaults = yes } antarctica_refresh_window_and_variables = yes } antarctic_station_module_slot_9_click = { if = { limit = { check_variable = { selected_antarctica_station > 0 } } set_variable = { selected_antarctica_station_selected_slot = 9 } set_variable = { selected_antarctica_station_selected_module_category = 5 } antarctica_set_selected_station_preview_defaults = yes } antarctica_refresh_window_and_variables = yes } antarctic_station_module_slot_10_click = { if = { limit = { check_variable = { selected_antarctica_station > 0 } } set_variable = { selected_antarctica_station_selected_slot = 10 } set_variable = { selected_antarctica_station_selected_non_lab_category = 4 } antarctica_set_selected_station_preview_defaults = yes } antarctica_refresh_window_and_variables = yes } antarctic_station_module_slot_11_click = { if = { limit = { check_variable = { selected_antarctica_station > 0 } } set_variable = { selected_antarctica_station_selected_slot = 11 } set_variable = { selected_antarctica_station_selected_non_lab_category = 1 } antarctica_set_selected_station_preview_defaults = yes } antarctica_refresh_window_and_variables = yes } antarctic_station_module_slot_12_click = { if = { limit = { check_variable = { selected_antarctica_station > 0 } } set_variable = { selected_antarctica_station_selected_slot = 12 } set_variable = { selected_antarctica_station_selected_non_lab_category = 2 } antarctica_set_selected_station_preview_defaults = yes } antarctica_refresh_window_and_variables = yes } antarctic_station_module_slot_13_click = { if = { limit = { check_variable = { selected_antarctica_station > 0 } } set_variable = { selected_antarctica_station_selected_slot = 13 } set_variable = { selected_antarctica_station_selected_non_lab_category = 1 } antarctica_set_selected_station_preview_defaults = yes } antarctica_refresh_window_and_variables = yes } antarctic_station_module_slot_14_click = { if = { limit = { check_variable = { selected_antarctica_station > 0 } } set_variable = { selected_antarctica_station_selected_slot = 14 } set_variable = { selected_antarctica_station_selected_non_lab_category = 3 } antarctica_set_selected_station_preview_defaults = yes } antarctica_refresh_window_and_variables = yes } antarctica_station_swap_laboratory_button_click = { if = { limit = { check_variable = { selected_antarctica_station > 0 } } set_temp_variable = { station_id = selected_antarctica_station } antarctica_cycle_station_laboratory_module = yes } antarctica_refresh_window_and_variables = yes } antarctica_station_swap_module_button_click = { if = { limit = { check_variable = { selected_antarctica_station > 0 } } antarctica_cycle_selected_preview_module = yes } antarctica_refresh_window_and_variables = yes } antarctica_station_swap_module_back_button_click = { if = { limit = { check_variable = { selected_antarctica_station > 0 } } antarctica_cycle_selected_preview_module_back = yes } antarctica_refresh_window_and_variables = yes } antarctica_station_install_module_button_click = { if = { limit = { check_variable = { selected_antarctica_station > 0 } check_variable = { selected_antarctica_station_install_in_progress < 1 } antarctica_station_selected_slot_module_different = yes antarctica_station_install_module_unlocked = yes } if = { limit = { antarctica_station_install_module_winter_penalty = yes } # Winter branch: seasonal multiplier is applied by installation calculation. antarctica_queue_selected_station_module_install = yes } else = { antarctica_queue_selected_station_module_install = yes } } antarctica_refresh_window_and_variables = yes } antarctica_station_marker_0_click = { set_variable = { selected_antarctica_station = global.antarctica_station_ids^0 } antarctica_refresh_window_and_variables = yes log = "[GetDateText]: [Root.GetName]: Selected Antarctica station slot 0. ID: [?selected_antarctica_station]." } antarctica_station_marker_1_click = { set_variable = { selected_antarctica_station = global.antarctica_station_ids^1 } antarctica_refresh_window_and_variables = yes log = "[GetDateText]: [Root.GetName]: Selected Antarctica station slot 1. ID: [?selected_antarctica_station]." } antarctica_station_marker_2_click = { set_variable = { selected_antarctica_station = global.antarctica_station_ids^2 } antarctica_refresh_window_and_variables = yes log = "[GetDateText]: [Root.GetName]: Selected Antarctica station slot 2. ID: [?selected_antarctica_station]." } antarctica_station_marker_3_click = { set_variable = { selected_antarctica_station = global.antarctica_station_ids^3 } antarctica_refresh_window_and_variables = yes log = "[GetDateText]: [Root.GetName]: Selected Antarctica station slot 3. ID: [?selected_antarctica_station]." } antarctica_station_marker_4_click = { set_variable = { selected_antarctica_station = global.antarctica_station_ids^4 } antarctica_refresh_window_and_variables = yes log = "[GetDateText]: [Root.GetName]: Selected Antarctica station slot 4. ID: [?selected_antarctica_station]." } antarctica_station_marker_5_click = { set_variable = { selected_antarctica_station = global.antarctica_station_ids^5 } antarctica_refresh_window_and_variables = yes log = "[GetDateText]: [Root.GetName]: Selected Antarctica station slot 5. ID: [?selected_antarctica_station]." } antarctica_station_marker_6_click = { set_variable = { selected_antarctica_station = global.antarctica_station_ids^6 } antarctica_refresh_window_and_variables = yes log = "[GetDateText]: [Root.GetName]: Selected Antarctica station slot 6. ID: [?selected_antarctica_station]." } antarctica_station_marker_7_click = { set_variable = { selected_antarctica_station = global.antarctica_station_ids^7 } antarctica_refresh_window_and_variables = yes log = "[GetDateText]: [Root.GetName]: Selected Antarctica station slot 7. ID: [?selected_antarctica_station]." } antarctica_station_marker_8_click = { set_variable = { selected_antarctica_station = global.antarctica_station_ids^8 } antarctica_refresh_window_and_variables = yes log = "[GetDateText]: [Root.GetName]: Selected Antarctica station slot 8. ID: [?selected_antarctica_station]." } antarctica_station_marker_9_click = { set_variable = { selected_antarctica_station = global.antarctica_station_ids^9 } antarctica_refresh_window_and_variables = yes log = "[GetDateText]: [Root.GetName]: Selected Antarctica station slot 9. ID: [?selected_antarctica_station]." } antarctica_station_marker_10_click = { set_variable = { selected_antarctica_station = global.antarctica_station_ids^10 } antarctica_refresh_window_and_variables = yes log = "[GetDateText]: [Root.GetName]: Selected Antarctica station slot 10. ID: [?selected_antarctica_station]." } antarctica_station_marker_11_click = { set_variable = { selected_antarctica_station = global.antarctica_station_ids^11 } antarctica_refresh_window_and_variables = yes log = "[GetDateText]: [Root.GetName]: Selected Antarctica station slot 11. ID: [?selected_antarctica_station]." } antarctica_station_marker_12_click = { set_variable = { selected_antarctica_station = global.antarctica_station_ids^12 } antarctica_refresh_window_and_variables = yes log = "[GetDateText]: [Root.GetName]: Selected Antarctica station slot 12. ID: [?selected_antarctica_station]." } antarctica_station_marker_13_click = { set_variable = { selected_antarctica_station = global.antarctica_station_ids^13 } antarctica_refresh_window_and_variables = yes log = "[GetDateText]: [Root.GetName]: Selected Antarctica station slot 13. ID: [?selected_antarctica_station]." } antarctica_station_marker_14_click = { set_variable = { selected_antarctica_station = global.antarctica_station_ids^14 } antarctica_refresh_window_and_variables = yes log = "[GetDateText]: [Root.GetName]: Selected Antarctica station slot 14. ID: [?selected_antarctica_station]." } antarctica_station_marker_15_click = { set_variable = { selected_antarctica_station = global.antarctica_station_ids^15 } antarctica_refresh_window_and_variables = yes log = "[GetDateText]: [Root.GetName]: Selected Antarctica station slot 15. ID: [?selected_antarctica_station]." } antarctica_station_marker_16_click = { set_variable = { selected_antarctica_station = global.antarctica_station_ids^16 } antarctica_refresh_window_and_variables = yes log = "[GetDateText]: [Root.GetName]: Selected Antarctica station slot 16. ID: [?selected_antarctica_station]." } antarctica_station_marker_17_click = { set_variable = { selected_antarctica_station = global.antarctica_station_ids^17 } antarctica_refresh_window_and_variables = yes log = "[GetDateText]: [Root.GetName]: Selected Antarctica station slot 17. ID: [?selected_antarctica_station]." } antarctica_station_marker_18_click = { set_variable = { selected_antarctica_station = global.antarctica_station_ids^18 } antarctica_refresh_window_and_variables = yes log = "[GetDateText]: [Root.GetName]: Selected Antarctica station slot 18. ID: [?selected_antarctica_station]." } antarctica_station_marker_19_click = { set_variable = { selected_antarctica_station = global.antarctica_station_ids^19 } antarctica_refresh_window_and_variables = yes log = "[GetDateText]: [Root.GetName]: Selected Antarctica station slot 19. ID: [?selected_antarctica_station]." } antarctica_station_marker_20_click = { set_variable = { selected_antarctica_station = global.antarctica_station_ids^20 } antarctica_refresh_window_and_variables = yes log = "[GetDateText]: [Root.GetName]: Selected Antarctica station slot 20. ID: [?selected_antarctica_station]." } antarctica_station_marker_21_click = { set_variable = { selected_antarctica_station = global.antarctica_station_ids^21 } antarctica_refresh_window_and_variables = yes log = "[GetDateText]: [Root.GetName]: Selected Antarctica station slot 21. ID: [?selected_antarctica_station]." } antarctica_station_marker_22_click = { set_variable = { selected_antarctica_station = global.antarctica_station_ids^22 } antarctica_refresh_window_and_variables = yes log = "[GetDateText]: [Root.GetName]: Selected Antarctica station slot 22. ID: [?selected_antarctica_station]." } antarctica_station_marker_23_click = { set_variable = { selected_antarctica_station = global.antarctica_station_ids^23 } antarctica_refresh_window_and_variables = yes log = "[GetDateText]: [Root.GetName]: Selected Antarctica station slot 23. ID: [?selected_antarctica_station]." } antarctica_station_marker_24_click = { set_variable = { selected_antarctica_station = global.antarctica_station_ids^24 } antarctica_refresh_window_and_variables = yes log = "[GetDateText]: [Root.GetName]: Selected Antarctica station slot 24. ID: [?selected_antarctica_station]." } antarctica_station_marker_25_click = { set_variable = { selected_antarctica_station = global.antarctica_station_ids^25 } antarctica_refresh_window_and_variables = yes log = "[GetDateText]: [Root.GetName]: Selected Antarctica station slot 25. ID: [?selected_antarctica_station]." } antarctica_station_marker_26_click = { set_variable = { selected_antarctica_station = global.antarctica_station_ids^26 } antarctica_refresh_window_and_variables = yes log = "[GetDateText]: [Root.GetName]: Selected Antarctica station slot 26. ID: [?selected_antarctica_station]." } antarctica_station_marker_27_click = { set_variable = { selected_antarctica_station = global.antarctica_station_ids^27 } antarctica_refresh_window_and_variables = yes log = "[GetDateText]: [Root.GetName]: Selected Antarctica station slot 27. ID: [?selected_antarctica_station]." } antarctica_station_marker_28_click = { set_variable = { selected_antarctica_station = global.antarctica_station_ids^28 } antarctica_refresh_window_and_variables = yes log = "[GetDateText]: [Root.GetName]: Selected Antarctica station slot 28. ID: [?selected_antarctica_station]." } antarctica_station_marker_29_click = { set_variable = { selected_antarctica_station = global.antarctica_station_ids^29 } antarctica_refresh_window_and_variables = yes log = "[GetDateText]: [Root.GetName]: Selected Antarctica station slot 29. ID: [?selected_antarctica_station]." } antarctica_station_marker_30_click = { set_variable = { selected_antarctica_station = global.antarctica_station_ids^30 } antarctica_refresh_window_and_variables = yes log = "[GetDateText]: [Root.GetName]: Selected Antarctica station slot 30. ID: [?selected_antarctica_station]." } antarctica_station_marker_31_click = { set_variable = { selected_antarctica_station = global.antarctica_station_ids^31 } antarctica_refresh_window_and_variables = yes log = "[GetDateText]: [Root.GetName]: Selected Antarctica station slot 31. ID: [?selected_antarctica_station]." } antarctica_station_marker_32_click = { set_variable = { selected_antarctica_station = global.antarctica_station_ids^32 } antarctica_refresh_window_and_variables = yes log = "[GetDateText]: [Root.GetName]: Selected Antarctica station slot 32. ID: [?selected_antarctica_station]." } antarctica_station_marker_33_click = { set_variable = { selected_antarctica_station = global.antarctica_station_ids^33 } antarctica_refresh_window_and_variables = yes log = "[GetDateText]: [Root.GetName]: Selected Antarctica station slot 33. ID: [?selected_antarctica_station]." } antarctica_station_marker_34_click = { set_variable = { selected_antarctica_station = global.antarctica_station_ids^34 } antarctica_refresh_window_and_variables = yes log = "[GetDateText]: [Root.GetName]: Selected Antarctica station slot 34. ID: [?selected_antarctica_station]." } antarctica_station_marker_35_click = { set_variable = { selected_antarctica_station = global.antarctica_station_ids^35 } antarctica_refresh_window_and_variables = yes log = "[GetDateText]: [Root.GetName]: Selected Antarctica station slot 35. ID: [?selected_antarctica_station]." } antarctica_station_marker_36_click = { set_variable = { selected_antarctica_station = global.antarctica_station_ids^36 } antarctica_refresh_window_and_variables = yes log = "[GetDateText]: [Root.GetName]: Selected Antarctica station slot 36. ID: [?selected_antarctica_station]." } antarctica_station_marker_37_click = { set_variable = { selected_antarctica_station = global.antarctica_station_ids^37 } antarctica_refresh_window_and_variables = yes log = "[GetDateText]: [Root.GetName]: Selected Antarctica station slot 37. ID: [?selected_antarctica_station]." } antarctica_station_marker_38_click = { set_variable = { selected_antarctica_station = global.antarctica_station_ids^38 } antarctica_refresh_window_and_variables = yes log = "[GetDateText]: [Root.GetName]: Selected Antarctica station slot 38. ID: [?selected_antarctica_station]." } antarctica_station_marker_39_click = { set_variable = { selected_antarctica_station = global.antarctica_station_ids^39 } antarctica_refresh_window_and_variables = yes log = "[GetDateText]: [Root.GetName]: Selected Antarctica station slot 39. ID: [?selected_antarctica_station]." } antarctica_station_marker_40_click = { set_variable = { selected_antarctica_station = global.antarctica_station_ids^40 } antarctica_refresh_window_and_variables = yes log = "[GetDateText]: [Root.GetName]: Selected Antarctica station slot 40. ID: [?selected_antarctica_station]." } antarctica_station_marker_41_click = { set_variable = { selected_antarctica_station = global.antarctica_station_ids^41 } antarctica_refresh_window_and_variables = yes log = "[GetDateText]: [Root.GetName]: Selected Antarctica station slot 41. ID: [?selected_antarctica_station]." } antarctica_station_marker_42_click = { set_variable = { selected_antarctica_station = global.antarctica_station_ids^42 } antarctica_refresh_window_and_variables = yes log = "[GetDateText]: [Root.GetName]: Selected Antarctica station slot 42. ID: [?selected_antarctica_station]." } antarctica_station_marker_43_click = { set_variable = { selected_antarctica_station = global.antarctica_station_ids^43 } antarctica_refresh_window_and_variables = yes log = "[GetDateText]: [Root.GetName]: Selected Antarctica station slot 43. ID: [?selected_antarctica_station]." } antarctica_station_marker_44_click = { set_variable = { selected_antarctica_station = global.antarctica_station_ids^44 } antarctica_refresh_window_and_variables = yes log = "[GetDateText]: [Root.GetName]: Selected Antarctica station slot 44. ID: [?selected_antarctica_station]." } antarctica_station_marker_45_click = { set_variable = { selected_antarctica_station = global.antarctica_station_ids^45 } antarctica_refresh_window_and_variables = yes log = "[GetDateText]: [Root.GetName]: Selected Antarctica station slot 45. ID: [?selected_antarctica_station]." } antarctica_station_marker_46_click = { set_variable = { selected_antarctica_station = global.antarctica_station_ids^46 } antarctica_refresh_window_and_variables = yes log = "[GetDateText]: [Root.GetName]: Selected Antarctica station slot 46. ID: [?selected_antarctica_station]." } antarctica_station_marker_47_click = { set_variable = { selected_antarctica_station = global.antarctica_station_ids^47 } antarctica_refresh_window_and_variables = yes log = "[GetDateText]: [Root.GetName]: Selected Antarctica station slot 47. ID: [?selected_antarctica_station]." } antarctica_station_marker_48_click = { set_variable = { selected_antarctica_station = global.antarctica_station_ids^48 } antarctica_refresh_window_and_variables = yes log = "[GetDateText]: [Root.GetName]: Selected Antarctica station slot 48. ID: [?selected_antarctica_station]." } antarctica_station_marker_49_click = { set_variable = { selected_antarctica_station = global.antarctica_station_ids^49 } antarctica_refresh_window_and_variables = yes log = "[GetDateText]: [Root.GetName]: Selected Antarctica station slot 49. ID: [?selected_antarctica_station]." } antarctica_station_marker_50_click = { set_variable = { selected_antarctica_station = global.antarctica_station_ids^50 } antarctica_refresh_window_and_variables = yes log = "[GetDateText]: [Root.GetName]: Selected Antarctica station slot 50. ID: [?selected_antarctica_station]." } antarctica_station_marker_51_click = { set_variable = { selected_antarctica_station = global.antarctica_station_ids^51 } antarctica_refresh_window_and_variables = yes log = "[GetDateText]: [Root.GetName]: Selected Antarctica station slot 51. ID: [?selected_antarctica_station]." } antarctica_station_marker_52_click = { set_variable = { selected_antarctica_station = global.antarctica_station_ids^52 } antarctica_refresh_window_and_variables = yes log = "[GetDateText]: [Root.GetName]: Selected Antarctica station slot 52. ID: [?selected_antarctica_station]." } antarctica_station_marker_53_click = { set_variable = { selected_antarctica_station = global.antarctica_station_ids^53 } antarctica_refresh_window_and_variables = yes log = "[GetDateText]: [Root.GetName]: Selected Antarctica station slot 53. ID: [?selected_antarctica_station]." } antarctica_station_marker_54_click = { set_variable = { selected_antarctica_station = global.antarctica_station_ids^54 } antarctica_refresh_window_and_variables = yes log = "[GetDateText]: [Root.GetName]: Selected Antarctica station slot 54. ID: [?selected_antarctica_station]." } antarctica_station_marker_55_click = { set_variable = { selected_antarctica_station = global.antarctica_station_ids^55 } antarctica_refresh_window_and_variables = yes log = "[GetDateText]: [Root.GetName]: Selected Antarctica station slot 55. ID: [?selected_antarctica_station]." } antarctica_station_marker_56_click = { set_variable = { selected_antarctica_station = global.antarctica_station_ids^56 } antarctica_refresh_window_and_variables = yes log = "[GetDateText]: [Root.GetName]: Selected Antarctica station slot 56. ID: [?selected_antarctica_station]." } antarctica_station_marker_57_click = { set_variable = { selected_antarctica_station = global.antarctica_station_ids^57 } antarctica_refresh_window_and_variables = yes log = "[GetDateText]: [Root.GetName]: Selected Antarctica station slot 57. ID: [?selected_antarctica_station]." } antarctica_station_marker_58_click = { set_variable = { selected_antarctica_station = global.antarctica_station_ids^58 } antarctica_refresh_window_and_variables = yes log = "[GetDateText]: [Root.GetName]: Selected Antarctica station slot 58. ID: [?selected_antarctica_station]." } antarctica_station_marker_59_click = { set_variable = { selected_antarctica_station = global.antarctica_station_ids^59 } antarctica_refresh_window_and_variables = yes log = "[GetDateText]: [Root.GetName]: Selected Antarctica station slot 59. ID: [?selected_antarctica_station]." } antarctica_station_marker_60_click = { set_variable = { selected_antarctica_station = global.antarctica_station_ids^60 } antarctica_refresh_window_and_variables = yes log = "[GetDateText]: [Root.GetName]: Selected Antarctica station slot 60. ID: [?selected_antarctica_station]." } antarctica_station_marker_61_click = { set_variable = { selected_antarctica_station = global.antarctica_station_ids^61 } antarctica_refresh_window_and_variables = yes log = "[GetDateText]: [Root.GetName]: Selected Antarctica station slot 61. ID: [?selected_antarctica_station]." } antarctica_station_marker_62_click = { set_variable = { selected_antarctica_station = global.antarctica_station_ids^62 } antarctica_refresh_window_and_variables = yes log = "[GetDateText]: [Root.GetName]: Selected Antarctica station slot 62. ID: [?selected_antarctica_station]." } antarctica_station_marker_63_click = { set_variable = { selected_antarctica_station = global.antarctica_station_ids^63 } antarctica_refresh_window_and_variables = yes log = "[GetDateText]: [Root.GetName]: Selected Antarctica station slot 63. ID: [?selected_antarctica_station]." } antarctica_station_marker_64_click = { set_variable = { selected_antarctica_station = global.antarctica_station_ids^64 } antarctica_refresh_window_and_variables = yes log = "[GetDateText]: [Root.GetName]: Selected Antarctica station slot 64. ID: [?selected_antarctica_station]." } antarctica_station_marker_65_click = { set_variable = { selected_antarctica_station = global.antarctica_station_ids^65 } antarctica_refresh_window_and_variables = yes log = "[GetDateText]: [Root.GetName]: Selected Antarctica station slot 65. ID: [?selected_antarctica_station]." } antarctica_station_marker_66_click = { set_variable = { selected_antarctica_station = global.antarctica_station_ids^66 } antarctica_refresh_window_and_variables = yes log = "[GetDateText]: [Root.GetName]: Selected Antarctica station slot 66. ID: [?selected_antarctica_station]." } antarctica_station_marker_67_click = { set_variable = { selected_antarctica_station = global.antarctica_station_ids^67 } antarctica_refresh_window_and_variables = yes log = "[GetDateText]: [Root.GetName]: Selected Antarctica station slot 67. ID: [?selected_antarctica_station]." } antarctica_station_marker_68_click = { set_variable = { selected_antarctica_station = global.antarctica_station_ids^68 } antarctica_refresh_window_and_variables = yes log = "[GetDateText]: [Root.GetName]: Selected Antarctica station slot 68. ID: [?selected_antarctica_station]." } antarctica_station_marker_69_click = { set_variable = { selected_antarctica_station = global.antarctica_station_ids^69 } antarctica_refresh_window_and_variables = yes log = "[GetDateText]: [Root.GetName]: Selected Antarctica station slot 69. ID: [?selected_antarctica_station]." } antarctica_map_penguin_button_click = { antarctica_refresh_window_and_variables = yes } } properties = { antarctica_filter_america = { frame = station_filter_america } antarctica_filter_europe = { frame = station_filter_europe } antarctica_filter_asia = { frame = station_filter_asia } antarctica_filter_africa = { frame = station_filter_africa } antarctica_country_view_flag_button = { image = "[?selected_antarctica_station_controller.GetFlag]" } antarctica_station_marker_0 = { x = global.antarctica_station_x^0 y = global.antarctica_station_y^0 } antarctica_station_marker_1 = { x = global.antarctica_station_x^1 y = global.antarctica_station_y^1 } antarctica_station_marker_2 = { x = global.antarctica_station_x^2 y = global.antarctica_station_y^2 } antarctica_station_marker_3 = { x = global.antarctica_station_x^3 y = global.antarctica_station_y^3 } antarctica_station_marker_4 = { x = global.antarctica_station_x^4 y = global.antarctica_station_y^4 } antarctica_station_marker_5 = { x = global.antarctica_station_x^5 y = global.antarctica_station_y^5 } antarctica_station_marker_6 = { x = global.antarctica_station_x^6 y = global.antarctica_station_y^6 } antarctica_station_marker_7 = { x = global.antarctica_station_x^7 y = global.antarctica_station_y^7 } antarctica_station_marker_8 = { x = global.antarctica_station_x^8 y = global.antarctica_station_y^8 } antarctica_station_marker_9 = { x = global.antarctica_station_x^9 y = global.antarctica_station_y^9 } antarctica_station_marker_10 = { x = global.antarctica_station_x^10 y = global.antarctica_station_y^10 } antarctica_station_marker_11 = { x = global.antarctica_station_x^11 y = global.antarctica_station_y^11 } antarctica_station_marker_12 = { x = global.antarctica_station_x^12 y = global.antarctica_station_y^12 } antarctica_station_marker_13 = { x = global.antarctica_station_x^13 y = global.antarctica_station_y^13 } antarctica_station_marker_14 = { x = global.antarctica_station_x^14 y = global.antarctica_station_y^14 } antarctica_station_marker_15 = { x = global.antarctica_station_x^15 y = global.antarctica_station_y^15 } antarctica_station_marker_16 = { x = global.antarctica_station_x^16 y = global.antarctica_station_y^16 } antarctica_station_marker_17 = { x = global.antarctica_station_x^17 y = global.antarctica_station_y^17 } antarctica_station_marker_18 = { x = global.antarctica_station_x^18 y = global.antarctica_station_y^18 } antarctica_station_marker_19 = { x = global.antarctica_station_x^19 y = global.antarctica_station_y^19 } antarctica_station_marker_20 = { x = global.antarctica_station_x^20 y = global.antarctica_station_y^20 } antarctica_station_marker_21 = { x = global.antarctica_station_x^21 y = global.antarctica_station_y^21 } antarctica_station_marker_22 = { x = global.antarctica_station_x^22 y = global.antarctica_station_y^22 } antarctica_station_marker_23 = { x = global.antarctica_station_x^23 y = global.antarctica_station_y^23 } antarctica_station_marker_24 = { x = global.antarctica_station_x^24 y = global.antarctica_station_y^24 } antarctica_station_marker_25 = { x = global.antarctica_station_x^25 y = global.antarctica_station_y^25 } antarctica_station_marker_26 = { x = global.antarctica_station_x^26 y = global.antarctica_station_y^26 } antarctica_station_marker_27 = { x = global.antarctica_station_x^27 y = global.antarctica_station_y^27 } antarctica_station_marker_28 = { x = global.antarctica_station_x^28 y = global.antarctica_station_y^28 } antarctica_station_marker_29 = { x = global.antarctica_station_x^29 y = global.antarctica_station_y^29 } antarctica_station_marker_30 = { x = global.antarctica_station_x^30 y = global.antarctica_station_y^30 } antarctica_station_marker_31 = { x = global.antarctica_station_x^31 y = global.antarctica_station_y^31 } antarctica_station_marker_32 = { x = global.antarctica_station_x^32 y = global.antarctica_station_y^32 } antarctica_station_marker_33 = { x = global.antarctica_station_x^33 y = global.antarctica_station_y^33 } antarctica_station_marker_34 = { x = global.antarctica_station_x^34 y = global.antarctica_station_y^34 } antarctica_station_marker_35 = { x = global.antarctica_station_x^35 y = global.antarctica_station_y^35 } antarctica_station_marker_36 = { x = global.antarctica_station_x^36 y = global.antarctica_station_y^36 } antarctica_station_marker_37 = { x = global.antarctica_station_x^37 y = global.antarctica_station_y^37 } antarctica_station_marker_38 = { x = global.antarctica_station_x^38 y = global.antarctica_station_y^38 } antarctica_station_marker_39 = { x = global.antarctica_station_x^39 y = global.antarctica_station_y^39 } antarctica_station_marker_40 = { x = global.antarctica_station_x^40 y = global.antarctica_station_y^40 } antarctica_station_marker_41 = { x = global.antarctica_station_x^41 y = global.antarctica_station_y^41 } antarctica_station_marker_42 = { x = global.antarctica_station_x^42 y = global.antarctica_station_y^42 } antarctica_station_marker_43 = { x = global.antarctica_station_x^43 y = global.antarctica_station_y^43 } antarctica_station_marker_44 = { x = global.antarctica_station_x^44 y = global.antarctica_station_y^44 } antarctica_station_marker_45 = { x = global.antarctica_station_x^45 y = global.antarctica_station_y^45 } antarctica_station_marker_46 = { x = global.antarctica_station_x^46 y = global.antarctica_station_y^46 } antarctica_station_marker_47 = { x = global.antarctica_station_x^47 y = global.antarctica_station_y^47 } antarctica_station_marker_48 = { x = global.antarctica_station_x^48 y = global.antarctica_station_y^48 } antarctica_station_marker_49 = { x = global.antarctica_station_x^49 y = global.antarctica_station_y^49 } antarctica_station_marker_50 = { x = global.antarctica_station_x^50 y = global.antarctica_station_y^50 } antarctica_station_marker_51 = { x = global.antarctica_station_x^51 y = global.antarctica_station_y^51 } antarctica_station_marker_52 = { x = global.antarctica_station_x^52 y = global.antarctica_station_y^52 } antarctica_station_marker_53 = { x = global.antarctica_station_x^53 y = global.antarctica_station_y^53 } antarctica_station_marker_54 = { x = global.antarctica_station_x^54 y = global.antarctica_station_y^54 } antarctica_station_marker_55 = { x = global.antarctica_station_x^55 y = global.antarctica_station_y^55 } antarctica_station_marker_56 = { x = global.antarctica_station_x^56 y = global.antarctica_station_y^56 } antarctica_station_marker_57 = { x = global.antarctica_station_x^57 y = global.antarctica_station_y^57 } antarctica_station_marker_58 = { x = global.antarctica_station_x^58 y = global.antarctica_station_y^58 } antarctica_station_marker_59 = { x = global.antarctica_station_x^59 y = global.antarctica_station_y^59 } antarctica_station_marker_60 = { x = global.antarctica_station_x^60 y = global.antarctica_station_y^60 } antarctica_station_marker_61 = { x = global.antarctica_station_x^61 y = global.antarctica_station_y^61 } antarctica_station_marker_62 = { x = global.antarctica_station_x^62 y = global.antarctica_station_y^62 } antarctica_station_marker_63 = { x = global.antarctica_station_x^63 y = global.antarctica_station_y^63 } antarctica_station_marker_64 = { x = global.antarctica_station_x^64 y = global.antarctica_station_y^64 } antarctica_station_marker_65 = { x = global.antarctica_station_x^65 y = global.antarctica_station_y^65 } antarctica_station_marker_66 = { x = global.antarctica_station_x^66 y = global.antarctica_station_y^66 } antarctica_station_marker_67 = { x = global.antarctica_station_x^67 y = global.antarctica_station_y^67 } antarctica_station_marker_68 = { x = global.antarctica_station_x^68 y = global.antarctica_station_y^68 } antarctica_station_marker_69 = { x = global.antarctica_station_x^69 y = global.antarctica_station_y^69 } } } #Dynamic Lists international_pmc_units_dynamic_lists = { context_type = player_context parent_scripted_gui = MD_PMC_system_gui window_name = "IS_pmc_units_container" dirty = global.international_systems_updated ai_enabled = { always = no } ai_test_interval = 168 ai_max_weight_taken_per_test = 1 visible = { check_variable = { var_open_MD_PMC_gui = 2 } has_country_flag = open_MD_countrymissilesview } dynamic_lists = { list_of_available_pmc_units = { array = THIS.selected_units entry_container = IS_available_pmc_units_list } } triggers = { name_of_pmc_units_button_click_enabled = { OR = { has_country_flag = blackwater_sel has_country_flag = aegis_sel has_country_flag = wagner_sel has_country_flag = constellis_sel has_country_flag = md_sel } OR = { if = { limit = { check_variable = { v = 001 } } set_temp_variable = { up_chk = 0 } NOT = { has_country_flag = inf_hire } } else_if = { limit = { check_variable = { v = 002 } } set_temp_variable = { up_chk = 0 } NOT = { has_country_flag = mot_inf_hire } } else_if = { limit = { check_variable = { v = 003 } } set_temp_variable = { up_chk = 0 } NOT = { has_country_flag = mech_inf_hire } } else_if = { limit = { check_variable = { v = 004 } } set_temp_variable = { up_chk = 1 } NOT = { has_country_flag = hvy_inf_hire } } else_if = { limit = { check_variable = { v = 005 } } set_temp_variable = { up_chk = 1 } NOT = { has_country_flag = spec_inf_hire } } else_if = { limit = { check_variable = { v = 006 } } set_temp_variable = { up_chk = 2 } NOT = { has_country_flag = tank_hire } } else_if = { limit = { check_variable = { v = 007 } } set_temp_variable = { up_chk = 2 } NOT = { has_country_flag = sf_hire } } } if = { limit = { NOT = { tag = USA } has_country_flag = blackwater_sel } USA = { has_opinion = { target = ROOT value > 0 } } } else_if = { limit = { NOT = { tag = ENG } has_country_flag = aegis_sel } ENG = { has_opinion = { target = ROOT value > 0 } } } else_if = { limit = { NOT = { tag = USA } has_country_flag = constellis_sel } USA = { has_opinion = { target = ROOT value > 0 } } } else_if = { limit = { NOT = { tag = SOV } has_country_flag = wagner_sel } SOV = { has_opinion = { target = ROOT value > 0 } } } meta_trigger = { text = { custom_trigger_tooltip = { tooltip = pmc_upgrade_tt check_variable = { global.merc_upgrade^[compcheck] > [upchk] } } set_temp_variable = { sum = { value = global.merc_deploy_cost^1 add = global.merc_deployed^[compcheck] } } pmc_can_recruit = yes custom_trigger_tooltip = { tooltip = pmc_surpassing_TT NOT = { check_variable = { sum > global.merc_capacity^[compcheck] } } } } compcheck = "[?comp_check]" upchk = "[?up_chk]" } } } effects = { name_of_pmc_units_button_click = { if = { limit = { check_variable = { v = 001 } } if = { limit = { has_country_flag = blackwater_sel } set_country_flag = inf_hire activate_mission = get_blackwater_light_infantry } else_if = { limit = { has_country_flag = aegis_sel } set_country_flag = inf_hire activate_mission = get_aegis_light_infantry } else_if = { limit = { has_country_flag = constellis_sel } set_country_flag = inf_hire activate_mission = get_constellis_light_infantry } else_if = { limit = { has_country_flag = wagner_sel } set_country_flag = inf_hire activate_mission = get_wagner_light_infantry } else_if = { limit = { has_country_flag = md_sel } set_country_flag = inf_hire activate_mission = get_md_light_infantry } } if = { limit = { check_variable = { v = 002 } } if = { limit = { has_country_flag = blackwater_sel } set_country_flag = mot_inf_hire activate_mission = get_blackwater_mot_infantry } else_if = { limit = { has_country_flag = aegis_sel } set_country_flag = mot_inf_hire activate_mission = get_aegis_mot_infantry } else_if = { limit = { has_country_flag = constellis_sel } set_country_flag = mot_inf_hire activate_mission = get_constellis_mot_infantry } else_if = { limit = { has_country_flag = wagner_sel } set_country_flag = mot_inf_hire activate_mission = get_wagner_mot_infantry } else_if = { limit = { has_country_flag = md_sel } set_country_flag = mot_inf_hire activate_mission = get_md_mot_infantry } } if = { limit = { check_variable = { v = 003 } } if = { limit = { has_country_flag = blackwater_sel } set_country_flag = mech_inf_hire activate_mission = get_blackwater_mech_infantry } else_if = { limit = { has_country_flag = aegis_sel } set_country_flag = mech_inf_hire activate_mission = get_aegis_mech_infantry } else_if = { limit = { has_country_flag = constellis_sel } set_country_flag = mech_inf_hire activate_mission = get_constellis_mech_infantry } else_if = { limit = { has_country_flag = wagner_sel } set_country_flag = mech_inf_hire activate_mission = get_wagner_mech_infantry } else_if = { limit = { has_country_flag = md_sel } set_country_flag = mech_inf_hire activate_mission = get_md_mech_infantry } } if = { limit = { check_variable = { v = 004 } } if = { limit = { has_country_flag = blackwater_sel } set_country_flag = hvy_inf_hire activate_mission = get_blackwater_heavy_mech_infantry } else_if = { limit = { has_country_flag = aegis_sel } set_country_flag = hvy_inf_hire activate_mission = get_aegis_heavy_mech_infantry } else_if = { limit = { has_country_flag = constellis_sel } set_country_flag = hvy_inf_hire activate_mission = get_constellis_heavy_mech_infantry } else_if = { limit = { has_country_flag = wagner_sel } set_country_flag = hvy_inf_hire activate_mission = get_wagner_heavy_mech_infantry } else_if = { limit = { has_country_flag = md_sel } set_country_flag = hvy_inf_hire activate_mission = get_md_heavy_mech_infantry } } if = { limit = { check_variable = { v = 005 } } if = { limit = { has_country_flag = blackwater_sel } set_country_flag = spec_inf_hire activate_mission = get_blackwater_special_infantry } else_if = { limit = { has_country_flag = aegis_sel } set_country_flag = spec_inf_hire activate_mission = get_aegis_special_infantry } else_if = { limit = { has_country_flag = constellis_sel } set_country_flag = spec_inf_hire activate_mission = get_constellis_special_infantry } else_if = { limit = { has_country_flag = wagner_sel } set_country_flag = spec_inf_hire activate_mission = get_wagner_special_infantry } else_if = { limit = { has_country_flag = md_sel } set_country_flag = spec_inf_hire activate_mission = get_md_special_infantry } } if = { limit = { check_variable = { v = 006 } } if = { limit = { has_country_flag = blackwater_sel } set_country_flag = tank_hire activate_mission = get_blackwater_tank } else_if = { limit = { has_country_flag = aegis_sel } set_country_flag = tank_hire activate_mission = get_aegis_tank } else_if = { limit = { has_country_flag = constellis_sel } set_country_flag = tank_hire activate_mission = get_constellis_tank } else_if = { limit = { has_country_flag = wagner_sel } set_country_flag = tank_hire activate_mission = get_wagner_tank } else_if = { limit = { has_country_flag = md_sel } set_country_flag = tank_hire activate_mission = get_md_tank } } if = { limit = { check_variable = { v = 007 } } if = { limit = { has_country_flag = blackwater_sel } set_country_flag = sf_hire activate_mission = get_blackwater_specops } else_if = { limit = { has_country_flag = aegis_sel } set_country_flag = sf_hire activate_mission = get_aegis_specops } else_if = { limit = { has_country_flag = constellis_sel } set_country_flag = sf_hire activate_mission = get_constellis_specops } else_if = { limit = { has_country_flag = wagner_sel } set_country_flag = sf_hire activate_mission = get_wagner_specops } else_if = { limit = { has_country_flag = md_sel } set_country_flag = sf_hire activate_mission = get_md_specops } } if = { limit = { is_ai = yes } set_country_flag = { flag = hold_major_pmc_purchase days = 90 value = 1 } } international_systems_update = yes } } } international_pmc_companies_dynamic_lists = { context_type = player_context parent_scripted_gui = MD_PMC_system_gui window_name = "IS_pmc_companies_container" dirty = global.international_systems_updated ai_enabled = { always = no } ai_test_interval = 168 ai_max_weight_taken_per_test = 1 visible = { check_variable = { var_open_MD_PMC_gui = 2 } has_country_flag = open_MD_countrymissilesview } dynamic_lists = { list_of_available_pmc_companies = { array = global.PMC_Companies entry_container = IS_available_pmc_companies_list } } triggers = { name_of_pmc_companies_button_click_enabled = { if = { limit = { check_variable = { v = 001 } } OR = { USA = { has_opinion = { target = ROOT value > 0 } } tag = USA } NOT = { has_global_flag = constellis_pmc_formed } } else_if = { limit = { check_variable = { v = 002 } } OR = { ENG = { has_opinion = { target = ROOT value > 0 } } tag = ENG } } else_if = { limit = { check_variable = { v = 003 } } OR = { USA = { has_opinion = { target = ROOT value > 0 } } tag = USA } has_global_flag = constellis_pmc_formed } else_if = { limit = { check_variable = { v = 004 } } SOV = { has_completed_focus = SOV_slavic_corps } OR = { SOV = { has_opinion = { target = ROOT value > 0 } } tag = SOV } custom_trigger_tooltip = { tooltip = banned_pmc_operations_TT NOT = { SOV = { has_country_flag = banned_pmc_operations } } } } else_if = { limit = { check_variable = { v = 005 } } NOT = { has_war_with = USA } OR = { USA = { has_opinion = { target = ROOT value > 10 } } tag = USA } custom_trigger_tooltip = { tooltip = pmc_mpri_TT USA = { NOT = { has_country_flag = mpri_yes } } } } else_if = { limit = { check_variable = { v = 006 } } if = { limit = { NOT = { tag = TUR } } country_exists = TUR NOT = { has_war_with = TUR } TUR = { has_opinion = { target = ROOT value > 10 } } } else = { original_tag = TUR } custom_trigger_tooltip = { tooltip = pmc_sadat_TT TUR = { NOT = { has_country_flag = sadat_yes } } } } else_if = { limit = { check_variable = { v = 007 } } if = { limit = { NOT = { tag = SOV } } country_exists = SOV NOT = { has_war_with = SOV } SOV = { has_opinion = { target = ROOT value > 10 } } } else = { original_tag = SOV } custom_trigger_tooltip = { tooltip = pmc_rsb_TT SOV = { NOT = { has_country_flag = rsb_yes } } } } else_if = { limit = { check_variable = { v = 008 } } if = { limit = { NOT = { tag = ENG } } country_exists = ENG NOT = { has_war_with = ENG } ENG = { has_opinion = { target = ROOT value > 10 } } } else = { original_tag = ENG } custom_trigger_tooltip = { tooltip = pmc_sadline_TT ENG = { NOT = { has_country_flag = sadline_yes } } } } else_if = { limit = { check_variable = { v = 009 } } if = { limit = { NOT = { tag = USA } } country_exists = USA NOT = { has_war_with = USA } USA = { has_opinion = { target = ROOT value > 10 } } } else = { original_tag = USA } custom_trigger_tooltip = { tooltip = pmc_kbr_TT USA = { NOT = { has_country_flag = kbr_yes } } } } else_if = { limit = { check_variable = { v = 010 } } if = { limit = { NOT = { tag = ISR } } country_exists = ISR NOT = { has_war_with = ISR } ISR = { has_opinion = { target = ROOT value > 10 } } } else = { original_tag = ISR } custom_trigger_tooltip = { tooltip = pmc_nirtal_TT ISR = { NOT = { has_country_flag = nirtal_yes } } } } else_if = { limit = { check_variable = { v = 011 } } if = { limit = { NOT = { tag = USA } NOT = { tag = ENG } } country_exists = USA country_exists = ENG NOT = { has_war_with = USA } NOT = { has_war_with = ENG } USA = { has_opinion = { target = ROOT value > 10 } } ENG = { has_opinion = { target = ROOT value > 10 } } } else = { if = { limit = { original_tag = USA } country_exists = ENG NOT = { has_war_with = ENG } ENG = { has_opinion = { target = ROOT value > 10 } } } else = { country_exists = USA NOT = { has_war_with = USA } USA = { has_opinion = { target = ROOT value > 10 } } } } has_war = yes custom_trigger_tooltip = { tooltip = pmc_halo_TT USA = { NOT = { has_country_flag = halo_yes } } } } else_if = { limit = { check_variable = { v = 012 } } if = { limit = { NOT = { tag = FRA } } country_exists = FRA NOT = { has_war_with = FRA } FRA = { has_opinion = { target = ROOT value > 14 } } } else = { original_tag = FRA } has_war = yes custom_trigger_tooltip = { tooltip = pmc_dci_TT FRA = { NOT = { has_country_flag = dci_yes } } } } else_if = { limit = { check_variable = { v = 013 } } if = { limit = { NOT = { tag = CAN } } country_exists = CAN NOT = { has_war_with = CAN } CAN = { has_opinion = { target = ROOT value > 20 } } } else = { original_tag = CAN } custom_trigger_tooltip = { tooltip = pmc_garda_TT CAN = { NOT = { has_country_flag = garda_yes } } } } else_if = { limit = { check_variable = { v = 014 } } if = { limit = { NOT = { tag = POL } } country_exists = POL NOT = { has_war_with = POL } POL = { has_opinion = { target = ROOT value > 20 } } } else = { original_tag = POL } custom_trigger_tooltip = { tooltip = pmc_eu_TT POL = { NOT = { has_country_flag = eu_yes } } } } else_if = { limit = { check_variable = { v = 015 } } if = { limit = { NOT = { tag = GER } } country_exists = GER NOT = { has_war_with = GER } GER = { has_opinion = { target = ROOT value > 20 } } } else = { original_tag = GER } custom_trigger_tooltip = { tooltip = pmc_itt_TT GER = { NOT = { has_country_flag = itt_yes } } } } else_if = { limit = { check_variable = { v = 016 } } date > 2007.1.1 if = { limit = { NOT = { tag = GER } } country_exists = GER NOT = { has_war_with = GER } GER = { has_opinion = { target = ROOT value > 20 } } } else = { original_tag = GER } custom_trigger_tooltip = { tooltip = pmc_asgard_TT GER = { NOT = { has_country_flag = asgrad_yes } } } } else_if = { limit = { check_variable = { v = 017 } } EGY = { has_country_flag = sinai_create } if = { limit = { NOT = { tag = EGY } } country_exists = EGY NOT = { has_war_with = EGY } EGY = { has_opinion = { target = ROOT value > 20 } } } else = { original_tag = EGY } custom_trigger_tooltip = { tooltip = pmc_sinai_TT EGY = { NOT = { has_country_flag = sinai_yes } } } } else_if = { limit = { check_variable = { v = 018 } } BLR = { has_country_flag = gard_create } if = { limit = { NOT = { tag = BLR } } country_exists = BLR NOT = { has_war_with = BLR } BLR = { has_opinion = { target = ROOT value > 20 } } } else = { original_tag = BLR } custom_trigger_tooltip = { tooltip = pmc_gard_TT BLR = { NOT = { has_country_flag = gard_yes } } } } else_if = { limit = { check_variable = { v = 019 } } SOV = { has_country_flag = patriot_create } if = { limit = { NOT = { tag = SOV } } country_exists = SOV NOT = { has_war_with = SOV } SOV = { has_opinion = { target = ROOT value > 20 } } } else = { original_tag = SOV } custom_trigger_tooltip = { tooltip = pmc_patriot_TT SOV = { NOT = { has_country_flag = patriot_yes } } } } else_if = { limit = { check_variable = { v = 020 } } CHI = { has_country_flag = dewe_create } if = { limit = { NOT = { tag = CHI } } country_exists = CHI NOT = { has_war_with = CHI } CHI = { has_opinion = { target = ROOT value > 20 } } } else = { original_tag = CHI } custom_trigger_tooltip = { tooltip = pmc_dewe_TT CHI = { NOT = { has_country_flag = dewe_yes } } } } else_if = { limit = { check_variable = { v = 021 } } CHI = { has_country_flag = over_create } if = { limit = { NOT = { tag = CHI } } country_exists = CHI NOT = { has_war_with = CHI } CHI = { has_opinion = { target = ROOT value > 20 } } } else = { original_tag = CHI } custom_trigger_tooltip = { tooltip = pmc_over_TT CHI = { NOT = { has_country_flag = over_yes } } } } else_if = { limit = { check_variable = { v = 022 } } CHI = { has_country_flag = front_create } NOT = { tag = CHI } country_exists = CHI NOT = { has_war_with = CHI } CHI = { has_opinion = { target = ROOT value > 15 } } custom_trigger_tooltip = { tooltip = pmc_front_TT CHI = { NOT = { has_country_flag = front_yes } } } } else_if = { limit = { check_variable = { v = 023 } } SOV = { has_completed_focus = SOV_pmc_redut } if = { limit = { NOT = { tag = SOV } } country_exists = SOV NOT = { has_war_with = SOV } SOV = { has_opinion = { target = ROOT value > 20 } } } else = { original_tag = SOV } custom_trigger_tooltip = { tooltip = pmc_redut_TT SOV = { NOT = { has_country_flag = redut_yes } } } } else_if = { limit = { check_variable = { v = 024 } } SOV = { has_completed_focus = SOV_pmc_gazproms } if = { limit = { NOT = { tag = SOV } } country_exists = SOV NOT = { has_war_with = SOV } SOV = { has_opinion = { target = ROOT value > 20 } } } else = { original_tag = SOV } custom_trigger_tooltip = { tooltip = pmc_gazprom_TT SOV = { NOT = { has_country_flag = gazprom_yes } } } } else_if = { limit = { check_variable = { v = 025 } } EST = { has_country_flag = iron_create } if = { limit = { NOT = { tag = EST } } country_exists = EST NOT = { has_war_with = EST } EST = { has_opinion = { target = ROOT value > 20 } } } else = { original_tag = EST } custom_trigger_tooltip = { tooltip = pmc_iron_TT EST = { NOT = { has_country_flag = iron_yes } } } } else_if = { limit = { check_variable = { v = 026 } } PMR = { has_country_flag = sheriff_create } if = { limit = { NOT = { tag = PMR } } country_exists = PMR NOT = { has_war_with = PMR } PMR = { has_opinion = { target = ROOT value > 20 } } } else = { original_tag = PMR } custom_trigger_tooltip = { tooltip = pmc_sheriff_TT PMR = { NOT = { has_country_flag = sheriff_yes } } } } else_if = { limit = { check_variable = { v = 027 } } SOV = { has_country_flag = lukoil_create } if = { limit = { NOT = { tag = SOV } } country_exists = SOV NOT = { has_war_with = SOV } SOV = { has_opinion = { target = ROOT value > 20 } } } else = { original_tag = SOV } custom_trigger_tooltip = { tooltip = pmc_lukoil_TT SOV = { NOT = { has_country_flag = lukoil_create } } } } else_if = { limit = { check_variable = { v = 028 } } SOV = { has_completed_focus = SOV_pmc_gazproms } if = { limit = { NOT = { tag = SOV } } country_exists = SOV NOT = { has_war_with = SOV } SOV = { has_opinion = { target = ROOT value > 20 } } } else = { original_tag = SOV } custom_trigger_tooltip = { tooltip = pmc_rosneft_TT SOV = { NOT = { has_country_flag = rosneft_yes } } } } else_if = { limit = { check_variable = { v = 029 } } SOV = { has_completed_focus = SOV_pmc_gazproms } if = { limit = { NOT = { tag = SOV } } country_exists = SOV NOT = { has_war_with = SOV } SOV = { has_opinion = { target = ROOT value > 20 } } } else = { original_tag = SOV } custom_trigger_tooltip = { tooltip = pmc_sberbank_TT SOV = { NOT = { has_country_flag = sberbank_yes } } } } else_if = { limit = { check_variable = { v = 030 } } SOV = { has_completed_focus = SOV_pmc_gazproms } if = { limit = { NOT = { tag = SOV } } country_exists = SOV NOT = { has_war_with = SOV } SOV = { has_opinion = { target = ROOT value > 20 } } } else = { original_tag = SOV } custom_trigger_tooltip = { tooltip = pmc_vtb_TT SOV = { NOT = { has_country_flag = vtb_yes } } } } else_if = { limit = { check_variable = { v = 031 } } check_variable = { global.merc_upgrade^4 > -1 } set_temp_variable = { sum = { value = global.merc_deploy_cost^0 add = global.merc_deployed^4 } } pmc_can_recruit = yes custom_trigger_tooltip = { tooltip = pmc_surpassing_TT NOT = { check_variable = { sum > global.merc_capacity^4 } } } } } } effects = { name_of_pmc_companies_button_click = { if = { limit = { check_variable = { v = 001 } } clr_country_pmc_flag = yes set_country_flag = blackwater_sel set_sel_pmc_units = yes custom_effect_tooltip = pmc_open_units_list } if = { limit = { check_variable = { v = 002 } } clr_country_pmc_flag = yes set_country_flag = aegis_sel set_sel_pmc_units = yes custom_effect_tooltip = pmc_open_units_list } if = { limit = { check_variable = { v = 003 } } clr_country_pmc_flag = yes set_country_flag = constellis_sel set_sel_pmc_units = yes custom_effect_tooltip = pmc_open_units_list } if = { limit = { check_variable = { v = 004 } } clr_country_pmc_flag = yes set_country_flag = wagner_sel set_sel_pmc_units = yes custom_effect_tooltip = pmc_open_units_list } if = { limit = { check_variable = { v = 031 } } clr_country_pmc_flag = yes set_country_flag = md_sel set_sel_pmc_units = yes custom_effect_tooltip = pmc_open_units_list } if = { limit = { check_variable = { v = 005 } } clr_country_pmc_flag = yes set_sel_pmc_units = yes if = { limit = { OR = { has_idea = large_power has_idea = great_power has_idea = super_power } } add_timed_idea = { idea = pmc_mrpi_idea1 days = 365 } } else = { add_timed_idea = { idea = pmc_mrpi_idea days = 365 } } set_temp_variable = { treasury_change = -5.5 } modify_treasury_effect = yes if = { limit = { NOT = { original_tag = USA } } hidden_effect = { USA = { country_event = pmc_events.2 } } } USA = { set_country_flag = mpri_yes } activate_mission = pmc_mpri } if = { limit = { check_variable = { v = 006 } } clr_country_pmc_flag = yes set_sel_pmc_units = yes if = { limit = { OR = { has_idea = large_power has_idea = great_power has_idea = super_power } } add_timed_idea = { idea = pmc_sadat_idea1 days = 365 } } else = { add_timed_idea = { idea = pmc_sadat_idea days = 365 } } set_temp_variable = { treasury_change = -4 } modify_treasury_effect = yes if = { limit = { NOT = { original_tag = TUR } } hidden_effect = { TUR = { country_event = pmc_events.5 } } } TUR = { set_country_flag = sadat_yes } activate_mission = pmc_sadat } if = { limit = { check_variable = { v = 007 } } clr_country_pmc_flag = yes set_sel_pmc_units = yes if = { limit = { OR = { has_idea = large_power has_idea = great_power has_idea = super_power } } add_timed_idea = { idea = pmc_rsb_idea1 days = 365 } } else = { add_timed_idea = { idea = pmc_rsb_idea days = 365 } } set_temp_variable = { treasury_change = -3.5 } modify_treasury_effect = yes if = { limit = { NOT = { original_tag = SOV } } hidden_effect = { SOV = { country_event = pmc_events.4 } } } SOV = { set_country_flag = rsb_yes } activate_mission = pmc_rsb } if = { limit = { check_variable = { v = 008 } } clr_country_pmc_flag = yes set_sel_pmc_units = yes hidden_effect = { division_template = { name = "Mercenary SpecOps SandLine Unit" is_locked = yes priority = 2 regiments = { Special_Forces = { x = 0 y = 0 } Special_Forces = { x = 0 y = 1 } Special_Forces = { x = 0 y = 2 } Special_Forces = { x = 0 y = 3 } Arty_Bat = { x = 1 y = 0 } Arty_Bat = { x = 1 y = 1 } } support = { H_Engi_Comp = { x = 0 y = 0 } L_Recce_Comp = { x = 0 y = 1 } SP_AA_Battery = { x = 0 y = 3 } } } random_owned_controlled_state = { limit = { ROOT = { has_full_control_of_state = PREV } } create_unit = { division = "name = \"Mercenary SpecOps SandLine Unit\" division_template = \"Mercenary SpecOps SandLine Unit\" start_experience_factor = 1.0" owner = ROOT } } } set_temp_variable = { treasury_change = -2.5 } modify_treasury_effect = yes if = { limit = { NOT = { original_tag = ENG } } hidden_effect = { ENG = { country_event = pmc_events.3 } } } ENG = { set_country_flag = sadline_yes } activate_mission = pmc_sadline } if = { limit = { check_variable = { v = 009 } } clr_country_pmc_flag = yes set_sel_pmc_units = yes if = { limit = { OR = { has_idea = large_power has_idea = great_power has_idea = super_power } } add_timed_idea = { idea = pmc_kbr_idea1 days = 365 } } else = { add_timed_idea = { idea = pmc_kbr_idea days = 365 } } set_temp_variable = { treasury_change = -3.5 } modify_treasury_effect = yes if = { limit = { NOT = { original_tag = USA } } hidden_effect = { USA = { country_event = pmc_events.4 } } } USA = { set_country_flag = kbr_yes } activate_mission = pmc_kbr } if = { limit = { check_variable = { v = 010 } } clr_country_pmc_flag = yes set_sel_pmc_units = yes add_equipment_to_stockpile = { type = infantry_weapons_type amount = 1500 } if = { limit = { OR = { has_idea = large_power has_idea = great_power has_idea = super_power } } add_timed_idea = { idea = pmc_nirtal_idea1 days = 365 } } else = { add_timed_idea = { idea = pmc_nirtal_idea days = 365 } } if = { limit = { NOT = { original_tag = ISR } } hidden_effect = { ISR = { country_event = pmc_events.4 } } } set_temp_variable = { treasury_change = -3.5 } modify_treasury_effect = yes ISR = { set_country_flag = nirtal_yes } activate_mission = pmc_nirtal } if = { limit = { check_variable = { v = 011 } } clr_country_pmc_flag = yes set_sel_pmc_units = yes if = { limit = { OR = { has_idea = large_power has_idea = great_power has_idea = super_power } } add_timed_idea = { idea = pmc_halo_idea1 days = 365 } } else = { add_timed_idea = { idea = pmc_halo_idea days = 365 } } set_temp_variable = { treasury_change = -1.5 } modify_treasury_effect = yes if = { limit = { NOT = { original_tag = USA } } hidden_effect = { USA = { country_event = pmc_events.6 } } } if = { limit = { NOT = { original_tag = ENG } } hidden_effect = { ENG = { country_event = pmc_events.6 } } } USA = { set_country_flag = halo_yes } activate_mission = pmc_halo } if = { limit = { check_variable = { v = 012 } } clr_country_pmc_flag = yes set_sel_pmc_units = yes if = { limit = { OR = { has_idea = large_power has_idea = great_power has_idea = super_power } } add_timed_idea = { idea = pmc_dci_idea1 days = 365 } } else = { add_timed_idea = { idea = pmc_dci_idea days = 365 } } set_temp_variable = { treasury_change = -4 } modify_treasury_effect = yes if = { limit = { NOT = { original_tag = FRA } } hidden_effect = { FRA = { country_event = pmc_events.4 } } } FRA = { set_country_flag = dci_yes } activate_mission = pmc_dci } if = { limit = { check_variable = { v = 013 } } clr_country_pmc_flag = yes set_sel_pmc_units = yes hidden_effect = { division_template = { name = "Mercenary SpecOps GardaWorld Unit" is_locked = yes priority = 2 regiments = { Special_Forces = { x = 0 y = 0 } Special_Forces = { x = 0 y = 1 } Special_Forces = { x = 0 y = 2 } Special_Forces = { x = 0 y = 3 } } support = { H_Engi_Comp = { x = 0 y = 0 } L_Recce_Comp = { x = 0 y = 1 } } } random_owned_controlled_state = { limit = { ROOT = { has_full_control_of_state = PREV } } create_unit = { division = "name = \"Mercenary SpecOps GardaWorld Unit\" division_template = \"Mercenary SpecOps GardaWorld Unit\" start_experience_factor = 0.7" owner = ROOT } } } set_temp_variable = { treasury_change = -2.5 } modify_treasury_effect = yes CAN = { set_country_flag = garda_yes } if = { limit = { NOT = { original_tag = CAN } } hidden_effect = { CAN = { country_event = pmc_events.3 } } } activate_mission = pmc_garda } if = { limit = { check_variable = { v = 014 } } clr_country_pmc_flag = yes set_sel_pmc_units = yes if = { limit = { OR = { has_idea = large_power has_idea = great_power has_idea = super_power } } add_timed_idea = { idea = pmc_eu_idea1 days = 365 } } else = { add_timed_idea = { idea = pmc_eu_idea days = 365 } } set_temp_variable = { treasury_change = -4 } modify_treasury_effect = yes if = { limit = { NOT = { original_tag = POL } } hidden_effect = { POL = { country_event = pmc_events.5 } } } POL = { set_country_flag = eu_yes } activate_mission = pmc_eu } if = { limit = { check_variable = { v = 015 } } clr_country_pmc_flag = yes set_sel_pmc_units = yes hidden_effect = { division_template = { name = "Mercenary SpecOps G4S Unit" is_locked = yes priority = 2 regiments = { Special_Forces = { x = 0 y = 0 } Special_Forces = { x = 0 y = 1 } Special_Forces = { x = 0 y = 2 } Special_Forces = { x = 0 y = 3 } Special_Forces = { x = 1 y = 0 } Special_Forces = { x = 1 y = 1 } Special_Forces = { x = 1 y = 2 } Special_Forces = { x = 1 y = 3 } Arty_Bat = { x = 2 y = 0 } Arty_Bat = { x = 2 y = 1 } } support = { H_Engi_Comp = { x = 0 y = 0 } L_Recce_Comp = { x = 0 y = 1 } SP_AA_Battery = { x = 0 y = 3 } } } random_owned_controlled_state = { limit = { ROOT = { has_full_control_of_state = PREV } } create_unit = { division = "name = \"Mercenary SpecOps G4S Unit\" division_template = \"Mercenary SpecOps G4S Unit\" start_experience_factor = 1.0" owner = ROOT } } } set_temp_variable = { treasury_change = -3.5 } modify_treasury_effect = yes if = { limit = { NOT = { original_tag = GER } } hidden_effect = { GER = { country_event = pmc_events.4 } } } GER = { set_country_flag = itt_yes } activate_mission = pmc_itt } if = { limit = { check_variable = { v = 016 } } clr_country_pmc_flag = yes set_sel_pmc_units = yes if = { limit = { OR = { has_idea = large_power has_idea = great_power has_idea = super_power } } add_timed_idea = { idea = pmc_asgard_idea1 days = 365 } } else = { add_timed_idea = { idea = pmc_asgard_idea days = 365 } } set_temp_variable = { treasury_change = -3.5 } modify_treasury_effect = yes if = { limit = { NOT = { original_tag = GER } } hidden_effect = { GER = { country_event = pmc_events.4 } } } GER = { set_country_flag = asgrad_yes } activate_mission = pmc_asgard } if = { limit = { check_variable = { v = 017 } } clr_country_pmc_flag = yes set_sel_pmc_units = yes hidden_effect = { division_template = { name = "Mercenary The Union of the Tribes of Sinai" is_locked = yes priority = 2 regiments = { Special_Forces = { x = 0 y = 0 } Special_Forces = { x = 0 y = 1 } Special_Forces = { x = 0 y = 2 } Special_Forces = { x = 0 y = 3 } } support = { H_Engi_Comp = { x = 0 y = 0 } L_Recce_Comp = { x = 0 y = 1 } } } random_owned_controlled_state = { limit = { ROOT = { has_full_control_of_state = PREV } } create_unit = { division = "name = \"Mercenary The Union of the Tribes of Sinai\" division_template = \"Mercenary The Union of the Tribes of Sinai\" start_experience_factor = 0.3" owner = ROOT } } } set_temp_variable = { treasury_change = -2.5 } modify_treasury_effect = yes if = { limit = { NOT = { original_tag = EGY } } hidden_effect = { EGY = { country_event = pmc_events.3 } } } EGY = { set_country_flag = sinai_yes } activate_mission = pmc_sinai } if = { limit = { check_variable = { v = 018 } } clr_country_pmc_flag = yes set_sel_pmc_units = yes hidden_effect = { division_template = { name = "Mercenary of Gard Service" is_locked = yes priority = 2 regiments = { Special_Forces = { x = 0 y = 0 } Special_Forces = { x = 0 y = 1 } Special_Forces = { x = 0 y = 2 } Special_Forces = { x = 0 y = 3 } } support = { H_Engi_Comp = { x = 0 y = 0 } L_Recce_Comp = { x = 0 y = 1 } } } random_owned_controlled_state = { limit = { ROOT = { has_full_control_of_state = PREV } } create_unit = { division = "name = \"Mercenary of Gard Service\" division_template = \"Mercenary of Gard Service\" start_experience_factor = 0.8" owner = ROOT } } } set_temp_variable = { treasury_change = -2.5 } modify_treasury_effect = yes if = { limit = { NOT = { original_tag = BLR } } hidden_effect = { BLR = { country_event = pmc_events.3 } } } BLR = { set_country_flag = gard_yes } activate_mission = pmc_gard } if = { limit = { check_variable = { v = 019 } } clr_country_pmc_flag = yes set_sel_pmc_units = yes hidden_effect = { division_template = { name = "Patriot Heavy Mechanized Unit" is_locked = yes priority = 2 regiments = { Arm_Inf_Bat = { x = 0 y = 0 } Arm_Inf_Bat = { x = 0 y = 1 } Arm_Inf_Bat = { x = 0 y = 2 } Arm_Inf_Bat = { x = 1 y = 0 } Arm_Inf_Bat = { x = 1 y = 1 } Arm_Inf_Bat = { x = 1 y = 2 } } support = { armor_Comp = { x = 0 y = 0 } Arm_Recce_Comp = { x = 0 y = 1 } H_Engi_Comp = { x = 0 y = 2 } } } random_owned_controlled_state = { limit = { ROOT = { has_full_control_of_state = PREV } } create_unit = { division = "name = \"Patriot Heavy Mechanized Unit\" division_template = \"Patriot Heavy Mechanized Unit\" start_experience_factor = 1.0" owner = ROOT } } } set_temp_variable = { treasury_change = -5.5 } modify_treasury_effect = yes if = { limit = { NOT = { original_tag = SOV } } hidden_effect = { SOV = { country_event = pmc_events.2 } } } SOV = { set_country_flag = patriot_yes } activate_mission = pmc_patriot } if = { limit = { check_variable = { v = 020 } } clr_country_pmc_flag = yes set_sel_pmc_units = yes hidden_effect = { division_template = { name = "Mercenary of Dewe Security Services" is_locked = yes priority = 2 regiments = { Special_Forces = { x = 0 y = 0 } Special_Forces = { x = 0 y = 1 } Special_Forces = { x = 0 y = 2 } Special_Forces = { x = 0 y = 3 } } support = { H_Engi_Comp = { x = 0 y = 0 } L_Recce_Comp = { x = 0 y = 1 } } } random_owned_controlled_state = { limit = { ROOT = { has_full_control_of_state = PREV } } create_unit = { division = "name = \"Mercenary of Dewe Security Services\" division_template = \"Mercenary of Dewe Security Services\" start_experience_factor = 0.3" owner = ROOT } } } set_temp_variable = { treasury_change = -3.5 } modify_treasury_effect = yes if = { limit = { NOT = { original_tag = CHI } } hidden_effect = { CHI = { country_event = pmc_events.4 } } } CHI = { set_country_flag = dewe_yes } activate_mission = pmc_dewe } if = { limit = { check_variable = { v = 021 } } clr_country_pmc_flag = yes set_sel_pmc_units = yes set_temp_variable = { treasury_change = -2.5 } modify_treasury_effect = yes if = { limit = { OR = { has_idea = large_power has_idea = great_power has_idea = super_power } } add_timed_idea = { idea = pmc_over_idea1 days = 365 } } else = { add_timed_idea = { idea = pmc_over_idea days = 365 } } if = { limit = { NOT = { original_tag = CHI } } hidden_effect = { CHI = { country_event = pmc_events.3 } } } CHI = { set_country_flag = over_yes } activate_mission = pmc_over } if = { limit = { check_variable = { v = 022 } } clr_country_pmc_flag = yes set_sel_pmc_units = yes if = { limit = { OR = { has_idea = large_power has_idea = great_power has_idea = super_power } } add_timed_idea = { idea = pmc_front_idea1 days = 365 } } else = { add_timed_idea = { idea = pmc_front_idea days = 365 } } add_equipment_to_stockpile = { type = infantry_weapons_1 amount = 1000 producer = CHI } add_equipment_to_stockpile = { type = cnc_equipment_type amount = 500 producer = CHI } set_temp_variable = { treasury_change = -7.5 } modify_treasury_effect = yes if = { limit = { NOT = { original_tag = CHI } } hidden_effect = { CHI = { country_event = pmc_events.2 } } } CHI = { set_country_flag = front_yes } activate_mission = pmc_front } if = { limit = { check_variable = { v = 023 } } clr_country_pmc_flag = yes set_sel_pmc_units = yes hidden_effect = { division_template = { name = "Redut PMC Battalion" regiments = { L_Inf_Bat = { x = 0 y = 0 } L_Inf_Bat = { x = 0 y = 1 } L_Inf_Bat = { x = 0 y = 2 } L_Inf_Bat = { x = 0 y = 3 } Arty_Bat = { x = 0 y = 4 } L_Inf_Bat = { x = 1 y = 0 } L_Inf_Bat = { x = 1 y = 1 } L_Inf_Bat = { x = 1 y = 2 } L_Inf_Bat = { x = 1 y = 3 } Arty_Bat = { x = 1 y = 4 } } support = { L_Recce_Comp = { x = 0 y = 0 } L_Engi_Comp = { x = 0 y = 1 } } priority = 2 } random_owned_controlled_state = { limit = { ROOT = { has_full_control_of_state = PREV } } create_unit = { division = "name = \"Redut PMC Battalion\" division_template = \"Redut PMC Battalion\" start_experience_factor = 1.0" owner = ROOT } } } set_temp_variable = { treasury_change = -5.5 } modify_treasury_effect = yes if = { limit = { NOT = { original_tag = SOV } } hidden_effect = { SOV = { country_event = pmc_events.2 } } } SOV = { set_country_flag = redut_yes } activate_mission = pmc_redut } if = { limit = { check_variable = { v = 024 } } clr_country_pmc_flag = yes set_sel_pmc_units = yes if = { limit = { OR = { has_idea = large_power has_idea = great_power has_idea = super_power } } add_timed_idea = { idea = pmc_gazprom_idea1 days = 365 } } else = { add_timed_idea = { idea = pmc_gazprom_idea days = 365 } } hidden_effect = { division_template = { name = "Gazprom PMC Battalion" regiments = { L_Inf_Bat = { x = 0 y = 0 } L_Inf_Bat = { x = 0 y = 1 } L_Inf_Bat = { x = 0 y = 2 } L_Inf_Bat = { x = 0 y = 3 } L_Inf_Bat = { x = 1 y = 0 } L_Inf_Bat = { x = 1 y = 1 } } support = { L_Recce_Comp = { x = 0 y = 0 } L_Engi_Comp = { x = 0 y = 1 } } priority = 2 } random_owned_controlled_state = { limit = { ROOT = { has_full_control_of_state = PREV } } create_unit = { division = "name = \"Gazprom PMC Battalion\" division_template = \"Gazprom PMC Battalion\" start_experience_factor = 0.3" owner = ROOT } } } set_temp_variable = { treasury_change = -5.5 } modify_treasury_effect = yes if = { limit = { NOT = { original_tag = SOV } } hidden_effect = { SOV = { country_event = pmc_events.2 } } } SOV = { set_country_flag = gazprom_yes } activate_mission = pmc_gazprom } if = { limit = { check_variable = { v = 025 } } clr_country_pmc_flag = yes set_sel_pmc_units = yes hidden_effect = { division_template = { name = "Iron Navy PMC Battalion" regiments = { L_Inf_Bat = { x = 0 y = 0 } L_Inf_Bat = { x = 0 y = 1 } } support = { L_Recce_Comp = { x = 0 y = 0 } L_Engi_Comp = { x = 0 y = 1 } } priority = 2 } random_owned_controlled_state = { limit = { ROOT = { has_full_control_of_state = PREV } } create_unit = { division = "name = \"Iron Navy PMC Battalion\" division_template = \"Iron Navy PMC Battalion\" start_experience_factor = 0.1" owner = ROOT } } } set_temp_variable = { treasury_change = -1.5 } modify_treasury_effect = yes if = { limit = { NOT = { original_tag = EST } } hidden_effect = { EST = { country_event = pmc_events.6 } } } EST = { set_country_flag = iron_yes } activate_mission = pmc_iron } if = { limit = { check_variable = { v = 026 } } clr_country_pmc_flag = yes set_sel_pmc_units = yes hidden_effect = { division_template = { name = "Sheriff PMC Battalion" regiments = { L_Inf_Bat = { x = 0 y = 0 } L_Inf_Bat = { x = 0 y = 1 } } support = { L_Recce_Comp = { x = 0 y = 0 } L_Engi_Comp = { x = 0 y = 1 } } priority = 2 } random_owned_controlled_state = { limit = { ROOT = { has_full_control_of_state = PREV } } create_unit = { division = "name = \"Sheriff PMC Battalion\" division_template = \"Sheriff PMC Battalion\" start_experience_factor = 0.1" owner = ROOT } } } set_temp_variable = { treasury_change = -1.5 } modify_treasury_effect = yes if = { limit = { NOT = { original_tag = PMR } } hidden_effect = { PMR = { country_event = pmc_events.6 } } } PMR = { set_country_flag = sheriff_yes } activate_mission = pmc_sheriff } if = { limit = { check_variable = { v = 027 } } clr_country_pmc_flag = yes set_sel_pmc_units = yes if = { limit = { OR = { has_idea = large_power has_idea = great_power has_idea = super_power } } add_timed_idea = { idea = pmc_lukoil_idea1 days = 365 } } else = { add_timed_idea = { idea = pmc_lukoil_idea days = 365 } } hidden_effect = { division_template = { name = "Lukoil PMC Battalion" regiments = { L_Inf_Bat = { x = 0 y = 0 } L_Inf_Bat = { x = 0 y = 1 } L_Inf_Bat = { x = 0 y = 2 } L_Inf_Bat = { x = 0 y = 3 } L_Inf_Bat = { x = 1 y = 0 } L_Inf_Bat = { x = 1 y = 1 } } support = { L_Recce_Comp = { x = 0 y = 0 } L_Engi_Comp = { x = 0 y = 1 } } priority = 2 } random_owned_controlled_state = { limit = { ROOT = { has_full_control_of_state = PREV } } create_unit = { division = "name = \"Lukoil PMC Battalion\" division_template = \"Lukoil PMC Battalion\" start_experience_factor = 0.1" owner = ROOT } } } set_temp_variable = { treasury_change = -5.5 } modify_treasury_effect = yes if = { limit = { NOT = { original_tag = SOV } } hidden_effect = { SOV = { country_event = pmc_events.2 } } } SOV = { set_country_flag = lukoil_create } activate_mission = pmc_lukoil } if = { limit = { check_variable = { v = 028 } } clr_country_pmc_flag = yes set_sel_pmc_units = yes if = { limit = { OR = { has_idea = large_power has_idea = great_power has_idea = super_power } } add_timed_idea = { idea = pmc_rosneft_idea1 days = 365 } } else = { add_timed_idea = { idea = pmc_rosneft_idea days = 365 } } hidden_effect = { division_template = { name = "Rosneft PMC Battalion" regiments = { L_Inf_Bat = { x = 0 y = 0 } L_Inf_Bat = { x = 0 y = 1 } L_Inf_Bat = { x = 0 y = 2 } L_Inf_Bat = { x = 0 y = 3 } L_Inf_Bat = { x = 1 y = 0 } L_Inf_Bat = { x = 1 y = 1 } } support = { L_Recce_Comp = { x = 0 y = 0 } L_Engi_Comp = { x = 0 y = 1 } } priority = 2 } random_owned_controlled_state = { limit = { ROOT = { has_full_control_of_state = PREV } } create_unit = { division = "name = \"Rosneft PMC Battalion\" division_template = \"Rosneft PMC Battalion\" start_experience_factor = 0.1" owner = ROOT } } } set_temp_variable = { treasury_change = -5.5 } modify_treasury_effect = yes if = { limit = { NOT = { original_tag = SOV } } hidden_effect = { SOV = { country_event = pmc_events.2 } } } SOV = { set_country_flag = rosneft_yes } activate_mission = pmc_rosneft } if = { limit = { check_variable = { v = 029 } } clr_country_pmc_flag = yes set_sel_pmc_units = yes if = { limit = { OR = { has_idea = large_power has_idea = great_power has_idea = super_power } } add_timed_idea = { idea = pmc_sberbank_idea1 days = 365 } } else = { add_timed_idea = { idea = pmc_sberbank_idea days = 365 } } hidden_effect = { division_template = { name = "Sber PMC Battalion" regiments = { L_Inf_Bat = { x = 0 y = 0 } L_Inf_Bat = { x = 0 y = 1 } L_Inf_Bat = { x = 0 y = 2 } L_Inf_Bat = { x = 0 y = 3 } L_Inf_Bat = { x = 1 y = 0 } L_Inf_Bat = { x = 1 y = 1 } } support = { L_Recce_Comp = { x = 0 y = 0 } L_Engi_Comp = { x = 0 y = 1 } } priority = 2 } random_owned_controlled_state = { limit = { ROOT = { has_full_control_of_state = PREV } } create_unit = { division = "name = \"Sber PMC Battalion\" division_template = \"Sber PMC Battalion\" start_experience_factor = 0.1" owner = ROOT } } } set_temp_variable = { treasury_change = -5.5 } modify_treasury_effect = yes if = { limit = { NOT = { original_tag = SOV } } hidden_effect = { SOV = { country_event = pmc_events.2 } } } SOV = { set_country_flag = sberbank_yes } activate_mission = pmc_sberbank } if = { limit = { check_variable = { v = 030 } } clr_country_pmc_flag = yes set_sel_pmc_units = yes if = { limit = { OR = { has_idea = large_power has_idea = great_power has_idea = super_power } } add_timed_idea = { idea = pmc_vtb_idea1 days = 365 } } else = { add_timed_idea = { idea = pmc_vtb_idea days = 365 } } hidden_effect = { division_template = { name = "Vtb PMC Battalion" regiments = { L_Inf_Bat = { x = 0 y = 0 } L_Inf_Bat = { x = 0 y = 1 } L_Inf_Bat = { x = 0 y = 2 } L_Inf_Bat = { x = 0 y = 3 } L_Inf_Bat = { x = 1 y = 0 } L_Inf_Bat = { x = 1 y = 1 } } support = { L_Recce_Comp = { x = 0 y = 0 } L_Engi_Comp = { x = 0 y = 1 } } priority = 2 } random_owned_controlled_state = { limit = { ROOT = { has_full_control_of_state = PREV } } create_unit = { division = "name = \"Vtb PMC Battalion\" division_template = \"Vtb PMC Battalion\" start_experience_factor = 0.1" owner = ROOT } } } set_temp_variable = { treasury_change = -5.5 } modify_treasury_effect = yes if = { limit = { NOT = { original_tag = SOV } } hidden_effect = { SOV = { country_event = pmc_events.2 } } } SOV = { set_country_flag = vtb_yes } activate_mission = pmc_vtb } if = { limit = { is_ai = yes } set_country_flag = { flag = ai_recent_pmc_select days = 120 value = 1 } } international_systems_update = yes } } } is_un_sc_dynamic_lists = { context_type = player_context parent_scripted_gui = MD_UN_SC_gui window_name = "IS_UN_SC_container" dirty = global.international_systems_updated visible = { check_variable = { var_open_MD_un_council = 2 } check_variable = { var_open_MD_UN_gui = 2 } has_country_flag = open_MD_countrymissilesview } dynamic_lists = { list_of_council_members = { array = global.security_council_members entry_container = IS_UN_SC_members_list } list_of_permanant_members = { array = global.p5_sc_members entry_container = IS_UN_SC_permanant_members_list } list_of_sc_yes_votes = { array = global.security_council_vote_yes entry_container = IS_UN_SC_yes_vote_list change_scope = yes } list_of_sc_no_votes = { array = global.security_council_vote_no entry_container = IS_UN_SC_no_vote_list change_scope = yes } list_of_sc_abstain = { array = global.security_council_vote_abstain entry_container = IS_UN_SC_abstain_list change_scope = yes } } triggers = { name_of_nation_button_visible = { NOT = { is_in_array = { global.p5_sc_members = v } } } is_un_sc_vote_yes_button_click_enabled = { NOT = { tag = ROOT } custom_trigger_tooltip = { tooltip = un_sc_not_abstaining_tt NOT = { is_in_array = { global.security_council_vote_abstain = ROOT } } } custom_trigger_tooltip = { tooltip = un_sc_nation_not_in_array_tt NOT = { is_in_array = { global.security_council_vote_yes = ROOT } } } custom_trigger_tooltip = { tooltip = un_voting_has_not_been_swayed NOT = { has_country_flag = has_had_current_un_sc_vote_swayed } } influence_higher_40 = yes custom_trigger_tooltip = { tooltip = pp_influence_spend_warning always = yes } } is_un_sc_vote_no_button_click_enabled = { NOT = { tag = ROOT } custom_trigger_tooltip = { tooltip = un_sc_not_abstaining_tt NOT = { is_in_array = { global.security_council_vote_abstain = ROOT } } } custom_trigger_tooltip = { tooltip = un_sc_nation_not_in_array_tt NOT = { is_in_array = { global.security_council_vote_no = ROOT } } } custom_trigger_tooltip = { tooltip = un_voting_has_not_been_swayed NOT = { has_country_flag = has_had_current_un_sc_vote_swayed } } influence_higher_40 = yes custom_trigger_tooltip = { tooltip = pp_influence_spend_warning always = yes } } is_un_sc_vote_abstain_button_click_enabled = { NOT = { tag = ROOT } custom_trigger_tooltip = { tooltip = un_sc_nation_not_in_array_tt NOT = { is_in_array = { global.security_council_vote_abstain = ROOT } } } custom_trigger_tooltip = { tooltip = un_voting_has_not_been_swayed NOT = { has_country_flag = has_had_current_un_sc_vote_swayed } } influence_higher_40 = yes custom_trigger_tooltip = { tooltip = pp_influence_spend_warning always = yes } } } effects = { un_sc_show_pending_votes_button_click = { if = { limit = { has_country_flag = show_sc_vote_view } clr_country_flag = show_sc_vote_view } else = { set_country_flag = show_sc_vote_view } international_systems_update = yes } is_un_sc_vote_yes_button_click = { set_temp_variable = { percent_change = -10 } ROOT = { set_variable = { sway_target = PREV } set_variable = { current_vote_sway = 2 } country_event = UNSC.200 } change_influence_percentage = yes custom_effect_tooltip = un_sc_sway_vote_no_tt international_systems_update = yes } is_un_sc_vote_yes_button_right_click = { set_temp_variable = { percent_change = -5 } ROOT = { set_variable = { sway_target = PREV } set_variable = { current_vote_sway = 3 } country_event = UNSC.200 } change_influence_percentage = yes custom_effect_tooltip = un_sc_sway_vote_abstain_tt international_systems_update = yes } is_un_sc_vote_no_button_click = { set_temp_variable = { percent_change = -10 } ROOT = { set_variable = { sway_target = PREV } set_variable = { current_vote_sway = 1 } country_event = UNSC.200 } change_influence_percentage = yes custom_effect_tooltip = un_sc_sway_vote_yes_tt international_systems_update = yes } is_un_sc_vote_no_button_right_click = { set_temp_variable = { percent_change = -5 } ROOT = { set_variable = { sway_target = PREV } set_variable = { current_vote_sway = 3 } country_event = UNSC.200 } change_influence_percentage = yes custom_effect_tooltip = un_sc_sway_vote_abstain_tt international_systems_update = yes } is_un_sc_vote_abstain_button_click = { set_temp_variable = { percent_change = -10 } ROOT = { set_variable = { sway_target = PREV } set_variable = { current_vote_sway = 1 } country_event = UNSC.200 } change_influence_percentage = yes custom_effect_tooltip = un_sc_sway_vote_yes_tt international_systems_update = yes } is_un_sc_vote_abstain_button_right_click = { set_temp_variable = { percent_change = -10 } ROOT = { set_variable = { sway_target = PREV } set_variable = { current_vote_sway = 2 } country_event = UNSC.200 } change_influence_percentage = yes custom_effect_tooltip = un_sc_sway_vote_no_tt international_systems_update = yes } } properties = { name_of_nation_button = { image = "[?global.security_council_members^i.GetFlag]" } name_of_p5_nation_button = { image = "[?global.p5_sc_members^i.GetFlag]" } is_un_sc_vote_yes_button = { image = "[?THIS.GetFlag]" } is_un_sc_vote_no_button = { image = "[?THIS.GetFlag]" } is_un_sc_vote_abstain_button = { image = "[?THIS.GetFlag]" } } } is_un_sc_selection_dynamic_lists = { context_type = player_context parent_scripted_gui = MD_UN_SC_gui window_name = "IS_UN_SC_Sanctions_container" dirty = global.international_systems_updated visible = { check_variable = { var_open_MD_un_council = 2 } check_variable = { var_open_MD_UN_gui = 2 } has_country_flag = open_MD_countrymissilesview is_on_un_sec_council = yes } dynamic_lists = { list_of_action_nations = { array = sc_selected_nations_list entry_container = IS_UN_SC_nation_list change_scope = yes } } triggers = { is_un_sc_propose_action_button_click_enabled = { ROOT = { check_variable = { sc_selected_action > 0 } has_political_power > 250 has_offensive_war = no NOT = { has_war_with = PREV } } custom_trigger_tooltip = { tooltip = no_pending_unsc_actions_against_tt NOT = { has_global_flag = sc_action_against@THIS } } } } effects = { is_un_sc_propose_action_button_click = { ROOT = { add_political_power = -250 set_temp_variable = { sc_new_vote_type = sc_selected_action } set_temp_variable = { sc_new_vote_nation = PREV } set_global_flag = sc_action_against@PREV update_sc_vote = yes } international_systems_update = yes } } } is_un_sc_pending_vote_dynamic_lists = { context_type = player_context parent_scripted_gui = MD_unsc_pop_out_window window_name = "IS_UN_SC_pending_votes_container" dirty = global.international_systems_updated visible = { check_variable = { var_open_MD_un_council = 2 } check_variable = { var_open_MD_UN_gui = 2 } has_country_flag = open_MD_countrymissilesview has_country_flag = show_sc_vote_view } dynamic_lists = { list_of_pending_sc_votes = { array = global.sc_vote_nation_tracker entry_container = IS_UN_SC_pending_vote_list } } triggers = { is_un_sc_manipulate_vote_button_click_enabled = { set_temp_variable = { disp_var = global.sc_vote_type_tracker^i } meta_trigger = { text = { custom_trigger_tooltip = { tooltip = un_sc_vote_track_[DISP] always = yes } } DISP = "[?disp_var]" } has_political_power > 150 } } effects = { is_un_sc_manipulate_vote_button_click = { custom_effect_tooltip = un_sc_manipulate_vote_tt set_temp_variable = { nation_hold = global.sc_vote_nation_tracker^i } set_temp_variable = { type_hold = global.sc_vote_type_tracker^i } set_temp_variable = { index_track = i } manipulate_sc_vote_front = yes add_political_power = -150 international_systems_update = yes } is_un_sc_manipulate_vote_button_right_click = { custom_effect_tooltip = un_sc_manipulate_vote_tt set_temp_variable = { nation_hold = global.sc_vote_nation_tracker^i } set_temp_variable = { type_hold = global.sc_vote_type_tracker^i } set_temp_variable = { index_track = i } manipulate_sc_vote_rear = yes add_political_power = -150 international_systems_update = yes } } } is_un_ga_pending_vote_dynamic_lists = { context_type = player_context parent_scripted_gui = MD_unga_pop_out_window window_name = "IS_UN_GA_pending_votes_container" dirty = global.international_systems_updated visible = { check_variable = { var_open_MD_un_assembly = 2 } check_variable = { var_open_MD_UN_gui = 2 } has_country_flag = open_MD_countrymissilesview has_country_flag = show_ga_vote_list } dynamic_lists = { list_of_pending_ga_votes = { array = global.ga_vote_nation_tracker entry_container = IS_UN_GA_pending_vote_list } } triggers = { is_un_ga_manipulate_vote_button_click_enabled = { set_temp_variable = { disp_var = global.ga_vote_type_tracker^i } meta_trigger = { text = { custom_trigger_tooltip = { tooltip = un_ga_vote_track_[DISP] always = yes } } DISP = "[?disp_var]" } has_political_power > 150 } } effects = { is_un_ga_manipulate_vote_button_click = { custom_effect_tooltip = un_ga_manipulate_vote_tt set_temp_variable = { nation_hold = global.ga_vote_nation_tracker^i } set_temp_variable = { type_hold = global.ga_vote_type_tracker^i } set_temp_variable = { index_track = i } manipulate_ga_vote_front = yes add_political_power = -150 international_systems_update = yes } is_un_ga_manipulate_vote_button_right_click = { custom_effect_tooltip = un_ga_manipulate_vote_tt set_temp_variable = { nation_hold = global.ga_vote_nation_tracker^i } set_temp_variable = { type_hold = global.ga_vote_type_tracker^i } set_temp_variable = { index_track = i } manipulate_ga_vote_rear = yes add_political_power = -150 international_systems_update = yes } } } is_un_ga_yes_lists = { context_type = player_context parent_scripted_gui = MD_UN_GA_gui window_name = "IS_UN_GA_yes_vote_container" dirty = global.international_systems_updated visible = { check_variable = { var_open_MD_un_assembly = 2 } check_variable = { var_open_MD_UN_gui = 2 } has_country_flag = open_MD_countrymissilesview has_global_flag = current_ongoing_ga_vote } dynamic_lists = { list_of_ga_yes_votes = { array = global.general_assembly_vote_yes entry_container = IS_UN_GA_yes_vote_list change_scope = yes } } triggers = { is_un_ga_vote_yes_button_click_enabled = { NOT = { tag = ROOT } custom_trigger_tooltip = { tooltip = un_sc_not_abstaining_tt NOT = { is_in_array = { global.general_assembly_vote_abstain = ROOT } } } custom_trigger_tooltip = { tooltip = un_sc_nation_not_in_array_tt NOT = { is_in_array = { global.general_assembly_vote_yes = ROOT } } } custom_trigger_tooltip = { tooltip = un_voting_has_not_been_swayed NOT = { has_country_flag = has_had_current_un_ga_vote_swayed } } influence_higher_15 = yes } } effects = { is_un_ga_vote_yes_button_click = { set_temp_variable = { percent_change = -10 } ROOT = { set_variable = { sway_target = PREV } set_variable = { current_vote_sway = 2 } country_event = UN.200 } change_influence_percentage = yes custom_effect_tooltip = un_sc_sway_vote_no_tt international_systems_update = yes } is_un_ga_vote_yes_button_right_click = { set_temp_variable = { percent_change = -5 } ROOT = { set_variable = { sway_target = PREV } set_variable = { current_vote_sway = 3 } country_event = UN.200 } change_influence_percentage = yes custom_effect_tooltip = un_sc_sway_vote_abstain_tt international_systems_update = yes } } properties = { is_un_ga_vote_yes_button = { image = "[?THIS.GetFlag]" } } } is_un_ga_no_lists = { context_type = player_context parent_scripted_gui = MD_UN_GA_gui window_name = "IS_UN_GA_no_vote_container" dirty = global.international_systems_updated visible = { check_variable = { var_open_MD_un_assembly = 2 } check_variable = { var_open_MD_UN_gui = 2 } has_country_flag = open_MD_countrymissilesview has_global_flag = current_ongoing_ga_vote } triggers = { is_un_ga_vote_no_button_click_enabled = { NOT = { tag = ROOT } custom_trigger_tooltip = { tooltip = un_sc_not_abstaining_tt NOT = { is_in_array = { global.general_assembly_vote_abstain = ROOT } } } custom_trigger_tooltip = { tooltip = un_sc_nation_not_in_array_tt NOT = { is_in_array = { global.general_assembly_vote_no = ROOT } } } custom_trigger_tooltip = { tooltip = un_voting_has_not_been_swayed NOT = { has_country_flag = has_had_current_un_ga_vote_swayed } } influence_higher_15 = yes } } effects = { is_un_ga_vote_no_button_click = { set_temp_variable = { percent_change = -10 } ROOT = { set_variable = { sway_target = PREV } set_variable = { current_vote_sway = 1 } country_event = UN.200 } change_influence_percentage = yes custom_effect_tooltip = un_sc_sway_vote_yes_tt international_systems_update = yes } is_un_ga_vote_no_button_right_click = { set_temp_variable = { percent_change = -5 } ROOT = { set_variable = { sway_target = PREV } set_variable = { current_vote_sway = 3 } country_event = UN.200 } change_influence_percentage = yes custom_effect_tooltip = un_sc_sway_vote_abstain_tt international_systems_update = yes } } dynamic_lists = { list_of_ga_no_votes = { array = global.general_assembly_vote_no entry_container = IS_UN_GA_no_vote_list change_scope = yes } } properties = { is_un_ga_vote_no_button = { image = "[?THIS.GetFlag]" } } } is_un_ga_abstain_lists = { context_type = player_context parent_scripted_gui = MD_UN_GA_gui window_name = "IS_UN_GA_abstain_container" dirty = global.international_systems_updated visible = { check_variable = { var_open_MD_un_assembly = 2 } check_variable = { var_open_MD_UN_gui = 2 } has_country_flag = open_MD_countrymissilesview has_global_flag = current_ongoing_ga_vote } triggers = { is_un_ga_vote_abstain_button_click_enabled = { NOT = { tag = ROOT } custom_trigger_tooltip = { tooltip = un_sc_nation_not_in_array_tt NOT = { is_in_array = { global.general_assembly_vote_abstain = ROOT } } } custom_trigger_tooltip = { tooltip = un_voting_has_not_been_swayed NOT = { has_country_flag = has_had_current_un_ga_vote_swayed } } influence_higher_15 = yes } } effects = { is_un_ga_vote_abstain_button_click = { set_temp_variable = { percent_change = -10 } ROOT = { set_variable = { sway_target = PREV } set_variable = { current_vote_sway = 1 } country_event = UN.200 } change_influence_percentage = yes custom_effect_tooltip = un_sc_sway_vote_yes_tt international_systems_update = yes } is_un_ga_vote_abstain_button_right_click = { set_temp_variable = { percent_change = -10 } ROOT = { set_variable = { sway_target = PREV } set_variable = { current_vote_sway = 2 } country_event = UN.200 } change_influence_percentage = yes custom_effect_tooltip = un_sc_sway_vote_no_tt international_systems_update = yes } } dynamic_lists = { list_of_ga_abstain = { array = global.general_assembly_vote_abstain entry_container = IS_UN_GA_abstain_list change_scope = yes } } properties = { is_un_ga_vote_abstain_button = { image = "[?THIS.GetFlag]" } } } is_un_ga_nation_dynamic_lists = { context_type = player_context parent_scripted_gui = MD_unga_pop_out_window window_name = "IS_UN_GA_member_container" dirty = global.international_systems_updated visible = { check_variable = { var_open_MD_un_assembly = 2 } check_variable = { var_open_MD_UN_gui = 2 } has_country_flag = open_MD_countrymissilesview has_country_flag = show_full_ga_list } dynamic_lists = { list_of_ga_members = { array = global.UN_general_assembly entry_container = IS_UN_GA_members_list change_scope = yes } } } is_un_ga_propose_resolution_gui = { context_type = player_context parent_scripted_gui = MD_unga_pop_out_window window_name = "IS_UN_GA_propose_resolution_container" dirty = global.international_systems_updated visible = { check_variable = { var_open_MD_un_assembly = 2 } check_variable = { var_open_MD_UN_gui = 2 } has_country_flag = open_MD_countrymissilesview has_country_flag = show_ga_propose_resolutions } triggers = { un_ga_propose_poverty_reduction_button_click_enabled = { is_in_array = { global.UN_general_assembly = THIS } has_political_power > 150 custom_trigger_tooltip = { tooltip = no_active_resolution_of_this_type_tt NOT = { has_global_flag = proposed_ga_resolution_10 } } } un_ga_propose_food_security_button_click_enabled = { is_in_array = { global.UN_general_assembly = THIS } has_political_power > 150 custom_trigger_tooltip = { tooltip = no_active_resolution_of_this_type_tt NOT = { has_global_flag = proposed_ga_resolution_11 } } } un_ga_propose_global_health_button_click_enabled = { is_in_array = { global.UN_general_assembly = THIS } has_political_power > 150 custom_trigger_tooltip = { tooltip = no_active_resolution_of_this_type_tt NOT = { has_global_flag = proposed_ga_resolution_12 } } } un_ga_propose_education_button_click_enabled = { is_in_array = { global.UN_general_assembly = THIS } has_political_power > 150 custom_trigger_tooltip = { tooltip = no_active_resolution_of_this_type_tt NOT = { has_global_flag = proposed_ga_resolution_13 } } } un_ga_propose_clean_energy_button_click_enabled = { is_in_array = { global.UN_general_assembly = THIS } has_political_power > 150 custom_trigger_tooltip = { tooltip = no_active_resolution_of_this_type_tt NOT = { has_global_flag = proposed_ga_resolution_14 } } } un_ga_propose_economic_growth_button_click_enabled = { is_in_array = { global.UN_general_assembly = THIS } has_political_power > 150 custom_trigger_tooltip = { tooltip = no_active_resolution_of_this_type_tt NOT = { has_global_flag = proposed_ga_resolution_15 } } } un_ga_propose_infrastructure_button_click_enabled = { is_in_array = { global.UN_general_assembly = THIS } has_political_power > 150 custom_trigger_tooltip = { tooltip = no_active_resolution_of_this_type_tt NOT = { has_global_flag = proposed_ga_resolution_16 } } } un_ga_propose_reduced_inequality_button_click_enabled = { is_in_array = { global.UN_general_assembly = THIS } has_political_power > 150 custom_trigger_tooltip = { tooltip = no_active_resolution_of_this_type_tt NOT = { has_global_flag = proposed_ga_resolution_17 } } } un_ga_propose_climate_action_button_click_enabled = { is_in_array = { global.UN_general_assembly = THIS } has_political_power > 150 custom_trigger_tooltip = { tooltip = no_active_resolution_of_this_type_tt NOT = { has_global_flag = proposed_ga_resolution_18 } } } un_ga_propose_peace_institutions_button_click_enabled = { is_in_array = { global.UN_general_assembly = THIS } has_political_power > 150 custom_trigger_tooltip = { tooltip = no_active_resolution_of_this_type_tt NOT = { has_global_flag = proposed_ga_resolution_19 } } } un_ga_propose_trade_partnerships_button_click_enabled = { is_in_array = { global.UN_general_assembly = THIS } has_political_power > 150 custom_trigger_tooltip = { tooltip = no_active_resolution_of_this_type_tt NOT = { has_global_flag = proposed_ga_resolution_20 } } } un_ga_propose_digital_development_button_click_enabled = { is_in_array = { global.UN_general_assembly = THIS } has_political_power > 150 custom_trigger_tooltip = { tooltip = no_active_resolution_of_this_type_tt NOT = { has_global_flag = proposed_ga_resolution_21 } } } } effects = { un_ga_propose_poverty_reduction_button_click = { custom_effect_tooltip = unga_resolution_pass_effect_tt effect_tooltip = { add_timed_idea = { idea = unga_resolution_poverty_reduction days = 365 } } set_temp_variable = { ga_new_vote_type = 10 } set_temp_variable = { ga_new_vote_nation = THIS } update_ga_vote = yes add_political_power = -150 set_global_flag = { flag = proposed_ga_resolution_10 days = 365 value = 1 } international_systems_update = yes } un_ga_propose_food_security_button_click = { custom_effect_tooltip = unga_resolution_pass_effect_tt effect_tooltip = { add_timed_idea = { idea = unga_resolution_food_security days = 365 } } set_temp_variable = { ga_new_vote_type = 11 } set_temp_variable = { ga_new_vote_nation = THIS } update_ga_vote = yes add_political_power = -150 set_global_flag = { flag = proposed_ga_resolution_11 days = 365 value = 1 } international_systems_update = yes } un_ga_propose_global_health_button_click = { custom_effect_tooltip = unga_resolution_pass_effect_tt effect_tooltip = { add_timed_idea = { idea = unga_resolution_global_health days = 365 } } set_temp_variable = { ga_new_vote_type = 12 } set_temp_variable = { ga_new_vote_nation = THIS } update_ga_vote = yes add_political_power = -150 set_global_flag = { flag = proposed_ga_resolution_12 days = 365 value = 1 } international_systems_update = yes } un_ga_propose_education_button_click = { custom_effect_tooltip = unga_resolution_pass_effect_tt effect_tooltip = { add_timed_idea = { idea = unga_resolution_education_initiative days = 365 } } set_temp_variable = { ga_new_vote_type = 13 } set_temp_variable = { ga_new_vote_nation = THIS } update_ga_vote = yes add_political_power = -150 set_global_flag = { flag = proposed_ga_resolution_13 days = 365 value = 1 } international_systems_update = yes } un_ga_propose_clean_energy_button_click = { custom_effect_tooltip = unga_resolution_pass_effect_tt effect_tooltip = { add_timed_idea = { idea = unga_resolution_clean_energy days = 365 } } set_temp_variable = { ga_new_vote_type = 14 } set_temp_variable = { ga_new_vote_nation = THIS } update_ga_vote = yes add_political_power = -150 set_global_flag = { flag = proposed_ga_resolution_14 days = 365 value = 1 } international_systems_update = yes } un_ga_propose_economic_growth_button_click = { custom_effect_tooltip = unga_resolution_pass_effect_tt effect_tooltip = { add_timed_idea = { idea = unga_resolution_economic_growth days = 365 } } set_temp_variable = { ga_new_vote_type = 15 } set_temp_variable = { ga_new_vote_nation = THIS } update_ga_vote = yes add_political_power = -150 set_global_flag = { flag = proposed_ga_resolution_15 days = 365 value = 1 } international_systems_update = yes } un_ga_propose_infrastructure_button_click = { custom_effect_tooltip = unga_resolution_pass_effect_tt effect_tooltip = { add_timed_idea = { idea = unga_resolution_infrastructure days = 365 } } set_temp_variable = { ga_new_vote_type = 16 } set_temp_variable = { ga_new_vote_nation = THIS } update_ga_vote = yes add_political_power = -150 set_global_flag = { flag = proposed_ga_resolution_16 days = 365 value = 1 } international_systems_update = yes } un_ga_propose_reduced_inequality_button_click = { custom_effect_tooltip = unga_resolution_pass_effect_tt effect_tooltip = { add_timed_idea = { idea = unga_resolution_reduced_inequality days = 365 } } set_temp_variable = { ga_new_vote_type = 17 } set_temp_variable = { ga_new_vote_nation = THIS } update_ga_vote = yes add_political_power = -150 set_global_flag = { flag = proposed_ga_resolution_17 days = 365 value = 1 } international_systems_update = yes } un_ga_propose_climate_action_button_click = { custom_effect_tooltip = unga_resolution_pass_effect_tt effect_tooltip = { add_timed_idea = { idea = unga_resolution_climate_action days = 365 } } set_temp_variable = { ga_new_vote_type = 18 } set_temp_variable = { ga_new_vote_nation = THIS } update_ga_vote = yes add_political_power = -150 set_global_flag = { flag = proposed_ga_resolution_18 days = 365 value = 1 } international_systems_update = yes } un_ga_propose_peace_institutions_button_click = { custom_effect_tooltip = unga_resolution_pass_effect_tt effect_tooltip = { add_timed_idea = { idea = unga_resolution_peace_institutions days = 365 } } set_temp_variable = { ga_new_vote_type = 19 } set_temp_variable = { ga_new_vote_nation = THIS } update_ga_vote = yes add_political_power = -150 set_global_flag = { flag = proposed_ga_resolution_19 days = 365 value = 1 } international_systems_update = yes } un_ga_propose_trade_partnerships_button_click = { custom_effect_tooltip = unga_resolution_pass_effect_tt effect_tooltip = { add_timed_idea = { idea = unga_resolution_trade_partnerships days = 365 } } set_temp_variable = { ga_new_vote_type = 20 } set_temp_variable = { ga_new_vote_nation = THIS } update_ga_vote = yes add_political_power = -150 set_global_flag = { flag = proposed_ga_resolution_20 days = 365 value = 1 } international_systems_update = yes } un_ga_propose_digital_development_button_click = { custom_effect_tooltip = unga_resolution_pass_effect_tt effect_tooltip = { add_timed_idea = { idea = unga_resolution_digital_development days = 365 } } set_temp_variable = { ga_new_vote_type = 21 } set_temp_variable = { ga_new_vote_nation = THIS } update_ga_vote = yes add_political_power = -150 set_global_flag = { flag = proposed_ga_resolution_21 days = 365 value = 1 } international_systems_update = yes } } } #This is the base budget for being a UN member is_un_aid_contribution_dynamic_lists = { context_type = player_context parent_scripted_gui = MD_UN_aid_gui window_name = "IS_UN_aid_contribution_container" dirty = global.international_systems_updated visible = { has_country_flag = open_MD_countrymissilesview check_variable = { var_open_MD_UN_gui = 2 } check_variable = { var_open_MD_un_aid = 2 } } dynamic_lists = { list_of_aid_contributors = { array = global.UN_budget_contribution_tracker entry_container = IS_UN_aid_contribution_list change_scope = yes } } } #This is nations that are receiving UN aid is_un_aid_recipients_dynamic_lists = { context_type = player_context parent_scripted_gui = MD_UN_aid_gui window_name = "IS_UN_aid_recipients" dirty = global.international_systems_updated visible = { has_country_flag = open_MD_countrymissilesview check_variable = { var_open_MD_UN_gui = 2 } check_variable = { var_open_MD_un_aid = 2 } } dynamic_lists = { list_of_unesco_recipients = { array = global.unesco_recipients entry_container = IS_UN_aid_unesco_list change_scope = yes } list_of_unido_recipients = { array = global.unido_recipients entry_container = IS_UN_aid_ido_list change_scope = yes } list_of_uncdf_recipients = { array = global.uncdf_recipients entry_container = IS_UN_aid_cdf_list change_scope = yes } } } #This is for the individual programs is_un_aid_contributors_dynamic_lists = { context_type = player_context parent_scripted_gui = MD_UN_aid_gui window_name = "IS_UN_aid_contributors" dirty = global.international_systems_updated visible = { has_country_flag = open_MD_countrymissilesview check_variable = { var_open_MD_UN_gui = 2 } check_variable = { var_open_MD_un_aid = 2 } } dynamic_lists = { list_of_unesco_contributors = { array = global.un_aid_esco_contributor entry_container = IS_UN_aid_unesco_contributor_list change_scope = yes } list_of_unido_contributors = { array = global.un_aid_ido_contributor entry_container = IS_UN_aid_ido_contributor_list change_scope = yes } list_of_uncdf_contributors = { array = global.un_aid_cdf_contributor entry_container = IS_UN_aid_cdf_contributor_list change_scope = yes } } } international_state_unrecognized_countries_dynamic_lists = { context_type = player_context parent_scripted_gui = MD_UN_system_gui window_name = "IS_unrecognized_states_container" dirty = global.international_systems_updated visible = { check_variable = { var_open_MD_state_recog = 2 } check_variable = { var_open_MD_UN_gui = 2 } has_country_flag = open_MD_countrymissilesview } dynamic_lists = { list_of_unrecognized_states = { array = global.Unrecognised_States entry_container = IS_states_to_recognize_list } } triggers = { name_of_state_button_visible = { var:v = { has_idea = lacks_international_recognition } } name_of_state_button_click_enabled = { NOT = { tag = var:v } NOT = { has_war_with = var:v } has_civil_war = no } } effects = { name_of_state_button_click = { set_variable = { open_state = v } if = { limit = { is_ai = yes } set_country_flag = { flag = state_swap_slow_flag days = 120 value = 1 } } international_systems_update = yes } } } is_state_recog_sc_nations_dynamic_lists = { context_type = player_context parent_scripted_gui = MD_UN_system_gui window_name = "IS_p5_sc_nations_to_persuade_container" dirty = global.international_systems_updated visible = { has_idea = lacks_international_recognition check_variable = { var_open_MD_state_recog = 2 } check_variable = { var_open_MD_UN_gui = 2 } has_country_flag = open_MD_countrymissilesview } dynamic_lists = { list_of_p5_nations_current = { array = global.p5_sc_members entry_container = IS_states_to_persuade_list } } triggers = { name_of_sc_state_button_visible = { has_idea = lacks_international_recognition } name_of_sc_state_button_click_enabled = { NOT = { has_war_with = ROOT } var:v = { custom_trigger_tooltip = { tooltip = no_recent_recog_campaign_tt NOT = { has_country_flag = recognition_campaign_from@ROOT } } custom_trigger_tooltip = { tooltip = not_recog_checker_tt NOT = { is_in_array = { recognised_countries = ROOT } } } } has_political_power > 200 } } effects = { name_of_sc_state_button_click = { var:v = { set_country_flag = { flag = recognition_campaign_from@ROOT days = 210 value = 1 } add_opinion_modifier = { target = ROOT modifier = is_trying_to_win_our_favour } set_variable = { recog_requester = ROOT } hidden_effect = { country_event = recognition.20 } } add_political_power = -200 international_systems_update = yes } } } international_ct_orgs_dynamic_lists = { context_type = player_context parent_scripted_gui = MD_CT_system_gui window_name = "IS_CT_orgs_container" dirty = global.international_systems_updated visible = { has_country_flag = open_MD_countrymissilesview } dynamic_lists = { CT_terror_orgs_list = { array = global.active_terror_orgs entry_container = IS_CT_org_list } } effects = { name_of_org_button_click = { set_variable = { selected_org = i } international_systems_update = yes } } } international_ct_nations_dynamic_lists = { context_type = player_context parent_scripted_gui = MD_CT_system_gui window_name = "IS_CT_nations_container" dirty = global.international_systems_updated visible = { has_country_flag = open_MD_countrymissilesview } dynamic_lists = { CT_nations_list = { array = selected_ct_nations_list entry_container = IS_CT_nation_list change_scope = yes } } effects = { name_of_nation_button_click = { ROOT = { set_variable = { selected_ct_nation = PREV } international_systems_update = yes } } } } is_cyber_targted_dynamic_lists = { context_type = player_context parent_scripted_gui = MD_cyber_system_gui window_name = "IS_cyber_is_target_container" dirty = global.international_systems_updated visible = { has_country_flag = open_MD_countrymissilesview } dynamic_lists = { # Active targets — each entry shows intel, cooldown, and operation buttons cyber_potential_current_targets_gridbox = { array = cyber_active_targets entry_container = "cyber_active_target_entry" change_scope = yes } } triggers = { cyber_current_targets_list_button_right_click_enabled = { ROOT = { NOT = { is_in_array = { cyber_op_target_nation = PREV } } } } } effects = { cyber_current_targets_list_button_click = { custom_effect_tooltip = CYBER_CUR_OP_TARGET_TT ROOT = { set_variable = { current_cyber_nation_target = v } } international_systems_update = yes } cyber_current_targets_list_button_right_click = { log = "[GetDateText]: [Root.GetName]: cyber_remove_target index [?ROOT.cyber_active_targets^i] GUI" custom_effect_tooltip = CYBER_REMOVE_TARGET_TT set_temp_variable = { cyber_remove_target_var = THIS } if = { limit = { check_variable = { cyber_remove_target_var = ROOT.current_cyber_nation_target } } set_variable = { ROOT.current_cyber_nation_target = 0 } } ROOT = { cyber_remove_target = yes } } } } is_cyber_dynamic_lists = { context_type = player_context parent_scripted_gui = MD_cyber_system_gui window_name = "IS_cyber_targeting_container" dirty = global.international_systems_updated visible = { has_country_flag = open_MD_countrymissilesview } dynamic_lists = { # Potential targets browser — click to add a nation as a target cyber_potential_targets_gridbox = { array = ROOT.cyber_potential_targets entry_container = "cyber_potential_target_entry" change_scope = yes } } triggers = { # Add target button — enabled when slots are available cyber_potential_targets_list_button_click_enabled = { check_variable = { ROOT.cyber_active_targets^num < ROOT.cyber_max_targets } } } effects = { cyber_potential_targets_list_button_click = { log = "[GetDateText]: [Root.GetName]: cyber_add_target [This.GetName] GUI" ROOT = { set_variable = { current_cyber_nation_target = v } } cyber_add_target = yes } } } is_antarctica_dynamic_lists = { context_type = player_context parent_scripted_gui = MD_antarctica_system_gui window_name = "IS_antarctica_AT_container" dirty = global.missile_ui_updated visible = { check_variable = { var_open_MD_antarctica_gui = 2 } has_country_flag = open_MD_countrymissilesview } dynamic_lists = { list_of_AT_members = { array = global.at_regular_members entry_container = IS_ANTARCTICA_AT_members_list } } properties = { name_of_at_nation_button = { image = "[?global.at_regular_members^i.GetFlag]" } } } is_antarctica_consultative_dynamic_lists = { context_type = player_context parent_scripted_gui = MD_antarctica_system_gui window_name = "IS_antarctica_ATCP_container" dirty = global.missile_ui_updated visible = { check_variable = { var_open_MD_antarctica_gui = 2 } has_country_flag = open_MD_countrymissilesview } dynamic_lists = { list_of_ATCP_members = { array = global.atcp_members entry_container = IS_ANTARCTICA_ATCP_members_list } } properties = { name_of_atcp_nation_button = { image = "[?global.atcp_members^i.GetFlag]" } } } }