add_namespace = AFG_events add_namespace = AFG_news add_namespace = AFG_border_wars add_namespace = AFG_investment add_namespace = AFG_taliban_attack add_namespace = AFG_taliban_insurgency add_namespace = AFG_hostage_crisis add_namespace = AFG_contact_iran add_namespace = AFG_political_events #Death of Ahmad Shah Massoud Neutral_conservatism country_event = { id = AFG_events.3 title = AFG_events.3.t desc = AFG_events.3.d picture = GFX_ahmad_shah_massoud is_triggered_only = yes fire_only_once = yes trigger = { tag = AFG has_war_with = TAL USA = { NOT = { has_country_flag = USA_wot_enduring_freedom } } has_country_leader = { name = "Ahmad Shah Massoud" ruling_only = yes } } option = { name = AFG_events.3.a log = "[GetDateText]: [This.GetName]: AFG_events.3.a executed" ai_chance = { base = 100 } random_list = { 90 = { retire_character = AFG_ahmed_shah_massoud hidden_effect = { set_leader = yes } hidden_effect = { news_event = { id = AFG_news.6 hours = 6 } } set_country_flag = AFG_massoud_dead } 10 = { custom_effect_tooltip = AFG_massoud_survives_assassination_tt modifier = { factor = 6 has_completed_focus = AFG_the_lions_guard } modifier = { factor = 2 has_completed_focus = AFG_loyal_guards } modifier = { factor = 2 has_completed_focus = AFG_elite_guards } modifier = { factor = 3.5 has_country_flag = AFG_holds_taloqan } } } } } #US sets up a government country_event = { id = AFG_events.4 title = AFG_events.4.t desc = AFG_events.4.d picture = GFX_bonn_agreement is_triggered_only = yes option = { name = AFG_events.4.a log = "[GetDateText]: [This.GetName]: AFG_events.4.a executed" ai_chance = { base = 100 } if = { limit = { has_country_flag = AFG_new_administration_Karzai } custom_effect_tooltip = TT_KARZAI_ADMINISTRATION set_country_flag = AFG_karzai_installed set_temp_variable = { rul_party_temp = 0 } change_ruling_party_effect = yes add_popularity = { ideology = democratic popularity = 0.25 } effect_tooltip = { create_country_leader = { name = "Hamid Karzai" picture = "Hamid_Karzai.dds" ideology = conservatism traits = { afghanistan_tribal_leader western_Western_Autocracy emotional pro_china afghanistan_support_afghan_peace } } } mark_focus_tree_layout_dirty = yes set_variable = { current_term = 1 } if = { limit = { has_variable = ruling_party } multiply_variable = { party_pop_array^ruling_party = 1.5 } } set_temp_variable = { party_index = 11 } set_temp_variable = { party_popularity_increase = 0.15 } set_temp_variable = { temp_outlook_increase = 0.15 } change_relative_party_popularity = yes 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 } if = { limit = { has_country_flag = AFG_new_administration_Rabbani } custom_effect_tooltip = TT_RABBANI_ADMINISTRATION add_popularity = { ideology = neutrality popularity = 0.20 } if = { limit = { NOT = { has_country_leader = { name = "Burhanuddin Rabbani" ruling_only = yes } } } effect_tooltip = { create_country_leader = { name = "Burhanuddin Rabbani" picture = "Burhanuddin_Rabbani.dds" ideology = Neutral_Muslim_Brotherhood traits = { cleric neutrality_Neutral_Muslim_Brotherhood afghanistan_support_afghan_peace } } } hidden_effect = { set_leader = yes } } set_temp_variable = { rul_party_temp = 12 } change_ruling_party_effect = yes if = { limit = { has_variable = ruling_party } multiply_variable = { party_pop_array^ruling_party = 1.5 } } 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 } if = { limit = { has_country_flag = AFG_new_administration_Massoud } custom_effect_tooltip = TT_RABBANI_ADMINISTRATION add_popularity = { ideology = neutrality popularity = 0.20 } effect_tooltip = { create_country_leader = { name = "Ahmed Shah Massoud" picture = "Ahmad_Shah_Massoud.dds" expire = "2001.9.9" ideology = Neutral_Muslim_Brotherhood traits = { guerrilla_leader neutrality_Neutral_Muslim_Brotherhood likeable polished afghanistan_lion_of_panjshir } } } set_variable = { current_term = 1 } set_temp_variable = { rul_party_temp = 12 } change_ruling_party_effect = yes if = { limit = { has_variable = ruling_party } multiply_variable = { party_pop_array^ruling_party = 1.5 } } } if = { limit = { has_country_flag = AFG_new_administration_Zahir_Shah } custom_effect_tooltip = TT_SHAH_ADMINISTRATION set_temp_variable = { rul_party_temp = 23 } set_temp_variable = { disable_elections = 1 } change_ruling_party_effect = yes add_popularity = { ideology = nationalist popularity = 0.15 } effect_tooltip = { create_country_leader = { name = "Mohammed Zahir Shah" picture = "Mohammed_Zahir_Shah.dds" desc = "MOHAMMED_ZAHIR_SHAH_DESC" ideology = Monarchist traits = { king nationalist_Monarchist popular_figurehead } } } if = { limit = { has_variable = ruling_party } set_temp_variable = { party_index = ruling_party } set_temp_variable = { party_popularity_increase = 0.15 } change_relative_party_popularity = yes } set_temp_variable = { party_index = 11 } set_temp_variable = { party_popularity_increase = 0.25 } set_temp_variable = { temp_outlook_increase = 0.25 } change_relative_party_popularity = yes } } } # Contact with Iran country_event = { id = AFG_contact_iran.0 title = AFG_contact_iran.0.t desc = AFG_contact_iran.0.d picture = GFX_afghan_national_army1 is_triggered_only = yes option = { # Accepts name = AFG_contact_iran.0.a log = "[GetDateText]: [This.GetName]: AFG_contact_iran.0.a executed" set_temp_variable = { percent_change = 10 } set_temp_variable = { tag_index = PER.id } set_temp_variable = { influence_target = AFG } change_influence_percentage = yes AFG = { country_event = { id = AFG_contact_iran.2 days = 1 } } set_temp_variable = { treasury_change = -7.5 } modify_treasury_effect = yes ai_chance = { base = 1 } } option = { # Declines name = AFG_contact_iran.0.b log = "[GetDateText]: [This.GetName]: AFG_contact_iran.0.b executed" set_temp_variable = { percent_change = -10 } set_temp_variable = { tag_index = PER.id } set_temp_variable = { influence_target = AFG } change_influence_percentage = yes AFG = { country_event = { id = AFG_contact_iran.1 days = 1 } } ai_chance = { base = 0 } } } country_event = { id = AFG_contact_iran.1 title = AFG_contact_iran.1.t desc = AFG_contact_iran.1.d picture = GFX_afghan_national_army1 is_triggered_only = yes option = { # Iran Accepts name = AFG_contact_iran.1.a ai_chance = { base = 1 } } } country_event = { id = AFG_contact_iran.2 title = AFG_contact_iran.2.t desc = AFG_contact_iran.2.d picture = GFX_afghan_national_army1 is_triggered_only = yes option = { # Iran Accepts name = AFG_contact_iran.2.a log = "[GetDateText]: [This.GetName]: AFG_contact_iran.2.a executed" if = { limit = { has_tech = infantry_weapons_3 } add_equipment_to_stockpile = { type = infantry_weapons_3 amount = 7000 producer = PER } } else_if = { limit = { has_tech = infantry_weapons_2 } add_equipment_to_stockpile = { type = infantry_weapons_2 amount = 7000 producer = PER } } if = { limit = { has_template = "Fatemiyoun Commando" } AFG = { capital_scope = { create_unit = { division = "name = \"Fatemiyoun Commando\" division_template = \"Fatemiyoun Commando\" start_experience_factor = 1.0" owner = AFG count = 5 } } } } else = { division_template = { name = "Fatemiyoun Commando" regiments = { Special_Forces = { x = 0 y = 0 } Special_Forces = { x = 0 y = 1 } Special_Forces = { x = 0 y = 2 } Special_Forces = { x = 0 y = 3 } Special_Forces = { x = 1 y = 0 } Special_Forces = { x = 1 y = 1 } Special_Forces = { x = 1 y = 2 } Special_Forces = { x = 1 y = 3 } } priority = 2 } AFG = { capital_scope = { create_unit = { division = "name = \"Fatemiyoun Commando\" division_template = \"Fatemiyoun Commando\" start_experience_factor = 1.0" owner = AFG count = 2 } } } } ai_chance = { base = 1 } } } country_event = { id = AFG_contact_iran.3 title = AFG_contact_iran.3.t desc = AFG_contact_iran.3.d picture = GFX_axis_of_resistance_country is_triggered_only = yes option = { # Accepts name = AFG_contact_iran.3.a log = "[GetDateText]: [This.GetName]: AFG_contact_iran.3.a executed" AFG = { if = { limit = { has_idea = the_ulema } swap_ideas = { remove_idea = the_ulema add_idea = iranian_quds_force } } else_if = { limit = { NOT = { has_idea = iranian_quds_force } } add_ideas = iranian_quds_force } country_event = { id = AFG_contact_iran.4 days = 0 } } ai_chance = { base = 1 } } option = { # Declines name = AFG_contact_iran.3.b log = "[GetDateText]: [This.GetName]: AFG_contact_iran.3.b executed" AFG = { country_event = { id = AFG_contact_iran.5 days = 0 } } ai_chance = { base = 0 } } } country_event = { id = AFG_contact_iran.4 title = AFG_contact_iran.4.t desc = AFG_contact_iran.4.d picture = GFX_axis_of_resistance_country is_triggered_only = yes option = { name = AFG_contact_iran.4.a log = "[GetDateText]: [This.GetName]: AFG_contact_iran.4.a" if = { limit = { FROM = { is_in_faction = yes is_faction_leader = yes } } if = { limit = { is_faction_leader = yes } dismantle_faction = yes } else_if = { limit = { is_in_faction = yes } leave_faction = yes } FROM = { add_to_faction = ROOT } add_ideas = faction_resistance_axis_member } ai_chance = { base = 1 } } } country_event = { id = AFG_contact_iran.5 title = AFG_contact_iran.5.t desc = AFG_contact_iran.5.d picture = GFX_axis_of_resistance_country is_triggered_only = yes option = { name = AFG_contact_iran.5.a ai_chance = { base = 1 } } } news_event = { id = AFG_contact_iran.6 title = AFG_contact_iran.6.t desc = AFG_contact_iran.6.d picture = GFX_news_election_rally is_triggered_only = yes option = { name = AFG_contact_iran.6.a ai_chance = { base = 1 } } } #Taliban Insurgency #Start of Insurgency country_event = { id = AFG_taliban_insurgency.0 title = AFG_taliban_insurgency.0.t desc = AFG_taliban_insurgency.0.d picture = GFX_taliban_insurgency_start is_triggered_only = yes option = { name = AFG_taliban_insurgency.0.a log = "[GetDateText]: [This.GetName]: AFG_taliban_insurgency.0.a executed" add_command_power = 20 set_country_flag = AFG_active_taliban_insurgency custom_effect_tooltip = AFG_support_afghan_counter_insurgency_tt add_ideas = AFG_afghan_morning_taliban_by_night hidden_effect = { #The monthly refresh is gated on the flag we just set, so without this the coalition and observer #arrays sit empty until the next tick and the first quarter's attacks reach nobody. AFG_refresh_insurgency_arrays = yes TAL = { division_template = { name = "Da Zayi Milisho Lawa Taleban" priority = 0 regiments = { Militia_Bat = { x = 0 y = 0 } Militia_Bat = { x = 0 y = 1 } Militia_Bat = { x = 0 y = 2 } Arty_Bat = { x = 0 y = 3 } Militia_Bat = { x = 1 y = 0 } Militia_Bat = { x = 1 y = 1 } Militia_Bat = { x = 1 y = 2 } Arty_Bat = { x = 1 y = 3 } Militia_Bat = { x = 2 y = 0 } Militia_Bat = { x = 2 y = 1 } Militia_Bat = { x = 2 y = 2 } Arty_Bat = { x = 2 y = 3 } } support = { L_Recce_Comp = { x = 0 y = 0 } L_Engi_Comp = { x = 0 y = 1 } combat_service_support_company = { x = 0 y = 2 } Arty_Battery = { x = 0 y = 3 } } } 1207 = { create_unit = { division = "name = \"1st. Da Zayi Milisho Lawa Tajik\" division_template = \"Da Zayi Milisho Lawa Taleban\" start_experience_factor = 1.0 start_equipment_factor = 0.8" owner = TAL prioritize_location = 16283 } create_unit = { division = "name = \"2nd. Da Zayi Milisho Lawa Hazara\" division_template = \"Da Zayi Milisho Lawa Taleban\" start_experience_factor = 1.0 start_equipment_factor = 0.8" owner = TAL prioritize_location = 14686 } create_unit = { division = "name = \"3rd. Da Zayi Milisho Lawa Taleban\" division_template = \"Da Zayi Milisho Lawa Taleban\" start_experience_factor = 1.0 start_equipment_factor = 0.8" owner = TAL prioritize_location = 12831 } create_unit = { division = "name = \"4th. Da Zayi Milisho Lawa Taleban\" division_template = \"Da Zayi Milisho Lawa Taleban\" start_experience_factor = 1.0 start_equipment_factor = 0.8" owner = TAL prioritize_location = 6114 } create_unit = { division = "name = \"5th. Da Zayi Milisho Lawa Taleban\" division_template = \"Da Zayi Milisho Lawa Taleban\" start_experience_factor = 1.0 start_equipment_factor = 0.8" owner = TAL prioritize_location = 16281 } create_unit = { division = "name = \"6th. Da Zayi Milisho Lawa Taleban\" division_template = \"Da Zayi Milisho Lawa Taleban\" start_experience_factor = 1.0 start_equipment_factor = 0.8" owner = TAL prioritize_location = 16280 } create_unit = { division = "name = \"7th. Da Zayi Milisho Lawa Taleban\" division_template = \"Da Zayi Milisho Lawa Taleban\" start_experience_factor = 1.0 start_equipment_factor = 0.8" owner = TAL prioritize_location = 12831 } } } } hidden_effect = { if = { limit = { date > 2017.1.1 } set_temp_variable = { taliban_strength_increase = 10 } increase_taliban_strength = yes } } ai_chance = { base = 1 } } } #Raid Successful news_event = { id = AFG_taliban_insurgency.1 title = AFG_taliban_insurgency.1.t desc = AFG_taliban_insurgency.1.d picture = GFX_afghan_commando_raid_successful is_triggered_only = yes option = { log = "[GetDateText]: [This.GetName]: AFG_taliban_insurgency.1.a executed" name = AFG_taliban_insurgency.1.a add_stability = 0.02 add_political_power = 20 add_command_power = 5 army_experience = 5 set_temp_variable = { taliban_strength_decrease = 5 } decrease_taliban_strength = yes ai_chance = { base = 1 } } } #Raid Failure news_event = { id = AFG_taliban_insurgency.2 title = AFG_taliban_insurgency.2.t desc = AFG_taliban_insurgency.2.d picture = GFX_afghan_commando_raid_failure is_triggered_only = yes option = { log = "[GetDateText]: [This.GetName]: AFG_taliban_insurgency.2.a executed" name = AFG_taliban_insurgency.2.a add_manpower = -10 add_command_power = -5 set_temp_variable = { taliban_strength_increase = 1 } increase_taliban_strength = yes ai_chance = { base = 1 } } } #Airstrike Successful news_event = { id = AFG_taliban_insurgency.3 title = AFG_taliban_insurgency.3.t desc = AFG_taliban_insurgency.3.d picture = GFX_afghan_a29_super_tucano is_triggered_only = yes option = { log = "[GetDateText]: [This.GetName]: AFG_taliban_insurgency.3.a executed" name = AFG_taliban_insurgency.3.a add_command_power = 10 air_experience = 10 set_temp_variable = { taliban_strength_decrease = 10 } decrease_taliban_strength = yes ai_chance = { base = 1 } } } #Airstrike Failure news_event = { id = AFG_taliban_insurgency.4 title = AFG_taliban_insurgency.4.t desc = AFG_taliban_insurgency.4.d picture = GFX_afghan_airstrike_failure is_triggered_only = yes option = { log = "[GetDateText]: [This.GetName]: AFG_taliban_insurgency.4.a executed" name = AFG_taliban_insurgency.4.a random_owned_controlled_state = { add_manpower = -10 } add_political_power = -20 add_stability = -0.02 set_temp_variable = { arg_popularity = -0.02 } add_ruling_outlook_popularity = yes set_temp_variable = { taliban_strength_increase = 5 } increase_taliban_strength = yes ai_chance = { base = 1 } } } #Aircraft Shot Down news_event = { id = AFG_taliban_insurgency.5 title = AFG_taliban_insurgency.5.t desc = AFG_taliban_insurgency.5.d picture = GFX_fighter_shot_down is_triggered_only = yes option = { log = "[GetDateText]: [This.GetName]: AFG_taliban_insurgency.5.a executed" name = AFG_taliban_insurgency.5.a add_command_power = -5 add_manpower = -1 if = { limit = { has_equipment = { medium_plane_airframe > 0 } } add_equipment_to_stockpile = { type = medium_plane_airframe amount = -1 } } else_if = { limit = { has_equipment = { small_plane_strike_airframe > 0 } } add_equipment_to_stockpile = { type = small_plane_strike_airframe amount = -1 } } set_temp_variable = { taliban_strength_increase = 1 } increase_taliban_strength = yes ai_chance = { base = 1 } } } #Unity Propaganda Successful news_event = { id = AFG_taliban_insurgency.6 title = AFG_taliban_insurgency.6.t desc = AFG_taliban_insurgency.6.d picture = GFX_afghan_peace_success is_triggered_only = yes option = { log = "[GetDateText]: [This.GetName]: AFG_taliban_insurgency.6.a executed" name = AFG_taliban_insurgency.6.a add_political_power = 20 add_stability = 0.05 set_temp_variable = { taliban_strength_decrease = 10 } decrease_taliban_strength = yes ai_chance = { base = 1 } } } #Unity Propaganda Failure news_event = { id = AFG_taliban_insurgency.7 title = AFG_taliban_insurgency.7.t desc = AFG_taliban_insurgency.7.d picture = GFX_afghan_peace_failure is_triggered_only = yes option = { name = AFG_taliban_insurgency.7.a log = "[GetDateText]: [This.GetName]: AFG_taliban_insurgency.7.a executed" add_political_power = -10 ai_chance = { base = 1 } } } #Taliban Insurgency Eliminated news_event = { id = AFG_taliban_insurgency.8 title = AFG_taliban_insurgency.8.t desc = AFG_taliban_insurgency.8.d picture = GFX_news_taliban_defeated is_triggered_only = yes major = yes option = { name = AFG_taliban_insurgency.8.a ai_chance = { base = 1 } } } #Hidden Event That Creates Renewed Civil War country_event = { id = AFG_taliban_insurgency.9 is_triggered_only = yes hidden = yes immediate = { clr_global_flag = GLOBAL_afghan_civil_war_over reset_taliban_strength = yes clr_country_flag = AFG_active_taliban_insurgency TAL = { transfer_state = 415 set_capital = { state = 415 } declare_war_on = { target = AFG type = annex_everything } add_war_support = 0.35 add_named_threat = { threat = 5 name = AFG_taliban_insurgency } set_province_controller = 5064 set_province_controller = 5020 set_province_controller = 4949 set_province_controller = 8090 set_province_controller = 7916 set_province_controller = 10789 set_province_controller = 8053 set_province_controller = 12877 set_province_controller = 7519 set_province_controller = 6209 set_province_controller = 6158 set_province_controller = 1962 set_province_controller = 7916 set_province_controller = 10896 set_province_controller = 2062 set_province_controller = 2017 set_province_controller = 7984 set_province_controller = 2078 set_province_controller = 7448 set_province_controller = 10476 set_province_controller = 7584 load_oob = "TAL_renew_civil_war" } AFG = { add_stability = -0.2 every_owned_state = { limit = { is_core_of = AFG } add_core_of = TAL } country_event = { id = AFG_taliban_insurgency.10 hours = 1 } } AFG_clear_ci_supporters = yes } } country_event = { id = AFG_taliban_insurgency.10 title = AFG_taliban_insurgency.10.t desc = AFG_taliban_insurgency.10.d picture = GFX_taliban_uprising is_triggered_only = yes option = { name = AFG_taliban_insurgency.10.a log = "[GetDateText]: [This.GetName]: AFG_taliban_insurgency.10.a executed" add_war_support = 0.05 add_command_power = 35 hidden_effect = { news_event = { id = AFG_taliban_insurgency.11 hours = 1 } } ai_chance = { base = 1 } } } news_event = { id = AFG_taliban_insurgency.11 title = AFG_taliban_insurgency.11.t desc = AFG_taliban_insurgency.11.d picture = GFX_afghan_news_taliban_uprising is_triggered_only = yes major = yes option = { name = AFG_taliban_insurgency.11.a ai_chance = { base = 1 } } } #Hidden event that removes Taliban insurgency if Taliban come to power in AFG tag country_event = { id = AFG_taliban_insurgency.12 is_triggered_only = yes hidden = yes fire_only_once = yes trigger = { original_tag = AFG ROOT = { jihadist_government = yes has_country_flag = AFG_active_taliban_insurgency } } immediate = { log = "[GetDateText]: [Root.GetName]: event AFG_taliban_insurgency.12" clr_country_flag = AFG_active_taliban_insurgency AFG_clear_ci_supporters = yes reset_taliban_strength = yes } } #Hidden event that asks countries with military access to take part in the counterinsurgency operations country_event = { id = AFG_taliban_insurgency.13 is_triggered_only = yes hidden = yes trigger = { tag = AFG AFG = { no_jihadist_government = yes has_country_flag = AFG_active_taliban_insurgency check_variable = { var = taliban_strength value = 45 compare = greater_than_or_equals } } } immediate = { for_each_scope_loop = { array = AFG_coalition_array if = { limit = { exists = yes no_jihadist_government = yes has_military_access_to = AFG NOT = { has_country_flag = wot_supporting_afghan_counter_insurgency } } country_event = { id = AFG_taliban_insurgency.14 hours = 1 } } } } } #Asks if the country has military access wants to take part in the counter-insurgency warfare country_event = { id = AFG_taliban_insurgency.14 title = AFG_taliban_insurgency.14.t desc = AFG_taliban_insurgency.14.d picture = GFX_taliban_insurgency_start is_triggered_only = yes option = { name = AFG_taliban_insurgency.14.a log = "[GetDateText]: [This.GetName]: AFG_taliban_insurgency.14.a executed" add_command_power = 5 set_country_flag = wot_supporting_afghan_counter_insurgency hidden_effect = { AFG = { if = { limit = { NOT = { is_in_array = { AFG_ci_array = PREV.id } } } add_to_array = { AFG_ci_array = PREV.id } } } } custom_effect_tooltip = AFG_support_afghan_counter_insurgency_tt AFG = { news_event = { id = AFG_taliban_insurgency.15 hours = 1 } } ai_chance = { base = 1 modifier = { factor = 2 OR = { has_government = democratic has_government = communism } } modifier = { factor = 2 has_opinion = { target = AFG value > 10 } } modifier = { factor = 2 is_influencer = yes } } } option = { name = AFG_taliban_insurgency.14.b log = "[GetDateText]: [This.GetName]: AFG_taliban_insurgency.14.b executed" add_political_power = 15 if = { limit = { has_military_access_to = AFG } diplomatic_relation = { country = AFG relation = military_access active = no } } AFG = { news_event = { id = AFG_taliban_insurgency.16 hours = 1 } } ai_chance = { base = 1 modifier = { factor = 0 OR = { tag = USA tag = CHI tag = PER } } modifier = { factor = 2 check_variable = { var = taliban_strength value = 75 compare = greater_than_or_equals } } modifier = { factor = 2 check_variable = { var = taliban_strength value = 85 compare = greater_than_or_equals } } modifier = { factor = 2 check_variable = { var = taliban_strength value = 95 compare = greater_than_or_equals } } } } } #The country joins counter-insurgency operations news_event = { id = AFG_taliban_insurgency.15 title = AFG_taliban_insurgency.15.t desc = AFG_taliban_insurgency.15.d picture = GFX_afghanistan_war4 is_triggered_only = yes option = { name = AFG_taliban_insurgency.15.a ai_chance = { base = 1 } } } #The country pulls out troops news_event = { id = AFG_taliban_insurgency.16 title = AFG_taliban_insurgency.16.t desc = AFG_taliban_insurgency.16.d picture = GFX_news_usa_withdraw_from_afghanistan is_triggered_only = yes option = { name = AFG_taliban_insurgency.16.a ai_chance = { base = 1 } } } #ISAF Raid Successful news_event = { id = AFG_taliban_insurgency.17 title = AFG_taliban_insurgency.17.t desc = AFG_taliban_insurgency.17.d picture = GFX_afghan_commando_raid_successful is_triggered_only = yes option = { name = AFG_taliban_insurgency.17.a log = "[GetDateText]: [This.GetName]: AFG_taliban_insurgency.17.a executed" add_command_power = 15 army_experience = 15 AFG = { set_temp_variable = { taliban_strength_decrease = 5 } decrease_taliban_strength = yes } ai_chance = { base = 1 } } } #ISAF Raid Failure news_event = { id = AFG_taliban_insurgency.18 title = AFG_taliban_insurgency.18.t desc = AFG_taliban_insurgency.18.d picture = GFX_afghan_commando_raid_failure is_triggered_only = yes option = { name = AFG_taliban_insurgency.18.a log = "[GetDateText]: [This.GetName]: AFG_taliban_insurgency.18.a executed" add_manpower = -5 add_command_power = -5 army_experience = 5 add_political_power = -15 set_temp_variable = { arg_popularity = -0.01 } add_ruling_outlook_popularity = yes AFG = { set_temp_variable = { taliban_strength_increase = 1 } increase_taliban_strength = yes } ai_chance = { base = 1 } } } #Hidden Event Removes Counter Insurgency Missions If No Military Access country_event = { id = AFG_taliban_insurgency.19 is_triggered_only = yes hidden = yes trigger = { tag = AFG AFG = { no_jihadist_government = yes has_country_flag = AFG_active_taliban_insurgency } } immediate = { for_each_scope_loop = { array = AFG_ci_array if = { limit = { exists = yes no_jihadist_government = yes has_country_flag = wot_supporting_afghan_counter_insurgency NOT = { has_military_access_to = AFG } } clr_country_flag = wot_supporting_afghan_counter_insurgency } } } } #Hidden event that increases Taliban strength country_event = { id = AFG_taliban_insurgency.20 is_triggered_only = yes hidden = yes trigger = { original_tag = AFG ROOT = { no_jihadist_government = yes has_country_flag = AFG_active_taliban_insurgency } } immediate = { AFG = { random_list = { 40 = { set_temp_variable = { taliban_strength_increase = 1 } increase_taliban_strength = yes modifier = { factor = 2 has_stability > 0.5 } modifier = { factor = 5 has_idea = stable_growth } modifier = { factor = 3 has_idea = corruption_level_04 } modifier = { factor = 2 has_idea = corruption_level_05 } modifier = { factor = 2 has_idea = police_02 } modifier = { factor = 2 has_idea = police_03 } modifier = { factor = 3 OR = { any_of_scopes = { array = global.PR_superpowers no_jihadist_government = yes has_military_access_to = AFG } any_of_scopes = { array = global.PR_great_powers no_jihadist_government = yes has_military_access_to = AFG } any_of_scopes = { array = global.PR_large_powers no_jihadist_government = yes has_military_access_to = AFG } } } modifier = { factor = 2 411 = { any_province_building_level = { province = { id = 7519 id = 6209 id = 10826 } building = bunker level > 1 } } 414 = { any_province_building_level = { province = { id = 12831 id = 6114 id = 5082 id = 8090 } building = bunker level > 1 } } 415 = { any_province_building_level = { province = { id = 5064 id = 5020 id = 4949 id = 2101 } building = bunker level > 1 } } } modifier = { factor = 2 411 = { any_province_building_level = { province = { id = 7519 id = 6209 id = 10826 } building = bunker level > 2 } } 414 = { any_province_building_level = { province = { id = 12831 id = 6114 id = 5082 id = 8090 } building = bunker level > 2 } } 415 = { any_province_building_level = { province = { id = 5064 id = 5020 id = 4949 id = 2101 } building = bunker level > 2 } } } } 40 = { set_temp_variable = { taliban_strength_increase = 2 } increase_taliban_strength = yes modifier = { factor = 2 has_stability < 0.25 } modifier = { factor = 2 has_idea = corruption_level_06 } modifier = { factor = 3 has_idea = corruption_level_07 } modifier = { factor = 5 has_idea = corruption_level_08 } } 10 = { set_temp_variable = { taliban_strength_increase = 3 } increase_taliban_strength = yes modifier = { factor = 2 has_stability < 0.1 } modifier = { factor = 3 has_idea = corruption_level_09 } modifier = { factor = 5 has_idea = corruption_level_10 } } 10 = { modifier = { factor = 2 has_stability > 0.7 } modifier = { factor = 10 has_stability > 0.9 } modifier = { factor = 2 has_idea = fast_growth } modifier = { factor = 2 has_idea = economic_boom } modifier = { factor = 2 has_idea = corruption_level_03 } modifier = { factor = 3 has_idea = corruption_level_02 } modifier = { factor = 5 has_idea = corruption_level_01 } modifier = { factor = 2 has_idea = police_04 } modifier = { factor = 5 has_idea = police_05 } modifier = { factor = 2 411 = { any_province_building_level = { province = { id = 7519 id = 6209 id = 10826 } building = bunker level > 3 } } 414 = { any_province_building_level = { province = { id = 12831 id = 6114 id = 5082 id = 8090 } building = bunker level > 3 } } 415 = { any_province_building_level = { province = { id = 5064 id = 5020 id = 4949 id = 2101 } building = bunker level > 3 } } } modifier = { factor = 3 411 = { any_province_building_level = { province = { id = 7519 id = 6209 id = 10826 } building = bunker level > 4 } } 414 = { any_province_building_level = { province = { id = 12831 id = 6114 id = 5082 id = 8090 } building = bunker level > 4 } } 415 = { any_province_building_level = { province = { id = 5064 id = 5020 id = 4949 id = 2101 } building = bunker level > 4 } } } } } } } } #ISAF Drone Strike Successful news_event = { id = AFG_taliban_insurgency.21 title = AFG_taliban_insurgency.21.t desc = AFG_taliban_insurgency.21.d picture = GFX_news_mq9 is_triggered_only = yes option = { name = AFG_taliban_insurgency.21.a log = "[GetDateText]: [This.GetName]: AFG_taliban_insurgency.21.a executed" add_command_power = 15 air_experience = 10 AFG = { set_temp_variable = { taliban_strength_decrease = 7 } decrease_taliban_strength = yes } ai_chance = { base = 1 } } } #ISAF Drone Strike Failure news_event = { id = AFG_taliban_insurgency.22 title = AFG_taliban_insurgency.22.t desc = AFG_taliban_insurgency.22.d picture = GFX_afghan_airstrike_failure is_triggered_only = yes option = { name = AFG_taliban_insurgency.22.a log = "[GetDateText]: [This.GetName]: AFG_taliban_insurgency.22.a executed" add_political_power = -20 set_temp_variable = { arg_popularity = -0.01 } add_ruling_outlook_popularity = yes if = { limit = { tag = USA } USA_house_small_opposition = yes } AFG = { random_owned_controlled_state = { add_manpower = -25 } set_temp_variable = { taliban_strength_increase = 3 } increase_taliban_strength = yes } ai_chance = { base = 1 } } } #ISAF Bombing Successful news_event = { id = AFG_taliban_insurgency.23 title = AFG_taliban_insurgency.23.t desc = AFG_taliban_insurgency.23.d picture = GFX_news_b52 is_triggered_only = yes option = { name = AFG_taliban_insurgency.23.a log = "[GetDateText]: [This.GetName]: AFG_taliban_insurgency.23.a executed" add_command_power = 15 air_experience = 20 AFG = { set_temp_variable = { taliban_strength_decrease = 12 } decrease_taliban_strength = yes } ai_chance = { base = 1 } } } #ISAF Bombing Failure news_event = { id = AFG_taliban_insurgency.24 title = AFG_taliban_insurgency.24.t desc = AFG_taliban_insurgency.24.d picture = GFX_afghan_airstrike_failure is_triggered_only = yes option = { name = AFG_taliban_insurgency.24.a log = "[GetDateText]: [This.GetName]: AFG_taliban_insurgency.24.a executed" add_political_power = -25 set_temp_variable = { party_popularity_increase = -0.05 } set_temp_variable = { temp_outlook_increase = -0.05 } change_relative_party_popularity = yes air_experience = 5 if = { limit = { tag = USA } USA_congress_small_opposition = yes } AFG = { random_owned_controlled_state = { add_manpower = -85 } add_stability = -0.03 set_temp_variable = { taliban_strength_increase = 5 } increase_taliban_strength = yes } ai_chance = { base = 1 } } } #Country Provide Counter-insurgency Equipment news_event = { id = AFG_taliban_insurgency.25 title = AFG_taliban_insurgency.25.t desc = AFG_taliban_insurgency.25.d picture = GFX_news_trade_agreement is_triggered_only = yes option = { name = AFG_taliban_insurgency.25.a log = "[GetDateText]: [This.GetName]: AFG_taliban_insurgency.25.a executed" add_opinion_modifier = { target = FROM modifier = helps_our_counter_insurgency } ai_chance = { base = 1 } } } #Taliban Attacks Police country_event = { id = AFG_taliban_attack.0 title = AFG_taliban_attack.0.t desc = AFG_taliban_attack.0.d picture = GFX_taliban_police_attack is_triggered_only = yes trigger = { original_tag = AFG AFG = { check_variable = { var = taliban_strength value = 0 compare = greater_than_or_equals } has_country_flag = AFG_active_taliban_insurgency } } option = { name = AFG_taliban_attack.0.a log = "[GetDateText]: [This.GetName]: AFG_taliban_attack.0.a executed" add_manpower = -25 add_stability = -0.01 add_equipment_to_stockpile = { type = infantry_weapons_type amount = -100 } add_equipment_to_stockpile = { type = cnc_equipment_type amount = -25 } if = { limit = { original_tag = AFG check_variable = { var = taliban_strength value = 0 compare = greater_than_or_equals } check_variable = { var = taliban_strength value = 50 compare = less_than } } set_temp_variable = { taliban_strength_increase = 1 } increase_taliban_strength = yes } else_if = { limit = { original_tag = AFG check_variable = { var = taliban_strength value = 50 compare = greater_than_or_equals } check_variable = { var = taliban_strength value = 75 compare = less_than } } set_temp_variable = { taliban_strength_increase = 2 } increase_taliban_strength = yes } else_if = { limit = { original_tag = AFG check_variable = { var = taliban_strength value = 75 compare = greater_than_or_equals } } set_temp_variable = { taliban_strength_increase = 3 } increase_taliban_strength = yes } hidden_effect = { for_each_scope_loop = { array = AFG_observer_array if = { limit = { exists = yes } news_event = { id = AFG_taliban_attack.1 hours = 1 } } } } ai_chance = { base = 1 } } } news_event = { id = AFG_taliban_attack.1 title = AFG_taliban_attack.1.t desc = AFG_taliban_attack.1.d picture = GFX_afghan_news_taliban_attack_police is_triggered_only = yes option = { name = AFG_taliban_attack.1.a ai_chance = { base = 1 } } } #Taliban Attack Bus Kills Foreigners country_event = { id = AFG_taliban_attack.2 title = AFG_taliban_attack.2.t desc = AFG_taliban_attack.2.d picture = GFX_taliban_bus_attack is_triggered_only = yes trigger = { original_tag = AFG AFG = { check_variable = { var = taliban_strength value = 25 compare = greater_than_or_equals } has_country_flag = AFG_active_taliban_insurgency } } option = { name = AFG_taliban_attack.2.a log = "[GetDateText]: [This.GetName]: AFG_taliban_attack.2.a executed" add_manpower = -35 add_political_power = -30 add_stability = -0.02 if = { limit = { original_tag = AFG check_variable = { var = taliban_strength value = 25 compare = greater_than_or_equals } check_variable = { var = taliban_strength value = 35 compare = less_than } } set_temp_variable = { taliban_strength_increase = 1 } increase_taliban_strength = yes } else_if = { limit = { original_tag = AFG check_variable = { var = taliban_strength value = 35 compare = greater_than_or_equals } check_variable = { var = taliban_strength value = 50 compare = less_than } } set_temp_variable = { taliban_strength_increase = 2 } increase_taliban_strength = yes } else_if = { limit = { original_tag = AFG check_variable = { var = taliban_strength value = 50 compare = greater_than_or_equals } check_variable = { var = taliban_strength value = 75 compare = less_than } } set_temp_variable = { taliban_strength_increase = 3 } increase_taliban_strength = yes } else_if = { limit = { original_tag = AFG check_variable = { var = taliban_strength value = 75 compare = greater_than_or_equals } } set_temp_variable = { taliban_strength_increase = 5 } increase_taliban_strength = yes } #AFG_coalition_array is already "GA members with military access to AFG", so match against it #rather than re-running has_military_access_to on every tag in the world every_country = { limit = { OR = { is_in_array = { FROM.influence_array = THIS.id } is_in_array = { FROM.AFG_coalition_array = THIS.id } } is_full_state = yes } random_select_amount = 2 news_event = { id = AFG_taliban_attack.3 hours = 1 } } hidden_effect = { for_each_scope_loop = { array = AFG_observer_array if = { limit = { exists = yes NOT = { is_in_array = { ROOT.AFG_coalition_array = THIS.id } } NOT = { is_in_array = { ROOT.influence_array = THIS.id } } } news_event = { id = AFG_taliban_attack.4 hours = 1 } } } } ai_chance = { base = 1 } } } news_event = { id = AFG_taliban_attack.3 title = AFG_taliban_attack.3.t desc = AFG_taliban_attack.3.d picture = GFX_afghan_news_taliban_bus_attack is_triggered_only = yes option = { log = "[GetDateText]: [This.GetName]: AFG_taliban_attack.3.a executed" name = AFG_taliban_attack.3.a add_manpower = -2 add_political_power = -20 ai_chance = { base = 1 } } } news_event = { id = AFG_taliban_attack.4 title = AFG_taliban_attack.4.t desc = AFG_taliban_attack.4.d picture = GFX_afghan_news_taliban_bus_attack is_triggered_only = yes option = { name = AFG_taliban_attack.4.a ai_chance = { base = 1 } } } #Taliban Attack Fuel Tankers country_event = { id = AFG_taliban_attack.5 title = AFG_taliban_attack.5.t desc = AFG_taliban_attack.5.d picture = GFX_taliban_tanker_attack is_triggered_only = yes trigger = { original_tag = AFG AFG = { check_variable = { var = taliban_strength value = 10 compare = greater_than_or_equals } any_owned_state = { infrastructure > 0 } has_country_flag = AFG_active_taliban_insurgency } } option = { name = AFG_taliban_attack.5.a log = "[GetDateText]: [This.GetName]: AFG_taliban_attack.5.a executed" add_command_power = -5 add_stability = -0.01 random_owned_controlled_state = { limit = { infrastructure > 0 } damage_building = { type = infrastructure damage = 0.25 } } if = { limit = { original_tag = AFG check_variable = { var = taliban_strength value = 10 compare = greater_than_or_equals } check_variable = { var = taliban_strength value = 25 compare = less_than } } set_temp_variable = { taliban_strength_increase = 1 } increase_taliban_strength = yes } else_if = { limit = { original_tag = AFG check_variable = { var = taliban_strength value = 25 compare = greater_than_or_equals } check_variable = { var = taliban_strength value = 50 compare = less_than } } set_temp_variable = { taliban_strength_increase = 2 } increase_taliban_strength = yes } else_if = { limit = { original_tag = AFG check_variable = { var = taliban_strength value = 50 compare = greater_than_or_equals } check_variable = { var = taliban_strength value = 75 compare = less_than } } set_temp_variable = { taliban_strength_increase = 3 } increase_taliban_strength = yes } else_if = { limit = { original_tag = AFG check_variable = { var = taliban_strength value = 75 compare = greater_than_or_equals } } set_temp_variable = { taliban_strength_increase = 4 } increase_taliban_strength = yes } hidden_effect = { for_each_scope_loop = { array = AFG_observer_array if = { limit = { exists = yes } news_event = { id = AFG_taliban_attack.6 hours = 1 } } } } ai_chance = { base = 1 } } } news_event = { id = AFG_taliban_attack.6 title = AFG_taliban_attack.6.t desc = AFG_taliban_attack.6.d picture = GFX_afghan_news_taliban_attack_road_convoys is_triggered_only = yes option = { name = AFG_taliban_attack.6.a ai_chance = { base = 1 } } } #Taliban Attacks Afghan Military country_event = { id = AFG_taliban_attack.7 title = AFG_taliban_attack.7.t desc = AFG_taliban_attack.7.d picture = GFX_taliban_attack_military is_triggered_only = yes trigger = { original_tag = AFG AFG = { check_variable = { var = taliban_strength value = 25 compare = greater_than_or_equals } has_country_flag = AFG_active_taliban_insurgency num_divisions > 4 } } option = { name = AFG_taliban_attack.7.a log = "[GetDateText]: [This.GetName]: AFG_taliban_attack.7.a executed" add_manpower = -5 add_equipment_to_stockpile = { type = util_vehicle_type amount = -2 } add_stability = -0.01 if = { limit = { original_tag = AFG check_variable = { var = taliban_strength value = 25 compare = greater_than_or_equals } check_variable = { var = taliban_strength value = 60 compare = less_than } } set_temp_variable = { taliban_strength_increase = 2 } increase_taliban_strength = yes } else_if = { limit = { original_tag = AFG check_variable = { var = taliban_strength value = 60 compare = greater_than_or_equals } check_variable = { var = taliban_strength value = 75 compare = less_than } } set_temp_variable = { taliban_strength_increase = 3 } increase_taliban_strength = yes } else_if = { limit = { original_tag = AFG check_variable = { var = taliban_strength value = 75 compare = greater_than_or_equals } check_variable = { var = taliban_strength value = 85 compare = less_than } } set_temp_variable = { taliban_strength_increase = 4 } increase_taliban_strength = yes } else_if = { limit = { original_tag = AFG check_variable = { var = taliban_strength value = 85 compare = greater_than_or_equals } } set_temp_variable = { taliban_strength_increase = 5 } increase_taliban_strength = yes } hidden_effect = { for_each_scope_loop = { array = AFG_observer_array if = { limit = { exists = yes } news_event = { id = AFG_taliban_attack.8 hours = 1 } } } } ai_chance = { base = 1 } } } news_event = { id = AFG_taliban_attack.8 title = AFG_taliban_attack.8.t desc = AFG_taliban_attack.8.d picture = GFX_afghan_news_taliban_attack_military is_triggered_only = yes option = { name = AFG_taliban_attack.8.a ai_chance = { base = 1 } } } #Taliban Attacks Foreign Troops country_event = { id = AFG_taliban_attack.9 title = AFG_taliban_attack.9.t desc = AFG_taliban_attack.9.d picture = GFX_taliban_attack_coalition is_triggered_only = yes trigger = { original_tag = AFG check_variable = { var = taliban_strength value = 45 compare = greater_than_or_equals } has_country_flag = AFG_active_taliban_insurgency check_variable = { AFG_coalition_array^num > 0 } } option = { name = AFG_taliban_attack.9.a log = "[GetDateText]: [This.GetName]: AFG_taliban_attack.9.a executed" add_political_power = -30 add_stability = -0.01 if = { limit = { check_variable = { var = taliban_strength value = 45 compare = greater_than_or_equals } check_variable = { var = taliban_strength value = 70 compare = less_than } } set_temp_variable = { taliban_strength_increase = 2 } increase_taliban_strength = yes } else_if = { limit = { check_variable = { var = taliban_strength value = 70 compare = greater_than_or_equals } check_variable = { var = taliban_strength value = 80 compare = less_than } } set_temp_variable = { taliban_strength_increase = 3 } increase_taliban_strength = yes } else_if = { limit = { check_variable = { var = taliban_strength value = 80 compare = greater_than_or_equals } check_variable = { var = taliban_strength value = 90 compare = less_than } } set_temp_variable = { taliban_strength_increase = 4 } increase_taliban_strength = yes } else_if = { limit = { check_variable = { var = taliban_strength value = 90 compare = greater_than_or_equals } } set_temp_variable = { taliban_strength_increase = 5 } increase_taliban_strength = yes } random_scope_in_array = { array = AFG_coalition_array limit = { exists = yes has_military_access_to = AFG } news_event = { id = AFG_taliban_attack.10 hours = 1 } } hidden_effect = { for_each_scope_loop = { array = AFG_observer_array if = { limit = { exists = yes NOT = { is_in_array = { ROOT.AFG_coalition_array = THIS.id } } } news_event = { id = AFG_taliban_attack.11 hours = 1 } } } } ai_chance = { base = 1 } } } news_event = { id = AFG_taliban_attack.10 title = AFG_taliban_attack.10.t desc = AFG_taliban_attack.10.d picture = GFX_afghan_news_taliban_attack_coalition is_triggered_only = yes option = { log = "[GetDateText]: [This.GetName]: AFG_taliban_attack.10.a executed" name = AFG_taliban_attack.10.a add_manpower = -5 add_political_power = -20 set_temp_variable = { arg_popularity = -0.02 } add_ruling_outlook_popularity = yes if = { limit = { tag = USA } USA_house_small_opposition = yes } add_equipment_to_stockpile = { type = infantry_weapons_type amount = -5 } add_equipment_to_stockpile = { type = cnc_equipment_type amount = -3 } add_equipment_to_stockpile = { type = util_vehicle_type amount = -2 } ai_chance = { base = 1 } } } news_event = { id = AFG_taliban_attack.11 title = AFG_taliban_attack.11.t desc = AFG_taliban_attack.11.d picture = GFX_afghan_news_taliban_attack_coalition is_triggered_only = yes option = { log = "[GetDateText]: [This.GetName]: AFG_taliban_attack.11.a executed" name = AFG_taliban_attack.11.a effect_tooltip = { random_scope_in_array = { array = AFG.AFG_coalition_array limit = { exists = yes has_military_access_to = AFG } add_manpower = -5 add_political_power = -20 set_temp_variable = { arg_popularity = -0.02 } add_ruling_outlook_popularity = yes add_equipment_to_stockpile = { type = infantry_weapons_type amount = -5 } add_equipment_to_stockpile = { type = cnc_equipment_type amount = -3 } add_equipment_to_stockpile = { type = util_vehicle_type amount = -2 } } } ai_chance = { base = 1 } } } #Taliban Bombs Buildings country_event = { id = AFG_taliban_attack.12 title = AFG_taliban_attack.12.t desc = AFG_taliban_attack.12.d picture = GFX_taliban_attack_building is_triggered_only = yes trigger = { original_tag = AFG AFG = { check_variable = { var = taliban_strength value = 45 compare = greater_than_or_equals } any_owned_state = { OR = { industrial_complex > 0 offices > 0 } } } check_variable = { influence_array^num > 0 } } option = { name = AFG_taliban_attack.12.a log = "[GetDateText]: [This.GetName]: AFG_taliban_attack.12.a executed" add_political_power = -30 add_stability = -0.02 if = { limit = { any_owned_state = { offices > 0 } } random_owned_controlled_state = { limit = { offices > 0 } add_manpower = -35 damage_building = { type = offices damage = 0.45 } } } else_if = { limit = { any_owned_state = { industrial_complex > 0 } } random_owned_controlled_state = { limit = { industrial_complex > 0 } add_manpower = -35 damage_building = { type = industrial_complex damage = 0.45 } } } if = { limit = { original_tag = AFG check_variable = { var = taliban_strength value = 45 compare = greater_than_or_equals } check_variable = { var = taliban_strength value = 60 compare = less_than } } set_temp_variable = { taliban_strength_increase = 2 } increase_taliban_strength = yes } else_if = { limit = { original_tag = AFG check_variable = { var = taliban_strength value = 60 compare = greater_than_or_equals } check_variable = { var = taliban_strength value = 75 compare = less_than } } set_temp_variable = { taliban_strength_increase = 3 } increase_taliban_strength = yes } else_if = { limit = { original_tag = AFG check_variable = { var = taliban_strength value = 75 compare = greater_than_or_equals } check_variable = { var = taliban_strength value = 90 compare = less_than } } set_temp_variable = { taliban_strength_increase = 4 } increase_taliban_strength = yes } else_if = { limit = { original_tag = AFG check_variable = { var = taliban_strength value = 90 compare = greater_than_or_equals } } set_temp_variable = { taliban_strength_increase = 5 } increase_taliban_strength = yes } every_country = { limit = { is_in_array = { FROM.influence_array = THIS.id } is_full_state = yes } random_select_amount = 2 news_event = { id = AFG_taliban_attack.13 hours = 1 } } hidden_effect = { for_each_scope_loop = { array = AFG_observer_array if = { limit = { exists = yes NOT = { is_in_array = { ROOT.influence_array = THIS.id } } OR = { is_neighbor_of = AFG has_guaranteed = AFG } } news_event = { id = AFG_taliban_attack.14 hours = 1 } } } } ai_chance = { base = 1 } } } news_event = { id = AFG_taliban_attack.13 title = AFG_taliban_attack.13.t desc = AFG_taliban_attack.13.d picture = GFX_afghan_news_taliban_attack_building is_triggered_only = yes option = { log = "[GetDateText]: [This.GetName]: AFG_taliban_attack.13.a executed" name = AFG_taliban_attack.13.a add_manpower = -3 add_political_power = -20 ai_chance = { base = 1 } } } news_event = { id = AFG_taliban_attack.14 title = AFG_taliban_attack.14.t desc = AFG_taliban_attack.14.d picture = GFX_afghan_news_taliban_attack_building is_triggered_only = yes option = { name = AFG_taliban_attack.14.a ai_chance = { base = 1 } } } #Taliban Attacks Airport country_event = { id = AFG_taliban_attack.15 title = AFG_taliban_attack.15.t desc = AFG_taliban_attack.15.d picture = GFX_taliban_airport_attack is_triggered_only = yes trigger = { original_tag = AFG AFG = { check_variable = { var = taliban_strength value = 55 compare = greater_than_or_equals } any_owned_state = { air_base > 0 } has_country_flag = AFG_active_taliban_insurgency } } option = { name = AFG_taliban_attack.15.a log = "[GetDateText]: [This.GetName]: AFG_taliban_attack.15.a executed" add_stability = -0.05 random_owned_controlled_state = { limit = { air_base > 0 } add_manpower = -220 damage_building = { type = air_base damage = 1.0 } } if = { limit = { original_tag = AFG check_variable = { var = taliban_strength value = 55 compare = greater_than_or_equals } check_variable = { var = taliban_strength value = 70 compare = less_than } } set_temp_variable = { taliban_strength_increase = 3 } increase_taliban_strength = yes } else_if = { limit = { original_tag = AFG check_variable = { var = taliban_strength value = 70 compare = greater_than_or_equals } check_variable = { var = taliban_strength value = 85 compare = less_than } } set_temp_variable = { taliban_strength_increase = 4 } increase_taliban_strength = yes } else_if = { limit = { original_tag = AFG check_variable = { var = taliban_strength value = 85 compare = greater_than_or_equals } check_variable = { var = taliban_strength value = 95 compare = less_than } } set_temp_variable = { taliban_strength_increase = 5 } increase_taliban_strength = yes } else_if = { limit = { original_tag = AFG check_variable = { var = taliban_strength value = 95 compare = greater_than_or_equals } } set_temp_variable = { taliban_strength_increase = 6 } increase_taliban_strength = yes } hidden_effect = { for_each_scope_loop = { array = AFG_observer_array if = { limit = { exists = yes } news_event = { id = AFG_taliban_attack.16 hours = 1 } } } } ai_chance = { base = 1 } } } news_event = { id = AFG_taliban_attack.16 title = AFG_taliban_attack.16.t desc = AFG_taliban_attack.16.d picture = GFX_afghan_news_taliban_attack_airport is_triggered_only = yes option = { name = AFG_taliban_attack.16.a ai_chance = { base = 1 } } } #Asks USA for Guarantee country_event = { id = AFG_events.8 title = AFG_events.8.t desc = AFG_events.8.d picture = GFX_politics_negotiations is_triggered_only = yes option = { name = AFG_events.8.a log = "[GetDateText]: [This.GetName]: AFG_events.8.a executed" custom_effect_tooltip = AFG_usa_guarantee_obligation add_political_power = -50 give_guarantee = AFG AFG = { set_temp_variable = { percent_change = 4 } set_temp_variable = { tag_index = USA.id } change_influence_percentage = yes give_military_access = USA country_event = { id = AFG_events.9 days = 2 } } ai_chance = { base = 1 modifier = { factor = 2 has_opinion = { target = AFG value > 25 } } modifier = { factor = 0 OR = { check_variable = { debt > 1000 } AFG = { has_added_tension_amount > 10 } AFG = { has_offensive_war = yes } AFG = { NOT = { has_government = democratic } NOT = { has_government = neutrality } } } } } } option = { name = AFG_events.8.b log = "[GetDateText]: [This.GetName]: AFG_events.8.b executed" add_political_power = 20 add_popularity = { ideology = nationalist popularity = 0.02 } AFG = { country_event = { id = AFG_events.10 days = 2 } } ai_chance = { base = 1 modifier = { factor = 2 has_war_support < 0.5 } modifier = { factor = 2 AFG = { OR = { has_civil_war = yes has_war_with = TAL } } } } } } #USA Agrees Guarantee country_event = { id = AFG_events.9 title = AFG_events.9.t desc = AFG_events.9.d picture = GFX_negotiations is_triggered_only = yes option = { name = AFG_events.9.a log = "[GetDateText]: [This.GetName]: AFG_events.9.a executed" add_political_power = 50 ai_chance = { base = 1 } } } #USA Refuses Guarantee country_event = { id = AFG_events.10 title = AFG_events.10.t desc = AFG_events.10.d picture = GFX_treaty_rejected is_triggered_only = yes option = { name = AFG_events.10.a log = "[GetDateText]: [This.GetName]: AFG_events.10.a executed" add_political_power = -50 set_temp_variable = { arg_popularity = -0.02 } add_ruling_outlook_popularity = yes ai_chance = { base = 1 } } } #Asks China for Guarantee country_event = { id = AFG_events.11 title = AFG_events.11.t desc = AFG_events.11.d picture = GFX_politics_negotiations is_triggered_only = yes option = { name = AFG_events.11.a log = "[GetDateText]: [This.GetName]: AFG_events.11.a executed" custom_effect_tooltip = AFG_usa_guarantee_obligation add_political_power = -50 give_guarantee = AFG AFG = { set_temp_variable = { percent_change = 4 } set_temp_variable = { tag_index = CHI.id } change_influence_percentage = yes give_military_access = CHI country_event = { id = AFG_events.12 days = 2 } } hidden_effect = { subtract_from_variable = { CHI_chinese_aggression = 1 } } ai_chance = { base = 1 modifier = { factor = 2 AFG = { NOT = { has_government = democratic } NOT = { has_government = neutrality } NOT = { has_government = fascism } } } modifier = { factor = 2 AFG = { has_government = communism } } modifier = { factor = 0 AFG = { has_war = yes } } modifier = { factor = 0 check_variable = { debt > 10000 } } modifier = { factor = 2 has_opinion = { target = AFG value > 25 } } } } option = { name = AFG_events.11.b log = "[GetDateText]: [This.GetName]: AFG_events.11.b executed" AFG = { country_event = { id = AFG_events.13 days = 2 } } ai_chance = { base = 1 modifier = { factor = 2 check_variable = { uighur_threat > 80 } } modifier = { factor = 2 has_opinion = { target = AFG value < -25 } } } } } #China Agrees Guarantee country_event = { id = AFG_events.12 title = AFG_events.12.t desc = AFG_events.12.d picture = GFX_negotiations is_triggered_only = yes option = { name = AFG_events.12.a log = "[GetDateText]: [This.GetName]: AFG_events.12.a executed" add_political_power = 50 ai_chance = { base = 1 } } } #China Refuses Guarantee country_event = { id = AFG_events.13 title = AFG_events.13.t desc = AFG_events.13.d picture = GFX_treaty_rejected is_triggered_only = yes option = { name = AFG_events.13.a log = "[GetDateText]: [This.GetName]: AFG_events.13.a executed" add_political_power = -20 set_temp_variable = { arg_popularity = -0.02 } add_ruling_outlook_popularity = yes ai_chance = { base = 1 } } } #Claim Pakistani Pashtunistan country_event = { id = AFG_events.14 title = AFG_events.14.t desc = AFG_events.14.d picture = GFX_politics_protest is_triggered_only = yes option = { name = AFG_events.14.a log = "[GetDateText]: [This.GetName]: AFG_events.14.a executed" add_war_support = 0.01 ai_chance = { base = 1 } } } #Assassination of Burhanuddin Rabbani country_event = { id = AFG_events.15 title = AFG_events.15.t desc = AFG_events.15.d picture = GFX_rabbani_assassination is_triggered_only = yes fire_only_once = yes trigger = { original_tag = AFG ROOT = { check_variable = { var = taliban_strength value = 0 compare = greater_than } } OR = { has_government = democratic has_government = neutrality } NOT = { has_country_leader = { name = "Burhanuddin Rabbani" ruling_only = yes } } } option = { name = AFG_events.15.a log = "[GetDateText]: [This.GetName]: AFG_events.15.a executed" add_political_power = -10 add_stability = -0.01 if = { limit = { check_variable = { Neutral_Muslim_Brotherhood_leader = 0 } } add_to_variable = { Neutral_Muslim_Brotherhood_leader = 1 } } hidden_effect = { news_event = { id = AFG_news.10 hours = 1 } } ai_chance = { base = base } } } #Ask UN P5 For Neutrality Recognition country_event = { id = AFG_events.16 title = AFG_events.16.t desc = AFG_events.16.d picture = GFX_politics_talks is_triggered_only = yes option = { name = AFG_events.16.a log = "[GetDateText]: [This.GetName]: AFG_events.16.a executed" give_guarantee = AFG AFG = { country_event = { id = AFG_events.17 hours = 1 } } ai_chance = { base = 1 modifier = { factor = 2 is_influencer = yes } modifier = { factor = 2 AFG = { OR = { has_government = ROOT has_government = neutrality } } } modifier = { factor = 2 has_opinion = { target = AFG value > 14 } } modifier = { factor = 5 has_military_access_to = AFG } modifier = { factor = 0 has_opinion = { target = AFG value < -19 } } } } option = { name = AFG_events.16.b ai_chance = { base = 1 modifier = { factor = 20 OR = { has_war = yes AFG = { has_war = yes } } } modifier = { factor = 5 has_government = fascism } modifier = { factor = 5 AFG = { NOT = { has_idea = intervention_isolation } } } modifier = { factor = 3 AFG = { NOT = { has_government = ROOT } } } modifier = { factor = 5 NOT = { has_idea = great_power } NOT = { has_idea = super_power } } } } } #Agree to Guarantee Afghan Neutrality country_event = { id = AFG_events.17 title = AFG_events.17.t desc = AFG_events.17.d picture = GFX_politics_talks is_triggered_only = yes option = { name = AFG_events.17.a log = "[GetDateText]: [This.GetName]: AFG_events.17.a executed" add_political_power = 20 ai_chance = { base = 1 } } } #Anti-Taliban Uprising country_event = { id = AFG_events.18 title = AFG_events.18.t desc = AFG_events.18.d picture = GFX_AFG_Anti_Taliban_Uprising2 is_triggered_only = yes option = { name = AFG_events.18.a log = "[GetDateText]: [This.GetName]: AFG_events.18.a executed" add_war_support = 0.05 hidden_effect = { news_event = AFG_news.17 set_province_controller = 4893 set_province_controller = 12871 set_province_controller = 1962 set_province_controller = 2062 set_province_controller = 7448 set_province_controller = 7916 set_province_controller = 8053 load_oob = "AFG_uprising_against_taliban" TAL = { remove_ideas = anti_taliban_guerrillas } } ai_chance = { base = base } } } news_event = { id = AFG_news.1 title = AFG_news.1.t desc = { text = AFG_news.1.TAL.d trigger = { FROM = { original_tag = TAL } } } desc = { text = AFG_news.1.AFG.d trigger = { FROM = { original_tag = AFG } } } picture = GFX_AFG_miltary_event_generic is_triggered_only = yes major = yes option = { name = AFG_news.1.a } } news_event = { id = AFG_news.2 title = AFG_news.2.t desc = AFG_news.2.d picture = GFX_news_afghanistan_pakistan is_triggered_only = yes major = yes option = { name = AFG_news.2.a } } news_event = { id = AFG_news.3 title = AFG_news.3.t desc = AFG_news.3.d picture = GFX_news_afghanistan_pakistan is_triggered_only = yes major = yes option = { name = AFG_news.3.a } } news_event = { id = AFG_news.4 title = AFG_news.4.t desc = AFG_news.4.d picture = GFX_news_afghanistan_pakistan is_triggered_only = yes major = yes option = { name = AFG_news.4.a } } news_event = { id = AFG_news.5 title = AFG_news.5.t desc = AFG_news.5.d picture = GFX_news_rise_of_taliban2 is_triggered_only = yes major = yes option = { name = AFG_news.5.a } } news_event = { id = AFG_news.6 title = AFG_news.6.t desc = AFG_news.6.d picture = GFX_news_ahmad_shah_massoud is_triggered_only = yes major = yes option = { name = AFG_news.6.a } } news_event = { id = AFG_news.7 title = AFG_news.7.t desc = AFG_news.7.d picture = GFX_news_afghanistan_pakistan is_triggered_only = yes major = yes option = { name = AFG_news.7.a } } news_event = { id = AFG_news.8 title = AFG_news.8.t desc = AFG_news.8.d picture = GFX_news_afghanistan_hezb_i_islami is_triggered_only = yes major = yes option = { name = AFG_news.8.a } } news_event = { id = AFG_news.9 title = AFG_news.9.t desc = AFG_news.9.d picture = GFX_news_afghanistan_afghan_troops is_triggered_only = yes major = yes option = { name = AFG_news.9.a } } news_event = { id = AFG_news.10 title = AFG_news.10.t desc = AFG_news.10.d picture = GFX_Burhanuddin_Rabbani is_triggered_only = yes major = yes option = { name = AFG_news.10.a } } #Hijacking of Ariana Airlines Flight 805 news_event = { id = AFG_news.11 title = AFG_news.11.t desc = AFG_news.11.d picture = GFX_news_ariana_airlines is_triggered_only = yes fire_only_once = yes trigger = { tag = TAL TAL = { controls_province = 10737 } } option = { name = AFG_news.11.a log = "[GetDateText]: [This.GetName]: AFG_news.11.a executed" add_command_power = -5 hidden_effect = { news_event = { id = AFG_news.12 hours = 1 } } ai_chance = { base = 1 } } } news_event = { id = AFG_news.12 title = AFG_news.12.t desc = AFG_news.12.d picture = GFX_news_ariana_airlines is_triggered_only = yes major = yes option = { name = AFG_news.12.a trigger = { NOT = { original_tag = AFG } } ai_chance = { base = 1 } } option = { name = AFG_news.12.b trigger = { tag = AFG } ai_chance = { base = 1 } } } #Iran Returns Afghani Refugees news_event = { id = AFG_news.13 title = AFG_news.13.t desc = AFG_news.13.d picture = GFX_AfghanNewsEventRefugeesBack is_triggered_only = yes fire_only_once = yes option = { name = AFG_news.13.a ai_chance = { base = 1 } } } #World Food Programme News Event news_event = { id = AFG_news.14 title = AFG_news.14.t desc = AFG_news.14.d picture = GFX_world_food_programme_afghan_news is_triggered_only = yes major = yes fire_only_once = yes option = { name = AFG_news.14.a ai_chance = { base = 1 } } } #Anti-Taliban Uprising News news_event = { id = AFG_news.17 title = AFG_news.17.t desc = AFG_news.17.d picture = GFX_AFG_Anti_Taliban_Uprising is_triggered_only = yes major = yes option = { name = AFG_news.17.a ai_chance = { base = 1 } } } #Russian Request USA help with Russian airlift to afghanistan news_event = { id = AFG_news.18 title = AFG_news.18.t desc = AFG_news.18.d picture = GFX_AFG_Airlift_Event_news is_triggered_only = yes major = yes option = { name = AFG_news.18.a trigger = { NOT = { original_tag = SOV } NOT = { original_tag = USA } } ai_chance = { base = 1 } } option = { name = AFG_news.18.b trigger = { tag = SOV } ai_chance = { base = 1 } } option = { name = AFG_news.18.c trigger = { tag = USA } ai_chance = { base = 1 } } } #CIA predor drones news_event = { id = AFG_news.19 title = AFG_news.19.t desc = AFG_news.19.d picture = GFX_AFG_Drone_Event_news is_triggered_only = yes major = yes option = { name = AFG_news.19.a ai_chance = { base = 1 } } } #EU Speach news_event = { id = AFG_news.20 title = AFG_news.20.t desc = AFG_news.20.d picture = GFX_AFG_shah_massoud is_triggered_only = yes major = yes option = { name = AFG_news.20.a ai_chance = { base = 1 } } } #Return of Rashid news_event = { id = AFG_news.21 title = AFG_news.21.t desc = AFG_news.21.d picture = GFX_AFG_return_from_exile is_triggered_only = yes major = yes option = { name = AFG_news.21.a ai_chance = { base = 1 } } } #Investment Offer country_event = { id = AFG_investment.1 title = AFG_investment.1.t desc = AFG_investment.1.desc picture = GFX_politics_talks is_triggered_only = yes option = { name = AFG_investment.1.a log = "[GetDateText]: [This.GetName]: AFG_investment.1.a executed" set_temp_variable = { treasury_change = -10 } modify_treasury_effect = yes AFG = { random_owned_controlled_state = { AFG_build_infrastructure_or_internet = yes } set_temp_variable = { percent_change = 1 } change_influence_percentage = yes country_event = { id = AFG_investment.2 days = 5 } } ai_chance = { base = 1 modifier = { factor = 2 AFG = { has_government = ROOT } } modifier = { factor = 2 AFG = { has_stability > 0.5 } } modifier = { factor = 2 ROOT = { has_opinion = { target = AFG value > 10 } } } modifier = { factor = 2 ROOT = { has_opinion = { target = AFG value > 25 } } } modifier = { factor = 0 AFG = { has_stability < 0.2 } } } } option = { name = AFG_investment.1.b log = "[GetDateText]: [This.GetName]: AFG_investment.1.b executed" set_temp_variable = { treasury_change = -12.5 } modify_treasury_effect = yes AFG = { random_owned_controlled_state = { add_extra_state_shared_building_slots = 1 add_building_construction = { type = industrial_complex level = 1 instant_build = yes } } set_temp_variable = { percent_change = 2 } change_influence_percentage = yes country_event = { id = AFG_investment.3 days = 5 } } ai_chance = { base = 1 modifier = { factor = 2 AFG = { has_government = ROOT } } modifier = { factor = 2 AFG = { has_stability > 0.6 } } modifier = { factor = 2 ROOT = { has_opinion = { target = AFG value > 15 } } } modifier = { factor = 2 ROOT = { has_opinion = { target = AFG value > 30 } } } modifier = { factor = 0 AFG = { has_stability < 0.3 } } } } option = { name = AFG_investment.1.c log = "[GetDateText]: [This.GetName]: AFG_investment.1.c executed" set_temp_variable = { treasury_change = -20 } modify_treasury_effect = yes AFG = { random_owned_controlled_state = { add_extra_state_shared_building_slots = 1 add_building_construction = { type = offices level = 1 instant_build = yes } } set_temp_variable = { percent_change = 3 } change_influence_percentage = yes country_event = { id = AFG_investment.4 days = 5 } } ai_chance = { base = 1 modifier = { factor = 2 AFG = { has_government = ROOT } } modifier = { factor = 2 AFG = { has_stability > 0.75 } } modifier = { factor = 2 ROOT = { has_opinion = { target = AFG value > 25 } } } modifier = { factor = 2 ROOT = { has_opinion = { target = AFG value > 50 } } } modifier = { factor = 0 AFG = { has_stability < 0.5 } } } } option = { name = AFG_investment.1.d log = "[GetDateText]: [This.GetName]: AFG_investment.1.d executed" add_political_power = 20 AFG = { country_event = { id = AFG_investment.5 days = 5 } } ai_chance = { base = 1 modifier = { factor = 2 AFG = { has_stability < 0.1 } } modifier = { factor = 2 ROOT = { has_opinion = { target = AFG value < -15 } } } modifier = { factor = 2 ROOT = { has_opinion = { target = AFG value < -50 } } } modifier = { factor = 10 AFG = { has_war = yes } } } } } #Invest in Infrastructure country_event = { id = AFG_investment.2 title = AFG_investment.2.t desc = AFG_investment.2.d picture = GFX_broken_infrastructure is_triggered_only = yes option = { name = AFG_investment.2.a ai_chance = { base = 1 } } } #Invest in Factories country_event = { id = AFG_investment.3 title = AFG_investment.3.t desc = AFG_investment.3.d picture = GFX_generic_factory is_triggered_only = yes option = { name = AFG_investment.3.a ai_chance = { base = 1 } } } #Invest in Offices country_event = { id = AFG_investment.4 title = AFG_investment.4.t desc = AFG_investment.4.d picture = GFX_euro_investments is_triggered_only = yes option = { name = AFG_investment.4.a ai_chance = { base = 1 } } } #Investment Offer Rejected country_event = { id = AFG_investment.5 title = AFG_investment.5.t desc = AFG_investment.5.d picture = GFX_treaty_rejected is_triggered_only = yes option = { name = AFG_investment.5.a log = "[GetDateText]: [This.GetName]: AFG_investment.5.a executed" add_political_power = -10 ai_chance = { base = 1 } } } #South Korean Hostage Crisis country_event = { id = AFG_hostage_crisis.1 title = AFG_hostage_crisis.1.t desc = AFG_hostage_crisis.1.d picture = GFX_afghan_sk_hostage_crisis is_triggered_only = yes fire_only_once = yes #Attemp to release hostages option = { name = AFG_hostage_crisis.1.a log = "[GetDateText]: [This.GetName]: AFG_hostage_crisis.1.a executed" ai_chance = { base = 0 } random_list = { 50 = { AFG = { country_event = { id = AFG_hostage_crisis.2 days = 4 } } } 50 = { AFG = { country_event = { id = AFG_hostage_crisis.3 days = 4 } } } } } option = { name = AFG_hostage_crisis.1.b log = "[GetDateText]: [This.GetName]: AFG_hostage_crisis.1.b executed" ai_chance = { base = 1 } random_list = { 90 = { AFG = { country_event = { id = AFG_hostage_crisis.4 days = 2 } } } 10 = { KOR = { country_event = { id = AFG_hostage_crisis.5 days = 4 } } } } } } country_event = { id = AFG_hostage_crisis.2 title = AFG_hostage_crisis.2.t desc = AFG_hostage_crisis.2.d picture = GFX_afghan_sk_hostage_released is_triggered_only = yes option = { name = AFG_hostage_crisis.2.a log = "[GetDateText]: [This.GetName]: AFG_hostage_crisis.2.a executed" ai_chance = { base = 1 } add_opinion_modifier = { target = KOR modifier = gratitude } } } country_event = { id = AFG_hostage_crisis.3 title = AFG_hostage_crisis.3.t desc = AFG_hostage_crisis.3.d picture = GFX_afghan_sk_hostages_killed is_triggered_only = yes option = { name = AFG_hostage_crisis.3.a log = "[GetDateText]: [This.GetName]: AFG_hostage_crisis.3.a executed" ai_chance = { base = 1 } add_opinion_modifier = { target = KOR modifier = insult } KOR = { add_popularity = { ideology = democratic popularity = -0.1 } } } } #Taliban demands prisoners release country_event = { id = AFG_hostage_crisis.4 title = AFG_hostage_crisis.4.t desc = AFG_hostage_crisis.4.d picture = GFX_afghan_sk_hostage_crisis is_triggered_only = yes #Talk with USA option = { name = AFG_hostage_crisis.4.a log = "[GetDateText]: [This.GetName]: AFG_hostage_crisis.4.a executed" ai_chance = { base = 1 } AFG = { country_event = { id = AFG_hostage_crisis.6 days = 2 } } } option = { name = AFG_hostage_crisis.4.b log = "[GetDateText]: [This.GetName]: AFG_hostage_crisis.4.b executed" ai_chance = { base = 0 } AFG = { country_event = { id = AFG_hostage_crisis.7 days = 2 } } } } #Taliban demands ransom and South Korea withdrawal country_event = { id = AFG_hostage_crisis.5 title = AFG_hostage_crisis.5.t desc = AFG_hostage_crisis.5.d picture = GFX_afghan_sk_hostage_crisis is_triggered_only = yes #South Korea agrees option = { name = AFG_hostage_crisis.5.a log = "[GetDateText]: [This.GetName]: AFG_hostage_crisis.5.a executed" ai_chance = { base = 1 } KOR = { country_event = { id = AFG_hostage_crisis.8 days = 2 } } } option = { name = AFG_hostage_crisis.5.b log = "[GetDateText]: [This.GetName]: AFG_hostage_crisis.5.b executed" ai_chance = { base = 0 } KOR = { country_event = { id = AFG_hostage_crisis.9 days = 2 } } } } #US refuses to release prisoners country_event = { id = AFG_hostage_crisis.6 title = AFG_hostage_crisis.6.t desc = AFG_hostage_crisis.6.d picture = GFX_afghan_sk_two_hostage_killed is_triggered_only = yes #Second Taliban demand(Taliban demands ransom and troop withdrawal) option = { name = AFG_hostage_crisis.6.a log = "[GetDateText]: [This.GetName]: AFG_hostage_crisis.6.a executed" ai_chance = { base = 1 } AFG = { add_stability = -0.05 } KOR = { country_event = { id = AFG_hostage_crisis.4 days = 2 } add_popularity = { ideology = democratic popularity = -0.05 } } } } country_event = { id = AFG_hostage_crisis.7 title = AFG_hostage_crisis.7.t desc = AFG_hostage_crisis.7.d picture = GFX_afghan_sk_two_hostage_killed is_triggered_only = yes #Second Taliban demand(Taliban demands ransom and troop withdrawal) option = { name = AFG_hostage_crisis.7.a log = "[GetDateText]: [This.GetName]: AFG_hostage_crisis.7.a executed" ai_chance = { base = 1 } KOR = { country_event = { id = AFG_hostage_crisis.4 days = 2 } } AFG = { add_stability = -0.1 } KOR = { add_popularity = { ideology = democratic popularity = -0.05 } } } } #South Korea pays ramson country_event = { id = AFG_hostage_crisis.8 title = AFG_hostage_crisis.8.t desc = AFG_hostage_crisis.8.d picture = GFX_afghan_sk_hostage_released is_triggered_only = yes #Good Ending option = { name = AFG_hostage_crisis.8.a log = "[GetDateText]: [This.GetName]: AFG_hostage_crisis.8.a executed" ai_chance = { base = 1 } KOR = { set_temp_variable = { treasury_change = -0.02 } modify_treasury_effect = yes } diplomatic_relation = { country = KOR relation = military_access active = no } } } #South Korea refuses country_event = { id = AFG_hostage_crisis.9 title = AFG_hostage_crisis.9.t desc = AFG_hostage_crisis.9.d picture = GFX_afghan_sk_hostages_killed is_triggered_only = yes #Bad Ending option = { name = AFG_hostage_crisis.9.a log = "[GetDateText]: [This.GetName]: AFG_hostage_crisis.9.a executed" ai_chance = { base = 1 } KOR = { add_popularity = { ideology = democratic popularity = -0.15 } add_political_power = -50 } } } #Aloya jirga (No war on terror) #role of women country_event = { id = AFG_events.27 title = AFG_events.27.t desc = AFG_events.27.d picture = GFX_AFG_Role_of_women is_triggered_only = yes fire_only_once = yes option = { name = AFG_events.27.a log = "[GetDateText]: [This.GetName]: AFG_events.27.a executed" ai_chance = { base = 100 } set_no_women_effect = yes set_temp_variable = { taliban_strength_decrease = 5 } decrease_taliban_strength = yes set_temp_variable = { temp_opinion = 5 } change_the_ulema_opinion = yes } option = { name = AFG_events.27.b log = "[GetDateText]: [This.GetName]: AFG_events.27.b executed" ai_chance = { base = 100 } set_temp_variable = { temp_opinion = -5 } change_the_ulema_opinion = yes set_drafted_women_effect = yes } } #role of religon country_event = { id = AFG_events.28 title = AFG_events.28.t desc = AFG_events.28.d picture = GFX_AFG_role_of_religon is_triggered_only = yes fire_only_once = yes option = { name = AFG_events.28.a log = "[GetDateText]: [This.GetName]: AFG_events.28.a executed" ai_chance = { base = 100 } set_temp_variable = { taliban_strength_decrease = 5 } decrease_taliban_strength = yes set_temp_variable = { temp_opinion = 5 } change_the_ulema_opinion = yes } option = { name = AFG_events.28.b log = "[GetDateText]: [This.GetName]: AFG_events.28.b executed" ai_chance = { base = 100 } add_ideas = pluralist set_temp_variable = { temp_opinion = -5 } change_the_ulema_opinion = yes } } #Taloqan Operations hold country_event = { id = AFG_events.31 title = AFG_events.31.t desc = AFG_events.31.d picture = GFX_AFG_Taloqa_holds is_triggered_only = yes fire_only_once = yes option = { name = AFG_events.31.a log = "[GetDateText]: [This.GetName]: AFG_events.31.a executed" ai_chance = { base = 100 } add_war_support = 0.15 custom_effect_tooltip = AFG_taloqan_text2 } } #Fall of taloqan #A castle called Taloqan has fallen country_event = { id = AFG_events.32 title = AFG_events.32.t desc = AFG_events.32.d picture = GFX_AFG_fall_of_taloqan is_triggered_only = yes fire_only_once = yes option = { name = AFG_events.32.a log = "[GetDateText]: [This.GetName]: AFG_events.32.a executed" ai_chance = { base = 100 } add_ideas = AFG_civilian_exodus_taloqan add_war_support = -0.08 add_victory_points = { province = 12653 value = 1 } } } #Hidden Event That Creates Taliban Collpase (pashtun nationalist) stuff country_event = { id = AFG_events.34 is_triggered_only = yes hidden = yes fire_only_once = yes trigger = { original_tag = TAL has_global_flag = GLOBAL_afghan_civil_war_over has_game_rule = { rule = AFG_northern_alliance_uprising option = yes } NOT = { country_exists = AFG } } immediate = { news_event = AFG_news.17 AFG = { reset_taliban_strength = yes clr_country_flag = AFG_active_taliban_insurgency hidden_effect = { kill_country_leader = yes } set_country_flag = no_leader_change set_temp_variable = { rul_party_temp = 12 } change_ruling_party_effect = yes if = { limit = { date > 2020.1.1 } create_country_leader = { name = "Ahmad Massoud" picture = "Ahmad_Massoud.dds" ideology = Neutral_Muslim_Brotherhood traits = { career_politician neutrality_Neutral_Muslim_Brotherhood } } } else = { create_country_leader = { name = "Mohammad Ismail Khan" picture = "Mohammad_Ismail_Khan.dds" ideology = Neutral_Muslim_Brotherhood traits = { military_career neutrality_Neutral_Muslim_Brotherhood afghanistan_lion_of_herat } } } clr_country_flag = no_leader_change transfer_state = 411 set_capital = { state = 411 } declare_war_on = { target = TAL type = annex_everything } add_war_support = 0.50 add_named_threat = { threat = 5 name = AFG_taliban_insurgency } set_province_controller = 10737 set_province_controller = 6186 set_province_controller = 4893 set_province_controller = 12871 set_province_controller = 1962 set_province_controller = 2062 set_province_controller = 7448 set_province_controller = 7916 set_province_controller = 8053 load_oob = "AFG_uprising_against_taliban" set_cosmetic_tag = AFG_REB set_variable = { dynamic_flag_variant = 6 } TAL = { remove_ideas = anti_taliban_guerrillas } } TAL = { add_stability = -0.2 add_war_support = -0.35 every_owned_state = { limit = { is_core_of = TAL } add_core_of = AFG } country_event = { id = AFG_taliban_insurgency.10 hours = 1 } } AFG_clear_ci_supporters = yes } } country_event = { id = AFG_events.35 title = AFG_events.35.t desc = AFG_events.35.d picture = GFX_AFG_russian_airlift2 is_triggered_only = yes fire_only_once = yes #they need american plans so send event to america option = { name = AFG_events.35.a log = "[GetDateText]: [This.GetName]: AFG_events.35.a executed" USA = { country_event = AFG_events.42 } custom_effect_tooltip = TT_IF_THEY_ACCEPT USA = { AFG = { effect_tooltip = { add_equipment_to_stockpile = { type = infantry_weapons_2 amount = 4000 producer = SOV } set_temp_variable = { percent_change = 3 } set_temp_variable = { tag_index = SOV.id } set_temp_variable = { influence_target = AFG.id } change_influence_percentage = yes set_temp_variable = { percent_change = 1 } set_temp_variable = { tag_index = USA.id } set_temp_variable = { influence_target = AFG.id } change_influence_percentage = yes add_ideas = AFG_russian_air_lift USA = { add_opinion_modifier = { target = AFG modifier = trade_allies } } SOV = { add_opinion_modifier = { target = AFG modifier = trade_allies } } } } set_temp_variable = { treasury_change = -15 } modify_treasury_effect = yes } news_event = AFG_news.18 set_temp_variable = { treasury_change = -2 } modify_treasury_effect = yes AFG = { set_country_flag = AFG_russian_airlift_is_active } ai_chance = { base = 100 modifier = { factor = 10 ROOT = { has_opinion = { target = AFG value > 25 } } } modifier = { factor = 40 USA = { has_country_flag = USA_wot_enduring_freedom } } } } option = { name = AFG_events.35.b log = "[GetDateText]: [This.GetName]: AFG_events.35.b executed" AFG = { country_event = AFG_events.38 effect_tooltip = { add_equipment_to_stockpile = { type = infantry_weapons_2 amount = 4000 producer = SOV } set_temp_variable = { percent_change = 1 } set_temp_variable = { tag_index = SOV.id } set_temp_variable = { influence_target = AFG.id } change_influence_percentage = yes add_ideas = AFG_russian_air_lift SOV = { add_opinion_modifier = { target = AFG modifier = trade_allies } } } } set_temp_variable = { treasury_change = -15 } modify_treasury_effect = yes set_country_flag = AFG_russian_airlift_is_active ai_chance = { base = 0 } } option = { name = AFG_events.35.c log = "[GetDateText]: [This.GetName]: AFG_events.35.c executed" ai_chance = { base = 0 modifier = { factor = 50 ROOT = { has_opinion = { target = AFG value > -25 } } } modifier = { factor = -5 is_influencer = yes } } AFG = { country_event = AFG_events.41 } } } #CIA Drones country_event = { id = AFG_events.36 title = AFG_events.36.t desc = AFG_events.36.d picture = GFX_AFG_Drone_Event is_triggered_only = yes fire_only_once = yes option = { name = AFG_events.36.a log = "[GetDateText]: [This.GetName]: AFG_events.36.a executed" AFG = { country_event = AFG_events.39 effect_tooltip = { add_ideas = AFG_cia_predator_surveillance_drones } } set_temp_variable = { treasury_change = -1 } modify_treasury_effect = yes news_event = AFG_news.19 ai_chance = { base = 1 modifier = { factor = 100 is_historical_focus_on = no } modifier = { factor = 20 AFG = { has_government = ROOT } } modifier = { factor = 40 USA = { has_country_flag = USA_wot_extradition_refused } } modifier = { factor = 10 is_influencer = yes } } } option = { name = AFG_events.36.b log = "[GetDateText]: [This.GetName]: AFG_events.36.b executed" AFG = { country_event = AFG_events.41 } ai_chance = { base = 1 modifier = { factor = 100 is_historical_focus_on = yes } modifier = { factor = 50 ROOT = { has_opinion = { target = AFG value > -10 } } } } } } #Indian Support Request More country_event = { id = AFG_events.37 title = AFG_events.37.t desc = AFG_events.37.d picture = GFX_AFG_call_in_Support is_triggered_only = yes fire_only_once = yes #accept option = { name = AFG_events.37.a log = "[GetDateText]: [This.GetName]: AFG_events.37.a executed" AFG = { country_event = AFG_events.40 effect_tooltip = { add_ideas = AFG_indian_support_and_arms_trade RAJ = { add_opinion_modifier = { target = AFG modifier = trade_allies } } } } set_temp_variable = { treasury_change = -1 } modify_treasury_effect = yes ai_chance = { base = 100 modifier = { factor = 100 is_historical_focus_on = yes } modifier = { factor = 20 AFG = { has_government = ROOT } } } } option = { name = AFG_events.37.b log = "[GetDateText]: [This.GetName]: AFG_events.37.b executed" ai_chance = { base = 0 modifier = { factor = 50 ROOT = { has_opinion = { target = AFG value > -10 } } } } AFG = { country_event = AFG_events.41 } } } #Russia Accepts country_event = { id = AFG_events.38 title = AFG_events.38.t desc = AFG_events.38.d picture = GFX_AFG_russian_airlift2 is_triggered_only = yes fire_only_once = yes #they need american plans so send event to america but arrives option = { name = AFG_events.38.a log = "[GetDateText]: [This.GetName]: AFG_events.38.a executed" ai_chance = { base = 100 } add_equipment_to_stockpile = { type = infantry_weapons_2 amount = 4000 producer = SOV } set_temp_variable = { percent_change = 3 } set_temp_variable = { tag_index = SOV.id } set_temp_variable = { influence_target = AFG.id } change_influence_percentage = yes add_ideas = AFG_russian_air_lift SOV = { add_opinion_modifier = { target = AFG modifier = trade_allies } } } } #USA Accepts country_event = { id = AFG_events.39 title = AFG_events.39.t desc = AFG_events.39.d picture = GFX_AFG_Drone_Event is_triggered_only = yes fire_only_once = yes #CIA after taliban option = { name = AFG_events.39.a log = "[GetDateText]: [This.GetName]: AFG_events.39.a executed" ai_chance = { base = 100 } add_ideas = AFG_cia_predator_surveillance_drones } } #India Accepts country_event = { id = AFG_events.40 title = AFG_events.40.t desc = AFG_events.40.d picture = GFX_AFG_indian_aid is_triggered_only = yes fire_only_once = yes #India Accepted option = { name = AFG_events.40.a log = "[GetDateText]: [This.GetName]: AFG_events.40.a executed" ai_chance = { base = 100 } add_ideas = AFG_indian_support_and_arms_trade RAJ = { add_opinion_modifier = { target = AFG modifier = trade_allies } } } } #Generic reject for war tree country_event = { id = AFG_events.41 title = AFG_events.41.t desc = AFG_events.41.d picture = GFX_AFG_russian_airlift is_triggered_only = yes fire_only_once = yes option = { name = AFG_events.41.a ai_chance = { base = 100 } } } #Russia Asked the United states country_event = { id = AFG_events.42 title = AFG_events.42.t desc = AFG_events.42.d picture = GFX_AFG_russian_airlift2 is_triggered_only = yes fire_only_once = yes #they need american plans so send event to america option = { name = AFG_events.42.a log = "[GetDateText]: [This.GetName]: AFG_events.42.a executed" AFG = { country_event = AFG_events.38 } effect_tooltip = { add_equipment_to_stockpile = { type = infantry_weapons_2 amount = 4000 producer = SOV } set_temp_variable = { percent_change = 3 } set_temp_variable = { tag_index = SOV.id } set_temp_variable = { influence_target = AFG.id } change_influence_percentage = yes add_ideas = AFG_russian_air_lift SOV = { add_opinion_modifier = { target = AFG modifier = trade_allies } } } AFG = { USA = { add_opinion_modifier = { target = AFG modifier = trade_allies } } } set_temp_variable = { percent_change = 1 } set_temp_variable = { tag_index = USA.id } set_temp_variable = { influence_target = AFG.id } change_influence_percentage = yes set_temp_variable = { treasury_change = -15 } modify_treasury_effect = yes ai_chance = { base = 100 } } option = { name = AFG_events.42.b log = "[GetDateText]: [This.GetName]: AFG_events.42.b executed" ai_chance = { base = 0 modifier = { factor = 50 ROOT = { has_opinion = { target = AFG value > -10 } } } modifier = { factor = -40 is_influencer = yes } } AFG = { country_event = AFG_events.41 } } } #Ismail Khan escapes from prison in Kandahar. country_event = { id = AFG_events.44 title = AFG_events.44.t desc = AFG_events.44.d picture = GFX_AFG_Khan_event is_triggered_only = yes fire_only_once = yes option = { name = AFG_events.44.a log = "[GetDateText]: [This.GetName]: AFG_events.44.a executed" add_war_support = 0.05 ai_chance = { base = 100 } } } # Mahmoud Surkha, has defected to the Taliban. country_event = { id = AFG_events.45 title = AFG_events.45.t desc = AFG_events.45.d picture = GFX_2taliban_insurgency_start is_triggered_only = yes fire_only_once = yes option = { name = AFG_events.45.a log = "[GetDateText]: [This.GetName]: AFG_events.45.a executed" add_war_support = -0.02 ai_chance = { base = 100 } } } # Abdullah Jan Wahidi, has defected to the Taliban. country_event = { id = AFG_events.48 title = AFG_events.48.t desc = AFG_events.48.d picture = GFX_2taliban_insurgency_start is_triggered_only = yes fire_only_once = yes option = { name = AFG_events.48.a log = "[GetDateText]: [This.GetName]: AFG_events.48.a executed" add_war_support = -0.02 ai_chance = { base = 100 } } } country_event = { id = AFG_events.53 is_triggered_only = yes hidden = yes immediate = { log = "[GetDateText]: [This.GetName]: AFG_events.53 executed" AFG = { random_owned_state = { invest_mic = yes } } } } #Afghansitan would like us to perfrom a intervention country_event = { id = AFG_events.65 title = AFG_events.65.t desc = AFG_events.65.d picture = GFX_taliban_attack_coalition is_triggered_only = yes fire_only_once = yes option = { name = AFG_events.65.a log = "[GetDateText]: [This.GetName]: AFG_events.65.a executed" AFG = { custom_effect_tooltip = AFG_MOTDIV_Tooltip country_event = AFG_events.66 } ai_chance = { base = 20 modifier = { factor = 10 is_historical_focus_on = no } modifier = { factor = 20 AFG = { has_government = ROOT } } modifier = { factor = 40 AFG = { has_idea = AFG_cia_predator_surveillance_drones } } modifier = { factor = 10 is_influencer = yes } } } option = { name = AFG_events.65.b log = "[GetDateText]: [This.GetName]: AFG_events.65.b executed" AFG = { country_event = AFG_events.41 } ai_chance = { base = 10 modifier = { factor = 10 is_historical_focus_on = yes } modifier = { factor = 50 ROOT = { has_opinion = { target = AFG value > -10 } } } } } } #They accept country_event = { id = AFG_events.66 title = AFG_events.66.t desc = AFG_events.66.d picture = GFX_taliban_attack_coalition is_triggered_only = yes fire_only_once = yes option = { name = AFG_events.66.a log = "[GetDateText]: [This.GetName]: AFG_events.66.a executed" ai_chance = { base = 100 } custom_effect_tooltip = AFG_MOTDIV_Tooltip hidden_effect = { USA = { country_event = { id = AFG_events.53 days = 1 } } } hidden_effect = { division_template = { name = "Northern Alliance Mechanized Unit" is_locked = yes priority = 2 regiments = { Mech_Inf_Bat = { x = 0 y = 0 } Mech_Inf_Bat = { x = 0 y = 1 } Mech_Inf_Bat = { x = 0 y = 2 } Mech_Inf_Bat = { x = 1 y = 0 } Mech_Inf_Bat = { x = 1 y = 1 } Mech_Inf_Bat = { x = 1 y = 2 } Mech_Inf_Bat = { x = 1 y = 3 } Arty_Bat = { x = 2 y = 0 } Arty_Bat = { x = 2 y = 1 } } support = { Mot_Recce_Comp = { x = 0 y = 0 } L_Engi_Comp = { x = 0 y = 1 } armor_Comp = { x = 0 y = 2 } } } 411 = { create_unit = { division = "name = \"Northern Alliance Mechanized Unit\" division_template = \"Northern Alliance Mechanized Unit\" start_experience_factor = 1.0" prioritize_location = 12653 allow_spawning_on_enemy_provs = yes owner = AFG count = 1 } } } } } #Eastern Front #Islamic Democracy Party Coup - Atta Muhammad Nur country_event = { id = AFG_political_events.0 title = AFG_political_events.0.t desc = AFG_political_events.0.d picture = GFX_taliban_uprising is_triggered_only = yes option = { name = AFG_political_events.0.a log = "[GetLogInfo]: event AFG_political_events.0.a" custom_effect_tooltip = AFG_available_as_MillleaderTT custom_effect_tooltip = AFG_atta_muhammad_nur_tt newline = yes unlock_decision_tooltip = AFG_atta_installs_leadership } } #Send Arms Deal country_event = { id = AFG_political_events.1 title = AFG_political_events.1.t desc = AFG_political_events.1.d picture = GFX_taliban_uprising is_triggered_only = yes #Accept Arms Deal option = { name = AFG_political_events.1.a log = "[GetLogInfo]: event AFG_political_events.1.a" ai_chance = { base = 10 modifier = { add = 40 AFG = { is_top3_influencer = yes } } modifier = { add = 30 has_opinion = { target = AFG value > 39 } } modifier = { factor = 0 has_opinion = { target = AFG value < 0 } } } AFG = { country_event = AFG_political_events.3 } effect_tooltip = { AFG = { add_equipment_to_stockpile = { type = infantry_weapons_type producer = USA amount = 5000 } add_equipment_to_stockpile = { type = artillery_equipment producer = USA amount = 100 } add_equipment_to_stockpile = { type = util_vehicle_type producer = USA amount = 500 } set_temp_variable = { percent_change = 5 } set_temp_variable = { tag_index = USA.id } change_influence_percentage = yes } } add_equipment_to_stockpile = { type = infantry_weapons_type producer = USA amount = -5000 } add_equipment_to_stockpile = { type = artillery_equipment producer = USA amount = -100 } add_equipment_to_stockpile = { type = util_vehicle_type producer = USA amount = -500 } set_temp_variable = { treasury_change = -4.50 } modify_treasury_effect = yes } option = { name = AFG_political_events.1.b log = "[GetLogInfo]: event AFG_political_events.1.b" ai_chance = { base = 10 modifier = { add = 40 NOT = { AFG = { is_influencer = yes } } } modifier = { add = 30 has_opinion = { target = AFG value < 0 } } } AFG = { country_event = AFG_political_events.2 } } } #Rejects Arms Deal country_event = { id = AFG_political_events.2 title = AFG_political_events.2.t desc = AFG_political_events.2.d picture = GFX_taliban_uprising is_triggered_only = yes option = { name = AFG_political_events.2.a } } #Accept Arms Deal country_event = { id = AFG_political_events.3 title = AFG_political_events.3.t desc = AFG_political_events.3.d picture = GFX_taliban_uprising is_triggered_only = yes option = { name = AFG_political_events.3.a log = "[GetLogInfo]: event AFG_political_events.3.a" add_equipment_to_stockpile = { type = infantry_weapons_type producer = USA amount = 5000 } add_equipment_to_stockpile = { type = artillery_equipment producer = USA amount = 100 } add_equipment_to_stockpile = { type = util_vehicle_type producer = USA amount = 500 } set_temp_variable = { percent_change = 5 } set_temp_variable = { tag_index = USA.id } set_temp_variable = { influence_target = AFG } change_influence_percentage = yes } } country_event = { id = AFG_political_events.4 title = AFG_political_events.4.t desc = AFG_political_events.4.d picture = GFX_taliban_uprising is_triggered_only = yes option = { name = AFG_political_events.4.a log = "[GetLogInfo]: event AFG_political_events.4.a" ai_chance = { base = 10 modifier = { add = 90 check_variable = { party_pop_array^0 > party_pop_array^14 } check_variable = { party_pop_array^0 > party_pop_array^12 } check_variable = { party_pop_array^0 > party_pop_array^2 } } } set_temp_variable = { rul_party_temp = 0 } change_ruling_party_effect = yes mark_focus_tree_layout_dirty = yes } option = { name = AFG_political_events.4.b log = "[GetLogInfo]: event AFG_political_events.4.b" ai_chance = { base = 10 modifier = { add = 90 check_variable = { party_pop_array^14 > party_pop_array^0 } check_variable = { party_pop_array^14 > party_pop_array^12 } check_variable = { party_pop_array^14 > party_pop_array^2 } } } set_temp_variable = { rul_party_temp = 14 } change_ruling_party_effect = yes mark_focus_tree_layout_dirty = yes } option = { name = AFG_political_events.4.c log = "[GetLogInfo]: event AFG_political_events.4.c" ai_chance = { base = 10 modifier = { add = 90 check_variable = { party_pop_array^12 > party_pop_array^0 } check_variable = { party_pop_array^12 > party_pop_array^14 } check_variable = { party_pop_array^12 > party_pop_array^2 } } } set_temp_variable = { rul_party_temp = 12 } change_ruling_party_effect = yes mark_focus_tree_layout_dirty = yes } option = { name = AFG_political_events.4.e log = "[GetLogInfo]: event AFG_political_events.4.e" ai_chance = { base = 10 modifier = { add = 90 check_variable = { party_pop_array^2 > party_pop_array^0 } check_variable = { party_pop_array^2 > party_pop_array^14 } check_variable = { party_pop_array^2 > party_pop_array^12 } } } set_temp_variable = { rul_party_temp = 2 } change_ruling_party_effect = yes mark_focus_tree_layout_dirty = yes } } #Afghanistan wins border war country_event = { id = AFG_border_wars.1 title = AFG_border_wars.1.t desc = AFG_border_wars.1.d picture = GFX_generic_soldiers is_triggered_only = yes immediate = { event_target:AFG_ATTACKER = { if = { limit = { has_country_flag = AFG_attacking_417 } transfer_state = 417 clr_country_flag = AFG_attacking_417 } if = { limit = { has_country_flag = AFG_attacking_418 } transfer_state = 418 clr_country_flag = AFG_attacking_418 } if = { limit = { has_country_flag = AFG_attacking_419 } transfer_state = 419 clr_country_flag = AFG_attacking_419 } if = { limit = { has_country_flag = AFG_attacking_594 } transfer_state = 594 clr_country_flag = AFG_attacking_594 } if = { limit = { has_country_flag = AFG_attacking_416 } transfer_state = 416 clr_country_flag = AFG_attacking_416 } } } option = { name = AFG_border_wars.1.a trigger = { tag = event_target:AFG_ATTACKER } } option = { name = AFG_border_wars.1.b trigger = { NOT = { tag = event_target:AFG_ATTACKER } } log = "[GetDateText]: [This.GetName]: AFG_border_wars.1.b executed" ai_chance = { base = 20 } set_temp_variable = { arg_popularity = -0.05 } add_ruling_outlook_popularity = yes } option = { name = AFG_border_wars.1.c trigger = { NOT = { tag = event_target:AFG_ATTACKER } } log = "[GetDateText]: [This.GetName]: AFG_border_wars.1.c executed" ai_chance = { base = 80 } declare_war_on = { target = event_target:AFG_ATTACKER type = annex_everything } random_country_with_original_tag = { original_tag_to_check = PAK limit = { NOT = { tag = event_target:AFG_ATTACKER } } declare_war_on = { target = event_target:AFG_ATTACKER type = annex_everything } } } } #Afghanistan loses border war country_event = { id = AFG_border_wars.2 title = AFG_border_wars.2.t desc = AFG_border_wars.2.d picture = GFX_generic_soldiers is_triggered_only = yes option = { name = AFG_border_wars.2.a trigger = { NOT = { tag = event_target:AFG_ATTACKER } } } option = { name = AFG_border_wars.2.b trigger = { tag = event_target:AFG_ATTACKER } log = "[GetDateText]: [This.GetName]: AFG_border_wars.2.b executed" if = { limit = { has_variable = AFG_fail_meter } add_to_variable = { var = AFG_fail_meter value = 1 } } else = { set_variable = { var = AFG_fail_meter value = 1 } } set_temp_variable = { arg_popularity = -0.05 } add_ruling_outlook_popularity = yes } } country_event = { id = AFG_border_wars.3 title = AFG_border_wars.3.t desc = AFG_border_wars.3.d picture = GFX_generic_soldiers is_triggered_only = yes option = { # Don't care name = AFG_border_wars.3.a log = "[GetDateText]: [This.GetName]: AFG_border_wars.3.a executed" TAL = { country_event = { id = AFG_border_wars.5 days = 1 } } ai_chance = { base = 1 } } option = { name = AFG_border_wars.3.b log = "[GetDateText]: [This.GetName]: AFG_border_wars.3.b executed" TAL = { country_event = { id = AFG_border_wars.4 days = 1 } } ai_chance = { base = 0 } } } country_event = { id = AFG_border_wars.4 title = AFG_border_wars.4.t desc = AFG_border_wars.4.d picture = GFX_generic_soldiers is_triggered_only = yes option = { # Fine, we won't do it name = AFG_border_wars.4.a log = "[GetDateText]: [This.GetName]: AFG_border_wars.4.a executed" set_country_flag = PAK_objected ai_chance = { base = 1 } } option = { # Don't care name = AFG_border_wars.4.b log = "[GetDateText]: [This.GetName]: AFG_border_wars.4.b executed" PAK = { country_event = { id = AFG_border_wars.6 days = 2 } } ai_chance = { base = 1 } } } # Taliban Moves To Occupy Tribal Areas country_event = { id = AFG_border_wars.5 title = AFG_border_wars.5.t desc = AFG_border_wars.5.d picture = GFX_political_deal is_triggered_only = yes # Okay option = { name = AFG_border_wars.5.a ai_chance = { base = 1 } } } # Taliban Ignores Us country_event = { id = AFG_border_wars.6 title = AFG_border_wars.6.t desc = AFG_border_wars.6.d picture = GFX_treaty_rejected is_triggered_only = yes # Okay option = { name = AFG_border_wars.6.a log = "[GetDateText]: [This.GetName]: AFG_border_wars.6.a" set_temp_variable = { wargoal_on = TAL } set_temp_variable = { wargoal_type = 1 } add_threat_from_wargoal_effect = yes create_wargoal = { target = TAL type = liberate_wargoal } ai_chance = { base = 1 } } } # Afghan Victory country_event = { id = AFG_border_wars.7 title = AFG_border_wars.7.t desc = AFG_border_wars.7.d picture = GFX_generic_soldiers is_triggered_only = yes trigger = { OR = { original_tag = AFG original_tag = TAL } } option = { name = AFG_border_wars.7.a log = "[GetDateText]: [This.GetName]: AFG_border_wars.7.a executed" trigger = { original_tag = AFG } if = { limit = { has_country_flag = AFG_attacking_1208 } 1208 = { transfer_state_to = AFG } } if = { limit = { has_country_flag = AFG_attacking_1154 } 1154 = { transfer_state_to = AFG } } if = { limit = { has_country_flag = AFG_attacking_1152 } 1152 = { transfer_state_to = AFG } } if = { limit = { has_country_flag = AFG_attacking_415 } 415 = { transfer_state_to = AFG } } if = { limit = { has_country_flag = AFG_attacking_1207 } 1207 = { transfer_state_to = AFG } } clr_country_flag = AFG_attacking_1208 clr_country_flag = AFG_attacking_1154 clr_country_flag = AFG_attacking_1152 clr_country_flag = AFG_attacking_415 clr_country_flag = AFG_attacking_1207 clr_country_flag = AFG_doing_border_raid army_experience = 25 ai_chance = { base = 1 } } option = { name = AFG_border_wars.7.b log = "[GetDateText]: [This.GetName]: AFG_border_wars.7.b executed" trigger = { original_tag = TAL } army_experience = -25 clr_country_flag = TAL_attacking_1154 clr_country_flag = TAL_attacking_1208 clr_country_flag = TAL_attacking_415 clr_country_flag = AFG_doing_border_raid ai_chance = { base = 1 } } # Border war on_win/on_lose ignores the event trigger, so a third-party state controller can receive this option = { name = AFG_border_wars.7.c trigger = { NOT = { original_tag = AFG } NOT = { original_tag = TAL } } ai_chance = { base = 1 } } } # Taliban Victory country_event = { id = AFG_border_wars.8 title = AFG_border_wars.8.t desc = AFG_border_wars.8.d picture = GFX_generic_soldiers is_triggered_only = yes trigger = { OR = { original_tag = AFG original_tag = TAL } } option = { name = AFG_border_wars.8.a log = "[GetDateText]: [This.GetName]: AFG_border_wars.8.a executed" trigger = { original_tag = TAL } army_experience = 25 if = { limit = { has_country_flag = TAL_attacking_1154 } 1154 = { transfer_state_to = TAL } } if = { limit = { has_country_flag = TAL_attacking_1208 } 1208 = { transfer_state_to = TAL } } if = { limit = { has_country_flag = TAL_attacking_415 } 415 = { transfer_state_to = TAL } } clr_country_flag = TAL_attacking_1154 clr_country_flag = TAL_attacking_1208 clr_country_flag = TAL_attacking_415 clr_country_flag = AFG_doing_border_raid ai_chance = { base = 1 } } option = { name = AFG_border_wars.8.b log = "[GetDateText]: [This.GetName]: AFG_border_wars.8.b executed" trigger = { original_tag = AFG } army_experience = -25 clr_country_flag = AFG_attacking_1208 clr_country_flag = AFG_attacking_1154 clr_country_flag = AFG_attacking_1152 clr_country_flag = AFG_attacking_415 clr_country_flag = AFG_attacking_1207 clr_country_flag = AFG_doing_border_raid ai_chance = { base = 1 } } # Border war on_win/on_lose ignores the event trigger, so a third-party state controller can receive this option = { name = AFG_border_wars.8.c trigger = { NOT = { original_tag = AFG } NOT = { original_tag = TAL } } ai_chance = { base = 1 } } } # Inconclusive Battle country_event = { id = AFG_border_wars.9 title = AFG_border_wars.9.t desc = AFG_border_wars.9.d picture = GFX_generic_soldiers is_triggered_only = yes option = { name = AFG_border_wars.9.a log = "[GetDateText]: [This.GetName]: AFG_border_wars.9.a" clr_country_flag = AFG_attacking_1207 clr_country_flag = AFG_attacking_1208 clr_country_flag = AFG_attacking_1154 clr_country_flag = AFG_attacking_1152 clr_country_flag = AFG_attacking_415 clr_country_flag = TAL_attacking_1154 clr_country_flag = TAL_attacking_1208 clr_country_flag = TAL_attacking_415 clr_country_flag = AFG_doing_border_raid ai_chance = { base = 1 } } }