add_namespace = econvent add_namespace = extended_econevent add_namespace = News_bankruptcy add_namespace = diplo_action_tools add_namespace = bankruptcy ### Contents ### # 1-5 Financial Crisis / Economic Collapse Chain # 6-> Smaller Adjustments # ?-> Droughts and poor Global South specific economic events ### Planned Additions ###f # IMF / BRICS-Bank conditional assistance # ASEAN: Access ASEAN+3 Crisis funds feature # EU: Ask for help from ECU (esp. if high debt) # Make crisises in larger neigbour countries affect situation, especially IF ingame friends and have trade # Flavor events for high debt situations # Add in pics and better texts #Random Economic Events ### Central Bank warns of housing bubble & possible crisis ### country_event = { id = econvent.1 title = econvent.1.t desc = econvent.1.d picture = GFX_house is_triggered_only = yes mean_time_to_happen = { modifier = { factor = 1.40 has_idea = economic_boom } modifier = { factor = 1.25 has_idea = fast_growth } modifier = { factor = 0 OR = { has_idea = depression has_idea = recession has_idea = stagnation has_country_flag = possible_housing_bubble has_country_flag = housing_crash } } } #Take steps to avoid crisis option = { name = econvent.1.a log = "[GetDateText]: [This.GetName]: econvent.1.a executed" small_expenditure = yes random_list = { 40 = { modifier = { factor = 0.80 has_idea = recession } modifier = { factor = 0.75 has_idea = depression } decrease_economic_growth = yes } 60 = { } } set_temp_variable = { temp_opinion = -10 } change_wall_street_opinion = yes change_international_bankers_opinion = yes set_temp_variable = { temp_opinion = 5 } change_small_medium_business_owners_opinion = yes change_the_donju_opinion = yes change_chaebols_opinion = yes ai_chance = { base = 1 } } #Crisis?! What crisis!? option = { name = econvent.1.b log = "[GetDateText]: [This.GetName]: econvent.1.b executed" custom_effect_tooltip = econvent.1.b_tt set_country_flag = possible_housing_bubble set_temp_variable = { temp_opinion = 5 } change_wall_street_opinion = yes change_international_bankers_opinion = yes set_temp_variable = { temp_opinion = -10 } change_small_medium_business_owners_opinion = yes change_the_donju_opinion = yes change_chaebols_opinion = yes ai_chance = { base = 0 } } } #### Collapsing housing prices #### country_event = { id = econvent.2 title = econvent.2.t desc = econvent.2.d picture = GFX_banking_crisis is_triggered_only = yes mean_time_to_happen = { modifier = { factor = 1.25 has_idea = economic_boom } modifier = { factor = 1.1 has_idea = fast_growth } modifier = { factor = 0.5 has_country_flag = consumption_slowdown } modifier = { factor = 2.0 has_country_flag = possible_housing_bubble } modifier = { factor = 0.5 OR = { has_idea = recession has_idea = stagnation } } } trigger = { NOT = { OR = { has_country_flag = bank_crisis has_country_flag = stock_market_crash } } NOT = { has_idea = depression } } #Lower interest-rates and demand banks increase lending option = { name = econvent.2.a log = "[GetDateText]: [This.GetName]: econvent.2.a executed" set_country_flag = { flag = housing_crash value = 1 days = 180 } if = { limit = { OR = { has_idea = economic_boom has_idea = fast_growth has_idea = stable_growth } } random_list = { 70 = { decrease_economic_growth = yes } 30 = { modifier = { factor = 1.5 has_country_flag = possible_housing_bubble } modifier = { factor = 1.5 has_country_flag = voodoo_economics } modifier = { factor = 1.5 has_country_flag = consumption_slowdown } decrease_two_level_economic_growth = yes } } } else_if = { limit = { has_idea = stagnation } random_list = { 50 = { custom_effect_tooltip = NO_EFFECT_TT } 40 = { decrease_economic_growth = yes } 10 = { decrease_two_level_economic_growth = yes } } } else_if = { limit = { has_idea = recession } random_list = { 60 = { custom_effect_tooltip = NO_EFFECT_TT } 40 = { decrease_economic_growth = yes } } } clr_country_flag = possible_housing_bubble set_country_flag = { flag = voodoo_economics value = 1 days = 365 } custom_effect_tooltip = econvent.voodoo_economics_tt set_temp_variable = { temp_opinion = -5 } change_small_medium_business_owners_opinion = yes change_industrial_conglomerates_opinion = yes change_international_bankers_opinion = yes change_the_donju_opinion = yes change_chaebols_opinion = yes change_wall_street_opinion = yes ai_chance = { base = 0 modifier = { add = 5 has_liberal_government_or_in_coalition = yes } modifier = { add = 10 has_conservative_government_or_in_coalition = yes } modifier = { add = 5 check_variable = { var = interest_rate value > 5 } } modifier = { add = 5 check_variable = { var = interest_rate value > 10 } } } } #This adjustment is painful, but necessary #Crash Effects option = { name = econvent.2.b log = "[GetDateText]: [This.GetName]: econvent.2.b executed" set_country_flag = { flag = housing_crash value = 2 days = 365 } if = { limit = { OR = { has_idea = economic_boom has_idea = fast_growth has_idea = stable_growth } } random_list = { 50 = { decrease_economic_growth = yes } 50 = { modifier = { factor = 1.5 has_country_flag = voodoo_economics } modifier = { factor = 1.5 has_country_flag = possible_housing_bubble } decrease_two_level_economic_growth = yes } } } else_if = { limit = { has_idea = stagnation } random_list = { 70 = { decrease_economic_growth = yes } 30 = { decrease_two_level_economic_growth = yes } } } else_if = { limit = { has_idea = recession } decrease_economic_growth = yes } clr_country_flag = possible_housing_bubble custom_effect_tooltip = econvent.2.b_tt set_temp_variable = { temp_opinion = -10 } change_small_medium_business_owners_opinion = yes change_industrial_conglomerates_opinion = yes change_international_bankers_opinion = yes change_the_donju_opinion = yes change_chaebols_opinion = yes change_wall_street_opinion = yes change_farmers_opinion = yes change_landowners_opinion = yes ai_chance = { base = 100 } } } # Stock Market Crash country_event = { id = econvent.3 title = econvent.3.t desc = econvent.3.d picture = GFX_economy_crisis is_triggered_only = yes mean_time_to_happen = { modifier = { factor = 1.40 has_idea = economic_boom } modifier = { factor = 1.25 has_idea = fast_growth } modifier = { factor = 0.85 OR = { has_country_flag = consumption_slowdown has_country_flag = stock_market_boom has_country_flag = voodoo_economics } } modifier = { factor = 1.15 has_country_flag = temp_increase_major_hike_in_corp_taxes } modifier = { factor = 1.25 has_country_flag = stock_market_boom_accelerate } modifier = { factor = 0 OR = { has_idea = recession has_idea = depression } } modifier = { factor = 0 NOT = { OR = { has_country_flag = housing_crash has_country_flag = stock_market_boom_accelerate has_country_flag = stock_market_boom } } } modifier = { add = -1 has_idea = FRA_regulation } } trigger = { NOT = { OR = { has_country_flag = bank_crisis has_country_flag = housing_crash } } } # Crash Effects option = { name = econvent.3.a log = "[GetDateText]: [This.GetName]: econvent.3.a executed" set_country_flag = { flag = stock_market_crash value = 1 days = 365 } if = { limit = { has_idea = economic_boom } random_list = { 70 = { decrease_economic_growth = yes } 30 = { decrease_two_level_economic_growth = yes } } } else_if = { limit = { has_idea = fast_growth } random_list = { 75 = { decrease_economic_growth = yes } 25 = { decrease_two_level_economic_growth = yes } } } else_if = { limit = { has_idea = stable_growth } random_list = { 80 = { decrease_economic_growth = yes } 20 = { decrease_two_level_economic_growth = yes } } } else_if = { limit = { has_idea = stagnation } random_list = { 90 = { decrease_economic_growth = yes } 10 = { decrease_two_level_economic_growth = yes } } } else_if = { limit = { has_idea = recession } decrease_economic_growth = yes } set_temp_variable = { temp_opinion = -15 } change_small_medium_business_owners_opinion = yes change_the_donju_opinion = yes change_chaebols_opinion = yes change_wall_street_opinion = yes change_international_bankers_opinion = yes change_industrial_conglomerates_opinion = yes change_farmers_opinion = yes change_landowners_opinion = yes change_oligarchs_opinion = yes change_fossil_fuel_industry_opinion = yes change_labour_unions_opinion = yes ai_chance = { base = 2.0 } } # Issue Bailouts option = { name = econvent.3.b log = "[GetDateText]: [This.GetName]: econvent.3.b executed" set_country_flag = { flag = stock_market_crash value = 1 days = 180 } medium_expenditure = yes decrease_economic_growth = yes set_temp_variable = { temp_opinion = -10 } change_small_medium_business_owners_opinion = yes change_the_donju_opinion = yes change_chaebols_opinion = yes change_wall_street_opinion = yes change_international_bankers_opinion = yes change_industrial_conglomerates_opinion = yes change_farmers_opinion = yes change_landowners_opinion = yes change_oligarchs_opinion = yes change_fossil_fuel_industry_opinion = yes change_labour_unions_opinion = yes ai_chance = { base = 0.25 } } } # Bank Crisis country_event = { id = econvent.4 title = econvent.4.t desc = econvent.4.d picture = GFX_banking_crisis is_triggered_only = yes mean_time_to_happen = { modifier = { factor = 1.25 has_idea = economic_boom } modifier = { factor = 1.10 has_idea = fast_growth } modifier = { factor = 0.5 has_country_flag = voodoo_economics } modifier = { factor = 0.5 has_country_flag = consumption_slowdown } modifier = { factor = 1.15 has_country_flag = temp_increase_major_hike_in_corp_taxes } } trigger = { NOT = { OR = { has_country_flag = housing_crash has_country_flag = stock_market_crash } } } #Bail them out! option = { name = econvent.4.a log = "[GetDateText]: [This.GetName]: econvent.4.a executed" set_country_flag = { flag = bank_crisis value = 1 days = 365 } small_expenditure = yes if = { limit = { has_idea = economic_boom } random_list = { 60 = { custom_effect_tooltip = NO_EFFECT_TT } 40 = { decrease_economic_growth = yes } } } else_if = { limit = { has_idea = fast_growth } random_list = { 60 = { custom_effect_tooltip = NO_EFFECT_TT } 40 = { decrease_economic_growth = yes } } } else_if = { limit = { has_idea = stable_growth } random_list = { 70 = { custom_effect_tooltip = NO_EFFECT_TT } 30 = { decrease_economic_growth = yes } } } else_if = { limit = { has_idea = stagnation } random_list = { 80 = { custom_effect_tooltip = NO_EFFECT_TT } 20 = { decrease_economic_growth = yes } } } else_if = { limit = { has_idea = recession } random_list = { 90 = { custom_effect_tooltip = NO_EFFECT_TT } 10 = { decrease_economic_growth = yes } } } set_temp_variable = { temp_opinion = 5 } change_small_medium_business_owners_opinion = yes change_the_donju_opinion = yes change_chaebols_opinion = yes change_wall_street_opinion = yes change_international_bankers_opinion = yes ai_chance = { base = 0 } } #Avoid bailouts, but help savers if banks go bankrupt option = { name = econvent.4.b log = "[GetDateText]: [This.GetName]: econvent.4.b executed" set_country_flag = { flag = bank_crisis value = 2 days = 365 } add_political_power = -75 if = { limit = { has_idea = economic_boom } random_list = { 80 = { decrease_economic_growth = yes } 20 = { decrease_two_level_economic_growth = yes } } } else_if = { limit = { has_idea = fast_growth } random_list = { 85 = { decrease_economic_growth = yes } 15 = { decrease_two_level_economic_growth = yes } } } else_if = { limit = { has_idea = stable_growth } random_list = { 90 = { decrease_economic_growth = yes } 10 = { decrease_two_level_economic_growth = yes } } } else_if = { limit = { has_idea = stagnation } random_list = { 20 = { custom_effect_tooltip = NO_EFFECT_TT } 70 = { decrease_economic_growth = yes } 10 = { decrease_two_level_economic_growth = yes } } } else_if = { limit = { has_idea = recession } random_list = { 30 = { custom_effect_tooltip = NO_EFFECT_TT } 70 = { decrease_economic_growth = yes } } } set_temp_variable = { temp_opinion = 5 } change_small_medium_business_owners_opinion = yes change_the_donju_opinion = yes change_chaebols_opinion = yes set_temp_variable = { temp_opinion = -10 } change_wall_street_opinion = yes change_international_bankers_opinion = yes ai_chance = { base = 0 } } #Survival of the fittest is what makes capitalism beautiful option = { name = econvent.4.c log = "[GetDateText]: [This.GetName]: econvent.4.c executed" set_country_flag = { flag = bank_crisis value = 2 days = 365 } if = { limit = { has_idea = economic_boom } random_list = { 60 = { decrease_economic_growth = yes } 40 = { decrease_two_level_economic_growth = yes } } } else_if = { limit = { has_idea = fast_growth } random_list = { 65 = { decrease_economic_growth = yes } 35 = { decrease_two_level_economic_growth = yes } } } else_if = { limit = { has_idea = stable_growth } random_list = { 70 = { decrease_economic_growth = yes } 30 = { decrease_two_level_economic_growth = yes } } } else_if = { limit = { has_idea = stagnation } random_list = { 80 = { decrease_economic_growth = yes } 20 = { decrease_two_level_economic_growth = yes } } } else_if = { limit = { has_idea = recession } decrease_economic_growth = yes ingame_update_setup = yes } set_temp_variable = { temp_opinion = -10 } change_small_medium_business_owners_opinion = yes change_the_donju_opinion = yes change_chaebols_opinion = yes change_wall_street_opinion = yes change_international_bankers_opinion = yes ai_chance = { base = 1 } } } ### Slowdown in consumption as pessimism and unemployment on the rise ### country_event = { id = econvent.5 title = econvent.5.t desc = econvent.5.d picture = GFX_economy_crisis is_triggered_only = yes mean_time_to_happen = { modifier = { factor = 0.3 has_idea = economic_boom } modifier = { factor = 0.6 has_idea = fast_growth } modifier = { factor = 1.3 has_idea = recession } modifier = { factor = 0.5 has_country_flag = voodoo_economics } modifier = { factor = 0.5 has_country_flag = stock_market_crash } modifier = { factor = 0.5 has_country_flag = housing_crash } modifier = { factor = 1.15 has_country_flag = temp_increase_major_hike_in_corp_taxes } modifier = { factor = 1.15 has_country_flag = temp_increase_major_hike_in_pop_taxes } modifier = { factor = 1.25 check_variable = { population_tax_rate > 34 } } modifier = { factor = 1.15 check_variable = { corporate_tax_rate > 29 } } } #Transfer some shopping money option = { name = econvent.5.a log = "[GetDateText]: [This.GetName]: econvent.5.a executed" set_country_flag = { flag = consumption_slowdown value = 1 days = 365 } if = { limit = { NOT = { has_idea = depression } } random_list = { 60 = { custom_effect_tooltip = NO_EFFECT_TT } 40 = { decrease_economic_growth = yes } } } set_temp_variable = { temp_opinion = 5 } change_small_medium_business_owners_opinion = yes change_the_donju_opinion = yes change_chaebols_opinion = yes } #Do nothing option = { name = econvent.5.b log = "[GetDateText]: [This.GetName]: econvent.5.b executed" set_country_flag = { flag = consumption_slowdown value = 1 days = 365 } if = { limit = { has_idea = economic_boom } random_list = { 80 = { decrease_economic_growth = yes } 20 = { decrease_two_level_economic_growth = yes } } } else_if = { limit = { has_idea = fast_growth } random_list = { 85 = { decrease_economic_growth = yes } 15 = { decrease_two_level_economic_growth = yes } } } else_if = { limit = { has_idea = stable_growth } random_list = { 90 = { decrease_economic_growth = yes } 10 = { decrease_two_level_economic_growth = yes } } } else_if = { limit = { has_idea = stagnation } random_list = { 10 = { custom_effect_tooltip = NO_EFFECT_TT } 80 = { decrease_economic_growth = yes } 10 = { decrease_two_level_economic_growth = yes } } } else_if = { limit = { has_idea = recession } random_list = { 20 = { custom_effect_tooltip = NO_EFFECT_TT } 80 = { decrease_economic_growth = yes } } } set_temp_variable = { temp_opinion = -5 } change_small_medium_business_owners_opinion = yes change_the_donju_opinion = yes change_chaebols_opinion = yes } } ### Lower demand for our goods in int. markets country_event = { id = econvent.6 title = econvent.6.t desc = econvent.6.d picture = GFX_marketplace is_triggered_only = yes mean_time_to_happen = { modifier = { factor = 0.6 has_idea = economic_boom } modifier = { factor = 0.8 has_idea = fast_growth } modifier = { factor = 2.5 has_idea = recession } modifier = { factor = 1.5 has_idea = export_economy } modifier = { factor = 2.25 has_idea = globalized_trade_economy } modifier = { factor = 1.5 OR = { check_variable = { resource_exported@oil > 0 } check_variable = { resource_exported@steel > 0 } check_variable = { resource_exported@aluminium > 0 } check_variable = { resource_exported@tungsten > 0 } check_variable = { resource_exported@chromium > 0 } check_variable = { resource_exported@rubber > 0 } } } } #Not much to do about this option = { name = econvent.6.a log = "[GetDateText]: [This.GetName]: econvent.6.a executed" if = { limit = { has_idea = economic_boom } random_list = { 20 = { custom_effect_tooltip = NO_EFFECT_TT } 70 = { decrease_economic_growth = yes } 10 = { decrease_two_level_economic_growth = yes } } } else_if = { limit = { has_idea = fast_growth } random_list = { 20 = { custom_effect_tooltip = NO_EFFECT_TT } 75 = { decrease_economic_growth = yes } 5 = { decrease_two_level_economic_growth = yes } } } else_if = { limit = { has_idea = stable_growth } random_list = { 20 = { custom_effect_tooltip = NO_EFFECT_TT } 80 = { decrease_economic_growth = yes } } } else_if = { limit = { has_idea = stagnation } random_list = { 25 = { custom_effect_tooltip = NO_EFFECT_TT } 75 = { decrease_economic_growth = yes } } } else_if = { limit = { has_idea = recession } random_list = { 50 = { custom_effect_tooltip = NO_EFFECT_TT } 50 = { decrease_economic_growth = yes } } } } } #### Things for poor countries #### ###Work in progress ### Drought! country_event = { id = econvent.7 title = econvent.7.t desc = econvent.7.d picture = GFX_broken_infrastructure is_triggered_only = yes mean_time_to_happen = { modifier = { factor = 1.4 is_in_array = { global.is_african_nation = THIS.id } } modifier = { factor = 1.2 check_variable = { gdp_per_capita < 2.00 } } modifier = { factor = 1.10 check_variable = { gdp_per_capita > 1.999 } check_variable = { gdp_per_capita < 4.000 } } modifier = { factor = 0.8 check_variable = { gdp_per_capita > 3.999 } } } trigger = { has_country_flag = arid_nation_flag NOT = { has_country_flag = drought } } #Not much to do about this option = { name = econvent.7.a log = "[GetDateText]: [This.GetName]: econvent.7.a executed" set_country_flag = { flag = drought value = 1 days = 120 } if = { limit = { has_idea = economic_boom } random_list = { 20 = { custom_effect_tooltip = NO_EFFECT_TT } 70 = { decrease_economic_growth = yes } 10 = { decrease_two_level_economic_growth = yes } } } else_if = { limit = { has_idea = fast_growth } random_list = { 20 = { custom_effect_tooltip = NO_EFFECT_TT } 75 = { decrease_economic_growth = yes } 5 = { decrease_two_level_economic_growth = yes } } } else_if = { limit = { has_idea = stable_growth } random_list = { 20 = { custom_effect_tooltip = NO_EFFECT_TT } 80 = { decrease_economic_growth = yes } } } else_if = { limit = { has_idea = stagnation } random_list = { 25 = { custom_effect_tooltip = NO_EFFECT_TT } 75 = { decrease_economic_growth = yes } } } else_if = { limit = { has_idea = recession } random_list = { 50 = { custom_effect_tooltip = NO_EFFECT_TT } 50 = { decrease_economic_growth = yes } } } } } ### Drought causes famine country_event = { id = econvent.8 title = econvent.8.t desc = econvent.8.d picture = GFX_generic_grain_silo is_triggered_only = yes mean_time_to_happen = { modifier = { factor = 1.3 check_variable = { gdp_per_capita < 2.00 } } modifier = { factor = 1.10 check_variable = { gdp_per_capita > 1.999 } check_variable = { gdp_per_capita < 4.000 } } modifier = { factor = 0.8 check_variable = { gdp_per_capita > 3.999 } } } trigger = { has_country_flag = drought NOT = { has_idea = depression } } #Not much to do about this option = { name = econvent.8.a log = "[GetDateText]: [This.GetName]: econvent.8.a executed" set_country_flag = { flag = famine value = 1 days = 200 } if = { limit = { has_idea = economic_boom } random_list = { 20 = { custom_effect_tooltip = NO_EFFECT_TT } 70 = { decrease_economic_growth = yes } 10 = { decrease_two_level_economic_growth = yes } } } else_if = { limit = { has_idea = fast_growth } random_list = { 20 = { custom_effect_tooltip = NO_EFFECT_TT } 75 = { decrease_economic_growth = yes } 5 = { decrease_two_level_economic_growth = yes } } } else_if = { limit = { has_idea = stable_growth } random_list = { 20 = { custom_effect_tooltip = NO_EFFECT_TT } 80 = { decrease_economic_growth = yes } } } else_if = { limit = { has_idea = stagnation } random_list = { 25 = { custom_effect_tooltip = NO_EFFECT_TT } 75 = { decrease_economic_growth = yes } } } else_if = { limit = { has_idea = recession } random_list = { 50 = { custom_effect_tooltip = NO_EFFECT_TT } 50 = { decrease_economic_growth = yes } } } set_temp_variable = { temp_opinion = -15 } change_farmers_opinion = yes } } ##Positive Economic Events # Increase Consumer Confidence country_event = { id = econvent.9 title = econvent.9.t desc = econvent.9.d picture = GFX_stock_market is_triggered_only = yes mean_time_to_happen = { # Economically Liberal trying to spurn economic growth modifier = { factor = 1.5 has_economically_liberal_government_or_in_coalition = yes } modifier = { factor = 2 check_variable = { last_quarter_gdp_growth_rate > 0.10 } } modifier = { factor = 1.75 check_variable = { last_quarter_gdp_growth_rate > 0.08 } } modifier = { factor = 1.50 check_variable = { last_quarter_gdp_growth_rate > 0.04 } } modifier = { factor = 1.25 check_variable = { last_quarter_gdp_growth_rate > 0.02 } } modifier = { factor = 4 has_idea = depression } modifier = { factor = 3 has_idea = recession } modifier = { factor = 2 has_idea = stagnation } modifier = { factor = 1.5 has_idea = stable_growth } modifier = { factor = 1.5 check_variable = { population_tax_rate < 10 } } } trigger = { NOT = { OR = { has_country_flag = increased_consumer_confidence has_idea = economic_boom has_active_mission = debt_default_main_mission #JAP has_idea = JAP_entrenched_demand_shortfall_idea_1 has_idea = JAP_entrenched_demand_shortfall_idea_2 has_idea = JAP_entrenched_demand_shortfall_idea_3 } } } option = { name = econvent.9.a log = "[GetDateText]: [Root.GetName]: event econvent.9.a" increase_economic_growth = yes ingame_update_setup = yes set_temp_variable = { temp_opinion = 5 } change_labour_unions_opinion = yes change_farmers_opinion = yes change_small_medium_business_owners_opinion = yes change_industrial_conglomerates_opinion = yes change_communist_cadres_opinion = yes change_landowners_opinion = yes change_defense_industry_opinion = yes change_fossil_fuel_industry_opinion = yes change_international_bankers_opinion = yes change_wall_street_opinion = yes change_maritime_industry_opinion = yes set_country_flag = { flag = increased_consumer_confidence value = 1 days = 180 } } } #Stock Market Boom country_event = { id = econvent.10 title = econvent.10.t desc = econvent.10.d picture = GFX_stock_market is_triggered_only = yes mean_time_to_happen = { modifier = { factor = 2 has_idea = international_bankers check_variable = { international_bankers_opinion > 75 } } modifier = { factor = 2 has_idea = wall_street check_variable = { wall_street_opinion > 75 } } modifier = { factor = 2 has_idea = small_medium_business_owners check_variable = { small_medium_business_owners_opinion > 75 } } modifier = { factor = 2 check_variable = { last_quarter_gdp_growth_rate > 0.10 } } modifier = { factor = 1.75 check_variable = { last_quarter_gdp_growth_rate > 0.05 } } modifier = { factor = 1.5 check_variable = { last_quarter_gdp_growth_rate > 0.02 } } modifier = { has_idea = stagnation factor = 1.25 } modifier = { has_idea = fast_growth factor = 1.45 } modifier = { has_idea = stable_growth factor = 1.75 } modifier = { factor = 1.5 check_variable = { corporate_tax_rate < 25 } } } trigger = { NOT = { OR = { has_idea = economic_boom has_active_mission = debt_default_main_mission has_country_flag = stock_market_boom_accelerate has_country_flag = stock_market_boom_slowed has_country_flag = stock_market_boom #JAP has_idea = JAP_entrenched_demand_shortfall_idea_1 has_idea = JAP_entrenched_demand_shortfall_idea_2 has_idea = JAP_entrenched_demand_shortfall_idea_3 # Communists cannot get stock market boom... has_communist_government_or_in_coalition = yes } } } option = { name = econvent.10.a log = "[GetDateText]: [Root.GetName]: event econvent.10.a" increase_economic_growth = yes custom_effect_tooltip = econvent.10.a_tt small_expenditure = yes set_temp_variable = { temp_opinion = 8 } change_international_bankers_opinion = yes change_small_medium_business_owners_opinion = yes set_country_flag = { flag = stock_market_boom_accelerate value = 1 days = 200 } ai_chance = { base = 0 } } option = { name = econvent.10.b log = "[GetDateText]: [Root.GetName]: event econvent.10.b" increase_economic_growth = yes custom_effect_tooltip = econvent.10.b_tt set_temp_variable = { temp_opinion = 4 } change_international_bankers_opinion = yes change_small_medium_business_owners_opinion = yes set_country_flag = { flag = stock_market_boom value = 1 days = 200 } ai_chance = { base = 1 } } option = { name = econvent.10.c log = "[GetDateText]: [Root.GetName]: event econvent.10.c" set_temp_variable = { temp_opinion = -15 } change_international_bankers_opinion = yes change_small_medium_business_owners_opinion = yes custom_effect_tooltip = econvent.10.c_tt set_country_flag = { flag = stock_market_boom_slowed value = 1 days = 200 } ai_chance = { base = 0 } } } # Major Financial Institution Requires a Bailout country_event = { id = econvent.11 title = econvent.11.t desc = econvent.11.d picture = GFX_banking_crisis is_triggered_only = yes mean_time_to_happen = { # Communists Lower Chances -- Sim more market economy control modifier = { factor = 0.50 has_communist_government_or_in_coalition = yes } # Socialism more regulation modifier = { factor = 0.95 has_socialist_government_or_in_coalition = yes } modifier = { factor = 1.50 has_idea = economic_boom } modifier = { factor = 1.35 has_idea = fast_growth } modifier = { factor = 1.15 has_idea = stable_growth } } trigger = { NOT = { has_country_flag = ECON_recent_financial_institution_crash } OR = { has_idea = economic_boom has_idea = fast_growth has_idea = stable_growth } } # Too Big to Fail option = { name = econvent.11.a log = "[GetDateText]: [Root.GetName]: event econvent.11.a" set_temp_variable = { treasury_change = gdp_total } multiply_temp_variable = { treasury_change = -0.05 } modify_treasury_effect = yes set_temp_variable = { temp_opinion = -5 } change_international_bankers_opinion = yes change_wall_street_opinion = yes set_temp_variable = { temp_opinion = -3 } change_small_medium_business_owners_opinion = yes change_industrial_conglomerates_opinion = yes change_chaebols_opinion = yes change_fossil_fuel_industry_opinion = yes change_farmers_opinion = yes change_landowners_opinion = yes change_oligarchs_opinion = yes change_defense_industry_opinion = yes change_maritime_industry_opinion = yes set_temp_variable = { party_popularity_increase = -0.03 } set_temp_variable = { temp_outlook_increase = -0.03 } change_relative_party_popularity = yes # Reduce only one level decrease_economic_growth = yes every_country = { limit = { influence_higher_10 = yes } if = { limit = { is_subject_of = ROOT } if = { limit = { OR = { is_in_faction_with = ROOT is_neighbor_of = ROOT } } random = { chance = 100 country_event = { id = econvent.12 random_days = 100 } } } else = { random = { chance = 50 country_event = { id = econvent.12 random_days = 100 } } } } else_if = { limit = { is_in_faction_with = ROOT } if = { limit = { is_neighbor_of = ROOT } random = { chance = 60 country_event = { id = econvent.12 random_days = 100 } } } else = { random = { chance = 30 country_event = { id = econvent.12 random_days = 100 } } } } else_if = { limit = { is_neighbor_of = ROOT } random = { chance = 20 country_event = { id = econvent.12 random_days = 100 } } } else = { random = { chance = 10 country_event = { id = econvent.12 random_days = 100 } } } } set_country_flag = { flag = ECON_recent_financial_institution_crash days = 365 value = 1 } ai_chance = { base = 1 } } # Let it fail.. option = { name = econvent.11.b log = "[GetDateText]: [Root.GetName]: event econvent.11.b" set_temp_variable = { temp_opinion = -15 } change_international_bankers_opinion = yes change_wall_street_opinion = yes set_temp_variable = { temp_opinion = -10 } change_small_medium_business_owners_opinion = yes change_industrial_conglomerates_opinion = yes change_chaebols_opinion = yes change_fossil_fuel_industry_opinion = yes change_farmers_opinion = yes change_landowners_opinion = yes change_oligarchs_opinion = yes change_defense_industry_opinion = yes change_maritime_industry_opinion = yes set_temp_variable = { party_popularity_increase = -0.05 } set_temp_variable = { temp_outlook_increase = -0.05 } change_relative_party_popularity = yes hidden_effect = { remove_ideas = { economic_boom fast_growth stable_growth } } set_country_flag = disable_cycle_costs random_list = { 40 = { add_ideas = stagnation } 40 = { add_ideas = recession } 20 = { add_ideas = depression } } if = { limit = { is_subject_of = ROOT } if = { limit = { is_in_faction_with = ROOT } random = { chance = 100 country_event = { id = econvent.12 random_days = 100 } } } else = { random = { chance = 50 country_event = { id = econvent.12 random_days = 100 } } } } else_if = { limit = { is_in_faction_with = ROOT } random = { chance = 30 country_event = { id = econvent.12 random_days = 100 } } } else = { random = { chance = 10 country_event = { id = econvent.12 random_days = 100 } } } clr_country_flag = disable_cycle_costs set_country_flag = { flag = ECON_recent_financial_institution_crash days = 365 value = 1 } ai_chance = { base = 0 } } } # [FROM.GetName] Recent Economic Crisis has rippled through our nation country_event = { id = econvent.12 title = econvent.12.t desc = econvent.12.d picture = GFX_banking_crisis is_triggered_only = yes option = { name = econvent.12.a log = "[GetDateText]: [This.GetName]: econvent.12.a executed" set_temp_variable = { treasury_change = gdp_total } multiply_temp_variable = { treasury_change = -0.05 } modify_treasury_effect = yes set_temp_variable = { temp_opinion = -5 } change_international_bankers_opinion = yes set_temp_variable = { temp_opinion = -3 } change_small_medium_business_owners_opinion = yes change_industrial_conglomerates_opinion = yes change_chaebols_opinion = yes change_fossil_fuel_industry_opinion = yes change_farmers_opinion = yes change_landowners_opinion = yes change_oligarchs_opinion = yes change_defense_industry_opinion = yes change_maritime_industry_opinion = yes set_temp_variable = { party_popularity_increase = -0.03 } set_temp_variable = { temp_outlook_increase = -0.03 } change_relative_party_popularity = yes decrease_economic_growth = yes ai_chance = { base = 1 } } option = { name = econvent.12.b log = "[GetDateText]: [This.GetName]: econvent.12.b executed" set_temp_variable = { temp_opinion = -15 } change_international_bankers_opinion = yes set_temp_variable = { temp_opinion = -10 } change_small_medium_business_owners_opinion = yes change_industrial_conglomerates_opinion = yes change_chaebols_opinion = yes change_fossil_fuel_industry_opinion = yes change_farmers_opinion = yes change_landowners_opinion = yes change_oligarchs_opinion = yes change_defense_industry_opinion = yes change_maritime_industry_opinion = yes set_temp_variable = { party_popularity_increase = -0.03 } set_temp_variable = { temp_outlook_increase = -0.03 } change_relative_party_popularity = yes decrease_economic_growth = yes ai_chance = { base = 0 } } } # High Debt Causes Companies to Leave country_event = { id = econvent.13 title = econvent.13.t desc = econvent.13.d picture = GFX_banking_crisis is_triggered_only = yes mean_time_to_happen = { modifier = { factor = 2 gdp_debt_ratio_higher_135 = yes } modifier = { factor = 2 gdp_debt_ratio_higher_145 = yes } modifier = { factor = 2 gdp_debt_ratio_higher_155 = yes } modifier = { factor = 2 gdp_debt_ratio_higher_165 = yes } modifier = { factor = 2 gdp_debt_ratio_higher_175 = yes } modifier = { factor = 2 gdp_debt_ratio_higher_185 = yes } modifier = { factor = 2 gdp_debt_ratio_higher_200 = yes } } trigger = { check_variable = { industrial_complex_total > 1 } gdp_debt_ratio_higher_125 = yes NOT = { has_country_flag = high_debt_company_closure } } immediate = { set_country_flag = { flag = high_debt_company_closure value = 1 days = 180 } } # Allow the Loss option = { name = econvent.13.a log = "[GetDateText]: [This.GetName]: econvent.13.a executed" random_owned_controlled_state = { limit = { check_variable = { building_level@industrial_complex > 0 } } remove_building = { type = industrial_complex level = -1 } } set_temp_variable = { temp_opinion = -5 } change_international_bankers_opinion = yes change_small_medium_business_owners_opinion = yes change_industrial_conglomerates_opinion = yes change_chaebols_opinion = yes change_fossil_fuel_industry_opinion = yes change_farmers_opinion = yes change_landowners_opinion = yes change_oligarchs_opinion = yes change_defense_industry_opinion = yes change_maritime_industry_opinion = yes ai_chance = { base = 0 modifier = { add = 10 check_variable = { interest_rate > 10 } } } } # Purchase the Company option = { name = econvent.13.b log = "[GetDateText]: [This.GetName]: econvent.13.b executed" set_temp_variable = { treasury_change = gdp_total } multiply_temp_variable = { treasury_change = -0.025 } modify_treasury_effect = yes set_temp_variable = { temp_opinion = 5 } change_international_bankers_opinion = yes change_small_medium_business_owners_opinion = yes change_industrial_conglomerates_opinion = yes change_chaebols_opinion = yes change_fossil_fuel_industry_opinion = yes change_farmers_opinion = yes change_landowners_opinion = yes change_oligarchs_opinion = yes change_defense_industry_opinion = yes change_maritime_industry_opinion = yes ai_chance = { base = 0 modifier = { add = 10 check_variable = { interest_rate < 10 } } } } } # Private Investors Invest Civilian Industry country_event = { id = econvent.14 title = econvent.14.t desc = econvent.14.d picture = GFX_stock_market is_triggered_only = yes mean_time_to_happen = { modifier = { factor = 2 has_idea = international_bankers check_variable = { international_bankers_opinion > 75 } } modifier = { factor = 2 has_idea = wall_street check_variable = { wall_street_opinion > 75 } } modifier = { factor = 2 check_variable = { last_quarter_gdp_growth_rate > 0.10 } } modifier = { factor = 1.75 check_variable = { last_quarter_gdp_growth_rate > 0.05 } } modifier = { factor = 1.5 check_variable = { last_quarter_gdp_growth_rate > 0.02 } } modifier = { factor = 2.00 has_idea = economic_boom } modifier = { factor = 1.75 has_idea = fast_growth } modifier = { factor = 1.5 has_idea = stable_growth } modifier = { factor = 0.5 has_idea = stagnation } modifier = { factor = 0.25 has_idea = recession } modifier = { factor = 0.10 has_idea = depression } } trigger = { NOT = { has_idea = non_state_actor } NOT = { has_country_flag = private_investor_civilian_industry } any_owned_state = { free_building_slots = { building = industrial_complex size > 0 include_locked = yes } } } option = { name = econvent.14.a log = "[GetDateText]: [This.GetName]: econvent.14.a executed" set_temp_variable = { party_popularity_increase = 0.03 } set_temp_variable = { temp_outlook_increase = 0.03 } change_relative_party_popularity = yes # Free Industrial Complex random_owned_controlled_state = { limit = { free_shared_building_slots = yes } add_extra_state_shared_building_slots = 1 add_building_construction = { type = industrial_complex level = 1 instant_build = yes } } set_country_flag = { flag = private_investor_civilian_industry value = 1 days = 365 } } } # Private Investors Invest in Office Park country_event = { id = econvent.15 title = econvent.15.t desc = econvent.15.d picture = GFX_stock_market is_triggered_only = yes mean_time_to_happen = { modifier = { factor = 3 OR = { AND = { has_idea = international_bankers check_variable = { international_bankers_opinion > 75 } } AND = { has_idea = wall_street check_variable = { wall_street_opinion > 75 } } } } modifier = { factor = 2 check_variable = { last_quarter_gdp_growth_rate > 0.10 } } modifier = { factor = 1.75 check_variable = { last_quarter_gdp_growth_rate > 0.05 } } modifier = { factor = 1.5 check_variable = { last_quarter_gdp_growth_rate > 0.02 } } modifier = { factor = 2.5 has_idea = economic_boom } modifier = { factor = 2.0 has_idea = fast_growth } modifier = { factor = 1.75 has_idea = stable_growth } modifier = { factor = 1.25 has_idea = stagnation } modifier = { factor = 0.75 has_idea = recession } modifier = { factor = 0.25 has_idea = depression } } trigger = { NOT = { has_idea = non_state_actor } NOT = { has_country_flag = private_investor_office_park } any_owned_state = { free_building_slots = { building = offices size > 0 include_locked = yes } } } option = { name = econvent.15.a log = "[GetDateText]: [This.GetName]: econvent.15.a executed" set_temp_variable = { party_popularity_increase = 0.03 } set_temp_variable = { temp_outlook_increase = 0.03 } change_relative_party_popularity = yes # Free Industrial Complex random_owned_controlled_state = { limit = { free_shared_building_slots = yes } add_extra_state_shared_building_slots = 1 add_building_construction = { type = offices level = 1 instant_build = yes } } set_country_flag = { flag = private_investor_office_park value = 1 days = 365 } } } # Modern Production Methods Spread country_event = { id = econvent.16 title = econvent.16.t desc = econvent.16.d picture = GFX_generic_factory is_triggered_only = yes mean_time_to_happen = { modifier = { factor = 2 has_idea = economic_boom } modifier = { factor = 1.75 has_idea = fast_growth } modifier = { factor = 1.5 has_idea = stable_growth } modifier = { factor = 1.5 check_variable = { overall_productivity < 750 } } modifier = { factor = 1.5 check_variable = { overall_productivity < 500 } } } trigger = { NOT = { has_idea = non_state_actor } NOT = { has_country_flag = econ_recent_productivity_gain } check_variable = { overall_productivity < global.average_world_productivity } } immediate = { set_country_flag = { flag = econ_recent_productivity_gain value = 1 days = 365 } } option = { name = econvent.16.a log = "[GetDateText]: [This.GetName]: econvent.16.a executed" set_temp_variable = { temp_productivity_change = 10 } flat_productivity_change_effect = yes } } # Education Investments Bear Fruit country_event = { id = econvent.17 title = econvent.17.t desc = econvent.17.d picture = GFX_generic_education_event_picture is_triggered_only = yes mean_time_to_happen = { modifier = { factor = 1.5 check_variable = { education_law > 3 } } modifier = { factor = 1.5 check_variable = { education_law > 4 } } modifier = { factor = 1.5 OR = { has_idea = economic_boom has_idea = fast_growth has_idea = stable_growth } } } trigger = { NOT = { has_idea = non_state_actor } NOT = { has_country_flag = econ_recent_productivity_gain } check_variable = { overall_productivity < global.average_world_productivity } check_variable = { education_law > 2 } } immediate = { set_country_flag = { flag = econ_recent_productivity_gain value = 1 days = 365 } } option = { name = econvent.17.a log = "[GetDateText]: [This.GetName]: econvent.17.a executed" set_temp_variable = { temp_productivity_change = 10 } flat_productivity_change_effect = yes } } # Foreign Technology Spreads Domestically country_event = { id = econvent.18 title = econvent.18.t desc = econvent.18.d picture = GFX_generic_factory is_triggered_only = yes mean_time_to_happen = { modifier = { factor = 1.75 has_idea = globalized_trade_economy } modifier = { factor = 1.5 has_idea = international_bankers check_variable = { international_bankers_opinion > 60 } } modifier = { factor = 1.5 has_idea = industrial_conglomerates check_variable = { industrial_conglomerates_opinion > 60 } } } trigger = { NOT = { has_idea = non_state_actor } NOT = { has_country_flag = econ_recent_productivity_gain } check_variable = { overall_productivity < global.average_world_productivity } OR = { has_idea = export_economy has_idea = globalized_trade_economy } } immediate = { set_country_flag = { flag = econ_recent_productivity_gain value = 1 days = 365 } } option = { name = econvent.18.a log = "[GetDateText]: [This.GetName]: econvent.18.a executed" set_temp_variable = { temp_productivity_change = 10 } flat_productivity_change_effect = yes } } # Semiconductor Foundry Investment country_event = { id = econvent.19 title = econvent.19.t desc = econvent.19.d picture = GFX_generic_factory is_triggered_only = yes mean_time_to_happen = { modifier = { factor = 2 check_variable = { resource@microchips < 0 } } modifier = { factor = 1.5 has_idea = international_bankers check_variable = { international_bankers_opinion > 60 } } modifier = { factor = 1.5 has_idea = industrial_conglomerates check_variable = { industrial_conglomerates_opinion > 60 } } modifier = { factor = 1.5 OR = { has_idea = economic_boom has_idea = fast_growth has_idea = stable_growth } } } trigger = { NOT = { has_idea = non_state_actor } NOT = { has_country_flag = econ_recent_advanced_industry_investment } has_tech = microchip_production_1 check_variable = { resource@chromium > 0 } check_variable = { resource@tungsten > 0 } check_variable = { energy_difference_variable > 0 } any_controlled_state = { is_owned_by = ROOT free_building_slots = { building = microchip_plant size > 0 } } } immediate = { set_country_flag = { flag = econ_recent_advanced_industry_investment value = 1 days = 730 } } option = { name = econvent.19.a log = "[GetDateText]: [This.GetName]: econvent.19.a executed" random_owned_controlled_state = { limit = { free_building_slots = { building = microchip_plant size > 0 } } add_building_construction = { type = microchip_plant level = 1 instant_build = yes } } } } # Composite Industry Expansion country_event = { id = econvent.20 title = econvent.20.t desc = econvent.20.d picture = GFX_generic_factory is_triggered_only = yes mean_time_to_happen = { modifier = { factor = 2 check_variable = { resource@composites < 0 } } modifier = { factor = 1.5 has_idea = defense_industry check_variable = { defense_industry_opinion > 60 } } modifier = { factor = 1.5 has_idea = industrial_conglomerates check_variable = { industrial_conglomerates_opinion > 60 } } modifier = { factor = 1.5 OR = { check_variable = { military_factory_total > 0 } check_variable = { naval_factory_total > 0 } } } } trigger = { NOT = { has_idea = non_state_actor } NOT = { has_country_flag = econ_recent_advanced_industry_investment } has_tech = composite_production_1 check_variable = { resource@chromium > 0 } check_variable = { resource@rubber > 0 } check_variable = { resource@oil > 0 } check_variable = { energy_difference_variable > 0 } any_controlled_state = { is_owned_by = ROOT free_building_slots = { building = composite_plant size > 0 } } } immediate = { set_country_flag = { flag = econ_recent_advanced_industry_investment value = 1 days = 730 } } option = { name = econvent.20.a log = "[GetDateText]: [This.GetName]: econvent.20.a executed" random_owned_controlled_state = { limit = { free_building_slots = { building = composite_plant size > 0 } } add_building_construction = { type = composite_plant level = 1 instant_build = yes } } } } # Defense Contracts Expand Production country_event = { id = econvent.21 title = econvent.21.t desc = econvent.21.d picture = GFX_generic_factory is_triggered_only = yes mean_time_to_happen = { modifier = { factor = 2 has_war = yes } modifier = { factor = 1.5 check_variable = { military_law > 7 } } modifier = { factor = 2 has_idea = defense_industry check_variable = { defense_industry_opinion > 60 } } modifier = { factor = 1.5 OR = { has_idea = economic_boom has_idea = fast_growth has_idea = stable_growth } } } trigger = { NOT = { has_idea = non_state_actor } NOT = { has_idea = no_military } NOT = { has_country_flag = econ_recent_strategic_industry_expansion } check_variable = { military_law > 4 } check_variable = { total_unemployed_percentage_display > 0.01 } check_variable = { energy_difference_variable > 0 } any_controlled_state = { is_owned_by = ROOT free_building_slots = { building = arms_factory size > 0 } } } immediate = { set_country_flag = { flag = econ_recent_strategic_industry_expansion value = 1 days = 730 } } option = { name = econvent.21.a log = "[GetDateText]: [This.GetName]: econvent.21.a executed" random_owned_controlled_state = { limit = { free_building_slots = { building = arms_factory size > 0 } } add_building_construction = { type = arms_factory level = 1 instant_build = yes } } } } # Commercial Shipbuilding Orders Surge country_event = { id = econvent.22 title = econvent.22.t desc = econvent.22.d picture = GFX_cargo_ship is_triggered_only = yes mean_time_to_happen = { modifier = { factor = 1.5 check_variable = { naval_factory_total > 0 } } modifier = { factor = 2 has_idea = maritime_industry check_variable = { maritime_industry_opinion > 60 } } modifier = { factor = 1.5 has_idea = globalized_trade_economy } } trigger = { NOT = { has_idea = non_state_actor } NOT = { has_country_flag = econ_recent_strategic_industry_expansion } check_variable = { total_unemployed_percentage_display > 0.01 } check_variable = { energy_difference_variable > 0 } OR = { has_idea = export_economy has_idea = globalized_trade_economy AND = { has_idea = maritime_industry check_variable = { maritime_industry_opinion > 60 } } } any_controlled_state = { is_owned_by = ROOT is_coastal = yes free_building_slots = { building = dockyard size > 0 } } } immediate = { set_country_flag = { flag = econ_recent_strategic_industry_expansion value = 1 days = 730 } } option = { name = econvent.22.a log = "[GetDateText]: [This.GetName]: econvent.22.a executed" random_owned_controlled_state = { limit = { is_coastal = yes free_building_slots = { building = dockyard size > 0 } } add_building_construction = { type = dockyard level = 1 instant_build = yes } } } } # Bailout Requested country_event = { id = bankruptcy.1 title = bankruptcy.1.t desc = bankruptcy.1.d picture = GFX_stock_market is_triggered_only = yes # Help the Nation in Need option = { name = bankruptcy.1.a log = "[GetDateText]: [This.GetName]: bankruptcy.1.a executed" if = { limit = { FROM = { check_variable = { debt_bailout > 0 } } } set_temp_variable = { bailout_cost = FROM.debt_bailout } set_temp_variable = { treasury_change = { value = bailout_cost multiply = -0.75 } } modify_treasury_effect = yes custom_effect_tooltip = bankruptcy_bailout_influence_TT FROM = { set_temp_variable = { debt_change = { value = debt_bailout multiply = -1 } } modify_debt_effect = yes set_temp_variable = { percent_change = 15 } change_influence_percentage = yes hidden_effect = { clear_variable = debt_bailout } ingame_update_setup = yes news_event = { id = News_bankruptcy.1 hours = 3 } } } else = { custom_effect_tooltip = bankruptcy_bailout_lapsed_TT } ai_chance = { base = 90 modifier = { factor = 0.25 OR = { AND = { FROM = { original_tag = GRE } original_tag = TUR NOT = { GRE = { is_subject_of = TUR } } } AND = { FROM = { original_tag = TUR } original_tag = GRE NOT = { TUR = { is_subject_of = GRE } } } AND = { FROM = { original_tag = SER } original_tag = KOS NOT = { SER = { is_subject_of = KOS } } } AND = { FROM = { original_tag = KOS } original_tag = SER NOT = { KOS = { is_subject_of = SER } } } } } modifier = { factor = 1.05 FROM = { is_on_same_continent_as = PREV } } modifier = { factor = 1.05 has_government = FROM } modifier = { factor = 1.25 check_variable = { interest_rate < 5 } } modifier = { factor = 0.8 check_variable = { interest_rate > 5 } check_variable = { interest_rate < 10 } } modifier = { factor = 0.25 check_variable = { interest_rate > 10 } } modifier = { factor = 0 check_variable = { interest_rate > 15 } } modifier = { factor = 0 check_variable = { FROM.debt_bailout > gdp_total } } modifier = { factor = 0 check_variable = { treasury < 0 } check_variable = { interest_rate > 8 } } modifier = { factor = 0.25 check_variable = { treasury < 0 } check_variable = { interest_rate < 8 } } modifier = { factor = 0.15 check_variable = { potential_expense > potential_income } } modifier = { factor = 0.1 check_variable = { FROM.debt_bailout > treasury } } } } # We have no help to offer option = { name = bankruptcy.1.b log = "[GetDateText]: [This.GetName]: bankruptcy.1.b executed" FROM = { country_event = { id = bankruptcy.4 hours = 3 } } ai_chance = { base = 10 modifier = { factor = 2.5 check_variable = { interest_rate > 5 } check_variable = { interest_rate < 10 } } modifier = { factor = 7.5 check_variable = { interest_rate > 10 } } modifier = { factor = 7.5 check_variable = { interest_rate > 15 } } modifier = { factor = 5 FROM = { OR = { AND = { check_variable = { influence_array^0 = PREV.id } check_variable = { influence_array_val^0 < 4.99 } } AND = { check_variable = { influence_array^1 = PREV.id } check_variable = { influence_array_val^1 < 4.99 } } AND = { check_variable = { influence_array^2 = PREV.id } check_variable = { influence_array_val^2 < 4.99 } } AND = { check_variable = { influence_array^3 = PREV.id } check_variable = { influence_array_val^3 < 4.99 } } AND = { check_variable = { influence_array^4 = PREV.id } check_variable = { influence_array_val^4 < 4.99 } } AND = { check_variable = { influence_array^5 = PREV.id } check_variable = { influence_array_val^5 < 4.99 } } AND = { check_variable = { influence_array^6 = PREV.id } check_variable = { influence_array_val^6 < 4.99 } } } } } } } } ##Bailout Requested from 2nd biggest influencer### country_event = { id = bankruptcy.2 title = bankruptcy.2.t desc = bankruptcy.2.d picture = GFX_stock_market is_triggered_only = yes #Give it option = { name = bankruptcy.2.a log = "[GetDateText]: [This.GetName]: bankruptcy.2.a executed" if = { limit = { FROM = { check_variable = { debt_bailout > 0 } } } set_temp_variable = { bailout_cost = FROM.debt_bailout } set_temp_variable = { treasury_change = { value = bailout_cost multiply = -0.66666 } } modify_treasury_effect = yes custom_effect_tooltip = bankruptcy_bailout_influence_second_biggest_TT FROM = { set_temp_variable = { debt_change = { value = debt_bailout multiply = -1 } } modify_debt_effect = yes set_temp_variable = { percent_change = 10 } change_influence_percentage = yes hidden_effect = { clear_variable = debt_bailout } add_opinion_modifier = { target = ROOT modifier = granted_bailout } ingame_update_setup = yes news_event = { id = News_bankruptcy.2 hours = 3 } } } else = { custom_effect_tooltip = bankruptcy_bailout_lapsed_TT } ai_chance = { base = 90 modifier = { factor = 0.25 FROM = { original_tag = GRE } original_tag = TUR } modifier = { factor = 0.8 check_variable = { interest_rate > 5 } check_variable = { interest_rate < 10 } } modifier = { factor = 0.25 check_variable = { interest_rate > 10 } } modifier = { factor = 0 check_variable = { interest_rate > 15 } } modifier = { factor = 0 check_variable = { treasury < 0 } check_variable = { interest_rate > 8 } } modifier = { factor = 0.25 check_variable = { treasury < 0 } check_variable = { interest_rate < 8 } } modifier = { factor = 0 check_variable = { FROM.debt_bailout > gdp_total } } modifier = { factor = 0.15 check_variable = { potential_expense > potential_income } } modifier = { factor = 0.1 check_variable = { FROM.debt_bailout > treasury } } } } #We have no help to offer option = { name = bankruptcy.2.b log = "[GetDateText]: [This.GetName]: bankruptcy.2.b executed" FROM = { country_event = { id = bankruptcy.4 hours = 3 } } ai_chance = { base = 10 modifier = { factor = 2.5 check_variable = { interest_rate > 5 } check_variable = { interest_rate < 10 } } modifier = { factor = 7.5 check_variable = { interest_rate > 10 } } } } } ##Bailout Requested from neigbhour### country_event = { id = bankruptcy.3 title = bankruptcy.3.t desc = bankruptcy.3.d picture = GFX_stock_market is_triggered_only = yes #Give it option = { name = bankruptcy.3.a log = "[GetDateText]: [This.GetName]: bankruptcy.3.a executed" if = { limit = { FROM = { check_variable = { debt_bailout > 0 } } } set_temp_variable = { bailout_cost = FROM.debt_bailout } set_temp_variable = { treasury_change = { value = bailout_cost multiply = -0.5 } } modify_treasury_effect = yes custom_effect_tooltip = bankruptcy_bailout_influence_neighbour_TT FROM = { set_temp_variable = { debt_change = { value = debt_bailout multiply = -1 } } modify_debt_effect = yes set_temp_variable = { percent_change = 5 } change_influence_percentage = yes hidden_effect = { clear_variable = debt_bailout } add_opinion_modifier = { target = ROOT modifier = granted_bailout } ingame_update_setup = yes news_event = { id = News_bankruptcy.3 hours = 3 } } } else = { custom_effect_tooltip = bankruptcy_bailout_lapsed_TT } ai_chance = { base = 90 modifier = { factor = 0.25 FROM = { original_tag = GRE } original_tag = TUR } modifier = { factor = 0.8 check_variable = { interest_rate > 5 } check_variable = { interest_rate < 10 } } modifier = { factor = 0.25 check_variable = { interest_rate > 10 } } modifier = { factor = 0 check_variable = { interest_rate > 15 } } modifier = { factor = 0 check_variable = { treasury < 0 } check_variable = { interest_rate > 8 } } modifier = { factor = 0.25 check_variable = { treasury < 0 } check_variable = { interest_rate < 8 } } modifier = { factor = 0 check_variable = { FROM.debt_bailout > gdp_total } } modifier = { factor = 0.15 check_variable = { potential_expense > potential_income } } modifier = { factor = 0.1 check_variable = { FROM.debt_bailout > treasury } } } } #We have no help to offer option = { name = bankruptcy.3.b log = "[GetDateText]: [This.GetName]: bankruptcy.3.b executed" FROM = { country_event = { id = bankruptcy.4 hours = 3 } } ai_chance = { base = 10 modifier = { factor = 2.5 check_variable = { interest_rate > 5 } check_variable = { interest_rate < 10 } } modifier = { factor = 7.5 check_variable = { interest_rate > 10 } } } } } #We were denied the bailout country_event = { id = bankruptcy.4 title = bankruptcy.4.t desc = bankruptcy.4.d picture = GFX_banking_crisis is_triggered_only = yes #We were denied our bailout option = { name = bankruptcy.4.a log = "[GetDateText]: [This.GetName]: bankruptcy.4.a executed" add_opinion_modifier = { modifier = did_not_support_us target = FROM } clear_variable = debt_bailout } } ##Bailout Requested from overlord### country_event = { id = bankruptcy.5 title = bankruptcy.5.t desc = bankruptcy.5.d picture = GFX_stock_market is_triggered_only = yes #Give it option = { name = bankruptcy.5.a log = "[GetDateText]: [This.GetName]: bankruptcy.5.a executed" if = { limit = { FROM = { check_variable = { debt_bailout > 0 } } } set_temp_variable = { bailout_cost = FROM.debt_bailout } set_temp_variable = { treasury_change = { value = bailout_cost multiply = -0.5 } } modify_treasury_effect = yes custom_effect_tooltip = bankruptcy_bailout_influence_neighbour_TT FROM = { set_temp_variable = { debt_change = { value = debt_bailout multiply = -1 } } modify_debt_effect = yes set_temp_variable = { percent_change = 5 } change_influence_percentage = yes hidden_effect = { clear_variable = debt_bailout } add_opinion_modifier = { target = ROOT modifier = granted_bailout } if = { limit = { is_subject_of = ROOT } add_autonomy_ratio = { value = -0.35 localization = granted_bailout } } ingame_update_setup = yes news_event = { id = News_bankruptcy.3 hours = 3 } } } else = { custom_effect_tooltip = bankruptcy_bailout_lapsed_TT } ai_chance = { base = 90 modifier = { factor = 0.8 check_variable = { interest_rate > 5 } check_variable = { interest_rate < 10 } } modifier = { factor = 0.25 check_variable = { interest_rate > 10 } } modifier = { factor = 0 check_variable = { interest_rate > 15 } } modifier = { factor = 0 check_variable = { treasury < 0 } check_variable = { interest_rate > 8 } } modifier = { factor = 0.25 check_variable = { treasury < 0 } check_variable = { interest_rate < 8 } } modifier = { factor = 0 check_variable = { FROM.debt_bailout > gdp_total } } modifier = { factor = 0.15 check_variable = { potential_expense > potential_income } } modifier = { factor = 0.1 check_variable = { FROM.debt_bailout > treasury } } } } #We have no help to offer option = { name = bankruptcy.5.b log = "[GetDateText]: [This.GetName]: bankruptcy.5.b executed" FROM = { country_event = { id = bankruptcy.4 hours = 3 } } ai_chance = { base = 10 modifier = { factor = 2.5 check_variable = { interest_rate > 5 } check_variable = { interest_rate < 10 } } modifier = { factor = 7.5 check_variable = { interest_rate > 10 } } } } } ### Financial Collapse ### #Calls for new election - democratic country_event = { id = bankruptcy.10 title = bankruptcy.10.t desc = bankruptcy.10.d picture = GFX_election_rally is_triggered_only = yes #Allow new elections option = { name = bankruptcy.10.a log = "[GetDateText]: [This.GetName]: bankruptcy.10.a executed" hold_election = ROOT hidden_effect = { set_elections_48_months = yes } if = { limit = { is_major = yes } every_country = { limit = { is_ai = no } news_event = { days = 1 id = News_bankruptcy.4 } } } else = { every_country = { limit = { is_ai = no election_notification_scripted_trigger = yes } news_event = { days = 1 id = News_bankruptcy.4 } } } ai_chance = { base = 95 } } #Block new elections option = { name = bankruptcy.10.b log = "[GetDateText]: [This.GetName]: bankruptcy.10.b executed" country_event = { id = bankruptcy.11 days = 1 } ai_chance = { # AI won't block for the time being base = 5 } } } #Calls for new election - attempted coup country_event = { id = bankruptcy.11 title = bankruptcy.11.t desc = bankruptcy.11.d picture = GFX_election_rally is_triggered_only = yes #Side with the coup option = { name = bankruptcy.11.a log = "[GetDateText]: [This.GetName]: bankruptcy.11.a executed" set_temp_variable = { party_index = ruling_party } set_temp_variable = { civil_war_chance = party_pop_array^party_index } set_temp_variable = { no_civil_war_chance = 1 } subtract_from_temp_variable = { no_civil_war_chance = civil_war_chance } random_list = { no_civil_war_chance = { custom_effect_tooltip = bankruptcy.11.a_tt hidden_effect = { put_the_largest_opposition_party_in_power = yes } hidden_effect = { news_event = { id = News_bankruptcy.5 hours = 6 } } } civil_war_chance = { start_civil_war_as_the_strongest_opposition = yes hidden_effect = { news_event = { id = News_bankruptcy.6 hours = 6 } } } } ai_chance = { base = 50 } } #Against the coup option = { name = bankruptcy.11.b log = "[GetDateText]: [This.GetName]: bankruptcy.11.b executed" set_temp_variable = { party_index = ruling_party } set_temp_variable = { no_civil_war_chance = party_pop_array^party_index } set_temp_variable = { civil_war_chance = 1 } subtract_from_temp_variable = { civil_war_chance = no_civil_war_chance } random_list = { no_civil_war_chance = { custom_effect_tooltip = bankruptcy.11.b_tt } civil_war_chance = { start_civil_war_against_the_strongest_opposition = yes hidden_effect = { news_event = { id = News_bankruptcy.6 hours = 6 } } } } ai_chance = { base = 50 } } } #Calls for leadership change - non-democratic country_event = { id = bankruptcy.12 title = bankruptcy.12.t desc = bankruptcy.12.d picture = GFX_election_rally is_triggered_only = yes #Relinquish power option = { name = bankruptcy.12.a log = "[GetDateText]: [This.GetName]: bankruptcy.12.a executed" hidden_effect = { put_the_largest_opposition_party_in_power = yes } custom_effect_tooltip = bankruptcy.11.a_tt if = { limit = { is_major = yes } every_country = { limit = { is_ai = no } news_event = { days = 1 id = News_bankruptcy.5 } } } else = { every_country = { limit = { is_ai = no election_notification_scripted_trigger = yes } news_event = { days = 1 id = News_bankruptcy.5 } } } ai_chance = { base = 95 } } #Block new elections option = { name = bankruptcy.12.b log = "[GetDateText]: [This.GetName]: bankruptcy.12.b executed" country_event = { id = bankruptcy.11 days = 1 } ai_chance = { base = 5 } } } #Country fails to pay their defaulted debt country_event = { id = bankruptcy.13 title = bankruptcy.13.t desc = bankruptcy.13.d picture = GFX_election_rally is_triggered_only = yes option = { name = bankruptcy.13.a #Agree log = "[GetDateText]: [This.GetName]: bankruptcy.13.a executed" trigger = { FROM = { NOT = { OR = { has_idea = non_state_actor is_in_array = { global.Unrecognised_States = THIS } } } } } set_temp_variable = { wargoal_on = FROM } add_threat_from_wargoal_effect = yes create_wargoal = { type = puppet_wargoal_focus target = FROM } ai_chance = { base = 40 modifier = { factor = 1.6 #is_neighbor_of = FROM has_government = nationalist } modifier = { factor = 0.3 #is_neighbor_of = FROM has_government = neutrality } modifier = { factor = 1.5 FROM = { is_ai = yes } difficulty > 2 } modifier = { factor = 1.5 FROM = { is_ai = yes } difficulty > 3 } modifier = { factor = 1.5 check_variable = { FROM.influence_array^0 = THIS.id } check_variable = { FROM.influence_array_val^0 > 59.99 } } modifier = { factor = 0.75 naval_strength_ratio = { tag = FROM ratio < 0.75 } } modifier = { factor = 1.5 naval_strength_ratio = { tag = FROM ratio > 1.25 } } modifier = { factor = 0 OR = { #Don't attack Western if Western AND = { has_government = democratic FROM = { has_government = democratic } } #Don't attack Emerging if Emerging AND = { has_government = communism FROM = { has_government = communism } } #Don't get new enemies has_war = yes has_civil_war = yes #Don't attack if they are land locked non-neighbour AND = { NOT = { is_neighbor_of = FROM } FROM = { NOT = { any_owned_state = { is_coastal = yes } } } } #Ignore if they are small and not a neighbour AND = { check_variable = { FROM.gdp_total < 10 } NOT = { is_neighbor_of = FROM } } #Dont attack stupid AI. This is disable has_game_rule = { rule = rule_enable_ai_debt_war option = yes } } } modifier = { # To prevent countries from suiciding because of Fuckestan not having money factor = 0 FROM = { OR = { any_of_scopes = { array = global.CSTO_member has_guaranteed = PREV } has_idea = NATO_member } } } modifier = { factor = 0 has_game_rule = { rule = rule_disable_nato option = yes } FROM = { OR = { any_of_scopes = { array = global.nato_members has_guaranteed = PREV } has_idea = NATO_member } } } modifier = { factor = 0 is_historical_focus_on = yes } modifier = { factor = 0 capital_scope = { is_russia_state = yes } OR = { any_state_in = { ai_area = 12 # Mediterranean Sea is_controlled_by = PREV } any_state_in = { ai_area = 15 # Exit to Atlantic Ocean is_controlled_by = PREV } } } } } # Reject the Offer option = { name = bankruptcy.13.b ai_chance = { base = 60 modifier = { factor = 0.1 has_government = nationalist } modifier = { factor = 2 has_government = neutrality } modifier = { factor = 2 has_idea = NATO_member } } } } # Subject fails to pay on defaulted debt country_event = { id = bankruptcy.14 title = bankruptcy.14.t desc = bankruptcy.14.d picture = GFX_election_rally is_triggered_only = yes # Agree option = { name = bankruptcy.14.a log = "[GetDateText]: [This.GetName]: bankruptcy.14.a executed" set_temp_variable = { treasury_change = debt_from_subject } modify_treasury_effect = yes clear_variable = debt_from_subject FROM = { add_autonomy_score = { value = -1000 } } } } #### IMF EVENTS #### # Lower bureaucracy country_event = { id = bankruptcy.100 title = bankruptcy.100.t desc = bankruptcy.100.d picture = GFX_stock_market is_triggered_only = yes # Accept Offer option = { name = bankruptcy.100.a log = "[GetDateText]: [This.GetName]: bankruptcy.100.a executed" if = { limit = { check_variable = { gdp_per_capita < 5 } } decrease_centralization_2 = yes } else = { decrease_centralization = yes } block_bureau_increase = yes set_temp_variable = { temp_opinion = 5 } change_industrial_conglomerates_opinion = yes change_small_medium_business_owners_opinion = yes change_international_bankers_opinion = yes change_oligarchs_opinion = yes imf_debt_relief_accepted_effect = yes ai_chance = { base = 90 } } # Reject offer option = { name = bankruptcy.100.b log = "[GetDateText]: [This.GetName]: bankruptcy.100.b executed" imf_debt_relief_rejected_effect = yes set_temp_variable = { temp_opinion = -5 } change_industrial_conglomerates_opinion = yes change_small_medium_business_owners_opinion = yes change_international_bankers_opinion = yes change_oligarchs_opinion = yes ai_chance = { base = 10 } } } #downsize military country_event = { id = bankruptcy.101 title = bankruptcy.101.t desc = bankruptcy.101.d picture = GFX_stock_market is_triggered_only = yes option = { name = bankruptcy.101.a #Agree log = "[GetDateText]: [This.GetName]: bankruptcy.101.a executed" if = { limit = { check_variable = { gdp_per_capita < 5 } } decrease_military_spending_2 = yes } else = { decrease_military_spending = yes } block_defence_increase = yes set_temp_variable = { temp_opinion = -5 } change_the_military_opinion = yes imf_debt_relief_accepted_effect = yes ai_chance = { base = 90 } } option = { name = bankruptcy.101.b #Reject offer log = "[GetDateText]: [This.GetName]: bankruptcy.101.b executed" imf_debt_relief_rejected_effect = yes set_temp_variable = { temp_opinion = 5 } change_the_military_opinion = yes ai_chance = { base = 10 } } } #downsize police country_event = { id = bankruptcy.102 title = bankruptcy.102.t desc = bankruptcy.102.d picture = GFX_stock_market is_triggered_only = yes option = { name = bankruptcy.102.a #Agree log = "[GetDateText]: [This.GetName]: bankruptcy.102.a executed" if = { limit = { check_variable = { gdp_per_capita < 5 } } decrease_policing_budget_2 = yes } else = { decrease_policing_budget = yes } block_police_increase = yes set_temp_variable = { temp_opinion = -5 } change_intelligence_community_opinion = yes imf_debt_relief_accepted_effect = yes ai_chance = { base = 90 } } option = { name = bankruptcy.102.b #Reject offer log = "[GetDateText]: [This.GetName]: bankruptcy.102.b executed" imf_debt_relief_rejected_effect = yes set_temp_variable = { temp_opinion = 5 } change_intelligence_community_opinion = yes ai_chance = { base = 10 } } } #cut education spending country_event = { id = bankruptcy.103 title = bankruptcy.103.t desc = bankruptcy.103.d picture = GFX_stock_market is_triggered_only = yes option = { name = bankruptcy.103.a #Agree log = "[GetDateText]: [This.GetName]: bankruptcy.103.a executed" if = { limit = { check_variable = { gdp_per_capita < 5 } } decrease_education_budget_2 = yes } else = { decrease_education_budget = yes } block_edu_increase = yes set_temp_variable = { temp_opinion = -5 } change_farmers_opinion = yes change_labour_unions_opinion = yes change_small_medium_business_owners_opinion = yes imf_debt_relief_accepted_effect = yes ai_chance = { base = 90 } } option = { name = bankruptcy.103.b #Reject offer log = "[GetDateText]: [This.GetName]: bankruptcy.103.b executed" set_temp_variable = { temp_opinion = 5 } change_farmers_opinion = yes change_labour_unions_opinion = yes change_small_medium_business_owners_opinion = yes imf_debt_relief_rejected_effect = yes ai_chance = { base = 10 } } } #cut health spending country_event = { id = bankruptcy.104 title = bankruptcy.104.t desc = bankruptcy.104.d picture = GFX_stock_market is_triggered_only = yes option = { name = bankruptcy.104.a #Agree log = "[GetDateText]: [This.GetName]: bankruptcy.104.a executed" if = { limit = { check_variable = { gdp_per_capita < 5 } } decrease_healthcare_budget_2 = yes } else = { decrease_healthcare_budget = yes } block_health_increase = yes set_temp_variable = { temp_opinion = -5 } change_communist_cadres_opinion = yes change_labour_unions_opinion = yes imf_debt_relief_accepted_effect = yes ai_chance = { base = 90 } } option = { name = bankruptcy.104.b #Reject offer log = "[GetDateText]: [This.GetName]: bankruptcy.104.b executed" imf_debt_relief_rejected_effect = yes set_temp_variable = { temp_opinion = 5 } change_communist_cadres_opinion = yes change_labour_unions_opinion = yes ai_chance = { base = 10 } } } #cut social spending country_event = { id = bankruptcy.105 title = bankruptcy.105.t desc = bankruptcy.105.d picture = GFX_stock_market is_triggered_only = yes option = { name = bankruptcy.105.a #Agree log = "[GetDateText]: [This.GetName]: bankruptcy.105.a executed" if = { limit = { check_variable = { gdp_per_capita < 5 } } decrease_social_spending_2 = yes } else = { decrease_social_spending = yes } block_social_increase = yes set_temp_variable = { temp_opinion = -5 } change_communist_cadres_opinion = yes change_labour_unions_opinion = yes imf_debt_relief_accepted_effect = yes ai_chance = { base = 90 } } option = { name = bankruptcy.105.b #Reject offer log = "[GetDateText]: [This.GetName]: bankruptcy.105.b executed" imf_debt_relief_rejected_effect = yes set_temp_variable = { temp_opinion = 5 } change_communist_cadres_opinion = yes change_labour_unions_opinion = yes ai_chance = { base = 10 } } } #increase resource exports country_event = { id = bankruptcy.106 title = bankruptcy.106.t desc = bankruptcy.106.d picture = GFX_stock_market is_triggered_only = yes option = { name = bankruptcy.106.a #Agree log = "[GetDateText]: [This.GetName]: bankruptcy.106.a executed" if = { limit = { check_variable = { gdp_per_capita < 5 } } set_exports_to_max = yes } else = { increase_exports = yes } block_trade_decrease = yes set_temp_variable = { temp_opinion = 5 } change_fossil_fuel_industry_opinion = yes set_temp_variable = { temp_opinion = -5 } change_oligarchs_opinion = yes imf_debt_relief_accepted_effect = yes ai_chance = { base = 90 } } option = { name = bankruptcy.106.b #Reject offer log = "[GetDateText]: [This.GetName]: bankruptcy.106.b executed" imf_debt_relief_rejected_effect = yes set_temp_variable = { temp_opinion = -5 } change_fossil_fuel_industry_opinion = yes set_temp_variable = { temp_opinion = 5 } change_oligarchs_opinion = yes ai_chance = { base = 10 } } } # Corruption country_event = { id = bankruptcy.107 title = bankruptcy.107.t desc = bankruptcy.107.d picture = GFX_stock_market is_triggered_only = yes # Agree option = { name = bankruptcy.107.a log = "[GetDateText]: [This.GetName]: bankruptcy.107.a executed" lose_pp_for_month = yes increase_corruption = yes imf_debt_relief_accepted_effect = yes ai_chance = { base = 90 } } option = { name = bankruptcy.107.b #Reject offer log = "[GetDateText]: [This.GetName]: bankruptcy.107.b executed" imf_debt_relief_rejected_effect = yes ai_chance = { base = 10 } } } #land reform country_event = { id = bankruptcy.108 title = bankruptcy.108.t desc = bankruptcy.108.d picture = GFX_stock_market is_triggered_only = yes option = { name = bankruptcy.108.a #Agree log = "[GetDateText]: [This.GetName]: bankruptcy.108.a executed" if = { limit = { any_owned_state = { free_building_slots = { building = industrial_complex size > 2 } } } random_owned_state = { limit = { free_building_slots = { building = industrial_complex size > 2 } } if = { limit = { check_variable = { ROOT.gdp_per_capita < 5 } } add_extra_state_shared_building_slots = -2 } else = { add_extra_state_shared_building_slots = -1 } } } else = { random_owned_state = { limit = { free_building_slots = { building = industrial_complex size > 0 } } add_extra_state_shared_building_slots = -1 } } set_temp_variable = { temp_opinion = -5 } change_farmers_opinion = yes set_temp_variable = { temp_opinion = 5 } change_landowners_opinion = yes imf_debt_relief_accepted_effect = yes ai_chance = { base = 90 } } option = { name = bankruptcy.108.b #Reject offer log = "[GetDateText]: [This.GetName]: bankruptcy.108.b executed" set_temp_variable = { temp_opinion = 5 } change_farmers_opinion = yes set_temp_variable = { temp_opinion = -5 } change_landowners_opinion = yes imf_debt_relief_rejected_effect = yes ai_chance = { base = 10 } } } #bankers in government country_event = { id = bankruptcy.109 title = bankruptcy.109.t desc = bankruptcy.109.d picture = GFX_stock_market is_triggered_only = yes option = { name = bankruptcy.109.a #Agree log = "[GetDateText]: [This.GetName]: bankruptcy.109.a executed" if = { limit = { check_variable = { gdp_per_capita < 5 } } set_temp_variable = { percent_change = -10 } change_domestic_influence_percentage = yes } else = { set_temp_variable = { percent_change = -5 } change_domestic_influence_percentage = yes } set_temp_variable = { temp_opinion = 5 } change_international_bankers_opinion = yes imf_debt_relief_accepted_effect = yes ai_chance = { base = 90 } } option = { name = bankruptcy.109.b #Reject offer log = "[GetDateText]: [This.GetName]: bankruptcy.109.b executed" imf_debt_relief_rejected_effect = yes set_temp_variable = { temp_opinion = -5 } change_international_bankers_opinion = yes ai_chance = { base = 10 } } } #confiscate church funds country_event = { id = bankruptcy.110 title = bankruptcy.110.t desc = bankruptcy.110.d picture = GFX_stock_market is_triggered_only = yes option = { name = bankruptcy.110.a #Agree log = "[GetDateText]: [This.GetName]: bankruptcy.110.a executed" set_temp_variable = { temp_opinion = -5 } change_the_clergy_opinion = yes change_the_priesthood_opinion = yes change_the_ulema_opinion = yes change_the_wahabi_ulema_opinion = yes imf_debt_relief_accepted_effect = yes ai_chance = { base = 90 } } option = { name = bankruptcy.110.b #Reject offer log = "[GetDateText]: [This.GetName]: bankruptcy.110.b executed" imf_debt_relief_rejected_effect = yes set_temp_variable = { temp_opinion = 5 } change_the_clergy_opinion = yes change_the_priesthood_opinion = yes change_the_ulema_opinion = yes change_the_wahabi_ulema_opinion = yes ai_chance = { base = 10 } } } #dismantle military factories country_event = { id = bankruptcy.111 title = bankruptcy.111.t desc = bankruptcy.111.d picture = GFX_stock_market is_triggered_only = yes option = { name = bankruptcy.111.a #Agree log = "[GetDateText]: [This.GetName]: bankruptcy.111.a executed" if = { limit = { check_variable = { gdp_per_capita < 5 } } random_owned_state = { limit = { arms_factory > 1 } remove_building = { type = arms_factory level = 2 } } } else = { random_owned_state = { limit = { arms_factory > 0 } remove_building = { type = arms_factory level = 1 } } } # Internal Faction Effect set_temp_variable = { temp_opinion = -10 } change_the_military_opinion = yes change_defense_industry_opinion = yes # Economic Stuff imf_debt_relief_accepted_effect = yes ai_chance = { base = 90 } } option = { name = bankruptcy.111.b #Reject offer log = "[GetDateText]: [This.GetName]: bankruptcy.111.b executed" imf_debt_relief_rejected_effect = yes set_temp_variable = { temp_opinion = 5 } change_the_military_opinion = yes change_defense_industry_opinion = yes ai_chance = { base = 10 } } } #dismantle naval dockyards country_event = { id = bankruptcy.112 title = bankruptcy.112.t desc = bankruptcy.112.d picture = GFX_stock_market is_triggered_only = yes option = { name = bankruptcy.112.a #Agree log = "[GetDateText]: [This.GetName]: bankruptcy.112.a executed" # Dismantles the Dockyards if = { limit = { check_variable = { gdp_per_capita < 5 } } random_owned_state = { limit = { dockyard > 1 } remove_building = { type = dockyard level = 2 } } } else = { random_owned_state = { limit = { dockyard > 0 } remove_building = { type = dockyard level = 1 } } } # Maritime Industry No likey set_temp_variable = { temp_opinion = -10 } change_maritime_industry_opinion = yes # Economic Effects imf_debt_relief_accepted_effect = yes ai_chance = { base = 90 } } option = { name = bankruptcy.112.b #Reject offer log = "[GetDateText]: [This.GetName]: bankruptcy.112.b executed" imf_debt_relief_rejected_effect = yes set_temp_variable = { temp_opinion = 5 } change_maritime_industry_opinion = yes ai_chance = { base = 10 } } } #raise taxes country_event = { id = bankruptcy.113 title = bankruptcy.113.t desc = bankruptcy.113.d picture = GFX_stock_market is_triggered_only = yes option = { name = bankruptcy.113.a #Agree log = "[GetDateText]: [This.GetName]: bankruptcy.113.a executed" if = { limit = { check_variable = { gdp_per_capita < 5 } } set_temp_variable = { corp_change = 10 } modify_corporate_tax_rate_effect = yes set_temp_variable = { pop_change = 10 } modify_population_tax_rate_effect = yes set_temp_variable = { party_popularity_increase = -0.10 } set_temp_variable = { temp_outlook_increase = -0.10 } change_relative_party_popularity = yes } else = { set_temp_variable = { corp_change = 5 } modify_corporate_tax_rate_effect = yes set_temp_variable = { pop_change = 5 } modify_population_tax_rate_effect = yes set_temp_variable = { party_popularity_increase = -0.05 } set_temp_variable = { temp_outlook_increase = -0.05 } change_relative_party_popularity = yes } clr_country_flag = no_personal_tax_rate_change set_country_flag = { flag = no_personal_tax_rate_change days = 365 value = 1 } clr_country_flag = no_corporate_tax_rate_change set_country_flag = { flag = no_corporate_tax_rate_change days = 365 value = 1 } calculate_tax_rate = yes imf_debt_relief_accepted_effect = yes #Internal Faction Effects set_temp_variable = { temp_opinion = -5 } change_wall_street_opinion = yes change_the_donju_opinion = yes change_small_medium_business_owners_opinion = yes change_industrial_conglomerates_opinion = yes change_international_bankers_opinion = yes change_chaebols_opinion = yes change_oligarchs_opinion = yes change_landowners_opinion = yes change_farmers_opinion = yes change_labour_unions_opinion = yes ai_chance = { base = 90 } } option = { name = bankruptcy.113.b #Reject offer log = "[GetDateText]: [This.GetName]: bankruptcy.113.b executed" imf_debt_relief_rejected_effect = yes set_temp_variable = { temp_opinion = 5 } change_wall_street_opinion = yes change_the_donju_opinion = yes change_small_medium_business_owners_opinion = yes change_industrial_conglomerates_opinion = yes change_international_bankers_opinion = yes change_chaebols_opinion = yes change_oligarchs_opinion = yes change_landowners_opinion = yes change_farmers_opinion = yes change_labour_unions_opinion = yes ai_chance = { base = 10 } } } #sell international investments country_event = { id = bankruptcy.114 title = bankruptcy.114.t desc = bankruptcy.114.d picture = GFX_stock_market is_triggered_only = yes trigger = { check_variable = { int_investments > 0 } } option = { name = bankruptcy.114.a #Agree log = "[GetDateText]: [This.GetName]: bankruptcy.114.a executed" if = { limit = { check_variable = { gdp_per_capita < 5 } } custom_effect_tooltip = bankruptcy.114_low_gdp_tt set_temp_variable = { int_investment_addition = int_investments } multiply_temp_variable = { int_investment_addition = 0.70 } } else = { custom_effect_tooltip = bankruptcy.114_tt set_temp_variable = { int_investment_addition = int_investments } multiply_temp_variable = { int_investment_addition = 0.80 } } set_variable = { int_investments = 0 } add_to_variable = { debt_bailout = int_investment_addition } custom_effect_tooltip = bailout_given_tt if = { limit = { check_variable = { debt_bailout > debt } } subtract_from_variable = { debt_bailout = debt } set_variable = { debt = 0 } add_to_variable = { treasury = debt_bailout } } else = { subtract_from_variable = { debt = debt_bailout } } clear_variable = debt_bailout add_timed_idea = { idea = IMF_debt_relief_received days = 360 } set_temp_variable = { temp_opinion = -5 } change_international_bankers_opinion = yes ingame_update_setup = yes ai_chance = { base = 90 } } option = { name = bankruptcy.114.b #Reject offer log = "[GetDateText]: [This.GetName]: bankruptcy.114.b executed" imf_debt_relief_rejected_effect = yes set_temp_variable = { temp_opinion = 5 } change_international_bankers_opinion = yes ai_chance = { base = 10 } } } # Dismantle State Owned industry country_event = { id = bankruptcy.115 title = bankruptcy.115.t desc = bankruptcy.115.d picture = GFX_stock_market is_triggered_only = yes option = { name = bankruptcy.115.a #Agree log = "[GetDateText]: [This.GetName]: bankruptcy.115.a executed" if = { limit = { check_variable = { gdp_per_capita < 5 } } random_owned_state = { limit = { industrial_complex > 1 } remove_building = { type = industrial_complex level = 2 } } } else = { random_owned_state = { limit = { industrial_complex > 0 } remove_building = { type = industrial_complex level = 1 } } } imf_debt_relief_accepted_effect = yes ai_chance = { base = 90 } } option = { name = bankruptcy.115.b #Reject offer log = "[GetDateText]: [This.GetName]: bankruptcy.115.b executed" imf_debt_relief_rejected_effect = yes ai_chance = { base = 10 } } } ##Financial collapse stuff #Western_Autocracy makes a speech country_event = { id = bankruptcy.200 title = bankruptcy.200.t desc = bankruptcy.200.d picture = GFX_election_rally is_triggered_only = yes mean_time_to_happen = { modifier = { factor = 0.25 check_variable = { party_banned_array^0 = 1 } } modifier = { factor = 2 has_active_mission = bankruptcy_incoming_collapse } modifier = { factor = 0.25 check_variable = { party_pop_array^0 < 1 } } } trigger = { check_variable = { interest_rate > 14.999 } NOT = { western_autocrats_are_in_power = yes } NOT = { is_in_array = { gov_coalition_array = 0 } } } option = { name = bankruptcy.200.a #Do nothing log = "[GetDateText]: [This.GetName]: bankruptcy.200.a executed" set_temp_variable = { party_index = 0 } set_temp_variable = { party_popularity_increase = 0.05 } set_temp_variable = { temp_outlook_increase = 0.05 } change_relative_party_popularity = yes ai_chance = { base = 30 } } option = { name = bankruptcy.200.b #Counter-campaign log = "[GetDateText]: [This.GetName]: bankruptcy.200.b executed" lose_pp_for_15_days = yes set_temp_variable = { party_index = 0 } set_temp_variable = { party_popularity_increase = 0.02 } set_temp_variable = { temp_outlook_increase = 0.02 } change_relative_party_popularity = yes ai_chance = { base = 70 } } } #conservatism makes a speech country_event = { id = bankruptcy.201 title = bankruptcy.201.t desc = bankruptcy.201.d picture = GFX_election_rally is_triggered_only = yes mean_time_to_happen = { modifier = { factor = 0.25 check_variable = { party_banned_array^1 = 1 } } modifier = { factor = 2 has_active_mission = bankruptcy_incoming_collapse } modifier = { factor = 0.25 check_variable = { party_pop_array^1 < 0.01 } } } trigger = { check_variable = { interest_rate > 14.999 } NOT = { check_variable = { ruling_party = 1 } } NOT = { is_in_array = { gov_coalition_array = 1 } } } option = { name = bankruptcy.201.a #Do nothing log = "[GetDateText]: [This.GetName]: bankruptcy.201.a executed" set_temp_variable = { party_index = 1 } set_temp_variable = { party_popularity_increase = 0.05 } set_temp_variable = { temp_outlook_increase = 0.05 } change_relative_party_popularity = yes ai_chance = { base = 30 } } option = { name = bankruptcy.201.b #Counter-campaign log = "[GetDateText]: [This.GetName]: bankruptcy.201.b executed" lose_pp_for_15_days = yes set_temp_variable = { party_index = 1 } set_temp_variable = { party_popularity_increase = 0.02 } set_temp_variable = { temp_outlook_increase = 0.02 } change_relative_party_popularity = yes ai_chance = { base = 70 } } } #liberalism makes a speech country_event = { id = bankruptcy.202 title = bankruptcy.202.t desc = bankruptcy.202.d picture = GFX_election_rally is_triggered_only = yes mean_time_to_happen = { modifier = { factor = 0.25 check_variable = { party_banned_array^2 = 1 } } modifier = { factor = 2 has_active_mission = bankruptcy_incoming_collapse } modifier = { factor = 0.25 check_variable = { party_pop_array^2 < 0.01 } } } trigger = { check_variable = { interest_rate > 14.999 } NOT = { check_variable = { ruling_party = 2 } } NOT = { is_in_array = { gov_coalition_array = 2 } } } option = { name = bankruptcy.202.a #Do nothing log = "[GetDateText]: [This.GetName]: bankruptcy.202.a executed" set_temp_variable = { party_index = 1 } set_temp_variable = { party_popularity_increase = 0.05 } set_temp_variable = { temp_outlook_increase = 0.05 } change_relative_party_popularity = yes ai_chance = { base = 30 } } option = { name = bankruptcy.202.b #Counter-campaign log = "[GetDateText]: [This.GetName]: bankruptcy.202.b executed" lose_pp_for_15_days = yes set_temp_variable = { party_index = 2 } set_temp_variable = { party_popularity_increase = 0.02 } set_temp_variable = { temp_outlook_increase = 0.02 } change_relative_party_popularity = yes ai_chance = { base = 70 } } } #socialism makes a speech country_event = { id = bankruptcy.203 title = bankruptcy.203.t desc = bankruptcy.203.d picture = GFX_election_rally is_triggered_only = yes mean_time_to_happen = { modifier = { factor = 0.25 check_variable = { party_banned_array^3 = 1 } } modifier = { factor = 2 has_active_mission = bankruptcy_incoming_collapse } modifier = { factor = 0.25 check_variable = { party_pop_array^3 < 0.01 } } } trigger = { check_variable = { interest_rate > 14.999 } NOT = { check_variable = { ruling_party = 3 } } NOT = { is_in_array = { gov_coalition_array = 3 } } } option = { name = bankruptcy.203.a #Do nothing log = "[GetDateText]: [This.GetName]: bankruptcy.203.a executed" set_temp_variable = { party_index = 3 } set_temp_variable = { party_popularity_increase = 0.05 } set_temp_variable = { temp_outlook_increase = 0.05 } change_relative_party_popularity = yes ai_chance = { base = 30 } } option = { name = bankruptcy.203.b #Counter-campaign log = "[GetDateText]: [This.GetName]: bankruptcy.203.b executed" lose_pp_for_15_days = yes set_temp_variable = { party_index = 3 } set_temp_variable = { party_popularity_increase = 0.02 } set_temp_variable = { temp_outlook_increase = 0.02 } change_relative_party_popularity = yes ai_chance = { base = 70 } } } #Communist-State makes a speech country_event = { id = bankruptcy.204 title = bankruptcy.204.t desc = bankruptcy.204.d picture = GFX_election_rally is_triggered_only = yes mean_time_to_happen = { modifier = { factor = 0.25 check_variable = { party_banned_array^4 = 1 } } modifier = { factor = 2 has_active_mission = bankruptcy_incoming_collapse } modifier = { factor = 0.25 check_variable = { party_pop_array^4 < 0.01 } } } trigger = { check_variable = { interest_rate > 14.999 } NOT = { check_variable = { ruling_party = 4 } } NOT = { is_in_array = { gov_coalition_array = 4 } } } option = { name = bankruptcy.204.a #Do nothing log = "[GetDateText]: [This.GetName]: bankruptcy.204.a executed" set_temp_variable = { party_index = 4 } set_temp_variable = { party_popularity_increase = 0.05 } set_temp_variable = { temp_outlook_increase = 0.05 } change_relative_party_popularity = yes ai_chance = { base = 30 } } option = { name = bankruptcy.204.b #Counter-campaign log = "[GetDateText]: [This.GetName]: bankruptcy.204.b executed" lose_pp_for_15_days = yes set_temp_variable = { party_index = 4 } set_temp_variable = { party_popularity_increase = 0.02 } set_temp_variable = { temp_outlook_increase = 0.02 } change_relative_party_popularity = yes ai_chance = { base = 70 } } } #anarchist_communism makes a speech country_event = { id = bankruptcy.205 title = bankruptcy.205.t desc = bankruptcy.205.d picture = GFX_election_rally is_triggered_only = yes mean_time_to_happen = { modifier = { factor = 0.25 check_variable = { party_banned_array^5 = 1 } } modifier = { factor = 2 has_active_mission = bankruptcy_incoming_collapse } modifier = { factor = 0.25 check_variable = { party_pop_array^5 < 0.01 } } } trigger = { check_variable = { interest_rate > 14.999 } NOT = { check_variable = { ruling_party = 5 } } NOT = { is_in_array = { gov_coalition_array = 5 } } } option = { name = bankruptcy.205.a #Do nothing log = "[GetDateText]: [This.GetName]: bankruptcy.205.a executed" set_temp_variable = { party_index = 5 } set_temp_variable = { party_popularity_increase = 0.05 } set_temp_variable = { temp_outlook_increase = 0.05 } change_relative_party_popularity = yes ai_chance = { base = 30 } } option = { name = bankruptcy.205.b #Counter-campaign log = "[GetDateText]: [This.GetName]: bankruptcy.205.b executed" lose_pp_for_15_days = yes set_temp_variable = { party_index = 5 } set_temp_variable = { party_popularity_increase = 0.02 } set_temp_variable = { temp_outlook_increase = 0.02 } change_relative_party_popularity = yes ai_chance = { base = 70 } } } #Conservative makes a speech country_event = { id = bankruptcy.206 title = bankruptcy.206.t desc = bankruptcy.206.d picture = GFX_election_rally is_triggered_only = yes mean_time_to_happen = { modifier = { factor = 0.25 check_variable = { party_banned_array^6 = 1 } } modifier = { factor = 2 has_active_mission = bankruptcy_incoming_collapse } modifier = { factor = 0.25 check_variable = { party_pop_array^6 < 0.01 } } } trigger = { check_variable = { interest_rate > 14.999 } NOT = { check_variable = { ruling_party = 6 } } NOT = { is_in_array = { gov_coalition_array = 6 } } } option = { name = bankruptcy.206.a #Do nothing log = "[GetDateText]: [This.GetName]: bankruptcy.206.a executed" set_temp_variable = { party_index = 6 } set_temp_variable = { party_popularity_increase = 0.05 } set_temp_variable = { temp_outlook_increase = 0.05 } change_relative_party_popularity = yes ai_chance = { base = 30 } } option = { name = bankruptcy.206.b #Counter-campaign log = "[GetDateText]: [This.GetName]: bankruptcy.206.b executed" lose_pp_for_15_days = yes set_temp_variable = { party_index = 6 } set_temp_variable = { party_popularity_increase = 0.02 } set_temp_variable = { temp_outlook_increase = 0.02 } change_relative_party_popularity = yes ai_chance = { base = 70 } } } #Autocracy makes a speech country_event = { id = bankruptcy.207 title = bankruptcy.207.t desc = bankruptcy.207.d picture = GFX_election_rally is_triggered_only = yes mean_time_to_happen = { modifier = { factor = 0.25 check_variable = { party_banned_array^7 = 1 } } modifier = { factor = 2 has_active_mission = bankruptcy_incoming_collapse } modifier = { factor = 0.25 check_variable = { party_pop_array^7 < 0.01 } } } trigger = { check_variable = { interest_rate > 14.999 } NOT = { check_variable = { ruling_party = 7 } } NOT = { is_in_array = { gov_coalition_array = 7 } } } option = { name = bankruptcy.207.a #Do nothing log = "[GetDateText]: [This.GetName]: bankruptcy.207.a executed" set_temp_variable = { party_index = 7 } set_temp_variable = { party_popularity_increase = 0.05 } set_temp_variable = { temp_outlook_increase = 0.05 } change_relative_party_popularity = yes ai_chance = { base = 30 } } option = { name = bankruptcy.207.b #Counter-campaign log = "[GetDateText]: [This.GetName]: bankruptcy.207.b executed" lose_pp_for_15_days = yes set_temp_variable = { party_index = 7 } set_temp_variable = { party_popularity_increase = 0.02 } set_temp_variable = { temp_outlook_increase = 0.02 } change_relative_party_popularity = yes ai_chance = { base = 70 } } } #Mod_Vilayat_e_Faqih makes a speech country_event = { id = bankruptcy.208 title = bankruptcy.208.t desc = bankruptcy.208.d picture = GFX_election_rally is_triggered_only = yes mean_time_to_happen = { modifier = { factor = 0.25 check_variable = { party_banned_array^8 = 1 } } modifier = { factor = 2 has_active_mission = bankruptcy_incoming_collapse } modifier = { factor = 0.25 check_variable = { party_pop_array^8 < 0.01 } } } trigger = { OR = { original_tag = PER original_tag = AZE original_tag = IRQ original_tag = BHR original_tag = KUW original_tag = TUR original_tag = SAU original_tag = LEB original_tag = HEZ original_tag = SYR original_tag = PAK original_tag = AFG original_tag = RAJ original_tag = SEN original_tag = ALA original_tag = FSA original_tag = HOU original_tag = DRU original_tag = NIG original_tag = OMA has_idea = shia has_idea = pluralist } check_variable = { interest_rate > 14.999 } NOT = { check_variable = { ruling_party = 8 } } NOT = { is_in_array = { gov_coalition_array = 8 } } } option = { name = bankruptcy.208.a #Do nothing log = "[GetDateText]: [This.GetName]: bankruptcy.208.a executed" set_temp_variable = { party_index = 8 } set_temp_variable = { party_popularity_increase = 0.05 } set_temp_variable = { temp_outlook_increase = 0.05 } change_relative_party_popularity = yes ai_chance = { base = 30 } } option = { name = bankruptcy.208.b #Counter-campaign log = "[GetDateText]: [This.GetName]: bankruptcy.208.b executed" lose_pp_for_15_days = yes set_temp_variable = { party_index = 8 } set_temp_variable = { party_popularity_increase = 0.02 } set_temp_variable = { temp_outlook_increase = 0.02 } change_relative_party_popularity = yes ai_chance = { base = 70 } } } #Vilayat_e_Faqih makes a speech country_event = { id = bankruptcy.209 title = bankruptcy.209.t desc = bankruptcy.209.d picture = GFX_election_rally is_triggered_only = yes mean_time_to_happen = { modifier = { factor = 0.25 check_variable = { party_banned_array^9 = 1 } } modifier = { factor = 2 has_active_mission = bankruptcy_incoming_collapse } modifier = { factor = 0.25 check_variable = { party_pop_array^9 < 0.01 } } } trigger = { OR = { original_tag = PER original_tag = AZE original_tag = IRQ original_tag = BHR original_tag = KUW original_tag = TUR original_tag = SAU original_tag = LEB original_tag = HEZ original_tag = SYR original_tag = PAK original_tag = AFG original_tag = RAJ original_tag = SEN original_tag = ALA original_tag = FSA original_tag = HOU original_tag = DRU original_tag = NIG original_tag = OMA has_idea = shia has_idea = pluralist } check_variable = { interest_rate > 14.999 } NOT = { check_variable = { ruling_party = 9 } } NOT = { is_in_array = { gov_coalition_array = 9 } } } option = { name = bankruptcy.209.a #Do nothing log = "[GetDateText]: [This.GetName]: bankruptcy.209.a executed" set_temp_variable = { party_index = 9 } set_temp_variable = { party_popularity_increase = 0.05 } set_temp_variable = { temp_outlook_increase = 0.05 } change_relative_party_popularity = yes ai_chance = { base = 30 } } option = { name = bankruptcy.209.b #Counter-campaign log = "[GetDateText]: [This.GetName]: bankruptcy.209.b executed" lose_pp_for_15_days = yes set_temp_variable = { party_index = 9 } set_temp_variable = { party_popularity_increase = 0.02 } set_temp_variable = { temp_outlook_increase = 0.02 } change_relative_party_popularity = yes ai_chance = { base = 70 } } } #Kingdom makes a speech country_event = { id = bankruptcy.210 title = bankruptcy.210.t desc = bankruptcy.210.d picture = GFX_election_rally is_triggered_only = yes mean_time_to_happen = { modifier = { factor = 0.25 check_variable = { party_banned_array^10 = 1 } } modifier = { factor = 2 has_active_mission = bankruptcy_incoming_collapse } modifier = { factor = 0.25 check_variable = { party_pop_array^10 < 0.01 } } } trigger = { OR = { has_idea = sunni has_idea = sufi_islam has_idea = ibadi has_idea = shia has_idea = pluralist } check_variable = { interest_rate > 14.999 } NOT = { check_variable = { ruling_party = 10 } } NOT = { is_in_array = { gov_coalition_array = 10 } } } option = { name = bankruptcy.210.a #Do nothing log = "[GetDateText]: [This.GetName]: bankruptcy.210.a executed" set_temp_variable = { party_index = 10 } set_temp_variable = { party_popularity_increase = 0.05 } set_temp_variable = { temp_outlook_increase = 0.05 } change_relative_party_popularity = yes ai_chance = { base = 30 } } option = { name = bankruptcy.210.b #Counter-campaign log = "[GetDateText]: [This.GetName]: bankruptcy.210.b executed" lose_pp_for_15_days = yes set_temp_variable = { party_index = 10 } set_temp_variable = { party_popularity_increase = 0.02 } set_temp_variable = { temp_outlook_increase = 0.02 } change_relative_party_popularity = yes ai_chance = { base = 70 } } } #Caliphate makes a speech country_event = { id = bankruptcy.211 title = bankruptcy.211.t desc = bankruptcy.211.d picture = GFX_election_rally is_triggered_only = yes mean_time_to_happen = { modifier = { factor = 0.25 check_variable = { party_banned_array^11 = 1 } } modifier = { factor = 2 has_active_mission = bankruptcy_incoming_collapse } modifier = { factor = 0.25 check_variable = { party_pop_array^11 < 0.01 } } } trigger = { OR = { has_idea = sunni has_idea = sufi_islam has_idea = ibadi has_idea = shia has_idea = pluralist } check_variable = { interest_rate > 14.999 } NOT = { check_variable = { ruling_party = 11 } } NOT = { is_in_array = { gov_coalition_array = 11 } } } option = { name = bankruptcy.211.a #Do nothing log = "[GetDateText]: [This.GetName]: bankruptcy.211.a executed" set_temp_variable = { party_index = 11 } set_temp_variable = { party_popularity_increase = 0.05 } set_temp_variable = { temp_outlook_increase = 0.05 } change_relative_party_popularity = yes ai_chance = { base = 30 } } option = { name = bankruptcy.211.b #Counter-campaign log = "[GetDateText]: [This.GetName]: bankruptcy.211.b executed" lose_pp_for_15_days = yes set_temp_variable = { party_index = 11 } set_temp_variable = { party_popularity_increase = 0.02 } set_temp_variable = { temp_outlook_increase = 0.02 } change_relative_party_popularity = yes ai_chance = { base = 70 } } } #Neutral_Muslim_Brotherhood makes a speech country_event = { id = bankruptcy.212 title = bankruptcy.212.t desc = bankruptcy.212.d picture = GFX_election_rally is_triggered_only = yes mean_time_to_happen = { modifier = { factor = 0.25 check_variable = { party_banned_array^12 = 1 } } modifier = { factor = 2 has_active_mission = bankruptcy_incoming_collapse } modifier = { factor = 0.25 check_variable = { party_pop_array^12 < 0.01 } } } trigger = { OR = { has_idea = sunni has_idea = sufi_islam has_idea = ibadi has_idea = shia has_idea = pluralist } check_variable = { interest_rate > 14.999 } NOT = { check_variable = { ruling_party = 12 } } NOT = { is_in_array = { gov_coalition_array = 12 } } } option = { name = bankruptcy.212.a #Do nothing log = "[GetDateText]: [This.GetName]: bankruptcy.212.a executed" set_temp_variable = { party_index = 12 } set_temp_variable = { party_popularity_increase = 0.05 } set_temp_variable = { temp_outlook_increase = 0.05 } change_relative_party_popularity = yes ai_chance = { base = 30 } } option = { name = bankruptcy.212.b #Counter-campaign log = "[GetDateText]: [This.GetName]: bankruptcy.212.b executed" lose_pp_for_15_days = yes set_temp_variable = { party_index = 12 } set_temp_variable = { party_popularity_increase = 0.02 } set_temp_variable = { temp_outlook_increase = 0.02 } change_relative_party_popularity = yes ai_chance = { base = 70 } } } #Neutral_Autocracy makes a speech country_event = { id = bankruptcy.213 title = bankruptcy.213.t desc = bankruptcy.213.d picture = GFX_election_rally is_triggered_only = yes mean_time_to_happen = { modifier = { factor = 0.25 check_variable = { party_banned_array^13 = 1 } } modifier = { factor = 2 has_active_mission = bankruptcy_incoming_collapse } modifier = { factor = 0.25 check_variable = { party_pop_array^13 < 0.01 } } } trigger = { check_variable = { interest_rate > 14.999 } NOT = { check_variable = { ruling_party = 13 } } NOT = { is_in_array = { gov_coalition_array = 13 } } } option = { name = bankruptcy.213.a #Do nothing log = "[GetDateText]: [This.GetName]: bankruptcy.213.a executed" set_temp_variable = { party_index = 13 } set_temp_variable = { party_popularity_increase = 0.05 } set_temp_variable = { temp_outlook_increase = 0.05 } change_relative_party_popularity = yes ai_chance = { base = 30 } } option = { name = bankruptcy.213.b #Counter-campaign log = "[GetDateText]: [This.GetName]: bankruptcy.213.b executed" lose_pp_for_15_days = yes set_temp_variable = { party_index = 13 } set_temp_variable = { party_popularity_increase = 0.02 } set_temp_variable = { temp_outlook_increase = 0.02 } change_relative_party_popularity = yes ai_chance = { base = 70 } } } #Neutral_conservatism makes a speech country_event = { id = bankruptcy.214 title = bankruptcy.214.t desc = bankruptcy.214.d picture = GFX_election_rally is_triggered_only = yes mean_time_to_happen = { modifier = { factor = 0.25 check_variable = { party_banned_array^14 = 1 } } modifier = { factor = 2 has_active_mission = bankruptcy_incoming_collapse } modifier = { factor = 0.25 check_variable = { party_pop_array^14 < 0.01 } } } trigger = { check_variable = { interest_rate > 14.999 } NOT = { check_variable = { ruling_party = 14 } } NOT = { is_in_array = { gov_coalition_array = 14 } } } option = { name = bankruptcy.214.a #Do nothing log = "[GetDateText]: [This.GetName]: bankruptcy.214.a executed" set_temp_variable = { party_index = 14 } set_temp_variable = { party_popularity_increase = 0.05 } set_temp_variable = { temp_outlook_increase = 0.05 } change_relative_party_popularity = yes ai_chance = { base = 30 } } option = { name = bankruptcy.214.b #Counter-campaign log = "[GetDateText]: [This.GetName]: bankruptcy.214.b executed" lose_pp_for_15_days = yes set_temp_variable = { party_index = 14 } set_temp_variable = { party_popularity_increase = 0.02 } set_temp_variable = { temp_outlook_increase = 0.02 } change_relative_party_popularity = yes ai_chance = { base = 70 } } } #oligarchism makes a speech country_event = { id = bankruptcy.215 title = bankruptcy.215.t desc = bankruptcy.215.d picture = GFX_election_rally is_triggered_only = yes mean_time_to_happen = { modifier = { factor = 0.25 check_variable = { party_banned_array^15 = 1 } } modifier = { factor = 2 has_active_mission = bankruptcy_incoming_collapse } modifier = { factor = 0.25 check_variable = { party_pop_array^15 < 0.01 } } } trigger = { check_variable = { interest_rate > 14.999 } NOT = { check_variable = { ruling_party = 15 } } NOT = { is_in_array = { gov_coalition_array = 15 } } } option = { name = bankruptcy.215.a #Do nothing log = "[GetDateText]: [This.GetName]: bankruptcy.215.a executed" set_temp_variable = { party_index = 15 } set_temp_variable = { party_popularity_increase = 0.05 } set_temp_variable = { temp_outlook_increase = 0.05 } change_relative_party_popularity = yes ai_chance = { base = 30 } } option = { name = bankruptcy.215.b #Counter-campaign log = "[GetDateText]: [This.GetName]: bankruptcy.215.b executed" lose_pp_for_15_days = yes set_temp_variable = { party_index = 15 } set_temp_variable = { party_popularity_increase = 0.02 } set_temp_variable = { temp_outlook_increase = 0.02 } change_relative_party_popularity = yes ai_chance = { base = 70 } } } #Neutral_Libertarian makes a speech country_event = { id = bankruptcy.216 title = bankruptcy.216.t desc = bankruptcy.216.d picture = GFX_election_rally is_triggered_only = yes mean_time_to_happen = { modifier = { factor = 0.25 check_variable = { party_banned_array^16 = 1 } } modifier = { factor = 2 has_active_mission = bankruptcy_incoming_collapse } modifier = { factor = 0.25 check_variable = { party_pop_array^16 < 0.01 } } } trigger = { check_variable = { interest_rate > 14.999 } NOT = { check_variable = { ruling_party = 16 } } NOT = { is_in_array = { gov_coalition_array = 16 } } } option = { name = bankruptcy.216.a #Do nothing log = "[GetDateText]: [This.GetName]: bankruptcy.216.a executed" set_temp_variable = { party_index = 16 } set_temp_variable = { party_popularity_increase = 0.05 } set_temp_variable = { temp_outlook_increase = 0.05 } change_relative_party_popularity = yes ai_chance = { base = 30 } } option = { name = bankruptcy.216.b #Counter-campaign log = "[GetDateText]: [This.GetName]: bankruptcy.216.b executed" lose_pp_for_15_days = yes set_temp_variable = { party_index = 16 } set_temp_variable = { party_popularity_increase = 0.02 } set_temp_variable = { temp_outlook_increase = 0.02 } change_relative_party_popularity = yes ai_chance = { base = 70 } } } #Neutral_green makes a speech country_event = { id = bankruptcy.217 title = bankruptcy.217.t desc = bankruptcy.217.d picture = GFX_election_rally is_triggered_only = yes mean_time_to_happen = { modifier = { factor = 0.25 check_variable = { party_banned_array^17 = 1 } } modifier = { factor = 2 has_active_mission = bankruptcy_incoming_collapse } modifier = { factor = 0.25 check_variable = { party_pop_array^17 < 0.01 } } } trigger = { check_variable = { interest_rate > 14.999 } NOT = { check_variable = { ruling_party = 17 } } NOT = { is_in_array = { gov_coalition_array = 17 } } } option = { name = bankruptcy.217.a #Do nothing log = "[GetDateText]: [This.GetName]: bankruptcy.217.a executed" set_temp_variable = { party_index = 17 } set_temp_variable = { party_popularity_increase = 0.05 } set_temp_variable = { temp_outlook_increase = 0.05 } change_relative_party_popularity = yes ai_chance = { base = 30 } } option = { name = bankruptcy.217.b #Counter-campaign log = "[GetDateText]: [This.GetName]: bankruptcy.217.b executed" lose_pp_for_15_days = yes set_temp_variable = { party_index = 17 } set_temp_variable = { party_popularity_increase = 0.02 } set_temp_variable = { temp_outlook_increase = 0.02 } change_relative_party_popularity = yes ai_chance = { base = 70 } } } #neutral_Social makes a speech country_event = { id = bankruptcy.218 title = bankruptcy.218.t desc = bankruptcy.218.d picture = GFX_election_rally is_triggered_only = yes mean_time_to_happen = { modifier = { factor = 0.25 check_variable = { party_banned_array^18 = 1 } } modifier = { factor = 2 has_active_mission = bankruptcy_incoming_collapse } modifier = { factor = 0.25 check_variable = { party_pop_array^18 < 0.01 } } } trigger = { check_variable = { interest_rate > 14.999 } NOT = { check_variable = { ruling_party = 18 } } NOT = { is_in_array = { gov_coalition_array = 18 } } } option = { name = bankruptcy.218.a #Do nothing log = "[GetDateText]: [This.GetName]: bankruptcy.218.a executed" set_temp_variable = { party_index = 18 } set_temp_variable = { party_popularity_increase = 0.05 } set_temp_variable = { temp_outlook_increase = 0.05 } change_relative_party_popularity = yes ai_chance = { base = 30 } } option = { name = bankruptcy.218.b #Counter-campaign log = "[GetDateText]: [This.GetName]: bankruptcy.218.b executed" lose_pp_for_15_days = yes set_temp_variable = { party_index = 18 } set_temp_variable = { party_popularity_increase = 0.02 } set_temp_variable = { temp_outlook_increase = 0.02 } change_relative_party_popularity = yes ai_chance = { base = 70 } } } #Neutral_Communism makes a speech country_event = { id = bankruptcy.219 title = bankruptcy.219.t desc = bankruptcy.219.d picture = GFX_election_rally is_triggered_only = yes mean_time_to_happen = { modifier = { factor = 0.25 check_variable = { party_banned_array^19 = 1 } } modifier = { factor = 2 has_active_mission = bankruptcy_incoming_collapse } modifier = { factor = 0.25 check_variable = { party_pop_array^19 < 0.01 } } } trigger = { check_variable = { interest_rate > 14.999 } NOT = { check_variable = { ruling_party = 19 } } NOT = { is_in_array = { gov_coalition_array = 19 } } } option = { name = bankruptcy.219.a #Do nothing log = "[GetDateText]: [This.GetName]: bankruptcy.219.a executed" set_temp_variable = { party_index = 19 } set_temp_variable = { party_popularity_increase = 0.05 } set_temp_variable = { temp_outlook_increase = 0.05 } change_relative_party_popularity = yes ai_chance = { base = 30 } } option = { name = bankruptcy.219.b #Counter-campaign log = "[GetDateText]: [This.GetName]: bankruptcy.219.b executed" lose_pp_for_15_days = yes set_temp_variable = { party_index = 19 } set_temp_variable = { party_popularity_increase = 0.02 } set_temp_variable = { temp_outlook_increase = 0.02 } change_relative_party_popularity = yes ai_chance = { base = 70 } } } #Nat_Populism makes a speech country_event = { id = bankruptcy.220 title = bankruptcy.220.t desc = bankruptcy.220.d picture = GFX_election_rally is_triggered_only = yes mean_time_to_happen = { modifier = { factor = 0.25 check_variable = { party_banned_array^20 = 1 } } modifier = { factor = 2 has_active_mission = bankruptcy_incoming_collapse } modifier = { factor = 0.25 check_variable = { party_pop_array^20 < 0.01 } } } trigger = { check_variable = { interest_rate > 14.999 } NOT = { check_variable = { ruling_party = 20 } } NOT = { is_in_array = { gov_coalition_array = 20 } } } option = { name = bankruptcy.220.a #Do nothing log = "[GetDateText]: [This.GetName]: bankruptcy.220.a executed" set_temp_variable = { party_index = 20 } set_temp_variable = { party_popularity_increase = 0.05 } set_temp_variable = { temp_outlook_increase = 0.05 } change_relative_party_popularity = yes ai_chance = { base = 30 } } option = { name = bankruptcy.220.b #Counter-campaign log = "[GetDateText]: [This.GetName]: bankruptcy.220.b executed" lose_pp_for_15_days = yes set_temp_variable = { party_index = 20 } set_temp_variable = { party_popularity_increase = 0.02 } set_temp_variable = { temp_outlook_increase = 0.02 } change_relative_party_popularity = yes ai_chance = { base = 70 } } } #Nat_Fascism makes a speech country_event = { id = bankruptcy.221 title = bankruptcy.221.t desc = bankruptcy.221.d picture = GFX_election_rally is_triggered_only = yes mean_time_to_happen = { modifier = { factor = 0.25 check_variable = { party_banned_array^21 = 1 } } modifier = { factor = 2 has_active_mission = bankruptcy_incoming_collapse } modifier = { factor = 0.25 check_variable = { party_pop_array^21 < 0.01 } } } trigger = { check_variable = { interest_rate > 14.999 } NOT = { check_variable = { ruling_party = 21 } } NOT = { is_in_array = { gov_coalition_array = 21 } } } option = { name = bankruptcy.221.a #Do nothing log = "[GetDateText]: [This.GetName]: bankruptcy.221.a executed" set_temp_variable = { party_index = 21 } set_temp_variable = { party_popularity_increase = 0.05 } set_temp_variable = { temp_outlook_increase = 0.05 } change_relative_party_popularity = yes ai_chance = { base = 30 } } option = { name = bankruptcy.221.b #Counter-campaign log = "[GetDateText]: [This.GetName]: bankruptcy.221.b executed" lose_pp_for_15_days = yes set_temp_variable = { party_index = 21 } set_temp_variable = { party_popularity_increase = 0.02 } set_temp_variable = { temp_outlook_increase = 0.02 } change_relative_party_popularity = yes ai_chance = { base = 70 } } } #Nat_Autocracy makes a speech country_event = { id = bankruptcy.222 title = bankruptcy.222.t desc = bankruptcy.222.d picture = GFX_election_rally is_triggered_only = yes mean_time_to_happen = { modifier = { factor = 0.25 check_variable = { party_banned_array^22 = 1 } } modifier = { factor = 2 has_active_mission = bankruptcy_incoming_collapse } modifier = { factor = 0.25 check_variable = { party_pop_array^22 < 0.01 } } } trigger = { NOT = { has_idea = no_military } check_variable = { interest_rate > 14.999 } NOT = { check_variable = { ruling_party = 22 } } NOT = { is_in_array = { gov_coalition_array = 22 } } } option = { name = bankruptcy.222.a #Do nothing log = "[GetDateText]: [This.GetName]: bankruptcy.222.a executed" set_temp_variable = { party_index = 22 } set_temp_variable = { party_popularity_increase = 0.05 } set_temp_variable = { temp_outlook_increase = 0.05 } change_relative_party_popularity = yes ai_chance = { base = 30 } } option = { name = bankruptcy.222.b #Counter-campaign log = "[GetDateText]: [This.GetName]: bankruptcy.222.b executed" lose_pp_for_15_days = yes set_temp_variable = { party_index = 22 } set_temp_variable = { party_popularity_increase = 0.02 } set_temp_variable = { temp_outlook_increase = 0.02 } change_relative_party_popularity = yes ai_chance = { base = 70 } } } #Monarchist makes a speech country_event = { id = bankruptcy.223 title = bankruptcy.223.t desc = bankruptcy.223.d picture = GFX_election_rally is_triggered_only = yes mean_time_to_happen = { modifier = { factor = 0.25 check_variable = { party_banned_array^23 = 1 } } modifier = { factor = 2 has_active_mission = bankruptcy_incoming_collapse } modifier = { factor = 0.25 check_variable = { party_pop_array^23 < 0.01 } } } trigger = { NOT = { has_idea = no_military } check_variable = { interest_rate > 14.999 } NOT = { check_variable = { ruling_party = 23 } } NOT = { is_in_array = { gov_coalition_array = 23 } } } option = { name = bankruptcy.223.a #Do nothing log = "[GetDateText]: [This.GetName]: bankruptcy.223.a executed" set_temp_variable = { party_index = 23 } set_temp_variable = { party_popularity_increase = 0.05 } set_temp_variable = { temp_outlook_increase = 0.05 } change_relative_party_popularity = yes ai_chance = { base = 30 } } option = { name = bankruptcy.223.b #Counter-campaign log = "[GetDateText]: [This.GetName]: bankruptcy.223.b executed" lose_pp_for_15_days = yes set_temp_variable = { party_index = 23 } set_temp_variable = { party_popularity_increase = 0.02 } set_temp_variable = { temp_outlook_increase = 0.02 } change_relative_party_popularity = yes ai_chance = { base = 70 } } } ### we got the bailout - biggest influencer news_event = { id = News_bankruptcy.1 title = News_bankruptcy.1.t desc = News_bankruptcy.1.d picture = GFX_world_stockmarket is_triggered_only = yes option = { name = News_bankruptcy.1.a } } ### we got the bailout - 2nd biggest influencer news_event = { id = News_bankruptcy.2 title = News_bankruptcy.2.t desc = News_bankruptcy.2.d picture = GFX_world_stockmarket is_triggered_only = yes option = { name = News_bankruptcy.2.a } } ### we got the bailout - neighbour news_event = { id = News_bankruptcy.3 title = News_bankruptcy.3.t desc = News_bankruptcy.3.d picture = GFX_world_stockmarket is_triggered_only = yes option = { name = News_bankruptcy.3.a } } ###[FROM.GetNameDef] Prepares for New Elections news_event = { id = News_bankruptcy.4 title = News_bankruptcy.4.t desc = News_bankruptcy.4.d picture = GFX_news_press_conference is_triggered_only = yes option = { name = News_bankruptcy.4.a } } ###Radical Political Shift in [FROM.GetNameDef] news_event = { id = News_bankruptcy.5 title = News_bankruptcy.5.t desc = News_bankruptcy.5.d picture = GFX_news_press_conference is_triggered_only = yes option = { name = News_bankruptcy.5.a } } ###Financial Collapse Leads to Conflict in [FROM.GetNameDef] news_event = { id = News_bankruptcy.6 title = News_bankruptcy.6.t desc = News_bankruptcy.6.d picture = GFX_news_press_conference is_triggered_only = yes option = { name = News_bankruptcy.6.a } }