NORDIC_debug_decisions_category = { NORDIC_remove_all_nordic_stuff = { complete_effect = { ROOT = { set_country_flag = im_not_here_to_make_friends } } } NORDIC_toggle_SOV_fin_war = { complete_effect = { NORDIC_cooperation_initial_setup = yes if = { limit = { FIN = { has_war = no } } SOV = { declare_war_on = { target = FIN type = annex_everything } } } else = { SOV = { white_peace = FIN } } } } NORDIC_increase_participation = { complete_effect = { NORDIC_increase_war_participation = yes } } NORDIC_reset_participation = { complete_effect = { clear_variable = NORDIC_war_participation_level NORDIC_increase_war_participation = yes } } NORDIC_test_array_adding = { complete_effect = { clear_array = GLOBAL.NORDIC_at_defensive_war NOR = { NORDIC_add_to_war_array = yes } SWE = { NORDIC_add_to_war_array = yes } FIN = { NORDIC_add_to_war_array = yes } DEN = { NORDIC_add_to_war_array = yes } } } NORDIC_increase_conflict_scale = { complete_effect = { NORDIC_increase_conflict_scale = yes } } NORDIC_create_democratic_alliance = { complete_effect = { clr_global_flag = NORDIC_democratic_alliance_formed clr_global_flag = NORDIC_communist_alliance_formed clr_global_flag = NORDIC_monarchist_alliance_formed NORDIC_remove_all_mods = yes dismantle_faction = yes create_faction = "test_faction" every_country = { limit = { NORDIC_is_nordic = yes } set_politics = { ruling_party = democratic elections_allowed = no last_election = "1915.12.01" election_frequency = 1234 } set_political_party = { ideology = democratic popularity = 100 } PREV = { add_to_faction = PREV } } complete_national_focus = NORDIC_form_joint_alliance } } NORDIC_create_commmunist_alliance = { complete_effect = { clr_global_flag = NORDIC_democratic_alliance_formed clr_global_flag = NORDIC_communist_alliance_formed clr_global_flag = NORDIC_monarchist_alliance_formed NORDIC_remove_all_mods = yes dismantle_faction = yes create_faction = "test_faction" every_country = { limit = { NORDIC_is_nordic = yes } set_politics = { ruling_party = communism elections_allowed = no last_election = "1915.12.01" election_frequency = 1234 } set_political_party = { ideology = communism popularity = 100 } PREV = { add_to_faction = PREV.PREV } } complete_national_focus = NORDIC_form_joint_alliance } } NORDIC_create_monarchist_alliance = { complete_effect = { clr_global_flag = NORDIC_democratic_alliance_formed clr_global_flag = NORDIC_communist_alliance_formed clr_global_flag = NORDIC_monarchist_alliance_formed NORDIC_remove_all_mods = yes dismantle_faction = yes create_faction = "test_faction" every_country = { limit = { NORDIC_is_nordic = yes } set_politics = { ruling_party = neutrality elections_allowed = no last_election = "1915.12.01" election_frequency = 1234 } set_political_party = { ideology = neutrality popularity = 100 } PREV = { add_to_faction = PREV } } mark_focus_tree_layout_dirty = yes complete_national_focus = NOR_the_kingdom_of_norway complete_national_focus = NORDIC_form_joint_alliance } } NORDIC_show_all_capstones = { complete_effect = { set_global_flag = NORDIC_debug_show_all_capstones every_owned_state = { limit = { state_has_any_resource = yes } log = "[THIS.GetName]" } mark_focus_tree_layout_dirty = yes } } NORDIC_reload_JFT = { complete_effect = { mark_focus_tree_layout_dirty = yes } } NORDIC_test_platonics = { complete_effect = { find_global_platonic_countries = yes log = "Biggest Fascist is [?GLOBAL.platonic_big_fascist.GetName]" log = "Biggest Democrat is [?GLOBAL.platonic_big_democratic.GetName]" log = "Biggest Communist is [?GLOBAL.platonic_big_communist.GetName]" log = "Biggest Non-Aligned is [?GLOBAL.platonic_big_non_aligned.GetName]" log = "Fascist Bully is [?GLOBAL.platonic_fascist_bully.GetName]" log = "Democratic Ally is [?GLOBAL.platonic_democratic_ally_leader.GetName]" log = "Sleeping Giant is [?GLOBAL.platonic_democratic_sleeping_giant.GetName]" log = "Local Bully is [?platonic_local_dangerous_fascist.GetName]" } } NORDIC_test_cooperation_decisions = { complete_effect = { 914 = { # It's your time to shine Jany! add_extra_state_shared_building_slots = 10 add_building_construction = { type = industrial_complex level = 10 instant_build = yes } } complete_national_focus = NORDIC_reaching_out_to_our_neighbors complete_national_focus = NORDIC_leverage_nordic_investments complete_national_focus = NORDIC_industrial_cooperation } } NORDIC_test_on_remove = { complete_effect = { add_timed_idea = { idea = NORDIC_economic_cooperation_ns days = 7 } } } } NORDIC_cooperation_decisions_category = { ############################################# ############################################# ### ### ### PEACETIME COOPERATION ### ### ### ############################################# ############################################# NORDIC_promote_nordic_unity = { available = { has_war = no is_subject = no } visible = { any_other_country = { NORDIC_is_nordic = yes NOT = {is_in_faction_with = ROOT } } } cost = 40 days_remove = 45 complete_effect = { } modifier = { improve_relations_maintain_cost_factor = -0.2 political_power_factor = 0.15 stability_weekly = 0.02 } remove_effect = { every_other_country = { limit = { NORDIC_valid_decision_target = yes } add_opinion_modifier = { target = ROOT modifier = NORDIC_promoted_nordic_unity } } } cancel_trigger = { has_war = yes is_subject = yes } } NORDIC_strenghten_ties_decision = { ai_will_do = { base = 0 } visible = { # has_completed_focus = NORDIC_strengthen_ties NOT = { has_country_flag = NORDIC_strenghtening_ties_flag } always = no # Replace with appropriate trigger if reintroducing } available = { # This is so it's clear that you can only do one at once NOT = { has_country_flag = NORDIC_strenghtening_ties_flag } } target_trigger = { FROM = { NORDIC_valid_decision_target = yes } } cancel_trigger = { FROM = { NORDIC_valid_decision_target = no } } complete_effect = { set_country_flag = NORDIC_strenghtening_ties_flag } cancel_effect = { clr_country_flag = NORDIC_strenghtening_ties_flag } days_remove = 45 remove_effect = { clr_country_flag = NORDIC_strenghtening_ties_flag add_political_power = 15 add_opinion_modifier = { target = FROM modifier = NORDIC_strengthened_ties } if = { limit = { FROM = { has_government = communism } } add_popularity = { ideology = communism popularity = 0.05 } } else_if = { limit = { FROM = { has_government = democratic } } add_popularity = { ideology = democratic popularity = 0.05 } } else_if = { limit = { FROM = { has_government = neutrality } } add_popularity = { ideology = neutrality popularity = 0.05 } } else_if = { limit = { FROM = { has_government = fascism } } add_popularity = { ideology = fascism popularity = 0.05 } } FROM = { add_political_power = 30 add_opinion_modifier = { target = ROOT modifier = NORDIC_strengthened_ties } if = { limit = { ROOT = { has_government = communism } } add_popularity = { ideology = communism popularity = 0.05 } } else_if = { limit = { ROOT = { has_government = democratic } } add_popularity = { ideology = democratic popularity = 0.05 } } else_if = { limit = { ROOT = { has_government = neutrality } } add_popularity = { ideology = neutrality popularity = 0.05 } } else_if = { limit = { ROOT = { has_government = fascism } } add_popularity = { ideology = fascism popularity = 0.05 } } } } } NORDIC_invest_in_nordic = { visible = { # has_completed_focus = NORDIC_leverage_nordic_investments NOT = { has_country_flag = NORDIC_ongoing_investment } always = no # Replace with appropriate trigger if reintroducing } available = { # This is so it's clear that you can only do one at once NOT = { has_country_flag = NORDIC_ongoing_investment } } target_trigger = { FROM = { NORDIC_valid_decision_target = yes } } days_remove = 60 custom_cost_text = decision_cost_civ_factory_3 custom_cost_trigger = { num_of_civilian_factories_available_for_projects > 2 } cancel_trigger = { NORDIC_valid_decision_target = no } complete_effect = { add_ideas = { NORDIC_sending_investments_ns } hidden_effect = { set_country_flag = NORDIC_ongoing_investment } FROM = { add_ideas = { NORDIC_receiving_investments_fake_ns } hidden_effect = { add_offsite_building = { type = industrial_complex level = 3 } } } } remove_effect = { hidden_effect = { clr_country_flag = NORDIC_ongoing_investment } remove_ideas = { NORDIC_sending_investments_ns } add_offsite_building = { type = industrial_complex level = 1 } FROM = { remove_ideas = { NORDIC_receiving_investments_fake_ns } hidden_effect = { add_offsite_building = { type = industrial_complex level = -3 } } } } } NORDIC_ask_for_investment_to_nordic = { visible = { # has_completed_focus = NORDIC_leverage_nordic_investments NOT = { has_country_flag = NORDIC_ongoing_investment } always = no # Replace with appropriate trigger if reintroducing } available = { # This is so it's clear that you can only do one at once NOT = { has_country_flag = NORDIC_ongoing_investment } } target_trigger = { FROM = { NORDIC_valid_decision_target = yes } } days_remove = 30 cost = 50 cancel_trigger = { NORDIC_valid_decision_target = no } cancel_effect = { hidden_effect = { clr_country_flag = NORDIC_ongoing_investment } } complete_effect = { hidden_effect = { set_country_flag = NORDIC_ongoing_investment } } remove_effect = { hidden_effect = { clr_country_flag = NORDIC_ongoing_investment } FROM = { country_event = { id = AAT_nordic_cooperation.4 hours = 3 } } custom_effect_tooltip = if_they_accept_tt event_option_tooltip = AAT_nordic_cooperation.5.a FROM = { effect_tooltip = { add_timed_idea = { idea = NORDIC_investing_in_neighbor_ns days = 60 } } } } } NORDIC_economic_cooperation_decisions = { visible = { # has_completed_focus = NORDIC_industrial_cooperation NOT = { has_idea = NORDIC_economic_cooperation_ns has_country_flag = NORDIC_ongoing_negotiations } always = no # Replace with appropriate trigger if reintroducing } available = { # This is so it's clear that you can only do one at once NOT = { has_idea = NORDIC_economic_cooperation_ns has_country_flag = NORDIC_ongoing_negotiations } } target_trigger = { FROM = { NORDIC_valid_decision_target = yes } } cancel_trigger ={ FROM = { NORDIC_valid_decision_target = no } } cost = 60 days_remove = 20 cancel_effect = { clr_country_flag = NORDIC_ongoing_negotiations } complete_effect = { set_country_flag = NORDIC_ongoing_negotiations } remove_effect = { clr_country_flag = NORDIC_ongoing_negotiations FROM = { country_event = { id = AAT_nordic_cooperation.7 hours = 4 } } custom_effect_tooltip = if_they_accept_tt FROM = { event_option_tooltip = AAT_nordic_cooperation.7.a } } } NORDIC_court_foreign_power = { visible = { #has_completed_focus = NORDIC_the_nordic_march has_war = no always = no # Replace with appropriate trigger if reintroducing } available = { has_war = no OR = { has_government = communism has_government = fascism } } cost = 100 target_trigger = { FROM = { is_major = yes is_faction_leader = yes has_government = ROOT } } complete_effect = { hidden_effect = { set_country_flag = NORDIC_requesting_through_NORDIC_shared } FROM = { country_event = { id = generic.2 hours = 2 } } } } ############################################# ############################################# ### ### ### WAR CONTRIBUTION MISSIONS ### ### ### ############################################# ############################################# NORDIC_decision_limited_war_participation = { # Second level of War Contribution priority = 102 available = { always = no } days_mission_timeout = 30 is_good = yes activation = { NORDIC_at_war = yes check_variable = { NORDIC_war_participation_level = 1 } } cancel_trigger = { OR = { NOT = { check_variable = { NORDIC_war_participation_level = 1 } } NORDIC_at_peace = yes } } timeout_effect = { NORDIC_decrease_war_participation = yes } } #### ### Inte Lagom ### #### NORDIC_decision_risky_war_participation = { # Third level of War Contribution priority = 102 available = { always = no } days_mission_timeout = 30 is_good = yes activation = { NORDIC_at_war = yes check_variable = { NORDIC_war_participation_level = 2 } } cancel_trigger = { OR = { NOT = { check_variable = { NORDIC_war_participation_level = 2 } } NORDIC_at_peace = yes } } timeout_effect = { NORDIC_decrease_war_participation = yes } } NORDIC_decision_dangerous_war_participation = { # Fourth level of War Contribution priority = 102 available = { always = no } days_mission_timeout = 30 is_good = yes activation = { NORDIC_at_war = yes check_variable = { NORDIC_war_participation_level = 3 } } cancel_trigger = { OR = { NOT = { check_variable = { NORDIC_war_participation_level = 3 } } NORDIC_at_peace = yes } } timeout_effect = { NORDIC_decrease_war_participation = yes } } ############################################# ############################################# ### ### ### WAR DECISIONS ### ### ### ############################################# ############################################# NORDIC_defend_nordic_country = { allowed = { NORDIC_is_nordic = yes } target_trigger = { FROM = { NORDIC_is_nordic = yes has_war = yes all_enemy_country = { NORDIC_is_nordic = no } } } targets_dynamic = yes targets = { NOR FIN SWE ICE DEN } priority = 100 available = { NORDIC_conflict_scale_is_total_war = yes has_war_support > 0.65 } visible = { always = yes # has_active_mission = NORDIC_dangerous_war_participation } cost = 100 complete_effect = { FROM = { country_event = { id = AAT_nordic_cooperation.2 hours = 4 } } NORDIC_basic_nordic_cooperation_effects = yes } } NORDIC_send_weapons = { allowed = { NORDIC_is_nordic = yes } target_trigger = { FROM = { NORDIC_valid_support_recipient = yes } } targets_dynamic = yes targets = { NOR FIN SWE ICE DEN } priority = 100 available = { always = yes #has_war_support > 0.65 } visible = { always = yes } cost = 100 days_remove = 30 complete_effect = { add_relation_modifier = { target = FROM modifier = NORDIC_allow_lendlease } NORDIC_basic_nordic_cooperation_effects = yes } remove_effect = { remove_relation_modifier = { target = FROM modifier = NORDIC_allow_lendlease } } } NORDIC_send_volunteers = { allowed = { NORDIC_is_nordic = yes } target_trigger = { FROM = { NORDIC_valid_support_recipient = yes NOT = { has_country_flag = NORDIC_receiving_volunteers_from@ROOT } } } targets_dynamic = yes targets = { NOR FIN SWE ICE DEN } priority = 100 available = { has_war = no } visible = { # has_completed_focus = NORDIC_to_arms_against_tyranny always = no # Replace with appropriate trigger if reintroducing } cost = 100 complete_effect = { add_relation_modifier = { target = FROM modifier = NORDIC_allow_volunteers } FROM = { set_country_flag = NORDIC_receiving_volunteers_from@ROOT } NORDIC_basic_nordic_cooperation_effects = yes } } NORDIC_expand_volunteer_program = { allowed = { NORDIC_is_nordic = yes } target_trigger = { FROM = { NORDIC_valid_support_recipient = yes has_country_flag = NORDIC_receiving_volunteers_from@ROOT } } targets_dynamic = yes targets = { NOR FIN SWE ICE DEN } priority = 100 available = { always = yes } visible = { #has_completed_focus = NORDIC_to_arms_against_tyranny always = no # Replace with appropriate trigger if reintroducing NOT = { has_relation_modifier = { target = FROM modifier = NORDIC_allow_more_volunteers } } } cost = 100 complete_effect = { add_relation_modifier = { target = FROM modifier = NORDIC_allow_more_volunteers } NORDIC_basic_nordic_cooperation_effects = yes } } NORDIC_expand_air_support = { allowed = { NORDIC_is_nordic = yes } target_trigger = { FROM = { NORDIC_valid_support_recipient = yes has_country_flag = NORDIC_receiving_volunteers_from@ROOT } } targets_dynamic = yes targets = { NOR FIN SWE ICE DEN } priority = 100 available = { always = yes } visible = { # has_completed_focus = NORDIC_to_arms_against_tyranny always = no # Replace with appropriate trigger if reintroducing FROM = { NOT = { has_country_flag = NORDIC_recently_expanded_plane_cap@ROOT } } } cost = 100 days_remove = 20 remove_effect = { add_relation_modifier = { target = FROM modifier = NORDIC_allow_more_planes } NORDIC_basic_nordic_cooperation_effects = yes } } }