on_actions = { on_weekly = { effect = { if = { limit = { has_country_flag = NATO_Accession_Voting } NATO_auto_ratify_accession = yes } } } # ROOT = aggressor, FROM = attacked country. on_declare_war = { effect = { # Skip the whole NATO block when NATO is disabled by game rule or the # attacker is itself a NATO member (no Article 5 / MNNA pulse to fire). if = { limit = { NOT = { has_global_flag = GAME_RULE_nato_disabled } NOT = { has_idea = NATO_member } } # Article 5 — NATO rallies to defend an attacked member (or member's subject). if = { limit = { FROM = { NOT = { is_subject_of = ROOT } OR = { has_idea = NATO_member AND = { is_subject = yes OVERLORD = { has_idea = NATO_member } } } } } for_each_scope_loop = { array = global.nato_members if = { limit = { has_idea = NATO_member is_subject = no NOT = { has_country_flag = collapsed_nation } NOT = { has_war_with = ROOT } } add_to_war = { targeted_alliance = FROM enemy = ROOT hostility_reason = NATO_collective_defense_agreement } } } } # MNNA Attack Pulse if = { limit = { FROM = { has_idea = Major_Non_NATO_Ally NOT = { is_subject_of = ROOT } } NOT = { has_government = democratic } NOT = { has_idea = Major_Non_NATO_Ally } any_of_scopes = { array = global.nato_members is_faction_leader = yes NOT = { has_country_flag = collapsed_nation } NOT = { has_country_flag = mnna_event_cooldown } NOT = { has_war_with = ROOT } NOT = { tag = ROOT } } } custom_effect_tooltip = MNNA_nato_may_intervene_in_this_conflict_tt hidden_effect = { save_global_event_target_as = mnna_aggressor FROM = { save_global_event_target_as = mnna_defender country_event = { id = department_of_state.1000 days = 3 } } } } } } } }