bankruptcy_decisions = { #AI Logic for bailouts: #Always use cheap loans from IMF first, only ask for bailout if interest > 15% #First ask bailout from IMF, then neighbours, then 2nd influencer, then 1st influencer to do the least damage #Default if interest > 25% and not at war bankruptcy_cheap_loans_from_imf = { icon = GFX_decision_bancru_imf_button cost = 50 visible = { NOT = { OR = { has_active_mission = cheap_loan_from_the_imf_mission has_country_flag = paused_debt_repayment } } } available = { is_full_state = yes has_added_tension_amount < 5 NOT = { OR = { has_idea = corruption_level_10 has_idea = corruption_level_09 has_idea = corruption_level_08 } } gdp_per_capita_greater_than_5 = yes interest_rate_lower_than_15 = yes custom_trigger_tooltip = { tooltip = potential_expenses_higher_than_potential_income_tt check_variable = { potential_expense > potential_income } } } days_re_enable = 365 complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision bankruptcy_cheap_loans_from_imf" custom_effect_tooltip = cheap_loans_from_imf_tt ingame_update_setup = yes activate_mission = cheap_loan_from_the_imf_mission } ai_will_do = { base = 1000 modifier = { factor = 0 has_political_power < 0 } } } bankruptcy_cheap_loans_from_african_investment_fund = { allowed = { is_african_nation = yes } icon = GFX_decision_bancru_ask_button available = { is_full_state = yes has_added_tension_amount < 5 has_completed_focus = AFRICAN_UNION_shared_focus_create_monetary_fund interest_rate_lower_than_15 = yes } modifier = { interest_rate_multiplier_modifier = -3 } days_remove = 360 days_re_enable = 180 complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision bankruptcy_cheap_loans_from_african_investment_fund" if = { limit = { is_ai = yes } add_political_power = -25 } else = { add_political_power = -50 } set_temp_variable = { debt_addition = debt } multiply_temp_variable = { debt_addition = 0.05 } round_temp_variable = debt_addition add_to_variable = { debt = debt_addition } custom_effect_tooltip = cheap_loans_from_amf_tt ingame_update_setup = yes } ai_will_do = { base = 1100 modifier = { factor = 0 has_political_power < 0 } } } bankruptcy_seek_bailout_from_biggest_influencer = { icon = GFX_decision_bancru_ask_button visible = { check_variable = { influence_array^0 > 0 } NOT = { check_variable = { influence_array^0 > ROOT.id } } } available = { is_subject = no custom_trigger_tooltip = { tooltip = has_foreign_influence check_variable = { influence_array^0 > 0 } } interest_rate_higher_than_10 = yes NOT = { has_war_with = var:influence_array^0 } if = { limit = { is_ai = no } treasury_lower_than_5 = yes } NOT = { has_decision = bankruptcy_seek_bailout_from_second_biggest_influencer } NOT = { has_decision = bankruptcy_seek_bailout_from_neighbour } NOT = { has_decision = bankruptcy_seek_bailout_from_imf } } days_re_enable = 360 days_remove = 7 complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision bankruptcy_seek_bailout_from_biggest_influencer" if = { limit = { is_ai = yes } add_political_power = -50 } else = { add_political_power = -100 } set_variable = { debt_bailout = { value = debt multiply = 0.20 clamp = { min = 1 max = 10000000 } round = yes } } custom_effect_tooltip = bankruptcy_seek_bailout_from_biggest_influencer_tt var:influence_array^0 = { country_event = { id = bankruptcy.1 hours = 3 } } } ai_will_do = { base = 600 modifier = { factor = 0 check_variable = { interest_rate < 15 } } modifier = { factor = 0 has_political_power < 0 } } } bankruptcy_seek_bailout_from_second_biggest_influencer = { icon = GFX_decision_bancru_ask_button visible = { check_variable = { influence_array^0 > 0 } NOT = { check_variable = { influence_array^1 > ROOT.id } } } available = { is_subject = no custom_trigger_tooltip = { tooltip = has_foreign_influence check_variable = { influence_array^1 > 0 } } interest_rate_higher_than_10 = yes NOT = { has_war_with = var:influence_array^1 } if = { limit = { is_ai = no } treasury_lower_than_5 = yes } NOT = { has_decision = bankruptcy_seek_bailout_from_biggest_influencer } NOT = { has_decision = bankruptcy_seek_bailout_from_neighbour } NOT = { has_decision = bankruptcy_seek_bailout_from_imf } } days_re_enable = 360 days_remove = 7 complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision bankruptcy_seek_bailout_from_second_biggest_influencer" if = { limit = { is_ai = yes } add_political_power = -50 } else = { add_political_power = -100 } set_variable = { debt_bailout = { value = debt multiply = 0.15 clamp = { min = 1 max = 10000000 } round = yes } } custom_effect_tooltip = bankruptcy_seek_bailout_from_second_biggest_influencer_tt var:influence_array^1 = { country_event = { id = bankruptcy.2 hours = 3 } } } ai_will_do = { base = 700 modifier = { factor = 0 check_variable = { interest_rate < 15 } } modifier = { factor = 0 has_political_power < 0 } } } bankruptcy_seek_bailout_from_neighbour = { icon = GFX_decision_bancru_ask_button target_array = neighbors target_trigger = { FROM = { is_neighbor_of = ROOT #We don't want duplicates NOT = { original_tag = var:ROOT.influence_array^0 } NOT = { original_tag = var:ROOT.influence_array^1 } check_variable = { FROM.gdp_total > ROOT.gdp_total } is_full_state = yes } } available = { is_subject = no FROM = { NOT = { has_war_with = ROOT } has_opinion = { target = ROOT value > 0 } } if = { limit = { is_ai = no } treasury_lower_than_5 = yes } NOT = { has_decision = bankruptcy_seek_bailout_from_biggest_influencer } NOT = { has_decision = bankruptcy_seek_bailout_from_second_biggest_influencer } NOT = { has_decision = bankruptcy_seek_bailout_from_neighbour } NOT = { has_decision = bankruptcy_seek_bailout_from_imf } } days_re_enable = 360 days_remove = 7 complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision bankruptcy_seek_bailout_from_neighbour" if = { limit = { is_ai = yes } add_political_power = -50 } else = { add_political_power = -100 } set_variable = { debt_bailout = { value = debt multiply = 0.10 clamp = { min = 1 max = 10000000 } round = yes } } custom_effect_tooltip = bankruptcy_seek_bailout_from_neighbour_tt FROM = { country_event = { id = bankruptcy.3 hours = 3 } } } ai_will_do = { base = 800 modifier = { factor = 0 OR = { check_variable = { interest_rate < 15 } has_political_power < 0 } } } } bankruptcy_seek_bailout_from_overlord = { visible = { is_subject = yes } icon = GFX_decision_bancru_ask_overlord_button available = { if = { limit = { is_ai = no } treasury_lower_than_5 = yes } is_subject = yes NOT = { has_decision = bankruptcy_seek_bailout_from_imf } overlord = { NOT = { has_dynamic_modifier = { modifier = very_high_interest_country_modifiers } } } } days_re_enable = 360 days_remove = 7 complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision bankruptcy_seek_bailout_from_overlord" if = { limit = { is_ai = yes } add_political_power = -50 } else = { add_political_power = -100 } set_variable = { debt_bailout = { value = debt multiply = 0.50 clamp = { min = 1 max = 10000000 } round = yes } } custom_effect_tooltip = bankruptcy_seek_bailout_from_overlord_tt overlord = { country_event = { id = bankruptcy.5 hours = 3 } } } ai_will_do = { base = 800 modifier = { factor = 0 OR = { check_variable = { interest_rate < 15 } has_political_power < 0 } } } } bankruptcy_seek_bailout_from_imf = { icon = GFX_decision_bancru_ass_imf_button available = { is_full_state = yes has_added_tension_amount < 5 NOT = { has_idea = IMF_debt_relief_received } NOT = { has_idea = IMF_debt_relief_rejected } if = { limit = { is_ai = no } treasury_lower_than_5 = yes } if = { limit = { tag = ETH } NOT = { has_idea = ETH_idea_refactored_debt } } NOT = { has_decision = bankruptcy_seek_bailout_from_biggest_influencer } NOT = { has_decision = bankruptcy_seek_bailout_from_second_biggest_influencer } NOT = { has_decision = bankruptcy_seek_bailout_from_neighbour } NOT = { has_decision = bankruptcy_seek_bailout_from_overlord } } fixed_random_seed = no days_re_enable = 180 days_remove = 7 cost = 50 complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision bankruptcy_seek_bailout_from_imf" set_variable = { debt_bailout = { value = debt multiply = 0.10 clamp = { min = 1 max = 10000000 } round = yes } } custom_effect_tooltip = bankruptcy_seek_bailout_from_imf_tt if = { limit = { check_variable = { gdp_per_capita < 5 } } custom_effect_tooltip = bankruptcy_seek_bailout_from_imf_low_gdp_per_capita_tt } hidden_effect = { random_list = { 10 = { modifier = { factor = 0 OR = { has_idea = bureau_01 AND = { check_variable = { gdp_per_capita < 5 } has_idea = bureau_02 } } } modifier = { factor = 1.3 has_idea = bureau_03 } modifier = { factor = 1.6 has_idea = bureau_04 } modifier = { factor = 2 has_idea = bureau_05 } country_event = bankruptcy.100 } 10 = { modifier = { factor = 0 OR = { has_idea = defence_01 AND = { check_variable = { gdp_per_capita < 5 } has_idea = defence_02 } } } modifier = { factor = 1.14 has_idea = defence_03 } modifier = { factor = 1.28 has_idea = defence_04 } modifier = { factor = 1.42 has_idea = defence_05 } modifier = { factor = 1.56 has_idea = defence_06 } modifier = { factor = 1.70 has_idea = defence_07 } modifier = { factor = 1.84 has_idea = defence_08 } modifier = { factor = 2 has_idea = defence_09 } country_event = bankruptcy.101 } 10 = { modifier = { factor = 0 OR = { has_idea = police_01 AND = { check_variable = { gdp_per_capita < 5 } has_idea = police_02 } } } modifier = { factor = 1.3 has_idea = police_03 } modifier = { factor = 1.6 has_idea = police_04 } modifier = { factor = 2 has_idea = police_05 } country_event = bankruptcy.102 } 10 = { modifier = { factor = 0 OR = { has_idea = edu_01 AND = { check_variable = { gdp_per_capita < 5 } has_idea = edu_02 } } } modifier = { factor = 1.3 has_idea = edu_03 } modifier = { factor = 1.6 has_idea = edu_04 } modifier = { factor = 2 has_idea = edu_05 } country_event = bankruptcy.103 } 10 = { modifier = { factor = 0 OR = { has_idea = health_01 AND = { check_variable = { gdp_per_capita < 5 } has_idea = health_02 } } } modifier = { factor = 1.25 has_idea = health_03 } modifier = { factor = 1.5 has_idea = health_04 } modifier = { factor = 1.75 has_idea = health_05 } modifier = { factor = 2 has_idea = health_06 } country_event = bankruptcy.104 } 10 = { modifier = { factor = 0 OR = { has_idea = social_01 AND = { check_variable = { gdp_per_capita < 5 } has_idea = social_02 } } } modifier = { factor = 1.25 has_idea = social_03 } modifier = { factor = 1.5 has_idea = social_04 } modifier = { factor = 1.75 has_idea = social_05 } modifier = { factor = 2 has_idea = social_06 } country_event = bankruptcy.105 } 10 = { modifier = { factor = 0 OR = { has_idea = globalized_trade_economy AND = { oil < 1 aluminium < 1 rubber < 1 tungsten < 1 steel < 1 chromium < 1 } } } modifier = { factor = 1.25 has_idea = mixed_economy } modifier = { factor = 1.5 has_idea = semi_consumption_economy } modifier = { factor = 1.75 has_idea = consumption_economy } modifier = { factor = 2 has_idea = md_closed_economy } country_event = bankruptcy.106 } 1 = { modifier = { factor = 2 has_idea = corruption_level_02 } modifier = { factor = 3 has_idea = corruption_level_03 } modifier = { factor = 4 has_idea = corruption_level_04 } modifier = { factor = 5 has_idea = corruption_level_05 } modifier = { factor = 6 has_idea = corruption_level_06 } modifier = { factor = 7 has_idea = corruption_level_07 } modifier = { factor = 8 has_idea = corruption_level_08 } modifier = { factor = 9 has_idea = corruption_level_09 } modifier = { factor = 10 has_idea = corruption_level_10 } country_event = bankruptcy.107 } 10 = { modifier = { factor = 1.5 OR = { has_idea = landowners has_idea = farmers } } modifier = { factor = 2 has_idea = landowners has_idea = farmers } country_event = bankruptcy.108 } 10 = { modifier = { factor = 2 has_idea = international_bankers } country_event = bankruptcy.109 } 10 = { modifier = { factor = 0 NOT = { OR = { has_idea = the_clergy has_idea = the_priesthood has_idea = the_ulema has_idea = wahabi_ulema } } } country_event = bankruptcy.110 } 10 = { modifier = { factor = 0 OR = { num_of_military_factories < 1 AND = { check_variable = { gdp_per_capita < 5 } all_owned_state = { arms_factory < 2 } } } } modifier = { factor = 1.5 check_variable = { military_factory_total_percent > 0.15 } } modifier = { factor = 1.3 check_variable = { military_factory_total_percent > 0.25 } } country_event = bankruptcy.111 } 10 = { modifier = { factor = 0 OR = { num_of_naval_factories < 1 AND = { check_variable = { gdp_per_capita < 5 } all_owned_state = { dockyard < 2 } } } } modifier = { factor = 1.5 check_variable = { naval_factory_total_percent > 0.15 } } modifier = { factor = 1.3 check_variable = { naval_factory_total_percent > 0.25 } } country_event = bankruptcy.112 } 10 = { modifier = { factor = 0 OR = { AND = { check_variable = { population_tax_rate > 45 } check_variable = { corporate_tax_rate > 45 } } AND = { check_variable = { gdp_per_capita < 5 } check_variable = { population_tax_rate > 40 } check_variable = { corporate_tax_rate > 40 } } } } modifier = { factor = 1.5 OR = { check_variable = { population_tax_rate < 20 } check_variable = { corporate_tax_rate < 20 } } } modifier = { factor = 1.3 OR = { check_variable = { population_tax_rate < 10 } check_variable = { corporate_tax_rate < 10 } } } country_event = bankruptcy.113 } 10 = { modifier = { factor = 0 check_variable = { int_investments < 1 } } modifier = { factor = 2 check_variable = { int_investments > debt } } country_event = bankruptcy.114 } 10 = { modifier = { factor = 0 OR = { num_of_civilian_factories < 2 AND = { check_variable = { gdp_per_capita < 5 } all_owned_state = { industrial_complex < 2 } } } } country_event = bankruptcy.115 } } } } ai_will_do = { base = 900 modifier = { factor = 0 check_variable = { interest_rate < 15 } } modifier = { factor = 0 has_political_power < 0 } } } bankruptcy_seek_bailout_from_african_monetary_fund = { allowed = { is_african_nation = yes } icon = GFX_decision_bancru_ask_button available = { is_full_state = yes has_added_tension_amount < 5 has_completed_focus = AFRICAN_UNION_shared_focus_create_monetary_fund if = { limit = { is_ai = no } treasury_lower_than_5 = yes } if = { limit = { original_tag = ETH } NOT = { has_idea = ETH_idea_refactored_debt } } NOT = { has_decision = bankruptcy_seek_bailout_from_biggest_influencer } NOT = { has_decision = bankruptcy_seek_bailout_from_second_biggest_influencer } NOT = { has_decision = bankruptcy_seek_bailout_from_neighbour } NOT = { has_decision = bankruptcy_seek_bailout_from_overlord } } fixed_random_seed = no days_re_enable = 360 days_remove = 7 cost = 100 complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision bankruptcy_seek_bailout_from_african_monetary_fund" set_temp_variable = { debt_change = { value = debt multiply = -0.10 clamp = { min = -100 max = 0 } } } modify_debt_effect = yes # Persist absolute amount for display in tooltip (temp vars unreliable in tooltip render) set_variable = { debt_bailout = debt_change } multiply_variable = { debt_bailout = -1 } round_variable = debt_bailout custom_effect_tooltip = bankruptcy_seek_bailout_from_amf_tt clear_variable = debt_bailout random_other_country = { limit = { has_idea = AU_member OR = { has_idea = regional_power has_idea = large_power has_idea = great_power has_idea = super_power } } set_temp_variable = { tag_index = THIS } } set_temp_variable = { influence_target = ROOT } set_temp_variable = { percent_change = 10 } change_influence_percentage = yes } ai_will_do = { base = 950 modifier = { factor = 0 check_variable = { interest_rate < 15 } } modifier = { factor = 0 has_political_power < 0 } } } bankruptcy_incoming_collapse = { icon = GFX_decision_bancru_collapse_button available = { custom_trigger_tooltip = { tooltip = bankruptcy_incoming_collapse_complete_trigger check_variable = { debt_rate < potential_income } } } activation = { check_variable = { debt_rate > potential_income } has_war = no } is_good = no days_mission_timeout = 360 timeout_effect = { log = "[GetDateText]: [Root.GetName]: Decision bankruptcy_incoming_collapse" set_temp_variable = { party_popularity_increase = -0.10 } set_temp_variable = { temp_outlook_increase = -0.10 } change_relative_party_popularity = yes if = { limit = { has_elections = yes } country_event = bankruptcy.10 } if = { limit = { has_elections = no } country_event = bankruptcy.12 } if = { limit = { has_war = no } for_each_scope_loop = { array = subjects ROOT = { end_puppet = PREV } } } } complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision bankruptcy_incoming_collapse" add_political_power = 150 } } bankruptcy_default_on_debts = { visible = { interest_rate_higher_than_15 = yes } icon = GFX_decision_bancru_depts_button available = { is_subject = no interest_rate_higher_than_15 = yes if = { limit = { is_ai = no } treasury_lower_than_5 = yes } } complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision bankruptcy_default_on_debts" # Cartels if = { limit = { has_dynamic_modifier = { modifier = cartel_penalties } } set_temp_variable = { cart_strength_change = 10 } set_temp_variable = { cart_influence_change = 20 } modify_treasury_effect = yes } set_variable = { debt_default_left = debt } multiply_variable = { debt_default_left = 0.5 } round_variable = debt_default_left set_variable = { debt_default_total = debt_default_left } multiply_variable = { debt = 0.25 } depression = yes custom_effect_tooltip = bankruptcy_default_on_debts_tt activate_mission = debt_default_main_mission set_variable = { old_gdp = gdp_total } if = { limit = { has_war = no } for_each_scope_loop = { array = subjects ROOT = { end_puppet = PREV } } } } ai_will_do = { base = 1000 modifier = { factor = 0 OR = { check_variable = { interest_rate < 25 } has_war = yes } } } } cheap_loan_from_the_imf_mission = { fixed_random_seed = no icon = GFX_decision_bancru_collapse_button available = { custom_trigger_tooltip = { tooltip = potential_expenses_lower_than_potential_income_tt check_variable = { potential_expense < potential_income } } } activation = { always = no } is_good = no days_mission_timeout = 365 timeout_effect = { log = "[GetDateText]: [Root.GetName]: Decision cheap_loan_from_the_imf_mission" set_temp_variable = { party_popularity_increase = -0.05 } set_temp_variable = { temp_outlook_increase = -0.05 } change_relative_party_popularity = yes random_owned_state = { limit = { OR = { industrial_complex > 1 arms_factory > 1 offices > 1 } } random_list = { 33 = { modifier = { factor = 0 industrial_complex < 1 } remove_building = { type = industrial_complex level = 1 } } 33 = { modifier = { factor = 0 arms_factory < 1 } remove_building = { type = arms_factory level = 1 } } 33 = { modifier = { factor = 0 offices < 1 } remove_building = { type = offices level = 1 } } } } activate_mission = cheap_loan_from_the_imf_mission if = { limit = { has_idea = IMF_failed_to_balance_budget } hidden_effect = { remove_ideas = IMF_failed_to_balance_budget } add_timed_idea = { idea = IMF_failed_to_balance_budget_1 days = 365 } } else_if = { limit = { has_idea = IMF_failed_to_balance_budget_1 } hidden_effect = { remove_ideas = IMF_failed_to_balance_budget_1 } add_timed_idea = { idea = IMF_failed_to_balance_budget_2 days = 365 } } else_if = { limit = { has_idea = IMF_failed_to_balance_budget_2 } modify_timed_idea = { idea = IMF_failed_to_balance_budget_2 days = 365 } } else = { add_timed_idea = { idea = IMF_failed_to_balance_budget days = 365 } } } complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision cheap_loan_from_the_imf_mission" add_political_power = 150 set_temp_variable = { party_popularity_increase = 0.05 } set_temp_variable = { temp_outlook_increase = 0.05 } change_relative_party_popularity = yes } } } debt_default_decisions = { #AI Logic for default: #1. Pay from treasury as much as you can #2. Political concessions to IMF #3. Sell factories unless GDP is < 80% of pre-default GDP (sell order NIC -> MIC -> Offices -> CIC) #4. Political concessions to 2nd and 1st influencer #Default if interest > 25% and not at war debt_default_main_mission = { icon = GFX_decision_bancru_collapse_button available = { custom_trigger_tooltip = { tooltip = debt_default_main_mission_complete_trigger check_variable = { debt_default_left < 1 } } } activation = { always = no } is_good = no selectable_mission = no days_mission_timeout = 360 timeout_effect = { log = "[GetDateText]: [Root.GetName]: Decision debt_default_main_mission" if = { limit = { is_subject = no } if = { limit = { check_variable = { influence_array^0 > 0 } } if = { limit = { var:influence_array^0 = { bankruptcy_default_intervention_trigger = yes } } var:influence_array^0 = { country_event = { id = bankruptcy.13 hours = 6 } } } } if = { limit = { check_variable = { influence_array^1 > 0 } } if = { limit = { var:influence_array^1 = { bankruptcy_default_intervention_trigger = yes } } var:influence_array^1 = { country_event = { id = bankruptcy.13 hours = 6 } } } } if = { limit = { check_variable = { influence_array^2 > 0 } } if = { limit = { var:influence_array^2 = { bankruptcy_default_intervention_trigger = yes } } var:influence_array^2 = { country_event = { id = bankruptcy.13 hours = 6 } } } } if = { limit = { check_variable = { influence_array^3 > 0 } } if = { limit = { var:influence_array^3 = { bankruptcy_default_intervention_trigger = yes } } var:influence_array^3 = { country_event = { id = bankruptcy.13 hours = 6 } } } } if = { limit = { check_variable = { influence_array^4 > 0 } } if = { limit = { var:influence_array^4 = { bankruptcy_default_intervention_trigger = yes } } var:influence_array^4 = { country_event = { id = bankruptcy.13 hours = 6 } } } } if = { limit = { check_variable = { influence_array^5 > 0 } } if = { limit = { var:influence_array^5 = { bankruptcy_default_intervention_trigger = yes } } var:influence_array^5 = { country_event = { id = bankruptcy.13 hours = 6 } } } } if = { limit = { check_variable = { influence_array^6 > 0 } } if = { limit = { var:influence_array^6 = { bankruptcy_default_intervention_trigger = yes } } var:influence_array^6 = { country_event = { id = bankruptcy.13 hours = 6 } } } } } else = { OVERLORD = { set_variable = { debt_from_subject = debt_default_left } multiply_variable = { debt_from_subject = 0.50 } country_event = { id = bankruptcy.14 hours = 6 } effect_tooltip = { ROOT = { add_autonomy_score = { value = -1000 } } } } } clear_variable = debt_default_left clear_variable = debt_default_total custom_effect_tooltip = debt_default_cancel_int_investments set_variable = { int_investments = 0 } set_variable = { treasury = 0 } clear_variable = old_gdp } complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision debt_default_main_mission" clear_variable = debt_default_left clear_variable = debt_default_total add_timed_idea = { idea = debt_default_ecomomic_boom days = 360 } clear_variable = old_gdp } } debt_default_pay_10_from_treasury = { icon = GFX_decision_bancru_ask_button visible = { has_active_mission = debt_default_main_mission check_variable = { gdp_total < 100 } } available = { interest_rate_lower_than_5 = yes } complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision debt_default_pay_10_from_treasury" custom_effect_tooltip = debt_default_pay_10_from_treasury_tt set_temp_variable = { treasury_change = -10 } modify_treasury_effect = yes subtract_from_variable = { debt_default_left = 10 } clamp_variable = { var = debt_default_left min = 0 } } ai_will_do = { base = 1000 } } debt_default_pay_50_from_treasury = { icon = GFX_decision_bancru_ask_button visible = { has_active_mission = debt_default_main_mission check_variable = { gdp_total > 100 } } available = { interest_rate_lower_than_5 = yes } complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision debt_default_pay_50_from_treasury" custom_effect_tooltip = debt_default_pay_50_from_treasury_tt set_temp_variable = { treasury_change = -50 } modify_treasury_effect = yes subtract_from_variable = { debt_default_left = 50 } clamp_variable = { var = debt_default_left min = 0 } } ai_will_do = { base = 1000 } } debt_default_concessions_to_the_imf = { icon = GFX_decision_bancru_ass_imf_button visible = { has_active_mission = debt_default_main_mission } days_re_enable = 180 cost = 25 complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision debt_default_concessions_to_the_imf" set_temp_variable = { percent_change = -10 } change_domestic_influence_percentage = yes set_temp_variable = { debt_default_reduction = debt_default_total } multiply_temp_variable = { debt_default_reduction = 0.25 } round_temp_variable = debt_default_reduction custom_effect_tooltip = debt_default_concessions_to_the_imf_tt subtract_from_variable = { debt_default_left = debt_default_reduction } clamp_variable = { var = debt_default_left min = 0 } if = { limit = { NOT = { OR = { has_idea = bureau_01 has_idea = bureau_02 } } } block_bureau_increase = yes decrease_centralization_2 = yes } if = { limit = { NOT = { OR = { has_idea = defence_00 has_idea = defence_01 has_idea = defence_02 } } } block_defence_increase = yes decrease_military_spending_2 = yes } if = { limit = { NOT = { OR = { has_idea = police_01 has_idea = police_02 } } } block_police_increase = yes decrease_policing_budget_2 = yes } if = { limit = { NOT = { OR = { has_idea = edu_01 has_idea = edu_02 } } } block_edu_increase = yes decrease_education_budget_2 = yes } if = { limit = { NOT = { OR = { has_idea = health_01 has_idea = health_02 } } } block_health_increase = yes decrease_healthcare_budget_2 = yes } if = { limit = { NOT = { OR = { has_idea = social_01 has_idea = social_02 } } } block_social_increase = yes decrease_social_spending_2 = yes } } ai_will_do = { base = 900 } } debt_default_political_concessions_to_biggest_influencer = { icon = GFX_decision_bancru_ask_overlord_button visible = { has_active_mission = debt_default_main_mission } available = { custom_trigger_tooltip = { tooltip = has_foreign_influence check_variable = { influence_array^0 > 0 } } NOT = { has_war_with = var:influence_array^0 } } days_re_enable = 400 cost = 25 complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision debt_default_political_concessions_to_biggest_influencer" var:influence_array^0 = { set_temp_variable = { percent_change = 15 } set_temp_variable = { tag_index = THIS.id } set_temp_variable = { influence_target = ROOT.id } change_influence_percentage = yes set_country_flag = { flag = political_concessions_from@ROOT days = 400 value = 1 } } set_temp_variable = { debt_default_reduction = debt_default_total } multiply_temp_variable = { debt_default_reduction = 0.4 } round_temp_variable = debt_default_reduction custom_effect_tooltip = debt_default_political_concessions_to_biggest_influencer_tt subtract_from_variable = { debt_default_left = debt_default_reduction } clamp_variable = { var = debt_default_left min = 0 } } ai_will_do = { base = 600 modifier = { factor = 0 check_expr = { value = old_gdp multiply = 0.8 less_than = { value = gdp_total } } OR = { num_of_civilian_factories > 0 num_of_military_factories > 0 num_of_naval_factories > 0 check_variable = { office_park_total > 0 } } } } } debt_default_political_concessions_to_second_biggest_influencer = { icon = GFX_decision_bancru_ask_overlord_button visible = { has_active_mission = debt_default_main_mission } available = { custom_trigger_tooltip = { tooltip = has_foreign_influence check_variable = { influence_array^1 > 0 } } NOT = { has_war_with = var:influence_array^1 } } days_re_enable = 400 cost = 25 complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision debt_default_political_concessions_to_second_biggest_influencer" var:influence_array^1 = { set_temp_variable = { percent_change = 10 } set_temp_variable = { tag_index = THIS.id } set_temp_variable = { influence_target = ROOT.id } change_influence_percentage = yes set_country_flag = { flag = political_concessions_from@ROOT days = 400 value = 1 } } set_temp_variable = { debt_default_reduction = debt_default_total } multiply_temp_variable = { debt_default_reduction = 0.4 } round_temp_variable = debt_default_reduction custom_effect_tooltip = debt_default_political_concessions_to_biggest_influencer_tt subtract_from_variable = { debt_default_left = debt_default_reduction } clamp_variable = { var = debt_default_left min = 0 } } ai_will_do = { base = 700 modifier = { factor = 0 check_expr = { value = old_gdp multiply = 0.8 less_than = { value = gdp_total } } OR = { num_of_civilian_factories > 0 num_of_military_factories > 0 num_of_naval_factories > 0 check_variable = { office_park_total > 0 } } } } } debt_default_sell_civilian_factories = { icon = GFX_decision_bancru_ask_button visible = { has_active_mission = debt_default_main_mission } available = { num_of_civilian_factories > 0 NOT = { has_decision = debt_default_dismantle_military_factories } NOT = { has_decision = debt_default_scrap_dockyard } NOT = { has_decision = debt_default_cut_down_government_services } } days_remove = 5 cost = 25 remove_effect = { log = "[GetDateText]: [Root.GetName]: Decision debt_default_sell_civilian_factories" custom_effect_tooltip = sell_10_billion_factory subtract_from_variable = { debt_default_left = 10 } random_owned_state = { limit = { industrial_complex > 0 } remove_building = { type = industrial_complex level = 1 } } ingame_update_setup = yes } ai_will_do = { base = 800 modifier = { factor = 0 check_expr = { value = old_gdp multiply = 0.8 less_than = { value = gdp_total } } } } } debt_default_dismantle_military_factories = { icon = GFX_decision_bancru_ask_button visible = { has_active_mission = debt_default_main_mission } available = { any_owned_state = { arms_factory > 0 } NOT = { has_decision = debt_default_sell_civilian_factories } NOT = { has_decision = debt_default_scrap_dockyard } NOT = { has_decision = debt_default_cut_down_government_services } } days_remove = 5 cost = 25 remove_effect = { log = "[GetDateText]: [Root.GetName]: Decision debt_default_dismantle_military_factories" custom_effect_tooltip = sell_10_billion_factory subtract_from_variable = { debt_default_left = 10 } random_owned_state = { limit = { arms_factory > 0 } remove_building = { type = arms_factory level = 1 } } ingame_update_setup = yes } ai_will_do = { base = 840 modifier = { factor = 0 check_expr = { value = gdp_total multiply = 0.80 less_than = { value = gdp_total } } } } } debt_default_scrap_dockyard = { icon = GFX_decision_bancru_ask_button visible = { has_active_mission = debt_default_main_mission } available = { num_of_naval_factories > 0 NOT = { has_decision = debt_default_sell_civilian_factories } NOT = { has_decision = debt_default_dismantle_military_factories } NOT = { has_decision = debt_default_cut_down_government_services } } days_remove = 5 cost = 25 remove_effect = { log = "[GetDateText]: [Root.GetName]: Decision debt_default_scrap_dockyard" custom_effect_tooltip = sell_10_billion_factory subtract_from_variable = { debt_default_left = 10 } random_owned_state = { limit = { dockyard > 0 } remove_building = { type = dockyard level = 1 } } ingame_update_setup = yes } ai_will_do = { base = 850 modifier = { factor = 0 check_expr = { value = gdp_total multiply = 0.80 less_than = { value = gdp_total } } } } } debt_default_cut_down_government_services = { icon = GFX_decision_bancru_ask_button visible = { has_active_mission = debt_default_main_mission } available = { custom_trigger_tooltip = { tooltip = debt_default_has_office_park_tt check_variable = { office_park_total > 0 } } NOT = { has_decision = debt_default_sell_civilian_factories } NOT = { has_decision = debt_default_dismantle_military_factories } NOT = { has_decision = debt_default_scrap_dockyard } } days_remove = 5 cost = 25 remove_effect = { log = "[GetDateText]: [Root.GetName]: Decision debt_default_cut_down_government_services" custom_effect_tooltip = sell_15_billion_factory subtract_from_variable = { debt_default_left = 10 } random_owned_state = { limit = { offices > 0 } remove_building = { type = offices level = 1 } } ingame_update_setup = yes } ai_will_do = { base = 810 modifier = { factor = 0 check_expr = { value = old_gdp multiply = 0.8 less_than = { value = gdp_total } } } } } }