on_actions = { on_weekly_ALG = { effect = { ### HIRAK PROTEST SYSTEM ### if = { limit = { has_country_flag = ALG_protests_ongoing } if = { limit = { check_variable = { ALG_protest_exhaustion > 19 } } random = { chance = 30 country_event = algerian_events.2025 } } if = { limit = { check_variable = { ALG_protest_exhaustion < 10 } } random = { chance = 70 ALG_trigger_protest = yes } } else_if = { limit = { check_variable = { ALG_protest_exhaustion > 15 } } random = { chance = 20 ALG_trigger_protest = yes } } else_if = { limit = { check_variable = { ALG_protest_exhaustion > 9 } } random = { chance = 40 ALG_trigger_protest = yes } } } ### algerian_events.300 — Hirak protests trigger (fire_only_once, ~5 day MTTH) ### if = { limit = { NOT = { has_country_flag = ALG_protests_ongoing } NOT = { has_country_flag = algerian_events_300_fired } } set_country_flag = algerian_events_300_fired country_event = algerian_events.300 } } } on_monthly_ALG = { effect = { ### SAHARA DESERTIFICATION PULSE ### if = { limit = { NOT = { has_country_flag = on_yearly_done_ALG } date > 2001.1.1 } random_list = { sahara_expands = { country_event = ALG_pulse.1 } sahara_steady = { country_event = ALG_pulse.2 } sahara_retreats = { country_event = ALG_pulse.3 } } set_country_flag = { flag = on_yearly_done_ALG days = 350 value = 1 } } ### RESISTANCE PATH EVENTS ### # alg.400 — civilian government threshold (fire_only_once, ~15 day MTTH) if = { limit = { has_country_flag = ALG_resistance_path check_variable = { ALG_army_influence < 5 } check_variable = { ALG_people_grievance > 30 } } random = { chance = 33 country_event = alg.400 } } # alg.401 — corrupt generals crisis (fire_only_once, ~20 day MTTH) if = { limit = { has_country_flag = ALG_resistance_path check_variable = { ALG_army_influence > 30 } check_variable = { ALG_people_grievance > 40 } } random = { chance = 25 country_event = alg.401 } } # alg.402 — civil war threshold (fire_only_once, ~10 day MTTH) if = { limit = { has_country_flag = ALG_resistance_path check_variable = { ALG_people_grievance > 40 } has_stability < 0.25 NOT = { has_country_flag = ALG_civil_war_triggered } } random = { chance = 67 country_event = alg.402 } } if = { limit = { has_country_flag = ALG_civil_war_triggered } country_event = alg.450 } ### FLN EVENTS ### # ALG_fln.1 — party corruption scandal (fire_only_once, ~120 day MTTH) if = { limit = { has_completed_focus = ALG_share_power NOT = { has_country_flag = ALG_corruption_scandal_happened } } random_list = { 8 = { modifier = { factor = 2 has_stability < 0.5 } country_event = ALG_fln.1 } 92 = { modifier = { factor = 0.5 has_stability < 0.5 } } } } # ALG_fln.2 — Sonatrach corruption (fire_only_once, ~90 day MTTH) if = { limit = { date > 2013.1.1 OR = { has_completed_focus = ALG_denounce_previous_colonialist_regimes has_completed_focus = ALG_oppose_ffs_and_rcd } NOT = { has_country_flag = ALG_sonatrach_scandal_happened } } if = { limit = { has_stability < 0.5 } random = { chance = 22 country_event = ALG_fln.2 } } else = { random = { chance = 11 country_event = ALG_fln.2 } } } # ALG_fln.3 — Hirak awakens (fire_only_once, ~60 day MTTH) if = { limit = { date > 2019.1.1 has_country_flag = ALG_sonatrach_scandal_happened NOT = { has_country_flag = ALG_hirak_happened } } if = { limit = { has_stability < 0.4 } random = { chance = 34 country_event = ALG_fln.3 } } else = { random = { chance = 17 country_event = ALG_fln.3 } } } # ALG_auto.1 — auto sector scandal (fire_only_once, ~60 day MTTH) if = { limit = { date > 2017.1.1 has_completed_focus = ALG_renault_oran has_completed_focus = ALG_bmw_deal has_completed_focus = ALG_mercedes_trucks has_completed_focus = ALG_auto_exports NOT = { has_country_flag = ALG_auto_scandal_happened } } random = { chance = 17 country_event = ALG_auto.1 } } ### SAHAR PEACE DEAL (algeria_sahar.2, repeating) ### MOR = { if = { limit = { has_war_with = SHA surrender_progress > 0.09 NOT = { has_country_flag = MOR_sahrawi_go } } random = { chance = 33 country_event = algeria_sahar.2 } } } ### FRA COLONIAL LAW REACTION (fra_colonial.1, repeating) ### if = { limit = { has_completed_focus = ALG_denounce_previous_colonialist_regimes } FRA = { if = { limit = { NOT = { has_country_flag = fra_colonial_1_cooldown } } set_country_flag = { flag = fra_colonial_1_cooldown days = 365 value = 1 } random = { chance = 50 country_event = fra_colonial.1 } } } } ### ALG_interim_president.1 — interim president chosen (fire_only_once) ### if = { limit = { has_country_flag = ALG_bouteflika_resigned NOT = { has_country_flag = ALG_interim_president_chosen } } country_event = ALG_interim_president.1 } ### ALG_presidency.1 — MSP president reaction (fire_only_once, ~1 day MTTH) ### if = { limit = { has_country_flag = ALG_msp_president_chosen NOT = { has_country_flag = alg_presidency_1_fired } } set_country_flag = alg_presidency_1_fired country_event = ALG_presidency.1 } ### ALG_morocco.2 — Morocco reacts to Casablanca pressure (fire_only_once) ### if = { limit = { check_variable = { algeria_casablanca_result > 1 } NOT = { has_country_flag = ALG_morocco_2_fired } } set_country_flag = ALG_morocco_2_fired MOR = { country_event = ALG_morocco.2 } } } } }