on_actions = { # on_annex can fire while TAJ still exists, so country_exists = TAJ in # TAJ_drug_flow_update would still read true here - remove outright instead. on_annex = { effect = { if = { limit = { FROM = { original_tag = TAJ } country_exists = SOV SOV = { has_dynamic_modifier = { modifier = TAJ_tajik_drugs } } } SOV = { remove_dynamic_modifier = { modifier = TAJ_tajik_drugs } } } } } on_subject_annexed = { effect = { if = { limit = { ROOT = { original_tag = TAJ } country_exists = SOV SOV = { has_dynamic_modifier = { modifier = TAJ_tajik_drugs } } } SOV = { remove_dynamic_modifier = { modifier = TAJ_tajik_drugs } } } } } on_puppet = { effect = { if = { limit = { ROOT = { original_tag = TAJ } country_exists = SOV SOV = { has_country_flag = tajik_drugs_flag } } SOV = { TAJ_drug_flow_update = yes } } } } on_subject_free = { effect = { if = { limit = { ROOT = { original_tag = TAJ } country_exists = SOV SOV = { has_country_flag = tajik_drugs_flag } } SOV = { TAJ_drug_flow_update = yes } } } } on_release_as_puppet = { effect = { if = { limit = { ROOT = { original_tag = TAJ } country_exists = SOV SOV = { has_country_flag = tajik_drugs_flag } } SOV = { TAJ_drug_flow_update = yes } } } } on_release_as_free = { effect = { if = { limit = { ROOT = { original_tag = TAJ } country_exists = SOV SOV = { has_country_flag = tajik_drugs_flag } } SOV = { TAJ_drug_flow_update = yes } } } } on_peaceconference_ended = { effect = { if = { limit = { FROM = { original_tag = TAJ } country_exists = SOV SOV = { has_country_flag = tajik_drugs_flag } } SOV = { TAJ_drug_flow_update = yes } } } } on_government_change = { effect = { if = { limit = { ROOT = { original_tag = TAJ has_completed_focus = TAJ_appoint_rustam } } ROOT = { TAJ_rustams_governance_update = yes } } } } on_daily_TAJ = { effect = { if = { limit = { 722 = { has_dynamic_modifier = { modifier = TAJ_badakhshan_resistance_dynamic_modifier } } } set_variable = { badakhshan_resistance_cap = TAJ_badakhshan_unrest_var } multiply_variable = { badakhshan_resistance_cap = 0.005 } set_variable = { badakhshan_resistance_garrison_requirement = TAJ_badakhshan_unrest_var } multiply_variable = { badakhshan_resistance_garrison_requirement = 0.03 } set_variable = { badakhshan_resistance_garrison_damage = TAJ_badakhshan_unrest_var } multiply_variable = { badakhshan_resistance_garrison_damage = 0.019 } subtract_from_variable = { badakhshan_resistance_garrison_damage = 0.999 } } } } on_monthly_TAJ = { effect = { # Every emerging subideology sits in the communism ideology group, so a swap # between them never reaches on_government_change. if = { limit = { has_completed_focus = TAJ_appoint_rustam } TAJ_rustams_governance_update = yes } if = { limit = { has_country_flag = TAJ_monthly_distribution } set_temp_variable = { temp_opinion = 2 } change_the_military_opinion = yes change_oligarchs_opinion = yes change_farmers_opinion = yes change_small_medium_business_owners_opinion = yes change_fossil_fuel_industry_opinion = yes change_labour_unions_opinion = yes change_international_bankers_opinion = yes change_industrial_conglomerates_opinion = yes change_defense_industry_opinion = yes change_the_ulema_opinion = yes change_iranian_quds_force_opinion = yes change_landowners_opinion = yes change_intelligence_community_opinion = yes change_maritime_industry_opinion = yes if = { limit = { has_country_flag = TAJ_high_security_flag } # Get some cash set_temp_variable = { treasury_change = gdp_total } multiply_temp_variable = { treasury_change = 0.01 } modify_treasury_effect = yes newline = yes # Get some manpower add_manpower = 125 # Get some rifles newline = yes add_equipment_to_stockpile = { type = infantry_weapons_1 amount = 75 producer = SOV } newline = yes # Get some utility trucks add_equipment_to_stockpile = { type = util_vehicle_1 amount = 15 producer = C01 } newline = yes # Political Power add_political_power = 15 } else_if = { limit = { has_country_flag = TAJ_medium_security_flag } # Get some cash set_temp_variable = { treasury_change = gdp_total } multiply_temp_variable = { treasury_change = 0.02 } modify_treasury_effect = yes newline = yes # Get some manpower add_manpower = 250 # Get some rifles newline = yes add_equipment_to_stockpile = { type = infantry_weapons_1 amount = 175 producer = SOV } newline = yes # Get some utility trucks add_equipment_to_stockpile = { type = util_vehicle_1 amount = 35 producer = C01 } newline = yes # Political Power add_political_power = 35 # Command Power & XP add_command_power = 5 newline = yes army_experience = 5 } else_if = { limit = { has_country_flag = TAJ_negligible_security_flag } # Get some cash set_temp_variable = { treasury_change = gdp_total } multiply_temp_variable = { treasury_change = 0.03 } modify_treasury_effect = yes newline = yes # Get some manpower add_manpower = 350 # Get some rifles newline = yes add_equipment_to_stockpile = { type = infantry_weapons_1 amount = 275 producer = SOV } newline = yes # Get some utility trucks add_equipment_to_stockpile = { type = util_vehicle_1 amount = 55 producer = C01 } newline = yes # Political Power add_political_power = 60 newline = yes # Command Power & XP add_command_power = 15 newline = yes # Army XP army_experience = 10 newline = yes # Random ass influence on someone random_country = { set_temp_variable = { percent_change = 1.00 } set_temp_variable = { tag_index = TAJ } set_temp_variable = { influence_target = THIS } change_influence_percentage = yes } } } if = { limit = { NOT = { has_country_flag = TAJ_monthly_distribution } has_dynamic_modifier = { modifier = TAJ_russian_payments } } country_event = { id = tajik_corruption.1 days = 29 } } # 6 Year thing if = { limit = { has_country_flag = TAJ_civs_yearly_flag check_variable = { TAJ_yearly_var_civ = 0 } } add_to_variable = { var = TAJ_yearly_var_civ value = 12 } clamp_variable = { var = TAJ_yearly_var_civ min = 0 max = 12 } one_random_industrial_complex = yes } if = { limit = { has_country_flag = TAJ_civs_yearly_flag check_variable = { TAJ_yearly_var_civ > 0 } } add_to_variable = { var = TAJ_yearly_var_civ value = -1 } clamp_variable = { var = TAJ_yearly_var_civ min = 0 max = 12 } } if = { limit = { has_completed_focus = TAJ_masks_of_gold } if = { limit = { has_country_flag = TAJ_high_security_flag } TAJ_random_pop_up_bad_high = yes TAJ_random_pop_up_good_high = yes } else_if = { limit = { has_country_flag = TAJ_medium_security_flag } TAJ_random_pop_up_bad_medium = yes TAJ_random_pop_up_good_medium = yes } else_if = { limit = { has_country_flag = TAJ_negligible_security_flag } TAJ_random_pop_up_bad_low = yes TAJ_random_pop_up_good_low = yes } } # Modifier from Nat-Guard decision if = { limit = { has_country_leader = { name = "Sayid Abdulloh Nuri" ruling_only = yes } } add_to_variable = { var = TAJ_nuri_months value = -1 } clamp_variable = { var = TAJ_nuri_months min = -36 max = 0 } } if = { limit = { has_country_leader = { name = "Sayid Abdulloh Nuri" ruling_only = yes } check_variable = { TAJ_nuri_months = -36 } } country_event = tajik_focus.10 } if = { limit = { has_idea = TAJ_national_guard_deployed } add_to_variable = { var = TAJ_radical_influence value = -1 } clamp_variable = { var = TAJ_radical_influence min = 0 max = 100 } } # Radicalism check if = { limit = { NOT = { OR = { has_country_flag = TAJ_radicalism_ended neutrality_neutral_muslim_brotherhood_are_in_power = yes salafist_caliphate_are_in_power = yes salafist_kingdom_are_in_power = yes } } } random = { chance = 35 TAJ_check_radicalism = yes } if = { limit = { NOT = { has_idea = TAJ_national_guard_deployed } } random_list = { 25 = { add_to_variable = { var = TAJ_radical_influence value = 1 } clamp_variable = { var = TAJ_radical_influence min = 0 max = 100 } } 25 = { add_to_variable = { var = TAJ_radical_influence value = 2 } clamp_variable = { var = TAJ_radical_influence min = 0 max = 100 } } 50 = { # Nothing } } } } if = { limit = { has_idea = TAJ_isik fascism > 0.24 has_stability < 0.40 NOT = { has_country_flag = TAJ_ciilwar_ISIK } } country_event = tajik_radicalism.16 set_country_flag = TAJ_ciilwar_ISIK } } } }