war_declaration_rule_any_country = { type = war_declaration_rules available = { is_locked_faction = no } can_remove = { NOT = { ROOT = { is_locked_faction = yes } } } ai_will_do = { base = 0 } } #Declare Country war_declaration_rule_independent_countries_only = { type = war_declaration_rules ai_will_do = { base = 0 } available = { is_locked_faction = no } can_remove = { NOT = { ROOT = { is_locked_faction = yes } } } trigger = { is_subject = no } } war_declaration_rule_faction_leader_only = { type = war_declaration_rules ai_will_do = { base = 0 modifier = { add = 2 is_faction_leader = yes } } available = { is_locked_faction = no } can_remove = { NOT = { ROOT = { is_locked_faction = yes } } } trigger = { is_faction_leader = yes } } war_declaration_rule_major_only = { type = war_declaration_rules ai_will_do = { base = 0 modifier = { add = 3 is_major = yes is_faction_leader = no } } available = { is_locked_faction = no } can_remove = { NOT = { ROOT = { is_locked_faction = yes } } } trigger = { is_major = yes } } war_declaration_claimed_state = { type = war_declaration_rules ai_will_do = { base = 0 modifier = { any_state = { is_claimed_by = ROOT } add = 3 } } available = { is_locked_faction = no } can_remove = { NOT = { ROOT = { is_locked_faction = yes } } } } #Target Country war_declaration_generated_tension_10 = { type = war_declaration_rules ai_will_do = { base = 0 } trigger = { FROM = { has_added_tension_amount > 10 } } } war_declaration_generated_tension_25 = { type = war_declaration_rules ai_will_do = { base = 0 } trigger = { FROM = { has_added_tension_amount > 25 } } } # Situation war_declaration_threat_25 = { type = war_declaration_rules ai_will_do = { base = 0 } trigger = { threat > 0.25 } } war_declaration_threat_50 = { type = war_declaration_rules ai_will_do = { base = 0 } trigger = { threat > 0.5 } } war_declaration_threat_75 = { type = war_declaration_rules ai_will_do = { base = 0 } trigger = { threat > 0.75 } } generate_wargoal_threat_reduction_20 = { type = war_declaration_rules ai_will_do = { base = 0 modifier = { add = 1 has_government = neutrality } } modifier = { generate_wargoal_tension = -0.2 } } generate_wargoal_threat_reduction_40 = { type = war_declaration_rules ai_will_do = { base = 0 modifier = { add = 1 has_government = neutrality is_historical_focus_on = no # Don't do this on historical, it might upset too much } } modifier = { generate_wargoal_tension = -0.4 political_power_factor = -0.2 } } # Regions war_declaration_european = { type = war_declaration_rules ai_will_do = { base = 0 modifier = { FROM = { has_country_flag = european_nation_flag } add = 2 } } available = { is_locked_faction = no } can_remove = { NOT = { ROOT = { is_locked_faction = yes } } } } war_declaration_american = { type = war_declaration_rules ai_will_do = { base = 0 modifier = { ROOT = { has_country_flag = american_nation_flag } add = 2 } } available = { is_locked_faction = no } can_remove = { NOT = { ROOT = { is_locked_faction = yes } } } } war_declaration_african = { type = war_declaration_rules ai_will_do = { base = 0 modifier = { ROOT = { is_in_array = { global.is_african_nation = THIS.id } } add = 2 } } available = { is_locked_faction = no } can_remove = { NOT = { ROOT = { is_locked_faction = yes } } } } war_declaration_asian = { type = war_declaration_rules ai_will_do = { base = 0 modifier = { ROOT = { has_country_flag = asian_nation_flag } add = 2 } } available = { is_locked_faction = no } can_remove = { NOT = { ROOT = { is_locked_faction = yes } } } }