on_actions = { # Custom on_yearly on_monthly = { random_events = { 1500 = 0 #Weight for getting no event, the higher this is, the less likely it is to get an event #Base: How many times should the event happen in a year * 100 #Economic events (total 356) 20 = econvent.1 #Central Bank warns of housing bubble & possible crisis 25 = econvent.2 #Collapsing housing prices 25 = econvent.3 #Stock Market Crash 10 = econvent.4 #Bank Crisis 20 = econvent.5 #Slowdown Consumption 10 = econvent.6 #Lower Demand for our Goods in International Markets 10 = econvent.7 #Drought 10 = econvent.8 #Famine 50 = econvent.9 #Increase Consumer Confidence 25 = econvent.10 #Stock Market Boom 10 = econvent.11 #Major Financial Institution Requires a Bailout 15 = econvent.13 #High Debt Causes Companies to Leave 10 = econvent.14 #Private Investors Invest in the Civilian Industry 10 = econvent.15 #Private investors Invest in Office Parks 30 = econvent.16 #Modern Production Methods Spread 20 = econvent.17 #Education Investments Bear Fruit 20 = econvent.18 #Foreign Technology Spreads Domestically 10 = econvent.19 #Semiconductor Foundry Investment 10 = econvent.20 #Composite Industry Expansion 8 = econvent.21 #Defense Contracts Expand Production 8 = econvent.22 #Commercial Shipbuilding Orders Surge # Migration Events 20 = migrant_event.1 # Migrant Slums 20 = migrant_event.2 # Nationalists Protest Migrant Policy 20 = migrant_event.3 # Migrants Accused of Violent Crimes # Internal Factions 25 = internal_factions_events.0 # Business Owner's Request a Tax Cut 25 = internal_factions_events.1 25 = internal_factions_events.2 25 = internal_factions_events.3 25 = internal_factions_events.4 25 = internal_factions_events.5 25 = internal_factions_events.6 25 = internal_factions_events.7 25 = internal_factions_events.8 25 = internal_factions_events.9 25 = internal_factions_events.10 25 = internal_factions_events.11 25 = internal_factions_events.13 25 = internal_factions_events.14 25 = internal_factions_events.15 25 = internal_factions_events.16 25 = internal_factions_events.17 25 = internal_factions_events.18 25 = internal_factions_events.19 25 = internal_factions_events.20 25 = internal_factions_events.21 25 = internal_factions_events.22 25 = internal_factions_events.23 25 = internal_factions_events.24 25 = internal_factions_events.25 # The Maritime Industry Proposes A Deal 25 = internal_factions_events.26 # The Military Opposes our Government 25 = internal_factions_events.27 # Military Industry Thriving 25 = internal_factions_events.28 # Industrial Conglomerates Are Upset About Lacks of Industrialization 30 = internal_factions_events.29 # Farmers Demand Tax Cuts 20 = internal_factions_events.31 # Industrialists Converts an Agro-Industrial Complex 20 = internal_factions_events.32 # Bankers Buy a Grain Silo 20 = internal_factions_events.33 # Maritime Industries Acquire Old Fishery 20 = internal_factions_events.34 # Labour Unions Protest Migrants 20 = internal_factions_events.35 # Fossil Fuel Barons Propose a Deal 20 = internal_factions_events.36 # A Renewable Energy Investment 25 = internal_factions_events.37 # Farming Industry Abuse Migrant Labours 20 = internal_factions_events.38 # Religious Groups Request Representation in Government 25 = internal_factions_events.39 # Religious Groups Request Place in Education 25 = internal_factions_events.40 # Communist Cadres & The Military Argue Over Ideology 25 = internal_factions_events.41 # The Communst Cadres Requests Governmental Concessions 20 = internal_factions_events.42 # Friday Prayer Sermon Stirs Political Debate 20 = internal_factions_events.43 # Dispute Over Religious Education 20 = internal_factions_events.44 # Ulema Requests Funding for Mosque Project 20 = internal_factions_events.45 # Increased Collaboration Between Regional and Domestic Clerics 20 = internal_factions_events.46 # Public Outrcry Against Religious Edict 20 = internal_factions_events.47 # Wahhabi Ulema Call for a Crackdown on Shia & Sufi Practice 20 = internal_factions_events.48 # Wahhabi Condemns Women in the Workplace 20 = internal_factions_events.49 # Wahhabi Call for Morality Patrols 20 = internal_factions_events.50 # Prince Needs Money for Airline 20 = internal_factions_events.51 # Family Drama Goes Viral 20 = internal_factions_events.52 # Royal Prince Defects and Denounces the Government From Abroad 25 = internal_factions_events.53 # Communist Cadres: Party Loyalty Investigation 25 = internal_factions_events.54 # Communist Cadres: Cadres Demand Collectivisation Drive 25 = internal_factions_events.55 # Maritime Industry: Port Expansion Dispute 25 = internal_factions_events.56 # Maritime Industry: Piracy Threatens Shipping Lanes 25 = internal_factions_events.57 # Intelligence Community: Covert Operation Opportunity 25 = internal_factions_events.58 # Intelligence Community: Intelligence Budget Review 25 = internal_factions_events.59 # Foreign Jihadis: Foreign Fighters Arrive 25 = internal_factions_events.60 # Foreign Jihadis: Jihadi Faction Demands Autonomy 25 = internal_factions_events.61 # Quds Force: Quds Force Requests Expanded Operations 25 = internal_factions_events.62 # Quds Force: Quds Force Identifies Strategic Opportunity 25 = internal_factions_events.63 # Defense Industry: Defense Industry Seeks Export Contracts #Financial collapse (only if interest_rate > 15) #X party leader makes a speech 50 = bankruptcy.200 50 = bankruptcy.201 50 = bankruptcy.202 50 = bankruptcy.203 50 = bankruptcy.204 50 = bankruptcy.205 50 = bankruptcy.206 50 = bankruptcy.207 50 = bankruptcy.208 50 = bankruptcy.209 50 = bankruptcy.210 50 = bankruptcy.211 50 = bankruptcy.212 50 = bankruptcy.213 50 = bankruptcy.214 50 = bankruptcy.215 50 = bankruptcy.216 50 = bankruptcy.217 50 = bankruptcy.218 50 = bankruptcy.219 50 = bankruptcy.220 50 = bankruptcy.221 50 = bankruptcy.222 50 = bankruptcy.223 # Corruption Events 25 = corruption.0 # Wacky Events 100 = MD_wacky.1 #Accidentally shooting down Santa Claus 20 = MD_wacky.2 #Unidentified object over the capital 20 = MD_wacky.3 #Reentry debris lands on a ministry 20 = MD_wacky.4 #Vending machines take down the ministry network #Ethiopia 300 = ethiopia.20 #Ethiopian Famine # DROUGHTS 60 = AGRI.1 # DROUGHT STUFF # RANDOM AGRICULTURAL EVENTS 40 = AGRI_random.1 # EMBARGO'D # fix this later 40 = AGRI_random.2 # STEAL WATER # fix this later 40 = AGRI_random.3 # LAND DISPUTES 40 = AGRI_random.4 # BOUNTIFUL HARVEST 15 = AGRI_random.5 # DEAD CROPS 15 = AGRI_random.6 # INVASIVE SPECIES 15 = AGRI_random.7 # WILDFIRE 15 = AGRI_random.8 # FLOODS 15 = AGRI_random.9 # STAMPEDE # CARTELS 20 = cartel_event.15 # Infantry Equipment Stolen 20 = cartel_event.16 # Utility Vehicles Stolen 20 = cartel_event.17 # Transport Helicopters Stolen 20 = cartel_event.18 # Tanks Seized in Port 20 = cartel_event.19 # Body Dump Reaches National News 20 = cartel_event.20 # Foreign Celebrity Death tied to Criminal Activity 20 = cartel_event.21 # Cartels Begin Importing Exotic Animals 20 = cartel_event.22 # Local Gang Clashes 20 = cartel_event.23 # USA Demands Extradition 20 = cartel_event.24 # Informant Lands Movie Deal 20 = cartel_event.29 # Cartels Execute Border Crossing 20 = cartel_event.39 # Authorities Stumble on Drug Plantation 20 = cartel_event.40 # Anonymous Tip Off 20 = cartel_event.41 # Local Business Cooperation 20 = cartel_event.42 # Industrial Conglomerates Safehousing Contraband 20 = cartel_event.43 # Corrupt Officials 20 = cartel_event.44 # Shipping Container of Contraband 20 = cartel_event.45 # Bankers Turning a Blind Eye 20 = cartel_event.46 # Take the Cartel's Bribes 20 = cartel_event.47 # Deals with the Devils 20 = cartel_event.48 # Regulate the Contraband 20 = cartel_event.49 # Youth Losing Hope 20 = cartel_event.56 # El Fusilado # MOCRO MAFFIA (HOL) 20 = HOL_mocro.2 # Cocaine Seized at the Port of Rotterdam 20 = HOL_mocro.3 # A Lawyer is Gunned Down 20 = HOL_mocro.4 # Encrypted Criminal Network Cracked 20 = HOL_mocro.5 # Laundered Millions in Real Estate 20 = HOL_mocro.6 # Youths Drawn into the Drug Trade 20 = HOL_mocro.7 # Corruption in the Harbour 20 = HOL_mocro.8 # The Marengo Trial Reaches a Verdict # Insane Value to Ensure the Event Triggers 2000 = cartel_event.52 # End of the Cartels } # African Union random_events = { 5000 = 0 50 = AfricanUnionRandomEvents.1 #African Investment Bank invests in CIV 25 = AfricanUnionRandomEvents.2 #African Investment Bank invests in offices 50 = AfricanUnionRandomEvents.3 #African Investment Bank asks for investment 50 = AfricanUnionRandomEvents.5 #African Monetary Fund pays off debt 50 = AfricanUnionRandomEvents.6 #African Monetary Fund asks to take on someone's debt } # Muslim Brotherhood random_events = { 2500 = 0 100 = brotherhood.6 100 = brotherhood.7 100 = brotherhood.8 100 = brotherhood.9 100 = brotherhood.10 } } # CAR's idea and date gates can mature after the war ends. on_monthly_CAR = { effect = { civil_war_cleanup_car_delayed_bush_war = yes if = { limit = { has_war_with = SEL has_global_flag = GLOBAL_central_african_civil_war NOT = { has_global_flag = GLOBAL_central_african_civil_war_phase_two } OR = { surrender_progress > 0.45 NOT = { has_full_control_of_state = 324 } } } country_event = { id = central_africa.23 days = 3 random_days = 5 } } } } on_monthly_SER = { effect = { # Cyanide Spills in Danube if = { limit = { NOT = { has_country_flag = SER_Cyanide_Spills_in_Danube } } if = { limit = { check_variable = { global.month = 1 } } SER = { set_country_flag = SER_Cyanide_Spills_in_Danube country_event = { id = Serbia.8 days = 19 } } } } } } ##Custom Event Pulses for deterministic events with set datesl on_weekly_AFG = { effect = { if = { limit = { NOT = { has_country_flag = AFG_anti_taliban_uprising_event_happened } AFG = { has_war_with = TAL NOT = { has_template = "Tribal Militia" } } TAL = { has_idea = anti_taliban_guerrillas } USA = { has_country_flag = USA_wot_enduring_freedom } OR = { has_volunteers_amount_from = { tag = USA count > 0 } has_volunteers_amount_from = { tag = PER count > 0 } } date > 2001.9.11 date < 2002.1.31 } set_country_flag = AFG_anti_taliban_uprising_event_happened country_event = AFG_events.18 } if = { limit = { NOT = { has_global_flag = GLOBAL_south_korean_hostage_crisis_happened } date > 2007.6.20 check_variable = { var = taliban_strength value = 5 compare = greater_than_or_equals } has_country_flag = AFG_active_taliban_insurgency gives_military_access_to = KOR gives_military_access_to = USA } set_global_flag = GLOBAL_south_korean_hostage_crisis_happened country_event = { id = AFG_hostage_crisis.1 days = 4 random_days = 14 } } } } on_monthly_AFG = { effect = { if = { limit = { has_country_flag = AFG_active_taliban_insurgency } AFG_refresh_insurgency_arrays = yes if = { limit = { jihadist_government = yes } country_event = AFG_taliban_insurgency.12 } else = { country_event = AFG_taliban_insurgency.20 } } if = { limit = { has_country_flag = AFG_active_taliban_insurgency OR = { check_variable = { global.month = 3 } check_variable = { global.month = 6 } check_variable = { global.month = 9 } check_variable = { global.month = 12 } } } random_list = { 20 = { country_event = { id = AFG_taliban_attack.0 random_days = 20 } } 15 = { modifier = { factor = 0 check_variable = { taliban_strength < 25 } } country_event = { id = AFG_taliban_attack.2 random_days = 20 } } 20 = { modifier = { factor = 0 OR = { check_variable = { taliban_strength < 10 } NOT = { any_owned_state = { infrastructure > 0 } } } } country_event = { id = AFG_taliban_attack.5 random_days = 20 } } 15 = { modifier = { factor = 0 OR = { check_variable = { taliban_strength < 25 } num_divisions < 5 } } country_event = { id = AFG_taliban_attack.7 random_days = 20 } } 15 = { modifier = { factor = 0 OR = { check_variable = { taliban_strength < 45 } check_variable = { influence_array^num = 0 } NOT = { any_owned_state = { OR = { industrial_complex > 0 offices > 0 } } } } } country_event = { id = AFG_taliban_attack.12 random_days = 20 } } 15 = { modifier = { factor = 0 OR = { check_variable = { taliban_strength < 45 } check_variable = { AFG_coalition_array^num = 0 } } } country_event = { id = AFG_taliban_attack.9 random_days = 20 } } 10 = { modifier = { factor = 0 OR = { check_variable = { taliban_strength < 55 } NOT = { any_owned_state = { air_base > 0 } } } } country_event = { id = AFG_taliban_attack.15 random_days = 20 } } } } if = { limit = { check_variable = { taliban_strength = 100 } } country_event = AFG_taliban_insurgency.9 } if = { limit = { no_jihadist_government = yes has_country_flag = AFG_active_taliban_insurgency } if = { limit = { check_variable = { AFG_coalition_array^num > 0 } check_variable = { var = taliban_strength value = 45 compare = greater_than_or_equals } } country_event = AFG_taliban_insurgency.13 } if = { limit = { check_variable = { AFG_ci_array^num > 0 } } country_event = AFG_taliban_insurgency.19 } } #Only the toll GUI ever refreshed tollage, so an AI Afghanistan earned nothing from the tolls it starts with every_owned_state = { limit = { OR = { state = 409 state = 410 state = 411 state = 412 state = 414 state = 415 } } AFG_monthly_toll_state_update = yes } AFG_update_national_tollage = yes if = { limit = { is_ai = no } update_afg_toll_dirty_variable = yes } } } on_monthly_JAP = { effect = { if = { limit = { check_variable = { global.month = 1 } } if = { limit = { check_variable = { global.year = 2019 } } if = { limit = { has_idea = idea_JAP_emperor_akihito NOT = { has_idea = idea_JAP_emperor_naruhito } } random = { chance = 20 country_event = { id = Japan.3 days = 1 random_days = 200 } } } } else_if = { limit = { check_variable = { global.year = 2020 } } if = { limit = { has_idea = idea_JAP_emperor_akihito NOT = { has_idea = idea_JAP_emperor_naruhito } } random = { chance = 30 country_event = { id = Japan.3 days = 1 random_days = 200 } } } } else_if = { limit = { check_variable = { global.year = 2021 } } if = { limit = { has_idea = idea_JAP_emperor_akihito NOT = { has_idea = idea_JAP_emperor_naruhito } } random = { chance = 40 country_event = { id = Japan.3 days = 1 random_days = 200 } } } } else_if = { limit = { check_variable = { global.year = 2022 } } if = { limit = { has_idea = idea_JAP_emperor_akihito NOT = { has_idea = idea_JAP_emperor_naruhito } } random = { chance = 60 country_event = { id = Japan.3 days = 1 random_days = 200 } } } } else_if = { limit = { check_variable = { global.year = 2023 } } if = { limit = { has_idea = idea_JAP_emperor_akihito NOT = { has_idea = idea_JAP_emperor_naruhito } } random = { chance = 70 country_event = { id = Japan.3 days = 1 random_days = 200 } } } } } } } on_monthly_BRA = { effect = { if = { limit = { has_idea = BRA_idea_radical_leftist check_variable = { var = BRA_brazilian_party_alignment value = 10 compare = less_than_or_equals } } country_event = brazil.7 } else_if = { limit = { OR = { has_idea = BRA_idea_neo_comunista has_idea = BRA_idea_slightly_radical } check_variable = { var = BRA_brazilian_party_alignment value = 10 compare = greater_than_or_equals } check_variable = { var = BRA_brazilian_party_alignment value = 30 compare = less_than_or_equals } } country_event = brazil.8 } else_if = { limit = { OR = { has_idea = BRA_idea_radical_leftist has_idea = BRA_idea_well_balanced } check_variable = { var = BRA_brazilian_party_alignment value = 30 compare = greater_than_or_equals } check_variable = { var = BRA_brazilian_party_alignment value = 45 compare = less_than_or_equals } } country_event = brazil.9 } else_if = { limit = { OR = { has_idea = BRA_idea_slightly_radical has_idea = BRA_idea_slightly_reformist } check_variable = { var = BRA_brazilian_party_alignment value = 45 compare = greater_than_or_equals } check_variable = { var = BRA_brazilian_party_alignment value = 55 compare = less_than_or_equals } } country_event = brazil.10 } else_if = { limit = { OR = { has_idea = BRA_idea_well_balanced has_idea = BRA_idea_modern_reformist } check_variable = { var = BRA_brazilian_party_alignment value = 55 compare = greater_than_or_equals } check_variable = { var = BRA_brazilian_party_alignment value = 70 compare = less_than_or_equals } } country_event = brazil.11 } else_if = { limit = { OR = { has_idea = BRA_idea_slightly_reformist has_idea = BRA_idea_party_of_progress } check_variable = { var = BRA_brazilian_party_alignment value = 70 compare = greater_than_or_equals } check_variable = { var = BRA_brazilian_party_alignment value = 90 compare = less_than_or_equals } } country_event = brazil.12 } else_if = { limit = { has_idea = BRA_idea_modern_reformist check_variable = { var = BRA_brazilian_party_alignment value = 90 compare = greater_than_or_equals } } country_event = brazil.13 } } } on_government_change = { effect = { # swiss_political_system* tiers cancel daily on this same condition, so never gate on has_idea here (usually already stripped) if = { limit = { original_tag = SWI NOT = { has_country_flag = end_of_the_swiss_political_system } NOT = { has_government = democratic } NOT = { has_government = neutrality } NOT = { nationalist_right_wing_populists_are_in_power = yes } } remove_ideas = swiss_political_system remove_ideas = swiss_political_system2 remove_ideas = swiss_political_system3 remove_ideas = swiss_political_system4 news_event = switzerland.2 set_country_flag = end_of_the_swiss_political_system } if = { limit = { original_tag = BOS has_cosmetic_tag = bos_workers_republic NOT = { emerging_communist_state_are_in_power = yes } } drop_cosmetic_tag = yes clear_variable = dynamic_flag_variant } else_if = { limit = { original_tag = BOS has_cosmetic_tag = BOS_islamic_upper NOT = { salafist_caliphate_are_in_power = yes } } drop_cosmetic_tag = yes clear_variable = dynamic_flag_variant } } } on_monthly_KOR = { effect = { semiconductor_market_quarterly_driver = yes #support for reunification if = { limit = { country_exists = KOR country_exists = NKO } subtract_from_variable = { SFR = 0.1 } clamp_variable = { var = SFR min = 0 max = 100 } } } } on_monthly_SIN = { effect = { if = { limit = { NOT = { has_completed_focus = SIN_singaporeans_first } NOT = { has_completed_focus = SIN_restrict_migration } has_country_flag = SIN_allowed_the_new_migration_policy OR = { check_variable = { global.month = 4 } check_variable = { global.month = 8 } check_variable = { global.month = 12 } } } country_event = { id = singapore.119 days = 45 random_days = 45 } } } } on_weekly_SPR = { effect = { #calculate cap for regulares divisions if = { limit = { has_completed_focus = SPR_expand_the_regulares } set_variable = { SPR_regulare_cap = 0 } every_owned_state = { limit = { NOT = { is_core_of = SPR } } add_to_variable = { PREV.SPR_regulare_cap = state_population_k } } if = { limit = { check_variable = { SPR_regulare_cap_ratio > 0 } } divide_variable = { SPR_regulare_cap = SPR_regulare_cap_ratio } round_variable = SPR_regulare_cap } } if = { limit = { has_completed_focus = SPR_the_foreign_legion } #calculate cap for foreign legion divisions set_variable = { SPR_legion_cap = max_available_manpower_k } set_variable = { SPR_legion_cap_ratio = 40 } if = { limit = { check_variable = { SPR_legion_cap_ratio > 0 } } divide_variable = { SPR_legion_cap = SPR_legion_cap_ratio } round_variable = SPR_legion_cap } } if = { limit = { has_completed_focus = SPR_sector_servicios_espanol } if = { limit = { has_war = no has_stability > 0.5 } set_variable = { SPR_tourism_1_effect = 0.4 } set_variable = { SPR_tourism_2_effect = 0.8 } set_variable = { SPR_tourism_3_effect = 1.2 } } else = { set_variable = { SPR_tourism_1_effect = 0 } set_variable = { SPR_tourism_2_effect = 0 } set_variable = { SPR_tourism_3_effect = 0 } } } } } # Custom Monthly Pulses for SPR on_monthly_SPR = { effect = { # Pulse Check for Yearly Flavor Events if = { limit = { check_variable = { global.month = 1 } } # Prestige Event if = { limit = { check_variable = { global.year > 2002 } } if = { limit = { NOT = { has_country_flag = SPR_prestige_oil_spill } } random = { chance = 50 #spill will happen this pulse country_event = { id = spain.85 random_days = 210 random_hours = 10 } } } } if = { limit = { check_variable = { global.year > 2009 } } if = { limit = { NOT = { OR = { has_country_flag = SPR_metropol_parasol_project_ignored has_country_flag = SPR_metropol_parsol_project_complete } } } random_list = { 40 = { modifier = { factor = 1.25 has_country_flag = { flag = SPR_metropol_parasol_project_money value < 2 } } modifier = { factor = 1.25 has_country_flag = { flag = SPR_metropol_parasol_project_money value > 1 } } modifier = { factor = 1.05 has_country_flag = SPR_metropol_parasol_project_political } country_event = { id = spain.247 random_days = 180 random_hours = 24 } } 60 = { } } } } if = { limit = { check_variable = { global.year > 2016 } } if = { limit = { NOT = { has_country_flag = SPR_sagrada_familia_complete_flag } } random_list = { 30 = { modifier = { factor = 1.5 has_country_flag = SPR_sagra_familia_additional_funding_flag } country_event = { id = spain.254 random_days = 180 } } 70 = { } } } } } if = { limit = { OR = { check_variable = { global.month = 4 } # April check_variable = { global.month = 8 } # August check_variable = { global.month = 12 } # December } } #Migrant Crisis if = { limit = { date > 2005.1.1 NOT = { has_idea = SPR_idea_open_borders_1 } NOT = { has_idea = SPR_idea_open_borders_2 } } if = { limit = { NOT = { has_country_flag = SPR_mirgrant_crisis_start } } random = { chance = 50 #crisis will happen this pulse country_event = { id = spain.201 random_days = 60 } } } if = { limit = { has_country_flag = SPR_mirgrant_crisis_start NOT = { has_country_flag = SPR_increased_immigration } has_country_flag = SPR_refused_immigrants NOT = { has_country_flag = SPR_border_massacre } OR = { NOT = { has_country_flag = SPR_ceuta_assault } NOT = { has_country_flag = SPR_mellila_assault } } } random_list = { 50 = { #ceuta assault modifier = { factor = 0 has_country_flag = SPR_ceuta_assault } country_event = { id = spain.202 random_days = 60 } } 50 = { #mellila assault modifier = { factor = 0 has_country_flag = SPR_mellila_assault } country_event = { id = spain.203 random_days = 60 } } } } if = { limit = { has_country_flag = SPR_mirgrant_crisis_start has_country_flag = SPR_increased_immigration NOT = { has_country_flag = SPR_border_massacre } } random_list = { 40 = { #ceuta assault modifier = { factor = 0 has_country_flag = SPR_ceuta_assault } country_event = { id = spain.202 random_days = 60 } } 40 = { #mellila assault modifier = { factor = 0 has_country_flag = SPR_mellila_assault } country_event = { id = spain.203 random_days = 60 } } 20 = { #assault will not happen } } } } # Basque (index 1) set_variable = { SPR_basque_support_chance_factor = 1 } set_variable = { SPR_basque_protest_chance_factor = 1 } if = { limit = { check_variable = { SPR_culture_opinion^1 > 50 } } set_variable = { SPR_basque_support_chance_modifier = SPR_culture_opinion^1 } add_to_variable = { SPR_basque_support_chance_modifier = -50 } multiply_variable = { SPR_basque_support_chance_modifier = 0.1 } round_variable = SPR_basque_support_chance_modifier add_to_variable = { SPR_basque_support_chance_factor = SPR_basque_support_chance_modifier } } if = { limit = { check_variable = { SPR_culture_opinion^1 < 50 } } set_variable = { SPR_basque_protest_chance_modifier = SPR_culture_opinion^1 } multiply_variable = { SPR_basque_protest_chance_modifier = -0.1 } add_to_variable = { SPR_basque_protest_chance_modifier = 5 } round_variable = SPR_basque_protest_chance_modifier add_to_variable = { SPR_basque_protest_chance_factor = SPR_basque_protest_chance_modifier } } # Galician (index 2) set_variable = { SPR_galician_support_chance_factor = 1 } set_variable = { SPR_galician_protest_chance_factor = 1 } if = { limit = { check_variable = { SPR_culture_opinion^2 > 50 } } set_variable = { SPR_galician_support_chance_modifier = SPR_culture_opinion^2 } add_to_variable = { SPR_galician_support_chance_modifier = -50 } multiply_variable = { SPR_galician_support_chance_modifier = 0.1 } round_variable = SPR_galician_support_chance_modifier add_to_variable = { SPR_galician_support_chance_factor = SPR_galician_support_chance_modifier } } if = { limit = { check_variable = { SPR_culture_opinion^2 < 50 } } set_variable = { SPR_galician_protest_chance_modifier = SPR_culture_opinion^2 } multiply_variable = { SPR_galician_protest_chance_modifier = -0.1 } add_to_variable = { SPR_galician_protest_chance_modifier = 5 } round_variable = SPR_galician_protest_chance_modifier add_to_variable = { SPR_galician_protest_chance_factor = SPR_galician_protest_chance_modifier } } # Catalonian (index 0) set_variable = { SPR_catalonian_support_chance_factor = 1 } set_variable = { SPR_catalonian_protest_chance_factor = 1 } if = { limit = { check_variable = { SPR_culture_opinion^0 > 50 } } set_variable = { SPR_catalonian_support_chance_modifier = SPR_culture_opinion^0 } add_to_variable = { SPR_catalonian_support_chance_modifier = -50 } multiply_variable = { SPR_catalonian_support_chance_modifier = 0.1 } round_variable = SPR_catalonian_support_chance_modifier add_to_variable = { SPR_catalonian_support_chance_factor = SPR_catalonian_support_chance_modifier } } if = { limit = { check_variable = { SPR_culture_opinion^0 < 50 } } set_variable = { SPR_catalonian_protest_chance_modifier = SPR_culture_opinion^0 } multiply_variable = { SPR_catalonian_protest_chance_modifier = -0.1 } add_to_variable = { SPR_catalonian_protest_chance_modifier = 5 } round_variable = SPR_catalonian_protest_chance_modifier add_to_variable = { SPR_catalonian_protest_chance_factor = SPR_catalonian_protest_chance_modifier } } # Andalusian (index 3) set_variable = { SPR_andalusian_support_chance_factor = 1 } set_variable = { SPR_andalusian_protest_chance_factor = 1 } if = { limit = { check_variable = { SPR_culture_opinion^3 > 50 } } set_variable = { SPR_andalusian_support_chance_modifier = SPR_culture_opinion^3 } add_to_variable = { SPR_andalusian_support_chance_modifier = -50 } multiply_variable = { SPR_andalusian_support_chance_modifier = 0.1 } round_variable = SPR_andalusian_support_chance_modifier add_to_variable = { SPR_andalusian_support_chance_factor = SPR_andalusian_support_chance_modifier } } if = { limit = { check_variable = { SPR_culture_opinion^3 < 50 } } set_variable = { SPR_andalusian_protest_chance_modifier = SPR_culture_opinion^3 } multiply_variable = { SPR_andalusian_protest_chance_modifier = -0.1 } add_to_variable = { SPR_andalusian_protest_chance_modifier = 5 } round_variable = SPR_andalusian_protest_chance_modifier add_to_variable = { SPR_andalusian_protest_chance_factor = SPR_andalusian_protest_chance_modifier } } # Canarios (index 4) set_variable = { SPR_canarios_support_chance_factor = 1 } set_variable = { SPR_canarios_protest_chance_factor = 1 } if = { limit = { check_variable = { SPR_culture_opinion^4 > 50 } } set_variable = { SPR_canarios_support_chance_modifier = SPR_culture_opinion^4 } add_to_variable = { SPR_canarios_support_chance_modifier = -50 } multiply_variable = { SPR_canarios_support_chance_modifier = 0.1 } round_variable = SPR_canarios_support_chance_modifier add_to_variable = { SPR_canarios_support_chance_factor = SPR_canarios_support_chance_modifier } } if = { limit = { check_variable = { SPR_culture_opinion^4 < 50 } } set_variable = { SPR_canarios_protest_chance_modifier = SPR_culture_opinion^4 } multiply_variable = { SPR_canarios_protest_chance_modifier = -0.1 } add_to_variable = { SPR_canarios_protest_chance_modifier = 5 } round_variable = SPR_canarios_protest_chance_modifier add_to_variable = { SPR_canarios_protest_chance_factor = SPR_canarios_protest_chance_modifier } } # Random List to Choose the Culture Group random_list = { 10 = { modifier = { factor = 0 SPR = { owns_state = 88 } 88 = { NOT = { is_core_of = NAV } } } # Basque random_list = { 50 = { # support event modifier = { factor = SPR_basque_support_chance_factor } modifier = { factor = 0 nationalist_fascists_are_in_power_or_coalition = yes } country_event = { id = spain.8 random_days = 60 } } 50 = { #protest event modifier = { factor = SPR_basque_protest_chance_factor } country_event = { id = spain.9 random_days = 60 } } } } 10 = { modifier = { factor = 0 if = { limit = { SPR = { owns_state = 944 } } 944 = { NOT = { is_core_of = GAL } } } if = { limit = { SPR = { owns_state = 1055 } } 1055 = { NOT = { is_core_of = GAL } } } } # Galegos random_list = { 50 = { # support event modifier = { factor = SPR_galician_support_chance_factor } country_event = { id = spain.12 random_days = 60 } } 50 = { #protest event modifier = { factor = SPR_galician_protest_chance_factor } country_event = { id = spain.13 random_days = 60 } } } } 10 = { modifier = { factor = 0 SPR = { owns_state = 86 } 86 = { NOT = { is_core_of = CAT } } } # Catalonians random_list = { 50 = { # support event modifier = { factor = SPR_catalonian_support_chance_factor } modifier = { factor = 0 nationalist_fascists_are_in_power_or_coalition = yes } country_event = { id = spain.16 random_days = 60 } } 50 = { #protest event modifier = { factor = SPR_catalonian_protest_chance_factor } country_event = { id = spain.17 random_days = 60 } } } } 10 = { modifier = { factor = 0 SPR = { owns_state = 93 } 93 = { NOT = { is_core_of = CAT } } } # andalusians random_list = { 50 = { # support event modifier = { factor = SPR_andalusian_support_chance_factor } country_event = { id = spain.20 random_days = 60 } } 50 = { #protest event modifier = { factor = SPR_andalusian_protest_chance_factor } country_event = { id = spain.21 random_days = 60 } } } } 10 = { modifier = { factor = 0 SPR = { owns_state = 95 } 95 = { NOT = { is_core_of = CNR } } } # Canarios random_list = { 50 = { # support event modifier = { factor = SPR_canarios_support_chance_factor } country_event = { id = spain.24 random_days = 60 } } 50 = { #protest event modifier = { factor = SPR_canarios_protest_chance_factor } country_event = { id = spain.25 random_days = 60 } } } } 40 = { } } } } } on_monthly_CAN = { effect = { if = { limit = { OR = { check_variable = { global.month = 1 } # Jan check_variable = { global.month = 3 } # MArch check_variable = { global.month = 6 } # June check_variable = { global.month = 9 } # September } } random_list = { 5 = { #Riots in Quebec modifier = { factor = 0.01 check_variable = { var = french_happiness_var value > 20 } } modifier = { factor = 10 check_variable = { var = french_happiness_var value < 10 } } modifier = { factor = 0.5 check_variable = { var = french_happiness_var value > 25 } check_variable = { var = french_happiness_var value < 30 } } country_event = { id = canada.700 days = 5 random_days = 5 } #just to keep it from firing on the first of every month. } 10 = { #Peaceful Protests modifier = { factor = 0.01 check_variable = { var = french_happiness_var value < 20 } } modifier = { factor = 2.0 check_variable = { var = french_happiness_var value > 19 } check_variable = { var = french_happiness_var value < 40 } } country_event = { id = canada.701 days = 5 random_days = 5 } } 15 = { #Anti-Government Speaker modifier = { factor = 0.01 check_variable = { french_happiness_var < 40 } } country_event = { id = canada.702 days = 5 random_days = 5 } } 35 = { #Do nothing modifier = { factor = 0.01 check_variable = { var = french_happiness_var value = 40 compare = less_than_or_equals } check_variable = { var = french_happiness_var value = 60 compare = greater_than_or_equals } } modifier = { factor = 2.5 check_variable = { french_happiness_var > 40 } check_variable = { french_happiness_var < 60 } } #Nothing } 25 = { #Pro Government French Canadian modifier = { factor = 2.5 check_variable = { var = french_happiness_var value = 60 compare = greater_than_or_equals } check_variable = { var = french_happiness_var value = 80 compare = less_than_or_equals } } country_event = { id = canada.703 days = 5 random_days = 5 } } 10 = { #Quebec Polls in support of the government modifier = { factor = 2.5 check_variable = { french_happiness_var > 79 } } country_event = { id = canada.704 days = 5 random_days = 5 } } } } } } on_monthly_SUD = { random_events = { 1000 = 0 50 = Darfur.1 } } on_monthly_SSU = { random_events = { 1000 = 0 40 = SouthSudan.15 } } on_monthly_WAA = { effect = { if = { limit = { has_idea = Ethnic_Insurgencies has_country_flag = ceasefire } set_temp_variable = { percent_change = 1 } set_temp_variable = { tag_index = BRM.id } set_temp_variable = { influence_target = THIS.id } change_influence_percentage = yes } } } on_monthly_KAR = { effect = { if = { limit = { has_idea = Ethnic_Insurgencies has_country_flag = ceasefire } set_temp_variable = { percent_change = 1 } set_temp_variable = { tag_index = BRM.id } set_temp_variable = { influence_target = THIS.id } change_influence_percentage = yes } } } on_monthly_SHA = { effect = { if = { limit = { has_idea = Ethnic_Insurgencies has_country_flag = ceasefire } set_temp_variable = { percent_change = 1 } set_temp_variable = { tag_index = BRM.id } set_temp_variable = { influence_target = THIS.id } change_influence_percentage = yes } } } on_monthly_KAC = { effect = { if = { limit = { has_idea = Ethnic_Insurgencies has_country_flag = ceasefire } set_temp_variable = { percent_change = 1 } set_temp_variable = { tag_index = BRM.id } set_temp_variable = { influence_target = THIS.id } change_influence_percentage = yes } } } # Bosnia on_weekly_RSK = { effect = { if = { limit = { has_country_flag = RSK_civil_war_recovery_pending is_subject = yes } clr_country_flag = RSK_civil_war_recovery_pending clr_country_flag = civil_war_bosnia clr_country_flag = civil_war_bos_two BOS = { clr_country_flag = civil_war_focus clr_country_flag = civil_war_bosnia clr_country_flag = civil_war_bos_two clr_country_flag = BOS_defeat_all_serbs } } else_if = { limit = { has_country_flag = RSK_civil_war_recovery_pending has_country_flag = civil_war_bosnia is_subject = no has_civil_war = no has_war = no } country_event = BOS_political.20 } } } on_daily_BOS = { effect = { if = { limit = { is_ai = yes BOS_ai_can_attack_cro_uncached_trigger = yes } set_country_flag = BOS_ai_can_attack_cro } else = { clr_country_flag = BOS_ai_can_attack_cro } if = { limit = { is_ai = yes BOS_ai_can_attack_ser_uncached_trigger = yes } set_country_flag = BOS_ai_can_attack_ser } else = { clr_country_flag = BOS_ai_can_attack_ser } if = { limit = { is_ai = yes BOS_ai_can_attack_mnt_uncached_trigger = yes } set_country_flag = BOS_ai_can_attack_mnt } else = { clr_country_flag = BOS_ai_can_attack_mnt } if = { limit = { BOS_ruling_outlook_focus_in_progress_uncached_trigger = yes } set_country_flag = BOS_ruling_outlook_focus_active } else = { clr_country_flag = BOS_ruling_outlook_focus_active } } } on_weekly_BOS = { effect = { 128 = { if = { limit = { is_owned_by = BOS check_variable = { BOS.BOS_bosniak_trust < 25 } } if = { limit = { NOT = { has_dynamic_modifier = { modifier = BOS_anti_government_demonstrations } } } add_dynamic_modifier = { modifier = BOS_anti_government_demonstrations } } } else = { if = { limit = { has_dynamic_modifier = { modifier = BOS_anti_government_demonstrations } } remove_dynamic_modifier = { modifier = BOS_anti_government_demonstrations } } } } 1051 = { if = { limit = { is_owned_by = BOS check_variable = { BOS.BOS_bosniak_trust < 25 } } if = { limit = { NOT = { has_dynamic_modifier = { modifier = BOS_anti_government_demonstrations } } } add_dynamic_modifier = { modifier = BOS_anti_government_demonstrations } } } else = { if = { limit = { has_dynamic_modifier = { modifier = BOS_anti_government_demonstrations } } remove_dynamic_modifier = { modifier = BOS_anti_government_demonstrations } } } } 1052 = { if = { limit = { is_owned_by = BOS check_variable = { BOS.BOS_croat_trust < 25 } } if = { limit = { NOT = { has_dynamic_modifier = { modifier = BOS_anti_government_demonstrations } } } add_dynamic_modifier = { modifier = BOS_anti_government_demonstrations } } } else = { if = { limit = { has_dynamic_modifier = { modifier = BOS_anti_government_demonstrations } } remove_dynamic_modifier = { modifier = BOS_anti_government_demonstrations } } } } 1054 = { if = { limit = { is_owned_by = BOS check_variable = { BOS.BOS_srpska_trust < 25 } } if = { limit = { NOT = { has_dynamic_modifier = { modifier = BOS_anti_government_demonstrations } } } add_dynamic_modifier = { modifier = BOS_anti_government_demonstrations } } } else = { if = { limit = { has_dynamic_modifier = { modifier = BOS_anti_government_demonstrations } } remove_dynamic_modifier = { modifier = BOS_anti_government_demonstrations } } } } 129 = { if = { limit = { is_owned_by = BOS check_variable = { BOS.BOS_srpska_trust < 25 } } if = { limit = { NOT = { has_dynamic_modifier = { modifier = BOS_anti_government_demonstrations } } } add_dynamic_modifier = { modifier = BOS_anti_government_demonstrations } } } else = { if = { limit = { has_dynamic_modifier = { modifier = BOS_anti_government_demonstrations } } remove_dynamic_modifier = { modifier = BOS_anti_government_demonstrations } } } } BOS_update_national_reconciliation_effect = yes BOS_update_governing_partner_effect = yes if = { limit = { has_war = no has_civil_war = no NOT = { has_country_flag = civil_war_bosnia } NOT = { has_country_flag = BOS_faction_demand_cooldown } OR = { check_variable = { BOS_bosniak_trust < 51 } check_variable = { BOS_croat_trust < 51 } check_variable = { BOS_srpska_trust < 51 } } } set_country_flag = { flag = BOS_faction_demand_cooldown days = 110 value = 1 } if = { limit = { check_variable = { BOS_bosniak_trust < 51 } check_variable = { var = BOS_bosniak_trust value = BOS_croat_trust compare = less_than_or_equals } check_variable = { var = BOS_bosniak_trust value = BOS_srpska_trust compare = less_than_or_equals } } country_event = { id = BOS_events.56 days = 3 } } else_if = { limit = { check_variable = { BOS_croat_trust < 51 } check_variable = { var = BOS_croat_trust value = BOS_srpska_trust compare = less_than_or_equals } } country_event = { id = BOS_events.57 days = 3 } } else_if = { limit = { check_variable = { BOS_srpska_trust < 51 } } country_event = { id = BOS_events.58 days = 3 } } } # Presidency rotation left overdue: both the 240d cooldown and the 360d overdue window have lapsed with no rotation, so the faction next in line to hold the seat sours. 180d souring cooldown throttles the nag. if = { limit = { has_country_flag = BOS_presidency_rotation_started OR = { has_idea = BOS_rotating_presidency has_idea = BOS_rotating_presidency2 has_idea = BOS_rotating_presidency3 } has_war = no has_civil_war = no NOT = { has_country_flag = civil_war_bosnia } NOT = { has_country_flag = BOS_presidency_rotation_cooldown } NOT = { has_country_flag = BOS_presidency_overdue_window } NOT = { has_country_flag = BOS_presidency_souring_cooldown } OR = { has_country_flag = BOS_a_serb_is_in_power has_country_flag = BOS_a_croat_is_in_power has_country_flag = BOS_a_bosniak_is_in_power } } set_country_flag = { flag = BOS_presidency_souring_cooldown days = 180 value = 1 } country_event = { id = BOS_political.84 days = 3 } } if = { limit = { has_idea = BOS_milorad_dodik_idea check_variable = { BOS_srpska_trust < 25 } NOT = { has_idea = BOS_republika_srpska_secession_crisis } NOT = { has_country_flag = BOS_rs_crisis_cooldown } NOT = { has_country_flag = civil_war_bosnia } has_civil_war = no } set_country_flag = { flag = BOS_rs_crisis_cooldown days = 720 value = 1 } country_event = { id = BOS_political.27 days = 2 } } if = { limit = { OR = { has_idea = corruption_level_06 has_idea = corruption_level_07 has_idea = corruption_level_08 has_idea = corruption_level_09 has_idea = corruption_level_10 } NOT = { has_country_flag = BOS_corruption_scandal_cooldown } NOT = { has_country_flag = civil_war_bosnia } } random = { chance = 4 set_country_flag = { flag = BOS_corruption_scandal_cooldown days = 365 value = 1 } country_event = { id = BOS_political.26 days = 2 } } } # The community holding the government leverages the seat for an economic ask. Shares the 110d demand cooldown so the ask and demand loops interleave rather than stack. if = { limit = { has_war = no has_civil_war = no NOT = { has_country_flag = civil_war_bosnia } NOT = { has_country_flag = BOS_faction_demand_cooldown } NOT = { has_country_flag = BOS_governing_ask_cooldown } OR = { AND = { BOS_srpska_leads_government_trigger = yes check_variable = { BOS_srpska_trust > 50 } country_exists = CHI } AND = { BOS_croat_leads_government_trigger = yes check_variable = { BOS_croat_trust > 50 } } AND = { BOS_bosniak_leads_government_trigger = yes check_variable = { BOS_bosniak_trust > 50 } } } } set_country_flag = { flag = BOS_governing_ask_cooldown days = 240 value = 1 } set_country_flag = { flag = BOS_faction_demand_cooldown days = 110 value = 1 } if = { limit = { BOS_srpska_leads_government_trigger = yes } country_event = { id = BOS_events.61 days = 3 } } else_if = { limit = { BOS_croat_leads_government_trigger = yes } country_event = { id = BOS_events.62 days = 3 } } else_if = { limit = { BOS_bosniak_leads_government_trigger = yes } country_event = { id = BOS_events.63 days = 3 } } } } } on_monthly_BOS = { effect = { if = { limit = { has_civil_war = no NOT = { has_country_flag = civil_war_bosnia } } # Emigration pressure drifts on structural push factors (brain drain, corruption, hostile communities) against retention policy (jobs, youth grants, the corridor, remittances). set_temp_variable = { BOS_emig_delta = 0 } if = { limit = { has_idea = BOS_brain_drain_2 } add_to_temp_variable = { BOS_emig_delta = 3 } } else_if = { limit = { has_idea = BOS_brain_drain_1 } add_to_temp_variable = { BOS_emig_delta = 2 } } if = { limit = { OR = { has_idea = corruption_level_07 has_idea = corruption_level_08 has_idea = corruption_level_09 has_idea = corruption_level_10 } } add_to_temp_variable = { BOS_emig_delta = 1 } } if = { limit = { check_variable = { BOS_bosniak_trust < 25 } } add_to_temp_variable = { BOS_emig_delta = 1 } } if = { limit = { check_variable = { BOS_croat_trust < 25 } } add_to_temp_variable = { BOS_emig_delta = 1 } } if = { limit = { check_variable = { BOS_srpska_trust < 25 } } add_to_temp_variable = { BOS_emig_delta = 1 } } if = { limit = { has_idea = BOS_jobs_program_idea } subtract_from_temp_variable = { BOS_emig_delta = 1 } } if = { limit = { has_idea = BOS_youth_retention_idea } subtract_from_temp_variable = { BOS_emig_delta = 1 } } if = { limit = { has_idea = BOS_corridor_vc_trade_boost } subtract_from_temp_variable = { BOS_emig_delta = 1 } } if = { limit = { has_idea = BOS_diaspora_remittances } subtract_from_temp_variable = { BOS_emig_delta = 1 } } add_to_variable = { BOS_emigration_pressure = BOS_emig_delta } clamp_variable = { var = BOS_emigration_pressure min = 0 max = 100 } # Sustained pressure bleeds manpower from every community. if = { limit = { check_variable = { BOS_emigration_pressure > 75 } } set_temp_variable = { temp_manpower_change = -2 } BOS_bosniak_manpower_apply_effect = yes BOS_croat_manpower_apply_effect = yes BOS_srpska_manpower_apply_effect = yes } else_if = { limit = { check_variable = { BOS_emigration_pressure > 50 } } set_temp_variable = { temp_manpower_change = -1 } BOS_bosniak_manpower_apply_effect = yes BOS_croat_manpower_apply_effect = yes BOS_srpska_manpower_apply_effect = yes } # Warn once per excursion above each threshold; clear the guard when pressure falls back under it. if = { limit = { check_variable = { BOS_emigration_pressure > 50 } NOT = { has_country_flag = BOS_emigration_pressure_warned } } set_country_flag = BOS_emigration_pressure_warned country_event = { id = BOS_events.64 days = 2 } } else_if = { limit = { check_variable = { BOS_emigration_pressure < 51 } has_country_flag = BOS_emigration_pressure_warned } clr_country_flag = BOS_emigration_pressure_warned } if = { limit = { check_variable = { BOS_emigration_pressure > 75 } NOT = { has_country_flag = BOS_emigration_crisis_warned } } set_country_flag = BOS_emigration_crisis_warned country_event = { id = BOS_events.65 days = 2 } } else_if = { limit = { check_variable = { BOS_emigration_pressure < 76 } has_country_flag = BOS_emigration_crisis_warned } clr_country_flag = BOS_emigration_crisis_warned } # Foreign patron pull: strong Belgrade or Zagreb influence erodes that community's trust in Sarajevo, unless the community holds the government, where the tie instead reinforces it. Capped short of the ends to avoid pinning. if = { limit = { any_of = { array = influence_array value = v index = i var:v = { tag = SER } check_variable = { influence_array_val^i > 50 } } } if = { limit = { BOS_srpska_leads_government_trigger = yes check_variable = { BOS_srpska_trust < 90 } } set_temp_variable = { temp_trust_change = 1 } BOS_srpska_trust_apply_effect = yes } else_if = { limit = { NOT = { BOS_srpska_leads_government_trigger = yes } check_variable = { BOS_srpska_trust > 10 } } set_temp_variable = { temp_trust_change = -1 } BOS_srpska_trust_apply_effect = yes } } if = { limit = { any_of = { array = influence_array value = v index = i var:v = { tag = CRO } check_variable = { influence_array_val^i > 40 } } } if = { limit = { BOS_croat_leads_government_trigger = yes check_variable = { BOS_croat_trust < 90 } } set_temp_variable = { temp_trust_change = 1 } BOS_croat_trust_apply_effect = yes } else_if = { limit = { NOT = { BOS_croat_leads_government_trigger = yes } check_variable = { BOS_croat_trust > 10 } } set_temp_variable = { temp_trust_change = -1 } BOS_croat_trust_apply_effect = yes } } } } } #Romania on_weekly_ROM = { effect = { if = { limit = { 153 = { is_owned_by = ROM } 154 = { is_owned_by = ROM } 996 = { is_owned_by = ROM } ROM = { has_government = democratic NOT = { has_country_flag = rom_bunion } } } ROM = { country_event = romania_politics.50 } } if = { limit = { 333 = { is_owned_by = ROM } 335 = { is_owned_by = ROM } ROM = { NOT = { has_country_flag = rom_pmr_name_change } } } ROM = { country_event = romania_politics.51 } } if = { limit = { GER = { nationalist_monarchists_are_in_power = yes } ROM = { OR = { nationalist_monarchists_are_in_power = yes western_autocrats_are_in_power = yes } NOT = { has_country_flag = rom_hohenzollerns } } } ROM = { country_event = romania_politics.62 } } } } on_monthly_BOL = { effect = { if = { limit = { check_variable = { BOL_mestizo_support < 15 } emerging_anarchist_communism_are_in_power = yes NOT = { has_country_flag = BOL_mestizo_support_flag } } BOL = { set_country_flag = BOL_mestizo_support_flag country_event = bolivia_ethnic.1 } } } } # Greece on_monthly_GRE = { random_events = { 1000 = 0 100 = greece.2 150 = greece.3 100 = greece.16 450 = greece.17 150 = greece.22 } } # Nigeria on_weekly_NIG = { effect = { if = { limit = { has_active_mission = NIG_religious_civil_war_mission } if = { limit = { 322 = { NIG_has_been_converted = yes } 337 = { NIG_has_been_converted = yes } 336 = { NIG_has_been_converted = yes } 334 = { NIG_has_been_converted = yes } 340 = { NIG_has_been_converted = yes } 338 = { NIG_has_been_converted = yes } 339 = { NIG_has_been_converted = yes } 332 = { NIG_has_been_converted = yes } } set_country_flag = NIG_has_converted_everything } } } } # ETH on_weekly_ETH = { effect = { if = { limit = { NOT = { has_country_flag = ETH_isaias_afwerki_arrested } OR = { AND = { owns_state = 228 owns_state = 229 NOT = { country_exists = ERI } } ERI = { is_subject_of = ETH } } } set_country_flag = ETH_isaias_afwerki_arrested country_event = { id = ethiopia.13 days = 2 } } if = { limit = { NOT = { has_country_flag = ETH_proposes_ceasefire } date > 2000.5.1 has_war_with = ERI OR = { NOT = { 231 = { is_fully_controlled_by = ETH } } NOT = { 228 = { is_fully_controlled_by = ERI } } NOT = { 229 = { is_fully_controlled_by = ERI } } } } set_country_flag = ETH_proposes_ceasefire random_list = { 50 = { ETH = { country_event = { id = ethiopia.21 days = 2 } } } 50 = { ERI = { country_event = { id = ethiopia.21 days = 2 } } } } } } } # BRM on_weekly_BRM = { effect = { if = { limit = { NOT = { has_country_flag = BRM_insurgency_crushed_event_happened } has_completed_focus = BRM_crush_the_rebel_groups NOT = { OR = { country_exists = KAR country_exists = SHN country_exists = NHN country_exists = WAA country_exists = KAC } } } set_country_flag = BRM_insurgency_crushed_event_happened news_event = { id = Burma_News.8 days = 2 } } } } }