########################## ########################## #### BALANCE OF POWER #### ########################## ########################## debug_decisions = { DEBUG_DANNE = { priority = 999 allowed = { always = yes tag = DEN } visible = { is_debug = yes } available = { } complete_effect = { #LAT = { country_event = { id = denmark_expansion_event.200 hours = 2 }} #if = { # limit = { # Tag = GER # } # DEN= { country_event = { id = denmark_occupation_event.2 hours = 2 }} #} if = { limit = { NOT = { has_country_flag = DEN_has_occupation_flag } } GER = { country_event = { id = denmark_occupation_event.2 hours = 2 }} } else_if = { limit = { has_country_flag = DEN_has_occupation_flag } GER = { end_puppet = ROOT } clr_country_flag = DEN_has_occupation_flag mark_focus_tree_layout_dirty = yes DEN_drop_occupation_tag = yes } #USA = { country_event = { id = denmark_protection_event.1 hours = 2 }} #create_wargoal = { # type = take_state # target = SWE # generator = { 138 } # } #every_other_country = { # limit = { # any_controlled_state = { # OR = { # is_core_of = LAT # is_core_of = LIT # is_core_of = EST # } # } # NOT = { # tag = LAT # tag = LIT # tag = EST # } # } # every_owned_state = { # limit = { # OR = { # is_core_of = LAT # is_core_of = LIT # is_core_of = EST # } # } # ROOT = { # create_wargoal = { # type = take_state # target = PREV.OWNER # generator = { PREV } # } # } # } #} } } } DEN_balance_of_power_category = { #DEBUG DEBUG_remove_bop_debug = { priority = 1000 visible = { is_debug = yes } complete_effect = { set_country_flag = DEN_remove_bop_debug } } DEBUG_show_bop_debug = { priority = 999 visible = { is_debug = yes } complete_effect = { clr_country_flag = DEN_remove_bop_debug } } DEBUG_DEN_bop_absurdly_high_increase_value = { priority = 920 visible = { is_debug = yes NOT = { has_country_flag = DEN_remove_bop_debug } } complete_effect = { DEN_bop_absurdly_high_increase_effect = yes } } DEBUG_DEN_bop_very_high_increase_value = { priority = 919 visible = { is_debug = yes NOT = { has_country_flag = DEN_remove_bop_debug } } complete_effect = { DEN_bop_very_high_increase_effect = yes } } DEBUG_DEN_bop_high_increase_value = { priority = 918 visible = { is_debug = yes NOT = { has_country_flag = DEN_remove_bop_debug } } complete_effect = { DEN_bop_high_increase_effect = yes } } DEBUG_DEN_bop_medium_increase_value = { priority = 917 visible = { is_debug = yes NOT = { has_country_flag = DEN_remove_bop_debug } } complete_effect = { DEN_bop_medium_increase_effect = yes } } DEBUG_DEN_bop_low_increase_value = { priority = 916 visible = { is_debug = yes NOT = { has_country_flag = DEN_remove_bop_debug } } complete_effect = { DEN_bop_low_increase_effect = yes } } DEBUG_DEN_bop_very_low_increase_value = { priority = 915 visible = { is_debug = yes NOT = { has_country_flag = DEN_remove_bop_debug } } complete_effect = { DEN_bop_very_low_increase_effect = yes } } DEBUG_DEN_bop_absurdly_high_decrease_value = { priority = 914 visible = { is_debug = yes NOT = { has_country_flag = DEN_remove_bop_debug } } complete_effect = { DEN_bop_absurdly_high_decrease_effect = yes } } DEBUG_DEN_bop_very_high_decrease_value = { priority = 913 visible = { is_debug = yes NOT = { has_country_flag = DEN_remove_bop_debug } } complete_effect = { DEN_bop_very_high_decrease_effect = yes } } DEBUG_DEN_bop_high_decrease_value = { priority = 912 visible = { is_debug = yes NOT = { has_country_flag = DEN_remove_bop_debug } } complete_effect = { DEN_bop_high_decrease_effect = yes } } DEBUG_DEN_bop_medium_decrease_value = { priority = 911 visible = { is_debug = yes NOT = { has_country_flag = DEN_remove_bop_debug } } complete_effect = { DEN_bop_medium_decrease_effect = yes } } DEBUG_DEN_bop_low_decrease_value = { priority = 910 visible = { is_debug = yes NOT = { has_country_flag = DEN_remove_bop_debug } } complete_effect = { DEN_bop_low_decrease_effect = yes } } DEBUG_DEN_bop_very_low_decrease_value = { priority = 909 visible = { is_debug = yes NOT = { has_country_flag = DEN_remove_bop_debug } } complete_effect = { DEN_bop_very_low_decrease_effect = yes } } #### BOP DECISIONS #### DEN_bop_defend_our_chosen_path = { #Fake decision for TT purposes priority = 100 icon = GFX_decision_generic_speech ai_will_do = { #TODO_DANNE base = 0 } allowed = { original_tag = DEN } visible = { always = no } cost = 0 complete_effect = { } } DEN_bop_exile_royal_family = { priority = 100 icon = GFX_decision_generic_speech ai_will_do = { base = 0 } allowed = { original_tag = DEN } visible = { has_government = communism } available = { has_elections = no communism > 0.5 } cost = 50 complete_effect = { hidden_effect = { set_country_flag = DEN_exiled_royal_family } add_popularity = { ideology = communism popularity = 0.05 } if = { limit = { communism < 0.6 } add_stability = -0.1 } else_if = { limit = { communism < 0.75 } add_stability = -0.05 } if = { #Flee you fool! limit = { NOR = { is_subject = no has_civil_war = no OR = { NOT = { has_government = communism } NOT = { has_government = fascism } } } } NOR = { country_event = { id = denmark_events.100 days = 5 }} } else_if = { limit = { SWE = { is_subject = no has_civil_war = no OR = { NOT = { has_government = communism } NOT = { has_government = fascism } } } } SWE = { country_event = { id = denmark_events.100 days = 5 }} } else_if = { limit = { ENG = { is_subject = no has_civil_war = no OR = { NOT = { has_government = communism } NOT = { has_government = fascism } } } } ENG = { country_event = { id = denmark_events.100 days = 5 }} } else_if = { limit = { ICE = { is_subject = no has_civil_war = no OR = { NOT = { has_government = communism } NOT = { has_government = fascism } } } } ICE = { country_event = { id = denmark_events.100 days = 5 }} } } } DEN_bop_ban_elections = { priority = 100 icon = GFX_decision_generic_speech ai_will_do = { base = 0 } allowed = { original_tag = DEN } visible = { has_elections = yes OR = { has_government = communism has_government = fascism } } available = { OR = { AND = { has_government = communism communism > 0.5 } AND = { has_government = fascism fascism > 0.5 } } } cost = 150 complete_effect = { if = { limit = { check_variable = { ROOT.party_popularity@ruling_party < 0.6 } } add_stability = -0.1 } if = { limit = { has_government = communism } set_politics = { ruling_party = communism elections_allowed = no } } else_if = { limit = { has_government = fascism } set_politics = { ruling_party = fascism elections_allowed = no } } if = { limit = { DEN_has_political_edicts_dynamic_modifier = no } add_dynamic_modifier = { modifier = DEN_political_edicts_dynamic_modifier } } else = { custom_effect_tooltip = DEN_modify_political_edicts_dynamic_modifier } add_to_variable = { DEN_political_edicts_drift_defence_factor = 0.25 tooltip = drift_defence_factor_tt } hidden_effect = { set_country_flag = DEN_banned_elections } } } DEN_bop_motion_of_no_confidence = { priority = 100 icon = GFX_decision_generic_speech ai_will_do = { base = 0 modifier = { add = 75 DEN_rearming_ai = yes DEN_christmas_moller = { is_country_leader = no } has_political_power > 200 has_war = no } } allowed = { original_tag = DEN } visible = { NOT = { has_completed_focus = DEN_overthrow_the_government has_elections = no } } available = { has_country_flag = DEN_has_criticized_country_leader_flag has_elections = yes } days_remove = 10 days_re_enable = DEN_very_long_reset_time cost = DEN_decision_high_cost complete_effect = { add_stability = -0.1 hidden_effect = { clr_country_flag = DEN_has_criticized_country_leader_flag } } remove_effect = { ROOT = { country_event = { id = denmark_political_events.1 } } custom_effect_tooltip = DEN_very_long_reset_time_tt } } DEN_bop_criticize_the_country_leader = { priority = 99 icon = GFX_decision_generic_speech ai_will_do = { #TODO_DANNE base = 0 modifier = { add = 50 DEN_rearming_ai = yes DEN_christmas_moller = { is_country_leader = no } has_political_power > 200 has_war = no } } allowed = { original_tag = DEN } visible = { NOT = { has_completed_focus = DEN_overthrow_the_government has_elections = no } } available = { } days_remove = DEN_long_reset_time cost = DEN_decision_high_cost complete_effect = { add_stability = -0.05 if = { limit = { OR = { DEN_knud_bach = { is_country_leader = yes } DEN_christian_x = { is_country_leader = yes } DEN_frits_clausen = { is_country_leader = yes } DEN_christmas_moller = { is_country_leader = yes } DEN_cay_lembcke = { is_country_leader = yes } } } DEN_bop_low_decrease_effect = yes } if = { limit = { OR = { DEN_thorvald_stauning = { is_country_leader = yes } DEN_aksel_larsen = { is_country_leader = yes } DEN_vilhelm_buhl = { is_country_leader = yes } DEN_knud_kristensen = { is_country_leader = yes } } } DEN_bop_low_increase_effect = yes } hidden_effect = { set_country_flag = DEN_has_criticized_country_leader_flag } #custom_effect_tooltip = DEN_medium_reset_time_tt } } DEN_bop_defend_our_chosen_path_neutrality = { priority = 99 icon = GFX_decision_eng_trade_unions_demand ai_will_do = { #TODO_DANNE base = 5 modifier = { factor = 2 is_historical_focus_on = yes } modifier = { factor = 5 DEN_historical_ai = yes NOT = { has_country_flag = DEN_has_occupation_flag } } } allowed = { original_tag = DEN } visible = { power_balance_value = { id = DEN_balance_of_power value < 0 } } available = { } days_remove = DEN_long_reset_time cost = DEN_decision_low_cost complete_effect = { if = { limit = { power_balance_value = { id = DEN_balance_of_power value < 0 } } DEN_bop_low_decrease_effect = yes } if = { limit = { power_balance_value = { id = DEN_balance_of_power value > 0 } } DEN_bop_low_increase_effect = yes } } } DEN_bop_ban_all_political_uniforms = { priority = 99 icon = GFX_decision_eng_trade_unions_demand ai_will_do = { base = 0 modifier = { add = 75 OR = { DEN_historical_ai = yes DEN_rearming_ai = yes } has_political_power > 100 } } allowed = { original_tag = DEN } visible = { has_completed_focus = DEN_social_stability OR = { has_government = democratic has_government = neutrality } NOT = { has_country_flag = DEN_banned_all_uniforms_flag } } available = { } cost = DEN_decision_medium_cost complete_effect = { DEN_bop_very_low_decrease_effect = yes if = { limit = { DEN_has_political_edicts_dynamic_modifier = no } add_dynamic_modifier = { modifier = DEN_political_edicts_dynamic_modifier } } else = { custom_effect_tooltip = DEN_modify_political_edicts_dynamic_modifier } add_to_variable = { DEN_political_edicts_drift_defence_factor = 0.15 tooltip = drift_defence_factor_tt } set_country_flag = DEN_banned_all_uniforms_flag } } DEN_bop_unban_oppositions_uniforms = { priority = 99 icon = GFX_decision_generic_political_address ai_will_do = { base = 0 } allowed = { original_tag = DEN } visible = { OR = { AND = { has_country_flag = DEN_fascists_banned_uniforms_flag NOT = { has_government = fascism } } AND = { has_country_flag = DEN_communists_banned_uniforms_flag NOT = { has_government = communism } } AND = { has_country_flag = DEN_neutrals_banned_uniforms_flag NOT = { has_government = neutrality } } } } available = { } #cost = complete_effect = { DEN_bop_very_low_decrease_effect = yes custom_effect_tooltip = DEN_modify_political_edicts_dynamic_modifier add_to_variable = { DEN_political_edicts_drift_defence_factor = -0.1 tooltip = drift_defence_factor_tt } clr_country_flag = DEN_banned_communist_uniforms_flag } } DEN_bop_defend_the_policy_of_neutrality = { priority = 99 icon = GFX_decision_eng_trade_unions_demand ai_will_do = { base = 0 modifier = { add = 100 DEN_historical_ai = yes has_political_power > 100 NOT = { has_country_flag = DEN_has_occupation_flag } power_balance_value = { id = DEN_balance_of_power value > -0.6 } } } allowed = { original_tag = DEN } visible = { has_completed_focus = DEN_declare_neutrality NOT = { has_completed_focus = DEN_start_the_rearmament } NOT = { has_completed_focus = DEN_overthrow_the_government } } available = { OR = { #For TT purposes, so the player can make an informed decision NOT = { has_completed_focus = DEN_start_the_rearmament } NOT = { has_completed_focus = DEN_overthrow_the_government } } } days_remove = DEN_medium_reset_time cost = DEN_bop_decrease_medium_cost complete_effect = { DEN_bop_low_decrease_effect = yes } } DEN_bop_speak_out_in_favor_of_disarmament = { priority = 99 icon = GFX_decision_generic_political_address ai_will_do = { base = 0 modifier = { add = 100 DEN_historical_ai = yes has_political_power > 100 NOT = { has_country_flag = DEN_has_occupation_flag } power_balance_value = { id = DEN_balance_of_power value > -0.6 } } } allowed = { original_tag = DEN } visible = { has_completed_focus = DEN_declare_neutrality OR = { NOT = { has_completed_focus = DEN_start_the_rearmament } NOT = { has_completed_focus = DEN_overthrow_the_government } } } available = { OR = { #For TT purposes, so the player can make an informed decision NOT = { has_completed_focus = DEN_start_the_rearmament } NOT = { has_completed_focus = DEN_overthrow_the_government } } } available = { has_army_experience > 5 has_navy_experience > 5 has_air_experience > 5 } days_remove = DEN_long_reset_time cost = DEN_bop_decrease_low_cost complete_effect = { DEN_bop_low_decrease_effect = yes custom_effect_tooltip = DEN_hurt_military_ability_tt army_experience = -5 navy_experience = -5 air_experience = -5 #custom_effect_tooltip = DEN_long_reset_time_tt } } DEN_bop_speak_out_against_warfare = { priority = 99 icon = GFX_decision_generic_political_address ai_will_do = { base = 0 modifier = { add = 100 DEN_historical_ai = yes has_political_power > 100 NOT = { has_country_flag = DEN_has_occupation_flag } power_balance_value = { id = DEN_balance_of_power value > -0.6 } } } allowed = { original_tag = DEN } visible = { has_completed_focus = DEN_declare_neutrality OR = { NOT = { has_completed_focus = DEN_start_the_rearmament } NOT = { has_completed_focus = DEN_overthrow_the_government } } } available = { OR = { #For TT purposes, so the player can make an informed decision NOT = { has_completed_focus = DEN_start_the_rearmament } NOT = { has_completed_focus = DEN_overthrow_the_government } } command_power > 15 } days_remove = DEN_medium_reset_time cost = DEN_bop_decrease_low_cost complete_effect = { DEN_bop_low_decrease_effect = yes custom_effect_tooltip = DEN_hurt_military_ability_tt add_command_power = -15 #custom_effect_tooltip = DEN_medium_reset_time_tt } } DEN_bop_expand_the_welfare = { priority = 99 icon = GFX_decision_generic_welfare ai_will_do = { base = 50 modifier = { factor = 2 has_political_power > 150 NOT = { has_country_flag = DEN_has_occupation_flag } power_balance_value = { id = DEN_balance_of_power value > -0.8 } } } allowed = { original_tag = DEN } visible = { } available = { } cost = DEN_bop_decrease_high_cost fire_only_once = yes complete_effect = { DEN_bop_high_decrease_effect = yes custom_effect_tooltip = DEN_modify_industrial_capability_dynamic_modifier add_to_variable = { DEN_industrial_capabilities_consumer_goods = -0.1 tooltip = consumer_goods_factor_tt } } } DEN_bop_unban_all_political_uniforms = { priority = 99 icon = GFX_decision_generic_political_address ai_will_do = { base = 0 } allowed = { original_tag = DEN } visible = { has_country_flag = DEN_banned_all_uniforms_flag } available = { } cost = DEN_bop_decrease_low_cost complete_effect = { DEN_bop_very_low_increase_effect = yes custom_effect_tooltip = DEN_modify_political_edicts_dynamic_modifier add_to_variable = { DEN_political_edicts_drift_defence_factor = -0.15 tooltip = drift_defence_factor_tt } clr_country_flag = DEN_banned_all_uniforms_flag } } DEN_bop_ban_oppositions_uniforms = { priority = 99 icon = GFX_decision_generic_speech ai_will_do = { #TODO_DANNE base = 0 modifier = { add = 100 OR = { has_government = fascism has_government = communism } } modifier = { add = 50 has_government = neutrality } } allowed = { original_tag = DEN } visible = { NOT = { OR = { has_country_flag = DEN_banned_all_uniforms_flag has_country_flag = DEN_fascists_banned_uniforms_flag has_country_flag = DEN_communists_banned_uniforms_flag has_country_flag = DEN_neutrals_banned_uniforms_flag } has_government = democratic } } available = { has_stability > 0.2 } cost = DEN_bop_increase_low_cost complete_effect = { DEN_bop_very_low_increase_effect = yes add_stability = -0.05 if = { limit = { DEN_has_political_edicts_dynamic_modifier = no } add_dynamic_modifier = { modifier = DEN_political_edicts_dynamic_modifier } } else = { custom_effect_tooltip = DEN_modify_political_edicts_dynamic_modifier } add_to_variable = { DEN_political_edicts_drift_defence_factor = 0.1 tooltip = drift_defence_factor_tt } if = { limit = { has_government = fascism } set_country_flag = DEN_fascists_banned_uniforms_flag } else_if = { limit = { has_government = communism } set_country_flag = DEN_communists_banned_uniforms_flag } else_if = { limit = { has_government = neutrality } set_country_flag = DEN_neutrals_banned_uniforms_flag } } } DEN_bop_defend_our_chosen_path_rearmament = { priority = 99 icon = GFX_decision_eng_trade_unions_demand ai_will_do = { base = 0 modifier = { add = 50 power_balance_value = { id = DEN_balance_of_power value > 0.29 } } modifier = { add = 50 OR = { DEN_royal_ai = yes DEN_fascist_ai = yes } } modifier = { add = 25 DEN_rearming_ai = yes } } allowed = { original_tag = DEN } visible = { power_balance_value = { id = DEN_balance_of_power value > 0 } } available = { } days_remove = DEN_long_reset_time cost = DEN_decision_low_cost complete_effect = { if = { limit = { power_balance_value = { id = DEN_balance_of_power value > 0 } } DEN_bop_low_increase_effect = yes } } } DEN_bop_criticize_our_preparedness = { priority = 99 icon = GFX_decision_eng_trade_unions_demand ai_will_do = { base = 0 modifier = { add = 50 power_balance_value = { id = DEN_balance_of_power value < -0.29 } } modifier = { add = 50 OR = { DEN_royal_ai = yes DEN_fascist_ai = yes } } modifier = { add = 25 DEN_rearming_ai = yes } } allowed = { original_tag = DEN } visible = { } available = { power_balance_value = { id = DEN_balance_of_power value < 0.6 } } days_remove = DEN_medium_reset_time cost = DEN_bop_increase_low_cost complete_effect = { DEN_bop_low_increase_effect = yes #custom_effect_tooltip = DEN_medium_reset_time_tt } } DEN_bop_question_our_defenses = { priority = 99 icon = GFX_decision_eng_trade_unions_demand ai_will_do = { base = 0 modifier = { add = 50 power_balance_value = { id = DEN_balance_of_power value < -0.29 } } modifier = { add = 50 OR = { DEN_royal_ai = yes DEN_fascist_ai = yes } } modifier = { add = 25 DEN_rearming_ai = yes } } allowed = { original_tag = DEN } visible = { } available = { power_balance_value = { id = DEN_balance_of_power value < 0.3 } } days_remove = DEN_medium_reset_time cost = DEN_bop_increase_low_cost complete_effect = { DEN_bop_low_increase_effect = yes #custom_effect_tooltip = DEN_medium_reset_time_tt } } DEN_bop_speak_out_against_welfare = { #BoP >-1 priority = 99 icon = GFX_decision_generic_political_address ai_will_do = { base = 0 modifier = { add = 50 power_balance_value = { id = DEN_balance_of_power value < -0.29 } } modifier = { add = 50 OR = { DEN_royal_ai = yes DEN_fascist_ai = yes } } modifier = { add = 25 DEN_rearming_ai = yes } } allowed = { original_tag = DEN } visible = { has_completed_focus = DEN_declare_neutrality NOT = { has_completed_focus = DEN_policy_of_disarmament } } available = { power_balance_value = { id = DEN_balance_of_power value < 0.1 } has_stability > 0.1 NOT = { has_completed_focus = DEN_policy_of_disarmament } #For TT purposes } days_remove = DEN_long_reset_time cost = DEN_bop_increase_medium_cost complete_effect = { DEN_bop_medium_increase_effect = yes add_stability = -0.05 #custom_effect_tooltip = DEN_medium_reset_time_tt } } DEN_bop_speak_out_in_favor_of_rearmament = { priority = 99 icon = GFX_decision_generic_protection ai_will_do = { base = 0 modifier = { add = 50 power_balance_value = { id = DEN_balance_of_power value < -0.29 } } modifier = { add = 50 OR = { DEN_royal_ai = yes DEN_fascist_ai = yes DEN_rearming_ai = yes } } } allowed = { original_tag = DEN } visible = { has_completed_focus = DEN_declare_neutrality NOT = { has_completed_focus = DEN_policy_of_disarmament } } available = { power_balance_value = { id = DEN_balance_of_power value < 0.6 } NOT = { has_completed_focus = DEN_policy_of_disarmament } #For TT purposes OR = { has_completed_focus = DEN_start_the_rearmament has_completed_focus = DEN_unify_the_right } } days_remove = DEN_long_reset_time cost = DEN_bop_increase_high_cost complete_effect = { DEN_bop_medium_increase_effect = yes add_command_power = 25 add_war_support = 0.05 #custom_effect_tooltip = DEN_long_reset_time_tt } } DEN_bop_landstorm = { priority = 99 icon = GFX_decision_generic_protection ai_will_do = { base = 50 } allowed = { original_tag = DEN } visible = { OR = { has_completed_focus = DEN_conservatives_support has_completed_focus = DEN_conspire_with_the_officer_corps has_completed_focus = DEN_start_the_rearmament } } available = { OR = { has_completed_focus = DEN_military_preparations has_completed_focus = DEN_encourage_paramilitary } } cost = DEN_bop_increase_very_high_cost fire_only_once = yes complete_effect = { DEN_bop_medium_increase_effect = yes add_war_support = 0.05 add_manpower = 2500 DEN_improve_haeren_NS = yes add_to_variable = { DEN_haeren_army_core_defence = 0.05 tooltip = army_core_defence_factor_tt } unlock_decision_tooltip = DEN_deploy_landstormen division_template = { name = "Landstormen Militia" is_locked = yes #force_allow_recruiting = yes priority = 1 template_counter = 54 regiments = { militia = { x = 0 y = 0 } militia = { x = 0 y = 1 } militia = { x = 1 y = 0 } militia = { x = 1 y = 1 } militia = { x = 0 y = 2 } militia = { x = 1 y = 2 } } support = { } override_model = DEN_militia_alt_0_entity } hidden_effect = { set_country_flag = DEN_can_deploy_landstorm_flag } } } DEN_bop_hold_a_military_parade = { priority = 99 icon = GFX_decision_generic_military ai_will_do = { base = 15 } allowed = { original_tag = DEN } visible = { OR = { has_completed_focus = DEN_start_the_rearmament has_completed_focus = DEN_conspire_with_the_officer_corps } } available = { power_balance_value = { id = DEN_balance_of_power value > 0 } } days_remove = DEN_long_reset_time ai_hint_pp_cost = 75 custom_cost_trigger = { has_political_power > 74 command_power > 24 } custom_cost_text = decision_cost_CP_25_pp_75 complete_effect = { DEN_bop_medium_increase_effect = yes add_war_support = 0.05 #custom_effect_tooltip = DEN_long_reset_time_tt hidden_effect = { add_political_power = -75 add_command_power = -25 } } } } #### OCCUPATION #### DEN_occupation_category = { DEBUG_remove_bop_occupation_debug = { priority = 1000 visible = { is_debug = yes } complete_effect = { set_country_flag = DEN_remove_bop_debug } } DEBUG_show_bop_occupation_debug = { priority = 999 visible = { is_debug = yes } complete_effect = { clr_country_flag = DEN_remove_bop_debug } } DEBUG_DEN_bop_occupation_absurdly_high_increase_value = { priority = 920 visible = { is_debug = yes NOT = { has_country_flag = DEN_remove_bop_debug } has_country_flag = DEN_has_occupation_flag } complete_effect = { DEN_bop_occupation_absurdly_high_increase_effect = yes } } DEBUG_DEN_bop_occupation_very_high_increase_value = { priority = 919 visible = { is_debug = yes NOT = { has_country_flag = DEN_remove_bop_debug } has_country_flag = DEN_has_occupation_flag } complete_effect = { DEN_bop_occupation_very_high_increase_effect = yes } } DEBUG_DEN_bop_occupation_high_increase_value = { priority = 918 visible = { is_debug = yes NOT = { has_country_flag = DEN_remove_bop_debug } has_country_flag = DEN_has_occupation_flag } complete_effect = { DEN_bop_occupation_high_increase_effect = yes } } DEBUG_DEN_bop_occupation_medium_increase_value = { priority = 917 visible = { is_debug = yes NOT = { has_country_flag = DEN_remove_bop_debug } has_country_flag = DEN_has_occupation_flag } complete_effect = { DEN_bop_occupation_medium_increase_effect = yes } } DEBUG_DEN_bop_occupation_low_increase_value = { priority = 916 visible = { is_debug = yes NOT = { has_country_flag = DEN_remove_bop_debug } has_country_flag = DEN_has_occupation_flag } complete_effect = { DEN_bop_occupation_low_increase_effect = yes } } DEBUG_DEN_bop_occupation_very_low_increase_value = { priority = 915 visible = { is_debug = yes NOT = { has_country_flag = DEN_remove_bop_debug } has_country_flag = DEN_has_occupation_flag } complete_effect = { DEN_bop_occupation_very_low_increase_effect = yes } } DEBUG_DEN_bop_occupation_absurdly_high_decrease_value = { priority = 914 visible = { is_debug = yes NOT = { has_country_flag = DEN_remove_bop_debug } has_country_flag = DEN_has_occupation_flag } complete_effect = { DEN_bop_occupation_absurdly_high_decrease_effect = yes } } DEBUG_DEN_bop_occupation_very_high_decrease_value = { priority = 913 visible = { is_debug = yes NOT = { has_country_flag = DEN_remove_bop_debug } has_country_flag = DEN_has_occupation_flag } complete_effect = { DEN_bop_occupation_very_high_decrease_effect = yes } } DEBUG_DEN_bop_occupation_high_decrease_value = { priority = 912 visible = { is_debug = yes NOT = { has_country_flag = DEN_remove_bop_debug } has_country_flag = DEN_has_occupation_flag } complete_effect = { DEN_bop_occupation_high_decrease_effect = yes } } DEBUG_DEN_bop_occupation_medium_decrease_value = { priority = 911 visible = { is_debug = yes NOT = { has_country_flag = DEN_remove_bop_debug } has_country_flag = DEN_has_occupation_flag } complete_effect = { DEN_bop_occupation_medium_decrease_effect = yes } } DEBUG_DEN_bop_occupation_low_decrease_value = { priority = 910 visible = { is_debug = yes NOT = { has_country_flag = DEN_remove_bop_debug } has_country_flag = DEN_has_occupation_flag } complete_effect = { DEN_bop_occupation_low_decrease_effect = yes } } DEBUG_DEN_bop_occupation_very_low_decrease_value = { priority = 909 visible = { is_debug = yes NOT = { has_country_flag = DEN_remove_bop_debug } has_country_flag = DEN_has_occupation_flag } complete_effect = { DEN_bop_occupation_very_low_decrease_effect = yes } } DEBUG_DEN_opinion_modifier_small = { priority = 909 visible = { is_debug = yes } complete_effect = { DEN_modify_overlord_relations_small = yes } } DEBUG_DEN_opinion_modifier_big = { priority = 909 visible = { is_debug = yes } complete_effect = { DEN_modify_overlord_relations_big = yes } } ### INCREASE BOP ### DEN_bop_occupation_strikes = { priority = 99 icon = GFX_decision_generic_civil_support ai_will_do = { base = 15 modifier = { factor = 2 DEN_historical_ai = yes } modifier = { factor = 3 OR = { DEN_rearming_ai = yes DEN_royal_ai = yes } } modifier = { factor = 4 OR = { AND = { is_subject = yes has_government = fascism OVERLORD = { OR = { has_government = communism has_government = democratic } } } AND = { is_subject = yes has_government = communism OVERLORD = { OR = { has_government = fascism has_government = neutrality } } } } } modifier = { factor = 2 power_balance_value = { id = DEN_occupation_balance value < 0 } } modifier = { factor = 1.5 power_balance_value = { id = DEN_occupation_balance value < -0.3 } } modifier = { factor = 1.5 is_historical_focus_on = yes } modifier = { add = 15 has_country_leader_with_trait = DEN_plenipotentiary } modifier = { factor = 1.5 has_country_flag = DEN_telegram_crisis_flag } } allowed = { original_tag = DEN } visible = { has_completed_focus = DEN_collaboration_government } available = { has_completed_focus = DEN_sanction_sabotages custom_trigger_tooltip = { tooltip = DEN_cic_to_overlord_5_or_more_tt check_variable = { DEN_occupation_laws_cic_to_overlord > 0.04 } } custom_trigger_tooltip = { tooltip = DEN_mic_to_overlord_5_or_more_tt check_variable = { DEN_occupation_laws_mic_to_overlord > 0.04 } } } days_remove = DEN_short_reset_time cost = DEN_decision_medium_cost complete_effect = { DEN_bop_occupation_very_low_increase_effect = yes DEN_modify_overlord_relations_small = yes country_event = { id = denmark_occupation_event.10 hours = 12 } } remove_effect = { hidden_effect = { country_event = { id = denmark_occupation_event.11 hours = 12 } } } } DEN_bop_occupation_criticize_collaboration = { priority = 99 icon = GFX_decision_eng_propaganda_campaigns ai_will_do = { base = 5 modifier = { factor = 2 DEN_historical_ai = yes } modifier = { factor = 5 OR = { DEN_rearming_ai = yes DEN_royal_ai = yes } } modifier = { factor = 10 OR = { AND = { is_subject = yes has_government = fascism OVERLORD = { OR = { has_government = communism has_government = democratic } } } AND = { is_subject = yes has_government = communism OVERLORD = { OR = { has_government = fascism has_government = neutrality } } } } } modifier = { add = 15 has_country_leader_with_trait = DEN_plenipotentiary } modifier = { factor = 5 power_balance_value = { id = DEN_occupation_balance value < -0.3 } } } allowed = { original_tag = DEN } visible = { has_completed_focus = DEN_collaboration_government NOT = { has_country_flag = DEN_censor_media_flag } } available = { has_completed_focus = DEN_sanction_sabotages power_balance_value = { id = DEN_occupation_balance value > -0.6 } } days_remove = DEN_medium_reset_time cost = DEN_decision_medium_cost complete_effect = { DEN_bop_occupation_very_low_increase_effect = yes DEN_modify_overlord_relations_small = yes } } DEN_bop_occupation_resistance_coordination = { priority = 99 icon = GFX_decision_generic_civil_support ai_will_do = { base = 15 modifier = { factor = 2 DEN_historical_ai = yes } modifier = { factor = 3 OR = { DEN_rearming_ai = yes DEN_royal_ai = yes } } modifier = { factor = 4 OR = { AND = { is_subject = yes has_government = fascism OVERLORD = { OR = { has_government = communism has_government = democratic } } } AND = { is_subject = yes has_government = communism OVERLORD = { OR = { has_government = fascism has_government = neutrality } } } } } modifier = { factor = 2 power_balance_value = { id = DEN_occupation_balance value < 0 } } modifier = { factor = 1.5 power_balance_value = { id = DEN_occupation_balance value < -0.3 } } modifier = { factor = 1.5 has_completed_focus = DEN_arm_the_resistance } modifier = { factor = 1.5 is_historical_focus_on = yes } modifier = { add = 15 has_country_leader_with_trait = DEN_plenipotentiary } modifier = { factor = 2 has_country_flag = DEN_telegram_crisis_flag } } allowed = { original_tag = DEN } visible = { has_completed_focus = DEN_sanction_sabotages NOT = { has_completed_focus = DEN_pledge_allegiance } } available = { has_completed_focus = DEN_form_the_danish_freedom_council power_balance_value = { id = DEN_occupation_balance value > -0.9 } } fire_only_once = yes cost = DEN_decision_medium_cost complete_effect = { DEN_bop_occupation_low_increase_effect = yes if = { limit = { has_dynamic_modifier = { modifier = DEN_resistance_dynamic_modifier_improved } } custom_effect_tooltip = DEN_modify_danish_resistance_dynamic_modifier } else_if = { limit = { NOT = { has_dynamic_modifier = { modifier = DEN_resistance_dynamic_modifier } } } add_dynamic_modifier = { modifier = DEN_resistance_dynamic_modifier } } else = { custom_effect_tooltip = DEN_modify_danish_resistance_dynamic_modifier } add_to_variable = { DEN_resistance_target_on_our_occupied_states = 0.05 tooltip = resistance_target_on_our_occupied_states_tt } add_to_variable = { DEN_resistance_compliance_growth_on_our_occupied_states = -0.05 tooltip = compliance_growth_on_our_occupied_states_tt } add_to_variable = { DEN_resistance_damage_to_garrison_on_our_occupied_states = 0.05 tooltip = resistance_damage_to_garrison_on_our_occupied_states_tt } } } DEN_bop_occupation_raid_depots = { priority = 99 icon = GFX_decision_generic_civil_support ai_will_do = { base = 10 modifier = { factor = 2 DEN_historical_ai = yes } modifier = { factor = 3 OR = { DEN_rearming_ai = yes DEN_royal_ai = yes } } modifier = { factor = 4 OR = { AND = { is_subject = yes has_government = fascism OVERLORD = { OR = { has_government = communism has_government = democratic } } } AND = { is_subject = yes has_government = communism OVERLORD = { OR = { has_government = fascism has_government = neutrality } } } } } modifier = { factor = 2 power_balance_value = { id = DEN_occupation_balance value < 0 } } modifier = { factor = 1.5 power_balance_value = { id = DEN_occupation_balance value < -0.3 } } modifier = { factor = 1.5 has_completed_focus = DEN_arm_the_resistance } modifier = { factor = 1.5 is_historical_focus_on = yes } modifier = { add = 15 has_country_leader_with_trait = DEN_plenipotentiary } } allowed = { original_tag = DEN } visible = { has_completed_focus = DEN_escalate_the_sabotages } available = { has_completed_focus = DEN_arm_the_resistance power_balance_value = { id = DEN_occupation_balance value > -0.9 } } days_remove = 90 cost = DEN_decision_medium_cost complete_effect = { DEN_bop_occupation_very_low_increase_effect = yes } remove_effect = { country_event = { id = denmark_occupation_event.20 } event_option_tooltip = denmark_occupation_event.20.a #TODO_DANNE: Maybe add some random chance to get caught? } } DEN_bop_occupation_sabotage_civ_industry = { priority = 99 icon = GFX_decision_generic_ignite_civil_war ai_will_do = { base = 10 modifier = { factor = 2 DEN_historical_ai = yes } modifier = { factor = 3 OR = { DEN_rearming_ai = yes DEN_royal_ai = yes } } modifier = { factor = 4 OR = { AND = { is_subject = yes has_government = fascism OVERLORD = { OR = { has_government = communism has_government = democratic } } } AND = { is_subject = yes has_government = communism OVERLORD = { OR = { has_government = fascism has_government = neutrality } } } } } modifier = { factor = 2 power_balance_value = { id = DEN_occupation_balance value < 0 } } modifier = { factor = 1.5 power_balance_value = { id = DEN_occupation_balance value < -0.3 } } modifier = { factor = 2 is_historical_focus_on = yes } modifier = { add = 15 has_country_leader_with_trait = DEN_plenipotentiary } modifier = { factor = 2 has_country_flag = DEN_telegram_crisis_flag } } allowed = { original_tag = DEN } visible = { has_completed_focus = DEN_form_the_danish_freedom_council } available = { has_completed_focus = DEN_escalate_the_sabotages custom_trigger_tooltip = { tooltip = DEN_cic_to_overlord_10_or_more_tt check_variable = { DEN_occupation_laws_cic_to_overlord > 0.09 } } power_balance_value = { id = DEN_occupation_balance value > -0.6 } } days_remove = 90 fire_only_once = yes cost = DEN_decision_high_cost complete_effect = { DEN_bop_occupation_low_increase_effect = yes custom_effect_tooltip = DEN_deteriorating_overlord_relations } remove_effect = { country_event = { id = denmark_occupation_event.30 } } } DEN_bop_occupation_sabotage_mil_industry = { priority = 99 icon = GFX_decision_generic_ignite_civil_war ai_will_do = { base = 10 modifier = { factor = 2 DEN_historical_ai = yes } modifier = { factor = 3 OR = { DEN_rearming_ai = yes DEN_royal_ai = yes } } modifier = { factor = 4 OR = { AND = { is_subject = yes has_government = fascism OVERLORD = { OR = { has_government = communism has_government = democratic } } } AND = { is_subject = yes has_government = communism OVERLORD = { OR = { has_government = fascism has_government = neutrality } } } } } modifier = { factor = 2 power_balance_value = { id = DEN_occupation_balance value < 0 } } modifier = { factor = 1.5 power_balance_value = { id = DEN_occupation_balance value < -0.3 } } modifier = { factor = 2 is_historical_focus_on = yes } modifier = { add = 15 has_country_leader_with_trait = DEN_plenipotentiary } modifier = { factor = 2 has_country_flag = DEN_telegram_crisis_flag } } allowed = { original_tag = DEN } visible = { has_completed_focus = DEN_form_the_danish_freedom_council } available = { has_completed_focus = DEN_escalate_the_sabotages custom_trigger_tooltip = { tooltip = DEN_mic_to_overlord_10_or_more_tt check_variable = { DEN_occupation_laws_mic_to_overlord > 0.09 } } power_balance_value = { id = DEN_occupation_balance value > -0.6 } } days_remove = 90 fire_only_once = yes cost = DEN_decision_high_cost complete_effect = { DEN_bop_occupation_low_increase_effect = yes custom_effect_tooltip = DEN_deteriorating_overlord_relations } remove_effect = { country_event = { id = denmark_occupation_event.40 } } } DEN_bop_occupation_underground_factories = { priority = 99 icon = GFX_decision_generic_prepare_civil_war ai_will_do = { base = 5 modifier = { factor = 2 OR = { DEN_rearming_ai = yes DEN_royal_ai = yes } } modifier = { factor = 4 OR = { AND = { is_subject = yes has_government = fascism OVERLORD = { OR = { has_government = communism has_government = democratic } } } AND = { is_subject = yes has_government = communism OVERLORD = { OR = { has_government = fascism has_government = neutrality } } } } } modifier = { factor = 2 power_balance_value = { id = DEN_occupation_balance value < -0.3 } } modifier = { factor = 1.5 power_balance_value = { id = DEN_occupation_balance value < -0.6 } } modifier = { add = 15 has_country_leader_with_trait = DEN_plenipotentiary } modifier = { factor = 2 has_country_flag = DEN_telegram_crisis_flag } } allowed = { original_tag = DEN } visible = { has_completed_focus = DEN_form_the_danish_freedom_council check_variable = { DEN_times_mil_was_built < 2 } } available = { has_completed_focus = DEN_arm_the_resistance power_balance_value = { id = DEN_occupation_balance value > -0.9 } } days_remove = 30 cost = DEN_decision_high_cost complete_effect = { DEN_bop_occupation_very_low_increase_effect = yes } remove_effect = { add_offsite_building = { type = arms_factory level = 1 } if = { limit = { check_variable = { DEN_occupation_laws_mic_to_overlord > 0.04 } } custom_effect_tooltip = DEN_modify_occupation_laws_dynamic_modifier add_to_variable = { DEN_occupation_laws_mic_to_overlord = -0.05 tooltip = mic_to_overlord_factor_tt } } if = { limit = { NOT = { has_variable = DEN_times_mil_was_built } } set_variable = { DEN_times_mil_was_built = 1 } } else = { add_to_variable = { DEN_times_mil_was_built = 1 } } } } DEN_bop_occupation_funnel_resources_danish_brigade = { priority = 99 icon = GFX_decision_generic_industry ai_will_do = { base = 5 modifier = { factor = 2 DEN_historical_ai = yes } modifier = { factor = 3 OR = { DEN_rearming_ai = yes DEN_royal_ai = yes } } modifier = { factor = 4 OR = { AND = { is_subject = yes has_government = fascism OVERLORD = { OR = { has_government = communism has_government = democratic } } } AND = { is_subject = yes has_government = communism OVERLORD = { OR = { has_government = fascism has_government = neutrality } } } } } modifier = { factor = 2 power_balance_value = { id = DEN_occupation_balance value < -0.3 } } modifier = { factor = 1.5 power_balance_value = { id = DEN_occupation_balance value < -0.6 } } modifier = { add = 15 has_country_leader_with_trait = DEN_plenipotentiary } modifier = { factor = 1.5 has_country_flag = DEN_telegram_crisis_flag } } allowed = { original_tag = DEN } visible = { has_completed_focus = DEN_create_danforce } available = { has_country_flag = DEN_create_danish_brigades_flag power_balance_value = { id = DEN_occupation_balance value > -0.9 } } days_remove = DEN_medium_reset_time cost = DEN_decision_medium_cost fire_only_once = yes complete_effect = { DEN_bop_occupation_very_low_increase_effect = yes } remove_effect = { army_experience = 25 if = { limit = { has_completed_focus = DEN_establish_danske_flotille } navy_experience = 25 } if = { limit = { has_completed_focus = DEN_buy_foreign_aircraft } air_experience = 25 } } } ### DECREASE BOP ### DEN_bop_occupation_switch_ideology = { priority = 99 icon = GFX_decision_eng_propaganda_campaigns ai_will_do = { base = 0 } allowed = { original_tag = DEN } visible = { is_subject = yes has_completed_focus = DEN_align_with_overlord NOT = { has_government = var:DEN.DEN_overlord_nation } } available = { has_stability > 0.5 NOT = { has_completed_focus = DEN_form_the_danish_freedom_council } custom_trigger_tooltip = { tooltip = "DEN_overlord_ruling_party_tt" hidden_trigger = { OR = { AND = { var:DEN.DEN_overlord_nation = { has_government = fascism } fascism > 0.4 } AND = { var:DEN.DEN_overlord_nation = { has_government = communism } communism > 0.4 } AND = { var:DEN.DEN_overlord_nation = { has_government = neutrality } neutrality > 0.4 } AND = { var:DEN.DEN_overlord_nation = { has_government = democratic } democratic > 0.4 } } } } power_balance_value = { id = DEN_occupation_balance value < 0 } } cost = DEN_decision_very_high_cost complete_effect = { DEN_bop_occupation_high_decrease_effect = yes if = { limit = { is_subject = yes OVERLORD = { has_government = communism } } set_politics = { ruling_party = communism } if = { limit = { communism < 0.6 } add_stability = -0.1 } } else_if = { limit = { is_subject = yes OVERLORD = { has_government = fascism } } set_politics = { ruling_party = fascism } if = { limit = { fascism < 0.6 } add_stability = -0.1 } } else_if = { limit = { is_subject = yes OVERLORD = { has_government = neutrality } } set_politics = { ruling_party = neutrality } if = { limit = { neutrality < 0.6 } add_stability = -0.1 } } else_if = { limit = { is_subject = yes OVERLORD = { has_government = democratic } } set_politics = { ruling_party = democratic } if = { limit = { democratic < 0.6 } add_stability = -0.1 } } if = { limit = { is_subject = yes } OVERLORD = { add_opinion_modifier = { modifier = DEN_cooperative_subject target = DEN } } } } } DEN_bop_occupation_ban_elections = { priority = 99 icon = GFX_decision_generic_speech ai_will_do = { base = 0 modifier = { add = 25 is_subject = yes has_government = var:DEN.DEN_overlord_nation var:DEN.DEN_overlord_nation = { has_opinion = { target = DEN value > 49 } } power_balance_value = { id = DEN_occupation_balance value < 0.3 } } } allowed = { original_tag = DEN } visible = { is_subject = yes has_completed_focus = DEN_collaboration_government has_elections = yes OVERLORD = { OR = { has_government = fascism has_government = communism } } } available = { NOT = { has_completed_focus = DEN_form_the_danish_freedom_council has_government = democratic } has_government = var:DEN.DEN_overlord_nation power_balance_value = { id = DEN_occupation_balance value < 0 } } cost = DEN_decision_very_high_cost complete_effect = { DEN_bop_occupation_high_decrease_effect = yes add_stability = -0.1 if = { limit = { has_government = communism } set_politics = { ruling_party = communism elections_allowed = no } } if = { limit = { has_government = fascism } set_politics = { ruling_party = fascism elections_allowed = no } } if = { limit = { is_subject = yes } OVERLORD = { add_opinion_modifier = { modifier = DEN_cooperative_subject target = DEN } } } hidden_effect = { set_country_flag = DEN_banned_elections } } } DEN_bop_occupation_defend_collaboration = { priority = 99 icon = GFX_decision_eng_propaganda_campaigns ai_will_do = { base = 0 modifier = { add = 25 is_subject = yes has_government = var:DEN.DEN_overlord_nation var:DEN.DEN_overlord_nation = { has_opinion = { target = DEN value > 24 } } power_balance_value = { id = DEN_occupation_balance value < 0.3 } } modifier = { add = 15 is_historical_focus_on = yes } modifier = { add = 15 DEN_historical_ai = yes } modifier = { add = 25 power_balance_value = { id = DEN_occupation_balance value > -0.6 } } } allowed = { original_tag = DEN } visible = { has_completed_focus = DEN_collaboration_government } available = { NOT = { has_completed_focus = DEN_form_the_danish_freedom_council } } cost = DEN_decision_medium_cost fire_only_once = yes complete_effect = { DEN_bop_occupation_very_low_decrease_effect = yes add_stability = 0.05 if = { limit = { is_subject = yes } OVERLORD = { add_opinion_modifier = { modifier = DEN_cooperative_subject target = DEN } } } } } DEN_bop_occupation_censor_the_media = { priority = 99 icon = GFX_decision_eng_trade_unions_support ai_will_do = { base = 10 modifier = { factor = 2 DEN_historical_ai = yes } modifier = { factor = 1.5 or = { DEN_rearming_ai = yes DEN_royal_ai = yes } } modifier = { factor = 3 power_balance_value = { id = DEN_occupation_balance value < 0 } } modifier = { factor = 2 power_balance_value = { id = DEN_occupation_balance value < -0.3 } } modifier = { factor = 5 is_subject = yes has_government = var:DEN.DEN_overlord_nation } modifier = { factor = 1.5 is_historical_focus_on = yes } } allowed = { original_tag = DEN } visible = { has_completed_focus = DEN_collaboration_government } available = { } cost = DEN_decision_medium_cost fire_only_once = yes complete_effect = { DEN_bop_occupation_very_low_decrease_effect = yes add_stability = -0.05 if = { limit = { is_subject = yes } OVERLORD = { add_opinion_modifier = { modifier = DEN_cooperative_subject target = DEN } } } hidden_effect = { set_country_flag = DEN_censor_media_flag } } } DEN_bop_occupation_remove_political_agitator = { priority = 99 icon = GFX_decision_generic_political_discourse ai_will_do = { base = 15 modifier = { factor = 2 DEN_historical_ai = yes } modifier = { factor = 2 power_balance_value = { id = DEN_occupation_balance value < 0 } } modifier = { factor = 2 power_balance_value = { id = DEN_occupation_balance value < -0.3 } } modifier = { factor = 5 is_subject = yes has_government = var:DEN.DEN_overlord_nation } modifier = { factor = 2 is_historical_focus_on = yes } } allowed = { original_tag = DEN } visible = { is_subject = yes has_completed_focus = DEN_collaboration_government OR = { AND = { NOT = { has_government = communism } OVERLORD = { OR = { has_government = fascism any_enemy_country = { has_government = communism } } } } AND = { NOT = { has_government = fascism } OVERLORD = { OR = { has_government = communism any_enemy_country = { has_government = fascism } } } } OVERLORD = { has_government = neutrality } } } available = { } cost = DEN_decision_high_cost fire_only_once = yes complete_effect = { DEN_bop_occupation_very_low_decrease_effect = yes add_stability = -0.05 if = { limit = { is_subject = yes OVERLORD = { OR = { has_government = fascism any_enemy_country = { has_government = communism } } } } DEN_aksel_larsen = { set_character_flag = DEN_political_agitator_flag } custom_effect_tooltip = DEN_remove_aksel_larsen_tt } if = { limit = { is_subject = yes OVERLORD = { OR = { has_government = communism any_enemy_country = { has_government = fascism } } } } DEN_frits_clausen = { set_character_flag = DEN_political_agitator_flag } DEN_cay_lembcke = { set_character_flag = DEN_political_agitator_flag } custom_effect_tooltip = DEN_remove_frits_clausen_tt custom_effect_tooltip = DEN_remove_cay_lembcke_tt } if = { limit = { is_subject = yes OVERLORD = { NOT = { has_government = democratic }} } DEN_christmas_moller = { set_character_flag = DEN_political_agitator_flag } custom_effect_tooltip = DEN_remove_christmas_moller_tt } if = { limit = { is_subject = yes } OVERLORD = { add_opinion_modifier = { modifier = DEN_cooperative_subject target = DEN } } } } } DEN_bop_occupation_ban_communism = { priority = 99 icon = GFX_decision_generic_speech ai_will_do = { base = 0 modifier = { add = 100 has_government = fascism } modifier = { add = 25 has_government = neutrality } } allowed = { original_tag = DEN } visible = { is_subject = yes OVERLORD = { OR = { has_government = fascism any_enemy_country = { has_government = communism } } } NOT = { has_government = communism has_country_flag = DEN_banned_communism_flag has_country_flag = banned_communism_flag } } available = { has_completed_focus = DEN_collaboration_government power_balance_value = { id = DEN_occupation_balance value <-0 } } cost = DEN_decision_very_high_cost fire_only_once = yes complete_effect = { DEN_bop_occupation_low_decrease_effect = yes hidden_effect = { set_temp_variable = { var = ban_ideology_var value = party_popularity@communism } multiply_temp_variable = { var = ban_ideology_var value = -0.25 } set_country_flag = DEN_banned_communism_flag } add_popularity = { ideology = communism popularity = ban_ideology_var } if = { limit = { has_government = democratic } multiply_temp_variable = { var = ban_ideology_var value = 2.5 } add_stability = ban_ideology_var } else_if = { limit = { has_elections = yes } multiply_temp_variable = { var = ban_ideology_var value = 2 } add_stability = ban_ideology_var } else_if = { limit = { has_elections = no has_government = neutrality } multiply_temp_variable = { var = ban_ideology_var value = 1.25 } add_stability = ban_ideology_var } else_if = { limit = { has_government = fascism } add_stability = ban_ideology_var } else = { multiply_temp_variable = { var = ban_ideology_var value = 1.5 } add_stability = ban_ideology_var } if = { limit = { is_subject = yes } OVERLORD = { add_opinion_modifier = { modifier = DEN_cooperative_subject target = DEN } } } } } DEN_bop_occupation_allow_communism = { priority = 99 icon = GFX_decision_generic_political_address ai_will_do = { base = 0 modifier = { add = 50 has_government = democratic } } allowed = { original_tag = DEN } visible = { OR = { has_country_flag = DEN_banned_communism_flag has_country_flag = banned_communism_flag } } available = { hidden_trigger = { is_subject = yes } OVERLORD = { has_government = communism } power_balance_value = { id = DEN_occupation_balance value < -0.3 } } cost = DEN_decision_medium_cost fire_only_once = yes complete_effect = { DEN_bop_occupation_low_decrease_effect = yes if = { limit = { has_country_flag = banned_communism_flag } set_country_flag = DEN_allow_communism_flag clr_country_flag = banned_communism_flag } else = { clr_country_flag = DEN_banned_communism_flag add_manpower = 500 } add_popularity = { ideology = communism popularity = 0.025 } if = { limit = { is_subject = yes } OVERLORD = { add_opinion_modifier = { modifier = DEN_cooperative_subject target = DEN } } } } } DEN_bop_occupation_ban_fascism = { priority = 99 icon = GFX_decision_generic_speech ai_will_do = { base = 0 modifier = { add = 100 has_government = communism } } allowed = { original_tag = DEN } visible = { is_subject = yes OVERLORD = { OR = { has_government = communism any_enemy_country = { has_government = fascism } } } NOT = { has_government = fascism has_country_flag = DEN_banned_fascism_flag } } available = { has_completed_focus = DEN_collaboration_government power_balance_value = { id = DEN_occupation_balance value < -0.3 } } cost = DEN_decision_very_high_cost fire_only_once = yes complete_effect = { DEN_bop_occupation_low_decrease_effect = yes hidden_effect = { set_temp_variable = { var = ban_ideology_var value = party_popularity@fascism } multiply_temp_variable = { var = ban_ideology_var value = -0.25 } set_country_flag = DEN_banned_fascism_flag } add_popularity = { ideology = fascism popularity = ban_ideology_var } if = { limit = { has_government = democratic } multiply_temp_variable = { var = ban_ideology_var value = 2.5 } add_stability = ban_ideology_var } else_if = { limit = { has_elections = yes } multiply_temp_variable = { var = ban_ideology_var value = 2 } add_stability = ban_ideology_var } else_if = { limit = { has_elections = no has_government = neutrality } multiply_temp_variable = { var = ban_ideology_var value = 1.25 } add_stability = ban_ideology_var } else_if = { limit = { has_government = communism } add_stability = ban_ideology_var } else = { multiply_temp_variable = { var = ban_ideology_var value = 1.5 } add_stability = ban_ideology_var } if = { limit = { is_subject = yes } OVERLORD = { add_opinion_modifier = { modifier = DEN_cooperative_subject target = DEN } } } } } DEN_bop_occupation_allow_fascism = { priority = 99 icon = GFX_decision_generic_political_address ai_will_do = { base = 0 modifier = { add = 25 has_government = democratic } } allowed = { original_tag = DEN } visible = { is_subject = yes OR = { has_country_flag = DEN_banned_fascism_flag has_country_flag = banned_fascism_flag } } available = { hidden_trigger = { is_subject = yes } OVERLORD = { has_government = fascism } power_balance_value = { id = DEN_occupation_balance value < -0.3 } } cost = DEN_decision_medium_cost fire_only_once = yes complete_effect = { DEN_bop_occupation_very_low_decrease_effect = yes if = { limit = { has_country_flag = banned_fascism_flag } set_country_flag = DEN_allow_fascism_flag clr_country_flag = banned_fascism_flag } else = { clr_country_flag = DEN_banned_fascism_flag add_manpower = 500 } add_popularity = { ideology = fascism popularity = 0.025 } if = { limit = { is_subject = yes } OVERLORD = { add_opinion_modifier = { modifier = DEN_cooperative_subject target = DEN } } } } } DEN_bop_occupation_allow_democratism = { priority = 99 icon = GFX_decision_generic_political_address ai_will_do = { base = 0 modifier = { add = 200 has_government = democratic } modifier = { add = 50 has_government = neutrality } } allowed = { original_tag = DEN } visible = { is_subject = yes has_country_flag = banned_democratic_flag } available = { hidden_trigger = { is_subject = yes } OVERLORD = { OR = { has_government = democratic has_government = neutrality } } power_balance_value = { id = DEN_occupation_balance value < -0.3 } } cost = DEN_decision_medium_cost fire_only_once = yes complete_effect = { DEN_bop_occupation_very_low_decrease_effect = yes if = { limit = { has_country_flag = banned_democratic_flag } set_country_flag = DEN_allow_democratic_flag clr_country_flag = banned_democratic_flag } if = { limit = { has_elections = no } set_politics = { elections_allowed = yes } } add_popularity = { ideology = democratic popularity = 0.05 } if = { limit = { is_subject = yes } OVERLORD = { add_opinion_modifier = { modifier = DEN_cooperative_subject target = DEN } } } } } } #### DECISIONS #### #Resistance DEN_resistance_category = { DEN_seek_foreign_support_decision = { priority = 1 icon = GFX_decision_hol_exchange_intelligence_data ai_will_do = { base = 10 modifier = { factor = 2 power_balance_value = { id = DEN_occupation_balance value < 0 } } modifier = { factor = 5 power_balance_value = { id = DEN_occupation_balance value < -0.6 } } modifier = { factor = 1.5 is_historical_focus_on = yes FROM = { original_tag = ENG } } modifier = { factor = 2 FROM = { has_government = ROOT } } modifier = { factor = 1.5 is_subject = yes FROM = { has_war_with = ROOT.OVERLORD } } } available = { } visible = { has_completed_focus = DEN_align_with_foreign_powers has_country_flag = DEN_has_occupation_flag NOT = { has_country_flag = DEN_has_foreign_support_flag } } target_trigger = { FROM = { is_subject = no has_capitulated = no OR = { is_major = yes NORDIC_is_nordic = yes } OR = { is_in_faction = no is_faction_leader = yes } OR = { #Gotta be a relatively close by nation capital_scope = { is_on_continent = europe } capital_scope = { is_on_continent = north_america } } NOT = { has_subject = ROOT has_war_with = ROOT FROM = { is_justifying_wargoal_against = ROOT } ROOT = { is_justifying_wargoal_against = FROM } FROM = { has_wargoal_against = ROOT } ROOT = { has_wargoal_against = FROM } } } } fire_only_once = no cost = 0 complete_effect = { FROM = { country_event = { id = denmark_resistance_event.1 days = 1 } } set_country_flag = DEN_has_foreign_support_flag custom_effect_tooltip = if_they_accept_tt custom_effect_tooltip = DEN_if_denmark_becomes_independent_tt effect_tooltip = { FROM = { country_event = { id = denmark_resistance_event.7 }} } } } DEN_ask_for_weapons_decision = { priority = 1 icon = GFX_decision_generic_prepare_civil_war ai_will_do = { base = 10 modifier = { factor = 2 power_balance_value = { id = DEN_occupation_balance value < 0 } } modifier = { factor = 5 power_balance_value = { id = DEN_occupation_balance value < -0.6 } } } available = { has_completed_focus = DEN_ask_for_weapons has_equipment = { infantry_equipment < 5000 } } visible = { has_country_flag = DEN_has_occupation_flag check_variable = { DEN_times_weapons_was_delivered < 5 } #Is added in the event var:DEN.supporting_nation = { has_country_flag = DEN_supports_denmark_flag } } fire_only_once = no cost = DEN_weapon_delivery_cost #Cost is multiplied in the event days_remove = 30 complete_effect = { var:DEN.supporting_nation = { country_event = { id = denmark_resistance_event.4 days = 1 } } custom_effect_tooltip = if_they_accept_tt effect_tooltip = { DEN = { add_equipment_to_stockpile = { type = infantry_equipment_1 amount = 1000 producer = DEN.supporting_nation } } } } } DEN_seek_danish_brigades_host = { priority = 1 icon = GFX_decision_generic_military ai_will_do = { base = 10 modifier = { factor = 2 power_balance_value = { id = DEN_occupation_balance value < 0 } } modifier = { factor = 5 power_balance_value = { id = DEN_occupation_balance value < -0.6 } } modifier = { factor = 1.5 is_historical_focus_on = yes FROM = { original_tag = SWE } } modifier = { factor = 2 FROM = { has_government = ROOT } } } available = { } visible = { has_completed_focus = DEN_create_danforce has_country_flag = DEN_has_occupation_flag #is_subject = yes NOT = { has_country_flag = DEN_ask_nation_to_host_the_brigades_flag } } target_trigger = { FROM = { is_subject = no has_capitulated = no OR = { is_major = yes NORDIC_is_nordic = yes } OR = { is_in_faction = no is_faction_leader = yes } OR = { #Gotta be a relatively close by nation capital_scope = { is_on_continent = europe } capital_scope = { is_on_continent = north_america } } NOT = { has_subject = ROOT has_war_with = ROOT FROM = { is_justifying_wargoal_against = ROOT } ROOT = { is_justifying_wargoal_against = FROM } FROM = { has_wargoal_against = ROOT } ROOT = { has_wargoal_against = FROM } } } } fire_only_once = no cost = 0 complete_effect = { FROM = { country_event = { id = denmark_resistance_event.20 days = 1 } } set_country_flag = DEN_ask_nation_to_host_the_brigades_flag } } DEN_buy_foreign_destroyers = { priority = 1 icon = GFX_decision_generic_naval ai_will_do = { base = 5 modifier = { factor = 2 power_balance_value = { id = DEN_occupation_balance value < 0 } } modifier = { factor = 5 power_balance_value = { id = DEN_occupation_balance value < -0.6 } } } available = { has_completed_focus = DEN_buy_foreign_ships has_country_flag = DEN_create_danish_brigades_flag NOT = { FROM = { is_justifying_wargoal_against = ROOT } ROOT = { is_justifying_wargoal_against = FROM } FROM = { has_wargoal_against = ROOT } ROOT = { has_wargoal_against = FROM } } } visible = { has_completed_focus = DEN_establish_danske_flotille has_country_flag = DEN_has_occupation_flag } targets = { SWE NOR HOL ENG USA FRA SOV GER ITA JAP } target_trigger = { FROM = { is_subject = no has_capitulated = no NOT = { has_subject = ROOT #excluding your overlord has_war_with = ROOT is_in_faction_with = var:DEN.DEN_overlord_nation } } } fire_only_once = yes cost = DEN_decision_low_cost complete_effect = { FROM = { country_event = { id = denmark_resistance_event.23 days = 5 } } } } } ################## ################## #### OVERLORD #### ################## ################## DEN_overlord_category = { DEN_annex_denmark = { priority = 1 icon = GFX_decision_oppression ai_will_do = { base = 0 } available = { has_opinion = { target = DEN value < -49 } NOT = { is_in_faction_with = DEN } } visible = { has_country_flag = DEN_seized_jylland_flag has_subject = DEN 99 = { is_fully_controlled_by = ROOT } 912 = { is_fully_controlled_by = ROOT } } fire_only_once = yes cost = 100 complete_effect = { DEN = { country_event = { id = denmark_overlord_events.47 days = 1 } } custom_effect_tooltip = if_they_accept_tt effect_tooltip = { annex_country = { target = DEN transfer_troops = yes } DEN = { every_core_state = { add_compliance = 25 } } } } } DEN_seize_jylland = { priority = 1 icon = GFX_decision_oppression ai_will_do = { base = 5 modifier = { factor = 2 ROOT = { original_tag = GER } date > 1942.11.1 is_historical_focus_on = yes } modifier = { factor = 2 has_opinion = { target = DEN value < -14 } } modifier = { factor = 2 has_opinion = { target = DEN value < -29 } } modifier = { factor = 2 is_historical_focus_on = yes } } available = { has_opinion = { target = DEN value < -24 } NOT = { 99 = { is_fully_controlled_by = ROOT }} NOT = { 912 = { is_fully_controlled_by = ROOT }} NOT = { is_in_faction_with = DEN } } visible = { has_subject = DEN has_country_flag = DEN_overlord_installed_loyalist_flag 99 = { is_fully_controlled_by = DEN } 912 = { is_fully_controlled_by = DEN } } fire_only_once = yes cost = 100 complete_effect = { DEN = { country_event = { id = denmark_overlord_events.44 days = 1 } } custom_effect_tooltip = if_they_accept_tt effect_tooltip = { ROOT = { transfer_state = 99 transfer_state = 912 } unlock_decision_tooltip = DEN_annex_denmark add_opinion_modifier = { modifier = DEN_cooperative_subject target = DEN } } } } DEN_reclaim_sonderjylland = { priority = 1 icon = GFX_decision_eng_trade_unions_support ai_will_do = { base = 100 } available = { has_opinion = { target = DEN value < 0 } NOT = { is_in_faction_with = DEN } 99 = { is_fully_controlled_by = ROOT } 912 = { is_fully_controlled_by = ROOT } } visible = { has_subject = DEN original_tag = GER has_government = neutrality } fire_only_once = yes cost = 50 complete_effect = { 912 = { if = { limit = { is_owned_by = ROOT } add_core_of = ROOT } } } } DEN_install_plenipotentiary = { priority = 1 icon = GFX_decision_oppression ai_will_do = { base = 5 modifier = { factor = 2 ROOT = { original_tag = GER } date > 1943.8.28 is_historical_focus_on = yes } modifier = { factor = 1.5 has_opinion = { target = DEN value < -19 } } modifier = { factor = 1.5 has_opinion = { target = DEN value < -29 } } modifier = { factor = 1.5 has_opinion = { target = DEN value < -49 } } modifier = { factor = 1.5 DEN = { has_country_flag = DEN_telegram_crisis_flag } } } available = { ROOT = { has_opinion = { target = DEN value < -9 } } DEN = { NOT = { has_government = ROOT is_in_faction_with = ROOT } } } visible = { has_subject = DEN NOT = { has_government = DEN } NOT = { has_country_flag = DEN_overlord_installed_loyalist_flag } } fire_only_once = yes cost = 50 complete_effect = { DEN = { country_event = { id = denmark_overlord_events.40 days = 2 } } custom_effect_tooltip = if_they_accept_tt event_option_tooltip = denmark_overlord_events.41.a custom_effect_tooltip = if_they_refuse_tt custom_effect_tooltip = DEN_deteriorating_subject_relations } } DEN_demand_country_leader_resignation = { priority = 1 icon = GFX_decision_eng_trade_unions_demand ai_will_do = { base = 10 modifier = { factor = 2 ROOT = { original_tag = GER } date > 1942.11.1 is_historical_focus_on = yes } modifier = { factor = 1.5 has_opinion = { target = DEN value < 0 } } modifier = { factor = 1.5 has_opinion = { target = DEN value < -10 } } modifier = { factor = 1.5 has_opinion = { target = DEN value < -20 } } } available = { ROOT = { has_opinion = { target = DEN value < 0 } } DEN = { NOT = { has_government = ROOT is_in_faction_with = ROOT } } } visible = { has_subject = DEN has_country_flag = DEN_overlord_can_demand_resignation_flag NOT = { has_country_flag = DEN_overlord_installed_loyalist_flag } } fire_only_once = yes cost = 25 complete_effect = { DEN = { country_event = { id = denmark_overlord_events.10 days = 1 } } custom_effect_tooltip = DEN_deteriorating_subject_relations } } DEN_demand_government_change = { priority = 1 icon = GFX_decision_eng_trade_unions_demand ai_will_do = { base = 0 modifier = { add = 75 OR = { any_country = { has_war_with = ROOT has_government = communism } any_country = { has_war_with = ROOT has_government = fascism } } } modifier = { add = 50 is_historical_focus_on = no } modifier = { add = 25 is_historical_focus_on = yes } } available = { OR = { has_opinion = { target = DEN value < 25 } AND = { DEN = { has_government = communism } any_country = { has_war_with = ROOT has_government = communism } } AND = { DEN = { has_government = fascism } any_country = { has_war_with = ROOT has_government = fascism } } } } visible = { has_subject = DEN OR = { AND = { NOT = { has_government = communism } DEN = { has_government = communism } } AND = { NOT = { has_government = fascism } DEN = { has_government = fascism } } } } fire_only_once = yes cost = 50 complete_effect = { DEN = { country_event = { id = denmark_overlord_events.20 days = 1 } } custom_effect_tooltip = DEN_deteriorating_subject_relations } } DEN_demand_communist_ban = { priority = 1 icon = GFX_decision_eng_trade_unions_demand ai_will_do = { base = 100 } available = { has_subject = DEN DEN = { NOT = { has_government = communism } } any_country = { has_war_with = ROOT has_government = communism } } visible = { has_subject = DEN NOT = { has_government = communism } DEN = { NOT = { has_government = communism } NOT = { has_country_flag = DEN_banned_communism_flag } } any_country = { has_war_with = ROOT has_government = communism } } fire_only_once = yes cost = 25 complete_effect = { DEN = { country_event = { id = denmark_overlord_events.26 days = 1 } } } } DEN_demand_fascist_ban = { priority = 1 icon = GFX_decision_eng_trade_unions_demand ai_will_do = { base = 100 } available = { has_subject = DEN DEN = { NOT = { has_government = fascism } } any_country = { has_war_with = ROOT has_government = fascism } } visible = { has_subject = DEN NOT = { has_government = fascism } DEN = { NOT = { has_government = fascism } NOT = { has_country_flag = DEN_banned_fascism_flag } } any_country = { has_war_with = ROOT has_government = fascism } } fire_only_once = yes cost = 25 complete_effect = { DEN = { country_event = { id = denmark_overlord_events.29 days = 1 } } } } DEN_demand_weapon_deliveries = { priority = 1 icon = GFX_decision_generic_prepare_civil_war ai_will_do = { base = 10 modifier = { factor = 2 has_opinion = { target = DEN value < 0 } } } available = { has_war_with_major = yes DEN = { has_equipment = { infantry_equipment > 2499 } } } visible = { has_subject = DEN NOT = { is_in_faction_with = DEN } DEN = { has_equipment = { infantry_equipment > 4999 } } } fire_only_once = no cost = 25 days_remove = 180 complete_effect = { DEN = { country_event = { id = denmark_overlord_events.32 days = 1 } } custom_effect_tooltip = if_they_accept_tt effect_tooltip = { add_equipment_to_stockpile = { type = infantry_equipment amount = 2500 producer = DEN } add_opinion_modifier = { modifier = DEN_cooperative_subject target = DEN } } custom_effect_tooltip = if_they_refuse_tt custom_effect_tooltip = DEN_deteriorating_subject_relations } } DEN_demand_troops = { priority = 1 icon = GFX_decision_generic_military ai_will_do = { base = 10 modifier = { factor = 2 has_opinion = { target = DEN value < 0 } } } available = { has_war_with_major = yes DEN = { has_manpower > 9999 } } visible = { has_subject = DEN NOT = { is_in_faction_with = DEN has_country_flag = DEN_overlord_enacted_forced_conscription } } fire_only_once = no cost = 25 days_remove = 365 complete_effect = { DEN = { country_event = { id = denmark_overlord_events.36 days = 1 } } custom_effect_tooltip = if_they_accept_tt effect_tooltip = { add_manpower = 2500 add_opinion_modifier = { modifier = DEN_cooperative_subject target = DEN } } custom_effect_tooltip = if_they_refuse_tt custom_effect_tooltip = DEN_deteriorating_subject_relations } } DEN_overlord_requests_the_return_of_the_faroes = { icon = GFX_decision_generic_operation available = { 337 = { is_controlled_by = ENG } is_subject = no NOT = { has_war_with = ENG any_allied_country = { has_war_with = ENG } } ENG = { has_opinion = { target = ROOT value > 74 } } } cost = 50 fire_only_once = yes ai_will_do = { base = 0 } visible = { has_global_flag = ENG_occupied_DEN_faroes has_subject = DEN 337 = { is_fully_controlled_by = ENG } NOT = { has_war_with = ENG } } complete_effect = { #ENG = { country_event = { id = AAT_USA_events.08 days = 1 } } ENG = { country_event = { id = AAT_USA_events.08 days = 2 } } } } DEN_overlord_requests_greenland_back = { icon = generic_operation available = { 101 = { is_owned_and_controlled_by = USA } NOT = { has_war_with = USA any_allied_country = { has_war_with = USA } } USA = { has_opinion = { target = ROOT value > 74 } } } cost = 50 fire_only_once = yes ai_will_do = { base = 0 } visible = { has_global_flag = USA_occupied_DEN_greenland has_subject = DEN 101 = { is_fully_controlled_by = USA } NOT = { has_war_with = USA } } complete_effect = { USA = { country_event = { id = AAT_USA_events.08 days = 2 } } } } } #Trade DEN_trade_deal_category = { DEN_increase_trade_with_denmark = { priority = 1 icon = GFX_decision_eng_trade_unions_support ai_will_do = { base = 0 modifier = { #only do this if DEN is the player add = 10 has_opinion = { target = DEN value > 25 } DEN = { is_ai = no } } } available = { DEN_potential_trading_partners = yes } visible = { } target_trigger = { FROM = { tag = DEN } } fire_only_once = yes cost = 50 complete_effect = { FROM = { country_event = { id = denmark_trade_deal.4 days = 1 } } custom_effect_tooltip = if_they_accept_tt effect_tooltip = { swap_ideas = { remove_idea = DEN_danish_produce_export_ns add_idea = DEN_danish_produce_export_ns_improved } FROM = { add_offsite_building = { type = industrial_complex level = 1 }} } custom_effect_tooltip = war_will_cancel_deal_tt } } DEN_cancel_trade_with_denmark = { priority = 1 icon = GFX_decision_generic_break_treaty ai_will_do = { base = 0 modifier = { add = 25 DEN = { has_added_tension_amount > 24 } } } available = { DEN_potential_trading_partners = yes } visible = { NOT = { has_war_with = DEN } } target_trigger = { FROM = { tag = DEN } } fire_only_once = yes cost = 0 complete_effect = { effect_tooltip = { if = { limit = { ROOT = { has_idea = DEN_danish_produce_export_ns } } ROOT = { remove_ideas = DEN_danish_produce_export_ns } custom_effect_tooltip = DEN_loses_one_offmap_civ_tt } else_if = { limit = { ROOT = { has_idea = DEN_danish_produce_export_ns_improved } } ROOT = { remove_ideas = DEN_danish_produce_export_ns_improved} custom_effect_tooltip = DEN_loses_two_offmap_civ_tt } } FROM = { country_event = { id = denmark_trade_deal.7 hours = 3 } } } } DEN_cancel_trade_with_country = { priority = 1 icon = GFX_decision_generic_break_treaty ai_will_do = { base = 0 modifier = { add = 25 FROM = { has_added_tension_amount > 24 } } } allowed = { original_tag = DEN } visible = { NOT = { has_war_with = FROM } } target_trigger = { FROM = { DEN_potential_trading_partners = yes OR = { has_idea = DEN_danish_produce_export_ns has_idea = DEN_danish_produce_export_ns_improved } } } fire_only_once = yes cost = 0 complete_effect = { effect_tooltip = { if = { limit = { FROM = { has_idea = DEN_danish_produce_export_ns } } custom_effect_tooltip = DEN_remove_one_offmap_civ_tt FROM = { remove_ideas = DEN_danish_produce_export_ns } } else_if = { limit = { FROM = { has_idea = DEN_danish_produce_export_ns_improved } } custom_effect_tooltip = DEN_remove_two_offmap_civ_tt FROM = { remove_ideas = DEN_danish_produce_export_ns_improved} } } FROM = { country_event = { id = denmark_trade_deal.7 hours = 3 } } } } } #Fortification DEN_fortification_category = { DEN_forts_in_sjaelland = { priority = 1 icon = GFX_decision_generic_fortification ai_will_do = { base = 10 modifier = { factor = 10 has_war = yes } modifier = { factor = 5 OR = { DEN_rearming_ai = yes DEN_royal_ai = yes DEN_fascist_ai = yes } } } allowed = { original_tag = DEN } available = { 37 = { is_fully_controlled_by = ROOT } } visible = { has_completed_focus = DEN_build_a_modern_dannevirke } fire_only_once = yes days_remove = 60 cost = DEN_decision_low_cost remove_effect = { 37 = { add_building_construction = { type = bunker level = 1 instant_build = yes province = { all_provinces = yes #limit_to_border = yes } } } } } DEN_forts_in_fyn = { priority = 1 icon = GFX_decision_generic_fortification ai_will_do = { base = 10 modifier = { factor = 10 has_war = yes } modifier = { factor = 5 OR = { DEN_rearming_ai = yes DEN_royal_ai = yes DEN_fascist_ai = yes } } } allowed = { original_tag = DEN } available = { 911 = { is_fully_controlled_by = ROOT } } visible = { has_completed_focus = DEN_build_a_modern_dannevirke } fire_only_once = yes days_remove = 60 cost = DEN_decision_low_cost remove_effect = { 911 = { add_building_construction = { type = bunker level = 1 instant_build = yes province = { all_provinces = yes #limit_to_border = yes } } } } } DEN_forts_in_norrejylland = { priority = 1 icon = GFX_decision_generic_fortification ai_will_do = { base = 10 modifier = { factor = 10 has_war = yes } modifier = { factor = 5 OR = { DEN_rearming_ai = yes DEN_royal_ai = yes DEN_fascist_ai = yes } } } allowed = { original_tag = DEN } available = { 99 = { is_fully_controlled_by = ROOT } } visible = { has_completed_focus = DEN_build_a_modern_dannevirke } fire_only_once = yes days_remove = 60 cost = DEN_decision_low_cost remove_effect = { 99 = { add_building_construction = { type = bunker level = 1 instant_build = yes province = { all_provinces = yes #limit_to_border = yes } } } } } DEN_forts_in_sonderjylland = { priority = 1 icon = GFX_decision_generic_fortification ai_will_do = { base = 10 modifier = { factor = 10 has_war = yes } modifier = { factor = 5 OR = { DEN_rearming_ai = yes DEN_royal_ai = yes DEN_fascist_ai = yes } } } allowed = { original_tag = DEN } available = { 912 = { is_fully_controlled_by = ROOT } } visible = { has_completed_focus = DEN_build_a_modern_dannevirke } fire_only_once = yes days_remove = 60 cost = DEN_decision_low_cost remove_effect = { 912 = { add_building_construction = { type = bunker level = 1 instant_build = yes province = { all_provinces = yes #limit_to_border = yes } } } } } DEN_coastal_forts_in_sjaelland = { priority = 1 icon = GFX_decision_generic_coastal_fortification ai_will_do = { base = 10 modifier = { factor = 10 has_war = yes } modifier = { factor = 5 OR = { DEN_rearming_ai = yes DEN_royal_ai = yes DEN_fascist_ai = yes } } } allowed = { original_tag = DEN } available = { 37 = { is_fully_controlled_by = ROOT } } visible = { has_completed_focus = DEN_fortify_the_islands } fire_only_once = yes days_remove = 60 cost = DEN_decision_low_cost remove_effect = { 37 = { add_building_construction = { type = coastal_bunker level = 1 instant_build = yes province = { all_provinces = yes limit_to_coastal = yes } } } } } DEN_coastal_forts_in_fyn = { priority = 1 icon = GFX_decision_generic_coastal_fortification ai_will_do = { base = 10 modifier = { factor = 10 has_war = yes } modifier = { factor = 5 OR = { DEN_rearming_ai = yes DEN_royal_ai = yes DEN_fascist_ai = yes } } } allowed = { original_tag = DEN } available = { 911 = { is_fully_controlled_by = ROOT } } visible = { has_completed_focus = DEN_fortify_the_islands } fire_only_once = yes days_remove = 60 cost = DEN_decision_low_cost remove_effect = { 911 = { add_building_construction = { type = coastal_bunker level = 1 instant_build = yes province = { all_provinces = yes limit_to_coastal = yes } } } } } DEN_coastal_forts_in_norrejylland = { priority = 1 icon = GFX_decision_generic_coastal_fortification ai_will_do = { base = 10 modifier = { factor = 10 has_war = yes } modifier = { factor = 5 OR = { DEN_rearming_ai = yes DEN_royal_ai = yes DEN_fascist_ai = yes } } } allowed = { original_tag = DEN } available = { 99 = { is_fully_controlled_by = ROOT } } visible = { has_completed_focus = DEN_fortify_the_islands } fire_only_once = yes days_remove = 60 cost = DEN_decision_low_cost remove_effect = { 99 = { add_building_construction = { type = coastal_bunker level = 1 instant_build = yes province = { all_provinces = yes limit_to_coastal = yes } } } } } DEN_coastal_forts_in_sonderjylland = { priority = 1 icon = GFX_decision_generic_coastal_fortification ai_will_do = { base = 10 modifier = { factor = 10 has_war = yes } modifier = { factor = 5 OR = { DEN_rearming_ai = yes DEN_royal_ai = yes DEN_fascist_ai = yes } } } allowed = { original_tag = DEN } available = { 912 = { is_fully_controlled_by = ROOT } } visible = { has_completed_focus = DEN_fortify_the_islands } fire_only_once = yes days_remove = 60 cost = DEN_decision_low_cost remove_effect = { 912 = { add_building_construction = { type = coastal_bunker level = 1 instant_build = yes province = { all_provinces = yes limit_to_coastal = yes } } } } } } #Development DEN_development_category = { DEN_develop_state_greenland = { priority = 1 icon = GFX_decision_generic_construction ai_will_do = { base = 10 modifier = { factor = 2 has_political_power > 100 } modifier = { factor = 5 has_completed_focus = DEN_develop_greenland } } allowed = { original_tag = DEN } on_map_mode = map_and_decisions_view visible = { has_civil_war = no has_full_control_of_state = 101 has_completed_focus = DEN_expand_the_industries 101 = { NOT = { check_variable = { DEN_times_state_was_developed > 2} } } } highlight_states = { highlight_state_targets = { state = 101 } } fire_only_once = no days_remove = 30 cancel_trigger = { 101 = { NOT = { is_controlled_by = ROOT } } } cost = 101.DEN_develop_state_cost remove_effect = { 101 = { DEN_develop_state_effect = yes } multiply_variable = { 101.DEN_develop_state_cost = DEN_double_cost_increase } } } DEN_develop_state_bornholm = { priority = 1 icon = GFX_decision_generic_construction ai_will_do = { base = 10 modifier = { factor = 2 has_political_power > 100 } modifier = { factor = 5 OR = { has_completed_focus = DEN_support_bornholms_industries has_completed_focus = DEN_protect_bornholm } } } allowed = { original_tag = DEN } on_map_mode = map_and_decisions_view visible = { has_civil_war = no has_full_control_of_state = 910 has_completed_focus = DEN_expand_the_industries 910 = { NOT = { check_variable = { DEN_times_state_was_developed > 2} } } } highlight_states = { highlight_state_targets = { state = 910 } } fire_only_once = no days_remove = 30 cancel_trigger = { 910 = { NOT = { is_controlled_by = ROOT } } } cost = 910.DEN_develop_state_cost remove_effect = { 910 = { DEN_develop_state_effect = yes } multiply_variable = { 910.DEN_develop_state_cost = DEN_double_cost_increase } } } DEN_develop_state_faroes = { priority = 1 icon = GFX_decision_generic_construction ai_will_do = { base = 10 modifier = { factor = 2 has_political_power > 100 } modifier = { factor = 5 OR = { has_completed_focus = DEN_support_the_faroes_industries has_completed_focus = DEN_protect_the_faroe_islands } } } allowed = { original_tag = DEN } on_map_mode = map_and_decisions_view visible = { has_civil_war = no has_full_control_of_state = 337 has_completed_focus = DEN_expand_the_industries 337 = { NOT = { check_variable = { DEN_times_state_was_developed > 2} } } } highlight_states = { highlight_state_targets = { state = 337 } } fire_only_once = no days_remove = 30 cancel_trigger = { 337 = { NOT = { is_controlled_by = ROOT } } } cost = 337.DEN_develop_state_cost remove_effect = { 337 = { DEN_develop_state_effect = yes } multiply_variable = { 337.DEN_develop_state_cost = DEN_double_cost_increase } } } DEN_develop_state_gotland = { priority = 1 icon = GFX_decision_generic_construction ai_will_do = { base = 10 modifier = { factor = 2 has_political_power > 100 } } allowed = { original_tag = DEN } on_map_mode = map_and_decisions_view visible = { has_civil_war = no has_full_control_of_state = 124 has_completed_focus = DEN_expand_the_industries 124 = { NOT = { check_variable = { DEN_times_state_was_developed > 2} } } } highlight_states = { highlight_state_targets = { state = 124 } } fire_only_once = no days_remove = 30 cancel_trigger = { 124 = { NOT = { is_controlled_by = ROOT } } } cost = 124.DEN_develop_state_cost remove_effect = { 124 = { DEN_develop_state_effect = yes } multiply_variable = { 124.DEN_develop_state_cost = DEN_double_cost_increase } } } DEN_develop_state_iceland = { priority = 1 icon = GFX_decision_generic_construction ai_will_do = { base = 10 modifier = { factor = 2 has_political_power > 100 } modifier = { factor = 5 has_completed_focus = DEN_develop_iceland } } allowed = { original_tag = DEN } on_map_mode = map_and_decisions_view visible = { has_civil_war = no has_full_control_of_state = 100 has_completed_focus = DEN_expand_the_industries 100 = { NOT = { check_variable = { DEN_times_state_was_developed > 2} } } } highlight_states = { highlight_state_targets = { state = 100 } } fire_only_once = no days_remove = 30 cancel_trigger = { 100 = { NOT = { is_controlled_by = ROOT } } } cost = 100.DEN_develop_state_cost remove_effect = { 100 = { DEN_develop_state_effect = yes } multiply_variable = { 100.DEN_develop_state_cost = DEN_double_cost_increase } } } DEN_develop_state_norrejylland = { priority = 1 icon = GFX_decision_generic_construction ai_will_do = { base = 25 modifier = { factor = 2 has_political_power > 100 } } allowed = { original_tag = DEN } on_map_mode = map_and_decisions_view visible = { has_civil_war = no has_full_control_of_state = 99 has_completed_focus = DEN_modernize_agricultural_machinery 99 = { NOT = { check_variable = { DEN_times_state_was_developed > 2} } } } highlight_states = { highlight_state_targets = { state = 99 } } fire_only_once = no days_remove = 30 cancel_trigger = { 99 = { NOT = { is_controlled_by = ROOT } } } cost = 99.DEN_develop_state_cost remove_effect = { 99 = { DEN_develop_state_effect = yes } multiply_variable = { 99.DEN_develop_state_cost = DEN_double_cost_increase } } } DEN_develop_state_sonderjylland = { priority = 1 icon = GFX_decision_generic_construction ai_will_do = { base = 25 modifier = { factor = 2 has_political_power > 100 } } allowed = { original_tag = DEN } on_map_mode = map_and_decisions_view visible = { has_civil_war = no has_full_control_of_state = 912 has_completed_focus = DEN_modernize_agricultural_machinery 912 = { NOT = { check_variable = { DEN_times_state_was_developed > 2} } } } highlight_states = { highlight_state_targets = { state = 912 } } fire_only_once = no days_remove = 30 cancel_trigger = { 912 = { NOT = { is_controlled_by = ROOT } } } cost = 912.DEN_develop_state_cost remove_effect = { 912 = { DEN_develop_state_effect = yes } multiply_variable = { 912.DEN_develop_state_cost = DEN_double_cost_increase } } } DEN_develop_state_sjaelland = { priority = 1 icon = GFX_decision_generic_construction ai_will_do = { base = 25 modifier = { factor = 2 has_political_power > 100 } } allowed = { original_tag = DEN } on_map_mode = map_and_decisions_view visible = { has_civil_war = no has_full_control_of_state = 37 has_completed_focus = DEN_modernize_industrial_machinery 37 = { NOT = { check_variable = { DEN_times_state_was_developed > 2} } } } highlight_states = { highlight_state_targets = { state = 37 } } fire_only_once = no days_remove = 30 cancel_trigger = { 37 = { NOT = { is_controlled_by = ROOT } } } cost = 37.DEN_develop_state_cost remove_effect = { 37 = { DEN_develop_state_effect = yes } multiply_variable = { 37.DEN_develop_state_cost = DEN_double_cost_increase } } } DEN_develop_state_fyn = { priority = 1 icon = GFX_decision_generic_construction ai_will_do = { base = 25 modifier = { factor = 2 has_political_power > 100 } } allowed = { original_tag = DEN } on_map_mode = map_and_decisions_view visible = { has_civil_war = no has_full_control_of_state = 911 has_completed_focus = DEN_modernize_industrial_machinery 911 = { NOT = { check_variable = { DEN_times_state_was_developed > 2} } } } highlight_states = { highlight_state_targets = { state = 911 } } fire_only_once = no days_remove = 30 cancel_trigger = { 911 = { NOT = { is_controlled_by = ROOT } } } cost = 911.DEN_develop_state_cost remove_effect = { 911 = { DEN_develop_state_effect = yes } multiply_variable = { 911.DEN_develop_state_cost = DEN_double_cost_increase } } } } DEN_military_category = { DEN_deploy_the_home_guard = { priority = 99 icon = GFX_decision_generic_protection ai_will_do = { base = 10 modifier = { factor = 10 FROM = { any_neighbor_state = { controller = { has_war_with = ROOT } } } } } allowed = { original_tag = DEN } #on_map_mode = map_and_decisions_view available = { has_war = yes FROM = { is_controlled_by = ROOT } } state_target = yes targets = { state = 37 state = 911 state = 99 state = 912 state = 910 state = 337 state = 100 } target_trigger = { FROM = { is_core_of = DEN NOT = { has_state_flag = DEN_home_guard_deployed_flag } } } visible = { has_completed_focus = DEN_hjemmevaernet FROM = { is_controlled_by = ROOT } } cancel_trigger = { has_war = no NOT = { FROM = { is_controlled_by = ROOT } } } ai_hint_pp_cost = 25 custom_cost_trigger = { has_political_power > 24 command_power > 24 } custom_cost_text = decision_cost_CP_25_pp_25 fire_only_once = no days_remove = 10 complete_effect = { hidden_effect = { add_political_power = -25 add_command_power = -25 } } remove_effect = { FROM = { add_dynamic_modifier = { modifier = DEN_home_guard_state_modifier } set_state_flag = DEN_home_guard_deployed_flag } } } DEN_remove_the_home_guard = { priority = 99 icon = GFX_decision_eng_blackshirt_march ai_will_do = { base = 0 } allowed = { original_tag = DEN } #on_map_mode = map_and_decisions_view available = { has_war = yes } state_target = yes target_trigger = { FROM = { is_core_of = DEN } } visible = { has_completed_focus = DEN_hjemmevaernet FROM = { is_controlled_by = ROOT } FROM = { has_state_flag = DEN_home_guard_deployed_flag } } cancel_trigger = { FROM = { NOT = { is_controlled_by = ROOT } } } cost = 0 fire_only_once = no complete_effect = { FROM = { remove_dynamic_modifier = { modifier = DEN_home_guard_state_modifier } clr_state_flag = DEN_home_guard_deployed_flag } } } DEN_deploy_landstormen = { priority = 99 icon = GFX_decision_generic_military ai_will_do = { base = 75 } allowed = { original_tag = DEN } #on_map_mode = map_and_decisions_view available = { has_war = yes has_manpower > 9999 FROM = { is_controlled_by = ROOT } } state_target = yes targets = { state = 37 state = 911 state = 99 state = 912 state = 910 state = 337 state = 100 #Iceland - If reintegrated #state = 101 #Greenland - Commented out because it has an impassible tile, and the raised units have more men then the entirely of Greenland } target_trigger = { FROM = { is_core_of = DEN } } visible = { has_country_flag = DEN_can_deploy_landstorm_flag NOT = { has_country_flag = DEN_landstormen_deployed } FROM = { is_controlled_by = ROOT } } cancel_trigger = { OR = { has_war = no NOT = { FROM = { is_controlled_by = ROOT } } has_country_flag = DEN_recall_landstormen } } ai_hint_pp_cost = 50 custom_cost_trigger = { has_political_power > 49 command_power > 49 } custom_cost_text = decision_cost_CP_50_pp_50 fire_only_once = no days_remove = 10 complete_effect = { hidden_effect = { add_political_power = -50 add_command_power = -50 } set_country_flag = DEN_landstormen_deployed } remove_effect = { FROM = { create_unit = { division = "name = \"1. Brigade\" division_template = \"Landstormen Militia\" start_experience_factor = 0.8" owner = ROOT } create_unit = { division = "name = \"1. Brigade\" division_template = \"Landstormen Militia\" start_experience_factor = 0.8" owner = ROOT } create_unit = { division = "name = \"1. Brigade\" division_template = \"Landstormen Militia\" start_experience_factor = 0.8" owner = ROOT } create_unit = { division = "name = \"1. Brigade\" division_template = \"Landstormen Militia\" start_experience_factor = 0.8" owner = ROOT } create_unit = { division = "name = \"1. Brigade\" division_template = \"Landstormen Militia\" start_experience_factor = 0.8" owner = ROOT } create_unit = { division = "name = \"1. Brigade\" division_template = \"Landstormen Militia\" start_experience_factor = 0.8" owner = ROOT } } add_manpower = -10000 } } DEN_recall_landstormen = { priority = 99 icon = GFX_decision_eng_blackshirt_march ai_will_do = { base = 0 modifier = { add = 50 has_war = no } } allowed = { original_tag = DEN } #on_map_mode = map_and_decisions_view available = { } visible = { has_country_flag = DEN_landstormen_deployed } cost = 0 fire_only_once = no days_remove = 5 complete_effect = { if = { limit = { has_template = "Landstormen Militia" } delete_units = { division_template = "Landstormen Militia" disband = no } } set_country_flag = DEN_recall_landstormen } remove_effect = { clr_country_flag = DEN_landstormen_deployed clr_country_flag = DEN_recall_landstormen } } DEN_army_drills = { priority = 10 icon = GFX_decision_generic_military ai_will_do = { base = 25 modifier = { factor = 4 has_political_power > 100 command_power > 100 } } allowed = { original_tag = DEN } visible = { has_completed_focus = DEN_industrial_preparations } available = { has_completed_focus = DEN_military_preparations } ai_hint_pp_cost = 50 custom_cost_trigger = { has_political_power > 49 command_power > 49 } custom_cost_text = decision_cost_CP_50_pp_50 fire_only_once = no days_remove = 180 complete_effect = { hidden_effect = { add_political_power = -50 add_command_power = -50 } ROOT = { country_event = { id = denmark_protection_event.200 days = 30 }} event_option_tooltip = denmark_protection_event.200.a } remove_effect = { } } DEN_navy_drills = { priority = 10 icon = GFX_decision_generic_military ai_will_do = { base = 25 modifier = { factor = 4 has_political_power > 100 command_power > 100 } } allowed = { original_tag = DEN } visible = { has_completed_focus = DEN_industrial_preparations } available = { has_completed_focus = DEN_military_preparations } ai_hint_pp_cost = 50 custom_cost_trigger = { has_political_power > 49 command_power > 49 } custom_cost_text = decision_cost_CP_50_pp_50 fire_only_once = no days_remove = 180 complete_effect = { hidden_effect = { add_political_power = -50 add_command_power = -50 } ROOT = { country_event = { id = denmark_protection_event.201 days = 30 }} event_option_tooltip = denmark_protection_event.201.a } remove_effect = { } } DEN_air_drills = { priority = 10 icon = GFX_decision_generic_military ai_will_do = { base = 25 modifier = { factor = 4 has_political_power > 100 command_power > 100 } } allowed = { original_tag = DEN } visible = { has_completed_focus = DEN_industrial_preparations } available = { has_completed_focus = DEN_military_preparations } ai_hint_pp_cost = 50 custom_cost_trigger = { has_political_power > 49 command_power > 49 } custom_cost_text = decision_cost_CP_50_pp_50 fire_only_once = no days_remove = 180 complete_effect = { hidden_effect = { add_political_power = -50 add_command_power = -50 } ROOT = { country_event = { id = denmark_protection_event.202 days = 30 }} event_option_tooltip = denmark_protection_event.202.a } remove_effect = { } } } DEN_danish_security_category = { DEN_seek_guarantor = { priority = 1 icon = GFX_decision_hol_exchange_intelligence_data ai_will_do = { base = 25 modifier = { factor = 2 has_opinion = { target = FROM value > 25 } } modifier = { factor = 2 has_opinion = { target = FROM value > 50 } } modifier = { factor = 0.5 has_opinion = { target = FROM value < 0 } } } targets = { ENG GER SOV USA } target_trigger = { FROM = { is_subject = no NOT = { has_war_with = ROOT is_in_faction_with = ROOT has_variable = DEN_allied_nation has_country_flag = DEN_refused_non_aggression_pact_flag is_justifying_wargoal_against = FROM ROOT = { is_justifying_wargoal_against = FROM } } } } available = { OR = { FROM = { has_government = ROOT } AND = { FROM = { has_government = neutrality } ROOT = { has_government = democratic } } AND = { FROM = { has_government = democratic } ROOT = { has_government = neutrality } } } FROM = { has_opinion = { target = ROOT value > 24 } } } visible = { has_completed_focus = DEN_sign_non_aggression_deal NOT = { has_country_flag = DEN_has_non_aggression_flag } NOT = { has_country_flag = DEN_is_seeking_protection_flag } } fire_only_once = no cost = 0 complete_effect = { FROM = { country_event = { id = denmark_protection_event.1 days = 1 } } custom_effect_tooltip = if_they_accept_tt effect_tooltip = { DEN_non_aggression_pact_effect = yes ROOT = { add_opinion_modifier = { modifier = DEN_deepening_partnership target = FROM } } FROM = { add_opinion_modifier = { modifier = DEN_deepening_partnership target = ROOT } } custom_effect_tooltip = DEN_effects_may_vary_science_pact_tt DEN_guarantee_tech_sharing = yes custom_effect_tooltip = DEN_effects_on_transfer_states_tt DEN_sell_territory_for_guarantees = yes } hidden_effect = { set_country_flag = DEN_is_seeking_protection_flag } } } DEN_seek_an_alliance = { priority = 1 icon = GFX_decision_hol_exchange_intelligence_data ai_will_do = { base = 50 modifier = { factor = 2 has_opinion = { target = FROM value > 25 } } modifier = { factor = 2 has_opinion = { target = FROM value > 50 } } modifier = { factor = 0.5 has_opinion = { target = FROM value < 0 } } modifier = { factor = 2 FROM = { is_major = yes } } } targets = { ENG FRA GER SOV SWE NOR FIN ICE } target_trigger = { FROM = { is_subject = no NOT = { has_war_with = ROOT is_in_faction_with = ROOT has_variable = DEN_guaranteeing_nation has_country_flag = DEN_refused_alliance_flag is_justifying_wargoal_against = FROM FROM = { is_justifying_wargoal_against = ROOT } } } } available = { FROM = { has_opinion = { target = ROOT value > 0 } } } visible = { has_completed_focus = DEN_strength_in_numbers NOT = { has_country_flag = DEN_seeks_alliance_flag } is_in_faction = no } fire_only_once = no cost = 0 complete_effect = { FROM = { country_event = { id = denmark_protection_event.100 days = 1 } } custom_effect_tooltip = if_they_accept_tt effect_tooltip = { add_stability = 0.05 add_war_support = 0.1 if = { limit = { FROM = { is_faction_leader = yes } } FROM = { add_to_faction = ROOT } } else = { IF = { limit = { has_dlc = "No Compromise, No Surrender" } set_rule = { can_create_factions = yes } create_faction_from_template = faction_template_DEN_nordic_cooperation_alliance add_faction_initiative = 1 add_to_faction = FROM } ELSE = { set_rule = { can_create_factions = yes } create_faction = DEN_nordic_cooperation_alliance add_to_faction = FROM } } } hidden_effect = { set_country_flag = DEN_seeks_alliance_flag } custom_effect_tooltip = DEN_effects_on_military_cooperation_tt effect_tooltip = { DEN_joint_military_cooperation = yes } custom_effect_tooltip = DEN_effects_on_tech_sharing_tt effect_tooltip = { DEN_alliance_tech_sharing = yes } } } } DEN_nordic_security_category = { DEN_invite_nordic_countries = { priority = 1 icon = GFX_decision_generic_protection ai_will_do = { base = 50 } targets = { ICE NOR SWE FIN } target_trigger = { FROM = { NOT = { has_country_flag = has_danish_invitation_flag is_in_faction_with = ROOT has_war_with = ROOT } is_subject = no } NOT = { any_allied_country = { has_war_with = FROM } } } available = { } visible = { has_country_flag = DEN_invite_the_nordics_flag } fire_only_once = no cost = 0 complete_effect = { FROM = { set_country_flag = has_danish_invitation_flag country_event = { id = denmark_protection_event.130 days = 1 } } } } DEN_invade_nordic_countries = { priority = 1 icon = GFX_decision_generic_prepare_civil_war ai_will_do = { base = 5 modifier = { factor = 10 FROM = { original_tag = ICE } } modifier = { factor = 7 FROM = { original_tag = NOR } } modifier = { factor = 5 FROM = { original_tag = SWE } } modifier = { factor = 3 FROM = { original_tag = FIN } } modifier = { factor = 0.25 has_war_with_major = yes } modifier = { factor = 0.5 FROM = { any_allied_country = { is_major = yes } } } modifier = { factor = 5 FROM = { is_in_faction = no } } } targets = { ICE NOR SWE FIN } target_trigger = { FROM = { NORDIC_is_nordic = yes NOT = { original_tag = ROOT has_war_with = ROOT is_in_faction_with = ROOT } is_subject = no has_country_flag = DEN_refused_danish_invitation_flag } } available = { power_balance_value = { id = DEN_balance_of_power value > 0.6 } NOT = { has_war_with = FROM } } visible = { has_country_flag = DEN_invade_the_nordics_flag } fire_only_once = no cost = 0 complete_effect = { if = { limit = { OR = { has_government = communism has_government = fascism } } declare_war_on = { target = FROM type = annex_everything } } else_if = { limit = { has_government = neutrality } declare_war_on = { target = FROM type = puppet_wargoal_focus } } else_if = { limit = { has_government = democratic FROM = { OR = { has_government = communism has_government = fascism } } } declare_war_on = { target = FROM type = topple_government } } else_if = { limit = { has_government = democratic FROM = { is_subject = no } } declare_war_on = { target = FROM type = puppet_wargoal_focus } } else_if = { limit = { has_government = democratic FROM = { is_subject = yes } } declare_war_on = { target = FROM type = liberate_wargoal } } if = { limit = { FROM = { original_tag = NOR } } add_timed_idea = { idea = DEN_securing_norway_ns days = 365 } } else_if = { limit = { FROM = { original_tag = SWE } } add_timed_idea = { idea = DEN_securing_sweden_ns days = 365 } } else_if = { limit = { FROM = { original_tag = FIN } } add_timed_idea = { idea = DEN_securing_finland_ns days = 365 } } } } } #INTEGRATE PUPPET DEN_integration_puppets_category = { DEN_integrate_iceland = { icon = GFX_decision_generic_nationalism ai_will_do = { base = 50 } allowed = { original_tag = DEN } visible = { ICE = { is_subject_of = PREV } has_country_flag = DEN_can_integrate_iceland_flag } activation = { always = no } is_good = yes days_remove = DEN_short_reset_time cost = DEN_decision_medium_cost fire_only_once = yes cancel_trigger = { OR = { has_capitulated = yes ICE = { NOT = { is_subject_of = PREV } } } } cancel_effect = { } complete_effect = { ICE = { country_event = { id = denmark_expansion_event.100 days = 1 }} } remove_effect = { annex_country = { target = ICE transfer_troops = yes } } } DEN_integrate_sweden = { icon = GFX_decision_generic_nationalism ai_will_do = { base = 50 } allowed = { original_tag = DEN } visible = { SWE = { is_subject_of = PREV } has_completed_focus = DEN_secure_swedish_steel } activation = { always = no } is_good = yes days_remove = DEN_short_reset_time cost = DEN_decision_high_cost fire_only_once = yes cancel_trigger = { OR = { has_capitulated = yes SWE = { NOT = { is_subject_of = PREV } } } } cancel_effect = { } complete_effect = { SWE = { country_event = { id = denmark_expansion_event.100 days = 1 }} } remove_effect = { annex_country = { target = SWE transfer_troops = yes } } } DEN_integrate_finland = { icon = GFX_decision_generic_nationalism ai_will_do = { base = 50 } allowed = { original_tag = DEN } visible = { FIN = { is_subject_of = PREV } has_completed_focus = DEN_finish_off_finland } activation = { always = no } is_good = yes days_remove = DEN_short_reset_time cost = DEN_decision_high_cost fire_only_once = yes cancel_trigger = { OR = { has_capitulated = yes FIN = { NOT = { is_subject_of = PREV } } } } cancel_effect = { } complete_effect = { FIN = { country_event = { id = denmark_expansion_event.100 days = 1 }} } remove_effect = { annex_country = { target = FIN transfer_troops = yes } } } DEN_integrate_norway = { icon = GFX_decision_generic_nationalism ai_will_do = { base = 50 } allowed = { original_tag = DEN } visible = { NOR = { is_subject_of = PREV } has_completed_focus = DEN_reclaim_norway } activation = { always = no } is_good = yes days_remove = DEN_short_reset_time cost = DEN_decision_high_cost fire_only_once = yes cancel_trigger = { OR = { has_capitulated = yes NOR = { NOT = { is_subject_of = PREV } } } } cancel_effect = { } complete_effect = { NOR = { country_event = { id = denmark_expansion_event.100 days = 1 }} } remove_effect = { annex_country = { target = NOR transfer_troops = yes } } } } DEN_demand_territory_category = { DEN_demand_icelandic_territory = { priority = 38 icon = GFX_decision_eng_trade_unions_demand ai_will_do = { base = 5 modifier = { factor = 2 strength_ratio = { tag = FROM ratio > 1 } } modifier = { factor = 2 strength_ratio = { tag = FROM ratio > 1.25 } } modifier = { factor = 2 strength_ratio = { tag = FROM ratio > 1.5 } } modifier = { factor = 0.5 OR = { FROM = { any_allied_country = { is_major = yes } } FROM = { is_major = yes } } } } allowed = { original_tag = DEN } target_trigger = { FROM = { NOT = { has_country_flag = DEN_sent_icelandic_territory_demands } any_controlled_state = { is_core_of = ICE NOT = { is_controlled_by = ICE } } } } available = { FROM = { NOT = { has_war_with = ROOT is_in_faction_with = ROOT } } } visible = { has_completed_focus = DEN_reintegrate_iceland } cost = 75 complete_effect = { FROM = { country_event = { id = denmark_expansion_event.200 days = 2 random = 3 } hidden_effect = { set_country_flag = DEN_sent_icelandic_territory_demands } } } } DEN_demand_swedish_territory = { priority = 38 icon = GFX_decision_eng_trade_unions_demand ai_will_do = { base = 5 modifier = { factor = 2 strength_ratio = { tag = FROM ratio > 1 } } modifier = { factor = 2 strength_ratio = { tag = FROM ratio > 1.25 } } modifier = { factor = 2 strength_ratio = { tag = FROM ratio > 1.5 } } modifier = { factor = 0.5 OR = { FROM = { any_allied_country = { is_major = yes } } FROM = { is_major = yes } } } } allowed = { original_tag = DEN } target_trigger = { FROM = { NOT = { has_country_flag = DEN_sent_swedish_territory_demands } any_controlled_state = { is_core_of = SWE NOT = { is_controlled_by = SWE } } } } available = { FROM = { NOT = { has_war_with = ROOT is_in_faction_with = ROOT } } } visible = { has_completed_focus = DEN_secure_swedish_steel } cost = 75 complete_effect = { FROM = { country_event = { id = denmark_expansion_event.200 days = 2 random = 3 } hidden_effect = { set_country_flag = DEN_sent_swedish_territory_demands } } } } DEN_demand_finnish_territory = { priority = 38 icon = GFX_decision_eng_trade_unions_demand ai_will_do = { base = 5 modifier = { factor = 2 strength_ratio = { tag = FROM ratio > 1 } } modifier = { factor = 2 strength_ratio = { tag = FROM ratio > 1.25 } } modifier = { factor = 2 strength_ratio = { tag = FROM ratio > 1.5 } } modifier = { factor = 0.5 OR = { FROM = { any_allied_country = { is_major = yes } } FROM = { is_major = yes } } } } allowed = { original_tag = DEN } target_trigger = { FROM = { NOT = { has_country_flag = DEN_sent_finnish_territory_demands } any_controlled_state = { is_core_of = FIN NOT = { is_controlled_by = FIN } } } } available = { FROM = { NOT = { has_war_with = ROOT is_in_faction_with = ROOT } } } visible = { has_completed_focus = DEN_finish_off_finland } cost = 75 complete_effect = { FROM = { country_event = { id = denmark_expansion_event.200 days = 2 random = 3 } hidden_effect = { set_country_flag = DEN_sent_finnish_territory_demands } } } } DEN_demand_norwegian_territory = { priority = 38 icon = GFX_decision_eng_trade_unions_demand ai_will_do = { base = 5 modifier = { factor = 2 strength_ratio = { tag = FROM ratio > 1 } } modifier = { factor = 2 strength_ratio = { tag = FROM ratio > 1.25 } } modifier = { factor = 2 strength_ratio = { tag = FROM ratio > 1.5 } } modifier = { factor = 0.5 OR = { FROM = { any_allied_country = { is_major = yes } } FROM = { is_major = yes } } } } allowed = { original_tag = DEN } target_trigger = { FROM = { NOT = { has_country_flag = DEN_sent_norwegian_territory_demands } any_controlled_state = { is_core_of = NOR NOT = { is_controlled_by = NOR } } } } available = { FROM = { NOT = { has_war_with = ROOT is_in_faction_with = ROOT } } } visible = { has_completed_focus = DEN_reclaim_norway } cost = 75 complete_effect = { FROM = { country_event = { id = denmark_expansion_event.200 days = 2 random = 3 } hidden_effect = { set_country_flag = DEN_sent_norwegian_territory_demands } } } } } DEN_pan_scandinavianism_decisions_category = { DEN_rally_the_icelanders = { priority = 1 icon = GFX_decision_generic_nationalism ai_will_do = { base = 50 } available = { any_owned_state = { is_core_of = ICE } } visible = { has_completed_focus = DEN_pan_scandinavianism ICE = { any_core_state = { is_fully_controlled_by = ROOT NOT = { has_dynamic_modifier = { modifier = DEN_pan_scandinavianism_modifier }} } } } fire_only_once = no cost = DEN_decision_low_cost days_remove = 30 remove_effect = { every_state = { limit = { is_core_of = ICE is_fully_controlled_by = ROOT NOT = { has_dynamic_modifier = { modifier = DEN_pan_scandinavianism_modifier }} } add_extra_state_shared_building_slots = 1 add_dynamic_modifier = { modifier = DEN_pan_scandinavianism_modifier } } } } DEN_rally_the_swedes = { priority = 1 icon = GFX_decision_generic_nationalism ai_will_do = { base = 50 } available = { any_owned_state = { is_core_of = SWE } } visible = { has_completed_focus = DEN_pan_scandinavianism SWE = { any_core_state = { is_fully_controlled_by = ROOT NOT = { has_dynamic_modifier = { modifier = DEN_pan_scandinavianism_modifier }} } } } fire_only_once = no cost = DEN_decision_low_cost days_remove = 30 remove_effect = { every_state = { limit = { is_core_of = SWE is_fully_controlled_by = ROOT NOT = { has_dynamic_modifier = { modifier = DEN_pan_scandinavianism_modifier }} } add_extra_state_shared_building_slots = 1 add_compliance = 15 add_dynamic_modifier = { modifier = DEN_pan_scandinavianism_modifier } } } } DEN_rally_the_finnish = { priority = 1 icon = GFX_decision_generic_nationalism ai_will_do = { base = 50 } available = { any_owned_state = { is_core_of = FIN } } visible = { has_completed_focus = DEN_pan_scandinavianism FIN = { any_core_state = { is_fully_controlled_by = ROOT NOT = { has_dynamic_modifier = { modifier = DEN_pan_scandinavianism_modifier }} } } } fire_only_once = no cost = DEN_decision_low_cost days_remove = 30 remove_effect = { every_state = { limit = { is_core_of = FIN is_fully_controlled_by = ROOT NOT = { has_dynamic_modifier = { modifier = DEN_pan_scandinavianism_modifier }} } add_extra_state_shared_building_slots = 1 add_dynamic_modifier = { modifier = DEN_pan_scandinavianism_modifier } } } } DEN_rally_the_norwegians = { priority = 1 icon = GFX_decision_generic_nationalism ai_will_do = { base = 50 } available = { any_owned_state = { is_core_of = NOR } } visible = { has_completed_focus = DEN_pan_scandinavianism NOR = { any_core_state = { is_fully_controlled_by = ROOT NOT = { has_dynamic_modifier = { modifier = DEN_pan_scandinavianism_modifier }} } } } fire_only_once = no cost = DEN_decision_low_cost days_remove = 30 remove_effect = { every_state = { limit = { is_core_of = NOR is_fully_controlled_by = ROOT NOT = { has_dynamic_modifier = { modifier = DEN_pan_scandinavianism_modifier }} } add_extra_state_shared_building_slots = 1 add_dynamic_modifier = { modifier = DEN_pan_scandinavianism_modifier } } } } } DEN_swedish_steel_production_category = { DEN_swedish_steel_for_security = { priority = 1 icon = GFX_decision_steel ai_will_do = { base = 25 modifier = { factor = 2 has_opinion = { target = FROM value > 25 } } modifier = { factor = 2 has_opinion = { target = FROM value > 50 } } modifier = { factor = 0.5 has_opinion = { target = FROM value < 0 } } modifier = { factor = 2 FROM = { is_major = yes } } modifier = { factor = 5 strength_ratio = { tag = FROM ratio < 1 } } } available = { 666 = { is_fully_controlled_by = ROOT NOT = { has_dynamic_modifier = { modifier = SWE_blown_up_mines }} } is_subject = no } visible = { has_completed_focus = DEN_swedish_steel_production NOT = { has_country_flag = DEN_offers_swedish_steel_flag } } targets = { GER ENG SOV FRA USA } target_trigger = { FROM = { NOT = { has_war_with = ROOT has_country_flag = DEN_refused_swedish_steel } is_subject = no has_capitulated = no } } fire_only_once = no cost = 0 complete_effect = { FROM = { country_event = { id = denmark_expansion_event.300 days = 2 } } custom_effect_tooltip = if_they_accept_tt effect_tooltip = { FROM = { give_guarantee = ROOT } ROOT = { give_resource_rights = { receiver = FROM state = 666 } } add_offsite_building = { type = industrial_complex level = 2 } } hidden_effect = { set_country_flag = DEN_offers_swedish_steel_flag } } } } DEN_danish_faction_category = { DEN_northern_national_front_invitation = { priority = 1 icon = GFX_decision_generic_protection ai_will_do = { base = 25 modifier = { factor = 2 has_opinion = { target = FROM value > 25 } } modifier = { factor = 2 has_opinion = { target = FROM value > 50 } } modifier = { factor = 0.5 has_opinion = { target = FROM value < 0 } } modifier = { factor = 0.5 FROM = { is_major = yes } } modifier = { factor = 2 strength_ratio = { tag = FROM ratio > 1 } } } targets = { SWE NOR FIN EST LAT LIT SMI POL HOL } target_trigger = { FROM = { OR = { has_government = fascism has_government = neutrality } is_major = no is_in_faction = no is_subject = no NOT = { has_war_with = ROOT has_country_flag = DEN_received_alliance_offer } } } available = { NOT = { is_justifying_wargoal_against = ROOT has_wargoal_against = ROOT } } visible = { OR = { has_completed_focus = DEN_denmark_first has_country_flag = DEN_create_northern_national_front_flag } } fire_only_once = no cost = 25 complete_effect = { FROM = { country_event = { id = denmark_expansion_event.500 days = 3 } set_country_flag = DEN_received_alliance_offer } custom_effect_tooltip = if_they_accept_tt event_option_tooltip = denmark_expansion_event.500.a } } DEN_northern_security_pact_invitation = { priority = 1 icon = GFX_decision_generic_protection ai_will_do = { base = 25 modifier = { factor = 2 has_opinion = { target = FROM value > 25 } } modifier = { factor = 2 has_opinion = { target = FROM value > 50 } } modifier = { factor = 0.5 has_opinion = { target = FROM value < 0 } } modifier = { factor = 0.5 FROM = { is_major = yes } } modifier = { factor = 2 strength_ratio = { tag = FROM ratio > 1 } } } targets = { SWE NOR FIN EST LAT LIT SMI POL HOL } target_trigger = { FROM = { has_government = neutrality is_major = no is_in_faction = no is_subject = no NOT = { has_war_with = ROOT has_country_flag = DEN_received_alliance_offer } } } available = { NOT = { is_justifying_wargoal_against = ROOT has_wargoal_against = ROOT } } visible = { has_country_flag = DEN_can_create_faction_flag } fire_only_once = no cost = 50 complete_effect = { FROM = { country_event = { id = denmark_expansion_event.500 days = 3 } set_country_flag = DEN_received_alliance_offer } custom_effect_tooltip = if_they_accept_tt event_option_tooltip = denmark_expansion_event.501.a } } DEN_northern_technological_advancements_group_invite = { priority = 1 icon = GFX_decision_generic_research ai_will_do = { base = 25 modifier = { factor = 2 has_opinion = { target = FROM value > 25 } } modifier = { factor = 2 has_opinion = { target = FROM value > 50 } } modifier = { factor = 0.5 has_opinion = { target = FROM value < 0 } } } target_trigger = { FROM = { is_in_faction_with = ROOT NOT = { has_country_flag = DEN_has_tech_sharing_invitation_flag } } } available = { } visible = { has_tech_sharing_feature = yes OR = { has_completed_focus = DEN_denmark_first has_completed_focus = DEN_scandinavian_security has_country_flag = DEN_create_northern_national_front_flag } } fire_only_once = no cost = 25 complete_effect = { FROM = { country_event = { id = denmark_expansion_event.600 days = 7 } set_country_flag = DEN_has_tech_sharing_invitation_flag } custom_effect_tooltip = if_they_accept_tt effect_tooltip = { if = { limit = { NOT = { is_in_tech_sharing_group = DEN_northern_technological_advancements_group } } add_to_tech_sharing_group = DEN_northern_technological_advancements_group } FROM = { add_to_tech_sharing_group = DEN_northern_technological_advancements_group } } } } } DEN_influence_countries_category = { DEN_influence_countries_decision = { priority = 1 icon = GFX_decision_SWI_expand_covert_operations ai_will_do = { base = 25 modifier = { factor = 0.5 FROM = { is_major = yes } } modifier = { factor = 2 strength_ratio = { tag = FROM ratio > 1 } } modifier = { factor = 2 strength_ratio = { tag = FROM ratio > 1.25 } } modifier = { factor = 2 strength_ratio = { tag = FROM ratio > 1.5 } } } targets = { SWE NOR FIN EST LAT LIT SMI } target_trigger = { FROM = { is_subject = no OR = { is_in_faction = no is_in_faction_with = ROOT AND = { ROOT = { has_government = neutrality } FROM = { NOT = { has_government = neutrality } neutrality < 50 } } AND = { ROOT = { has_government = fascism } FROM = { NOT = { has_government = fascism } fascism < 50 } } } } } available = { } visible = { has_completed_focus = DEN_sway_the_nordics NOT = { has_country_flag = DEN_has_danish_influence_flag } } fire_only_once = no cost = 50 days_remove = 365 complete_effect = { hidden_effect = { FROM = { country_event = { id = denmark_expansion_event.700 hours = 2 } set_country_flag = DEN_has_danish_influence_flag } } effect_tooltip = { if = { limit = { has_government = neutrality } add_timed_idea = { idea = DEN_foreign_influence_neutrality_ns days = 365 } } else_if = { limit = { has_government = fascism } add_timed_idea = { idea = DEN_foreign_influence_fascism_ns days = 365 } } } } remove_effect = { FROM = { if = { limit = { has_country_flag = DEN_has_danish_influence_flag } clr_country_flag = DEN_has_danish_influence_flag } } } } } DEN_offer_protection_category = { DEN_offer_protection_decision = { priority = 1 icon = GFX_decision_generic_protection ai_will_do = { base = 25 modifier = { factor = 0.5 FROM = { is_major = yes } } modifier = { factor = 2 strength_ratio = { tag = FROM ratio > 1 } } modifier = { factor = 2 strength_ratio = { tag = FROM ratio > 1.25 } } modifier = { factor = 2 strength_ratio = { tag = FROM ratio > 1.5 } } } targets = { SWE NOR FIN EST LAT LIT SMI } target_trigger = { FROM = { is_subject = no is_major = no OR = { is_in_faction = no is_in_faction_with = ROOT } } } available = { FROM = { has_opinion = { target = ROOT value > 49 } has_government = ROOT } } visible = { has_completed_focus = DEN_sway_the_nordics } fire_only_once = yes cost = 50 complete_effect = { FROM = { country_event = { id = denmark_expansion_event.800 hours = 3 } } custom_effect_tooltip = if_they_accept_tt effect_tooltip = { ROOT = { puppet = FROM } } } } } DEN_return_occupied_territory_category = { # Request the Return of the Faroes DEN_request_the_return_of_the_faroes = { icon = GFX_decision_generic_operation ai_will_do = { base = 100 } allowed = { tag = DEN } available = { 337 = { is_controlled_by = ENG } is_subject = no NOT = { has_war_with = ENG any_allied_country = { has_war_with = ENG } } } cost = 0 fire_only_once = yes ai_will_do = { base = 10 modifier = { factor = 1.5 DEN = { #Denmark controls mainland Denmark controls_state = 37 controls_state = 99 controls_state = 911 controls_state = 912 } } modifier = { factor = 5 has_war = no } modifier = { factor = 2 is_in_faction_with = ENG } modifier = { factor = 2 ENG = { has_government = ROOT } } } visible = { tag = DEN 337 = { is_controlled_by = ENG } has_dlc = "Arms Against Tyranny" has_global_flag = ENG_occupied_DEN_faroes } complete_effect = { ENG = { country_event = { id = AAT_USA_events.03 days = 2 } } } } DEN_request_greenland_back = { icon = generic_operation allowed = { tag = DEN } available = { 101 = { is_owned_and_controlled_by = USA } is_subject = no NOT = { has_war_with = USA any_allied_country = { has_war_with = USA } } #OR = { # is_in_faction_with = ROOT # has_government = ROOT # AND = { # USA = { has_government = democratic } # has_government = democratic # has_government = neutrality # } # AND = { # USA = { has_government = neutrality } # has_government = democratic # has_government = neutrality # } #} } cost = 0 fire_only_once = yes ai_will_do = { base = 10 modifier = { factor = 1.5 DEN = { #Denmark controls mainland Denmark controls_state = 37 controls_state = 99 controls_state = 911 controls_state = 912 } } modifier = { factor = 5 has_war = no } modifier = { factor = 2 is_in_faction_with = USA } modifier = { factor = 2 USA = { has_government = ROOT } } } visible = { tag = DEN has_global_flag = USA_occupied_DEN_greenland has_dlc = "Arms Against Tyranny" } complete_effect = { USA = { country_event = { id = AAT_USA_events.05 days = 2 } } custom_effect_tooltip = if_they_accept_tt effect_tooltip = { DEN = { transfer_state = 101 } } } } }