UN_voting_category = { UN_SC_voting_mission = { icon = GFX_decision_un_flag allowed = { always = yes } available = { un_sc_voting_result_trigger = yes } is_good = yes activation = { has_country_flag = has_sc_mission } days_mission_timeout = 5 selectable_mission = yes complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision UN_SC_voting_mission" if = { limit = { has_country_flag = has_sc_mission } security_council_vote_finished = yes clr_country_flag = has_sc_mission } else = { effect_tooltip = { security_council_vote_finished = yes } } } timeout_effect = { log = "[GetDateText]: [Root.GetName]: Decision UN_SC_voting_mission" if = { limit = { has_country_flag = has_sc_mission } security_council_vote_finished = yes clr_country_flag = has_sc_mission } else = { effect_tooltip = { security_council_vote_finished = yes } } } ai_will_do = { base = -1000 } } UN_SC_voting_mission_result_timer = { icon = GFX_decision_un_flag allowed = { always = yes } available = { always = no } is_good = yes activation = { has_global_flag = current_ongoing_sc_vote } days_mission_timeout = 5 selectable_mission = yes ai_will_do = { base = -1000 } } UN_GA_voting_mission = { icon = GFX_decision_un_flag allowed = { always = yes } available = { un_ga_2_3_required = yes } is_good = yes activation = { has_country_flag = has_ga_mission } days_mission_timeout = 5 selectable_mission = yes complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision UN_GA_voting_mission" if = { limit = { has_country_flag = has_ga_mission } general_assembly_vote_finished = yes clr_country_flag = has_ga_mission } else = { effect_tooltip = { general_assembly_vote_finished = yes } } } timeout_effect = { log = "[GetDateText]: [Root.GetName]: Decision UN_GA_voting_mission" if = { limit = { has_country_flag = has_ga_mission } general_assembly_vote_finished = yes clr_country_flag = has_ga_mission } else = { effect_tooltip = { general_assembly_vote_finished = yes } } } ai_will_do = { base = -1000 } } UN_GA_voting_mission_result_timer = { icon = GFX_decision_un_flag allowed = { always = yes } available = { always = no } is_good = yes activation = { has_global_flag = current_ongoing_ga_vote } days_mission_timeout = 5 selectable_mission = yes ai_will_do = { base = -1000 } } UNSC_end_all_offensive_wars = { allowed = { always = yes } available = { has_offensive_war = no } is_good = no activation = { has_country_flag = has_end_war_mission } days_mission_timeout = 210 complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision UNSC_end_all_offensive_wars" clr_country_flag = has_end_war_mission } timeout_effect = { log = "[GetDateText]: [Root.GetName]: Decision UNSC_end_all_offensive_wars" apply_united_nations_sanctions = yes clr_country_flag = has_end_war_mission } } } UNSC_permanent_seat_campaign = { UNSC_lobby_permanent_member = { icon = GFX_decision_generic_UN target_array = global.p5_sc_members target_root_trigger = { can_campaign_for_permanent_unsc_seat = yes NOT = { check_variable = { global.unsc_permanent_seat_applicant = THIS.id } } } target_trigger = { FROM = { exists = yes NOT = { has_country_flag = recognition_campaign_UNSC@ROOT } } } available = { FROM = { has_opinion = { target = ROOT value > 50 } } } cost = 250 complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision UNSC_lobby_permanent_member" FROM = { set_country_flag = recognition_campaign_UNSC@ROOT add_opinion_modifier = { target = ROOT modifier = is_trying_to_win_our_favour } } } ai_will_do = { base = 1 } } UNSC_submit_permanent_seat_application = { icon = GFX_decision_generic_UN available = { custom_trigger_tooltip = { tooltip = UNSC_retry_cooldown_tt NOT = { has_country_flag = unsc_permanent_seat_retry_cooldown } } custom_trigger_tooltip = { tooltip = UNSC_no_active_application_tt NOT = { has_global_flag = unsc_permanent_seat_application_active } NOT = { has_global_flag = sc_action_against@THIS } } custom_trigger_tooltip = { tooltip = security_council_support_tt # all_of_scopes passes vacuously on an empty array, which would be a free seat. check_variable = { global.p5_sc_members^num > 0 } all_of_scopes = { array = global.p5_sc_members has_country_flag = recognition_campaign_UNSC@ROOT } } } cost = 100 complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision UNSC_submit_permanent_seat_application" set_global_flag = unsc_permanent_seat_application_active set_variable = { global.unsc_permanent_seat_applicant = THIS.id } set_country_flag = unsc_permanent_seat_sc_pending set_global_flag = sc_action_against@THIS set_temp_variable = { sc_new_vote_type = 8 } set_temp_variable = { sc_new_vote_nation = THIS.id } update_sc_vote = yes } ai_will_do = { base = 1 # An aggressor's bid loses the Assembly and burns the year-long retry cooldown. modifier = { factor = 0 has_offensive_war = yes } } } }