scripted_diplomatic_actions = { ### GNSS mil request_mil_gnss_access = { visible = { ROOT = { NOT = { is_in_array = { array = GNSS_mil_access_array value = PREV.id } } } } selectable = { custom_trigger_tooltip = { tooltip = REQUEST_MIL_GNSS_ACCESS_SELECTABLE_TT check_variable = { PREV.var_GNSS_mil_system_idx > 121 } OR = { check_variable = { PREV.var_GNSS_mil_system_idx = ROOT.var_GNSS_mil_system_idx } check_variable = { PREV.var_GNSS_mil_system_idx > ROOT.var_GNSS_mil_system_idx } } } } cost = 0 requires_acceptance = yes show_acceptance_on_action_button = yes icon = 22 #### ACTION LOCALISATION ### send_description = REQUEST_MIL_GNSS_ACCESS_LOC receive_description = REQUEST_MIL_GNSS_ACCESS_RECIEVER_LOC accept_title = REQUEST_MIL_GNSS_ACCESS_ACCEPTED_TITLE accept_description = REQUEST_MIL_GNSS_ACCESS_ACCEPTED_DESC reject_title = REQUEST_MIL_GNSS_ACCESS_REJECTED_TITLE reject_description = REQUEST_MIL_GNSS_ACCESS_REJECTED_DESC #### EFFECTS ### on_sent_effect = { ROOT = { set_variable = { pending_request_mil_gnss_access = PREV.id } } } complete_effect = { ROOT = { add_to_array = { array = PREV.GNSS_mil_treaty_array value = ROOT.id } add_to_array = { array = GNSS_mil_access_array value = PREV.id } add_to_array = { array = GNSS_mil_access_system_idx_array value = PREV.var_GNSS_mil_system_idx } add_access_GNSS_mil_vars = yes clear_variable = pending_request_mil_gnss_access } THIS = { country_event = satellites.9 } ROOT = { country_event = satellites.9 } } reject_effect = { ROOT = { clear_variable = pending_request_mil_gnss_access set_country_flag = { flag = recently_rejected_request_mil_gnss_access_@PREV value = 1 days = 270 } } set_country_flag = { flag = recently_rejected_request_mil_gnss_access_@ROOT value = 1 days = 270 } } #### AI SECTION ### ai_desire = { base = 0 modifier = { add = 10 ROOT = { is_ai = no } check_variable = { global.difficulty = 0 } } modifier = { add = 5 ROOT = { is_ai = no } check_variable = { global.difficulty = 1 } } modifier = { add = -5 ROOT = { is_ai = no } check_variable = { global.difficulty = 3 } } modifier = { add = -10 ROOT = { is_ai = no } check_variable = { global.difficulty = 4 } } modifier = { # Offer/request to allied and friendly nations add = 30 OR = { ROOT = { has_opinion = { target = PREV value > 149 } } AND = { ROOT = { has_opinion = { target = PREV value > 49 } } ROOT = { has_military_access_to = PREV } } AND = { ROOT = { has_opinion = { target = PREV value > 99 } } ROOT = { gives_military_access_to = PREV } } AND = { ROOT = { has_opinion = { target = PREV value > 49 } } has_volunteers_amount_from = { tag = ROOT count > 0 } } AND = { ROOT = { has_opinion = { target = PREV value > 49 } } ROOT = { has_volunteers_amount_from = { tag = PREV count > 0 } } } AND = { ROOT = { has_idea = NATO_member } has_idea = NATO_member } AND = { ROOT = { has_idea = EU_member } has_idea = EU_member } ROOT = { is_in_faction_with = PREV } has_war_together_with = ROOT AND = { ROOT = { original_tag = USA } has_idea = Major_Non_NATO_Ally } AND = { ROOT = { original_tag = USA } has_idea = NATO_member } AND = { ROOT = { original_tag = ENG } has_dynamic_modifier = { modifier = Commonwealth_member_modifier } } AND = { original_tag = ENG ROOT = { has_dynamic_modifier = { modifier = Commonwealth_member_modifier } } } AND = { ROOT = { original_tag = CHI } has_idea = CHI_sco_member } AND = { ROOT = { original_tag = CHI } has_idea = CHI_sco_member_mil } AND = { original_tag = CHI ROOT = { has_idea = CHI_sco_member } } AND = { original_tag = CHI ROOT = { has_idea = CHI_sco_member_mil } } } } modifier = { # Withhold from geopolitical adversaries and rivals add = -100 OR = { ROOT = { has_opinion = { target = PREV value < 150 } } has_war_with = ROOT is_justifying_wargoal_against = ROOT has_wargoal_against = ROOT AND = { ROOT = { is_in_faction = yes } is_in_faction = yes NOT = { is_in_faction_with = ROOT } } } } modifier = { add = 50 check_variable = { var_GNSS_mil_system_idx > ROOT.var_GNSS_mil_system_idx } } modifier = { add = -100 ROOT = { has_country_flag = recently_rejected_request_mil_gnss_access_@PREV } } modifier = { factor = 0 OR = { ROOT = { NOT = { check_variable = { pending_request_mil_gnss_access = 0 } } } ROOT = { has_country_flag = recently_rejected_request_mil_gnss_access_@PREV } } } modifier = { factor = 0 has_country_flag = MD_auto_reject_satellite_access } } ai_acceptance = { base_desire = { base = 0 modifier = { add = 10 ROOT = { is_ai = no } check_variable = { global.difficulty = 0 } } modifier = { add = 5 ROOT = { is_ai = no } check_variable = { global.difficulty = 1 } } modifier = { add = -5 ROOT = { is_ai = no } check_variable = { global.difficulty = 3 } } modifier = { add = -10 ROOT = { is_ai = no } check_variable = { global.difficulty = 4 } } } opinion_condition = { base = 0 modifier = { check_opinion_calculation = yes add = opinion_calculator } } military_cooperation_condition = { base = 0 modifier = { add = 15 OR = { AND = { THIS = { has_opinion = { target = ROOT value > 49 } } THIS = { has_military_access_to = ROOT } } AND = { THIS = { has_opinion = { target = ROOT value > 99 } } THIS = { gives_military_access_to = ROOT } } AND = { THIS = { has_opinion = { target = ROOT value > 49 } } OR = { ROOT = { has_volunteers_amount_from = { tag = THIS count > 0 } } THIS = { has_volunteers_amount_from = { tag = ROOT count > 0 } } } } } } } condition_four = { base = 0 modifier = { add = 20 THIS = { has_idea = NATO_member } ROOT = { has_idea = NATO_member } } } condition_five = { base = 0 modifier = { add = 15 THIS = { has_idea = EU_member } ROOT = { has_idea = EU_member } } } condition_six = { base = 0 modifier = { add = 25 THIS = { is_in_faction_with = ROOT } } } war_ally_condition = { base = 0 modifier = { add = 10 ROOT = { has_war_together_with = THIS } } } usa_ally_condition = { base = 0 modifier = { add = 15 THIS = { original_tag = USA } ROOT = { OR = { has_idea = Major_Non_NATO_Ally has_idea = NATO_member } } } } commonwealth_condition = { base = 0 modifier = { add = 15 THIS = { original_tag = ENG } ROOT = { has_dynamic_modifier = { modifier = Commonwealth_member_modifier } } } } sco_member_condition = { base = 0 modifier = { add = 15 THIS = { original_tag = CHI } ROOT = { OR = { has_idea = CHI_sco_member has_idea = CHI_sco_member_mil } } } } opposing_factions_condition = { base = 0 modifier = { add = -40 THIS = { is_in_faction = yes } ROOT = { is_in_faction = yes NOT = { is_in_faction_with = THIS } } } } war_condition = { base = 0 modifier = { ROOT = { has_war_together_with = PREV } add = 250 } modifier = { ROOT = { has_war_with = PREV } add = -250 } } wargoal_condition = { base = 0 modifier = { ROOT = { is_justifying_wargoal_against = PREV } add = -200 } modifier = { ROOT = { has_wargoal_against = PREV } add = -250 } } } } offer_mil_gnss_access = { visible = { ROOT = { NOT = { is_in_array = { array = GNSS_mil_treaty_array value = PREV.id } } } } selectable = { custom_trigger_tooltip = { tooltip = OFFER_MIL_GNSS_ACCESS_SELECTABLE_TT check_variable = { ROOT.var_GNSS_mil_system_idx > 121 } OR = { check_variable = { ROOT.var_GNSS_mil_system_idx = PREV.var_GNSS_mil_system_idx } check_variable = { ROOT.var_GNSS_mil_system_idx > PREV.var_GNSS_mil_system_idx } } } } cost = 0 requires_acceptance = yes show_acceptance_on_action_button = yes icon = 22 #### ACTION LOCALISATION ### send_description = OFFER_MIL_GNSS_ACCESS_LOC receive_description = OFFER_MIL_GNSS_ACCESS_RECIEVER_LOC accept_title = OFFER_MIL_GNSS_ACCESS_ACCEPTED_TITLE accept_description = OFFER_MIL_GNSS_ACCESS_ACCEPTED_DESC reject_title = OFFER_MIL_GNSS_ACCESS_REJECTED_TITLE reject_description = OFFER_MIL_GNSS_ACCESS_REJECTED_DESC #### EFFECTS ### on_sent_effect = { ROOT = { set_variable = { pending_offer_mil_gnss_access = PREV.id } } } complete_effect = { ROOT = { add_to_array = { array = ROOT.GNSS_mil_treaty_array value = PREV.id } add_to_array = { array = PREV.GNSS_mil_access_array value = ROOT.id } add_to_array = { array = PREV.GNSS_mil_access_system_idx_array value = ROOT.var_GNSS_mil_system_idx } PREV = { add_access_GNSS_mil_vars = yes } clear_variable = pending_offer_mil_gnss_access # Do Not Instant Revoke set_country_flag = { flag = recently_accepted_mil_gnss_@PREV value = 1 days = 270 } } THIS = { country_event = satellites.9 } ROOT = { country_event = satellites.9 } } reject_effect = { ROOT = { clear_variable = pending_offer_mil_gnss_access set_country_flag = { flag = recently_rejected_offer_mil_gnss_access_@PREV value = 1 days = 270 } } THIS = { set_country_flag = { flag = recently_rejected_offer_mil_gnss_access_@ROOT value = 1 days = 270 } } } #### AI SECTION ### ai_desire = { base = 0 modifier = { add = 10 ROOT = { is_ai = no } check_variable = { global.difficulty = 0 } } modifier = { add = 5 ROOT = { is_ai = no } check_variable = { global.difficulty = 1 } } modifier = { add = -5 ROOT = { is_ai = no } check_variable = { global.difficulty = 3 } } modifier = { add = -10 ROOT = { is_ai = no } check_variable = { global.difficulty = 4 } } modifier = { # Offer/request to allied and friendly nations add = 30 OR = { ROOT = { has_opinion = { target = PREV value > 149 } } AND = { ROOT = { has_opinion = { target = PREV value > 49 } } ROOT = { has_military_access_to = PREV } } AND = { ROOT = { has_opinion = { target = PREV value > 99 } } ROOT = { gives_military_access_to = PREV } } AND = { ROOT = { has_opinion = { target = PREV value > 49 } } has_volunteers_amount_from = { tag = ROOT count > 0 } } AND = { ROOT = { has_opinion = { target = PREV value > 49 } } ROOT = { has_volunteers_amount_from = { tag = PREV count > 0 } } } AND = { ROOT = { has_idea = NATO_member } has_idea = NATO_member } AND = { ROOT = { has_idea = EU_member } has_idea = EU_member } ROOT = { is_in_faction_with = PREV } has_war_together_with = ROOT AND = { ROOT = { original_tag = USA } has_idea = Major_Non_NATO_Ally } AND = { ROOT = { original_tag = USA } has_idea = NATO_member } AND = { ROOT = { original_tag = ENG } has_dynamic_modifier = { modifier = Commonwealth_member_modifier } } AND = { original_tag = ENG ROOT = { has_dynamic_modifier = { modifier = Commonwealth_member_modifier } } } AND = { ROOT = { original_tag = CHI } has_idea = CHI_sco_member } AND = { ROOT = { original_tag = CHI } has_idea = CHI_sco_member_mil } AND = { original_tag = CHI ROOT = { has_idea = CHI_sco_member } } AND = { original_tag = CHI ROOT = { has_idea = CHI_sco_member_mil } } } } modifier = { # Withhold from geopolitical adversaries and rivals add = -100 OR = { ROOT = { has_opinion = { target = PREV value < 150 } } has_war_with = ROOT is_justifying_wargoal_against = ROOT has_wargoal_against = ROOT AND = { ROOT = { is_in_faction = yes } is_in_faction = yes NOT = { is_in_faction_with = ROOT } } } } modifier = { add = -100 OR = { check_variable = { THIS.var_GNSS_mil_system_idx > ROOT.var_GNSS_mil_system_idx } check_variable = { THIS.var_GNSS_mil_system_idx = ROOT.var_GNSS_mil_system_idx } } } modifier = { factor = 0 OR = { ROOT = { NOT = { check_variable = { pending_offer_mil_gnss_access = 0 } } } ROOT = { has_country_flag = recently_rejected_offer_mil_gnss_access_@PREV } ROOT = { has_country_flag = recently_revoke_mil_gnss_access_@PREV } ROOT = { has_country_flag = recently_offer_mil_gnss_access_@PREV } } } } ai_acceptance = { base_desire = { base = 50 modifier = { add = 10 ROOT = { is_ai = no } check_variable = { global.difficulty = 0 } } modifier = { add = 5 ROOT = { is_ai = no } check_variable = { global.difficulty = 1 } } modifier = { add = -5 ROOT = { is_ai = no } check_variable = { global.difficulty = 3 } } modifier = { add = -10 ROOT = { is_ai = no } check_variable = { global.difficulty = 4 } } } opinion_condition = { base = 0 modifier = { check_opinion_calculation = yes add = opinion_calculator } } military_cooperation_condition = { base = 0 modifier = { add = 15 OR = { AND = { THIS = { has_opinion = { target = ROOT value > 49 } } THIS = { has_military_access_to = ROOT } } AND = { THIS = { has_opinion = { target = ROOT value > 99 } } THIS = { gives_military_access_to = ROOT } } AND = { THIS = { has_opinion = { target = ROOT value > 49 } } OR = { ROOT = { has_volunteers_amount_from = { tag = THIS count > 0 } } THIS = { has_volunteers_amount_from = { tag = ROOT count > 0 } } } } } } } condition_four = { base = 0 modifier = { add = 20 THIS = { has_idea = NATO_member } ROOT = { has_idea = NATO_member } } } condition_five = { base = 0 modifier = { add = 15 THIS = { has_idea = EU_member } ROOT = { has_idea = EU_member } } } condition_six = { base = 0 modifier = { add = 25 THIS = { is_in_faction_with = ROOT } } } war_ally_condition = { base = 0 modifier = { add = 10 ROOT = { has_war_together_with = THIS } } } usa_ally_condition = { base = 0 modifier = { add = 15 THIS = { original_tag = USA } ROOT = { OR = { has_idea = Major_Non_NATO_Ally has_idea = NATO_member } } } } commonwealth_condition = { base = 0 modifier = { add = 15 THIS = { original_tag = ENG } ROOT = { has_dynamic_modifier = { modifier = Commonwealth_member_modifier } } } } sco_member_condition = { base = 0 modifier = { add = 15 THIS = { original_tag = CHI } ROOT = { OR = { has_idea = CHI_sco_member has_idea = CHI_sco_member_mil } } } } opposing_factions_condition = { base = 0 modifier = { add = -40 THIS = { is_in_faction = yes } ROOT = { is_in_faction = yes NOT = { is_in_faction_with = THIS } } } } war_condition = { base = 0 modifier = { ROOT = { has_war = yes } add = -50 } modifier = { ROOT = { has_war_together_with = PREV } add = 250 } modifier = { ROOT = { has_war_with = PREV } add = -250 } } wargoal_condition = { base = 0 modifier = { ROOT = { is_justifying_wargoal_against = PREV } add = -200 } modifier = { ROOT = { has_wargoal_against = PREV } add = -250 } } } } revoke_mil_gnss_access = { visible = { ROOT = { is_in_array = { array = GNSS_mil_treaty_array value = PREV.id } } } selectable = { always = yes } cost = 0 requires_acceptance = no show_acceptance_on_action_button = no icon = 22 #### ACTION LOCALISATION ### send_description = REVOKE_MIL_GNSS_ACCESS_LOC receive_description = REVOKE_MIL_GNSS_ACCESS_RECIEVER_LOC accept_title = REVOKE_MIL_GNSS_ACCESS_ACCEPTED_TITLE accept_description = REVOKE_MIL_GNSS_ACCESS_ACCEPTED_DESC reject_title = REVOKE_MIL_GNSS_ACCESS_REJECTED_TITLE reject_description = REVOKE_MIL_GNSS_ACCESS_REJECTED_DESC #### EFFECTS ### complete_effect = { ROOT = { remove_from_array = { array = ROOT.GNSS_mil_treaty_array value = PREV.id } PREV = { set_temp_variable = { temp_GNSS_mil_access_break = 0 } for_each_loop = { array = GNSS_mil_access_array value = v index = i break = temp_GNSS_mil_access_break if = { limit = { check_variable = { v = ROOT.id } } remove_from_array = { array = GNSS_mil_access_array index = i } set_temp_variable = { temp_GNSS_mil_access_break = 1 } } } add_access_GNSS_mil_vars = yes } set_country_flag = { flag = recently_revoke_mil_gnss_access_@PREV days = 180 value = 1 } } THIS = { country_event = satellites.9 } ROOT = { country_event = satellites.9 } } reject_effect = { ROOT = { set_country_flag = { flag = recently_revoke_mil_gnss_access_@PREV days = 180 value = 1 } } } #### AI SECTION ### ai_desire = { base = 0 modifier = { add = 10 ROOT = { is_ai = no } check_variable = { global.difficulty = 0 } } modifier = { add = 5 ROOT = { is_ai = no } check_variable = { global.difficulty = 1 } } modifier = { add = -5 ROOT = { is_ai = no } check_variable = { global.difficulty = 3 } } modifier = { add = -10 ROOT = { is_ai = no } check_variable = { global.difficulty = 4 } } modifier = { # Do not revoke from allied and friendly nations add = -100 OR = { ROOT = { has_opinion = { target = PREV value > 149 } } AND = { ROOT = { has_opinion = { target = PREV value > 49 } } ROOT = { has_military_access_to = PREV } } AND = { ROOT = { has_opinion = { target = PREV value > 99 } } ROOT = { gives_military_access_to = PREV } } AND = { ROOT = { has_opinion = { target = PREV value > 49 } } has_volunteers_amount_from = { tag = ROOT count > 0 } } AND = { ROOT = { has_opinion = { target = PREV value > 49 } } ROOT = { has_volunteers_amount_from = { tag = PREV count > 0 } } } AND = { ROOT = { has_idea = NATO_member } has_idea = NATO_member } AND = { ROOT = { has_idea = EU_member } has_idea = EU_member } ROOT = { is_in_faction_with = PREV } has_war_together_with = ROOT AND = { ROOT = { original_tag = USA } has_idea = Major_Non_NATO_Ally } AND = { ROOT = { original_tag = USA } has_idea = NATO_member } AND = { ROOT = { original_tag = ENG } has_dynamic_modifier = { modifier = Commonwealth_member_modifier } } AND = { original_tag = ENG ROOT = { has_dynamic_modifier = { modifier = Commonwealth_member_modifier } } } AND = { ROOT = { original_tag = CHI } has_idea = CHI_sco_member } AND = { ROOT = { original_tag = CHI } has_idea = CHI_sco_member_mil } AND = { original_tag = CHI ROOT = { has_idea = CHI_sco_member } } AND = { original_tag = CHI ROOT = { has_idea = CHI_sco_member_mil } } } } modifier = { # Revoke from geopolitical adversaries and rivals add = 300 OR = { ROOT = { has_opinion = { target = PREV value < 150 } } has_war_with = ROOT is_justifying_wargoal_against = ROOT has_wargoal_against = ROOT AND = { ROOT = { is_in_faction = yes } is_in_faction = yes NOT = { is_in_faction_with = ROOT } } } } modifier = { add = -100 ROOT = { has_country_flag = recently_revoke_mil_gnss_access_@PREV } } modifier = { add = -100 ROOT = { has_country_flag = recently_offer_mil_gnss_access_@PREV } } modifier = { factor = 0 OR = { ROOT = { has_country_flag = recently_accepted_mil_gnss_@PREV } THIS = { has_country_flag = recently_accepted_mil_gnss_@ROOT } } } } } ### GNSS civ request_civ_gnss_access = { visible = { ROOT = { NOT = { is_in_array = { array = GNSS_civ_access_array value = PREV.id } } } } selectable = { custom_trigger_tooltip = { tooltip = REQUEST_CIV_GNSS_ACCESS_SELECTABLE_TT check_variable = { PREV.var_GNSS_civ_system_idx > 121 } OR = { check_variable = { PREV.var_GNSS_civ_system_idx = ROOT.var_GNSS_civ_system_idx } check_variable = { PREV.var_GNSS_civ_system_idx > ROOT.var_GNSS_civ_system_idx } } } } cost = 0 requires_acceptance = yes show_acceptance_on_action_button = yes icon = 22 #### ACTION LOCALISATION ### send_description = REQUEST_CIV_GNSS_ACCESS_LOC receive_description = REQUEST_CIV_GNSS_ACCESS_RECIEVER_LOC accept_title = REQUEST_CIV_GNSS_ACCESS_ACCEPTED_TITLE accept_description = REQUEST_CIV_GNSS_ACCESS_ACCEPTED_DESC reject_title = REQUEST_CIV_GNSS_ACCESS_REJECTED_TITLE reject_description = REQUEST_CIV_GNSS_ACCESS_REJECTED_DESC #### EFFECTS ### on_sent_effect = { ROOT = { set_variable = { pending_request_civ_gnss_access = PREV.id } } } complete_effect = { ROOT = { add_to_array = { array = PREV.GNSS_civ_treaty_array value = ROOT.id } add_to_array = { array = GNSS_civ_access_array value = PREV.id } add_to_array = { array = GNSS_civ_access_system_idx_array value = PREV.var_GNSS_civ_system_idx } add_access_GNSS_civ_vars = yes clear_variable = pending_request_civ_gnss_access # Do Not Instant Revoke set_country_flag = { flag = recently_accepted_civ_gnss_@PREV value = 1 days = 270 } } THIS = { country_event = satellites.9 } ROOT = { country_event = satellites.9 } } reject_effect = { ROOT = { clear_variable = pending_request_civ_gnss_access set_country_flag = { flag = recently_rejected_request_civ_gnss_access_@PREV value = 1 days = 270 } } THIS = { set_country_flag = { flag = recently_rejected_request_civ_gnss_access_@ROOT value = 1 days = 270 } } } #### AI SECTION ### ai_desire = { base = 0 modifier = { add = 10 ROOT = { is_ai = no } check_variable = { global.difficulty = 0 } } modifier = { add = 5 ROOT = { is_ai = no } check_variable = { global.difficulty = 1 } } modifier = { add = -5 ROOT = { is_ai = no } check_variable = { global.difficulty = 3 } } modifier = { add = -10 ROOT = { is_ai = no } check_variable = { global.difficulty = 4 } } modifier = { # Offer/request to allied and friendly nations add = 30 OR = { ROOT = { has_opinion = { target = PREV value > 149 } } AND = { ROOT = { has_opinion = { target = PREV value > 49 } } ROOT = { has_military_access_to = PREV } } AND = { ROOT = { has_opinion = { target = PREV value > 99 } } ROOT = { gives_military_access_to = PREV } } AND = { ROOT = { has_opinion = { target = PREV value > 49 } } has_volunteers_amount_from = { tag = ROOT count > 0 } } AND = { ROOT = { has_opinion = { target = PREV value > 49 } } ROOT = { has_volunteers_amount_from = { tag = PREV count > 0 } } } AND = { ROOT = { has_idea = NATO_member } has_idea = NATO_member } AND = { ROOT = { has_idea = EU_member } has_idea = EU_member } ROOT = { is_in_faction_with = PREV } has_war_together_with = ROOT AND = { ROOT = { original_tag = USA } has_idea = Major_Non_NATO_Ally } AND = { ROOT = { original_tag = USA } has_idea = NATO_member } AND = { ROOT = { original_tag = ENG } has_dynamic_modifier = { modifier = Commonwealth_member_modifier } } AND = { original_tag = ENG ROOT = { has_dynamic_modifier = { modifier = Commonwealth_member_modifier } } } AND = { ROOT = { original_tag = CHI } has_idea = CHI_sco_member } AND = { ROOT = { original_tag = CHI } has_idea = CHI_sco_member_mil } AND = { original_tag = CHI ROOT = { has_idea = CHI_sco_member } } AND = { original_tag = CHI ROOT = { has_idea = CHI_sco_member_mil } } } } modifier = { # Withhold from geopolitical adversaries and rivals add = -100 OR = { ROOT = { has_opinion = { target = PREV value < 150 } } has_war_with = ROOT is_justifying_wargoal_against = ROOT has_wargoal_against = ROOT AND = { ROOT = { is_in_faction = yes } is_in_faction = yes NOT = { is_in_faction_with = ROOT } } } } modifier = { add = 50 check_variable = { PREV.var_GNSS_civ_system_idx > ROOT.var_GNSS_civ_system_idx } } modifier = { add = -100 ROOT = { has_country_flag = recently_rejected_request_civ_gnss_access_@PREV } } modifier = { factor = 0 OR = { ROOT = { NOT = { check_variable = { pending_request_civ_gnss_access = 0 } } } ROOT = { has_country_flag = recently_rejected_request_civ_gnss_access_@PREV } } } modifier = { factor = 0 has_country_flag = MD_auto_reject_satellite_access } } ai_acceptance = { base_desire = { base = 0 modifier = { add = 10 ROOT = { is_ai = no } check_variable = { global.difficulty = 0 } } modifier = { add = 5 ROOT = { is_ai = no } check_variable = { global.difficulty = 1 } } modifier = { add = -5 ROOT = { is_ai = no } check_variable = { global.difficulty = 3 } } modifier = { add = -10 ROOT = { is_ai = no } check_variable = { global.difficulty = 4 } } } opinion_condition = { base = 0 modifier = { check_opinion_calculation = yes add = opinion_calculator } } military_cooperation_condition = { base = 0 modifier = { add = 15 OR = { AND = { THIS = { has_opinion = { target = ROOT value > 49 } } THIS = { has_military_access_to = ROOT } } AND = { THIS = { has_opinion = { target = ROOT value > 99 } } THIS = { gives_military_access_to = ROOT } } AND = { THIS = { has_opinion = { target = ROOT value > 49 } } OR = { ROOT = { has_volunteers_amount_from = { tag = THIS count > 0 } } THIS = { has_volunteers_amount_from = { tag = ROOT count > 0 } } } } } } } condition_four = { base = 0 modifier = { add = 20 THIS = { has_idea = NATO_member } ROOT = { has_idea = NATO_member } } } condition_five = { base = 0 modifier = { add = 15 THIS = { has_idea = EU_member } ROOT = { has_idea = EU_member } } } condition_six = { base = 0 modifier = { add = 25 THIS = { is_in_faction_with = ROOT } } } war_ally_condition = { base = 0 modifier = { add = 10 ROOT = { has_war_together_with = THIS } } } usa_ally_condition = { base = 0 modifier = { add = 15 THIS = { original_tag = USA } ROOT = { OR = { has_idea = Major_Non_NATO_Ally has_idea = NATO_member } } } } commonwealth_condition = { base = 0 modifier = { add = 15 THIS = { original_tag = ENG } ROOT = { has_dynamic_modifier = { modifier = Commonwealth_member_modifier } } } } sco_member_condition = { base = 0 modifier = { add = 15 THIS = { original_tag = CHI } ROOT = { OR = { has_idea = CHI_sco_member has_idea = CHI_sco_member_mil } } } } opposing_factions_condition = { base = 0 modifier = { add = -40 THIS = { is_in_faction = yes } ROOT = { is_in_faction = yes NOT = { is_in_faction_with = THIS } } } } war_condition = { base = 0 modifier = { ROOT = { has_war_together_with = PREV } add = 250 } modifier = { ROOT = { has_war_with = PREV } add = -250 } } wargoal_condition = { base = 0 modifier = { ROOT = { is_justifying_wargoal_against = PREV } add = -200 } modifier = { ROOT = { has_wargoal_against = PREV } add = -250 } } } } offer_civ_gnss_access = { visible = { ROOT = { NOT = { is_in_array = { array = GNSS_civ_treaty_array value = PREV.id } } } } selectable = { custom_trigger_tooltip = { tooltip = OFFER_CIV_GNSS_ACCESS_SELECTABLE_TT check_variable = { ROOT.var_GNSS_civ_system_idx > 121 } OR = { check_variable = { ROOT.var_GNSS_civ_system_idx = PREV.var_GNSS_civ_system_idx } check_variable = { ROOT.var_GNSS_civ_system_idx > PREV.var_GNSS_civ_system_idx } } } } cost = 0 requires_acceptance = yes show_acceptance_on_action_button = yes icon = 22 #### ACTION LOCALISATION ### send_description = OFFER_CIV_GNSS_ACCESS_LOC receive_description = OFFER_CIV_GNSS_ACCESS_RECIEVER_LOC accept_title = OFFER_CIV_GNSS_ACCESS_ACCEPTED_TITLE accept_description = OFFER_CIV_GNSS_ACCESS_ACCEPTED_DESC reject_title = OFFER_CIV_GNSS_ACCESS_REJECTED_TITLE reject_description = OFFER_CIV_GNSS_ACCESS_REJECTED_DESC #### EFFECTS ### on_sent_effect = { ROOT = { set_variable = { pending_offer_civ_gnss_access = PREV.id } } } complete_effect = { ROOT = { add_to_array = { array = ROOT.GNSS_civ_treaty_array value = PREV.id } add_to_array = { array = PREV.GNSS_civ_access_array value = ROOT.id } add_to_array = { array = PREV.GNSS_civ_access_system_idx_array value = ROOT.var_GNSS_civ_system_idx } PREV = { add_access_GNSS_civ_vars = yes } clear_variable = pending_offer_civ_gnss_access # Do Not Instant Revoke set_country_flag = { flag = recently_accepted_civ_gnss_@PREV value = 1 days = 270 } } THIS = { country_event = satellites.9 } ROOT = { country_event = satellites.9 } } reject_effect = { ROOT = { clear_variable = pending_offer_civ_gnss_access set_country_flag = { flag = recently_rejected_offer_civ_gnss_access_@PREV value = 1 days = 270 } } THIS = { set_country_flag = { flag = recently_rejected_offer_civ_gnss_access_@ROOT value = 1 days = 270 } } } #### AI SECTION ### ai_desire = { base = 0 modifier = { add = 10 ROOT = { is_ai = no } check_variable = { global.difficulty = 0 } } modifier = { add = 5 ROOT = { is_ai = no } check_variable = { global.difficulty = 1 } } modifier = { add = -5 ROOT = { is_ai = no } check_variable = { global.difficulty = 3 } } modifier = { add = -10 ROOT = { is_ai = no } check_variable = { global.difficulty = 4 } } modifier = { # Offer/request to allied and friendly nations add = 30 OR = { ROOT = { has_opinion = { target = PREV value > 149 } } AND = { ROOT = { has_opinion = { target = PREV value > 49 } } ROOT = { has_military_access_to = PREV } } AND = { ROOT = { has_opinion = { target = PREV value > 99 } } ROOT = { gives_military_access_to = PREV } } AND = { ROOT = { has_opinion = { target = PREV value > 49 } } has_volunteers_amount_from = { tag = ROOT count > 0 } } AND = { ROOT = { has_opinion = { target = PREV value > 49 } } ROOT = { has_volunteers_amount_from = { tag = PREV count > 0 } } } AND = { ROOT = { has_idea = NATO_member } has_idea = NATO_member } AND = { ROOT = { has_idea = EU_member } has_idea = EU_member } ROOT = { is_in_faction_with = PREV } has_war_together_with = ROOT AND = { ROOT = { original_tag = USA } has_idea = Major_Non_NATO_Ally } AND = { ROOT = { original_tag = USA } has_idea = NATO_member } AND = { ROOT = { original_tag = ENG } has_dynamic_modifier = { modifier = Commonwealth_member_modifier } } AND = { original_tag = ENG ROOT = { has_dynamic_modifier = { modifier = Commonwealth_member_modifier } } } AND = { ROOT = { original_tag = CHI } has_idea = CHI_sco_member } AND = { ROOT = { original_tag = CHI } has_idea = CHI_sco_member_mil } AND = { original_tag = CHI ROOT = { has_idea = CHI_sco_member } } AND = { original_tag = CHI ROOT = { has_idea = CHI_sco_member_mil } } } } modifier = { # Withhold from geopolitical adversaries and rivals add = -100 OR = { ROOT = { has_opinion = { target = PREV value < 150 } } has_war_with = ROOT is_justifying_wargoal_against = ROOT has_wargoal_against = ROOT AND = { ROOT = { is_in_faction = yes } is_in_faction = yes NOT = { is_in_faction_with = ROOT } } } } modifier = { add = -100 OR = { check_variable = { THIS.var_GNSS_civ_system_idx > ROOT.var_GNSS_civ_system_idx } check_variable = { THIS.var_GNSS_civ_system_idx = ROOT.var_GNSS_civ_system_idx } } } modifier = { add = -100 ROOT = { has_country_flag = recently_offer_civ_gnss_access_@PREV } } modifier = { add = -100 ROOT = { has_country_flag = recently_revoke_civ_gnss_access_@PREV } } modifier = { add = -100 ROOT = { has_country_flag = recently_rejected_offer_civ_gnss_access_@PREV } } modifier = { factor = 0 OR = { ROOT = { NOT = { check_variable = { pending_offer_civ_gnss_access = 0 } } } ROOT = { has_country_flag = recently_rejected_offer_civ_gnss_access_@PREV } ROOT = { has_country_flag = recently_revoke_civ_gnss_access_@PREV } ROOT = { has_country_flag = recently_offer_civ_gnss_access_@PREV } } } } ai_acceptance = { base_desire = { base = 50 modifier = { add = 10 ROOT = { is_ai = no } check_variable = { global.difficulty = 0 } } modifier = { add = 5 ROOT = { is_ai = no } check_variable = { global.difficulty = 1 } } modifier = { add = -5 ROOT = { is_ai = no } check_variable = { global.difficulty = 3 } } modifier = { add = -10 ROOT = { is_ai = no } check_variable = { global.difficulty = 4 } } } opinion_condition = { base = 0 modifier = { check_opinion_calculation = yes add = opinion_calculator } } military_cooperation_condition = { base = 0 modifier = { add = 15 OR = { AND = { THIS = { has_opinion = { target = ROOT value > 49 } } THIS = { has_military_access_to = ROOT } } AND = { THIS = { has_opinion = { target = ROOT value > 99 } } THIS = { gives_military_access_to = ROOT } } AND = { THIS = { has_opinion = { target = ROOT value > 49 } } OR = { ROOT = { has_volunteers_amount_from = { tag = THIS count > 0 } } THIS = { has_volunteers_amount_from = { tag = ROOT count > 0 } } } } } } } condition_four = { base = 0 modifier = { add = 20 THIS = { has_idea = NATO_member } ROOT = { has_idea = NATO_member } } } condition_five = { base = 0 modifier = { add = 15 THIS = { has_idea = EU_member } ROOT = { has_idea = EU_member } } } condition_six = { base = 0 modifier = { add = 25 THIS = { is_in_faction_with = ROOT } } } war_ally_condition = { base = 0 modifier = { add = 10 ROOT = { has_war_together_with = THIS } } } usa_ally_condition = { base = 0 modifier = { add = 15 THIS = { original_tag = USA } ROOT = { OR = { has_idea = Major_Non_NATO_Ally has_idea = NATO_member } } } } commonwealth_condition = { base = 0 modifier = { add = 15 THIS = { original_tag = ENG } ROOT = { has_dynamic_modifier = { modifier = Commonwealth_member_modifier } } } } sco_member_condition = { base = 0 modifier = { add = 15 THIS = { original_tag = CHI } ROOT = { OR = { has_idea = CHI_sco_member has_idea = CHI_sco_member_mil } } } } opposing_factions_condition = { base = 0 modifier = { add = -40 THIS = { is_in_faction = yes } ROOT = { is_in_faction = yes NOT = { is_in_faction_with = THIS } } } } war_condition = { base = 0 modifier = { ROOT = { has_war = yes } add = -50 } modifier = { ROOT = { has_war_together_with = PREV } add = 250 } modifier = { ROOT = { has_war_with = PREV } add = -250 } } wargoal_condition = { base = 0 modifier = { ROOT = { is_justifying_wargoal_against = PREV } add = -200 } modifier = { ROOT = { has_wargoal_against = PREV } add = -250 } } } } revoke_civ_gnss_access = { visible = { ROOT = { is_in_array = { array = GNSS_civ_treaty_array value = PREV.id } } } selectable = { always = yes } cost = 0 requires_acceptance = no show_acceptance_on_action_button = no icon = 22 #### ACTION LOCALISATION ### send_description = REVOKE_CIV_GNSS_ACCESS_LOC receive_description = REVOKE_CIV_GNSS_ACCESS_RECIEVER_LOC accept_title = REVOKE_CIV_GNSS_ACCESS_ACCEPTED_TITLE accept_description = REVOKE_CIV_GNSS_ACCESS_ACCEPTED_DESC reject_title = REVOKE_CIV_GNSS_ACCESS_REJECTED_TITLE reject_description = REVOKE_CIV_GNSS_ACCESS_REJECTED_DESC #### EFFECTS ### complete_effect = { ROOT = { remove_from_array = { array = ROOT.GNSS_civ_treaty_array value = PREV.id } PREV = { set_temp_variable = { temp_GNSS_civ_access_break = 0 } for_each_loop = { array = GNSS_civ_access_array value = v index = i break = temp_GNSS_civ_access_break if = { limit = { check_variable = { v = ROOT.id } } remove_from_array = { array = GNSS_civ_access_array index = i } set_temp_variable = { temp_GNSS_civ_access_break = 1 } } } add_access_GNSS_civ_vars = yes } set_country_flag = { flag = recently_revoke_civ_gnss_access_@PREV days = 180 value = 1 } } THIS = { country_event = satellites.9 } ROOT = { country_event = satellites.9 } } reject_effect = { ROOT = { set_country_flag = { flag = recently_revoke_civ_gnss_access_@PREV days = 180 value = 1 } } } #### AI SECTION ### ai_desire = { base = 0 modifier = { add = 10 ROOT = { is_ai = no } check_variable = { global.difficulty = 0 } } modifier = { add = 5 ROOT = { is_ai = no } check_variable = { global.difficulty = 1 } } modifier = { add = -5 ROOT = { is_ai = no } check_variable = { global.difficulty = 3 } } modifier = { add = -10 ROOT = { is_ai = no } check_variable = { global.difficulty = 4 } } modifier = { # Do not revoke from allied and friendly nations add = -100 OR = { ROOT = { has_opinion = { target = PREV value > 149 } } AND = { ROOT = { has_opinion = { target = PREV value > 49 } } ROOT = { has_military_access_to = PREV } } AND = { ROOT = { has_opinion = { target = PREV value > 99 } } ROOT = { gives_military_access_to = PREV } } AND = { ROOT = { has_opinion = { target = PREV value > 49 } } has_volunteers_amount_from = { tag = ROOT count > 0 } } AND = { ROOT = { has_opinion = { target = PREV value > 49 } } ROOT = { has_volunteers_amount_from = { tag = PREV count > 0 } } } AND = { ROOT = { has_idea = NATO_member } has_idea = NATO_member } AND = { ROOT = { has_idea = EU_member } has_idea = EU_member } ROOT = { is_in_faction_with = PREV } has_war_together_with = ROOT AND = { ROOT = { original_tag = USA } has_idea = Major_Non_NATO_Ally } AND = { ROOT = { original_tag = USA } has_idea = NATO_member } AND = { ROOT = { original_tag = ENG } has_dynamic_modifier = { modifier = Commonwealth_member_modifier } } AND = { original_tag = ENG ROOT = { has_dynamic_modifier = { modifier = Commonwealth_member_modifier } } } AND = { ROOT = { original_tag = CHI } has_idea = CHI_sco_member } AND = { ROOT = { original_tag = CHI } has_idea = CHI_sco_member_mil } AND = { original_tag = CHI ROOT = { has_idea = CHI_sco_member } } AND = { original_tag = CHI ROOT = { has_idea = CHI_sco_member_mil } } } } modifier = { # Revoke from geopolitical adversaries and rivals add = 400 OR = { ROOT = { has_opinion = { target = PREV value < 150 } } has_war_with = ROOT is_justifying_wargoal_against = ROOT has_wargoal_against = ROOT AND = { ROOT = { is_in_faction = yes } is_in_faction = yes NOT = { is_in_faction_with = ROOT } } } } modifier = { add = -100 ROOT = { has_country_flag = recently_revoke_civ_gnss_access_@PREV } } modifier = { add = -100 ROOT = { has_country_flag = recently_offer_civ_gnss_access_@PREV } } modifier = { factor = 0 OR = { ROOT = { has_country_flag = recently_accepted_civ_gnss_@PREV } THIS = { has_country_flag = recently_accepted_civ_gnss_@ROOT } } } } } ### COM mil request_mil_com_access = { visible = { ROOT = { NOT = { is_in_array = { array = COM_mil_access_array value = PREV.id } } } } selectable = { custom_trigger_tooltip = { tooltip = REQUEST_MIL_COM_ACCESS_SELECTABLE_TT check_variable = { PREV.var_COM_mil_system_idx > 141 } OR = { check_variable = { PREV.var_COM_mil_system_idx = ROOT.var_COM_mil_system_idx } check_variable = { PREV.var_COM_mil_system_idx > ROOT.var_COM_mil_system_idx } } } } cost = 0 requires_acceptance = yes show_acceptance_on_action_button = yes icon = 22 #### ACTION LOCALISATION ### send_description = REQUEST_MIL_COM_ACCESS_LOC receive_description = REQUEST_MIL_COM_ACCESS_RECIEVER_LOC accept_title = REQUEST_MIL_COM_ACCESS_ACCEPTED_TITLE accept_description = REQUEST_MIL_COM_ACCESS_ACCEPTED_DESC reject_title = REQUEST_MIL_COM_ACCESS_REJECTED_TITLE reject_description = REQUEST_MIL_COM_ACCESS_REJECTED_DESC #### EFFECTS ### on_sent_effect = { ROOT = { set_variable = { pending_request_mil_com_access = PREV.id } } } complete_effect = { ROOT = { add_to_array = { array = PREV.COM_mil_treaty_array value = ROOT.id } add_to_array = { array = COM_mil_access_array value = PREV.id } add_to_array = { array = COM_mil_access_system_idx_array value = PREV.var_COM_mil_system_idx } add_access_COM_mil_vars = yes clear_variable = pending_request_mil_com_access # Do Not Instant Revoke set_country_flag = { flag = recently_accepted_mil_com_@PREV value = 1 days = 270 } } THIS = { country_event = satellites.9 } ROOT = { country_event = satellites.9 } } reject_effect = { ROOT = { clear_variable = pending_request_mil_com_access set_country_flag = { flag = recently_rejected_request_mil_com_access_@PREV value = 1 days = 270 } } THIS = { set_country_flag = { flag = recently_rejected_request_mil_com_access_@ROOT value = 1 days = 270 } } } #### AI SECTION ### ai_desire = { base = 0 modifier = { add = 10 ROOT = { is_ai = no } check_variable = { global.difficulty = 0 } } modifier = { add = 5 ROOT = { is_ai = no } check_variable = { global.difficulty = 1 } } modifier = { add = -5 ROOT = { is_ai = no } check_variable = { global.difficulty = 3 } } modifier = { add = -10 ROOT = { is_ai = no } check_variable = { global.difficulty = 4 } } modifier = { # Offer/request to allied and friendly nations add = 30 OR = { ROOT = { has_opinion = { target = PREV value > 149 } } AND = { ROOT = { has_opinion = { target = PREV value > 49 } } ROOT = { has_military_access_to = PREV } } AND = { ROOT = { has_opinion = { target = PREV value > 99 } } ROOT = { gives_military_access_to = PREV } } AND = { ROOT = { has_opinion = { target = PREV value > 49 } } has_volunteers_amount_from = { tag = ROOT count > 0 } } AND = { ROOT = { has_opinion = { target = PREV value > 49 } } ROOT = { has_volunteers_amount_from = { tag = PREV count > 0 } } } AND = { ROOT = { has_idea = NATO_member } has_idea = NATO_member } AND = { ROOT = { has_idea = EU_member } has_idea = EU_member } ROOT = { is_in_faction_with = PREV } has_war_together_with = ROOT AND = { ROOT = { original_tag = USA } has_idea = Major_Non_NATO_Ally } AND = { ROOT = { original_tag = USA } has_idea = NATO_member } AND = { ROOT = { original_tag = ENG } has_dynamic_modifier = { modifier = Commonwealth_member_modifier } } AND = { original_tag = ENG ROOT = { has_dynamic_modifier = { modifier = Commonwealth_member_modifier } } } AND = { ROOT = { original_tag = CHI } has_idea = CHI_sco_member } AND = { ROOT = { original_tag = CHI } has_idea = CHI_sco_member_mil } AND = { original_tag = CHI ROOT = { has_idea = CHI_sco_member } } AND = { original_tag = CHI ROOT = { has_idea = CHI_sco_member_mil } } } } modifier = { # Withhold from geopolitical adversaries and rivals add = -100 OR = { ROOT = { has_opinion = { target = PREV value < 150 } } has_war_with = ROOT is_justifying_wargoal_against = ROOT has_wargoal_against = ROOT AND = { ROOT = { is_in_faction = yes } is_in_faction = yes NOT = { is_in_faction_with = ROOT } } } } modifier = { add = 50 check_variable = { PREV.var_COM_mil_system_idx > ROOT.var_COM_mil_system_idx } } modifier = { add = -100 ROOT = { has_country_flag = recently_rejected_request_mil_com_access_@PREV } } modifier = { factor = 0 OR = { ROOT = { NOT = { check_variable = { pending_request_mil_com_access = 0 } } } ROOT = { has_country_flag = recently_rejected_request_mil_com_access_@PREV } } } modifier = { factor = 0 has_country_flag = MD_auto_reject_satellite_access } } ai_acceptance = { base_desire = { base = 0 modifier = { add = 10 ROOT = { is_ai = no } check_variable = { global.difficulty = 0 } } modifier = { add = 5 ROOT = { is_ai = no } check_variable = { global.difficulty = 1 } } modifier = { add = -5 ROOT = { is_ai = no } check_variable = { global.difficulty = 3 } } modifier = { add = -10 ROOT = { is_ai = no } check_variable = { global.difficulty = 4 } } } opinion_condition = { base = 0 modifier = { check_opinion_calculation = yes add = opinion_calculator } } military_cooperation_condition = { base = 0 modifier = { add = 15 OR = { AND = { THIS = { has_opinion = { target = ROOT value > 49 } } THIS = { has_military_access_to = ROOT } } AND = { THIS = { has_opinion = { target = ROOT value > 99 } } THIS = { gives_military_access_to = ROOT } } AND = { THIS = { has_opinion = { target = ROOT value > 49 } } OR = { ROOT = { has_volunteers_amount_from = { tag = THIS count > 0 } } THIS = { has_volunteers_amount_from = { tag = ROOT count > 0 } } } } } } } condition_four = { base = 0 modifier = { add = 20 THIS = { has_idea = NATO_member } ROOT = { has_idea = NATO_member } } } condition_five = { base = 0 modifier = { add = 15 THIS = { has_idea = EU_member } ROOT = { has_idea = EU_member } } } condition_six = { base = 0 modifier = { add = 25 THIS = { is_in_faction_with = ROOT } } } war_ally_condition = { base = 0 modifier = { add = 10 ROOT = { has_war_together_with = THIS } } } usa_ally_condition = { base = 0 modifier = { add = 15 THIS = { original_tag = USA } ROOT = { OR = { has_idea = Major_Non_NATO_Ally has_idea = NATO_member } } } } commonwealth_condition = { base = 0 modifier = { add = 15 THIS = { original_tag = ENG } ROOT = { has_dynamic_modifier = { modifier = Commonwealth_member_modifier } } } } sco_member_condition = { base = 0 modifier = { add = 15 THIS = { original_tag = CHI } ROOT = { OR = { has_idea = CHI_sco_member has_idea = CHI_sco_member_mil } } } } opposing_factions_condition = { base = 0 modifier = { add = -40 THIS = { is_in_faction = yes } ROOT = { is_in_faction = yes NOT = { is_in_faction_with = THIS } } } } war_condition = { base = 0 modifier = { ROOT = { has_war_together_with = PREV } add = 250 } modifier = { ROOT = { has_war_with = PREV } add = -250 } } wargoal_condition = { base = 0 modifier = { ROOT = { is_justifying_wargoal_against = PREV } add = -200 } modifier = { ROOT = { has_wargoal_against = PREV } add = -250 } } } } offer_mil_com_access = { visible = { ROOT = { NOT = { is_in_array = { array = COM_mil_treaty_array value = PREV.id } } } } selectable = { custom_trigger_tooltip = { tooltip = OFFER_MIL_COM_ACCESS_SELECTABLE_TT check_variable = { ROOT.var_COM_mil_system_idx > 141 } OR = { check_variable = { ROOT.var_COM_mil_system_idx = PREV.var_COM_mil_system_idx } check_variable = { ROOT.var_COM_mil_system_idx > PREV.var_COM_mil_system_idx } } } } cost = 0 requires_acceptance = yes show_acceptance_on_action_button = yes icon = 22 #### ACTION LOCALISATION ### send_description = OFFER_MIL_COM_ACCESS_LOC receive_description = OFFER_MIL_COM_ACCESS_RECIEVER_LOC accept_title = OFFER_MIL_COM_ACCESS_ACCEPTED_TITLE accept_description = OFFER_MIL_COM_ACCESS_ACCEPTED_DESC reject_title = OFFER_MIL_COM_ACCESS_REJECTED_TITLE reject_description = OFFER_MIL_COM_ACCESS_REJECTED_DESC #### EFFECTS ### on_sent_effect = { ROOT = { set_variable = { pending_offer_mil_com_access = PREV.id } } } complete_effect = { ROOT = { add_to_array = { array = ROOT.COM_mil_treaty_array value = PREV.id } add_to_array = { array = PREV.COM_mil_access_array value = ROOT.id } add_to_array = { array = PREV.COM_mil_access_system_idx_array value = ROOT.var_COM_mil_system_idx } PREV = { add_access_COM_mil_vars = yes } clear_variable = pending_offer_mil_com_access # Do Not Instant Revoke set_country_flag = { flag = recently_accepted_mil_com_@PREV value = 1 days = 270 } } THIS = { country_event = satellites.9 } ROOT = { country_event = satellites.9 } } reject_effect = { ROOT = { clear_variable = pending_offer_mil_com_access set_country_flag = { flag = recently_rejected_offer_mil_com_access_@PREV value = 1 days = 270 } } THIS = { set_country_flag = { flag = recently_rejected_offer_mil_com_access_@ROOT value = 1 days = 270 } } } #### AI SECTION ### ai_desire = { base = 0 modifier = { add = 10 ROOT = { is_ai = no } check_variable = { global.difficulty = 0 } } modifier = { add = 5 ROOT = { is_ai = no } check_variable = { global.difficulty = 1 } } modifier = { add = -5 ROOT = { is_ai = no } check_variable = { global.difficulty = 3 } } modifier = { add = -10 ROOT = { is_ai = no } check_variable = { global.difficulty = 4 } } modifier = { # Offer/request to allied and friendly nations add = 30 OR = { ROOT = { has_opinion = { target = PREV value > 149 } } AND = { ROOT = { has_opinion = { target = PREV value > 49 } } ROOT = { has_military_access_to = PREV } } AND = { ROOT = { has_opinion = { target = PREV value > 99 } } ROOT = { gives_military_access_to = PREV } } AND = { ROOT = { has_opinion = { target = PREV value > 49 } } has_volunteers_amount_from = { tag = ROOT count > 0 } } AND = { ROOT = { has_opinion = { target = PREV value > 49 } } ROOT = { has_volunteers_amount_from = { tag = PREV count > 0 } } } AND = { ROOT = { has_idea = NATO_member } has_idea = NATO_member } AND = { ROOT = { has_idea = EU_member } has_idea = EU_member } ROOT = { is_in_faction_with = PREV } has_war_together_with = ROOT AND = { ROOT = { original_tag = USA } has_idea = Major_Non_NATO_Ally } AND = { ROOT = { original_tag = USA } has_idea = NATO_member } AND = { ROOT = { original_tag = ENG } has_dynamic_modifier = { modifier = Commonwealth_member_modifier } } AND = { original_tag = ENG ROOT = { has_dynamic_modifier = { modifier = Commonwealth_member_modifier } } } AND = { ROOT = { original_tag = CHI } has_idea = CHI_sco_member } AND = { ROOT = { original_tag = CHI } has_idea = CHI_sco_member_mil } AND = { original_tag = CHI ROOT = { has_idea = CHI_sco_member } } AND = { original_tag = CHI ROOT = { has_idea = CHI_sco_member_mil } } } } modifier = { # Withhold from geopolitical adversaries and rivals add = -100 OR = { ROOT = { has_opinion = { target = PREV value < 150 } } has_war_with = ROOT is_justifying_wargoal_against = ROOT has_wargoal_against = ROOT AND = { ROOT = { is_in_faction = yes } is_in_faction = yes NOT = { is_in_faction_with = ROOT } } } } modifier = { add = -100 OR = { check_variable = { THIS.var_COM_mil_system_idx > ROOT.var_COM_mil_system_idx } check_variable = { THIS.var_COM_mil_system_idx = ROOT.var_COM_mil_system_idx } } } modifier = { add = -200 NOT_share_COM_mil_satellites_above_network_traffic_limit = yes } modifier = { add = -100 ROOT = { has_country_flag = recently_offer_mil_com_access_@PREV } } modifier = { add = -100 ROOT = { has_country_flag = recently_revoke_mil_com_access_@PREV } } modifier = { add = -100 ROOT = { has_country_flag = recently_rejected_offer_mil_com_access_@PREV } } modifier = { factor = 0 OR = { ROOT = { NOT = { check_variable = { pending_offer_mil_com_access = 0 } } } ROOT = { has_country_flag = recently_rejected_offer_mil_com_access_@PREV } ROOT = { has_country_flag = recently_revoke_mil_com_access_@PREV } ROOT = { has_country_flag = recently_offer_mil_com_access_@PREV } } } } ai_acceptance = { base_desire = { base = 50 modifier = { add = 10 ROOT = { is_ai = no } check_variable = { global.difficulty = 0 } } modifier = { add = 5 ROOT = { is_ai = no } check_variable = { global.difficulty = 1 } } modifier = { add = -5 ROOT = { is_ai = no } check_variable = { global.difficulty = 3 } } modifier = { add = -10 ROOT = { is_ai = no } check_variable = { global.difficulty = 4 } } } opinion_condition = { base = 0 modifier = { check_opinion_calculation = yes add = opinion_calculator } } military_cooperation_condition = { base = 0 modifier = { add = 15 OR = { AND = { THIS = { has_opinion = { target = ROOT value > 49 } } THIS = { has_military_access_to = ROOT } } AND = { THIS = { has_opinion = { target = ROOT value > 99 } } THIS = { gives_military_access_to = ROOT } } AND = { THIS = { has_opinion = { target = ROOT value > 49 } } OR = { ROOT = { has_volunteers_amount_from = { tag = THIS count > 0 } } THIS = { has_volunteers_amount_from = { tag = ROOT count > 0 } } } } } } } condition_four = { base = 0 modifier = { add = 20 THIS = { has_idea = NATO_member } ROOT = { has_idea = NATO_member } } } condition_five = { base = 0 modifier = { add = 15 THIS = { has_idea = EU_member } ROOT = { has_idea = EU_member } } } condition_six = { base = 0 modifier = { add = 25 THIS = { is_in_faction_with = ROOT } } } war_ally_condition = { base = 0 modifier = { add = 10 ROOT = { has_war_together_with = THIS } } } usa_ally_condition = { base = 0 modifier = { add = 15 THIS = { original_tag = USA } ROOT = { OR = { has_idea = Major_Non_NATO_Ally has_idea = NATO_member } } } } commonwealth_condition = { base = 0 modifier = { add = 15 THIS = { original_tag = ENG } ROOT = { has_dynamic_modifier = { modifier = Commonwealth_member_modifier } } } } sco_member_condition = { base = 0 modifier = { add = 15 THIS = { original_tag = CHI } ROOT = { OR = { has_idea = CHI_sco_member has_idea = CHI_sco_member_mil } } } } opposing_factions_condition = { base = 0 modifier = { add = -40 THIS = { is_in_faction = yes } ROOT = { is_in_faction = yes NOT = { is_in_faction_with = THIS } } } } war_condition = { base = 0 modifier = { ROOT = { has_war = yes } add = -50 } modifier = { ROOT = { has_war_together_with = PREV } add = 250 } modifier = { ROOT = { has_war_with = PREV } add = -250 } } wargoal_condition = { base = 0 modifier = { ROOT = { is_justifying_wargoal_against = PREV } add = -200 } modifier = { ROOT = { has_wargoal_against = PREV } add = -250 } } } } revoke_mil_com_access = { visible = { ROOT = { is_in_array = { array = COM_mil_treaty_array value = PREV.id } } } selectable = { always = yes } cost = 0 requires_acceptance = no show_acceptance_on_action_button = no icon = 22 #### ACTION LOCALISATION ### send_description = REVOKE_MIL_COM_ACCESS_LOC receive_description = REVOKE_MIL_COM_ACCESS_RECIEVER_LOC accept_title = REVOKE_MIL_COM_ACCESS_ACCEPTED_TITLE accept_description = REVOKE_MIL_COM_ACCESS_ACCEPTED_DESC reject_title = REVOKE_MIL_COM_ACCESS_REJECTED_TITLE reject_description = REVOKE_MIL_COM_ACCESS_REJECTED_DESC #### EFFECTS ### complete_effect = { ROOT = { remove_from_array = { array = ROOT.COM_mil_treaty_array value = PREV.id } PREV = { if = { limit = { is_in_array = { array = PREV.COM_mil_access_array value = ROOT.id } } remove_from_array = { array = PREV.COM_mil_access_array value = ROOT.id } } if = { limit = { is_in_array = { array = PREV.COM_mil_access_system_idx_array value = ROOT.var_COM_mil_system_idx } } remove_from_array = { array = PREV.COM_mil_access_system_idx_array value = ROOT.var_COM_mil_system_idx } } add_access_COM_mil_vars = yes } set_country_flag = { flag = recently_revoke_mil_com_access_@PREV days = 180 value = 1 } } THIS = { country_event = satellites.9 } ROOT = { country_event = satellites.9 } } reject_effect = { ROOT = { set_country_flag = { flag = recently_revoke_mil_com_access_@PREV days = 180 value = 1 } } } #### AI SECTION ### ai_desire = { base = 0 modifier = { add = 10 ROOT = { is_ai = no } check_variable = { global.difficulty = 0 } } modifier = { add = 5 ROOT = { is_ai = no } check_variable = { global.difficulty = 1 } } modifier = { add = -5 ROOT = { is_ai = no } check_variable = { global.difficulty = 3 } } modifier = { add = -10 ROOT = { is_ai = no } check_variable = { global.difficulty = 4 } } modifier = { # Do not revoke from allied and friendly nations add = -100 OR = { ROOT = { has_opinion = { target = PREV value > 149 } } AND = { ROOT = { has_opinion = { target = PREV value > 49 } } ROOT = { has_military_access_to = PREV } } AND = { ROOT = { has_opinion = { target = PREV value > 99 } } ROOT = { gives_military_access_to = PREV } } AND = { ROOT = { has_opinion = { target = PREV value > 49 } } has_volunteers_amount_from = { tag = ROOT count > 0 } } AND = { ROOT = { has_opinion = { target = PREV value > 49 } } ROOT = { has_volunteers_amount_from = { tag = PREV count > 0 } } } AND = { ROOT = { has_idea = NATO_member } has_idea = NATO_member } AND = { ROOT = { has_idea = EU_member } has_idea = EU_member } ROOT = { is_in_faction_with = PREV } has_war_together_with = ROOT AND = { ROOT = { original_tag = USA } has_idea = Major_Non_NATO_Ally } AND = { ROOT = { original_tag = USA } has_idea = NATO_member } AND = { ROOT = { original_tag = ENG } has_dynamic_modifier = { modifier = Commonwealth_member_modifier } } AND = { original_tag = ENG ROOT = { has_dynamic_modifier = { modifier = Commonwealth_member_modifier } } } AND = { ROOT = { original_tag = CHI } has_idea = CHI_sco_member } AND = { ROOT = { original_tag = CHI } has_idea = CHI_sco_member_mil } AND = { original_tag = CHI ROOT = { has_idea = CHI_sco_member } } AND = { original_tag = CHI ROOT = { has_idea = CHI_sco_member_mil } } } } modifier = { # Revoke from geopolitical adversaries and rivals add = 400 OR = { ROOT = { has_opinion = { target = PREV value < 150 } } has_war_with = ROOT is_justifying_wargoal_against = ROOT has_wargoal_against = ROOT AND = { ROOT = { is_in_faction = yes } is_in_faction = yes NOT = { is_in_faction_with = ROOT } } } } modifier = { add = 200 NOT_share_COM_mil_satellites_above_network_traffic_limit = yes } modifier = { add = -100 ROOT = { has_country_flag = recently_revoke_mil_com_access_@PREV } } modifier = { add = -100 ROOT = { has_country_flag = recently_offer_mil_com_access_@PREV } } modifier = { factor = 0 OR = { ROOT = { has_country_flag = recently_accepted_mil_com_@PREV } THIS = { has_country_flag = recently_accepted_mil_com_@ROOT } } } } } ### COM civ request_civ_com_access = { visible = { ROOT = { NOT = { is_in_array = { array = COM_civ_access_array value = PREV.id } } } } selectable = { custom_trigger_tooltip = { tooltip = REQUEST_CIV_COM_ACCESS_SELECTABLE_TT check_variable = { PREV.var_COM_civ_system_idx > 141 } OR = { check_variable = { PREV.var_COM_civ_system_idx = ROOT.var_COM_civ_system_idx } check_variable = { PREV.var_COM_civ_system_idx > ROOT.var_COM_civ_system_idx } } } } cost = 0 requires_acceptance = yes show_acceptance_on_action_button = yes icon = 22 #### ACTION LOCALISATION ### send_description = REQUEST_CIV_COM_ACCESS_LOC receive_description = REQUEST_CIV_COM_ACCESS_RECIEVER_LOC accept_title = REQUEST_CIV_COM_ACCESS_ACCEPTED_TITLE accept_description = REQUEST_CIV_COM_ACCESS_ACCEPTED_DESC reject_title = REQUEST_CIV_COM_ACCESS_REJECTED_TITLE reject_description = REQUEST_CIV_COM_ACCESS_REJECTED_DESC #### EFFECTS ### on_sent_effect = { ROOT = { set_variable = { pending_request_civ_com_access = PREV.id } } } complete_effect = { ROOT = { add_to_array = { array = PREV.COM_civ_treaty_array value = ROOT.id } add_to_array = { array = COM_civ_access_array value = PREV.id } add_to_array = { array = COM_civ_access_system_idx_array value = PREV.var_COM_civ_system_idx } add_access_COM_civ_vars = yes clear_variable = pending_request_civ_com_access set_country_flag = { flag = recently_accepted_civ_com_@PREV value = 1 days = 270 } } THIS = { country_event = satellites.9 } ROOT = { country_event = satellites.9 } } reject_effect = { ROOT = { clear_variable = pending_request_civ_com_access set_country_flag = { flag = recently_rejected_request_civ_com_access_@PREV value = 1 days = 270 } } THIS = { set_country_flag = { flag = recently_rejected_request_civ_com_access_@ROOT value = 1 days = 270 } } } #### AI SECTION ### ai_desire = { base = 0 modifier = { add = 10 ROOT = { is_ai = no } check_variable = { global.difficulty = 0 } } modifier = { add = 5 ROOT = { is_ai = no } check_variable = { global.difficulty = 1 } } modifier = { add = -5 ROOT = { is_ai = no } check_variable = { global.difficulty = 3 } } modifier = { add = -10 ROOT = { is_ai = no } check_variable = { global.difficulty = 4 } } modifier = { # Offer/request to allied and friendly nations add = 30 OR = { ROOT = { has_opinion = { target = PREV value > 149 } } AND = { ROOT = { has_opinion = { target = PREV value > 49 } } ROOT = { has_military_access_to = PREV } } AND = { ROOT = { has_opinion = { target = PREV value > 99 } } ROOT = { gives_military_access_to = PREV } } AND = { ROOT = { has_opinion = { target = PREV value > 49 } } has_volunteers_amount_from = { tag = ROOT count > 0 } } AND = { ROOT = { has_opinion = { target = PREV value > 49 } } ROOT = { has_volunteers_amount_from = { tag = PREV count > 0 } } } AND = { ROOT = { has_idea = NATO_member } has_idea = NATO_member } AND = { ROOT = { has_idea = EU_member } has_idea = EU_member } ROOT = { is_in_faction_with = PREV } has_war_together_with = ROOT AND = { ROOT = { original_tag = USA } has_idea = Major_Non_NATO_Ally } AND = { ROOT = { original_tag = USA } has_idea = NATO_member } AND = { ROOT = { original_tag = ENG } has_dynamic_modifier = { modifier = Commonwealth_member_modifier } } AND = { original_tag = ENG ROOT = { has_dynamic_modifier = { modifier = Commonwealth_member_modifier } } } AND = { ROOT = { original_tag = CHI } has_idea = CHI_sco_member } AND = { ROOT = { original_tag = CHI } has_idea = CHI_sco_member_mil } AND = { original_tag = CHI ROOT = { has_idea = CHI_sco_member } } AND = { original_tag = CHI ROOT = { has_idea = CHI_sco_member_mil } } } } modifier = { # Withhold from geopolitical adversaries and rivals add = -100 OR = { ROOT = { has_opinion = { target = PREV value < 150 } } has_war_with = ROOT is_justifying_wargoal_against = ROOT has_wargoal_against = ROOT AND = { ROOT = { is_in_faction = yes } is_in_faction = yes NOT = { is_in_faction_with = ROOT } } } } modifier = { add = 50 check_variable = { PREV.var_COM_civ_system_idx > ROOT.var_COM_civ_system_idx } } modifier = { add = -100 ROOT = { has_country_flag = recently_rejected_request_civ_com_access_@PREV } } modifier = { factor = 0 OR = { ROOT = { NOT = { check_variable = { pending_request_civ_com_access = 0 } } } ROOT = { has_country_flag = recently_rejected_request_civ_com_access_@PREV } } } modifier = { factor = 0 has_country_flag = MD_auto_reject_satellite_access } } ai_acceptance = { base_desire = { base = 0 modifier = { add = 10 ROOT = { is_ai = no } check_variable = { global.difficulty = 0 } } modifier = { add = 5 ROOT = { is_ai = no } check_variable = { global.difficulty = 1 } } modifier = { add = -5 ROOT = { is_ai = no } check_variable = { global.difficulty = 3 } } modifier = { add = -10 ROOT = { is_ai = no } check_variable = { global.difficulty = 4 } } } opinion_condition = { base = 0 modifier = { check_opinion_calculation = yes add = opinion_calculator } } military_cooperation_condition = { base = 0 modifier = { add = 15 OR = { AND = { THIS = { has_opinion = { target = ROOT value > 49 } } THIS = { has_military_access_to = ROOT } } AND = { THIS = { has_opinion = { target = ROOT value > 99 } } THIS = { gives_military_access_to = ROOT } } AND = { THIS = { has_opinion = { target = ROOT value > 49 } } OR = { ROOT = { has_volunteers_amount_from = { tag = THIS count > 0 } } THIS = { has_volunteers_amount_from = { tag = ROOT count > 0 } } } } } } } condition_four = { base = 0 modifier = { add = 20 THIS = { has_idea = NATO_member } ROOT = { has_idea = NATO_member } } } condition_five = { base = 0 modifier = { add = 15 THIS = { has_idea = EU_member } ROOT = { has_idea = EU_member } } } condition_six = { base = 0 modifier = { add = 25 THIS = { is_in_faction_with = ROOT } } } war_ally_condition = { base = 0 modifier = { add = 10 ROOT = { has_war_together_with = THIS } } } usa_ally_condition = { base = 0 modifier = { add = 15 THIS = { original_tag = USA } ROOT = { OR = { has_idea = Major_Non_NATO_Ally has_idea = NATO_member } } } } commonwealth_condition = { base = 0 modifier = { add = 15 THIS = { original_tag = ENG } ROOT = { has_dynamic_modifier = { modifier = Commonwealth_member_modifier } } } } sco_member_condition = { base = 0 modifier = { add = 15 THIS = { original_tag = CHI } ROOT = { OR = { has_idea = CHI_sco_member has_idea = CHI_sco_member_mil } } } } opposing_factions_condition = { base = 0 modifier = { add = -40 THIS = { is_in_faction = yes } ROOT = { is_in_faction = yes NOT = { is_in_faction_with = THIS } } } } war_condition = { base = 0 modifier = { ROOT = { has_war_together_with = PREV } add = 250 } modifier = { ROOT = { has_war_with = PREV } add = -250 } } wargoal_condition = { base = 0 modifier = { ROOT = { is_justifying_wargoal_against = PREV } add = -200 } modifier = { ROOT = { has_wargoal_against = PREV } add = -250 } } } } offer_civ_com_access = { visible = { ROOT = { NOT = { is_in_array = { array = COM_civ_treaty_array value = PREV.id } } } } selectable = { custom_trigger_tooltip = { tooltip = OFFER_CIV_COM_ACCESS_SELECTABLE_TT check_variable = { ROOT.var_COM_civ_system_idx > 141 } OR = { check_variable = { ROOT.var_COM_civ_system_idx = PREV.var_COM_civ_system_idx } check_variable = { ROOT.var_COM_civ_system_idx > PREV.var_COM_civ_system_idx } } } } cost = 0 requires_acceptance = yes show_acceptance_on_action_button = yes icon = 22 #### ACTION LOCALISATION ### send_description = OFFER_CIV_COM_ACCESS_LOC receive_description = OFFER_CIV_COM_ACCESS_RECIEVER_LOC accept_title = OFFER_CIV_COM_ACCESS_ACCEPTED_TITLE accept_description = OFFER_CIV_COM_ACCESS_ACCEPTED_DESC reject_title = OFFER_CIV_COM_ACCESS_REJECTED_TITLE reject_description = OFFER_CIV_COM_ACCESS_REJECTED_DESC #### EFFECTS ### on_sent_effect = { ROOT = { set_variable = { pending_offer_civ_com_access = PREV.id } } } complete_effect = { ROOT = { add_to_array = { array = ROOT.COM_civ_treaty_array value = PREV.id } add_to_array = { array = PREV.COM_civ_access_array value = ROOT.id } add_to_array = { array = PREV.COM_civ_access_system_idx_array value = ROOT.var_COM_civ_system_idx } PREV = { add_access_COM_civ_vars = yes } clear_variable = pending_offer_civ_com_access set_country_flag = { flag = recently_accepted_civ_com_@PREV value = 1 days = 270 } } THIS = { country_event = satellites.9 } ROOT = { country_event = satellites.9 } } reject_effect = { ROOT = { clear_variable = pending_offer_civ_com_access set_country_flag = { flag = recently_rejected_offer_civ_com_access_@PREV value = 1 days = 270 } } THIS = { set_country_flag = { flag = recently_rejected_offer_civ_com_access_@ROOT value = 1 days = 270 } } } #### AI SECTION ### ai_desire = { base = 0 modifier = { add = 10 ROOT = { is_ai = no } check_variable = { global.difficulty = 0 } } modifier = { add = 5 ROOT = { is_ai = no } check_variable = { global.difficulty = 1 } } modifier = { add = -5 ROOT = { is_ai = no } check_variable = { global.difficulty = 3 } } modifier = { add = -10 ROOT = { is_ai = no } check_variable = { global.difficulty = 4 } } modifier = { # Offer/request to allied and friendly nations add = 30 OR = { ROOT = { has_opinion = { target = PREV value > 149 } } AND = { ROOT = { has_opinion = { target = PREV value > 49 } } ROOT = { has_military_access_to = PREV } } AND = { ROOT = { has_opinion = { target = PREV value > 99 } } ROOT = { gives_military_access_to = PREV } } AND = { ROOT = { has_opinion = { target = PREV value > 49 } } has_volunteers_amount_from = { tag = ROOT count > 0 } } AND = { ROOT = { has_opinion = { target = PREV value > 49 } } ROOT = { has_volunteers_amount_from = { tag = PREV count > 0 } } } AND = { ROOT = { has_idea = NATO_member } has_idea = NATO_member } AND = { ROOT = { has_idea = EU_member } has_idea = EU_member } ROOT = { is_in_faction_with = PREV } has_war_together_with = ROOT AND = { ROOT = { original_tag = USA } has_idea = Major_Non_NATO_Ally } AND = { ROOT = { original_tag = USA } has_idea = NATO_member } AND = { ROOT = { original_tag = ENG } has_dynamic_modifier = { modifier = Commonwealth_member_modifier } } AND = { original_tag = ENG ROOT = { has_dynamic_modifier = { modifier = Commonwealth_member_modifier } } } AND = { ROOT = { original_tag = CHI } has_idea = CHI_sco_member } AND = { ROOT = { original_tag = CHI } has_idea = CHI_sco_member_mil } AND = { original_tag = CHI ROOT = { has_idea = CHI_sco_member } } AND = { original_tag = CHI ROOT = { has_idea = CHI_sco_member_mil } } } } modifier = { # Withhold from geopolitical adversaries and rivals add = -100 OR = { ROOT = { has_opinion = { target = PREV value < 150 } } has_war_with = ROOT is_justifying_wargoal_against = ROOT has_wargoal_against = ROOT AND = { ROOT = { is_in_faction = yes } is_in_faction = yes NOT = { is_in_faction_with = ROOT } } } } modifier = { add = -100 OR = { check_variable = { THIS.var_COM_civ_system_idx > ROOT.var_COM_civ_system_idx } check_variable = { THIS.var_COM_civ_system_idx = ROOT.var_COM_civ_system_idx } } } modifier = { add = -200 NOT_share_COM_civ_satellites_above_network_traffic_limit = yes } modifier = { add = -100 ROOT = { has_country_flag = recently_offer_civ_com_access_@PREV } } modifier = { add = -100 ROOT = { has_country_flag = recently_revoke_civ_com_access_@PREV } } modifier = { add = -100 ROOT = { has_country_flag = recently_rejected_offer_civ_com_access_@PREV } } modifier = { factor = 0 OR = { ROOT = { NOT = { check_variable = { pending_offer_civ_com_access = 0 } } } ROOT = { has_country_flag = recently_rejected_offer_civ_com_access_@PREV } ROOT = { has_country_flag = recently_revoke_civ_com_access_@PREV } ROOT = { has_country_flag = recently_offer_civ_com_access_@PREV } } } } ai_acceptance = { base_desire = { base = 50 modifier = { add = 10 ROOT = { is_ai = no } check_variable = { global.difficulty = 0 } } modifier = { add = 5 ROOT = { is_ai = no } check_variable = { global.difficulty = 1 } } modifier = { add = -5 ROOT = { is_ai = no } check_variable = { global.difficulty = 3 } } modifier = { add = -10 ROOT = { is_ai = no } check_variable = { global.difficulty = 4 } } } opinion_condition = { base = 0 modifier = { check_opinion_calculation = yes add = opinion_calculator } } military_cooperation_condition = { base = 0 modifier = { add = 15 OR = { AND = { THIS = { has_opinion = { target = ROOT value > 49 } } THIS = { has_military_access_to = ROOT } } AND = { THIS = { has_opinion = { target = ROOT value > 99 } } THIS = { gives_military_access_to = ROOT } } AND = { THIS = { has_opinion = { target = ROOT value > 49 } } OR = { ROOT = { has_volunteers_amount_from = { tag = THIS count > 0 } } THIS = { has_volunteers_amount_from = { tag = ROOT count > 0 } } } } } } } condition_four = { base = 0 modifier = { add = 20 THIS = { has_idea = NATO_member } ROOT = { has_idea = NATO_member } } } condition_five = { base = 0 modifier = { add = 15 THIS = { has_idea = EU_member } ROOT = { has_idea = EU_member } } } condition_six = { base = 0 modifier = { add = 25 THIS = { is_in_faction_with = ROOT } } } war_ally_condition = { base = 0 modifier = { add = 10 ROOT = { has_war_together_with = THIS } } } usa_ally_condition = { base = 0 modifier = { add = 15 THIS = { original_tag = USA } ROOT = { OR = { has_idea = Major_Non_NATO_Ally has_idea = NATO_member } } } } commonwealth_condition = { base = 0 modifier = { add = 15 THIS = { original_tag = ENG } ROOT = { has_dynamic_modifier = { modifier = Commonwealth_member_modifier } } } } sco_member_condition = { base = 0 modifier = { add = 15 THIS = { original_tag = CHI } ROOT = { OR = { has_idea = CHI_sco_member has_idea = CHI_sco_member_mil } } } } opposing_factions_condition = { base = 0 modifier = { add = -40 THIS = { is_in_faction = yes } ROOT = { is_in_faction = yes NOT = { is_in_faction_with = THIS } } } } war_condition = { base = 0 modifier = { ROOT = { has_war = yes } add = -50 } modifier = { ROOT = { has_war_together_with = PREV } add = 250 } modifier = { ROOT = { has_war_with = PREV } add = -250 } } wargoal_condition = { base = 0 modifier = { ROOT = { is_justifying_wargoal_against = PREV } add = -200 } modifier = { ROOT = { has_wargoal_against = PREV } add = -250 } } } } revoke_civ_com_access = { visible = { ROOT = { is_in_array = { array = COM_civ_treaty_array value = PREV.id } } } selectable = { always = yes } cost = 0 requires_acceptance = no show_acceptance_on_action_button = no icon = 22 #### ACTION LOCALISATION ### send_description = REVOKE_CIV_COM_ACCESS_LOC receive_description = REVOKE_CIV_COM_ACCESS_RECIEVER_LOC accept_title = REVOKE_CIV_COM_ACCESS_ACCEPTED_TITLE accept_description = REVOKE_CIV_COM_ACCESS_ACCEPTED_DESC reject_title = REVOKE_CIV_COM_ACCESS_REJECTED_TITLE reject_description = REVOKE_CIV_COM_ACCESS_REJECTED_DESC #### EFFECTS ### complete_effect = { ROOT = { remove_from_array = { array = ROOT.COM_civ_treaty_array value = PREV.id } PREV = { set_temp_variable = { temp_COM_civ_access_break = 0 } for_each_loop = { array = COM_civ_access_array value = v index = i break = temp_COM_civ_access_break if = { limit = { check_variable = { v = ROOT.id } } remove_from_array = { array = COM_civ_access_system_idx_array index = i } remove_from_array = { array = COM_civ_access_array index = i } set_temp_variable = { temp_COM_civ_access_break = 1 } } } add_access_COM_civ_vars = yes } set_country_flag = { flag = recently_revoke_civ_com_access_@PREV days = 180 value = 1 } } THIS = { country_event = satellites.9 } ROOT = { country_event = satellites.9 } } reject_effect = { ROOT = { set_country_flag = { flag = recently_revoke_civ_com_access_@PREV days = 180 value = 1 } } } #### AI SECTION ### ai_desire = { base = 0 modifier = { add = 10 ROOT = { is_ai = no } check_variable = { global.difficulty = 0 } } modifier = { add = 5 ROOT = { is_ai = no } check_variable = { global.difficulty = 1 } } modifier = { add = -5 ROOT = { is_ai = no } check_variable = { global.difficulty = 3 } } modifier = { add = -10 ROOT = { is_ai = no } check_variable = { global.difficulty = 4 } } modifier = { # Do not revoke from allied and friendly nations add = -100 OR = { ROOT = { has_opinion = { target = PREV value > 149 } } AND = { ROOT = { has_opinion = { target = PREV value > 49 } } ROOT = { has_military_access_to = PREV } } AND = { ROOT = { has_opinion = { target = PREV value > 99 } } ROOT = { gives_military_access_to = PREV } } AND = { ROOT = { has_opinion = { target = PREV value > 49 } } has_volunteers_amount_from = { tag = ROOT count > 0 } } AND = { ROOT = { has_opinion = { target = PREV value > 49 } } ROOT = { has_volunteers_amount_from = { tag = PREV count > 0 } } } AND = { ROOT = { has_idea = NATO_member } has_idea = NATO_member } AND = { ROOT = { has_idea = EU_member } has_idea = EU_member } ROOT = { is_in_faction_with = PREV } has_war_together_with = ROOT AND = { ROOT = { original_tag = USA } has_idea = Major_Non_NATO_Ally } AND = { ROOT = { original_tag = USA } has_idea = NATO_member } AND = { ROOT = { original_tag = ENG } has_dynamic_modifier = { modifier = Commonwealth_member_modifier } } AND = { original_tag = ENG ROOT = { has_dynamic_modifier = { modifier = Commonwealth_member_modifier } } } AND = { ROOT = { original_tag = CHI } has_idea = CHI_sco_member } AND = { ROOT = { original_tag = CHI } has_idea = CHI_sco_member_mil } AND = { original_tag = CHI ROOT = { has_idea = CHI_sco_member } } AND = { original_tag = CHI ROOT = { has_idea = CHI_sco_member_mil } } } } modifier = { # Revoke from geopolitical adversaries and rivals add = 400 OR = { ROOT = { has_opinion = { target = PREV value < 150 } } has_war_with = ROOT is_justifying_wargoal_against = ROOT has_wargoal_against = ROOT AND = { ROOT = { is_in_faction = yes } is_in_faction = yes NOT = { is_in_faction_with = ROOT } } } } modifier = { add = 200 NOT_share_COM_civ_satellites_above_network_traffic_limit = yes } modifier = { add = -100 ROOT = { has_country_flag = recently_revoke_civ_com_access_@PREV } } modifier = { add = -100 ROOT = { has_country_flag = recently_offer_civ_com_access_@PREV } } modifier = { factor = 0 OR = { ROOT = { has_country_flag = recently_accepted_civ_com_@PREV } THIS = { has_country_flag = recently_accepted_civ_com_@ROOT } } } } } ### SPY mil request_mil_spy_access = { visible = { ROOT = { NOT = { is_in_array = { array = SPY_mil_access_array value = PREV.id } } } } selectable = { custom_trigger_tooltip = { tooltip = REQUEST_MIL_SPY_ACCESS_SELECTABLE_TT check_variable = { PREV.var_SPY_mil_system_idx > 161 } OR = { check_variable = { PREV.var_SPY_mil_system_idx = ROOT.var_SPY_mil_system_idx } check_variable = { PREV.var_SPY_mil_system_idx > ROOT.var_SPY_mil_system_idx } } } } cost = 0 requires_acceptance = yes show_acceptance_on_action_button = yes icon = 22 #### ACTION LOCALISATION ### send_description = REQUEST_MIL_SPY_ACCESS_LOC receive_description = REQUEST_MIL_SPY_ACCESS_RECIEVER_LOC accept_title = REQUEST_MIL_SPY_ACCESS_ACCEPTED_TITLE accept_description = REQUEST_MIL_SPY_ACCESS_ACCEPTED_DESC reject_title = REQUEST_MIL_SPY_ACCESS_REJECTED_TITLE reject_description = REQUEST_MIL_SPY_ACCESS_REJECTED_DESC #### EFFECTS ### on_sent_effect = { ROOT = { set_variable = { pending_request_mil_spy_access = PREV.id } } } complete_effect = { ROOT = { add_to_array = { array = PREV.SPY_mil_treaty_array value = ROOT.id } add_to_array = { array = SPY_mil_access_array value = PREV.id } add_to_array = { array = SPY_mil_access_system_idx_array value = PREV.var_SPY_mil_system_idx } add_access_SPY_mil_vars = yes clear_variable = pending_request_mil_spy_access set_country_flag = { flag = recently_accepted_mil_spy_@PREV value = 1 days = 270 } } THIS = { country_event = satellites.9 } ROOT = { country_event = satellites.9 } } reject_effect = { ROOT = { clear_variable = pending_request_mil_spy_access set_country_flag = { flag = recently_rejected_request_mil_spy_access_@PREV value = 1 days = 270 } } THIS = { set_country_flag = { flag = recently_rejected_request_mil_spy_access_@ROOT value = 1 days = 270 } } } #### AI SECTION ### ai_desire = { base = 0 modifier = { add = 10 ROOT = { is_ai = no } check_variable = { global.difficulty = 0 } } modifier = { add = 5 ROOT = { is_ai = no } check_variable = { global.difficulty = 1 } } modifier = { add = -5 ROOT = { is_ai = no } check_variable = { global.difficulty = 3 } } modifier = { add = -10 ROOT = { is_ai = no } check_variable = { global.difficulty = 4 } } modifier = { # Offer/request to allied and friendly nations add = 30 OR = { ROOT = { has_opinion = { target = PREV value > 149 } } AND = { ROOT = { has_opinion = { target = PREV value > 49 } } ROOT = { has_military_access_to = PREV } } AND = { ROOT = { has_opinion = { target = PREV value > 99 } } ROOT = { gives_military_access_to = PREV } } AND = { ROOT = { has_opinion = { target = PREV value > 49 } } has_volunteers_amount_from = { tag = ROOT count > 0 } } AND = { ROOT = { has_opinion = { target = PREV value > 49 } } ROOT = { has_volunteers_amount_from = { tag = PREV count > 0 } } } AND = { ROOT = { has_idea = NATO_member } has_idea = NATO_member } AND = { ROOT = { has_idea = EU_member } has_idea = EU_member } ROOT = { is_in_faction_with = PREV } has_war_together_with = ROOT AND = { ROOT = { original_tag = USA } has_idea = Major_Non_NATO_Ally } AND = { ROOT = { original_tag = USA } has_idea = NATO_member } AND = { ROOT = { original_tag = ENG } has_dynamic_modifier = { modifier = Commonwealth_member_modifier } } AND = { original_tag = ENG ROOT = { has_dynamic_modifier = { modifier = Commonwealth_member_modifier } } } AND = { ROOT = { original_tag = CHI } has_idea = CHI_sco_member } AND = { ROOT = { original_tag = CHI } has_idea = CHI_sco_member_mil } AND = { original_tag = CHI ROOT = { has_idea = CHI_sco_member } } AND = { original_tag = CHI ROOT = { has_idea = CHI_sco_member_mil } } } } modifier = { # Withhold from geopolitical adversaries and rivals add = -100 OR = { ROOT = { has_opinion = { target = PREV value < 150 } } has_war_with = ROOT is_justifying_wargoal_against = ROOT has_wargoal_against = ROOT AND = { ROOT = { is_in_faction = yes } is_in_faction = yes NOT = { is_in_faction_with = ROOT } } } } modifier = { add = 50 check_variable = { PREV.var_SPY_mil_system_idx > ROOT.var_SPY_mil_system_idx } } modifier = { add = -100 ROOT = { has_country_flag = recently_rejected_request_mil_spy_access_@PREV } } modifier = { factor = 0 OR = { ROOT = { NOT = { check_variable = { pending_request_mil_spy_access = 0 } } } ROOT = { has_country_flag = recently_rejected_request_mil_spy_access_@PREV } } } modifier = { factor = 0 has_country_flag = MD_auto_reject_satellite_access } } ai_acceptance = { base_desire = { base = 0 modifier = { add = 10 ROOT = { is_ai = no } check_variable = { global.difficulty = 0 } } modifier = { add = 5 ROOT = { is_ai = no } check_variable = { global.difficulty = 1 } } modifier = { add = -5 ROOT = { is_ai = no } check_variable = { global.difficulty = 3 } } modifier = { add = -10 ROOT = { is_ai = no } check_variable = { global.difficulty = 4 } } } opinion_condition = { base = 0 modifier = { check_opinion_calculation = yes add = opinion_calculator } } military_cooperation_condition = { base = 0 modifier = { add = 15 OR = { AND = { THIS = { has_opinion = { target = ROOT value > 49 } } THIS = { has_military_access_to = ROOT } } AND = { THIS = { has_opinion = { target = ROOT value > 99 } } THIS = { gives_military_access_to = ROOT } } AND = { THIS = { has_opinion = { target = ROOT value > 49 } } OR = { ROOT = { has_volunteers_amount_from = { tag = THIS count > 0 } } THIS = { has_volunteers_amount_from = { tag = ROOT count > 0 } } } } } } } condition_four = { base = 0 modifier = { add = 20 THIS = { has_idea = NATO_member } ROOT = { has_idea = NATO_member } } } condition_five = { base = 0 modifier = { add = 15 THIS = { has_idea = EU_member } ROOT = { has_idea = EU_member } } } condition_six = { base = 0 modifier = { add = 25 THIS = { is_in_faction_with = ROOT } } } war_ally_condition = { base = 0 modifier = { add = 10 ROOT = { has_war_together_with = THIS } } } usa_ally_condition = { base = 0 modifier = { add = 15 THIS = { original_tag = USA } ROOT = { OR = { has_idea = Major_Non_NATO_Ally has_idea = NATO_member } } } } commonwealth_condition = { base = 0 modifier = { add = 15 THIS = { original_tag = ENG } ROOT = { has_dynamic_modifier = { modifier = Commonwealth_member_modifier } } } } sco_member_condition = { base = 0 modifier = { add = 15 THIS = { original_tag = CHI } ROOT = { OR = { has_idea = CHI_sco_member has_idea = CHI_sco_member_mil } } } } opposing_factions_condition = { base = 0 modifier = { add = -40 THIS = { is_in_faction = yes } ROOT = { is_in_faction = yes NOT = { is_in_faction_with = THIS } } } } war_condition = { base = 0 modifier = { ROOT = { has_war_together_with = PREV } add = 250 } modifier = { ROOT = { has_war_with = PREV } add = -250 } } wargoal_condition = { base = 0 modifier = { ROOT = { is_justifying_wargoal_against = PREV } add = -200 } modifier = { ROOT = { has_wargoal_against = PREV } add = -250 } } } } offer_mil_spy_access = { visible = { ROOT = { NOT = { is_in_array = { array = SPY_mil_treaty_array value = PREV.id } } } } selectable = { custom_trigger_tooltip = { tooltip = OFFER_MIL_SPY_ACCESS_SELECTABLE_TT check_variable = { ROOT.var_SPY_mil_system_idx > 161 } OR = { check_variable = { ROOT.var_SPY_mil_system_idx = PREV.var_SPY_mil_system_idx } check_variable = { ROOT.var_SPY_mil_system_idx > PREV.var_SPY_mil_system_idx } } } } cost = 0 requires_acceptance = yes show_acceptance_on_action_button = yes icon = 22 #### ACTION LOCALISATION ### send_description = OFFER_MIL_SPY_ACCESS_LOC receive_description = OFFER_MIL_SPY_ACCESS_RECIEVER_LOC accept_title = OFFER_MIL_SPY_ACCESS_ACCEPTED_TITLE accept_description = OFFER_MIL_SPY_ACCESS_ACCEPTED_DESC reject_title = OFFER_MIL_SPY_ACCESS_REJECTED_TITLE reject_description = OFFER_MIL_SPY_ACCESS_REJECTED_DESC #### EFFECTS ### on_sent_effect = { ROOT = { set_variable = { pending_offer_mil_spy_access = PREV.id } } } complete_effect = { ROOT = { add_to_array = { array = ROOT.SPY_mil_treaty_array value = PREV.id } add_to_array = { array = PREV.SPY_mil_access_array value = ROOT.id } add_to_array = { array = PREV.SPY_mil_access_system_idx_array value = ROOT.var_SPY_mil_system_idx } PREV = { add_access_SPY_mil_vars = yes } clear_variable = pending_offer_mil_spy_access set_country_flag = { flag = recently_accepted_mil_spy_@PREV value = 1 days = 270 } } THIS = { country_event = satellites.9 } ROOT = { country_event = satellites.9 } } reject_effect = { ROOT = { clear_variable = pending_offer_mil_spy_access set_country_flag = { flag = recently_rejected_offer_mil_spy_access_@PREV value = 1 days = 270 } } THIS = { set_country_flag = { flag = recently_rejected_offer_mil_spy_access_@ROOT value = 1 days = 270 } } } #### AI SECTION ### ai_desire = { base = 0 modifier = { add = 10 ROOT = { is_ai = no } check_variable = { global.difficulty = 0 } } modifier = { add = 5 ROOT = { is_ai = no } check_variable = { global.difficulty = 1 } } modifier = { add = -5 ROOT = { is_ai = no } check_variable = { global.difficulty = 3 } } modifier = { add = -10 ROOT = { is_ai = no } check_variable = { global.difficulty = 4 } } modifier = { # Offer/request to allied and friendly nations add = 30 OR = { ROOT = { has_opinion = { target = PREV value > 149 } } AND = { ROOT = { has_opinion = { target = PREV value > 49 } } ROOT = { has_military_access_to = PREV } } AND = { ROOT = { has_opinion = { target = PREV value > 99 } } ROOT = { gives_military_access_to = PREV } } AND = { ROOT = { has_opinion = { target = PREV value > 49 } } has_volunteers_amount_from = { tag = ROOT count > 0 } } AND = { ROOT = { has_opinion = { target = PREV value > 49 } } ROOT = { has_volunteers_amount_from = { tag = PREV count > 0 } } } AND = { ROOT = { has_idea = NATO_member } has_idea = NATO_member } AND = { ROOT = { has_idea = EU_member } has_idea = EU_member } ROOT = { is_in_faction_with = PREV } has_war_together_with = ROOT AND = { ROOT = { original_tag = USA } has_idea = Major_Non_NATO_Ally } AND = { ROOT = { original_tag = USA } has_idea = NATO_member } AND = { ROOT = { original_tag = ENG } has_dynamic_modifier = { modifier = Commonwealth_member_modifier } } AND = { original_tag = ENG ROOT = { has_dynamic_modifier = { modifier = Commonwealth_member_modifier } } } AND = { ROOT = { original_tag = CHI } has_idea = CHI_sco_member } AND = { ROOT = { original_tag = CHI } has_idea = CHI_sco_member_mil } AND = { original_tag = CHI ROOT = { has_idea = CHI_sco_member } } AND = { original_tag = CHI ROOT = { has_idea = CHI_sco_member_mil } } } } modifier = { # Withhold from geopolitical adversaries and rivals add = -100 OR = { ROOT = { has_opinion = { target = PREV value < 150 } } has_war_with = ROOT is_justifying_wargoal_against = ROOT has_wargoal_against = ROOT AND = { ROOT = { is_in_faction = yes } is_in_faction = yes NOT = { is_in_faction_with = ROOT } } } } modifier = { add = -100 OR = { check_variable = { THIS.var_SPY_mil_system_idx > ROOT.var_SPY_mil_system_idx } check_variable = { THIS.var_SPY_mil_system_idx = ROOT.var_SPY_mil_system_idx } } } modifier = { add = -100 ROOT = { has_country_flag = recently_offer_mil_spy_access_@PREV } } modifier = { add = -100 ROOT = { has_country_flag = recently_revoke_mil_spy_access_@PREV } } modifier = { add = -100 ROOT = { has_country_flag = recently_rejected_offer_mil_spy_access_@PREV } } modifier = { factor = 0 OR = { ROOT = { NOT = { check_variable = { pending_offer_mil_spy_access = 0 } } } ROOT = { has_country_flag = recently_rejected_offer_mil_spy_access_@PREV } ROOT = { has_country_flag = recently_revoke_mil_spy_access_@PREV } ROOT = { has_country_flag = recently_offer_mil_spy_access_@PREV } } } } ai_acceptance = { base_desire = { base = 50 modifier = { add = 10 ROOT = { is_ai = no } check_variable = { global.difficulty = 0 } } modifier = { add = 5 ROOT = { is_ai = no } check_variable = { global.difficulty = 1 } } modifier = { add = -5 ROOT = { is_ai = no } check_variable = { global.difficulty = 3 } } modifier = { add = -10 ROOT = { is_ai = no } check_variable = { global.difficulty = 4 } } } opinion_condition = { base = 0 modifier = { check_opinion_calculation = yes add = opinion_calculator } } military_cooperation_condition = { base = 0 modifier = { add = 15 OR = { AND = { THIS = { has_opinion = { target = ROOT value > 49 } } THIS = { has_military_access_to = ROOT } } AND = { THIS = { has_opinion = { target = ROOT value > 99 } } THIS = { gives_military_access_to = ROOT } } AND = { THIS = { has_opinion = { target = ROOT value > 49 } } OR = { ROOT = { has_volunteers_amount_from = { tag = THIS count > 0 } } THIS = { has_volunteers_amount_from = { tag = ROOT count > 0 } } } } } } } condition_four = { base = 0 modifier = { add = 20 THIS = { has_idea = NATO_member } ROOT = { has_idea = NATO_member } } } condition_five = { base = 0 modifier = { add = 15 THIS = { has_idea = EU_member } ROOT = { has_idea = EU_member } } } condition_six = { base = 0 modifier = { add = 25 THIS = { is_in_faction_with = ROOT } } } war_ally_condition = { base = 0 modifier = { add = 10 ROOT = { has_war_together_with = THIS } } } usa_ally_condition = { base = 0 modifier = { add = 15 THIS = { original_tag = USA } ROOT = { OR = { has_idea = Major_Non_NATO_Ally has_idea = NATO_member } } } } commonwealth_condition = { base = 0 modifier = { add = 15 THIS = { original_tag = ENG } ROOT = { has_dynamic_modifier = { modifier = Commonwealth_member_modifier } } } } sco_member_condition = { base = 0 modifier = { add = 15 THIS = { original_tag = CHI } ROOT = { OR = { has_idea = CHI_sco_member has_idea = CHI_sco_member_mil } } } } opposing_factions_condition = { base = 0 modifier = { add = -40 THIS = { is_in_faction = yes } ROOT = { is_in_faction = yes NOT = { is_in_faction_with = THIS } } } } war_condition = { base = 0 modifier = { ROOT = { has_war = yes } add = -50 } modifier = { ROOT = { has_war_together_with = PREV } add = 250 } modifier = { ROOT = { has_war_with = PREV } add = -250 } } wargoal_condition = { base = 0 modifier = { ROOT = { is_justifying_wargoal_against = PREV } add = -200 } modifier = { ROOT = { has_wargoal_against = PREV } add = -250 } } } } revoke_mil_spy_access = { visible = { ROOT = { is_in_array = { array = SPY_mil_treaty_array value = PREV.id } } } selectable = { always = yes } cost = 0 requires_acceptance = no show_acceptance_on_action_button = no icon = 22 #### ACTION LOCALISATION ### send_description = REVOKE_MIL_SPY_ACCESS_LOC receive_description = REVOKE_MIL_SPY_ACCESS_RECIEVER_LOC accept_title = REVOKE_MIL_SPY_ACCESS_ACCEPTED_TITLE accept_description = REVOKE_MIL_SPY_ACCESS_ACCEPTED_DESC reject_title = REVOKE_MIL_SPY_ACCESS_REJECTED_TITLE reject_description = REVOKE_MIL_SPY_ACCESS_REJECTED_DESC #### EFFECTS ### complete_effect = { ROOT = { remove_from_array = { array = ROOT.SPY_mil_treaty_array value = PREV.id } PREV = { set_temp_variable = { temp_SPY_mil_access_break = 0 } for_each_loop = { array = SPY_mil_access_array value = v index = i break = temp_SPY_mil_access_break if = { limit = { check_variable = { v = ROOT.id } } remove_from_array = { array = SPY_mil_access_system_idx_array index = i } remove_from_array = { array = SPY_mil_access_array index = i } set_temp_variable = { temp_SPY_mil_access_break = 1 } } } add_access_SPY_mil_vars = yes } set_country_flag = { flag = recently_revoke_mil_spy_access_@PREV days = 180 value = 1 } } THIS = { country_event = satellites.9 } ROOT = { country_event = satellites.9 } } reject_effect = { ROOT = { set_country_flag = { flag = recently_revoke_mil_spy_access_@PREV days = 180 value = 1 } } } #### AI SECTION ### ai_desire = { base = 0 modifier = { add = 10 ROOT = { is_ai = no } check_variable = { global.difficulty = 0 } } modifier = { add = 5 ROOT = { is_ai = no } check_variable = { global.difficulty = 1 } } modifier = { add = -5 ROOT = { is_ai = no } check_variable = { global.difficulty = 3 } } modifier = { add = -10 ROOT = { is_ai = no } check_variable = { global.difficulty = 4 } } modifier = { # Do not revoke from allied and friendly nations add = -100 OR = { ROOT = { has_opinion = { target = PREV value > 149 } } AND = { ROOT = { has_opinion = { target = PREV value > 49 } } ROOT = { has_military_access_to = PREV } } AND = { ROOT = { has_opinion = { target = PREV value > 99 } } ROOT = { gives_military_access_to = PREV } } AND = { ROOT = { has_opinion = { target = PREV value > 49 } } has_volunteers_amount_from = { tag = ROOT count > 0 } } AND = { ROOT = { has_opinion = { target = PREV value > 49 } } ROOT = { has_volunteers_amount_from = { tag = PREV count > 0 } } } AND = { ROOT = { has_idea = NATO_member } has_idea = NATO_member } AND = { ROOT = { has_idea = EU_member } has_idea = EU_member } ROOT = { is_in_faction_with = PREV } has_war_together_with = ROOT AND = { ROOT = { original_tag = USA } has_idea = Major_Non_NATO_Ally } AND = { ROOT = { original_tag = USA } has_idea = NATO_member } AND = { ROOT = { original_tag = ENG } has_dynamic_modifier = { modifier = Commonwealth_member_modifier } } AND = { original_tag = ENG ROOT = { has_dynamic_modifier = { modifier = Commonwealth_member_modifier } } } AND = { ROOT = { original_tag = CHI } has_idea = CHI_sco_member } AND = { ROOT = { original_tag = CHI } has_idea = CHI_sco_member_mil } AND = { original_tag = CHI ROOT = { has_idea = CHI_sco_member } } AND = { original_tag = CHI ROOT = { has_idea = CHI_sco_member_mil } } } } modifier = { # Revoke from geopolitical adversaries and rivals add = 400 OR = { ROOT = { has_opinion = { target = PREV value < 150 } } has_war_with = ROOT is_justifying_wargoal_against = ROOT has_wargoal_against = ROOT AND = { ROOT = { is_in_faction = yes } is_in_faction = yes NOT = { is_in_faction_with = ROOT } } } } modifier = { add = -100 ROOT = { has_country_flag = recently_revoke_mil_spy_access_@PREV } } modifier = { add = -100 ROOT = { has_country_flag = recently_offer_mil_spy_access_@PREV } } modifier = { factor = 0 OR = { ROOT = { has_country_flag = recently_accepted_mil_spy_@PREV } THIS = { has_country_flag = recently_accepted_mil_spy_@ROOT } } } } } ### SPY civ request_civ_spy_access = { visible = { ROOT = { NOT = { is_in_array = { array = SPY_civ_access_array value = PREV.id } } } } selectable = { custom_trigger_tooltip = { tooltip = REQUEST_CIV_SPY_ACCESS_SELECTABLE_TT check_variable = { PREV.var_SPY_civ_system_idx > 161 } OR = { check_variable = { PREV.var_SPY_civ_system_idx = ROOT.var_SPY_civ_system_idx } check_variable = { PREV.var_SPY_civ_system_idx > ROOT.var_SPY_civ_system_idx } } } } cost = 0 requires_acceptance = yes show_acceptance_on_action_button = yes icon = 22 #### ACTION LOCALISATION ### send_description = REQUEST_CIV_SPY_ACCESS_LOC receive_description = REQUEST_CIV_SPY_ACCESS_RECIEVER_LOC accept_title = REQUEST_CIV_SPY_ACCESS_ACCEPTED_TITLE accept_description = REQUEST_CIV_SPY_ACCESS_ACCEPTED_DESC reject_title = REQUEST_CIV_SPY_ACCESS_REJECTED_TITLE reject_description = REQUEST_CIV_SPY_ACCESS_REJECTED_DESC #### EFFECTS ### on_sent_effect = { ROOT = { set_variable = { pending_request_civ_spy_access = PREV.id } } } complete_effect = { ROOT = { add_to_array = { array = PREV.SPY_civ_treaty_array value = ROOT.id } add_to_array = { array = SPY_civ_access_array value = PREV.id } add_to_array = { array = SPY_civ_access_system_idx_array value = PREV.var_SPY_civ_system_idx } add_access_SPY_civ_vars = yes clear_variable = pending_request_civ_spy_access set_country_flag = { flag = recently_accepted_civ_spy_@PREV value = 1 days = 270 } } THIS = { country_event = satellites.9 } ROOT = { country_event = satellites.9 } } reject_effect = { ROOT = { clear_variable = pending_request_civ_spy_access set_country_flag = { flag = recently_rejected_request_civ_spy_access_@PREV value = 1 days = 270 } } THIS = { set_country_flag = { flag = recently_rejected_request_civ_spy_access_@ROOT value = 1 days = 270 } } } #### AI SECTION ### ai_desire = { base = 0 modifier = { add = 10 ROOT = { is_ai = no } check_variable = { global.difficulty = 0 } } modifier = { add = 5 ROOT = { is_ai = no } check_variable = { global.difficulty = 1 } } modifier = { add = -5 ROOT = { is_ai = no } check_variable = { global.difficulty = 3 } } modifier = { add = -10 ROOT = { is_ai = no } check_variable = { global.difficulty = 4 } } modifier = { # Offer/request to allied and friendly nations add = 30 OR = { ROOT = { has_opinion = { target = PREV value > 149 } } AND = { ROOT = { has_opinion = { target = PREV value > 49 } } ROOT = { has_military_access_to = PREV } } AND = { ROOT = { has_opinion = { target = PREV value > 99 } } ROOT = { gives_military_access_to = PREV } } AND = { ROOT = { has_opinion = { target = PREV value > 49 } } has_volunteers_amount_from = { tag = ROOT count > 0 } } AND = { ROOT = { has_opinion = { target = PREV value > 49 } } ROOT = { has_volunteers_amount_from = { tag = PREV count > 0 } } } AND = { ROOT = { has_idea = NATO_member } has_idea = NATO_member } AND = { ROOT = { has_idea = EU_member } has_idea = EU_member } ROOT = { is_in_faction_with = PREV } has_war_together_with = ROOT AND = { ROOT = { original_tag = USA } has_idea = Major_Non_NATO_Ally } AND = { ROOT = { original_tag = USA } has_idea = NATO_member } AND = { ROOT = { original_tag = ENG } has_dynamic_modifier = { modifier = Commonwealth_member_modifier } } AND = { original_tag = ENG ROOT = { has_dynamic_modifier = { modifier = Commonwealth_member_modifier } } } AND = { ROOT = { original_tag = CHI } has_idea = CHI_sco_member } AND = { ROOT = { original_tag = CHI } has_idea = CHI_sco_member_mil } AND = { original_tag = CHI ROOT = { has_idea = CHI_sco_member } } AND = { original_tag = CHI ROOT = { has_idea = CHI_sco_member_mil } } } } modifier = { # Withhold from geopolitical adversaries and rivals add = -100 OR = { ROOT = { has_opinion = { target = PREV value < 150 } } has_war_with = ROOT is_justifying_wargoal_against = ROOT has_wargoal_against = ROOT AND = { ROOT = { is_in_faction = yes } is_in_faction = yes NOT = { is_in_faction_with = ROOT } } } } modifier = { add = 50 check_variable = { PREV.var_SPY_civ_system_idx > ROOT.var_SPY_civ_system_idx } } modifier = { add = -100 ROOT = { has_country_flag = recently_rejected_request_civ_spy_access_@PREV } } modifier = { factor = 0 OR = { ROOT = { NOT = { check_variable = { pending_request_civ_spy_access = 0 } } } ROOT = { has_country_flag = recently_rejected_request_civ_spy_access_@PREV } } } modifier = { factor = 0 has_country_flag = MD_auto_reject_satellite_access } } ai_acceptance = { base_desire = { base = 0 modifier = { add = 10 ROOT = { is_ai = no } check_variable = { global.difficulty = 0 } } modifier = { add = 5 ROOT = { is_ai = no } check_variable = { global.difficulty = 1 } } modifier = { add = -5 ROOT = { is_ai = no } check_variable = { global.difficulty = 3 } } modifier = { add = -10 ROOT = { is_ai = no } check_variable = { global.difficulty = 4 } } } opinion_condition = { base = 0 modifier = { check_opinion_calculation = yes add = opinion_calculator } } military_cooperation_condition = { base = 0 modifier = { add = 15 OR = { AND = { THIS = { has_opinion = { target = ROOT value > 49 } } THIS = { has_military_access_to = ROOT } } AND = { THIS = { has_opinion = { target = ROOT value > 99 } } THIS = { gives_military_access_to = ROOT } } AND = { THIS = { has_opinion = { target = ROOT value > 49 } } OR = { ROOT = { has_volunteers_amount_from = { tag = THIS count > 0 } } THIS = { has_volunteers_amount_from = { tag = ROOT count > 0 } } } } } } } condition_four = { base = 0 modifier = { add = 20 THIS = { has_idea = NATO_member } ROOT = { has_idea = NATO_member } } } condition_five = { base = 0 modifier = { add = 15 THIS = { has_idea = EU_member } ROOT = { has_idea = EU_member } } } condition_six = { base = 0 modifier = { add = 25 THIS = { is_in_faction_with = ROOT } } } war_ally_condition = { base = 0 modifier = { add = 10 ROOT = { has_war_together_with = THIS } } } usa_ally_condition = { base = 0 modifier = { add = 15 THIS = { original_tag = USA } ROOT = { OR = { has_idea = Major_Non_NATO_Ally has_idea = NATO_member } } } } commonwealth_condition = { base = 0 modifier = { add = 15 THIS = { original_tag = ENG } ROOT = { has_dynamic_modifier = { modifier = Commonwealth_member_modifier } } } } sco_member_condition = { base = 0 modifier = { add = 15 THIS = { original_tag = CHI } ROOT = { OR = { has_idea = CHI_sco_member has_idea = CHI_sco_member_mil } } } } opposing_factions_condition = { base = 0 modifier = { add = -40 THIS = { is_in_faction = yes } ROOT = { is_in_faction = yes NOT = { is_in_faction_with = THIS } } } } war_condition = { base = 0 modifier = { ROOT = { has_war_together_with = PREV } add = 250 } modifier = { ROOT = { has_war_with = PREV } add = -250 } } wargoal_condition = { base = 0 modifier = { ROOT = { is_justifying_wargoal_against = PREV } add = -200 } modifier = { ROOT = { has_wargoal_against = PREV } add = -250 } } } } offer_civ_spy_access = { visible = { ROOT = { NOT = { is_in_array = { array = SPY_civ_treaty_array value = PREV.id } } } } selectable = { custom_trigger_tooltip = { tooltip = OFFER_CIV_SPY_ACCESS_SELECTABLE_TT check_variable = { ROOT.var_SPY_civ_system_idx > 161 } OR = { check_variable = { ROOT.var_SPY_civ_system_idx = PREV.var_SPY_civ_system_idx } check_variable = { ROOT.var_SPY_civ_system_idx > PREV.var_SPY_civ_system_idx } } } } cost = 0 requires_acceptance = yes show_acceptance_on_action_button = yes icon = 22 #### ACTION LOCALISATION ### send_description = OFFER_CIV_SPY_ACCESS_LOC receive_description = OFFER_CIV_SPY_ACCESS_RECIEVER_LOC accept_title = OFFER_CIV_SPY_ACCESS_ACCEPTED_TITLE accept_description = OFFER_CIV_SPY_ACCESS_ACCEPTED_DESC reject_title = OFFER_CIV_SPY_ACCESS_REJECTED_TITLE reject_description = OFFER_CIV_SPY_ACCESS_REJECTED_DESC #### EFFECTS ### on_sent_effect = { ROOT = { set_variable = { pending_offer_civ_spy_access = PREV.id } } } complete_effect = { ROOT = { add_to_array = { array = ROOT.SPY_civ_treaty_array value = PREV.id } add_to_array = { array = PREV.SPY_civ_access_array value = ROOT.id } add_to_array = { array = PREV.SPY_civ_access_system_idx_array value = ROOT.var_SPY_civ_system_idx } PREV = { add_access_SPY_civ_vars = yes } clear_variable = pending_offer_civ_spy_access set_country_flag = { flag = recently_accepted_civ_spy_@PREV value = 1 days = 270 } } THIS = { country_event = satellites.9 } ROOT = { country_event = satellites.9 } } reject_effect = { ROOT = { clear_variable = pending_offer_civ_spy_access set_country_flag = { flag = recently_rejected_offer_civ_spy_access_@PREV value = 1 days = 270 } } THIS = { set_country_flag = { flag = recently_rejected_offer_civ_spy_access_@ROOT value = 1 days = 270 } } } #### AI SECTION ### ai_desire = { base = 0 modifier = { add = 10 ROOT = { is_ai = no } check_variable = { global.difficulty = 0 } } modifier = { add = 5 ROOT = { is_ai = no } check_variable = { global.difficulty = 1 } } modifier = { add = -5 ROOT = { is_ai = no } check_variable = { global.difficulty = 3 } } modifier = { add = -10 ROOT = { is_ai = no } check_variable = { global.difficulty = 4 } } modifier = { # Offer/request to allied and friendly nations add = 30 OR = { ROOT = { has_opinion = { target = PREV value > 149 } } AND = { ROOT = { has_opinion = { target = PREV value > 49 } } ROOT = { has_military_access_to = PREV } } AND = { ROOT = { has_opinion = { target = PREV value > 99 } } ROOT = { gives_military_access_to = PREV } } AND = { ROOT = { has_opinion = { target = PREV value > 49 } } has_volunteers_amount_from = { tag = ROOT count > 0 } } AND = { ROOT = { has_opinion = { target = PREV value > 49 } } ROOT = { has_volunteers_amount_from = { tag = PREV count > 0 } } } AND = { ROOT = { has_idea = NATO_member } has_idea = NATO_member } AND = { ROOT = { has_idea = EU_member } has_idea = EU_member } ROOT = { is_in_faction_with = PREV } has_war_together_with = ROOT AND = { ROOT = { original_tag = USA } has_idea = Major_Non_NATO_Ally } AND = { ROOT = { original_tag = USA } has_idea = NATO_member } AND = { ROOT = { original_tag = ENG } has_dynamic_modifier = { modifier = Commonwealth_member_modifier } } AND = { original_tag = ENG ROOT = { has_dynamic_modifier = { modifier = Commonwealth_member_modifier } } } AND = { ROOT = { original_tag = CHI } has_idea = CHI_sco_member } AND = { ROOT = { original_tag = CHI } has_idea = CHI_sco_member_mil } AND = { original_tag = CHI ROOT = { has_idea = CHI_sco_member } } AND = { original_tag = CHI ROOT = { has_idea = CHI_sco_member_mil } } } } modifier = { # Withhold from geopolitical adversaries and rivals add = -100 OR = { ROOT = { has_opinion = { target = PREV value < 150 } } has_war_with = ROOT is_justifying_wargoal_against = ROOT has_wargoal_against = ROOT AND = { ROOT = { is_in_faction = yes } is_in_faction = yes NOT = { is_in_faction_with = ROOT } } } } modifier = { add = -100 OR = { check_variable = { THIS.var_SPY_civ_system_idx > ROOT.var_SPY_civ_system_idx } check_variable = { THIS.var_SPY_civ_system_idx = ROOT.var_SPY_civ_system_idx } } } modifier = { add = -100 ROOT = { has_country_flag = recently_offer_civ_spy_access_@PREV } } modifier = { add = -100 ROOT = { has_country_flag = recently_revoke_civ_spy_access_@PREV } } modifier = { add = -100 ROOT = { has_country_flag = recently_rejected_offer_civ_spy_access_@PREV } } modifier = { factor = 0 OR = { ROOT = { NOT = { check_variable = { pending_offer_civ_spy_access = 0 } } } ROOT = { has_country_flag = recently_rejected_offer_civ_spy_access_@PREV } ROOT = { has_country_flag = recently_revoke_civ_spy_access_@PREV } ROOT = { has_country_flag = recently_offer_civ_spy_access_@PREV } } } } ai_acceptance = { base_desire = { base = 50 modifier = { add = 10 ROOT = { is_ai = no } check_variable = { global.difficulty = 0 } } modifier = { add = 5 ROOT = { is_ai = no } check_variable = { global.difficulty = 1 } } modifier = { add = -5 ROOT = { is_ai = no } check_variable = { global.difficulty = 3 } } modifier = { add = -10 ROOT = { is_ai = no } check_variable = { global.difficulty = 4 } } } opinion_condition = { base = 0 modifier = { check_opinion_calculation = yes add = opinion_calculator } } military_cooperation_condition = { base = 0 modifier = { add = 15 OR = { AND = { THIS = { has_opinion = { target = ROOT value > 49 } } THIS = { has_military_access_to = ROOT } } AND = { THIS = { has_opinion = { target = ROOT value > 99 } } THIS = { gives_military_access_to = ROOT } } AND = { THIS = { has_opinion = { target = ROOT value > 49 } } OR = { ROOT = { has_volunteers_amount_from = { tag = THIS count > 0 } } THIS = { has_volunteers_amount_from = { tag = ROOT count > 0 } } } } } } } condition_four = { base = 0 modifier = { add = 20 THIS = { has_idea = NATO_member } ROOT = { has_idea = NATO_member } } } condition_five = { base = 0 modifier = { add = 15 THIS = { has_idea = EU_member } ROOT = { has_idea = EU_member } } } condition_six = { base = 0 modifier = { add = 25 THIS = { is_in_faction_with = ROOT } } } war_ally_condition = { base = 0 modifier = { add = 10 ROOT = { has_war_together_with = THIS } } } usa_ally_condition = { base = 0 modifier = { add = 15 THIS = { original_tag = USA } ROOT = { OR = { has_idea = Major_Non_NATO_Ally has_idea = NATO_member } } } } commonwealth_condition = { base = 0 modifier = { add = 15 THIS = { original_tag = ENG } ROOT = { has_dynamic_modifier = { modifier = Commonwealth_member_modifier } } } } sco_member_condition = { base = 0 modifier = { add = 15 THIS = { original_tag = CHI } ROOT = { OR = { has_idea = CHI_sco_member has_idea = CHI_sco_member_mil } } } } opposing_factions_condition = { base = 0 modifier = { add = -40 THIS = { is_in_faction = yes } ROOT = { is_in_faction = yes NOT = { is_in_faction_with = THIS } } } } war_condition = { base = 0 modifier = { ROOT = { has_war = yes } add = -50 } modifier = { ROOT = { has_war_together_with = PREV } add = 250 } modifier = { ROOT = { has_war_with = PREV } add = -250 } } wargoal_condition = { base = 0 modifier = { ROOT = { is_justifying_wargoal_against = PREV } add = -200 } modifier = { ROOT = { has_wargoal_against = PREV } add = -250 } } } } revoke_civ_spy_access = { visible = { ROOT = { is_in_array = { array = SPY_civ_treaty_array value = PREV.id } } } selectable = { always = yes } cost = 0 requires_acceptance = no show_acceptance_on_action_button = no icon = 22 #### ACTION LOCALISATION ### send_description = REVOKE_CIV_SPY_ACCESS_LOC receive_description = REVOKE_CIV_SPY_ACCESS_RECIEVER_LOC accept_title = REVOKE_CIV_SPY_ACCESS_ACCEPTED_TITLE accept_description = REVOKE_CIV_SPY_ACCESS_ACCEPTED_DESC reject_title = REVOKE_CIV_SPY_ACCESS_REJECTED_TITLE reject_description = REVOKE_CIV_SPY_ACCESS_REJECTED_DESC #### EFFECTS ### complete_effect = { ROOT = { remove_from_array = { array = ROOT.SPY_civ_treaty_array value = PREV.id } PREV = { set_temp_variable = { temp_SPY_civ_access_break = 0 } for_each_loop = { array = SPY_civ_access_array value = v index = i break = temp_SPY_civ_access_break if = { limit = { check_variable = { v = ROOT.id } } remove_from_array = { array = SPY_civ_access_system_idx_array index = i } remove_from_array = { array = SPY_civ_access_array index = i } set_temp_variable = { temp_SPY_civ_access_break = 1 } } } add_access_SPY_civ_vars = yes } set_country_flag = { flag = recently_revoke_civ_spy_access_@PREV days = 180 value = 1 } } THIS = { country_event = satellites.9 } ROOT = { country_event = satellites.9 } } reject_effect = { ROOT = { set_country_flag = { flag = recently_revoke_civ_spy_access_@PREV days = 180 value = 1 } } } #### AI SECTION ### ai_desire = { base = 0 modifier = { add = 10 ROOT = { is_ai = no } check_variable = { global.difficulty = 0 } } modifier = { add = 5 ROOT = { is_ai = no } check_variable = { global.difficulty = 1 } } modifier = { add = -5 ROOT = { is_ai = no } check_variable = { global.difficulty = 3 } } modifier = { add = -10 ROOT = { is_ai = no } check_variable = { global.difficulty = 4 } } modifier = { # Do not revoke from allied and friendly nations add = -100 OR = { ROOT = { has_opinion = { target = PREV value > 149 } } AND = { ROOT = { has_opinion = { target = PREV value > 49 } } ROOT = { has_military_access_to = PREV } } AND = { ROOT = { has_opinion = { target = PREV value > 99 } } ROOT = { gives_military_access_to = PREV } } AND = { ROOT = { has_opinion = { target = PREV value > 49 } } has_volunteers_amount_from = { tag = ROOT count > 0 } } AND = { ROOT = { has_opinion = { target = PREV value > 49 } } ROOT = { has_volunteers_amount_from = { tag = PREV count > 0 } } } AND = { ROOT = { has_idea = NATO_member } has_idea = NATO_member } AND = { ROOT = { has_idea = EU_member } has_idea = EU_member } ROOT = { is_in_faction_with = PREV } has_war_together_with = ROOT AND = { ROOT = { original_tag = USA } has_idea = Major_Non_NATO_Ally } AND = { ROOT = { original_tag = USA } has_idea = NATO_member } AND = { ROOT = { original_tag = ENG } has_dynamic_modifier = { modifier = Commonwealth_member_modifier } } AND = { original_tag = ENG ROOT = { has_dynamic_modifier = { modifier = Commonwealth_member_modifier } } } AND = { ROOT = { original_tag = CHI } has_idea = CHI_sco_member } AND = { ROOT = { original_tag = CHI } has_idea = CHI_sco_member_mil } AND = { original_tag = CHI ROOT = { has_idea = CHI_sco_member } } AND = { original_tag = CHI ROOT = { has_idea = CHI_sco_member_mil } } } } modifier = { # Revoke from geopolitical adversaries and rivals add = 400 OR = { ROOT = { has_opinion = { target = PREV value < 150 } } has_war_with = ROOT is_justifying_wargoal_against = ROOT has_wargoal_against = ROOT AND = { ROOT = { is_in_faction = yes } is_in_faction = yes NOT = { is_in_faction_with = ROOT } } } } modifier = { add = -100 ROOT = { has_country_flag = recently_revoke_civ_spy_access_@PREV } } modifier = { add = -100 ROOT = { has_country_flag = recently_offer_civ_spy_access_@PREV } } modifier = { factor = 0 OR = { ROOT = { has_country_flag = recently_accepted_civ_spy_@PREV } THIS = { has_country_flag = recently_accepted_civ_spy_@ROOT } } } } } }