on_actions = { on_weekly_USA = { random_events = { 1000 = 0 2000 = wot.15 150 = wot.22 } effect = { set_variable = { USA_can_expand_steel_resources = 0 } set_variable = { USA_can_expand_aluminium_resources = 0 } set_variable = { USA_can_expand_tungsten_resources = 0 } every_owned_state = { if = { limit = { ROOT = { check_variable = { USA_can_expand_steel_resources = 0 } } has_resources_amount = { resource = steel amount > 5 } check_variable = { USA_steel_expansion_count < 3 } } ROOT = { set_variable = { USA_can_expand_steel_resources = 1 } } } if = { limit = { ROOT = { check_variable = { USA_can_expand_aluminium_resources = 0 } } has_resources_amount = { resource = aluminium amount > 4 } check_variable = { USA_aluminium_expansion_count < 3 } } ROOT = { set_variable = { USA_can_expand_aluminium_resources = 1 } } } if = { limit = { ROOT = { check_variable = { USA_can_expand_tungsten_resources = 0 } } has_resources_amount = { resource = tungsten amount > 4 } check_variable = { USA_tungsten_expansion_count < 3 } } ROOT = { set_variable = { USA_can_expand_tungsten_resources = 1 } } } } # The shelterer can be annexed with bin Laden still at large; without this the manhunt stalls forever if = { limit = { has_global_flag = GLOBAL_bin_laden_at_large event_target:GLOBAL_bin_laden_hideout = { exists = no } } bin_laden_relocate_hideout = yes } # wot.26/wot.27 only fire while the Afghan war is still running; if it ends (or OEF launches) # mid-relay the settlement chain dies silently. Route the stranded case to wot.28. if = { limit = { has_country_flag = USA_wot_settlement_pending OR = { has_country_flag = USA_wot_enduring_freedom NOT = { country_exists = TAL } NOT = { country_exists = AFG } NOT = { AFG = { has_war_with = TAL } } } } clr_country_flag = USA_wot_settlement_pending country_event = wot.28 } if = { limit = { has_full_control_of_state = 787 NOT = { has_idea = landmark_ICBMsilominot_hidden } } add_ideas = landmark_ICBMsilominot_hidden } if = { limit = { NOT = { has_full_control_of_state = 787 } has_idea = landmark_ICBMsilominot_hidden } remove_ideas = landmark_ICBMsilominot_hidden } if = { limit = { NOT = { has_government = communism } has_country_flag = washington_dc_renamed_due_to_gus_hall NOT = { has_country_flag = collapsed_nation } } country_event = { id = usa.70 days = 1 } } } } on_monthly_USA = { random_events = { 3000 = 0 100 = usa_economic_events.init # Initialize the Great Financial Crisis 1000 = usa_economic_events.35 # End of the Great Recession 1000 = usa_economic_events.31 1000 = usa_economic_events.32 1000 = usa_economic_events.33 1000 = usa_economic_events.34 } effect = { # American FP if = { limit = { SOM = { OR = { has_war_with = JUB has_war_with = SWS has_war_with = PUN } } NOT = { has_country_flag = USA_SOM_intervention } } random = { chance = 35 country_event = { id = department_of_state.01 days = 20 } } } if = { limit = { has_idea = USA_afghan_mission_cost NOT = { has_country_flag = USA_disabled_casualty_report } } country_event = department_of_state.200 } if = { limit = { has_idea = USA_afghan_mission_cost has_country_flag = USA_disabled_casualty_report } add_manpower = -75 random_list = { 10 = { add_stability = -0.01 } 10 = { set_temp_variable = { treasury_change = -4.54 } modify_treasury_effect = yes } 10 = { set_temp_variable = { party_popularity_increase = -0.02 } change_relative_party_popularity = yes } 10 = { add_political_power = -200 } 10 = { army_experience = -25 } 50 = { # Nothing } } } if = { limit = { NOT = { has_global_flag = saddam_hussein_captured } has_global_flag = GLOBAL_operation_iraqi_freedom_succeeded IRQ = { is_subject_of = USA } date > 2003.12.12 date < 2006.12.30 } set_global_flag = saddam_hussein_captured } if = { limit = { NOT = { has_global_flag = saddam_sentenced_to_death } date > 2006.12.29 date < 2015.1.1 has_global_flag = GLOBAL_operation_iraqi_freedom_succeeded IRQ = { is_subject_of = USA } } set_global_flag = saddam_sentenced_to_death news_event = { id = wotnews.13 random_days = 14 random_hours = 24 hours = 6 } } } } on_state_control_changed = { effect = { if = { limit = { FROM.FROM = { state = 598 } country_exists = USA USA = { check_variable = { USA_tsmc_resource_trade_cost_bonus_per_factory > 0 } } } USA = { USA_tsmc_access_update = yes } } } } on_annex = { effect = { if = { limit = { FROM = { original_tag = TAI } country_exists = USA USA = { check_variable = { USA_tsmc_resource_trade_cost_bonus_per_factory > 0 } } } USA = { USA_tsmc_access_update = yes } } } } on_war_relation_added = { effect = { if = { limit = { OR = { AND = { ROOT = { original_tag = USA } FROM = { original_tag = TAI } } AND = { ROOT = { original_tag = TAI } FROM = { original_tag = USA } } } country_exists = USA USA = { check_variable = { USA_tsmc_resource_trade_cost_bonus_per_factory > 0 } } } USA = { USA_tsmc_access_update = yes } } } } on_peaceconference_ended = { effect = { if = { limit = { country_exists = USA USA = { check_variable = { USA_tsmc_resource_trade_cost_bonus_per_factory > 0 } } } USA = { USA_tsmc_access_update = yes } } } } }