## OPERATION ENDURING FREEDOM ## war_on_terror_category = { #Decision to increase intelligence spending usa_increase_intelligence_spending = { visible = { date > 2001.1.1 NOT = { has_country_flag = USA_wot_attack_occurred } NOT = { has_country_flag = USA_wot_intelligence_surge } NOT = { has_country_flag = collapsed_nation } } available = { treasury_higher_than_0_5 = yes congress_medium_support_trigger = yes } cost = 200 days_remove = 90 modifier = { political_power_gain = -1.5 democratic_drift = -0.30 } complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision usa_increase_intelligence_spending" set_temp_variable = { treasury_change = -0.5 } modify_treasury_effect = yes custom_effect_tooltip = TT_REDUCE_RULING_COALITION_POPULARITY_20_PERCENT if = { limit = { has_variable = ruling_party } multiply_variable = { party_pop_array^ruling_party = 0.8 } } for_each_loop = { array = gov_coalition_array value = v multiply_variable = { party_pop_array^v = 0.8 } } hidden_effect = { recalculate_party = yes } set_country_flag = USA_wot_intelligence_surge custom_effect_tooltip = TT_OEF_INCREASED_CHANCE_OF_DETECTING_TERRORISTS set_temp_variable = { wot_aq_intel_change = 15 } wot_al_qaeda_intel_gain = yes USA_congress_medium_opposition = yes set_temp_variable = { temp_opinion = 8 } change_intelligence_community_opinion = yes } ai_will_do = { base = 10 modifier = { is_historical_focus_on = yes factor = 0 } } } #Invasion of Afghanistan storyline usa_demand_extradition_of_bin_laden = { visible = { has_country_flag = USA_wot_attack_occurred country_exists = TAL OR = { AFG = { has_war_with = TAL } AFG = { has_country_flag = AFG_active_taliban_insurgency } NOT = { country_exists = AFG } } NOT = { has_country_flag = collapsed_nation } } available = { custom_trigger_tooltip = { tooltip = TT_OEF_WAR_ON_TERROR_SPEECH_HELD has_country_flag = USA_wot_speech_given } custom_trigger_tooltip = { tooltip = TT_UNSC_NO_PENDING_SUBJECT_VOTE NOT = { has_global_flag = sc_action_against@TAL } } } cost = 100 fire_only_once = yes complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision usa_demand_extradition_of_bin_laden" custom_effect_tooltip = TT_EXTRADITION_TALIBAN_WILL_ANSWER TAL = { country_event = { id = wot.9 days = 3 } } } ai_will_do = { base = 1000 #A bare demand is refused 19 times in 20. Go to the Council first while that route is open -- #only an arms-dealer White House skips straight to the ultimatum. modifier = { factor = 0.01 is_on_un_sec_council = yes NOT = { has_country_flag = USA_country_flag_arms_dealer } TAL = { NOT = { has_country_flag = unsc_extradition_demanded } NOT = { has_country_flag = unsc_extradition_rejected } } } modifier = { factor = 5 date > 2001.1.1 } modifier = { factor = 5 date > 2002.1.1 } modifier = { factor = 5 date > 2003.1.1 } } } #The Taliban handed him over. Now end the war they are still fighting, without American troops in it. usa_broker_afghan_settlement = { icon = GFX_decision_generic_civil_support visible = { has_country_flag = USA_wot_extradition_accepted NOT = { has_country_flag = USA_wot_enduring_freedom } NOT = { has_country_flag = USA_wot_afghan_settlement } NOT = { has_country_flag = collapsed_nation } country_exists = TAL country_exists = AFG } available = { treasury_higher_than_3 = yes AFG = { has_war_with = TAL } } cancel_trigger = { OR = { NOT = { AFG = { has_war_with = TAL } } has_country_flag = USA_wot_enduring_freedom } } cost = 150 days_remove = 60 fire_only_once = yes #Terms are offered, not imposed: Kabul and the Taliban each get to answer, and either can refuse. remove_effect = { log = "[GetDateText]: [Root.GetName]: Decision usa_broker_afghan_settlement" set_temp_variable = { treasury_change = -3 } modify_treasury_effect = yes save_global_event_target_as = GLOBAL_wot_settlement_broker set_country_flag = USA_wot_settlement_pending custom_effect_tooltip = TT_AFGHAN_SETTLEMENT_OFFERED custom_effect_tooltip = TT_IF_THEY_ACCEPT effect_tooltip = { AFG = { white_peace = TAL } TAL = { add_ideas = TAL_pariah_settlement } add_political_power = 100 } TAL = { country_event = { id = wot.26 days = 3 } } } ai_will_do = { base = 200 modifier = { factor = 2 has_country_flag = USA_country_flag_legal_interventionism } } } #Take the demand to the Security Council before reaching for the rifle usa_seek_unsc_extradition_mandate = { icon = GFX_decision_generic_political_discourse visible = { has_country_flag = USA_wot_attack_occurred country_exists = TAL NOT = { has_country_flag = USA_wot_enduring_freedom } NOT = { has_country_flag = USA_wot_extradition_accepted } NOT = { has_country_flag = USA_wot_extradition_refused } NOT = { has_country_flag = collapsed_nation } TAL = { NOT = { has_country_flag = unsc_extradition_demanded } NOT = { has_country_flag = unsc_extradition_rejected } } } available = { custom_trigger_tooltip = { tooltip = TT_OEF_WAR_ON_TERROR_SPEECH_HELD has_country_flag = USA_wot_speech_given } custom_trigger_tooltip = { tooltip = TT_UNSC_NO_PENDING_SUBJECT_VOTE NOT = { has_global_flag = sc_action_against@TAL } } is_on_un_sec_council = yes } cost = 75 fire_only_once = yes complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision usa_seek_unsc_extradition_mandate" custom_effect_tooltip = TT_EXTRADITION_UNSC_MANDATE set_temp_variable = { sc_new_vote_type = 7 } set_temp_variable = { sc_new_vote_nation = TAL.id } #update_sc_vote does not set this; the GUI and AI proposer paths set it themselves TAL = { set_global_flag = sc_action_against@THIS } update_sc_vote = yes } ai_will_do = { base = 1000 modifier = { factor = 3 has_country_flag = USA_country_flag_legal_interventionism } modifier = { factor = 0 has_country_flag = USA_country_flag_arms_dealer } } } usa_operation_enduring_freedom = { visible = { OR = { has_country_flag = USA_wot_extradition_refused has_country_flag = USA_wot_extradition_accepted } NOT = { has_country_flag = collapsed_nation } } available = { treasury_higher_than_10 = yes } cost = 200 days_remove = 15 fire_only_once = yes fixed_random_seed = no war_with_on_remove = TAL remove_effect = { log = "[GetDateText]: [Root.GetName]: Decision remove usa_operation_enduring_freedom" set_temp_variable = { treasury_change = -10 } modify_treasury_effect = yes set_country_flag = USA_wot_enduring_freedom #Invading a regime that gave us what we asked for. The world notices. if = { limit = { has_country_flag = USA_wot_extradition_accepted } custom_effect_tooltip = TT_WOT_INVADE_AFTER_COMPLIANCE remove_ideas = USA_wot_diplomatic_victory add_named_threat = { threat = 5 name = USA_wot_unprovoked_invasion } add_war_support = -0.10 unsc_members_condemn_us = yes #We wrote this peace, we made Kabul sign it, and now we are tearing it up ourselves if = { limit = { has_country_flag = USA_wot_afghan_settlement country_exists = AFG } custom_effect_tooltip = TT_WOT_TORE_UP_OUR_OWN_TREATY add_named_threat = { threat = 5 name = USA_wot_broken_settlement } AFG = { add_opinion_modifier = { target = ROOT modifier = betrayed_guarantee } } set_temp_variable = { percent_change = -40 } set_temp_variable = { influence_target = AFG.id } change_influence_percentage = yes } } #Add threat to allow volunteers to be sent add_named_threat = { threat = 12 name = USA_enduring_freedom } #Other NATO countries + Australia requested to join for_each_scope_loop = { array = global.nato_members if = { limit = { NOT = { original_tag = USA } } country_event = { id = wot.12 days = 2 random_hours = 24 } } } AST = { country_event = { id = wot.12 days = 2 random_hours = 24 } } #Make sure US is at Global Interventionism idea if = { limit = { NOT = { has_idea = intervention_global_interventionism } } add_ideas = intervention_global_interventionism } #If Northern Alliance has been defeated, start a weaker new civil war if = { limit = { NOT = { country_exists = AFG } } clr_global_flag = GLOBAL_afghan_civil_war_over TAL = { every_owned_state = { limit = { is_core_of = TAL } add_core_of = AFG } } AFG = { transfer_state = 411 transfer_state = 410 set_capital = { state = 411 } declare_war_on = { target = TAL type = civil_war } load_oob = "AFG_uprising_by_US" } } hidden_effect = { news_event = { id = wotnews.7 hours = 6 } #The Afghan sanctuary is gone. The network scatters, weaker and easier to see. set_temp_variable = { wot_aq_threat_change = -15 } set_temp_variable = { wot_aq_visibility_change = 10 } wot_al_qaeda_shift = yes set_temp_variable = { wot_aq_intel_change = 20 } wot_al_qaeda_intel_gain = yes } #Only if he is still in Afghanistan: an earlier escape (wot.20) already moved and announced him if = { limit = { NOT = { has_global_flag = GLOBAL_bin_laden_at_large } } hidden_effect = { bin_laden_relocate_hideout = yes } if = { limit = { has_global_flag = GLOBAL_bin_laden_at_large } news_event = { id = wotnews.17 hours = 12 } } } } ai_will_do = { base = 1000 #They handed him over. Invading anyway is an option, and it should almost never be taken -- #but a hawk in the White House will still reach for it. modifier = { factor = 0.01 has_country_flag = USA_wot_extradition_accepted } modifier = { factor = 5 has_country_flag = USA_wot_extradition_accepted has_country_flag = USA_country_flag_war_on_terror } #Kabul or the Taliban walked away from the table. The rifle is what is left. modifier = { factor = 5 has_country_flag = USA_wot_settlement_refused } modifier = { factor = 2 is_historical_focus_on = yes } } } #Homeland Security Act usa_homeland_security_act = { visible = { has_country_flag = USA_wot_attack_occurred NOT = { has_idea = USA_homeland_security } NOT = { has_country_flag = collapsed_nation } } available = { treasury_higher_than_5 = yes NOT = { AFG = { has_war_with = TAL } } has_idea = USA_patriot_act_idea } cost = 200 days_remove = 90 fire_only_once = yes complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision usa_homeland_security_act" set_temp_variable = { treasury_change = -5 } modify_treasury_effect = yes swap_ideas = { remove_idea = USA_patriot_act_idea add_idea = USA_homeland_security } } ai_will_do = { base = 1000 } } #Setting up a new administration in Afghanistan usa_setup_new_administration_in_afghanistan = { visible = { NOT = { has_country_flag = USA_failed_to_win_in_iraq } has_country_flag = USA_wot_enduring_freedom NOT = { has_country_flag = collapsed_nation } country_exists = AFG } available = { treasury_higher_than_3 = yes AFG = { is_subject = no if = { limit = { is_ai = no } influence_higher_15 = yes } } NOT = { AFG = { has_war_with = TAL } } } cost = 150 fire_only_once = yes complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision usa_setup_new_administration_in_afghanistan" set_temp_variable = { treasury_change = -3 } modify_treasury_effect = yes hidden_effect = { USA = { set_autonomy = { target = AFG autonomous_state = autonomy_fifty_second_state_afghanistan end_wars = no } country_event = { id = usa.101 days = 30 random_days = 60 } } news_event = { id = usa.100 days = 6 } } add_ideas = USA_afghan_mission_cost newline = yes country_event = { id = wot.13 days = 2 } newline = yes custom_effect_tooltip = USA_afghan_mission_TT } ai_will_do = { base = 1000 } } #Create Guantanamo Bay usa_create_guantanamo_bay = { visible = { OR = { has_country_flag = USA_wot_enduring_freedom has_country_flag = USA_wot_extradition_accepted } NOT = { has_idea = USA_guantanamo_bay } owns_state = 424 NOT = { has_country_flag = collapsed_nation } } available = { treasury_higher_than_0_5 = yes OR = { NOT = { AFG = { has_war_with = TAL } } AFG = { has_volunteers_amount_from = { tag = USA count > 0 } } } } cost = 200 fire_only_once = yes complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision usa_create_guantanamo_bay" set_temp_variable = { treasury_change = -0.5 } modify_treasury_effect = yes add_ideas = USA_guantanamo_bay CUB = { add_opinion_modifier = { target = USA modifier = territorial_integrity_violation } } hidden_effect = { news_event = { id = wotnews.9 hours = 6 } } } ai_will_do = { base = 1000 } } #Petition Operation Iraqi Freedom usa_petition_invasion_of_iraq = { visible = { OR = { has_country_flag = USA_wot_enduring_freedom has_country_flag = USA_wot_extradition_accepted } IRQ = { has_country_leader = { name = "Saddam Hussein" ruling_only = yes } } NOT = { has_country_flag = collapsed_nation } NOT = { has_country_flag = USA_wot_iraq_gave_us_cause } } available = { OR = { NOT = { AFG = { has_war_with = TAL } } TAL = { NOT = { has_government = fascism } } has_country_flag = USA_wot_extradition_accepted } custom_trigger_tooltip = { tooltip = TT_UNSC_NO_PENDING_SUBJECT_VOTE NOT = { has_global_flag = sc_action_against@IRQ } } is_on_un_sec_council = yes } cost = 200 fire_only_once = yes complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision usa_petition_invasion_of_iraq" custom_effect_tooltip = TT_IRAQ_DISARMAMENT_UNSC_PETITION set_country_flag = USA_wot_iraq_petition_pending set_temp_variable = { sc_new_vote_type = 6 } set_temp_variable = { sc_new_vote_nation = IRQ.id } #update_sc_vote does not set this; the GUI and AI proposer paths set it themselves IRQ = { set_global_flag = sc_action_against@THIS } update_sc_vote = yes } ai_will_do = { base = 1000 modifier = { factor = 2 date > 2005.1.1 } modifier = { factor = 2 threat < 0.25 } } } #Run a war support campaign for Iraq usa_run_war_support_campaign_against_iraq = { visible = { has_country_flag = USA_wot_iraq_petition_pending NOT = { has_country_flag = USA_wot_iraqi_freedom } NOT = { has_country_flag = collapsed_nation } NOT = { has_country_flag = USA_wot_iraq_gave_us_cause } } available = { treasury_higher_than_0_5 = yes has_war = no } cost = 200 days_remove = 180 complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision usa_run_war_support_campaign_against_iraq" set_temp_variable = { treasury_change = -0.5 } modify_treasury_effect = yes } modifier = { political_power_gain = -2 war_support_weekly = 0.005 } ai_will_do = { base = 1000 } } #Operation iraqi freedom usa_operation_iraqi_freedom = { visible = { has_country_flag = USA_wot_iraq_invasion_prepared NOT = { has_country_flag = collapsed_nation } NOT = { has_country_flag = USA_wot_iraq_gave_us_cause } } available = { treasury_higher_than_25 = yes if = { limit = { NOT = { has_country_flag = USA_wot_iraq_gave_us_cause } } has_war_support > 0.6 } } cost = 150 days_remove = 120 fire_only_once = yes remove_effect = { log = "[GetDateText]: [Root.GetName]: Decision remove usa_operation_iraqi_freedom" set_temp_variable = { treasury_change = -25 } modify_treasury_effect = yes USA = { country_event = iraq_war.2 } } complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision usa_operation_iraqi_freedom" set_country_flag = USA_wot_iraq_invasion_prepared IRQ = { set_country_flag = IRQ_war_with_america } for_each_scope_loop = { array = global.nato_members if = { limit = { NOT = { original_tag = USA } } country_event = { id = wot.17 days = 5 random_hours = 72 } } } AST = { country_event = { id = wot.17 days = 5 random_hours = 72 } } # Iraq gets warned hidden_effect = { IRQ = { country_event = iraq_war.1 } } } ai_will_do = { base = 10000 modifier = { factor = 2 date > 2004.2.2 } modifier = { factor = 2 threat < 0.25 } } } #Withdraw troops from iraq usa_withdraw_troops_from_iraq = { visible = { date > 2009.1.1 IRQ = { is_subject_of = USA } has_global_flag = GLOBAL_operation_iraqi_freedom_succeeded NOT = { has_country_flag = collapsed_nation } } available = { IRQ = { has_war = no } } cost = 200 fire_only_once = yes complete_effect = { log = "[GetDateText]: [Root.GetName]: Decision usa_withdraw_troops_from_iraq" end_puppet = IRQ remove_from_faction = IRQ hidden_effect = { news_event = { id = wotnews.14 hours = 6 } } } ai_will_do = { base = 1000 } } USA_invasion_in_iraq_mission = { available = { NOT = { has_country_flag = USA_wot_iraq_invasion_failed } has_war_with = IRQ } activation = { always = no } days_mission_timeout = 365 selectable_mission = no is_good = no fire_only_once = yes timeout_effect = { log = "[GetDateText]: [Root.GetName]: Decision remove USA_invasion_in_iraq_mission" set_country_flag = USA_wot_iraq_invasion_failed add_war_support = -0.10 add_stability = -0.05 add_timed_idea = { idea = USA_failed_to_invade_iraq_idea days = 210 } } } }