AFG_domestic_decisions = { #Import Westernism AFG_import_westernism = { icon = GFX_decision_eng_trade_unions_support visible = { has_completed_focus = AFG_atlanticism NOT = { has_country_flag = AFG_import_westernism } } cost = 15 complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision AFG_import_westernism" set_country_flag = AFG_import_westernism add_stability = 0.05 set_temp_variable = { party_index = 2 } set_temp_variable = { party_popularity_increase = 0.10 } change_relative_party_popularity = yes } ai_will_do = { base = 10 } } #Invite Admad Wali Massoud AFG_invite_nahzat_e_melli_ye_into_government = { available = { neutrality_neutral_conservatism_are_in_power = yes } visible = { has_completed_focus = AFG_counite_masouds_works NOT = { OR = { has_country_flag = AFG_invite_nahzat_e_melli_ye_into_government has_country_leader = { name = "Ahmad Wali Massoud" ruling_only = yes } } } } cost = 50 icon = GFX_decision_eng_trade_unions_support complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision AFG_invite_nahzat_e_melli_ye_into_government" set_country_flag = AFG_invite_nahzat_e_melli_ye_into_government set_temp_variable = { party_index = 14 } set_temp_variable = { party_popularity_increase = 0.10 } change_relative_party_popularity = yes } ai_will_do = { base = 10 } } AFG_atta_installs_leadership = { available = { custom_trigger_tooltip = { tooltip = AFG_jamiat_e_islami_in_power check_variable = { ruling_party = 12 } } NOT = { has_country_leader = { name = "Atta Muhammad Nur" ruling_only = yes } } } visible = { has_completed_focus = AFG_second_man_of_the_state custom_trigger_tooltip = { tooltip = AFG_jamiat_e_islami_in_power check_variable = { ruling_party = 12 } } NOT = { OR = { has_country_flag = AFG_ATTA_leadership has_country_leader = { name = "Atta Muhammad Nur" ruling_only = yes } } } } cost = 50 icon = GFX_decision_eng_trade_unions_support complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision AFG_atta_installs_leadership" set_country_flag = AFG_ATTA_leadership set_variable = { var = Neutral_Muslim_Brotherhood_leader value = 4 } hidden_effect = { kill_country_leader = yes } create_country_leader = { name = "Atta Muhammad Nur" picture = "Atta_Muhammad_Nur.dds" ideology = Neutral_Muslim_Brotherhood traits = { military_career neutrality_Neutral_Muslim_Brotherhood greedy ruthless afghanistan_king_of_the_north } } } ai_will_do = { base = 10 } } } AFG_northern_alliance_taloqan_siege = { AFG_taloqan_siege_mission = { fire_only_once = no days_re_enable = 5 activation = { 410 = { has_dynamic_modifier = { modifier = AFG_taliban_assault_on_taloqan scope = TAL } } } available = { 410 = { has_dynamic_modifier = { modifier = AFG_taliban_assault_on_taloqan scope = TAL } } TAL = { controls_province = 12314 } } icon = FIN_stop_motti_tactics days_mission_timeout = 248 is_good = yes timeout_effect = { log = "[GetDateText]: [Root.GetName]: Decision AFG_taloqan_siege_mission" AFG = { country_event = AFG_events.31 } set_country_flag = AFG_holds_taloqan custom_effect_tooltip = TT_EFFECTS_FROM_EVENT effect_tooltip = { add_war_support = 0.15 custom_effect_tooltip = AFG_enhance_leader_protection_tt } } complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision AFG_taloqan_siege_mission" AFG = { country_event = AFG_events.32 } custom_effect_tooltip = TT_EFFECTS_FROM_EVENT effect_tooltip = { add_war_support = -0.08 } show_ideas_tooltip = AFG_civilian_exodus_taloqan } } } AFG_pashtunistan_decisions = { claim_pashtunistan = { icon = generic_nationalism visible = { PAK = { has_civil_war = yes } any_country_with_original_tag = { original_tag_to_check = PAK owns_any_state_of = { 417 418 419 594 } } NOT = { OR = { 417 = { is_claimed_by = ROOT } 418 = { is_claimed_by = ROOT } 419 = { is_claimed_by = ROOT } 594 = { is_claimed_by = ROOT } 1171 = { is_claimed_by = ROOT } } } } available = { NOT = { country_exists = TAL } PAK = { has_civil_war = yes } custom_trigger_tooltip = { tooltip = TT_AFG_NOT_FACTION_WITH_PAK NOT = { any_country_with_original_tag = { original_tag_to_check = PAK is_in_faction_with = ROOT } } } } cost = 100 complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision claim_pashtunistan" add_state_claim = 417 add_state_claim = 418 add_state_claim = 419 add_state_claim = 594 add_state_claim = 1171 hidden_effect = { news_event = { id = AFG_news.2 hours = 6 } } set_country_flag = AFG_claimed_pashtunistan } ai_will_do = { base = 10 modifier = { factor = 0 #Don't be dick to people on your side any_country_with_original_tag = { original_tag_to_check = PAK has_government = ROOT } } modifier = { factor = 0 #Don't start any new conflicts has_war = yes } } } claim_baluchistan = { icon = GFX_decision_generic_nationalism visible = { OR = { 417 = { is_claimed_by = ROOT } 418 = { is_claimed_by = ROOT } 419 = { is_claimed_by = ROOT } 594 = { is_claimed_by = ROOT } 1171 = { is_claimed_by = ROOT } } NOT = { 416 = { is_claimed_by = ROOT } } } available = { NOT = { country_exists = TAL } any_country_with_original_tag = { original_tag_to_check = PAK owns_state = 416 } } cost = 150 complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision claim_baluchistan" add_named_threat = { threat = 5 name = AFG_Baluchistan } add_state_claim = 416 hidden_effect = { news_event = { id = AFG_news.3 hours = 6 } } } ai_will_do = { base = 0 #Nationalist and Salafist more aggressive modifier = { add = 10 OR = { has_government = fascism has_government = nationalist } } modifier = { add = 20 #If we are already at war, might as well any_country_with_original_tag = { original_tag_to_check = PAK has_war_with = ROOT } } modifier = { add = 10 #If world already burns, what do we care? threat > 0.75 } } } afg_claims_advance_to_baluchistan = { icon = border_war visible = { 417 = { is_claimed_by = ROOT } owns_state = 415 NOT = { owns_state = 417 } controls_state = 415 NOT = { controls_state = 417 } } available = { NOT = { country_exists = TAL } PAK = { has_civil_war = yes } NOT = { has_border_war = yes } 417 = { OWNER = { NOT = { has_war_with = ROOT } } } 415 = { NOT = { has_border_war = yes } } 417 = { NOT = { has_border_war = yes } } divisions_in_state = { size > 0 state = 415 } } highlight_states = { highlight_states_trigger = { state = 417 } } cost = 25 days_remove = 15 war_with_target_on_remove = yes complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision afg_claims_advance_to_baluchistan" set_country_flag = AFG_attacking_417 ROOT = { save_global_event_target_as = AFG_ATTACKER } 417 = { OWNER = { save_global_event_target_as = AFG_DEFENDER } } } remove_effect = { log = "[GetDateText]: [Root.GetName]: Decision remove afg_claims_advance_to_baluchistan" if = { limit = { controls_state = 415 NOT = { controls_state = 417 } 415 = { NOT = { has_border_war = yes } } 417 = { NOT = { has_border_war = yes } } divisions_in_state = { size > 0 state = 415 } } start_border_war = { change_state_after_war = no attacker = { state = 415 num_provinces = 2 on_win = AFG_border_wars.1 on_lose = AFG_border_wars.2 } defender = { state = 417 num_provinces = 1 on_win = AFG_border_wars.2 on_lose = AFG_border_wars.1 } } } else = { country_event = border_war_operation_blocked.1 } custom_effect_tooltip = TT_AFG_BORDER_WAR_WARN_OF_WAR } ai_will_do = { base = 0 } } afg_claims_advance_to_the_sea = { icon = border_war visible = { 416 = { is_claimed_by = ROOT } owns_state = 417 NOT = { owns_state = 416 } controls_state = 417 NOT = { controls_state = 416 } } available = { PAK = { has_civil_war = yes } NOT = { has_border_war = yes } 416 = { OWNER = { NOT = { has_war_with = ROOT } } } 417 = { NOT = { has_border_war = yes } } 416 = { NOT = { has_border_war = yes } } divisions_in_state = { size > 0 state = 417 } } highlight_states = { highlight_states_trigger = { state = 416 } } cost = 25 days_remove = 15 war_with_target_on_remove = yes complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision afg_claims_advance_to_the_sea" set_country_flag = AFG_attacking_416 ROOT = { save_global_event_target_as = AFG_ATTACKER } 416 = { OWNER = { save_global_event_target_as = AFG_DEFENDER } } } remove_effect = { log = "[GetDateText]: [Root.GetName]: Decision remove afg_claims_advance_to_the_sea" add_command_power = -20 if = { limit = { controls_state = 417 NOT = { controls_state = 416 } 417 = { NOT = { has_border_war = yes } } 416 = { NOT = { has_border_war = yes } } divisions_in_state = { size > 0 state = 417 } } start_border_war = { change_state_after_war = no attacker = { state = 417 num_provinces = 3 on_win = AFG_border_wars.1 on_lose = AFG_border_wars.2 } defender = { state = 416 num_provinces = 3 on_win = AFG_border_wars.2 on_lose = AFG_border_wars.1 } } } else = { country_event = border_war_operation_blocked.1 } custom_effect_tooltip = TT_AFG_BORDER_WAR_WARN_OF_WAR } ai_will_do = { base = 0 } } afg_claims_advance_into_tribal_areas = { icon = border_war visible = { 594 = { is_claimed_by = ROOT } owns_state = 414 NOT = { owns_state = 594 } controls_state = 414 NOT = { controls_state = 594 } } available = { PAK = { has_civil_war = yes } NOT = { has_border_war = yes } 594 = { OWNER = { NOT = { has_war_with = ROOT } } } 414 = { NOT = { has_border_war = yes } } 594 = { NOT = { has_border_war = yes } } divisions_in_state = { size > 0 state = 414 } } highlight_states = { highlight_states_trigger = { state = 594 } } cost = 25 days_remove = 15 war_with_target_on_remove = yes complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision afg_claims_advance_into_tribal_areas" set_country_flag = AFG_attacking_594 ROOT = { save_global_event_target_as = AFG_ATTACKER } 594 = { OWNER = { save_global_event_target_as = AFG_DEFENDER } } } remove_effect = { log = "[GetDateText]: [Root.GetName]: Decision remove afg_claims_advance_into_tribal_areas" add_command_power = -20 if = { limit = { controls_state = 414 NOT = { controls_state = 594 } 414 = { NOT = { has_border_war = yes } } 594 = { NOT = { has_border_war = yes } } divisions_in_state = { size > 0 state = 414 } } start_border_war = { change_state_after_war = no attacker = { state = 414 num_provinces = 3 on_win = AFG_border_wars.1 on_lose = AFG_border_wars.2 } defender = { state = 594 num_provinces = 4 on_win = AFG_border_wars.2 on_lose = AFG_border_wars.1 } } } else = { country_event = border_war_operation_blocked.1 } custom_effect_tooltip = TT_AFG_BORDER_WAR_WARN_OF_WAR } ai_will_do = { base = 0 } } afg_claims_clear_tribal_areas = { icon = border_war visible = { 419 = { is_claimed_by = ROOT } owns_state = 594 NOT = { owns_state = 419 } controls_state = 594 NOT = { controls_state = 419 } } available = { PAK = { has_civil_war = yes } NOT = { has_border_war = yes } 419 = { OWNER = { NOT = { has_war_with = ROOT } } } 594 = { NOT = { has_border_war = yes } } 419 = { NOT = { has_border_war = yes } } divisions_in_state = { size > 0 state = 594 } } highlight_states = { highlight_states_trigger = { state = 419 } } cost = 25 days_remove = 15 war_with_target_on_remove = yes complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision afg_claims_clear_tribal_areas" set_country_flag = AFG_attacking_419 ROOT = { save_global_event_target_as = AFG_ATTACKER } 419 = { OWNER = { save_global_event_target_as = AFG_DEFENDER } } } remove_effect = { log = "[GetDateText]: [Root.GetName]: Decision remove afg_claims_clear_tribal_areas" add_command_power = -20 if = { limit = { controls_state = 594 NOT = { controls_state = 419 } 594 = { NOT = { has_border_war = yes } } 419 = { NOT = { has_border_war = yes } } divisions_in_state = { size > 0 state = 594 } } start_border_war = { change_state_after_war = no attacker = { state = 594 num_provinces = 3 on_win = AFG_border_wars.1 on_lose = AFG_border_wars.2 } defender = { state = 419 num_provinces = 2 on_win = AFG_border_wars.2 on_lose = AFG_border_wars.1 } } } else = { country_event = border_war_operation_blocked.1 } custom_effect_tooltip = TT_AFG_BORDER_WAR_WARN_OF_WAR } ai_will_do = { base = 0 } } afg_claims_invade_peshawar = { icon = border_war visible = { 418 = { is_claimed_by = ROOT } owns_state = 419 NOT = { owns_state = 418 } controls_state = 419 NOT = { controls_state = 418 } } available = { PAK = { has_civil_war = yes } NOT = { has_border_war = yes } 418 = { OWNER = { NOT = { has_war_with = ROOT } } } 419 = { NOT = { has_border_war = yes } } 418 = { NOT = { has_border_war = yes } } divisions_in_state = { size > 0 state = 419 } } highlight_states = { highlight_states_trigger = { state = 418 } } cost = 25 days_remove = 15 war_with_target_on_remove = yes complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision afg_claims_invade_peshawar" set_country_flag = AFG_attacking_418 ROOT = { save_global_event_target_as = AFG_ATTACKER } 418 = { OWNER = { save_global_event_target_as = AFG_DEFENDER } } } remove_effect = { log = "[GetDateText]: [Root.GetName]: Decision remove afg_claims_invade_peshawar" add_command_power = -20 if = { limit = { controls_state = 419 NOT = { controls_state = 418 } 419 = { NOT = { has_border_war = yes } } 418 = { NOT = { has_border_war = yes } } divisions_in_state = { size > 0 state = 419 } } start_border_war = { change_state_after_war = no attacker = { state = 419 num_provinces = 3 on_win = AFG_border_wars.1 on_lose = AFG_border_wars.2 } defender = { state = 418 num_provinces = 3 on_win = AFG_border_wars.2 on_lose = AFG_border_wars.1 } } } else = { country_event = border_war_operation_blocked.1 } custom_effect_tooltip = TT_AFG_BORDER_WAR_WARN_OF_WAR } ai_will_do = { base = 0 } } afg_invade_pakistan = { icon = GFX_decision_generic_operation visible = { OR = { 417 = { is_claimed_by = ROOT } 418 = { is_claimed_by = ROOT } 419 = { is_claimed_by = ROOT } 594 = { is_claimed_by = ROOT } } NOT = { AND = { owns_state = 417 owns_state = 418 owns_state = 419 owns_state = 594 } } } available = { NOT = { country_exists = TAL } PAK = { has_civil_war = yes } NOT = { has_border_war = yes } NOT = { has_war_with = PAK } } cost = 75 war_with_target_on_remove = yes days_remove = 45 complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision afg_invade_pakistan" if = { limit = { has_variable = AFG_fail_meter } clear_variable = AFG_fail_meter } } remove_effect = { log = "[GetDateText]: [Root.GetName]: Decision remove afg_invade_pakistan" add_named_threat = { threat = 5 name = AFG_invasion } every_country_with_original_tag = { original_tag_to_check = PAK ROOT = { declare_war_on = { target = PREV type = annex_everything } } } hidden_effect = { news_event = { id = AFG_news.4 hours = 6 } } } ai_will_do = { base = 0 modifier = { add = 20 OR = { has_government = nationalist has_government = fascism } } modifier = { add = 10 strength_ratio = { tag = PAK ratio > 2 } } modifier = { add = 10 check_variable = { var = AFG_fail_meter value = 1 compare = greater_than } } } } afg_integrate_pashtunistan = { icon = generic_form_nation visible = { any_owned_state = { NOT = { is_core_of = ROOT } OR = { state = 417 state = 418 state = 419 state = 594 state = 1171 } } } days_remove = 480 modifier = { political_power_gain = -0.50 consumer_goods_factor = 0.05 } remove_effect = { log = "[GetDateText]: [Root.GetName]: Decision remove afg_integrate_pashtunistan" every_owned_state = { limit = { OR = { state = 417 state = 418 state = 419 state = 594 state = 1171 } } add_core_of = ROOT } } ai_will_do = { base = 0 } } unite_with_pakistan_taliban = { allowed = { original_tag = TAL } icon = annex visible = { has_government = fascism any_country_with_original_tag = { original_tag_to_check = PAK has_government = fascism NOT = { has_war_with = ROOT } } TTP = { is_ai = yes } } available = { PAK = { has_civil_war = yes } } complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision unite_with_pakistan_taliban" random_country_with_original_tag = { original_tag_to_check = PAK limit = { has_government = fascism } ROOT = { add_to_war = { targeted_alliance = PREV enemy = PAK } annex_country = { target = PREV transfer_troops = yes } } } hidden_effect = { news_event = { id = AFG_news.5 hours = 6 } } } ai_will_do = { base = 0 } } } AFG_agriculture_mech = { # Pomegranate Investment - Limited to 5 uses, modest returns # Investment: 5% GDP upfront, Returns: 6% GDP after harvest (20% profit margin) AFG_pomegranate_investment1 = { icon = GFX_decision_generic_construction visible = { has_war = no NOT = { has_country_flag = AFG_pomegranate_investment1_complete } check_variable = { AFG_pomegranate_investments < 5 } } available = { has_war = no NOT = { has_active_mission = AFG_pomegranate_investment1_collect } custom_trigger_tooltip = { tooltip = AFG_pomegranate_investment_limit_tt check_variable = { AFG_pomegranate_investments < 5 } } } cost = 25 days_remove = 30 days_re_enable = 90 remove_effect = { log = "[GetDateText]: [Root.GetName]: Decision AFG_pomegranate_investment1" hidden_effect = { set_country_flag = AFG_pomegranate_investment1_complete add_to_variable = { AFG_pomegranate_investments = 1 } activate_mission = AFG_pomegranate_investment1_collect } custom_effect_tooltip = AFG_pomegranate_investment_tt custom_effect_tooltip = AFG_Current_sales_Money_TT set_temp_variable = { treasury_change = gdp_total } multiply_temp_variable = { treasury_change = -0.05 } modify_treasury_effect = yes newline = yes custom_effect_tooltip = AFG_Effect_Post_sales_TT custom_effect_tooltip = AFG_pomegranate_return_tt effect_tooltip = { set_temp_variable = { treasury_change = gdp_total } multiply_temp_variable = { treasury_change = 0.06 } modify_treasury_effect = yes } } ai_will_do = { base = 5 modifier = { factor = 0 has_active_mission = bankruptcy_incoming_collapse } modifier = { factor = 0 check_variable = { treasury < 0 } } modifier = { factor = 3 check_variable = { treasury_rate > 0 } } } } AFG_pomegranate_investment1_collect = { icon = money_dec available = { has_country_flag = AFG_pomegranate_investment1_complete } activation = { always = no } is_good = yes cost = 5 days_mission_timeout = 60 days_remove = 1 selectable_mission = yes complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision AFG_pomegranate_investment1_collect" clr_country_flag = AFG_pomegranate_investment1_complete custom_effect_tooltip = AFG_pomegranate_return_tt set_temp_variable = { treasury_change = gdp_total } multiply_temp_variable = { treasury_change = 0.06 } modify_treasury_effect = yes } #Without this the flag never clears, and the parent decision's visible check hides the rest of the chain forever. #No payout: an uncollected harvest is the cost of missing the window, and paying here made the collect decision a pure 5 PP loss timeout_effect = { log = "[GetDateText]: [Root.GetName]: Decision timeout AFG_pomegranate_investment1_collect" clr_country_flag = AFG_pomegranate_investment1_complete } ai_will_do = { base = 100 } } # Almond Investment - Limited to 5 uses, slower than pomegranate but a better margin # Investment: 5% GDP upfront, Returns: 8% GDP after a 90 day harvest (60% profit margin) AFG_almond_investment1 = { icon = GFX_decision_generic_construction visible = { has_war = no NOT = { has_country_flag = AFG_almond_investment1_complete } check_variable = { AFG_almond_investments < 5 } } available = { NOT = { has_active_mission = AFG_almond_investment1_collect } custom_trigger_tooltip = { tooltip = AFG_almond_investment_limit_tt check_variable = { AFG_almond_investments < 5 } } } cost = 25 days_remove = 30 days_re_enable = 90 highlight_states = { highlight_provinces = { 1962 213 321 232 } highlight_color_while_active = 3 } remove_effect = { log = "[GetDateText]: [Root.GetName]: Decision AFG_almond_investment1" hidden_effect = { set_country_flag = AFG_almond_investment1_complete add_to_variable = { AFG_almond_investments = 1 } activate_mission = AFG_almond_investment1_collect } custom_effect_tooltip = AFG_almond_investment_tt custom_effect_tooltip = AFG_Current_sales_Money_TT set_temp_variable = { treasury_change = gdp_total } multiply_temp_variable = { treasury_change = -0.05 } modify_treasury_effect = yes newline = yes custom_effect_tooltip = AFG_Effect_Post_sales_TT custom_effect_tooltip = AFG_almond_return_tt effect_tooltip = { set_temp_variable = { treasury_change = gdp_total } multiply_temp_variable = { treasury_change = 0.08 } modify_treasury_effect = yes } } ai_will_do = { base = 5 modifier = { factor = 0 has_active_mission = bankruptcy_incoming_collapse } modifier = { factor = 0 check_variable = { treasury < 0 } } modifier = { factor = 3 check_variable = { treasury_rate > 0 } } } } AFG_almond_investment1_collect = { icon = money_dec available = { has_country_flag = AFG_almond_investment1_complete } activation = { always = no } is_good = yes cost = 5 days_mission_timeout = 90 days_remove = 1 selectable_mission = yes complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision AFG_almond_investment1_collect" clr_country_flag = AFG_almond_investment1_complete custom_effect_tooltip = AFG_almond_return_tt set_temp_variable = { treasury_change = gdp_total } multiply_temp_variable = { treasury_change = 0.08 } modify_treasury_effect = yes } #Without this the flag never clears, and the parent decision's visible check hides the rest of the chain forever. #No payout: an uncollected harvest is the cost of missing the window, and paying here made the collect decision a pure 5 PP loss timeout_effect = { log = "[GetDateText]: [Root.GetName]: Decision timeout AFG_almond_investment1_collect" clr_country_flag = AFG_almond_investment1_complete } ai_will_do = { base = 100 } } } taliban_insurgency_category = { raid_taliban_hideouts = { allowed = { original_tag = AFG } icon = GFX_decision_generic_prepare_civil_war_new custom_cost_trigger = { command_power > 40 } custom_cost_text = command_power_more_than_40 visible = { check_variable = { var = taliban_strength value = 0 compare = greater_than } } available = { no_jihadist_government = yes num_divisions > 5 } complete_effect = { log = "[GetDateText]: [This.GetName]: decision raid_taliban_hideouts executed" add_command_power = -40 } days_remove = 5 days_re_enable = 10 fixed_random_seed = no remove_effect = { log = "[GetDateText]: [Root.GetName]: Decision raid_taliban_hideouts" random_list = { 85 = { news_event = { id = AFG_taliban_insurgency.1 hours = 1 } modifier = { factor = 1.2 has_stability > 0.5 } modifier = { factor = 1.5 has_stability > 0.6 } } 15 = { news_event = { id = AFG_taliban_insurgency.2 hours = 1 } modifier = { factor = 1.25 has_idea = corruption_level_05 } modifier = { factor = 1.5 has_idea = corruption_level_06 } modifier = { factor = 1.75 has_idea = corruption_level_07 } modifier = { factor = 2.25 has_idea = corruption_level_08 } modifier = { factor = 2.5 has_idea = corruption_level_09 } modifier = { factor = 3.0 has_idea = corruption_level_10 } } } custom_effect_tooltip = raid_taliban_success_tt } ai_will_do = { base = 10 } } bomb_taliban_targets = { allowed = { original_tag = AFG } icon = GFX_decision_jet_aircraft custom_cost_trigger = { command_power > 40 } custom_cost_text = command_power_more_than_40 visible = { check_variable = { var = taliban_strength value = 0 compare = greater_than } } available = { no_jihadist_government = yes has_deployed_air_force_size = { size > 4 type = cas } custom_trigger_tooltip = { tooltip = AFG_more_than_40_percent_taliban_strength check_variable = { var = taliban_strength value = 40 compare = greater_than } } } complete_effect = { log = "[GetDateText]: [This.GetName]: decision bomb_taliban_targets executed" add_command_power = -40 } days_remove = 5 days_re_enable = 10 fixed_random_seed = no remove_effect = { log = "[GetDateText]: [Root.GetName]: Decision bomb_taliban_targets" random_list = { 65 = { news_event = { id = AFG_taliban_insurgency.3 hours = 1 } modifier = { factor = 1.1 has_idea = police_02 } modifier = { factor = 1.2 has_idea = police_03 } modifier = { factor = 1.5 has_idea = police_04 } modifier = { factor = 2.0 has_idea = police_05 } } 30 = { news_event = { id = AFG_taliban_insurgency.4 hours = 1 } } 5 = { news_event = { id = AFG_taliban_insurgency.5 hours = 1 } } } custom_effect_tooltip = airstrike_taliban_success_tt } ai_will_do = { base = 10 } } secure_afghan_pakistani_border = { allowed = { original_tag = AFG } icon = GFX_decision_chain_fence custom_cost_trigger = { check_variable = { treasury > 2 } } custom_cost_text = cost_2_0 highlight_states = { highlight_provinces = { 2101 4949 5020 5064 5082 6114 6209 7519 8090 10826 12831 14129 14684 14686 14687 14688 14690 } } visible = { has_country_flag = AFG_active_taliban_insurgency } available = { no_jihadist_government = yes custom_trigger_tooltip = { tooltip = AFG_control_border_with_pakistan_tt controls_province = 2101 controls_province = 4949 controls_province = 5020 controls_province = 14690 controls_province = 8090 controls_province = 14688 controls_province = 5082 controls_province = 6114 controls_province = 14687 controls_province = 14686 controls_province = 12831 controls_province = 10826 controls_province = 14684 controls_province = 6209 controls_province = 14129 controls_province = 7519 } custom_trigger_tooltip = { tooltip = AFG_pakistan_border_less_than_three_fort_tt OR = { 411 = { any_province_building_level = { province = { id = 7519 id = 6209 id = 14129 } building = bunker level < 3 } } 414 = { any_province_building_level = { province = { id = 12831 id = 14686 id = 14687 id = 6114 id = 5082 id = 14688 id = 8090 } building = bunker level < 3 } } 415 = { any_province_building_level = { province = { id = 14690 } building = bunker level < 3 } } 1152 = { any_province_building_level = { province = { id = 2101 id = 4949 id = 5020 } building = bunker level < 3 } } 1153 = { any_province_building_level = { province = { id = 14684 } building = bunker level < 3 } } 1154 = { any_province_building_level = { province = { id = 10826 } building = bunker level < 3 } } } } industrial_complex > 1 } complete_effect = { log = "[GetDateText]: [This.GetName]: decision secure_afghan_pakistani_border executed" set_temp_variable = { treasury_change = -2 } modify_treasury_effect = yes } days_remove = 35 days_re_enable = 30 modifier = { civilian_factory_use = 1 } remove_effect = { log = "[GetDateText]: [Root.GetName]: Decision secure_afghan_pakistani_border" if = { limit = { 414 = { any_province_building_level = { province = { id = 12831 id = 14686 id = 14687 id = 6114 id = 5082 id = 14688 id = 8090 } building = bunker level < 3 } } } hidden_effect = { 414 = { add_building_construction = { type = bunker level = 1 instant_build = yes province = { id = 12831 id = 14686 id = 14687 id = 6114 id = 5082 id = 14688 id = 8090 } } } } custom_effect_tooltip = AFG_fence_along_central_afghanistan_border_tt } else_if = { limit = { 415 = { any_province_building_level = { province = { id = 14690 } building = bunker level < 3 } } } hidden_effect = { 415 = { add_building_construction = { type = bunker level = 1 instant_build = yes province = { id = 14690 } } } } custom_effect_tooltip = AFG_fence_along_southern_afghanistan_border_tt } else_if = { limit = { 411 = { any_province_building_level = { province = { id = 7519 id = 6209 id = 14129 } building = bunker level < 3 } } } hidden_effect = { 411 = { add_building_construction = { type = bunker level = 1 instant_build = yes province = { id = 7519 id = 6209 id = 14129 } } } } custom_effect_tooltip = AFG_fence_along_northern_afghanistan_border_tt } else_if = { limit = { 1152 = { any_province_building_level = { province = { id = 2101 id = 4949 id = 5020 } building = bunker level < 3 } } } hidden_effect = { 1152 = { add_building_construction = { type = bunker level = 1 instant_build = yes province = { id = 2101 id = 4949 id = 5020 } } } } custom_effect_tooltip = AFG_fence_along_northern_afghanistan_border_tt } else_if = { limit = { 1153 = { any_province_building_level = { province = { id = 14684 } building = bunker level < 3 } } } hidden_effect = { 1153 = { add_building_construction = { type = bunker level = 1 instant_build = yes province = { id = 14684 } } } } custom_effect_tooltip = AFG_fence_along_northern_afghanistan_border_tt } else_if = { limit = { 1154 = { any_province_building_level = { province = { id = 10826 } building = bunker level < 3 } } } hidden_effect = { 1154 = { add_building_construction = { type = bunker level = 1 instant_build = yes province = { id = 10826 } } } } custom_effect_tooltip = AFG_fence_along_northern_afghanistan_border_tt } custom_effect_tooltip = AFG_secure_border_with_pakistan_tt } ai_will_do = { base = 10 } } afghan_unity_propaganda = { allowed = { original_tag = AFG } icon = GFX_decision_eng_propaganda_campaigns cost = 30 visible = { check_variable = { var = taliban_strength value = 0 compare = greater_than } } available = { no_jihadist_government = yes } days_remove = 30 days_re_enable = 15 fixed_random_seed = no modifier = { political_power_cost = 0.1 } remove_effect = { log = "[GetDateText]: [Root.GetName]: Decision afghan_unity_propaganda" random_list = { 60 = { news_event = { id = AFG_taliban_insurgency.6 hours = 1 } modifier = { factor = 1.2 has_stability > 0.5 } modifier = { factor = 1.5 has_stability > 0.6 } modifier = { factor = 1.5 has_idea = stable_growth } modifier = { factor = 2.0 has_idea = fast_growth } modifier = { factor = 2.5 has_idea = economic_boom } } 40 = { news_event = { id = AFG_taliban_insurgency.7 hours = 1 } modifier = { factor = 1.25 has_idea = corruption_level_05 } modifier = { factor = 1.5 has_idea = corruption_level_06 } modifier = { factor = 1.75 has_idea = corruption_level_07 } modifier = { factor = 2.25 has_idea = corruption_level_08 } modifier = { factor = 2.5 has_idea = corruption_level_09 } modifier = { factor = 3.0 has_idea = corruption_level_10 } modifier = { factor = 10 is_subject = yes } modifier = { factor = 2.0 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 } } } } } custom_effect_tooltip = afghan_unity_propaganda_success_tt } ai_will_do = { base = 10 modifier = { factor = 2 has_stability > 0.5 } modifier = { factor = 2 has_stability > 0.75 } } } show_supporting_counter_insurgency_countries = { allowed = { original_tag = AFG } icon = GFX_decision_generic_army_support visible = { has_country_flag = AFG_active_taliban_insurgency } complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision show_supporting_counter_insurgency_countries" #Array entries can be a month stale, so re-check both existence and the flag for_each_scope_loop = { array = AFG_ci_array if = { limit = { exists = yes has_country_flag = wot_supporting_afghan_counter_insurgency } set_temp_variable = { selected_tag = THIS.id } TAG_get_name_with_flag = yes } } } ai_will_do = { base = 0 } } isaf_raid_taliban_hideouts = { allowed = { NOT = { original_tag = AFG } } icon = GFX_decision_humvee custom_cost_trigger = { command_power > 40 } custom_cost_text = command_power_more_than_40 visible = { has_country_flag = wot_supporting_afghan_counter_insurgency AFG = { check_variable = { var = taliban_strength value = 0 compare = greater_than } } } available = { has_military_access_to = AFG } complete_effect = { log = "[GetDateText]: [This.GetName]: decision isaf_raid_taliban_hideouts executed" add_command_power = -40 } days_remove = 15 days_re_enable = 30 fixed_random_seed = no remove_effect = { log = "[GetDateText]: [Root.GetName]: Decision isaf_raid_taliban_hideouts" random_list = { 90 = { news_event = { id = AFG_taliban_insurgency.17 hours = 1 } modifier = { factor = 1.2 AFG = { has_stability > 0.5 } } modifier = { factor = 1.5 AFG = { has_stability > 0.6 } } } 10 = { news_event = { id = AFG_taliban_insurgency.18 hours = 1 } modifier = { factor = 1.25 AFG = { has_idea = corruption_level_05 } } modifier = { factor = 1.5 AFG = { has_idea = corruption_level_06 } } modifier = { factor = 1.75 AFG = { has_idea = corruption_level_07 } } modifier = { factor = 2.25 AFG = { has_idea = corruption_level_08 } } modifier = { factor = 2.5 AFG = { has_idea = corruption_level_09 } } modifier = { factor = 3.0 AFG = { has_idea = corruption_level_10 } } } } custom_effect_tooltip = isaf_raid_taliban_success_tt } ai_will_do = { base = 1 modifier = { factor = 10 AFG = { check_variable = { var = taliban_strength value = 45 compare = greater_than } } } } } isaf_launch_drone_strike = { allowed = { NOT = { original_tag = AFG } } icon = GFX_decision_uav custom_cost_trigger = { command_power > 40 } custom_cost_text = command_power_more_than_40 highlight_states = { highlight_provinces = { 10737 12831 12769 5064 4893 6186 } } visible = { has_country_flag = wot_supporting_afghan_counter_insurgency AFG = { check_variable = { var = taliban_strength value = 0 compare = greater_than } } } available = { has_military_access_to = AFG has_equipment = { small_plane_suicide_airframe > 9 } custom_trigger_tooltip = { tooltip = AFG_more_than_40_percent_taliban_strength AFG = { check_variable = { var = taliban_strength value = 40 compare = greater_than } } } } complete_effect = { log = "[GetDateText]: [This.GetName]: decision isaf_launch_drone_strike executed" add_command_power = -40 } days_remove = 10 days_re_enable = 60 fixed_random_seed = no remove_effect = { log = "[GetDateText]: [Root.GetName]: Decision isaf_launch_drone_strike" random_list = { 65 = { news_event = { id = AFG_taliban_insurgency.21 hours = 1 } modifier = { factor = 1.2 has_equipment = { Air_UAV2 > 0 } } modifier = { factor = 1.5 has_equipment = { Air_UAV3 > 0 } } modifier = { factor = 2.5 has_equipment = { Air_UAV4 > 0 } } } 35 = { news_event = { id = AFG_taliban_insurgency.22 hours = 1 } } } custom_effect_tooltip = isaf_drone_strike_taliban_success_tt } ai_will_do = { base = 1 modifier = { factor = 10 AFG = { check_variable = { var = taliban_strength value = 75 compare = greater_than } } } } } isaf_bomb_taliban_hotspots = { allowed = { NOT = { original_tag = AFG } } icon = GFX_decision_jet_bomber custom_cost_trigger = { command_power > 40 } custom_cost_text = command_power_more_than_40 visible = { has_country_flag = wot_supporting_afghan_counter_insurgency AFG = { check_variable = { var = taliban_strength value = 0 compare = greater_than } } } available = { has_military_access_to = AFG has_deployed_air_force_size = { size > 4 type = strategic_bomber } custom_trigger_tooltip = { tooltip = AFG_more_than_60_percent_taliban_strength AFG = { check_variable = { var = taliban_strength value = 60 compare = greater_than } } } } complete_effect = { log = "[GetDateText]: [This.GetName]: decision isaf_bomb_taliban_hotspots executed" add_command_power = -40 } days_remove = 5 days_re_enable = 90 fixed_random_seed = no remove_effect = { log = "[GetDateText]: [Root.GetName]: Decision isaf_bomb_taliban_hotspots" random_list = { 65 = { news_event = { id = AFG_taliban_insurgency.23 hours = 1 } modifier = { factor = 1.1 has_equipment = { strategic_bomber2 > 0 } } modifier = { factor = 1.2 has_equipment = { strategic_bomber3 > 0 } } modifier = { factor = 1.5 has_equipment = { strategic_bomber4 > 0 } } modifier = { factor = 2.5 has_equipment = { strategic_bomber5 > 0 } } modifier = { factor = 4.0 has_equipment = { strategic_bomber6 > 0 } } } 35 = { news_event = { id = AFG_taliban_insurgency.24 hours = 1 } } } custom_effect_tooltip = isaf_bomb_taliban_success_tt } ai_will_do = { base = 1 modifier = { factor = 10 AFG = { check_variable = { var = taliban_strength value = 75 compare = greater_than } } } } } isaf_provide_technical_equipment = { allowed = { NOT = { original_tag = AFG } } icon = GFX_decision_generic_research_new custom_cost_trigger = { check_variable = { treasury > 0.5 } } custom_cost_text = cost_0_5 visible = { has_country_flag = wot_supporting_afghan_counter_insurgency AFG = { check_variable = { var = taliban_strength value = 0 compare = greater_than } } amount_research_slots > 4 } complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision isaf_provide_technical_equipment" set_temp_variable = { treasury_change = -0.5 } modify_treasury_effect = yes AFG = { news_event = { id = AFG_taliban_insurgency.25 hours = 1 } } } days_remove = 30 days_re_enable = 90 remove_effect = { log = "[GetDateText]: [Root.GetName]: Decision isaf_provide_technical_equipment" AFG = { set_temp_variable = { percent_change = 2 } change_influence_percentage = yes add_stability = 0.01 set_temp_variable = { taliban_strength_decrease = 5 } decrease_taliban_strength = yes } } ai_will_do = { base = 1 modifier = { factor = 10 AFG = { check_variable = { var = taliban_strength value = 45 compare = greater_than } } } } } isaf_withdraw_from_afghanistan = { allowed = { NOT = { original_tag = AFG } NOT = { original_tag = USA } } icon = GFX_decision_jet_transport cost = 50 visible = { has_military_access_to = AFG has_country_flag = wot_supporting_afghan_counter_insurgency AFG = { has_country_flag = AFG_active_taliban_insurgency } } available = { has_military_access_to = AFG } complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision isaf_withdraw_from_afghanistan" set_temp_variable = { arg_popularity = 0.02 } add_ruling_outlook_popularity = yes AFG = { news_event = { id = AFG_taliban_insurgency.16 hours = 1 } } } days_remove = 30 fire_only_once = yes remove_effect = { log = "[GetDateText]: [Root.GetName]: Decision isaf_withdraw_from_afghanistan" if = { limit = { has_military_access_to = AFG } diplomatic_relation = { country = AFG relation = military_access active = no } } clr_country_flag = wot_supporting_afghan_counter_insurgency } ai_will_do = { base = 0 modifier = { add = 1 date > 2015.1.1 } modifier = { add = 20 has_government = nationalist } modifier = { add = 10 has_government = neutrality } modifier = { add = 100 has_stability < 0.4 } } } eliminate_taliban_insurgency = { allowed = { original_tag = AFG } icon = GFX_decision_oppression custom_cost_trigger = { command_power > 40 } custom_cost_text = command_power_more_than_40 visible = { has_country_flag = AFG_active_taliban_insurgency } available = { no_jihadist_government = yes custom_trigger_tooltip = { tooltip = AFG_taliban_strength_lower_than_five_percent_tt check_variable = { var = taliban_strength value = 5 compare = less_than } } custom_trigger_tooltip = { tooltip = AFG_pakistan_border_more_than_two_fort_tt 411 = { any_province_building_level = { province = { id = 7519 id = 6209 id = 14129 } building = bunker level > 2 } } 414 = { any_province_building_level = { province = { id = 12831 id = 14686 id = 14687 id = 6114 id = 5082 id = 14688 id = 8090 } building = bunker level > 2 } } 415 = { any_province_building_level = { province = { id = 14690 } building = bunker level > 2 } } 1152 = { any_province_building_level = { province = { id = 2101 id = 4949 id = 5020 } building = bunker level > 2 } } 1153 = { any_province_building_level = { province = { id = 14684 } building = bunker level > 2 } } 1154 = { any_province_building_level = { province = { id = 10826 } building = bunker level > 2 } } } has_stability > 0.5 NOT = { OR = { has_idea = corruption_level_08 has_idea = corruption_level_09 has_idea = corruption_level_10 } } divisions_in_state = { size > 2 state = 414 } divisions_in_state = { size > 2 state = 415 } divisions_in_state = { size > 2 state = 411 } divisions_in_state = { size > 1 state = 1152 } divisions_in_state = { size > 1 state = 1153 } divisions_in_state = { size > 1 state = 1154 } } complete_effect = { log = "[GetDateText]: [This.GetName]: decision eliminate_taliban_insurgency executed" add_command_power = -40 } days_remove = 15 remove_effect = { log = "[GetDateText]: [Root.GetName]: Decision eliminate_taliban_insurgency" #TAL can be the subject of a live or queued Security Council vote (extradition, type 7). #on_annex would tear that down, but a scripted annex_country is not worth betting on. TAL = { clear_united_nations_member_state = yes } annex_country = { target = TAL } reset_taliban_strength = yes clr_country_flag = AFG_active_taliban_insurgency set_country_flag = AFG_taliban_insurgency_eliminated hidden_effect = { AFG_clear_ci_supporters = yes } news_event = { id = AFG_taliban_insurgency.8 hours = 3 } add_stability = 0.1 add_political_power = 100 set_temp_variable = { arg_popularity = 0.05 } add_ruling_outlook_popularity = yes if = { limit = { country_exists = TTP } TTP = { add_manpower = 2500 add_popularity = { ideology = fascism popularity = 0.05 } } } else = { 594 = { add_manpower = 2500 } PAK = { add_stability = -0.01 add_popularity = { ideology = fascism popularity = 0.01 } } } } ai_will_do = { base = 100 } } } # New Taliban Insurgency System AFG_tal_insurgency_new = { # TALIBAN SPECIFIC DECISIONS TAL_move_into_tribal_areas = { allowed = { original_tag = TAL } icon = generic_operation fire_only_once = yes custom_cost_trigger = { command_power > 40 } custom_cost_text = command_power_more_than_40 days_remove = 50 cancel_trigger = { has_country_flag = PAK_objected } available = { NOT = { has_war_with = PAK } } visible = { 594 = { is_owned_and_controlled_by = PAK } } complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision TAL_move_into_tribal_areas" hidden_effect = { add_command_power = -40 } PAK = { country_event = AFG_border_wars.3 } } remove_effect = { log = "[GetDateText]: [Root.GetName]: Decision remove TAL_move_into_tribal_areas" 594 = { transfer_state_to = TAL } } ai_will_do = { base = 25 } } TAL_construct_the_safed_koh_system = { allowed = { original_tag = TAL } icon = generic_construction fire_only_once = yes cost = 50 available = { treasury_higher_than_2 = yes } days_remove = 25 complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision TAL_construct_the_safed_koh_system" set_temp_variable = { treasury_change = -2.50 } modify_treasury_effect = yes } remove_effect = { log = "[GetDateText]: [Root.GetName]: Decision remove TAL_construct_the_safed_koh_system" 1207 = { add_building_construction = { type = supply_node level = 1 province = 16283 } add_dynamic_modifier = { modifier = AFG_safed_koh_supply_network } } } ai_will_do = { base = 25 } } # Border Wars (Shared) TAL_1207_attack_1154 = { allowed = { original_tag = TAL } icon = border_war custom_cost_trigger = { command_power > 20 } custom_cost_text = command_power_more_than_20 days_re_enable = 50 available = { NOT = { has_country_flag = AFG_doing_border_raid } 1207 = { NOT = { has_border_war = yes } } 1154 = { NOT = { has_border_war = yes } } divisions_in_state = { size > 0 state = 1207 } } visible = { 1207 = { is_owned_by = ROOT } controls_state = 1207 NOT = { controls_state = 1154 } } complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision TAL_1207_attack_1154" add_command_power = -20 start_border_war = { change_state_after_war = no attacker = { # Taliban Forces state = 1207 num_provinces = 1 on_win = AFG_border_wars.8 # Taliban Victory on_lose = AFG_border_wars.7 # Afghan Victory on_cancel = AFG_border_wars.9 # Draw } defender = { # Afghan Forces state = 1154 num_provinces = 1 on_win = AFG_border_wars.7 # Afghan Victory on_lose = AFG_border_wars.8 # Taliban Victory on_cancel = AFG_border_wars.9 # Draw } } hidden_effect = { set_border_war_data = { attacker = 1207 defender = 1154 attacker_modifier = AFG.taliban_attack_strength } } set_country_flag = TAL_attacking_1154 set_country_flag = AFG_doing_border_raid } ai_will_do = { base = 25 } } TAL_1207_attack_1208 = { allowed = { original_tag = TAL } icon = border_war custom_cost_trigger = { command_power > 20 } custom_cost_text = command_power_more_than_20 days_re_enable = 50 available = { NOT = { has_country_flag = AFG_doing_border_raid } 1207 = { NOT = { has_border_war = yes } } 1208 = { NOT = { has_border_war = yes } } divisions_in_state = { size > 0 state = 1207 } } visible = { 1207 = { is_owned_by = ROOT } controls_state = 1207 NOT = { controls_state = 1208 } } complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision TAL_1207_attack_1208" add_command_power = -20 start_border_war = { change_state_after_war = no attacker = { # Taliban Forces state = 1207 num_provinces = 1 on_win = AFG_border_wars.8 # Taliban Victory on_lose = AFG_border_wars.7 # Afghan Victory on_cancel = AFG_border_wars.9 # Draw } defender = { # Afghan Forces state = 1208 num_provinces = 1 on_win = AFG_border_wars.7 # Afghan Victory on_lose = AFG_border_wars.8 # Taliban Victory on_cancel = AFG_border_wars.9 # Draw } } hidden_effect = { set_border_war_data = { attacker = 1207 defender = 1208 attacker_modifier = AFG.taliban_attack_strength } } set_country_flag = TAL_attacking_1208 set_country_flag = AFG_doing_border_raid } ai_will_do = { base = 25 } } TAL_1152_attack_415 = { allowed = { original_tag = TAL } icon = border_war custom_cost_trigger = { command_power > 20 } custom_cost_text = command_power_more_than_20 days_re_enable = 50 available = { NOT = { has_country_flag = AFG_doing_border_raid } 1152 = { NOT = { has_border_war = yes } } 415 = { NOT = { has_border_war = yes } } divisions_in_state = { size > 0 state = 1152 } } visible = { 1152 = { is_owned_by = ROOT } controls_state = 1152 NOT = { controls_state = 415 } } complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision TAL_1152_attack_415" add_command_power = -20 start_border_war = { change_state_after_war = no attacker = { # Taliban Forces state = 1152 num_provinces = 3 on_win = AFG_border_wars.8 # Taliban Victory on_lose = AFG_border_wars.7 # Afghan Victory on_cancel = AFG_border_wars.9 # Draw } defender = { # Afghan Forces state = 415 num_provinces = 3 on_win = AFG_border_wars.7 # Afghan Victory on_lose = AFG_border_wars.8 # Taliban Victory on_cancel = AFG_border_wars.9 # Draw } } hidden_effect = { set_border_war_data = { attacker = 1152 defender = 415 attacker_modifier = AFG.taliban_attack_strength } } set_country_flag = TAL_attacking_415 set_country_flag = AFG_doing_border_raid } ai_will_do = { base = 25 } } AFG_414_attack_1207 = { allowed = { original_tag = AFG } icon = border_war custom_cost_trigger = { command_power > 20 } custom_cost_text = command_power_more_than_20 days_re_enable = 50 available = { NOT = { has_country_flag = AFG_doing_border_raid } 414 = { NOT = { has_border_war = yes } } 1207 = { NOT = { has_border_war = yes } } divisions_in_state = { size > 0 state = 414 } } visible = { 1207 = { is_owned_by = TAL } controls_state = 414 NOT = { controls_state = 1207 } } complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision AFG_414_attack_1207" add_command_power = -20 start_border_war = { change_state_after_war = no attacker = { # Afghan Forces state = 414 num_provinces = 1 on_win = AFG_border_wars.7 # Afghan Victory on_lose = AFG_border_wars.8 # Taliban Victory on_cancel = AFG_border_wars.9 # Draw } defender = { # Taliban Forces state = 1207 num_provinces = 1 on_win = AFG_border_wars.8 # Taliban Victory on_lose = AFG_border_wars.7 # Afghan Victory on_cancel = AFG_border_wars.9 # Draw } } set_border_war_data = { attacker = 414 defender = 1207 defender_modifier = AFG.taliban_attack_strength } set_country_flag = AFG_attacking_1207 set_country_flag = AFG_doing_border_raid } ai_will_do = { base = 25 } } AFG_414_attack_1208 = { allowed = { original_tag = AFG } icon = border_war custom_cost_trigger = { command_power > 20 } custom_cost_text = command_power_more_than_20 days_re_enable = 50 available = { NOT = { has_country_flag = AFG_doing_border_raid } 414 = { NOT = { has_border_war = yes } } 1208 = { NOT = { has_border_war = yes } } divisions_in_state = { size > 0 state = 414 } } visible = { 1208 = { is_owned_by = TAL } controls_state = 414 NOT = { controls_state = 1208 } } complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision AFG_414_attack_1208" add_command_power = -20 start_border_war = { change_state_after_war = no attacker = { # Afghan Forces state = 414 num_provinces = 3 on_win = AFG_border_wars.7 # Afghan Victory on_lose = AFG_border_wars.8 # Taliban Victory on_cancel = AFG_border_wars.9 # Draw } defender = { # Taliban Forces state = 1208 num_provinces = 3 on_win = AFG_border_wars.8 # Taliban Victory on_lose = AFG_border_wars.7 # Afghan Victory on_cancel = AFG_border_wars.9 # Draw } } set_border_war_data = { attacker = 414 defender = 1208 defender_modifier = AFG.taliban_attack_strength } set_country_flag = AFG_attacking_1208 set_country_flag = AFG_doing_border_raid } ai_will_do = { base = 25 } } AFG_414_attack_1154 = { allowed = { original_tag = AFG } icon = border_war custom_cost_trigger = { command_power > 20 } custom_cost_text = command_power_more_than_20 days_re_enable = 50 available = { NOT = { has_country_flag = AFG_doing_border_raid } 414 = { NOT = { has_border_war = yes } } 1154 = { NOT = { has_border_war = yes } } divisions_in_state = { size > 0 state = 414 } } visible = { 1154 = { is_owned_by = TAL } controls_state = 414 NOT = { controls_state = 1154 } } complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision AFG_414_attack_1154" add_command_power = -20 start_border_war = { change_state_after_war = no attacker = { # Afghan Forces state = 414 num_provinces = 1 on_win = AFG_border_wars.7 # Afghan Victory on_lose = AFG_border_wars.8 # Taliban Victory on_cancel = AFG_border_wars.9 # Draw } defender = { # Taliban Forces state = 1154 num_provinces = 1 on_win = AFG_border_wars.8 # Taliban Victory on_lose = AFG_border_wars.7 # Afghan Victory on_cancel = AFG_border_wars.9 # Draw } } set_border_war_data = { attacker = 414 defender = 1154 defender_modifier = AFG.taliban_attack_strength } set_country_flag = AFG_attacking_1154 set_country_flag = AFG_doing_border_raid } ai_will_do = { base = 25 } } AFG_415_attack_1152 = { allowed = { original_tag = AFG } icon = border_war custom_cost_trigger = { command_power > 20 } custom_cost_text = command_power_more_than_20 days_re_enable = 50 available = { NOT = { has_country_flag = AFG_doing_border_raid } 415 = { NOT = { has_border_war = yes } } 1152 = { NOT = { has_border_war = yes } } divisions_in_state = { size > 0 state = 415 } } visible = { 1152 = { is_owned_by = TAL } controls_state = 415 NOT = { controls_state = 1152 } } complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision AFG_415_attack_1152" add_command_power = -20 start_border_war = { change_state_after_war = no attacker = { # Afghan Forces state = 415 num_provinces = 3 on_win = AFG_border_wars.7 # Afghan Victory on_lose = AFG_border_wars.8 # Taliban Victory on_cancel = AFG_border_wars.9 # Draw } defender = { # Taliban Forces state = 1152 num_provinces = 3 on_win = AFG_border_wars.8 # Taliban Victory on_lose = AFG_border_wars.7 # Afghan Victory on_cancel = AFG_border_wars.9 # Draw } } set_border_war_data = { attacker = 415 defender = 1152 defender_modifier = AFG.taliban_attack_strength } set_country_flag = AFG_attacking_1152 set_country_flag = AFG_doing_border_raid } ai_will_do = { base = 25 } } AFG_412_attack_415 = { allowed = { original_tag = AFG } icon = border_war custom_cost_trigger = { command_power > 20 } custom_cost_text = command_power_more_than_20 days_re_enable = 50 available = { NOT = { has_country_flag = AFG_doing_border_raid } 412 = { NOT = { has_border_war = yes } } 415 = { NOT = { has_border_war = yes } } divisions_in_state = { size > 0 state = 412 } } visible = { 415 = { is_owned_by = TAL } controls_state = 412 NOT = { controls_state = 415 } } complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision AFG_412_attack_415" add_command_power = -20 start_border_war = { change_state_after_war = no attacker = { # Afghan Forces state = 412 num_provinces = 3 on_win = AFG_border_wars.7 # Afghan Victory on_lose = AFG_border_wars.8 # Taliban Victory on_cancel = AFG_border_wars.9 # Draw } defender = { # Taliban Forces state = 415 num_provinces = 3 on_win = AFG_border_wars.8 # Taliban Victory on_lose = AFG_border_wars.7 # Afghan Victory on_cancel = AFG_border_wars.9 # Draw } } set_border_war_data = { attacker = 412 defender = 415 defender_modifier = AFG.taliban_attack_strength } set_country_flag = AFG_attacking_415 set_country_flag = AFG_doing_border_raid } ai_will_do = { base = 25 } } # Taliban Take-Over Decisions TAL_begin_insurgency_in_registan = { allowed = { original_tag = TAL } icon = ignite_civil_war fire_only_once = yes visible = { 1152 = { NOT = { is_controlled_by = TAL } } 1208 = { is_controlled_by = TAL } } complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision TAL_begin_insurgency_in_registan" 1152 = { transfer_state_to = TAL add_core_of = TAL create_unit = { division = "name = \"8th. 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 = 5020 } create_unit = { division = "name = \"9th. 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 = 4949 } create_unit = { division = "name = \"10th. 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 = 1948 } create_unit = { division = "name = \"11th. 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 = 2101 } } } ai_will_do = { base = 25 } } TAL_begin_war_again = { war_with_on_complete = AFG allowed = { original_tag = TAL } icon = war visible = { USA = { NOT = { has_idea = USA_afghan_mission_cost } } date > 2012.1.1 } available = { custom_trigger_tooltip = { tooltip = AFG_more_than_20_percent_taliban_strength AFG = { check_variable = { taliban_strength > 19 } } } } fire_only_once = yes complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision TAL_begin_war_again" news_event = department_of_state.94 AFG = { set_country_flag = AFG_new_war } declare_war_on = { target = AFG type = annex_everything } division_template = { name = "Da Zayi Lawa Taleban Kommandoyi" regiments = { Special_Forces = { x = 0 y = 0 } Special_Forces = { x = 0 y = 1 } } support = { L_Recce_Comp = { x = 0 y = 0 } } priority = 2 } capital_scope = { create_unit = { division = "name = \"1st. Da Zayi Lawa Taleban Kommandoyi\" division_template = \"Da Zayi Lawa Taleban Kommandoyi\" start_experience_factor = 1.0 start_equipment_factor = 0.8" owner = TAL } create_unit = { division = "name = \"2nd. Da Zayi Lawa Taleban Kommandoyi\" division_template = \"Da Zayi Lawa Taleban Kommandoyi\" start_experience_factor = 1.0 start_equipment_factor = 0.8" owner = TAL } create_unit = { division = "name = \"3rd. Da Zayi Lawa Taleban Kommandoyi\" division_template = \"Da Zayi Lawa Taleban Kommandoyi\" start_experience_factor = 1.0 start_equipment_factor = 0.8" owner = TAL } create_unit = { division = "name = \"4th. Da Zayi Lawa Taleban Kommandoyi\" division_template = \"Da Zayi Lawa Taleban Kommandoyi\" start_experience_factor = 1.0 start_equipment_factor = 0.8" owner = TAL } create_unit = { division = "name = \"5th. Da Zayi Lawa Taleban Kommandoyi\" division_template = \"Da Zayi Lawa Taleban Kommandoyi\" start_experience_factor = 1.0 start_equipment_factor = 0.8" owner = TAL } create_unit = { division = "name = \"12th. Da Zayi Milisho Lawa Taleban\" division_template = \"Da Zayi Milisho Lawa Taleban\" start_experience_factor = 1.0 start_equipment_factor = 0.8" owner = TAL } create_unit = { division = "name = \"13th. Da Zayi Milisho Lawa Taleban\" division_template = \"Da Zayi Milisho Lawa Taleban\" start_experience_factor = 1.0 start_equipment_factor = 0.8" owner = TAL } create_unit = { division = "name = \"14th. Da Zayi Milisho Lawa Taleban\" division_template = \"Da Zayi Milisho Lawa Taleban\" start_experience_factor = 1.0 start_equipment_factor = 0.8" owner = TAL } create_unit = { division = "name = \"15th. Da Zayi Milisho Lawa Taleban\" division_template = \"Da Zayi Milisho Lawa Taleban\" start_experience_factor = 1.0 start_equipment_factor = 0.8" owner = TAL } } } ai_will_do = { base = 25 } } }