### search_filters = {FOCUS_FILTER_POLITICAL} ### search_filters = {FOCUS_FILTER_RESEARCH} ### search_filters = {FOCUS_FILTER_INDUSTRY} ### search_filters = {FOCUS_FILTER_STABILITY} ### search_filters = {FOCUS_FILTER_WAR_SUPPORT} ### search_filters = {FOCUS_FILTER_MANPOWER} ### search_filters = {FOCUS_FILTER_ANNEXATION} #focus = { # id = # icon = GFX_focus_PLACEHOLDER # #prerequisite = { focus = } # x = 0 # y = 0 # #relative_position_id = # #mutually_exclusive = { focus = focus = } # cost = 5 # ai_will_do = { # factor = 10 # } # available = { # } # #allow_branch = { # #} # search_filters = { } # completion_reward = { # } #} focus_tree = { id = afghanistan_tree country = { factor = 0 modifier = { add = 10 tag = AFG has_dlc = "Graveyard of Empires" } } default = no continuous_focus_position = { x = 0 y = 2500 } #initial_show_position = { # x = 27 # y = 0 #} shared_focus = SSB_the_saadabad_pact #################################### Industrial Branch #################################### focus = { id = AFG_expand_telegraph_network icon = GFX_focus_AFG_telegraph #prerequisite = { focus = } x = -21 y = 0 #relative_position_id = AFG_support_king_zahir #mutually_exclusive = { focus = focus = } cost = 5 ai_will_do = { factor = 10 } available = { } #allow_branch = { #} search_filters = { FOCUS_FILTER_HISTORICAL FOCUS_FILTER_INDUSTRY } completion_reward = { every_owned_state = { limit = { is_owned_and_controlled_by = AFG #has_dynamic_modifier = { modifier = AFG_economic_regionalism } } #alter_regionalism_modifier_industrialize = yes custom_effect_tooltip = AFG_modify_er_ns_intro add_to_variable = { AFG_state_development_production_speed = 0.05 tooltip = MODIFIER_STATE_PRODUCTION_SPEED_BUILDINGS_FACTOR_tt } add_to_variable = { AFG_state_development_state_resources_factor = 0.05 tooltip = MODIFIER_STATE_RESOURCES_FACTOR_tt } add_to_variable = { AFG_state_production_speed_infrastructure_factor = 0.05 tooltip = production_speed_infrastructure_factor_tt } } } } #focus = { # id = AFG_increase_agricultural_exports # icon = GFX_focus_PLACEHOLDER # prerequisite = { focus = AFG_expand_telegraph_network } # x = 0 # y = 1 # relative_position_id = AFG_expand_telegraph_network # #mutually_exclusive = { focus = focus = } # cost = 5 # ai_will_do = { # factor = 10 # } # available = { # } # #allow_branch = { # #} # search_filters = { FOCUS_FILTER_HISTORICAL FOCUS_FILTER_INDUSTRY } # completion_reward = { # } #} focus = { id = AFG_sugar_processing icon = GFX_focus_AFG_sugar_factory prerequisite = { focus = AFG_expand_telegraph_network } x = 1 y = 1 relative_position_id = AFG_expand_telegraph_network #mutually_exclusive = { focus = focus = } cost = 10 ai_will_do = { factor = 10 } available = { } #allow_branch = { #} search_filters = { FOCUS_FILTER_HISTORICAL FOCUS_FILTER_INDUSTRY } completion_reward = { random_core_state = { limit = { free_building_slots = { building = industrial_complex size > 0 include_locked = yes } is_owned_and_controlled_by = ROOT } add_extra_state_shared_building_slots = 1 add_building_construction = { type = industrial_complex level = 1 instant_build = yes } } custom_effect_tooltip = generic_skip_one_line_tt alter_subsistence_economy_modifier_industrialize = yes custom_effect_tooltip = generic_skip_one_line_tt custom_effect_tooltip = available_industrial_concern show_ideas_tooltip = AFG_baghlan_sugar_factory_idea } } focus = { id = AFG_fruit_packing icon = GFX_focus_AFG_fruit_processing prerequisite = { focus = AFG_expand_telegraph_network } x = -1 y = 1 relative_position_id = AFG_expand_telegraph_network #mutually_exclusive = { focus = focus = } cost = 10 ai_will_do = { factor = 10 } available = { } #allow_branch = { #} search_filters = { FOCUS_FILTER_HISTORICAL FOCUS_FILTER_INDUSTRY FOCUS_FILTER_RESEARCH } completion_reward = { add_tech_bonus = { name = AFG_fruit_packing bonus = 0.5 uses = 1 category = industry } custom_effect_tooltip = generic_skip_one_line_tt random_core_state = { limit = { free_building_slots = { building = industrial_complex size > 0 include_locked = yes } is_owned_and_controlled_by = ROOT } add_extra_state_shared_building_slots = 1 add_building_construction = { type = industrial_complex level = 1 instant_build = yes } } custom_effect_tooltip = generic_skip_one_line_tt alter_subsistence_economy_modifier_industrialize = yes } } focus = { id = AFG_clear_malarial_swamps icon = GFX_focus_AFG_anti_malaria prerequisite = { focus = AFG_expand_telegraph_network } x = -8 y = 1 relative_position_id = AFG_expand_telegraph_network #mutually_exclusive = { focus = focus = } cost = 5 ai_will_do = { factor = 10 } available = { industrial_complex > 3 has_tech = excavation1 } #allow_branch = { #} search_filters = { FOCUS_FILTER_HISTORICAL FOCUS_FILTER_INDUSTRY FOCUS_FILTER_STABILITY } completion_reward = { add_stability = 0.05 415 = { add_extra_state_shared_building_slots = 3 } } } focus = { id = AFG_qargha_dam icon = GFX_focus_generic_hydroelectric_energy prerequisite = { focus = AFG_clear_malarial_swamps } x = 0 y = 1 relative_position_id = AFG_clear_malarial_swamps #mutually_exclusive = { focus = focus = } cost = 10 ai_will_do = { factor = 10 } available = { industrial_complex > 5 #has_tech = excavation3 267 = { is_owned_and_controlled_by = ROOT } } #allow_branch = { #} search_filters = { FOCUS_FILTER_HISTORICAL FOCUS_FILTER_INDUSTRY } bypass = { 267 = { NOT = { is_owned_by = ROOT } } } completion_reward = { 267 = { add_building_construction = { type = dam level = 1 instant_build = yes province = { id = 10852 } } } custom_effect_tooltip = { localization_key = building_state_modifier|dam INDENT = " " } } } #focus = { # id = AFG_chaki_dam # icon = GFX_focus_generic_hydroelectric_energy # prerequisite = { focus = AFG_qargha_dam } # x = 0 # y = 1 # relative_position_id = AFG_qargha_dam # #mutually_exclusive = { focus = focus = } # cost = 10 # ai_will_do = { # factor = 10 # } # #available = { # # industrial_complex > 7 # # has_tech = excavation4 # #} # #allow_branch = { # #} # search_filters = { FOCUS_FILTER_HISTORICAL FOCUS_FILTER_INDUSTRY } # completion_reward = { # custom_effect_tooltip = "TODO_ASD - Requires map changes to work" # 267 = { # add_building_construction = { # type = dam # level = 1 # instant_build = yes # province = { # id = 12769 # } # } # } # custom_effect_tooltip = { # localization_key = building_state_modifier|dam # INDENT = " " # } # } #} focus = { id = AFG_kajaki_dam icon = { GFX_focus_AFG_helmand_river_authority = { OR = { has_government = democratic has_government = communism } } GFX_focus_generic_electrification = yes } prerequisite = { focus = AFG_qargha_dam } x = 0 y = 1 relative_position_id = AFG_qargha_dam cost = 10 ai_will_do = { factor = 10 } available = { industrial_complex > 9 #has_tech = excavation5 1009 = { is_owned_and_controlled_by = ROOT } } search_filters = { FOCUS_FILTER_HISTORICAL FOCUS_FILTER_INDUSTRY FOCUS_FILTER_STABILITY } completion_reward = { 1009 = { add_building_construction = { type = dam level = 1 instant_build = yes province = { id = 2078 } } } custom_effect_tooltip = { localization_key = building_state_modifier|dam INDENT = " " } custom_effect_tooltip = generic_skip_one_line_tt add_ideas = AFG_hellmand_altered_no_treaty custom_effect_tooltip = AFG_kajaki_dam_tt IF = { limit = { NOT = { 414 = { is_owned_by = ROOT } } } 414 = { OWNER = { country_event = { id = AFG_industrial_events.30 hours = 1 } effect_tooltip = { add_ideas = PER_hellmand_altered_no_treaty } } } } } } focus = { id = AFG_iron_mines icon = GFX_focus_generic_steel prerequisite = { focus = AFG_kajaki_dam } x = -1 y = 1 relative_position_id = AFG_kajaki_dam #mutually_exclusive = { focus = focus = } cost = 10 ai_will_do = { factor = 10 } available = { 1006 = { is_owned_and_controlled_by = ROOT } } #allow_branch = { #} search_filters = { FOCUS_FILTER_INDUSTRY } completion_reward = { 1006 = { add_resource = { type = steel amount = 16 } } } } focus = { id = AFG_chromite_mines icon = GFX_focus_generic_chromium prerequisite = { focus = AFG_kajaki_dam } x = 1 y = 1 relative_position_id = AFG_kajaki_dam #mutually_exclusive = { focus = focus = } cost = 10 ai_will_do = { factor = 10 } available = { 1008 = { is_owned_and_controlled_by = ROOT } } #allow_branch = { #} search_filters = { FOCUS_FILTER_INDUSTRY } completion_reward = { 1008 = { add_resource = { type = chromium amount = 24 } } } } focus = { id = AFG_modern_economy icon = GFX_focus_AFG_a_modern_economy prerequisite = { focus = AFG_iron_mines focus = AFG_chromite_mines } x = 1 y = 1 relative_position_id = AFG_iron_mines cost = 10 ai_will_do = { factor = 10 } available = { industrial_complex > 19 } search_filters = { FOCUS_FILTER_INDUSTRY } completion_reward = { remove_dynamic_modifier = { modifier = AFG_subsistence_economy_modifier } custom_effect_tooltip = generic_skip_one_line_tt add_ideas = AFG_emerging_economy custom_effect_tooltip = generic_skip_one_line_tt ETH_add_random_mil_factory_effect = yes } } focus = { id = AFG_infrastructure_construction icon = GFX_goal_generic_construct_infrastructure prerequisite = { focus = AFG_expand_telegraph_network } x = -5 y = 1 relative_position_id = AFG_expand_telegraph_network #mutually_exclusive = { focus = focus = } cost = 5 ai_will_do = { factor = 10 } available = { industrial_complex > 2 } #allow_branch = { #} search_filters = { FOCUS_FILTER_HISTORICAL FOCUS_FILTER_INDUSTRY FOCUS_FILTER_RESEARCH } completion_reward = { add_ideas = AFG_infrastructure_investment custom_effect_tooltip = generic_skip_one_line_tt add_tech_bonus = { name = AFG_infrastructure_construction bonus = 0.6 uses = 1 category = train_tech } custom_effect_tooltip = generic_skip_one_line_tt IF = { limit = { capital_scope = { infrastructure < 5 } } capital_scope = { add_building_construction = { type = infrastructure level = 1 instant_build = yes } } } } } focus = { id = AFG_ministry_of_supply icon = GFX_focus_generic_stockpile_fuel prerequisite = { focus = AFG_expand_telegraph_network } x = 3 y = 1 relative_position_id = AFG_expand_telegraph_network #mutually_exclusive = { focus = focus = } cost = 5 ai_will_do = { factor = 10 } available = { 1009 = { is_owned_and_controlled_by = ROOT } } #allow_branch = { #} search_filters = { FOCUS_FILTER_HISTORICAL FOCUS_FILTER_INDUSTRY FOCUS_FILTER_RESEARCH } completion_reward = { 1009 = { add_building_construction = { type = supply_node province = 2017 level = 1 instant_build = yes } } 267 = { build_railway = { level = 1 path = { 10737 7916 1995 2078 2017 } } } custom_effect_tooltip = generic_skip_one_line_tt add_tech_bonus = { name = AFG_ministry_of_supply bonus = 0.3 uses = 1 category = synth_resources } } } focus = { id = AFG_implement_currency_controls icon = GFX_focus_AFG_afghan_bank prerequisite = { focus = AFG_ministry_of_supply } x = 0 y = 1 relative_position_id = AFG_ministry_of_supply #mutually_exclusive = { focus = AFG_biding_our_time } cost = 5 ai_will_do = { factor = 10 } available = { } #allow_branch = { #} search_filters = { FOCUS_FILTER_INDUSTRY } completion_reward = { alter_subsistence_economy_modifier_industrialize = yes custom_effect_tooltip = generic_skip_one_line_tt custom_effect_tooltip = available_industrial_concern show_ideas_tooltip = AFG_da_afghanistan_bank_idea } } focus = { id = AFG_expand_karakul_lambskin_industry icon = GFX_focus_generic_sheep prerequisite = { focus = AFG_fruit_packing } prerequisite = { focus = AFG_sugar_processing } x = 1 y = 1 relative_position_id = AFG_fruit_packing #mutually_exclusive = { focus = focus = } cost = 10 ai_will_do = { factor = 10 } available = { } #allow_branch = { #} search_filters = { FOCUS_FILTER_HISTORICAL FOCUS_FILTER_INDUSTRY FOCUS_FILTER_RESEARCH } completion_reward = { random_core_state = { limit = { free_building_slots = { building = industrial_complex size > 0 include_locked = yes } is_owned_and_controlled_by = ROOT } add_extra_state_shared_building_slots = 1 add_building_construction = { type = industrial_complex level = 1 instant_build = yes } } custom_effect_tooltip = generic_skip_one_line_tt add_tech_bonus = { name = AFG_expand_karakul_lambskin_industry bonus = 0.5 uses = 1 category = industry } custom_effect_tooltip = generic_skip_one_line_tt alter_subsistence_economy_modifier_industrialize = yes } } focus = { id = AFG_spinzar_cotton_factory icon = GFX_focus_generic_industry_1 prerequisite = { focus = AFG_expand_telegraph_network } x = -3 y = 1 relative_position_id = AFG_expand_telegraph_network cost = 10 ai_will_do = { factor = 10 } available = { } search_filters = { FOCUS_FILTER_INDUSTRY } completion_reward = { random_core_state = { limit = { free_building_slots = { building = industrial_complex size > 1 include_locked = yes } is_owned_and_controlled_by = ROOT } prioritize = { 1007 } # Kunduz add_extra_state_shared_building_slots = 2 add_building_construction = { type = industrial_complex level = 2 instant_build = yes } } } } focus = { id = AFG_look_to_other_partners icon = GFX_goal_generic_trade prerequisite = { focus = AFG_fruit_packing } x = 0 y = 2 relative_position_id = AFG_fruit_packing mutually_exclusive = { focus = AFG_renew_soviet_trade_agreement } cost = 5 ai_will_do = { factor = 10 } available = { } #allow_branch = { #} search_filters = { FOCUS_FILTER_HISTORICAL FOCUS_FILTER_INDUSTRY FOCUS_FILTER_POLITICAL FOCUS_FILTER_INTERNATIONAL_TRADE } completion_reward = { custom_effect_tooltip = AFG_look_to_other_partners_tt custom_effect_tooltip = generic_higher_opinion_tt every_other_country = { limit = { is_major = yes NOT = { OR = { original_tag = SOU has_war_with = ROOT } } } country_event = { id = AFG_industrial_events.20 hours = 1 } add_opinion_modifier = { target = ROOT modifier = ICE_trade_partner } } SOU = { #custom_effect_tooltip = AFG_ideology_on_the_rise_flipped_tt } } } focus = { id = AFG_renew_soviet_trade_agreement icon = GFX_focus_chi_mission_to_the_soviet_union prerequisite = { focus = AFG_sugar_processing } x = 0 y = 2 relative_position_id = AFG_sugar_processing mutually_exclusive = { focus = AFG_look_to_other_partners } cost = 5 ai_will_do = { factor = 10 } available = { SOU = { exists = yes NOT = { has_war_with = ROOT } } NOT = { has_government = fascism } } #allow_branch = { #} search_filters = { FOCUS_FILTER_HISTORICAL FOCUS_FILTER_INDUSTRY FOCUS_FILTER_POLITICAL FOCUS_FILTER_RESEARCH FOCUS_FILTER_INTERNATIONAL_TRADE } completion_reward = { add_offsite_building = { type = industrial_complex level = 2 } custom_effect_tooltip = generic_skip_one_line_tt add_ideas = AFG_renew_soviet_trade_agreement custom_effect_tooltip = generic_skip_one_line_tt add_opinion_modifier = { target = SOU modifier = sov_ger_treaty_trade } SOU = { #custom_effect_tooltip = AFG_ideology_on_the_rise_tt set_country_flag = AFG_requested_our_aid } custom_effect_tooltip = generic_skip_one_line_tt custom_effect_tooltip = available_political_advisor show_ideas_tooltip = AFG_nisar_muhammad_yousafzai } } focus = { id = AFG_salang_pass icon = GFX_goal_generic_soviet_construction prerequisite = { focus = AFG_renew_soviet_trade_agreement } x = 0 y = 1 relative_position_id = AFG_renew_soviet_trade_agreement #mutually_exclusive = { focus = AFG_look_to_other_partners } cost = 10 ai_will_do = { factor = 10 } available = { 1005 = { is_owned_and_controlled_by = ROOT } } #allow_branch = { #} search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_POLITICAL } completion_reward = { 1005 = { add_extra_state_shared_building_slots = 1 add_building_construction = { type = industrial_complex level = 1 instant_build = yes } add_building_construction = { type = infrastructure level = 2 instant_build = yes } } give_military_access = SOU hidden_effect = { SOU = { add_ideology_drift_based_on_partner = yes } } SOU = { #custom_effect_tooltip = AFG_ideology_on_the_rise_tt AFG = { custom_effect_tooltip = AFG_foreign_influence_tt } set_country_flag = AFG_requested_our_aid } } } focus = { id = AFG_truck_factory icon = GFX_focus_generic_truck prerequisite = { focus = AFG_renew_soviet_trade_agreement } x = 2 y = 1 relative_position_id = AFG_renew_soviet_trade_agreement #mutually_exclusive = { focus = AFG_look_to_other_partners } cost = 10 ai_will_do = { factor = 10 } available = { } #allow_branch = { #} search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_POLITICAL } completion_reward = { IF = { limit = { has_dlc = "Arms Against Tyranny" } custom_effect_tooltip = invites_mio_tt show_mio_tooltip = SOV_gaz_organization mio:SOV_gaz_organization = { add_mio_size = 3 } custom_effect_tooltip = generic_skip_one_line_tt } random_owned_controlled_state = { prioritize = { 267 } add_extra_state_shared_building_slots = 1 add_building_construction = { type = industrial_complex level = 1 instant_build = yes } } custom_effect_tooltip = generic_skip_one_line_tt add_popularity = { ideology = communism popularity = 0.075 } SOU = { #custom_effect_tooltip = AFG_ideology_on_the_rise_tt } hidden_effect = { SOU = { set_country_flag = AFG_requested_our_aid } } } } focus = { id = AFG_75_year_oil_concessions icon = GFX_goal_generic_oil_refinery prerequisite = { focus = AFG_look_to_other_partners } x = 0 y = 1 relative_position_id = AFG_look_to_other_partners #mutually_exclusive = { focus = AFG_look_to_other_partners } cost = 5 ai_will_do = { factor = 10 } available = { } #allow_branch = { #} search_filters = { FOCUS_FILTER_HISTORICAL FOCUS_FILTER_INDUSTRY } completion_reward = { custom_effect_tooltip = AFG_75_year_oil_concessions_tt SOU = { #custom_effect_tooltip = AFG_ideology_on_the_rise_flipped_tt } } } focus = { id = AFG_electrification icon = GFX_focus_ARG_develop_the_electricity_sector prerequisite = { focus = AFG_infrastructure_construction } x = 1 y = 1 relative_position_id = AFG_infrastructure_construction #mutually_exclusive = { focus = AFG_look_to_other_partners } cost = 5 ai_will_do = { factor = 10 } available = { industrial_complex > 4 } #allow_branch = { #} search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_RESEARCH } completion_reward = { 267 = { add_dynamic_modifier = { modifier = AFG_electrification_modifier } } custom_effect_tooltip = AFG_electrification_tt custom_effect_tooltip = available_industrial_concern show_ideas_tooltip = AFG_electrical_company_idea } } focus = { id = AFG_establish_radio_networks icon = GFX_focus_SWE_radiotjanst prerequisite = { focus = AFG_electrification } x = 0 y = 1 relative_position_id = AFG_electrification #mutually_exclusive = { focus = AFG_look_to_other_partners } cost = 5 ai_will_do = { factor = 10 } available = { } #allow_branch = { #} search_filters = { FOCUS_FILTER_RESEARCH FOCUS_FILTER_STABILITY } completion_reward = { add_ideas = AFG_radio_networks IF = { limit = { NOT = { has_tech = radio } } custom_effect_tooltip = generic_skip_one_line_tt set_technology = { radio = 1 } } } } focus = { id = AFG_connect_the_cities icon = GFX_focus_generic_improve_roads prerequisite = { focus = AFG_infrastructure_construction } x = -1 y = 1 relative_position_id = AFG_infrastructure_construction cost = 10 ai_will_do = { factor = 10 } available = { industrial_complex > 4 } search_filters = { FOCUS_FILTER_INDUSTRY } completion_reward = { every_owned_state = { limit = { is_fully_controlled_by = ROOT is_core_of = ROOT } add_building_construction = { type = infrastructure level = 2 instant_build = yes } } custom_effect_tooltip = generic_skip_one_line_tt every_owned_state = { limit = { is_core_of = ROOT has_dynamic_modifier = { modifier = AFG_economic_regionalism } } remove_dynamic_modifier = { modifier = AFG_economic_regionalism } } } } focus = { id = AFG_rail_construction icon = GFX_focus_generic_railroad prerequisite = { focus = AFG_connect_the_cities } x = 0 y = 1 relative_position_id = AFG_connect_the_cities #mutually_exclusive = { focus = AFG_look_to_other_partners } cost = 5 ai_will_do = { factor = 10 } available = { industrial_complex > 7 has_tech = basic_train } #allow_branch = { #} search_filters = { FOCUS_FILTER_INDUSTRY } completion_reward = { custom_effect_tooltip = available_industrial_concern show_ideas_tooltip = AFG_railway_company_idea add_equipment_to_stockpile = { type = train_equipment amount = 10 producer = ENG } IF = { limit = { capital_scope = { state = 267 } 415 = { is_owned_and_controlled_by = ROOT } 1009 = { is_owned_and_controlled_by = ROOT } } 267 = { build_railway = { level = 1 path = { 10737 7916 7984 10896 10476 4893 } } } 415 = { add_building_construction = { type = supply_node province = 4893 level = 1 instant_build = yes } } } } } focus = { id = AFG_expand_kabul_university icon = GFX_focus_AFG_research prerequisite = { focus = AFG_establish_radio_networks } prerequisite = { focus = AFG_rail_construction } x = 1 y = 1 relative_position_id = AFG_rail_construction #mutually_exclusive = { focus = AFG_look_to_other_partners } cost = 5 ai_will_do = { factor = 10 } available = { industrial_complex > 9 } #allow_branch = { #} search_filters = { FOCUS_FILTER_RESEARCH } completion_reward = { add_research_slot = 1 custom_effect_tooltip = generic_skip_one_line_tt custom_effect_tooltip = AFG_expand_kabul_university_tt effect_tooltip = { activate_mission = AFG_radical_students_countdown } } } focus = { id = AFG_state_industries icon = GFX_focus_generic_military_industry prerequisite = { focus = AFG_expand_kabul_university } x = 0 y = 1 relative_position_id = AFG_expand_kabul_university #mutually_exclusive = { focus = AFG_look_to_other_partners } cost = 5 ai_will_do = { factor = 10 } available = { } #allow_branch = { #} search_filters = { FOCUS_FILTER_RESEARCH FOCUS_FILTER_INDUSTRY } completion_reward = { custom_effect_tooltip = AFG_state_industries_tt ETH_add_random_mil_factory_effect = yes } } ########################################################################################## ################################# Military Branch #################################### ########################################################################################## focus = { id = AFG_maintain_quami icon = GFX_focus_AFG_quami x = 25 y = 0 offset = { x = -25 y = 0 trigger = { has_game_rule = { rule = obsolete_focus_branches_visibility option = HIDE } has_completed_focus = AFG_support_king_zahir } } mutually_exclusive = { focus = AFG_adopt_nufus } cost = 5 ai_will_do = { factor = 10 } available = { } #allow_branch = { #} search_filters = { FOCUS_FILTER_HISTORICAL FOCUS_FILTER_STABILITY } completion_reward = { add_stability = 0.05 add_command_power = 25 custom_effect_tooltip = generic_skip_one_line_tt custom_effect_tooltip = AFG_quami_intro_tt add_to_variable = { AFG_modifier_army_sub_unit_irregular_infantry_defence_factor = 0.2 tooltip = modifier_army_sub_unit_irregular_infantry_defence_factor_tt } add_to_variable = { AFG_modifier_army_sub_unit_irregular_infantry_speed_factor = 0.1 tooltip = modifier_army_sub_unit_irregular_infantry_speed_factor_tt } custom_effect_tooltip = generic_skip_one_line_tt custom_effect_tooltip = AFG_maintain_quami_tt } } focus = { id = AFG_asymmetric_warfare icon = GFX_focus_ETH_freedom_at_gunpoint prerequisite = { focus = AFG_maintain_quami } x = 0 y = 1 relative_position_id = AFG_maintain_quami cost = 5 ai_will_do = { factor = 10 } available = { } search_filters = { FOCUS_FILTER_INDUSTRY } completion_reward = { custom_effect_tooltip = AFG_quami_intro_tt add_to_variable = { AFG_modifier_army_sub_unit_irregular_infantry_attack_factor = 0.2 tooltip = modifier_army_sub_unit_irregular_infantry_attack_factor_tt } add_to_variable = { AFG_modifier_army_sub_unit_irregular_infantry_max_org_factor = 0.2 tooltip = modifier_army_sub_unit_irregular_infantry_max_org_factor_tt } custom_effect_tooltip = generic_skip_one_line_tt add_doctrine_cost_reduction = { name = AFG_asymmetric_warfare cost_reduction = 0.50 uses = 1 category = land_doctrine } custom_effect_tooltip = generic_skip_one_line_tt ETH_add_random_mil_factory_effect = yes } } focus = { id = AFG_expand_quami_template icon = GFX_focus_generic_manpower prerequisite = { focus = AFG_asymmetric_warfare } x = -2 y = 1 relative_position_id = AFG_asymmetric_warfare cost = 5 ai_will_do = { factor = 10 } available = { } search_filters = { } completion_reward = { custom_effect_tooltip = AFG_quami_intro_tt add_to_variable = { AFG_conscription_factor = 0.1 tooltip = conscription_factor_tt } custom_effect_tooltip = generic_skip_one_line_tt add_units_to_division_template = { template_name = "Pashtun Levy" regiments = { irregular_infantry = 0 irregular_infantry = 1 irregular_infantry = 2 } } IF = { limit = { has_tech = tech_engineers } add_units_to_division_template = { template_name = "Pashtun Levy" support = { engineer = 0 } } } IF = { limit = { has_tech = tech_military_police } add_units_to_division_template = { template_name = "Pashtun Levy" support = { military_police = 0 } } } IF = { limit = { has_tech = tech_field_hospital } add_units_to_division_template = { template_name = "Pashtun Levy" support = { field_hospital = 0 } } } custom_effect_tooltip = AFG_expand_quami_template_tt custom_effect_tooltip = AFG_expand_quami_template_2_tt } } focus = { id = AFG_khyber_pass_riflining icon = GFX_focus_focus_fra_maquis prerequisite = { focus = AFG_asymmetric_warfare } x = 0 y = 1 relative_position_id = AFG_asymmetric_warfare #mutually_exclusive = { focus = AFG_look_to_other_partners } cost = 10 ai_will_do = { factor = 10 } available = { 1006 = { is_owned_and_controlled_by = ROOT } } #allow_branch = { #} search_filters = { FOCUS_FILTER_INDUSTRY } completion_reward = { IF = { limit = { has_dlc = "Arms Against Tyranny" } custom_effect_tooltip = unlock_mio_tt show_mio_tooltip = AFG_khyber_pass_rifling_org mio:AFG_khyber_pass_rifling_org = { add_mio_size = 1 } } custom_effect_tooltip = generic_skip_one_line_tt IF = { limit = { 1006 = { free_building_slots = { building = arms_factory size > 0 include_locked = yes } } } 1006 = { add_extra_state_shared_building_slots = 1 add_building_construction = { type = arms_factory level = 1 instant_build = yes } } } } } focus = { id = AFG_scavenging icon = GFX_focus_AFG_scavenging prerequisite = { focus = AFG_khyber_pass_riflining } x = 0 y = 1 relative_position_id = AFG_khyber_pass_riflining #mutually_exclusive = { focus = AFG_look_to_other_partners } cost = 10 ai_will_do = { factor = 10 } available = { } #allow_branch = { #} search_filters = { } completion_reward = { add_ideas = ETH_scavenging_tactics_idea custom_effect_tooltip = generic_skip_one_line_tt random_army_leader = { limit = { NOT = { has_trait = scavenger } } add_trait = { trait = scavenger } } random_army_leader = { limit = { NOT = { has_trait = scavenger } } add_trait = { trait = scavenger } } } } focus = { id = AFG_militia_cavalry icon = GFX_focus_generic_horse_studs prerequisite = { focus = AFG_khyber_pass_riflining } x = -2 y = 1 relative_position_id = AFG_khyber_pass_riflining #mutually_exclusive = { focus = AFG_look_to_other_partners } cost = 5 ai_will_do = { factor = 10 } available = { } #allow_branch = { #} search_filters = { } completion_reward = { custom_effect_tooltip = AFG_quami_intro_tt add_to_variable = { AFG_modifier_army_sub_unit_cavalry_attack_factor = 0.2 tooltip = cavalry_attack_factor_tt } add_to_variable = { AFG_modifier_army_sub_unit_cavalry_defence_factor = 0.2 tooltip = cavalry_defence_factor_tt} add_to_variable = { AFG_modifier_army_sub_unit_cavalry_speed_factor = 0.15 tooltip = modifier_army_sub_unit_cavalry_speed_factor_tt } custom_effect_tooltip = generic_skip_one_line_tt division_template = { name = "Qatgani Cavalry" division_names_group = AFG_CAV_01 is_locked = no force_allow_recruiting = yes regiments = { cavalry = { x = 0 y = 0 } cavalry = { x = 0 y = 1 } cavalry = { x = 0 y = 2 } cavalry = { x = 1 y = 0 } cavalry = { x = 1 y = 1 } cavalry = { x = 1 y = 2 } } support = { recon = { x = 0 y = 0 } } } random_owned_controlled_state = { create_unit = { division = "division_template = \"Qatgani Cavalry\" start_experience_factor = 0.05 start_equipment_factor = 1" owner = AFG count = 2 } } } } focus = { id = AFG_encourage_jezail_production icon = GFX_goal_generic_small_arms prerequisite = { focus = AFG_scavenging } x = 0 y = 1 relative_position_id = AFG_scavenging cost = 10 ai_will_do = { factor = 10 } available = { } search_filters = { FOCUS_FILTER_INDUSTRY } completion_reward = { add_ideas = AFG_jezail_production custom_effect_tooltip = generic_skip_one_line_tt IF = { limit = { 1008 = { free_building_slots = { building = arms_factory size > 0 include_locked = yes } } } 1008 = { add_extra_state_shared_building_slots = 1 add_building_construction = { type = arms_factory level = 1 instant_build = yes } } } } } focus = { id = AFG_mountain_training icon = GFX_focus_AFG_mountain_training prerequisite = { focus = AFG_khyber_pass_riflining focus = AFG_expand_academy} x = 2 y = 1 relative_position_id = AFG_khyber_pass_riflining #mutually_exclusive = { focus = AFG_look_to_other_partners } cost = 10 ai_will_do = { factor = 10 } available = { } #allow_branch = { #} search_filters = { FOCUS_FILTER_RESEARCH } completion_reward = { IF = { limit = { NOT = { has_tech = mountain_gun } } custom_effect_tooltip = mountain_guns_tt hidden_effect = { set_technology = { mountain_gun = 1 } } custom_effect_tooltip = generic_skip_one_line_tt } IF = { limit = { NOT = { has_tech = tech_mountaineers }} set_technology = { tech_mountaineers = 1 } custom_effect_tooltip = generic_skip_one_line_tt } ELSE_IF = { limit = { NOT = { has_tech = tech_mountaineers2 }} set_technology = { tech_mountaineers2 = 1 } custom_effect_tooltip = generic_skip_one_line_tt } ELSE_IF = { limit = { NOT = { has_tech = tech_mountaineers3 }} set_technology = { tech_mountaineers3 = 1 } custom_effect_tooltip = generic_skip_one_line_tt } IF = { limit = { has_dlc = "Arms Against Tyranny" } add_doctrine_cost_reduction = { name = AFG_mountain_training cost_reduction = 0.25 uses = 1 category = special_forces_doctrine } custom_effect_tooltip = generic_skip_one_line_tt } IF = { limit = { has_dynamic_modifier = { modifier = AFG_quami_modifier } } custom_effect_tooltip = AFG_quami_intro_tt add_to_variable = { AFG_modifier_army_sub_unit_irregular_infantry_defence_factor = 0.2 tooltip = modifier_army_sub_unit_irregular_infantry_defence_factor_tt } add_to_variable = { AFG_modifier_army_sub_unit_irregular_infantry_attack_factor = 0.2 tooltip = modifier_army_sub_unit_irregular_infantry_attack_factor_tt } } } } focus = { id = AFG_mountain_training_2 icon = GFX_focus_SMB_special_forces_option_1 prerequisite = { focus = AFG_mountain_training } x = 0 y = 1 relative_position_id = AFG_mountain_training #mutually_exclusive = { focus = AFG_look_to_other_partners } cost = 10 ai_will_do = { factor = 10 } available = { } #allow_branch = { #} search_filters = { FOCUS_FILTER_RESEARCH } completion_reward = { IF = { limit = { has_dlc = "Arms Against Tyranny" } add_doctrine_cost_reduction = { name = AFG_mountain_training cost_reduction = 0.25 uses = 1 category = special_forces_doctrine } custom_effect_tooltip = generic_skip_one_line_tt } IF = { limit = { has_dynamic_modifier = { modifier = AFG_quami_modifier } } custom_effect_tooltip = AFG_quami_intro_tt } ELSE = { custom_effect_tooltip = AFG_nufus_intro_tt } add_to_variable = { AFG_special_forces_cap = 0.2 tooltip = special_forces_cap_tt } custom_effect_tooltip = generic_skip_one_line_tt division_template = { name = "Kohistani Firqa" division_names_group = AFG_INF_01 force_allow_recruiting = yes regiments = { mountaineers = { x = 0 y = 0 } mountaineers = { x = 0 y = 1 } mountaineers = { x = 0 y = 2 } mountaineers = { x = 1 y = 0 } mountaineers = { x = 1 y = 1 } mountaineers = { x = 1 y = 2 } } support = { engineer = { x = 0 y = 0 } } } random_owned_controlled_state = { create_unit = { division = "division_template = \"Kohistani Firqa\" start_experience_factor = 0.1 start_equipment_factor = 1" owner = AFG count = 3 } } } } focus = { id = AFG_cross_border_ties icon = GFX_focus_generic_provoke_border_clashes prerequisite = { focus = AFG_militia_cavalry } x = -2 y = 1 relative_position_id = AFG_scavenging #mutually_exclusive = { focus = AFG_look_to_other_partners } cost = 5 ai_will_do = { factor = 10 } available = { has_army_manpower = { size > 119000 } } #allow_branch = { #} search_filters = { FOCUS_FILTER_ANNEXATION } completion_reward = { custom_effect_tooltip = AFG_cross_border_ties_tt 442 = { add_claim_by = ROOT } 445 = { add_claim_by = ROOT } 444 = { add_claim_by = ROOT } 988 = { add_claim_by = ROOT } 987 = { add_claim_by = ROOT } } } focus = { id = AFG_adopt_nufus icon = GFX_focus_AFG_adopt_nufus #prerequisite = { focus = } x = 6 y = 0 relative_position_id = AFG_maintain_quami mutually_exclusive = { focus = AFG_maintain_quami } cost = 10 ai_will_do = { factor = 10 } available = { NOT = { has_country_flag = AFG_raise_quami_active } } #allow_branch = { #} search_filters = { FOCUS_FILTER_ARMY_XP } completion_reward = { add_stability = -0.1 army_experience = 15 custom_effect_tooltip = generic_skip_one_line_tt remove_dynamic_modifier = { modifier = AFG_quami_modifier } custom_effect_tooltip = generic_skip_one_line_tt add_dynamic_modifier = { modifier = AFG_nufus_modifier } hidden_effect = { clr_country_flag = AFG_quami_is_active } custom_effect_tooltip = AFG_adopt_nufus_tt custom_effect_tooltip = generic_skip_one_line_tt custom_effect_tooltip = AFG_mohammed_daoud_khan_available_as_general_tt } } focus = { id = AFG_expand_border_guards icon = GFX_focus_AFG_border_guards prerequisite = { focus = AFG_maintain_quami focus = AFG_adopt_nufus } x = 4 y = 1 relative_position_id = AFG_maintain_quami #mutually_exclusive = { focus = AFG_look_to_other_partners } cost = 10 ai_will_do = { factor = 10 } available = { has_tech = tech_support } #allow_branch = { #} search_filters = { FOCUS_FILTER_RESEARCH } completion_reward = { IF = { limit = { NOT = { has_tech = tech_military_police } } set_technology = { tech_military_police = 1 } } division_template = { name = "Border Guards" division_names_group = AFG_INF_01 is_locked = no force_allow_recruiting = yes regiments = { militia = { x = 0 y = 0 } militia = { x = 0 y = 1 } militia = { x = 0 y = 2 } militia = { x = 1 y = 0 } militia = { x = 1 y = 1 } militia = { x = 1 y = 2 } } support = { military_police = { x = 0 y = 0 } } override_model = AFG_infantry_alt_0_entity } random_owned_controlled_state = { create_unit = { division = "division_template = \"Border Guards\" start_experience_factor = 0.05 start_equipment_factor = 1" owner = AFG count = 4 } } } } focus = { id = AFG_approach_foreign_inteligence_services icon = GFX_goal_generic_intelligence_exchange prerequisite = { focus = AFG_expand_border_guards } x = 0 y = 1 relative_position_id = AFG_expand_border_guards allow_branch = { has_dlc = "La Resistance"} #mutually_exclusive = { focus = AFG_look_to_other_partners } cost = 10 ai_will_do = { factor = 10 } available = { } bypass = { has_done_agency_upgrade = upgrade_training_centers } search_filters = { } completion_reward = { IF = { limit = { has_intelligence_agency = no } IF = { limit = { has_government = communism } create_intelligence_agency = { name = "KHAD" icon = GFX_intelligence_agency_logo_AFG_communism } } ELSE_IF = { limit = { has_government = democratic } create_intelligence_agency = { name = "National Directorate of Security" icon = GFX_intelligence_agency_logo_AFG_democratic } } ELSE = { create_intelligence_agency = { name = "Istikhbarat" icon = GFX_intelligence_agency_logo_AFG_neutrality } } } upgrade_intelligence_agency = upgrade_training_centers } } focus = { id = AFG_utilize_cameleers icon = GFX_focus_generic_reinforcing_the_supply_network prerequisite = { focus = AFG_maintain_quami focus = AFG_adopt_nufus } x = 2 y = 1 relative_position_id = AFG_maintain_quami cost = 10 ai_will_do = { factor = 5 } available = { } search_filters = { } completion_reward = { IF = { limit = { has_dynamic_modifier = { modifier = AFG_nufus_modifier } } custom_effect_tooltip = AFG_nufus_intro_tt } ELSE = { custom_effect_tooltip = AFG_quami_intro_tt } add_to_variable = { AFG_army_supply_consumption_factor = -0.05 tooltip = supply_consumption_factor_tt } add_to_variable = { AFG_army_supply_combat_penalties_on_core_factor = -0.15 tooltip = supply_combat_penalties_on_core_factor_tt } } } focus = { id = AFG_establish_camelry_regiments icon = GFX_focus_generic_camel_corps prerequisite = { focus = AFG_utilize_cameleers } x = 0 y = 1 relative_position_id = AFG_utilize_cameleers cost = 5 ai_will_do = { factor = 5 } allow_branch = { has_dlc = "Battle for the Bosporus" } available = { } search_filters = { } completion_reward = { custom_effect_tooltip = TUR_unlock_camelry_effect_tt hidden_effect = { set_technology = { camelry = 1 popup = no } } division_template = { name = "Pashtun Camel Corps" division_names_group = AFG_CAV_01 regiments = { camelry = { x = 0 y = 0 } camelry = { x = 0 y = 1 } camelry = { x = 1 y = 0 } camelry = { x = 1 y = 1 } } } random_owned_controlled_state = { create_unit = { division = "division_template = \"Pashtun Camel Corps\" start_experience_factor = 0.05 start_equipment_factor = 1" owner = AFG count = 3 } } } } focus = { id = AFG_new_army icon = GFX_focus_chi_army_reform prerequisite = { focus = AFG_adopt_nufus } x = 0 y = 1 relative_position_id = AFG_adopt_nufus cost = 10 ai_will_do = { factor = 10 } available = { } search_filters = { FOCUS_FILTER_INDUSTRY } completion_reward = { custom_effect_tooltip = AFG_nufus_intro_tt add_to_variable = { AFG_army_defence_factor = 0.05 tooltip = army_defence_factor_tt } add_to_variable = { AFG_army_attack_factor = 0.05 tooltip = army_attack_factor_tt } add_to_variable = { AFG_planning_speed = 0.05 tooltip = planning_speed_factor_tt } IF = { limit = { has_dlc = "Arms Against Tyranny" } custom_effect_tooltip = unlock_mio_tt show_mio_tooltip = AFG_infantry_organization mio:AFG_infantry_organization = { add_mio_size = 1 } } ETH_add_random_mil_factory_effect = yes } } focus = { id = AFG_officialize_the_turkish_afghan_defense_treaty icon = GFX_focus_generic_befriend_turkey prerequisite = { focus = AFG_adopt_nufus } x = 2 y = 1 relative_position_id = AFG_adopt_nufus cost = 5 ai_will_do = { factor = 10 } available = { has_idea = AFG_turkish_military_mission TUR = { exists = yes is_subject = no has_government = ROOT NOT = { has_war_with = ROOT } } } search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_INDUSTRY } completion_reward = { TUR = { country_event = { id = AFG_political_events.150 hours = 24 random_hours = 12 } } custom_effect_tooltip = if_they_accept_tt effect_tooltip = { give_guarantee = TUR TUR = { give_guarantee = ROOT } random_core_state = { limit = { is_owned_and_controlled_by = ROOT free_building_slots = { building = arms_factory size > 0 include_locked = yes } } add_extra_state_shared_building_slots = 1 add_building_construction = { type = arms_factory level = 1 instant_build = yes } } TUR = { random_core_state = { limit = { is_owned_and_controlled_by = TUR free_building_slots = { building = arms_factory size > 0 include_locked = yes } } add_extra_state_shared_building_slots = 1 add_building_construction = { type = arms_factory level = 1 instant_build = yes } } } } } } focus = { id = AFG_establish_naval_bases icon = GFX_focus_POL_develop_polish_shipbuilding prerequisite = { focus = AFG_adopt_nufus } x = 5 y = 1 relative_position_id = AFG_adopt_nufus #mutually_exclusive = { focus = AFG_maintain_quami } cost = 10 ai_will_do = { factor = 10 } available = { any_owned_state = { is_controlled_by = ROOT is_coastal = yes } } #allow_branch = { #} search_filters = { FOCUS_FILTER_NAVY_XP } completion_reward = { random_owned_controlled_state = { limit = { is_coastal = yes free_building_slots = { building = dockyard size > 1 include_locked = yes } } set_state_flag = SMB_expanded_naval_bases IF = { limit = { naval_base < 8 } add_building_construction = { type = naval_base level = 1 instant_build = yes province = { all_provinces = yes limit_to_coastal = yes } } } } navy_experience = 20 } } #focus = { # id = AFG_standardize_equipment # icon = GFX_focus_PLACEHOLDER # prerequisite = { focus = AFG_new_army } # x = 0 # y = 1 # relative_position_id = AFG_new_army # #mutually_exclusive = { focus = AFG_maintain_quami } # cost = 5 # ai_will_do = { # factor = 10 # } # available = { # } # #allow_branch = { # #} # search_filters = { } # completion_reward = { # custom_effect_tooltip = "TODO_ASD: Event chain/decisions for working with another country for equipment" # } #} focus = { id = AFG_expand_academy icon = GFX_focus_generic_military_academy prerequisite = { focus = AFG_new_army } x = 0 y = 1 relative_position_id = AFG_new_army cost = 10 ai_will_do = { factor = 10 } available = { } search_filters = { FOCUS_FILTER_MILITARY_CHARACTER } completion_reward = { hidden_effect = { random_character = { limit = { OR = { is_character = AFG_generic_army_1 is_character = AFG_generic_army_2 is_character = AFG_generic_army_3 is_character = AFG_generic_army_4 } NOT = { has_character_flag = AFG_random_general_selected } } set_character_flag = AFG_random_general_selected } random_character = { limit = { OR = { is_character = AFG_generic_army_1 is_character = AFG_generic_army_2 is_character = AFG_generic_army_3 is_character = AFG_generic_army_4 } NOT = { has_character_flag = AFG_random_general_selected } } set_character_flag = AFG_random_general_selected } } custom_effect_tooltip = AFG_expand_academy_tt custom_effect_tooltip = AFG_nufus_intro_tt add_to_variable = { AFG_max_planning_factor = 0.1 tooltip = max_planning_factor_tt } add_to_variable = { AFG_training_time_factor = -0.1 tooltip = training_time_factor_tt } } } focus = { id = AFG_purchase_tanks icon = GFX_goal_generic_army_tanks prerequisite = { focus = AFG_expand_academy } x = -2 y = 1 relative_position_id = AFG_expand_academy cost = 10 ai_will_do = { factor = 10 } available = { } search_filters = { FOCUS_FILTER_INTERNATIONAL_TRADE } completion_reward = { IF = { limit = { has_dlc = "Arms Against Tyranny" } add_equipment_subsidy = { cic = 500 equipment_type = light_tank_chassis seller_tags = { USA JAP ENG FRA ITA GER SOV } } custom_effect_tooltip = generic_skip_one_line_tt } IF = { limit = { NOT = { has_idea = JUNO_license_idea } } add_ideas = JUNO_license_idea custom_effect_tooltip = generic_skip_one_line_tt } IF = { limit = { has_dlc = "No Step Back" } add_equipment_to_stockpile = { type = light_tank_chassis_1 amount = 50 producer = GER } add_equipment_to_stockpile = { type = light_tank_chassis_1 amount = 50 producer = ENG } add_equipment_to_stockpile = { type = light_tank_chassis_1 amount = 50 producer = SOV } add_equipment_to_stockpile = { type = light_tank_chassis_1 amount = 50 producer = FRA } } ELSE = { add_equipment_to_stockpile = { type = light_tank_equipment_1 amount = 200 producer = GER } } } } focus = { id = AFG_purchase_aircraft icon = GFX_goal_generic_air_fighter prerequisite = { focus = AFG_expand_academy } x = 2 y = 1 relative_position_id = AFG_expand_academy cost = 10 ai_will_do = { factor = 10 } available = { } search_filters = { FOCUS_FILTER_INTERNATIONAL_TRADE } completion_reward = { IF = { limit = { has_dlc = "Arms Against Tyranny" } add_equipment_subsidy = { cic = 500 equipment_type = small_plane_airframe seller_tags = { USA JAP ENG FRA ITA GER SOV } } custom_effect_tooltip = generic_skip_one_line_tt } ELSE = { custom_effect_tooltip = SMB_purchase_aircraft_tt custom_effect_tooltip = generic_skip_one_line_tt } IF = { limit = { has_dlc = "By Blood Alone" } add_equipment_to_stockpile = { type = small_plane_airframe_0 amount = 25 producer = ENG } add_equipment_to_stockpile = { type = small_plane_airframe_1 amount = 25 producer = GER } } ELSE = { add_equipment_to_stockpile = { type = fighter_equipment_1 amount = 25 producer = ENG } add_equipment_to_stockpile = { type = fighter_equipment_1 amount = 25 producer = GER } } } } focus = { id = AFG_foreign_military_advisors icon = GFX_focus_generic_military_mission prerequisite = { focus = AFG_expand_academy } x = 0 y = 1 relative_position_id = AFG_expand_academy cost = 10 ai_will_do = { factor = 10 } available = { } search_filters = { FOCUS_FILTER_MILITARY_CHARACTER } completion_reward = { custom_effect_tooltip = AFG_nufus_intro_tt add_to_variable = { AFG_experience_gain_army_factor = 0.1 tooltip = experience_gain_army_factor_tt } custom_effect_tooltip = generic_skip_one_line_tt add_timed_idea = { idea = AFG_foreign_advisors_present days = 365 } } } focus = { id = AFG_expand_standing_army icon = GFX_focus_generic_advanced_military_studies prerequisite = { focus = AFG_foreign_military_advisors } x = 0 y = 1 relative_position_id = AFG_foreign_military_advisors cost = 10 ai_will_do = { factor = 10 } available = { } search_filters = { FOCUS_FILTER_MANPOWER } completion_reward = { custom_effect_tooltip = AFG_nufus_intro_tt add_to_variable = { AFG_conscription_factor = 0.05 tooltip = conscription_factor_tt } add_to_variable = { AFG_conscription = 0.01 tooltip = conscription_tt } } } focus = { id = AFG_expand_equipment_purchases icon = GFX_focus_SWE_let_fly_all_guns prerequisite = { focus = AFG_purchase_tanks } x = 0 y = 1 relative_position_id = AFG_purchase_tanks #mutually_exclusive = { focus = AFG_maintain_quami } cost = 10 ai_will_do = { factor = 10 } available = { } #allow_branch = { #} search_filters = { FOCUS_FILTER_INTERNATIONAL_TRADE } completion_reward = { IF = { limit = { has_dlc = "Arms Against Tyranny" } add_equipment_subsidy = { cic = 500 equipment_type = infantry_equipment seller_tags = { ENG FRA GER ITA SOV JAP USA } } add_equipment_subsidy = { cic = 500 equipment_type = artillery_equipment seller_tags = { ENG FRA GER ITA SOV JAP USA } } custom_effect_tooltip = generic_skip_one_line_tt add_equipment_to_stockpile = { type = artillery_equipment amount = 300 producer = AFG } add_equipment_to_stockpile = { type = infantry_equipment amount = 500 producer = ITA } } ELSE = { add_equipment_to_stockpile = { type = infantry_equipment amount = 1000 producer = AFG } add_equipment_to_stockpile = { type = artillery_equipment amount = 300 producer = AFG } } } } focus = { id = AFG_increase_air_purchases icon = GFX_goal_generic_air_bomber prerequisite = { focus = AFG_purchase_aircraft } x = 0 y = 1 relative_position_id = AFG_purchase_aircraft #mutually_exclusive = { focus = AFG_maintain_quami } cost = 10 ai_will_do = { factor = 10 } available = { } allow_branch = { has_dlc = "Arms Against Tyranny" } search_filters = { FOCUS_FILTER_INTERNATIONAL_TRADE } completion_reward = { IF = { limit = { has_dlc = "Arms Against Tyranny" } add_equipment_subsidy = { cic = 500 equipment_type = small_plane_airframe seller_tags = { USA JAP ENG FRA ITA GER SOV } } add_equipment_subsidy = { cic = 500 equipment_type = large_plane_airframe seller_tags = { USA JAP ENG FRA ITA GER SOV } } add_equipment_subsidy = { cic = 500 equipment_type = medium_plane_airframe seller_tags = { USA JAP ENG FRA ITA GER SOV } } custom_effect_tooltip = generic_skip_one_line_tt } IF = { limit = { has_dlc = "By Blood Alone" } add_equipment_to_stockpile = { type = small_plane_airframe_1 amount = 25 producer = ENG } add_equipment_to_stockpile = { type = small_plane_airframe_1 amount = 25 producer = GER } } ELSE = { add_equipment_to_stockpile = { type = fighter_equipment_1 amount = 25 producer = ENG } add_equipment_to_stockpile = { type = fighter_equipment_1 amount = 25 producer = GER } } } } focus = { id = AFG_prussians_of_the_orient icon = GFX_focus_GER_prussian_legacy prerequisite = { focus = AFG_expand_standing_army } prerequisite = { focus = AFG_increase_air_purchases } prerequisite = { focus = AFG_expand_equipment_purchases } x = 0 y = 1 relative_position_id = AFG_expand_standing_army cost = 10 ai_will_do = { factor = 10 } available = { } search_filters = { } completion_reward = { custom_effect_tooltip = AFG_nufus_intro_tt add_to_variable = { AFG_army_org_factor = 0.1 tooltip = army_org_factor_tt } add_to_variable = { AFG_army_defence_factor = 0.1 tooltip = army_defence_factor_tt } add_to_variable = { AFG_army_attack_factor = 0.1 tooltip = army_attack_factor_tt } } } focus = { id = AFG_naval_academy icon = GFX_goal_generic_navy_doctrines_tactics prerequisite = { focus = AFG_establish_naval_bases } x = -1 y = 1 relative_position_id = AFG_establish_naval_bases #mutually_exclusive = { focus = AFG_maintain_quami } cost = 5 ai_will_do = { factor = 10 } available = { naval_base > 0 } #allow_branch = { #} search_filters = { FOCUS_FILTER_NAVY_XP FOCUS_FILTER_MILITARY_CHARACTER } completion_reward = { custom_effect_tooltip = AFG_naval_academy_tt navy_experience = 20 AFG_generic_navy_1 = { set_character_flag = AFG_random_admiral_selected } AFG_generic_navy_2 = { set_character_flag = AFG_random_admiral_selected } } } #focus = { # id = AFG_joint_training_exercises # icon = GFX_focus_PLACEHOLDER # prerequisite = { focus = AFG_naval_academy } # x = 0 # y = 1 # relative_position_id = AFG_naval_academy # #mutually_exclusive = { focus = AFG_maintain_quami } # cost = 5 # ai_will_do = { # factor = 10 # } # available = { # } # #allow_branch = { # #} # search_filters = { } # completion_reward = { # } #} focus = { id = AFG_shipyards icon = GFX_goal_generic_construct_naval_dockyard prerequisite = { focus = AFG_establish_naval_bases } x = 1 y = 1 relative_position_id = AFG_establish_naval_bases #mutually_exclusive = { focus = AFG_maintain_quami } cost = 10 ai_will_do = { factor = 10 } available = { naval_base > 0 } #allow_branch = { #} search_filters = { FOCUS_FILTER_INDUSTRY } completion_reward = { effect_tooltip = { IF = { limit = { NOT = { any_controlled_state = { is_coastal = yes } } } custom_effect_tooltip = AFG_shipyards_tt } } random_owned_controlled_state = { limit = { is_coastal = yes free_building_slots = { building = dockyard size > 1 include_locked = yes } } set_state_flag = SMB_expanded_naval_bases IF = { limit = { dockyard < 8 } add_extra_state_shared_building_slots = 1 add_building_construction = { type = dockyard level = 1 instant_build = yes } } } IF = { limit = { has_dlc = "Arms Against Tyranny" } custom_effect_tooltip = AFG_shipyards_tt_2 show_mio_tooltip = AFG_naval_organization mio:AFG_naval_organization = { add_mio_size = 1 } } } } focus = { id = AFG_research_bonus_1 icon = GFX_focus_generic_destroyer prerequisite = { focus = AFG_shipyards } prerequisite = { focus = AFG_naval_academy } x = -2 y = 1 relative_position_id = AFG_shipyards mutually_exclusive = { focus = AFG_purchase_destroyers } cost = 10 ai_will_do = { factor = 10 } available = { dockyard > 0 } #allow_branch = { #} search_filters = { FOCUS_FILTER_RESEARCH } completion_reward = { add_tech_bonus = { name = AFG_research_bonus_1 bonus = 1.0 uses = 2 category = ca_tech category = dd_tech } } } focus = { id = AFG_purchase_destroyers icon = GFX_focus_SWE_italian_destroyers prerequisite = { focus = AFG_shipyards } prerequisite = { focus = AFG_naval_academy } x = 0 y = 1 relative_position_id = AFG_shipyards mutually_exclusive = { focus = AFG_research_bonus_1 } cost = 5 ai_will_do = { factor = 10 } available = { naval_base > 0 } #allow_branch = { #} search_filters = { FOCUS_FILTER_INTERNATIONAL_TRADE } completion_reward = { custom_effect_tooltip = ETH_purchase_obsolete_ships_tt set_country_flag = generic_purchase_old_ships_flag } } #focus = { # id = AFG_repairs # icon = GFX_focus_PLACEHOLDER # prerequisite = { focus = AFG_shipyards } # x = -3 # y = 1 # relative_position_id = AFG_shipyards # #mutually_exclusive = { focus = AFG_maintain_quami } # cost = 5 # ai_will_do = { # factor = 10 # } # available = { # naval_base > 0 # } # #allow_branch = { # #} # search_filters = { } # completion_reward = { # } #} focus = { id = AFG_research_bonus_2 icon = GFX_focus_generic_navy_battleship2 prerequisite = { focus = AFG_research_bonus_1 } x = 0 y = 1 relative_position_id = AFG_research_bonus_1 #mutually_exclusive = { focus = AFG_purchase_capital_ships } cost = 10 ai_will_do = { factor = 10 } available = { dockyard > 0 } #allow_branch = { #} search_filters = { FOCUS_FILTER_RESEARCH } completion_reward = { add_tech_bonus = { name = AFG_research_bonus_2 bonus = 1.0 uses = 2 category = ca_tech category = bb_tech } } } focus = { id = AFG_purchase_capital_ships icon = GFX_goal_generic_navy_battleship prerequisite = { focus = AFG_purchase_destroyers } x = 0 y = 1 relative_position_id = AFG_purchase_destroyers #mutually_exclusive = { focus = AFG_research_bonus_2 } cost = 5 ai_will_do = { factor = 10 } available = { naval_base > 0 } #allow_branch = { #} search_filters = { FOCUS_FILTER_INTERNATIONAL_TRADE } completion_reward = { custom_effect_tooltip = AFG_purchase_capital_ships_tt set_country_flag = generic_purchase_dreadnoughts_flag } } focus = { id = AFG_against_kabul icon = GFX_focus_AFG_against_kabul #prerequisite = { focus = } x = 6 y = 0 #relative_position_id = AFG_expand_telegraph_network mutually_exclusive = { focus = AFG_support_king_zahir } allow_branch = { IF = { limit = { has_game_rule = { rule = obsolete_focus_branches_visibility option = HIDE } } NOT = { has_completed_focus = AFG_support_king_zahir } } } cost = 5 ai_will_do = { factor = 10 } available = { has_government = neutrality } #allow_branch = { #} search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_POLITICAL_CHARACTER } completion_reward = { add_popularity = { ideology = fascism popularity = 0.1 } add_political_power = 100 custom_effect_tooltip = generic_skip_one_line_tt swap_ideas = { remove_idea = AFG_mohammad_zahir_shah_ns add_idea = AFG_mohammad_zahir_shah_ns_negative } hidden_effect = { IF = { limit = { has_game_rule = { rule = obsolete_focus_branches_visibility option = HIDE } } mark_focus_tree_layout_dirty = yes } } } } focus = { id = AFG_contact_amanullah_loyalists icon = GFX_focus_AFG_contact_amanullah_loyalists_alt prerequisite = { focus = AFG_against_kabul } x = -6 y = 1 relative_position_id = AFG_against_kabul mutually_exclusive = { focus = AFG_remember_the_khost_rebellion } cost = 5 ai_will_do = { factor = 10 } available = { } #allow_branch = { #} search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_POLITICAL_CHARACTER } completion_reward = { add_dynamic_modifier = { modifier = AFG_amanullah_insurection_modifier } custom_effect_tooltip = generic_skip_one_line_tt add_political_power = 50 custom_effect_tooltip = generic_skip_one_line_tt custom_effect_tooltip = AFG_promote_the_counter_elite_tt show_ideas_tooltip = AFG_placeholder_fascist } } focus = { id = AFG_remember_the_khost_rebellion icon = GFX_focus_PER_recruit_bakhtiari prerequisite = { focus = AFG_against_kabul } x = 6 y = 1 relative_position_id = AFG_against_kabul mutually_exclusive = { focus = AFG_contact_amanullah_loyalists } cost = 5 ai_will_do = { factor = 10 } available = { } #allow_branch = { #} search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_WAR_SUPPORT } completion_reward = { add_dynamic_modifier = { modifier = AFG_look_to_the_past_modifier } } } focus = { id = AFG_secure_army_support icon = GFX_focus_AFG_contact_amanullah_loyalists #GFX_focus_generic_military_mission prerequisite = { focus = AFG_contact_amanullah_loyalists } x = 0 y = 1 relative_position_id = AFG_contact_amanullah_loyalists #mutually_exclusive = { focus = focus = } cost = 10 ai_will_do = { factor = 10 } available = { has_civil_war = no NOT = { has_country_flag = AFG_fascist_cw_is_over } } #allow_branch = { #} search_filters = { FOCUS_FILTER_POLITICAL } completion_reward = { custom_effect_tooltip = AFG_secure_army_support_tt custom_effect_tooltip = generic_skip_one_line_tt custom_effect_tooltip = AFG_modifiy_amanullah_insurrection_modifier_tt add_to_variable = { AFG_amanullah_modifier_fascism_drift = 0.05 tooltip = fascism_drift_tt } add_to_variable = { AFG_amanullah_modifier_core_defense_factor = 0.1 tooltip = army_core_defence_factor_tt } add_to_variable = { AFG_amanullah_modifier_core_attack_factor = 0.05 tooltip = army_core_attack_factor_tt } custom_effect_tooltip = generic_skip_one_line_tt add_political_power = 100 } } focus = { id = AFG_contact_rural_loyalists icon = GFX_focus_AFG_contact_rural_loyalists prerequisite = { focus = AFG_contact_amanullah_loyalists focus = AFG_remember_the_khost_rebellion } x = 6 y = 1 relative_position_id = AFG_contact_amanullah_loyalists #mutually_exclusive = { focus = focus = } cost = 10 ai_will_do = { factor = 10 } available = { NOT = { has_completed_focus = AFG_return_of_the_emir has_completed_focus = AFG_the_faqirs_revolt } } #allow_branch = { #} search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_WAR_SUPPORT } completion_reward = { custom_effect_tooltip = AFG_contact_rural_loyalists_tt custom_effect_tooltip = generic_skip_one_line_tt IF = { limit = { has_completed_focus = AFG_contact_amanullah_loyalists } custom_effect_tooltip = AFG_modifiy_amanullah_insurrection_modifier_tt add_to_variable = { AFG_amanullah_modifier_fascism_drift = 0.05 tooltip = fascism_drift_tt } } ELSE = { custom_effect_tooltip = AFG_modifiy_look_to_the_past_modifier_tt add_to_variable = { AFG_look_to_the_past_modifier_war_support_factor = 0.05 tooltip = war_support_factor_tt } } custom_effect_tooltip = generic_skip_one_line_tt add_political_power = 100 } } focus = { id = AFG_hold_a_loya_jirga icon = GFX_focus_ETH_re-convene_the_parliament prerequisite = { focus = AFG_contact_rural_loyalists } x = 0 y = 1 relative_position_id = AFG_contact_rural_loyalists cost = 5 ai_will_do = { factor = 10 } available = { NOT = { has_completed_focus = AFG_return_of_the_emir has_completed_focus = AFG_the_faqirs_revolt } } search_filters = { } completion_reward = { custom_effect_tooltip = AFG_hold_a_loya_jirga_tt show_ideas_tooltip = AFG_low_legitimacy_debuff } } focus = { id = AFG_request_german_support icon = GFX_focus_ger_oppose_hitler prerequisite = { focus = AFG_contact_amanullah_loyalists focus = AFG_remember_the_khost_rebellion } x = 3 y = 1 relative_position_id = AFG_contact_amanullah_loyalists #mutually_exclusive = { focus = focus = } cost = 5 ai_will_do = { factor = 10 } available = { NOT = { has_completed_focus = AFG_return_of_the_emir has_completed_focus = AFG_the_faqirs_revolt } GER = { exists = yes NOT = { has_war_with = ROOT } } } search_filters = { FOCUS_FILTER_POLITICAL } completion_reward = { #GER = { ## custom_effect_tooltip = AFG_ideology_on_the_rise_tt #} #custom_effect_tooltip = "TODO_ASD: Add fascism support, also allow Germany to send volunteers in CW. Gain some equipment when CW starts" IF = { limit = { has_completed_focus = AFG_remember_the_khost_rebellion } GER = { country_event = { id = AFG_political_events.158 hours = 1 } } } ELSE = { GER = { country_event = { id = AFG_political_events.51 hours = 1 } } } custom_effect_tooltip = AFG_request_german_support_tt } } focus = { id = AFG_invite_waziristan_rebels icon = GFX_focus_generic_befriend_waziristan prerequisite = { focus = AFG_remember_the_khost_rebellion } x = -1 y = 1 relative_position_id = AFG_remember_the_khost_rebellion cost = 10 ai_will_do = { factor = 10 } available = { } search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_MANPOWER } completion_reward = { add_stability = -0.05 add_political_power = 50 custom_effect_tooltip = generic_skip_one_line_tt 987 = { add_claim_by = ROOT } 442 = { add_claim_by = ROOT } custom_effect_tooltip = generic_skip_one_line_tt custom_effect_tooltip = AFG_invite_waziristan_rebels_tt } } focus = { id = AFG_stir_unrest_in_the_east icon = GFX_focus_PER_stage_mass_protests prerequisite = { focus = AFG_remember_the_khost_rebellion } x = 1 y = 1 relative_position_id = AFG_remember_the_khost_rebellion cost = 10 ai_will_do = { factor = 10 } available = { } search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_WAR_SUPPORT } completion_reward = { custom_effect_tooltip = RAJ_stir_unrest_in_the_north_focus_tt custom_effect_tooltip = AFG_eastern_state_breakaway_tt hidden_effect = { 1006 = { set_state_flag = has_stirred_unrest } 1008 = { set_state_flag = has_stirred_unrest } } custom_effect_tooltip = generic_skip_one_line_tt add_war_support = 0.05 custom_effect_tooltip = generic_skip_one_line_tt IF = { limit = { 1006 = { is_controlled_by = ROOT } } 1006 = { add_extra_state_shared_building_slots = 1 add_building_construction = { type = arms_factory level = 1 instant_build = yes } } } } } focus = { id = AFG_the_faqirs_revolt icon = GFX_focus_generic_attack_afghanistan prerequisite = { focus = AFG_stir_unrest_in_the_east } prerequisite = { focus = AFG_invite_waziristan_rebels } x = -1 y = 1 relative_position_id = AFG_stir_unrest_in_the_east cost = 10 ai_will_do = { factor = 10 } available = { is_subject = no has_civil_war = no } search_filters = { FOCUS_FILTER_POLITICAL } completion_reward = { hidden_effect = { division_template = { name = "Pashtun Militia" is_locked = no regiments = { militia = { x = 0 y = 0 } militia = { x = 0 y = 1 } militia = { x = 1 y = 0 } militia = { x = 1 y = 1 } } } set_country_flag = AFG_mughal_civil_war } ## Country setup ## set_variable = { var = AFG_total_anti_traditionalist_size #used to calculate how big portion of the army that is NOT supporting the communists value = party_popularity@democratic #democratic support } add_to_variable = { var = AFG_total_anti_traditionalist_size value = party_popularity@communism #adds fascist support to variable } add_to_variable = { var = AFG_total_anti_traditionalist_size value = party_popularity@neutrality #adds non-aligned support to variable } start_civil_war = { ruling_party = neutrality # us ideology = neutrality #SPLITTING TAG size = AFG.AFG_total_anti_traditionalist_size states = { 267 1007 1005 415 } save_global_event_target_as = AFG_ai_rebel_side keep_all_characters = yes hidden_effect = { PREV = { # Original country AFG_mohammad_hashim_khan = { # Character set_nationality = PREV.PREV # Transfers to breakaway } AFG_mohammed_zahir_shah = { # Character set_nationality = PREV.PREV # Transfers to breakaway } AFG_sardar_shah_wali_khan = { # Character set_nationality = PREV.PREV # Transfers to breakaway } AFG_mohammed_daoud_khan = { # Character set_nationality = PREV.PREV # Transfers to breakaway } AFG_shah_mahmud_khan = { # Character set_nationality = PREV.PREV # Transfers to breakaway } } IF = { limit = { PREV.PREV = { NOT = { has_country_leader = { ruling_only = yes character = AFG_mohammad_hashim_khan } } has_civil_war = yes } } PREV.PREV = { promote_character = { character = AFG_mohammad_hashim_khan ideology = oligarchism } } } } IF = { limit = { PREV = { has_completed_focus = AFG_hold_a_loya_jirga } } PREV.PREV = { add_timed_idea = { idea = AFG_low_legitimacy_debuff days = 180 } } } } event_target:AFG_ai_rebel_side = { hidden_effect = { set_country_flag = AFG_mughal_civil_war division_template = { name = "Pashtun Militia" is_locked = no regiments = { militia = { x = 0 y = 0 } militia = { x = 0 y = 1 } militia = { x = 1 y = 0 } militia = { x = 1 y = 1 } } } random_owned_controlled_state = { create_unit = { division = "division_template =\"Pashtun Militia\" start_experience_factor = 0.2 start_equipment_factor = 1.0" owner = PREV count = 3 } } random_owned_controlled_state = { create_unit = { division = "division_template =\"Pashtun Militia\" start_experience_factor = 0.2 start_equipment_factor = 1.0" owner = PREV count = 3 } } } } hidden_effect = { random_owned_controlled_state = { create_unit = { division = "division_template =\"Pashtun Militia\" start_experience_factor = 0.2 start_equipment_factor = 1.0" owner = ROOT count = 3 } create_unit = { division = "division_template =\"Pashtun Militia\" start_experience_factor = 0.2 start_equipment_factor = 1.0" owner = ROOT count = 2 } } IF = { limit = { has_idea = AFG_turkish_military_mission } remove_ideas = AFG_turkish_military_mission } IF = { limit = { has_idea = AFG_mohammad_zahir_shah_ns } remove_ideas = AFG_mohammad_zahir_shah_ns } IF = { limit = { has_idea = AFG_mohammad_zahir_shah_ns_upgrade_1 } remove_ideas = AFG_mohammad_zahir_shah_ns_upgrade_1 } IF = { limit = { has_idea = AFG_mohammad_zahir_shah_ns_negative } remove_ideas = AFG_mohammad_zahir_shah_ns_negative } AFG_faqir_of_ipi = { set_character_flag = AFG_rural_cw_started } AFG_mazrak_zadran = { set_character_flag = AFG_rural_cw_started } } custom_effect_tooltip = generic_skip_one_line_tt add_manpower = 10000 custom_effect_tooltip = generic_skip_one_line_tt set_party_name = { ideology = neutrality name = AFG_rebel_party long_name = AFG_rebel_party_long } AFG_faqir_of_ipi = { add_country_leader_role = { promote_leader = yes country_leader = { ideology = despotism expire = "1965.1.1.1" traits = { AFG_the_golden_emir } } } } set_cosmetic_tag = AFG_tribal_rebels_tag IF = { limit = { has_country_flag = AFG_germany_will_aid_rebels } custom_effect_tooltip = generic_skip_one_line_tt country_event = { id = AFG_political_events.54 days = 1 } } IF = { limit = { has_country_flag = AFG_japan_will_aid_rebels } custom_effect_tooltip = generic_skip_one_line_tt country_event = { id = AFG_political_events.156 days = 2 } } IF = { limit = { has_completed_focus = AFG_contact_rural_loyalists } random_owned_controlled_state = { create_unit = { division = "division_template =\"Pashtun Militia\" start_experience_factor = 0.2 start_equipment_factor = 1.0" owner = ROOT count = 5 } } } } } focus = { id = AFG_request_japanese_support icon = GFX_focus_PER_fascist_reach_out_to_japan prerequisite = { focus = AFG_remember_the_khost_rebellion } x = -3 y = 1 relative_position_id = AFG_remember_the_khost_rebellion cost = 5 ai_will_do = { factor = 10 } available = { NOT = { has_completed_focus = AFG_the_faqirs_revolt } JAP = { exists = yes NOT = { has_war_with = ROOT } } } search_filters = { FOCUS_FILTER_POLITICAL } completion_reward = { JAP = { country_event = { id = AFG_political_events.153 hours = 6 } } custom_effect_tooltip = AFG_request_japanese_support_tt } } focus = { id = AFG_crown_the_golden_emir icon = GFX_focus_AFG_shadows_of_the_king prerequisite = { focus = AFG_the_faqirs_revolt } mutually_exclusive = { focus = AFG_crown_the_bukharan_emir focus = AFG_invite_the_mughal_prince } x = -4 y = 2 relative_position_id = AFG_the_faqirs_revolt cost = 5 ai_will_do = { factor = 10 } available = { has_civil_war = no is_subject = no OR = { has_government = neutrality has_government = fascism } } search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_POLITICAL_CHARACTER } completion_reward = { set_politics = { ruling_party = fascism elections_allowed = yes long_name = AFG_rebel_party_long name = AFG_rebel_party } add_popularity = { ideology = fascism popularity = 0.5 } set_party_name = { ideology = democratic long_name = AFG_fascism_party_long name = AFG_fascism_party } AFG_amunullah_khan = { add_country_leader_role = { promote_leader = yes country_leader = { ideology = conservatism expire = "1965.1.1.1" traits = { AFG_authoritarian_modifier } } } } #custom_effect_tooltip = generic_skip_one_line_tt AFG_faqir_of_ipi = { add_country_leader_role = { promote_leader = yes country_leader = { ideology = fascism_ideology expire = "1965.1.1.1" traits = { AFG_the_golden_emir } } } } #custom_effect_tooltip = generic_skip_one_line_tt drop_cosmetic_tag = yes set_cosmetic_tag = AFG_wazir_caliphate custom_effect_tooltip = generic_skip_one_line_tt add_political_power = 100 remove_dynamic_modifier = { modifier = AFG_look_to_the_past_modifier } } } focus = { id = AFG_crown_the_bukharan_emir icon = GFX_focus_SOV_bukharan_republic prerequisite = { focus = AFG_the_faqirs_revolt } mutually_exclusive = { focus = AFG_crown_the_golden_emir focus = AFG_invite_the_mughal_prince } x = 0 y = 2 relative_position_id = AFG_the_faqirs_revolt cost = 5 ai_will_do = { factor = 10 } available = { has_civil_war = no is_subject = no has_government = neutrality } search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_POLITICAL_CHARACTER } completion_reward = { drop_cosmetic_tag = yes set_cosmetic_tag = AFG_BUK_emirate custom_effect_tooltip = generic_skip_one_line_tt BUK = { BUK_mohammed_alim_khan = { set_nationality = ROOT } } set_party_name = { ideology = neutrality name = AFG_manghud_party long_name = AFG_manghud_party_long } custom_effect_tooltip = generic_skip_one_line_tt country_event = { id = AFG_political_events.171 } custom_effect_tooltip = generic_skip_one_line_tt add_political_power = 100 remove_dynamic_modifier = { modifier = AFG_look_to_the_past_modifier } } } focus = { id = AFG_invite_the_mughal_prince icon = GFX_focus_RAJ_peacock_throne_for_the_modern_age prerequisite = { focus = AFG_the_faqirs_revolt } mutually_exclusive = { focus = AFG_crown_the_golden_emir focus = AFG_crown_the_bukharan_emir } x = 4 y = 2 relative_position_id = AFG_the_faqirs_revolt cost = 5 ai_will_do = { factor = 10 } available = { has_civil_war = no RAJ = { NOT = { has_completed_focus = RAJ_look_to_the_past } } is_subject = no has_government = neutrality } search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_POLITICAL_CHARACTER } completion_reward = { drop_cosmetic_tag = yes set_cosmetic_tag = AFG_mughal_emirate custom_effect_tooltip = generic_skip_one_line_tt RAJ = { RAJ_mirza_khurshid_jah_bahadur = { set_nationality = ROOT } } set_party_name = { ideology = neutrality name = AFG_mughal_party long_name = AFG_mughal_party_long } custom_effect_tooltip = generic_skip_one_line_tt country_event = { id = AFG_political_events.170 } custom_effect_tooltip = generic_skip_one_line_tt add_political_power = 100 remove_dynamic_modifier = { modifier = AFG_look_to_the_past_modifier } } } focus = { id = AFG_unify_the_islamic_world icon = GFX_focus_generic_islamic_propaganda prerequisite = { focus = AFG_the_faqirs_revolt } mutually_exclusive = { focus = AFG_extend_a_hand_to_tokyo } x = 1 y = 1 relative_position_id = AFG_the_faqirs_revolt cost = 10 ai_will_do = { factor = 10 } available = { has_civil_war = no is_subject = no is_in_faction = no } search_filters = { FOCUS_FILTER_POLITICAL } completion_reward = { IF = { limit = { has_dlc = "No Compromise, No Surrender" } set_rule = { can_create_factions = yes } create_faction_from_template = faction_template_AFG_united_islamic_world_faction add_faction_initiative = 1 } ELSE = { set_rule = { can_create_factions = yes } create_faction = AFG_united_islamic_world_faction } custom_effect_tooltip = generic_skip_one_line_tt every_country = { limit = { is_in_faction = no is_subject = no NOT = { has_war_with = ROOT has_government = communism } OR = { original_tag = SAU original_tag = OMA original_tag = YEM original_tag = IRQ original_tag = PER original_tag = FSA original_tag = JOR original_tag = PAL original_tag = SYR original_tag = LEB original_tag = TUR original_tag = QAT original_tag = BHR original_tag = UAE original_tag = EGY original_tag = SUD original_tag = LBA original_tag = TUN original_tag = ALG original_tag = MOR original_tag = RIF original_tag = MAL original_tag = INS original_tag = MLD original_tag = BAN original_tag = PAK original_tag = WES original_tag = MRT original_tag = SOK original_tag = MLI original_tag = NGR original_tag = NGA original_tag = SOM original_tag = AFA original_tag = AZR original_tag = DAG original_tag = CIN original_tag = ALB original_tag = TAT original_tag = BSK original_tag = BUK original_tag = KHI original_tag = UZB original_tag = KAZ original_tag = TAJ original_tag = KYR original_tag = TMS original_tag = KKP original_tag = SIN original_tag = KAS original_tag = CRI original_tag = KOS original_tag = KUR original_tag = BLC original_tag = IMO original_tag = KLT original_tag = KBK original_tag = DJI original_tag = HAR original_tag = SEN original_tag = GAM original_tag = GNB original_tag = SIE original_tag = VOL original_tag = GNA original_tag = XSM original_tag = SIK original_tag = KHM original_tag = GSM original_tag = NXM original_tag = KUM original_tag = SAB original_tag = BRN original_tag = CHM } } hidden_effect = { add_ai_strategy = { type = befriend id = ROOT value = 50 } ROOT = { add_ai_strategy = { type = befriend id = PREV value = 50 } } country_event = { id = generic.5 hours = 6 random_hours = 24 } } custom_effect_tooltip = AFG_unify_the_islamic_world_tt } } } focus = { id = AFG_extend_a_hand_to_tokyo icon = GFX_goal_generic_forceful_treaty prerequisite = { focus = AFG_the_faqirs_revolt } mutually_exclusive = { focus = AFG_unify_the_islamic_world } x = 3 y = 1 relative_position_id = AFG_the_faqirs_revolt cost = 5 ai_will_do = { factor = 10 } available = { has_civil_war = no is_subject = no has_completed_focus = AFG_request_japanese_support JAP = { is_faction_leader = yes NOT = { has_war_with = ROOT } } } search_filters = { FOCUS_FILTER_POLITICAL } completion_reward = { if = { limit = { JAP = { is_faction_leader = yes } } JAP = { country_event = { id = generic.2 hours = 4 } } } else = { custom_effect_tooltip = AFG_extend_a_hand_to_tokyo_tt } hidden_effect = { JAP = { add_opinion_modifier = { target = ROOT modifier = large_increase } } } } } focus = { id = AFG_expand_the_madrasas icon = GFX_focus_PER_university_of_isfahan prerequisite = { focus = AFG_the_faqirs_revolt } x = 9 y = 2 relative_position_id = AFG_the_faqirs_revolt cost = 5 ai_will_do = { factor = 10 } available = { } search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_POLITICAL_CHARACTER FOCUS_FILTER_INDUSTRY FOCUS_FILTER_RESEARCH } completion_reward = { add_ideas = AFG_expanded_the_madrasas_idea custom_effect_tooltip = generic_skip_one_line_tt custom_effect_tooltip = available_political_advisor show_ideas_tooltip = AFG_sheikh_omar_mojadidi } } focus = { id = AFG_promote_muslim_work_ethic icon = GFX_focus_generic_workers prerequisite = { focus = AFG_expand_the_madrasas } x = -1 y = 1 relative_position_id = AFG_expand_the_madrasas cost = 10 ai_will_do = { factor = 10 } available = { } search_filters = { FOCUS_FILTER_INDUSTRY } completion_reward = { swap_ideas = { remove_idea = AFG_expanded_the_madrasas_idea add_idea = AFG_expanded_the_madrasas_2_idea } } } focus = { id = AFG_rehabilitate_the_saqqawists icon = GFX_focus_generic_befriend_saqqawists prerequisite = { focus = AFG_expand_the_madrasas } x = 1 y = 1 relative_position_id = AFG_expand_the_madrasas cost = 5 ai_will_do = { factor = 10 } available = { } search_filters = { FOCUS_FILTER_POLITICAL } completion_reward = { add_popularity = { ideology = ROOT popularity = 0.1 } add_political_power = 50 custom_effect_tooltip = generic_skip_one_line_tt every_state = { limit = { has_dynamic_modifier = { modifier = AFG_disgruntled_minority } } remove_dynamic_modifier = { modifier = AFG_disgruntled_minority } } } } focus = { id = AFG_ulugh_beg_academy icon = GFX_focus_research prerequisite = { focus = AFG_rehabilitate_the_saqqawists focus = AFG_promote_muslim_work_ethic } x = -2 y = 1 relative_position_id = AFG_rehabilitate_the_saqqawists cost = 10 ai_will_do = { factor = 10 } available = { } search_filters = { FOCUS_FILTER_RESEARCH } completion_reward = { add_research_slot = 1 } } focus = { id = AFG_prepare_the_war_industries icon = GFX_focus_generic_military_industry prerequisite = { focus = AFG_rehabilitate_the_saqqawists focus = AFG_promote_muslim_work_ethic } x = 0 y = 1 relative_position_id = AFG_rehabilitate_the_saqqawists cost = 10 ai_will_do = { factor = 10 } available = { } search_filters = { FOCUS_FILTER_INDUSTRY } completion_reward = { random_core_state = { limit = { is_fully_controlled_by = ROOT is_owned_by = ROOT free_building_slots = { building = arms_factory size > 0 include_locked = yes } } prioritize = { 415 } add_extra_state_shared_building_slots = 1 add_building_construction = { type = arms_factory level = 1 instant_build = yes } } #custom_effect_tooltip = generic_skip_one_line_tt random_core_state = { limit = { is_fully_controlled_by = ROOT is_owned_by = ROOT free_building_slots = { building = arms_factory size > 0 include_locked = yes } } prioritize = { 267 } add_extra_state_shared_building_slots = 1 add_building_construction = { type = arms_factory level = 1 instant_build = yes } } #custom_effect_tooltip = generic_skip_one_line_tt random_core_state = { limit = { is_fully_controlled_by = ROOT is_owned_by = ROOT free_building_slots = { building = arms_factory size > 0 include_locked = yes } } prioritize = { 1005 } add_extra_state_shared_building_slots = 1 add_building_construction = { type = arms_factory level = 1 instant_build = yes } } } } focus = { id = AFG_revive_the_workshop_of_the_world icon = GFX_focus_generic_modernize_industry prerequisite = { focus = AFG_prepare_the_war_industries } prerequisite = { focus = AFG_ulugh_beg_academy } x = -1 y = 1 relative_position_id = AFG_prepare_the_war_industries cost = 10 ai_will_do = { factor = 10 } available = { } search_filters = { FOCUS_FILTER_INDUSTRY } completion_reward = { try_build_civ_in_core_otherwise_build_in_controlled_2_civs = yes custom_effect_tooltip = generic_skip_one_line_tt IF = { limit = { has_idea = civilian_economy } swap_ideas = { remove_idea = civilian_economy add_idea = low_economic_mobilisation } } ELSE_IF = { limit = { has_idea = low_economic_mobilisation } swap_ideas = { remove_idea = low_economic_mobilisation add_idea = partial_economic_mobilisation } } ELSE_IF = { limit = { has_idea = partial_economic_mobilisation } swap_ideas = { remove_idea = partial_economic_mobilisation add_idea = war_economy } } custom_effect_tooltip = generic_skip_one_line_tt add_ideas = AFG_reviving_the_workshop_of_the_world } } focus = { id = AFG_reorganize_the_royal_guard icon = GFX_focus_AFG_royal_guard prerequisite = { focus = AFG_expand_the_madrasas } x = 4 y = 1 relative_position_id = AFG_expand_the_madrasas cost = 5 ai_will_do = { factor = 10 } available = { } search_filters = { FOCUS_FILTER_MANPOWER } completion_reward = { set_division_template_lock = { division_template = "Royal Guard" is_locked = no } custom_effect_tooltip = generic_skip_one_line_tt random_owned_controlled_state = { create_unit = { division = "division_template = \"Royal Guard\" start_experience_factor = 0.75 start_equipment_factor = 1" owner = ROOT count = 2 } } } } focus = { id = AFG_reintroduce_heavy_cavalry icon = GFX_focus_PER_modern_cataphract prerequisite = { focus = AFG_reorganize_the_royal_guard } x = -1 y = 1 relative_position_id = AFG_reorganize_the_royal_guard cost = 10 ai_will_do = { factor = 10 } available = { } search_filters = { } completion_reward = { add_ideas = AFG_modern_cataphracts_idea } } focus = { id = AFG_reintroduce_war_elephants icon = GFX_focus_PER_war_elephant prerequisite = { focus = AFG_reorganize_the_royal_guard } x = 1 y = 1 relative_position_id = AFG_reorganize_the_royal_guard cost = 5 ai_will_do = { factor = 10 } available = { } search_filters = { FOCUS_FILTER_ARMY_XP FOCUS_FILTER_MANPOWER } completion_reward = { set_technology = { elephantry = 1 popup = no } division_template = { name = "Gajhastas" is_locked = no #division_names_group = NAMELIST_ID # optional priority = 1 # optional template_counter = 108 # optional regiments = { elephantry = { x = 0 y = 0 } elephantry = { x = 0 y = 1 } elephantry = { x = 0 y = 2 } elephantry = { x = 0 y = 3 } elephantry = { x = 1 y = 0 } elephantry = { x = 1 y = 1 } elephantry = { x = 1 y = 2 } elephantry = { x = 1 y = 3 } } } capital_scope = { create_unit = { division = "name = \"Gajhastas\" division_template = \"Gajhastas\" start_experience_factor = 0.2 start_equipment_factor = 1 start_manpower_factor = 1" owner = ROOT allow_spawning_on_enemy_provs = yes count = 2 } } army_experience = 40 custom_effect_tooltip = generic_skip_one_line_tt IF = { limit = { amount_taken_ideas = { amount < 1 slots = { army_spirit } } has_dlc = "No Step Back" NOT = { has_idea = proper_heritage_spirit } } add_ideas = proper_heritage_spirit } } } focus = { id = AFG_timurid_bureaucracy icon = GFX_focus_RAJ_the_legacy_of_babur prerequisite = { focus = AFG_invite_the_mughal_prince } x = 0 y = 1 relative_position_id = AFG_invite_the_mughal_prince cost = 10 ai_will_do = { factor = 10 } available = { } search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_MANPOWER FOCUS_FILTER_ARMY_XP FOCUS_FILTER_AIR_XP FOCUS_FILTER_NAVY_XP } completion_reward = { add_popularity = { ideology = neutrality popularity = 0.15 } IF = { limit = { has_idea = AFG_pashtunwali } custom_effect_tooltip = generic_skip_one_line_tt swap_ideas = { remove_idea = AFG_pashtunwali add_idea = idea_RAJ_timurid_bureaucracy } } ELSE = { custom_effect_tooltip = generic_skip_one_line_tt add_ideas = idea_RAJ_timurid_bureaucracy } } } focus = { id = AFG_hone_the_shamshir icon = GFX_focus_RAJ_indian_gurkhas prerequisite = { focus = AFG_invite_the_mughal_prince focus = AFG_crown_the_bukharan_emir } x = -2 y = 1 relative_position_id = AFG_invite_the_mughal_prince cost = 10 ai_will_do = { factor = 10 } available = { } search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_WAR_SUPPORT FOCUS_FILTER_MANPOWER FOCUS_FILTER_ARMY_XP } completion_reward = { try_build_mil_in_core_otherwise_build_in_controlled_2_mil = yes custom_effect_tooltip = generic_skip_one_line_tt add_war_support = 0.05 add_doctrine_cost_reduction = { name = AFG_hone_the_shamshir cost_reduction = 0.66 uses = 1 category = land_doctrine } custom_effect_tooltip = generic_skip_one_line_tt IF = { limit = { NOT = { has_tech = tech_mountaineers } } set_technology = { tech_mountaineers = 1 popup = no } } division_template = { name = "Mountain Lions" is_locked = no priority = 2 # optional regiments = { mountaineers = { x = 0 y = 0 } mountaineers = { x = 0 y = 1 } mountaineers = { x = 0 y = 2 } mountaineers = { x = 0 y = 3 } mountaineers = { x = 1 y = 0 } mountaineers = { x = 1 y = 1 } mountaineers = { x = 1 y = 2 } mountaineers = { x = 1 y = 3 } mountaineers = { x = 2 y = 0 } } support = { } } random_controlled_state = { limit = { is_fully_controlled_by = ROOT } create_unit = { division = "name = \"Mountain Lions\" division_template = \"Mountain Lions\" start_experience_factor = 0.65 start_equipment_factor = 1 start_manpower_factor = 1" owner = ROOT allow_spawning_on_enemy_provs = no count = 1 } prioritize = { 415 } #optional: to pick those states first if they fulfill the limit } IF = { limit = { OR = { has_idea = volunteer_only has_idea = disarmed_nation } } add_ideas = limited_conscription } ELSE_IF = { limit = { has_idea = limited_conscription } swap_ideas = { remove_idea = limited_conscription add_idea = extensive_conscription } } } } focus = { id = AFG_restore_herat icon = GFX_focus_generic_improve_the_administration prerequisite = { focus = AFG_crown_the_bukharan_emir } x = 0 y = 1 relative_position_id = AFG_crown_the_bukharan_emir cost = 5 ai_will_do = { factor = 10 } available = { 415 = { is_owned_and_controlled_by = ROOT } } bypass = { 415 = { NOT = { is_owned_by = ROOT } } } search_filters = { FOCUS_FILTER_INDUSTRY } completion_reward = { set_capital = { state = 415 remember_old_capital = no } 415 = { add_extra_state_shared_building_slots = 3 IF = { limit = { free_building_slots = { building = arms_factory size > 0 include_locked = yes } } add_building_construction = { type = arms_factory level = 1 instant_build = yes } } add_building_construction = { type = bunker level = 3 instant_build = yes province = { all_provinces = yes limit_to_border = yes } } IF = { limit = { infrastructure > 4 } add_building_construction = { type = infrastructure level = 2 instant_build = yes } } ELSE_IF = { limit = { infrastructure > 5 } add_building_construction = { type = infrastructure level = 1 instant_build = yes } } add_building_construction = { type = supply_node province = 4893 level = 1 instant_build = yes } } IF = { limit = { has_idea = AFG_pashtunwali } custom_effect_tooltip = generic_skip_one_line_tt remove_ideas = AFG_pashtunwali } } } focus = { id = AFG_integrate_the_basmachi_movement icon = GFX_focus_generic_befriend_basmachi prerequisite = { focus = AFG_restore_herat } x = -1 y = 1 relative_position_id = AFG_restore_herat cost = 5 ai_will_do = { factor = 10 } available = { } bypass = { } search_filters = { FOCUS_FILTER_MANPOWER FOCUS_FILTER_POLITICAL_CHARACTER } completion_reward = { add_manpower = 20000 custom_effect_tooltip = generic_skip_one_line_tt custom_effect_tooltip = available_political_advisor show_ideas_tooltip = AFG_korsirmat custom_effect_tooltip = available_political_advisor show_ideas_tooltip = AFG_junaid_khan } } focus = { id = AFG_proclaim_the_second_afghan_empire icon = GFX_focus_AFG_second_afghan_empire prerequisite = { focus = AFG_restore_herat } prerequisite = { focus = AFG_hone_the_shamshir } x = 1 y = 1 relative_position_id = AFG_restore_herat cost = 5 ai_will_do = { factor = 10 } available = { } bypass = { } search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_POLITICAL_CHARACTER FOCUS_FILTER_MANPOWER } completion_reward = { set_cosmetic_tag = AFG_second_empire custom_effect_tooltip = generic_skip_one_line_tt PAK = { every_core_state = { add_claim_by = ROOT hidden_effect = { set_state_flag = AFG_empire_can_core_this_state_flag } } } every_state = { limit = { NOT = { is_core_of = ROOT } OR = { state = 742 state = 416 state = 830 state = 410 state = 989 state = 441 state = 1003 } } add_claim_by = ROOT hidden_effect = { set_state_flag = AFG_empire_can_core_this_state_flag } } custom_effect_tooltip = AFG_can_core_once_controlled_tt custom_effect_tooltip = generic_skip_one_line_tt add_country_leader_trait = AFG_legacy_of_the_durrani_trait } } focus = { id = AFG_ally_the_brahui_khanate icon = GFX_focus_AFG_future_of_balochistan prerequisite = { focus = AFG_integrate_the_basmachi_movement } x = -1 y = 1 relative_position_id = AFG_integrate_the_basmachi_movement cost = 5 ai_will_do = { factor = 10 } will_lead_to_war_with = RAJ available = { is_subject = no OR = { KLT = { exists = no } AND = { is_faction_leader = yes KLT = { exists = yes NOT = { has_war_with = ROOT } is_subject = no is_in_faction = no } } } } bypass = { } search_filters = { FOCUS_FILTER_POLITICAL } completion_reward = { IF = { limit = { KLT = { exists = yes } } BLC = { every_core_state = { add_core_of = KLT } } KLT = { country_event = { id = generic.5 hours = 6 random_hours = 24 } } } ELSE_IF = { limit = { KLT = { exists = no 1012 = { is_controlled_by = ROOT } } } 1012 = { transfer_state_to = KLT } puppet = { target = KLT end_wars = no } BLC = { every_core_state = { add_core_of = KLT } } hidden_effect = { KLT = { division_template = { name = "Pashtun Volunteer Corps" division_names_group = AFG_INF_01 regiments = { infantry = { x = 0 y = 0 } infantry = { x = 0 y = 1 } infantry = { x = 1 y = 0 } infantry = { x = 1 y = 1 } } } 1012 = { create_unit = { division = "division_template = \"Pashtun Volunteer Corps\" start_experience_factor = 0.05 start_equipment_factor = 1" owner = KLT count = 3 } } } } } ELSE = { 1012 = { OWNER = { PREV = { transfer_state_to = KLT } declare_war_on = { target = KLT type = annex_everything } } } BLC = { every_core_state = { add_core_of = KLT } } puppet = { target = KLT end_wars = no } hidden_effect = { KLT = { division_template = { name = "Pashtun Volunteer Corps" division_names_group = AFG_INF_01 regiments = { infantry = { x = 0 y = 0 } infantry = { x = 0 y = 1 } infantry = { x = 1 y = 0 } infantry = { x = 1 y = 1 } } } 1012 = { create_unit = { division = "division_template = \"Pashtun Volunteer Corps\" start_experience_factor = 0.05 start_equipment_factor = 1" owner = KLT count = 3 } } } } } } } focus = { id = AFG_the_echoes_of_panipat icon = GFX_focus_RAJ_thunder_elephants prerequisite = { focus = AFG_proclaim_the_second_afghan_empire } prerequisite = { focus = AFG_integrate_the_basmachi_movement } x = -1 y = 1 relative_position_id = AFG_proclaim_the_second_afghan_empire will_lead_to_war_with = RAJ cost = 10 ai_will_do = { factor = 10 } available = { RAJ = { exists = yes } } bypass = { RAJ = { exists = no } } search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_ANNEXATION FOCUS_FILTER_WAR_SUPPORT } completion_reward = { add_war_support = 0.05 create_wargoal = { type = annex_everything target = RAJ expire = 0 } custom_effect_tooltip = generic_skip_one_line_tt add_ideas = AFG_crushing_the_heirs_of_the_marathas } } focus = { id = AFG_the_amu_darya_plan icon = GFX_focus_prc_infiltration prerequisite = { focus = AFG_the_echoes_of_panipat } x = 0 y = 1 relative_position_id = AFG_the_echoes_of_panipat cost = 5 ai_will_do = { factor = 10 } available = { } bypass = { } search_filters = { FOCUS_FILTER_POLITICAL } completion_reward = { add_political_power = 50 custom_effect_tooltip = generic_skip_one_line_tt custom_effect_tooltip = AFG_alliance_with_turkik_peoples_tt } } focus = { id = AFG_reclaim_the_emperors_lost_domain icon = GFX_focus_SOV_patriarch_of_all_russia prerequisite = { focus = AFG_the_amu_darya_plan } x = 0 y = 2 relative_position_id = AFG_the_amu_darya_plan will_lead_to_war_with = SOV cost = 10 ai_will_do = { factor = 10 } available = { } bypass = { } search_filters = { FOCUS_FILTER_ANNEXATION FOCUS_FILTER_POLITICAL FOCUS_FILTER_MANPOWER } completion_reward = { every_state = { limit = { OR = { is_core_of = UZB is_core_of = TMS is_core_of = BUK is_core_of = TAJ is_core_of = KYR } } add_core_of = ROOT IF = { limit = { OWNER = { NOT = { OR = { tag = ROOT is_ally_with = ROOT ROOT = { has_wargoal_against = PREV } } } } } ROOT = { create_wargoal = { target = PREV type = take_core_state } } } } } } focus = { id = AFG_return_to_delhi icon = GFX_focus_PER_foothold_in_indus prerequisite = { focus = AFG_timurid_bureaucracy } prerequisite = { focus = AFG_hone_the_shamshir } x = 0 y = 1 relative_position_id = AFG_timurid_bureaucracy will_lead_to_war_with = PAK will_lead_to_war_with = RAJ will_lead_to_war_with = BAN will_lead_to_war_with = KAS will_lead_to_war_with = BLC will_lead_to_war_with = SIN will_lead_to_war_with = KLT will_lead_to_war_with = RJP will_lead_to_war_with = KHL will_lead_to_war_with = CIP will_lead_to_war_with = WIS will_lead_to_war_with = SKK will_lead_to_war_with = MPU will_lead_to_war_with = BRM will_lead_to_war_with = HYD will_lead_to_war_with = KOL will_lead_to_war_with = MYS will_lead_to_war_with = RAS will_lead_to_war_with = NWF cost = 10 ai_will_do = { factor = 10 } available = { } search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_ANNEXATION FOCUS_FILTER_MANPOWER FOCUS_FILTER_WAR_SUPPORT } completion_reward = { add_war_support = 0.1 custom_effect_tooltip = generic_skip_one_line_tt add_ideas = idea_RAJ_ruler_of_the_peacock_throne custom_effect_tooltip = generic_skip_one_line_tt every_state = { limit = { is_owned_by = ROOT OR = { is_core_of = PAK is_core_of = RAJ is_core_of = BAN is_core_of = KAS is_core_of = BLC is_core_of = SIN is_core_of = KLT is_core_of = RJP is_core_of = KHL is_core_of = CIP is_core_of = WIS is_core_of = SKK is_core_of = MPU is_core_of = BRM is_core_of = HYD is_core_of = KOL is_core_of = MYS is_core_of = RAS is_core_of = NWF } } add_core_of = ROOT } every_state = { limit = { NOT = { is_owned_by = ROOT } OR = { is_core_of = PAK is_core_of = RAJ is_core_of = BAN is_core_of = KAS is_core_of = BLC is_core_of = SIN is_core_of = KLT is_core_of = RJP is_core_of = KHL is_core_of = CIP is_core_of = WIS is_core_of = SKK is_core_of = MPU is_core_of = BRM is_core_of = HYD is_core_of = KOL is_core_of = MYS is_core_of = RAS is_core_of = NWF } } add_claim_by = ROOT set_state_flag = AFG_mughals_can_integrate_flag hidden_effect = { ROOT = { create_wargoal = { target = PREV.OWNER type = take_claimed_state generator = owned_states } } } ROOT = { custom_effect_tooltip = AFG_proclaim_a_new_caliphate_tt } } custom_effect_tooltip = generic_skip_one_line_tt IF = { limit = { 439 = { is_owned_by = ROOT } } set_capital = { state = 439 remember_old_capital = no } } ELSE = { 439 = { OWNER = { ROOT = { create_wargoal = { type = take_state_focus target = PREV generator = { 439 } } } } } unlock_decision_tooltip = AFG_move_the_capital_to_delhi_decision } } } focus = { id = AFG_reclaim_moghulistan icon = GFX_focus_AFG_sinkang_intervention prerequisite = { focus = AFG_invite_the_mughal_prince } x = 2 y = 1 relative_position_id = AFG_invite_the_mughal_prince will_lead_to_war_with = SIK cost = 10 ai_will_do = { factor = 10 } available = { 1005 = { is_owned_and_controlled_by = ROOT } } search_filters = { FOCUS_FILTER_ANNEXATION } completion_reward = { SIK = { every_core_state = { add_claim_by = ROOT set_state_flag = AFG_mughals_can_integrate_flag } } KHM = { every_core_state = { add_claim_by = ROOT set_state_flag = AFG_mughals_can_integrate_flag } } custom_effect_tooltip = AFG_can_core_once_controlled_tt custom_effect_tooltip = generic_skip_one_line_tt IF = { limit = { controls_province = 7519 } 1005 = { add_building_construction = { type = supply_node level = 1 instant_build = yes province = 7519 } add_building_construction = { type = air_base level = 1 instant_build = yes } } } ELSE = { effect_tooltip = { 1005 = { add_building_construction = { type = supply_node level = 1 instant_build = yes province = 7519 } } } } IF = { limit = { SIK = { exists = yes all_core_state = { is_fully_controlled_by = PREV } } } create_wargoal = { type = annex_everything target = SIK expire = 0 } } ELSE = { SIK = { every_core_state = { IF = { limit = { NOT = { ROOT = { has_annex_war_goal = PREV.controller } } controller = { NOT = { original_tag = ROOT } } } ROOT = { create_wargoal = { type = annex_everything target = PREV.controller expire = 0 } } } } } } IF = { limit = { KHM = { exists = yes } } create_wargoal = { type = annex_everything target = KHM expire = 0 } } } } focus = { id = AFG_ally_the_sikhs icon = GFX_focus_RAJ_sikh_religious_guarantees prerequisite = { focus = AFG_timurid_bureaucracy } x = 2 y = 1 relative_position_id = AFG_timurid_bureaucracy cost = 5 ai_will_do = { factor = 10 } available = { } search_filters = { FOCUS_FILTER_MANPOWER } completion_reward = { add_ideas = AFG_sikh_volunteers_idea custom_effect_tooltip = generic_skip_one_line_tt unlock_decision_tooltip = { decision = AFG_sikh_recruitment } } } focus = { id = AFG_the_conquerors_of_persia icon = GFX_focus_generic_attack_iran prerequisite = { focus = AFG_proclaim_the_second_afghan_empire focus = AFG_return_to_delhi } x = 1 y = 1 relative_position_id = AFG_proclaim_the_second_afghan_empire will_lead_to_war_with = PER cost = 10 ai_will_do = { factor = 10 } available = { OR = { PER = { exists = yes NOT = { is_ally_with = ROOT } } PER = { exists = no } } } bypass = { } search_filters = { FOCUS_FILTER_ANNEXATION } completion_reward = { PER = { every_core_state = { add_claim_by = ROOT } } custom_effect_tooltip = generic_skip_one_line_tt IF = { limit = { PER = { exists = yes } } create_wargoal = { type = annex_everything target = PER expire = 0 } } ELSE = { every_state = { limit = { is_core_of = PER } IF = { limit = { OWNER = { NOT = { OR = { tag = ROOT is_ally_with = ROOT ROOT = { has_wargoal_against = PREV } } } } } ROOT = { create_wargoal = { target = PREV type = take_claimed_state } } } } } } } focus = { id = AFG_reclaim_transoxiana icon = GFX_focus_attack_soviet prerequisite = { focus = AFG_return_to_delhi } x = 2 y = 1 relative_position_id = AFG_return_to_delhi will_lead_to_war_with = SOV cost = 10 ai_will_do = { factor = 10 } available = { } search_filters = { FOCUS_FILTER_ANNEXATION } completion_reward = { every_state = { limit = { OR = { is_core_of = UZB is_core_of = TMS is_core_of = BUK is_core_of = TAJ is_core_of = KYR is_core_of = KAZ } } add_claim_by = ROOT set_state_flag = AFG_mughals_can_integrate_flag IF = { limit = { OWNER = { NOT = { OR = { tag = ROOT is_ally_with = ROOT ROOT = { has_wargoal_against = PREV } } } } } ROOT = { create_wargoal = { target = PREV type = take_claimed_state generator = owned_states } } } } custom_effect_tooltip = AFG_can_core_once_controlled_tt } } focus = { id = AFG_rebuild_the_silk_road icon = GFX_focus_RAJ_the_silk_road prerequisite = { focus = AFG_return_to_delhi } x = 0 y = 1 relative_position_id = AFG_return_to_delhi cost = 10 ai_will_do = { factor = 10 } available = { } search_filters = { FOCUS_FILTER_INDUSTRY } completion_reward = { build_railway = { level = 3 start_province = 4709 target_province = 4893 build_only_on_allied = yes } add_ideas = BRA_rail_investment custom_effect_tooltip = generic_skip_one_line_tt random_owned_state = { limit = { is_fully_controlled_by = ROOT free_building_slots = { building = industrial_complex size > 1 include_locked = yes } } add_extra_state_shared_building_slots = 2 add_building_construction = { type = industrial_complex level = 2 instant_build = yes } } random_owned_state = { limit = { is_fully_controlled_by = ROOT free_building_slots = { building = industrial_complex size > 0 include_locked = yes } } add_extra_state_shared_building_slots = 1 add_building_construction = { type = arms_factory level = 1 instant_build = yes } } } } focus = { id = AFG_restore_the_timurid_empire icon = GFX_focus_RAJ_restore_the_timurid_empire prerequisite = { focus = AFG_rebuild_the_silk_road } x = 0 y = 1 relative_position_id = AFG_rebuild_the_silk_road cost = 10 ai_will_do = { factor = 10 } available = { } search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_POLITICAL_CHARACTER FOCUS_FILTER_MANPOWER FOCUS_FILTER_STABILITY FOCUS_FILTER_WAR_SUPPORT } completion_reward = { drop_cosmetic_tag = yes set_cosmetic_tag = RAJ_timurid_empire custom_effect_tooltip = generic_skip_one_line_tt add_country_leader_trait = RAJ_timurs_succesor custom_effect_tooltip = generic_skip_one_line_tt every_state = { limit = { NOT = { is_core_of = ROOT } OR = { is_core_of = PER is_core_of = PAK } } add_core_of = ROOT } } } focus = { id = AFG_the_crown_and_the_world icon = GFX_focus_RAJ_the_crown_and_the_world prerequisite = { focus = AFG_restore_the_timurid_empire } x = 0 y = 2 relative_position_id = AFG_restore_the_timurid_empire cost = 10 ai_will_do = { factor = 10 } available = { } search_filters = { } completion_reward = { add_ideas = idea_RAJ_the_crown_and_the_world } } focus = { id = AFG_enforce_the_pashtunwali icon = GFX_focus_AFG_curtail_pashtunwali_primacy prerequisite = { focus = AFG_crown_the_golden_emir } x = 1 y = 1 relative_position_id = AFG_crown_the_golden_emir cost = 10 ai_will_do = { factor = 10 } available = { } bypass = { } search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_ARMY_XP FOCUS_FILTER_AIR_XP FOCUS_FILTER_NAVY_XP } completion_reward = { swap_ideas = { remove_idea = AFG_pashtunwali add_idea = AFG_pashtun_domination } } } focus = { id = AFG_form_the_khuddamul_furqan icon = GFX_focus_AFG_pashtunistan_referendum prerequisite = { focus = AFG_crown_the_golden_emir } x = -1 y = 1 relative_position_id = AFG_crown_the_golden_emir cost = 5 ai_will_do = { factor = 10 } available = { } bypass = { } search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_STABILITY } completion_reward = { add_stability = 0.1 add_popularity = { ideology = fascism popularity = 0.1 } custom_effect_tooltip = generic_skip_one_line_tt set_party_name = { ideology = fascism long_name = AFG_khuddamul_furqan_party_long name = AFG_khuddamul_furqan_party } custom_effect_tooltip = generic_skip_one_line_tt custom_effect_tooltip = available_political_advisor show_ideas_tooltip = AFG_placeholder_fascist } } focus = { id = AFG_instate_a_compulsory_jizya icon = GFX_focus_RAJ_war_taxes prerequisite = { focus = AFG_form_the_khuddamul_furqan } x = -1 y = 1 relative_position_id = AFG_form_the_khuddamul_furqan cost = 5 ai_will_do = { factor = 10 } available = { } bypass = { } search_filters = { FOCUS_FILTER_INDUSTRY } completion_reward = { add_ideas = AFG_compulsory_jizya } } focus = { id = AFG_raise_lashkar_regiments icon = GFX_focus_IRQ_approach_tribes_for_support prerequisite = { focus = AFG_crown_the_golden_emir } x = -3 y = 1 relative_position_id = AFG_crown_the_golden_emir cost = 5 ai_will_do = { factor = 10 } available = { } bypass = { } search_filters = { FOCUS_FILTER_MANPOWER } completion_reward = { add_ideas = AFG_lashkar_regiments_idea } } focus = { id = AFG_support_nort_west_frontier_rebels icon = GFX_focus_ETH_freedom_at_gunpoint prerequisite = { focus = AFG_form_the_khuddamul_furqan focus = AFG_enforce_the_pashtunwali } x = 1 y = 1 relative_position_id = AFG_form_the_khuddamul_furqan cost = 5 ai_will_do = { factor = 10 } available = { } bypass = { } search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_ANNEXATION } completion_reward = { 442 = { add_core_of = ROOT } 987 = { add_core_of = ROOT } IF = { limit = { 442 = { NOT = { is_owned_and_controlled_by = ROOT } } } custom_effect_tooltip = generic_skip_one_line_tt custom_effect_tooltip = AFG_occupy_peshawar_tt random_country = { limit = { owns_state = 442 NOT = { has_country_flag = has_already_recieved_waziristan_event_flag } } country_event = { id = AFG_political_events.172 days = 1 } } custom_effect_tooltip = generic_skip_one_line_tt 442 = { transfer_state_to = ROOT } } IF = { limit = { 987 = { NOT = { is_owned_and_controlled_by = ROOT } } } custom_effect_tooltip = generic_skip_one_line_tt custom_effect_tooltip = AFG_occupy_waziristan_tt random_country = { limit = { owns_state = 987 NOT = { has_country_flag = has_already_recieved_waziristan_event_flag } } country_event = { id = AFG_political_events.172 days = 3 # So a flag can be set on the country so it doesn't go twice to the same place } } custom_effect_tooltip = generic_skip_one_line_tt 987 = { transfer_state_to = ROOT } } } } focus = { id = AFG_appraoch_anti_communist_theologians icon = GFX_focus_TUR_loosen_the_laws_on_secularism prerequisite = { focus = AFG_support_nort_west_frontier_rebels } x = 0 y = 1 relative_position_id = AFG_support_nort_west_frontier_rebels cost = 5 ai_will_do = { factor = 10 } available = { } bypass = { } search_filters = { FOCUS_FILTER_POLITICAL } completion_reward = { custom_effect_tooltip = AFG_alliance_with_turkik_peoples_tt custom_effect_tooltip = generic_skip_one_line_tt every_state = { limit = { has_dynamic_modifier = { modifier = AFG_disgruntled_minority } } remove_dynamic_modifier = { modifier = AFG_disgruntled_minority } } } } focus = { id = AFG_unite_pashtunistan icon = GFX_focus_AFG_concessions_to_pashtuns prerequisite = { focus = AFG_appraoch_anti_communist_theologians } x = 0 y = 1 relative_position_id = AFG_appraoch_anti_communist_theologians cost = 10 ai_will_do = { factor = 10 } available = { } bypass = { } search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_WAR_SUPPORT FOCUS_FILTER_MANPOWER FOCUS_FILTER_POLITICAL_CHARACTER } completion_reward = { set_cosmetic_tag = PSH add_war_support = 0.1 custom_effect_tooltip = generic_skip_one_line_tt 988 = { add_core_of = ROOT } IF = { limit = { 988 = { NOT = { is_owned_by = ROOT } } } 988 = { owner = { ROOT = { create_wargoal = { type = take_core_state target = PREV generator = { 988 } } } } } } custom_effect_tooltip = generic_skip_one_line_tt custom_effect_tooltip = available_political_advisor show_ideas_tooltip = AFG_mohammad_gul_khan_momand } } focus = { id = AFG_form_the_turkestan_legion icon = GFX_focus_ETH_peacekeeping_forces prerequisite = { focus = AFG_appraoch_anti_communist_theologians } x = -2 y = 1 relative_position_id = AFG_appraoch_anti_communist_theologians cost = 5 ai_will_do = { factor = 10 } available = { has_tech = tech_support } bypass = { } search_filters = { FOCUS_FILTER_MANPOWER } completion_reward = { custom_effect_tooltip = AFG_form_the_turkestan_legion_tt custom_effect_tooltip = generic_skip_one_line_tt add_ideas = AFG_turkestan_legion_idea custom_effect_tooltip = generic_skip_one_line_tt division_template = { name = "Turkestan Legion" is_locked = yes template_counter = 102 support = { engineer = { x = 0 y = 0 } artillery = { x = 0 y = 1 } mot_recon = { x = 0 y = 2} } regiments = { infantry = { x = 0 y = 0 } infantry = { x = 0 y = 1 } infantry = { x = 0 y = 2 } infantry = { x = 1 y = 0 } infantry = { x = 1 y = 1 } infantry = { x = 2 y = 0 } infantry = { x = 2 y = 1 } } } random_owned_controlled_state = { AFG_create_turkestan_free_legion_div = yes } } } focus = { id = AFG_proclaim_a_new_caliphate icon = GFX_focus_AFG_savior_of_the_holy_lands prerequisite = { focus = AFG_unite_pashtunistan } x = 0 y = 2 relative_position_id = AFG_unite_pashtunistan cost = 10 will_lead_to_war_with = PAL will_lead_to_war_with = ENG will_lead_to_war_with = ISR will_lead_to_war_with = LEB will_lead_to_war_with = SYR will_lead_to_war_with = SAU will_lead_to_war_with = OMA will_lead_to_war_with = IMO will_lead_to_war_with = YEM will_lead_to_war_with = FSA will_lead_to_war_with = KUW will_lead_to_war_with = ENG will_lead_to_war_with = EGY will_lead_to_war_with = LBA will_lead_to_war_with = ITA will_lead_to_war_with = FRA will_lead_to_war_with = ALG will_lead_to_war_with = TUN will_lead_to_war_with = RIF will_lead_to_war_with = MOR will_lead_to_war_with = SPR will_lead_to_war_with = POR will_lead_to_war_with = INS will_lead_to_war_with = MAL will_lead_to_war_with = PAK will_lead_to_war_with = BAN will_lead_to_war_with = KSH will_lead_to_war_with = SIK will_lead_to_war_with = AZR will_lead_to_war_with = PER will_lead_to_war_with = ALB will_lead_to_war_with = TAT will_lead_to_war_with = CRI will_lead_to_war_with = TUR will_lead_to_war_with = IRQ ai_will_do = { factor = 10 } available = { } bypass = { } search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_POLITICAL_CHARACTER FOCUS_FILTER_MANPOWER } completion_reward = { add_country_leader_trait = AFG_caliph_trait every_state = { limit = { NOT = { is_core_of = ROOT } OR = { region = 251 region = 225 region = 126 region = 182 region = 28 region = 232 region = 237 region = 196 region = 236 region = 238 region = 128 region = 291 region = 440 region = 290 region = 188 region = 159 region = 187 region = 93 region = 267 region = 269 region = 270 region = 268 region = 136 region = 241 region = 297 region = 298 region = 116 region = 240 region = 239 region = 129 region = 274 region = 252 region = 145 state = 229 state = 805 state = 44 state = 934 state = 104 state = 804 state = 988 state = 445 state = 440 state = 443 state = 667 state = 802 state = 970 state = 232 state = 821 state = 827 state = 406 state = 407 state = 651 state = 249 state = 669 state = 281 state = 183 state = 797 state = 341 state = 268 state = 908 state = 550 state = 883 state = 551 state = 886 state = 549 state = 887 state = 903 state = 546 state = 774 state = 901 state = 902 state = 781 state = 557 state = 272 state = 701 state = 780 state = 899 state = 556 state = 898 state = 778 state = 987 } } add_claim_by = ROOT hidden_effect = { set_state_flag = AFG_caliphate_can_integrate_flag } hidden_effect = { ROOT = { create_wargoal = { target = PREV.OWNER type = take_claimed_state generator = owned_states } } } ROOT = { custom_effect_tooltip = AFG_proclaim_a_new_caliphate_tt } } custom_effect_tooltip = generic_skip_one_line_tt custom_effect_tooltip = AFG_proclaim_a_new_caliphate_2_tt } } focus = { id = AFG_return_of_the_emir icon = GFX_focus_AFG_return_of_the_king prerequisite = { focus = AFG_secure_army_support } # focus = AFG_contact_rural_loyalists x = 0 y = 1 relative_position_id = AFG_secure_army_support cost = 10 ai_will_do = { factor = 10 } available = { is_subject = no has_civil_war = no fascism > 0.2 } #allow_branch = { #} search_filters = { FOCUS_FILTER_POLITICAL } completion_reward = { ## Country setup ## set_variable = { var = AFG_total_anti_emir_size #used to calculate how big portion of the army that is NOT supporting the communists value = party_popularity@democratic #democratic support } add_to_variable = { var = AFG_total_anti_emir_size value = party_popularity@communism #adds fascist support to variable } add_to_variable = { var = AFG_total_anti_emir_size value = party_popularity@neutrality #adds non-aligned support to variable } IF = { limit = { has_completed_focus = AFG_secure_army_support } add_to_variable = { var = AFG_total_anti_emir_size value = -0.3 } } start_civil_war = { ruling_party = fascism ideology = neutrality #SPLITTING TAG size = AFG.AFG_total_anti_emir_size states = { 267 1007 415 1009 } keep_all_characters = yes hidden_effect = { PREV = { # Original country AFG_mohammad_hashim_khan = { # Character set_nationality = PREV.PREV # Transfers to breakaway } AFG_mohammed_zahir_shah = { # Character set_nationality = PREV.PREV # Transfers to breakaway } } IF = { limit = { PREV.PREV = { NOT = { has_country_leader = { ruling_only = yes character = AFG_mohammad_hashim_khan } } has_civil_war = yes } } PREV.PREV = { promote_character = { character = AFG_mohammad_hashim_khan ideology = oligarchism } } } } IF = { limit = { PREV = { has_completed_focus = AFG_hold_a_loya_jirga } } PREV.PREV = { add_timed_idea = { idea = AFG_low_legitimacy_debuff days = 180 } } } } division_template = { name = "Pashtun Militia" is_locked = no regiments = { militia = { x = 0 y = 0 } militia = { x = 0 y = 1 } militia = { x = 1 y = 0 } militia = { x = 1 y = 1 } } } hidden_effect = { add_popularity = { ideology = fascism popularity = 0.4 } } random_country = { limit = { original_tag = AFG has_civil_war = yes NOT = { has_government = fascism } } division_template = { name = "Loyalist Militia" is_locked = no regiments = { militia = { x = 0 y = 0 } militia = { x = 0 y = 1 } militia = { x = 1 y = 0 } militia = { x = 1 y = 1 } } } random_owned_controlled_state = { create_unit = { division = "division_template =\"Loyalist Militia\" start_experience_factor = 0.2 start_equipment_factor = 1.0" owner = PREV count = 10 } } hidden_effect = { IF = { limit = { ROOT = { has_completed_focus = AFG_request_german_support } ENG = { NOT = { OR = { has_government = fascism is_in_faction_with = AFG is_in_faction_with = GER } } } } ENG = { country_event = { id = AFG_political_events.95 days = 7 random_days = 3 } } } } } ## Focus bonuses ## IF = { limit = { has_country_flag = AFG_germany_will_aid_amanullah } custom_effect_tooltip = generic_skip_one_line_tt country_event = { id = AFG_political_events.54 days = 1 } } IF = { limit = { has_completed_focus = AFG_contact_rural_loyalists } AFG_faqir_of_ipi = { set_character_flag = AFG_rural_cw_started } AFG_mazrak_zadran = { set_character_flag = AFG_rural_cw_started } random_owned_controlled_state = { create_unit = { division = "division_template =\"Pashtun Militia\" start_experience_factor = 0.2 start_equipment_factor = 1.0" owner = ROOT count = 5 } } } custom_effect_tooltip = generic_skip_one_line_tt remove_ideas = AFG_mohammad_zahir_shah_ns_negative custom_effect_tooltip = generic_skip_one_line_tt remove_ideas = AFG_turkish_military_mission custom_effect_tooltip = generic_skip_one_line_tt set_cosmetic_tag = AFG_emirate } } focus = { id = AFG_revive_the_1923_constitution icon = GFX_focus_AFG_revive_the_1923_constitution prerequisite = { focus = AFG_return_of_the_emir } x = 0 y = 1 relative_position_id = AFG_return_of_the_emir #mutually_exclusive = { focus = AFG_towards_an_amanullah_caliphate } cost = 10 ai_will_do = { factor = 10 } available = { has_civil_war = no } #allow_branch = { #} search_filters = { FOCUS_FILTER_POLITICAL } completion_reward = { add_country_leader_trait = { trait = AFG_authoritarian_modifier } custom_effect_tooltip = generic_skip_one_line_tt add_dynamic_modifier = { modifier = AFG_1923_constitution_modifier } remove_dynamic_modifier = { modifier = AFG_amanullah_insurection_modifier } custom_effect_tooltip = generic_skip_one_line_tt custom_effect_tooltip = available_political_advisor show_ideas_tooltip = AFG_abdul_hadi_dawi } } focus = { id = AFG_education_for_women_and_girls icon = GFX_focus_generic_university_1 prerequisite = { focus = AFG_revive_the_1923_constitution } x = -1 y = 1 relative_position_id = AFG_revive_the_1923_constitution #mutually_exclusive = { focus = } cost = 10 ai_will_do = { factor = 10 } available = { } #allow_branch = { #} search_filters = { FOCUS_FILTER_RESEARCH } completion_reward = { custom_effect_tooltip = AFG_modifiy_1923_constitution_modifier_tt add_to_variable = { AFG_1923_const_modifier_research_speed_factor = 0.1 tooltip = research_speed_factor_tt } add_to_variable = { AFG_1923_const_modifier_stability_factor = -0.05 tooltip = stability_factor_tt} custom_effect_tooltip = generic_skip_one_line_tt custom_effect_tooltip = available_political_advisor show_ideas_tooltip = AFG_soraya_tarzi } } focus = { id = AFG_enforce_western_attire icon = GFX_focus_CHL_enlarge_the_textile_industries prerequisite = { focus = AFG_revive_the_1923_constitution } x = 1 y = 1 relative_position_id = AFG_revive_the_1923_constitution #mutually_exclusive = { focus = } cost = 5 ai_will_do = { factor = 10 } available = { } #allow_branch = { #} search_filters = { FOCUS_FILTER_INDUSTRY } completion_reward = { custom_effect_tooltip = AFG_modifiy_1923_constitution_modifier_tt add_to_variable = { AFG_1923_const_modifier_stability_factor = -0.05 tooltip = stability_factor_tt } custom_effect_tooltip = generic_skip_one_line_tt IF = { limit = { 1006 = { is_owned_and_controlled_by = ROOT } } 1006 = { add_extra_state_shared_building_slots = 1 add_building_construction = { type = industrial_complex level = 1 instant_build = yes } } } ELSE = { random_core_state = { limit = { free_building_slots = { building = industrial_complex size > 0 include_locked = yes } is_owned_and_controlled_by = ROOT } add_extra_state_shared_building_slots = 1 add_building_construction = { type = industrial_complex level = 1 instant_build = yes } } } custom_effect_tooltip = generic_skip_one_line_tt custom_effect_tooltip = available_industrial_concern show_ideas_tooltip = AFG_textile_company_idea } } #focus = { # id = AFG_crackdown_on_nomadic_practices # icon = GFX_focus_PLACEHOLDER # prerequisite = { focus = AFG_education_for_women_and_girls focus = AFG_enforce_western_attire } # x = 1 # y = 1 # relative_position_id = AFG_education_for_women_and_girls # #mutually_exclusive = { focus = } # cost = 5 # ai_will_do = { # factor = 10 # } # available = { # } # #allow_branch = { # #} # search_filters = { } # completion_reward = { # custom_effect_tooltip = "TODO_ASD: Remove state modifiers for nomads. Boost infrastructure maybe?" # } #} #focus = { # id = AFG_repaying_our_friends # icon = GFX_focus_PLACEHOLDER # prerequisite = { focus = AFG_crackdown_on_nomadic_practices } # x = 0 # y = 1 # relative_position_id = AFG_crackdown_on_nomadic_practices # #mutually_exclusive = { focus = } # cost = 5 # ai_will_do = { # factor = 10 # } # available = { # } # #allow_branch = { # #} # search_filters = { } # completion_reward = { # } #} #focus = { # id = AFG_revenge_for_ousting # icon = GFX_focus_PLACEHOLDER # prerequisite = { focus = AFG_revive_the_1923_constitution } # x = 3 # y = 1 # relative_position_id = AFG_revive_the_1923_constitution # #mutually_exclusive = { focus = } # cost = 5 # ai_will_do = { # factor = 10 # } # available = { # } # #allow_branch = { # #} # search_filters = { } # completion_reward = { # } #} #focus = { # id = AFG_bring_back_exiles # icon = GFX_focus_PLACEHOLDER # prerequisite = { focus = AFG_revenge_for_ousting } # x = 0 # y = 1 # relative_position_id = AFG_revenge_for_ousting # #mutually_exclusive = { focus = } # cost = 5 # ai_will_do = { # factor = 10 # } # available = { # } # #allow_branch = { # #} # search_filters = { } # completion_reward = { # } #} focus = { id = AFG_expand_state_run_factories icon = GFX_goal_generic_construct_mil_factory prerequisite = { focus = AFG_enforce_western_attire } x = 1 y = 1 relative_position_id = AFG_enforce_western_attire #mutually_exclusive = { focus = } cost = 10 ai_will_do = { factor = 10 } available = { } #allow_branch = { #} search_filters = { FOCUS_FILTER_INDUSTRY } completion_reward = { random_core_state = { limit = { free_building_slots = { building = industrial_complex size > 0 include_locked = yes } is_owned_and_controlled_by = ROOT } add_extra_state_shared_building_slots = 1 add_building_construction = { type = industrial_complex level = 1 instant_build = yes } } custom_effect_tooltip = generic_skip_one_line_tt random_core_state = { limit = { free_building_slots = { building = arms_factory size > 0 include_locked = yes } is_owned_and_controlled_by = ROOT } add_extra_state_shared_building_slots = 1 add_building_construction = { type = arms_factory level = 1 instant_build = yes } } } } focus = { id = AFG_reinforce_the_royal_guard icon = GFX_focus_AFG_shadows_of_the_king prerequisite = { focus = AFG_education_for_women_and_girls } prerequisite = { focus = AFG_enforce_western_attire } x = 1 y = 1 relative_position_id = AFG_education_for_women_and_girls #mutually_exclusive = { focus = } cost = 5 ai_will_do = { factor = 10 } available = { } #allow_branch = { #} search_filters = { } completion_reward = { IF = { limit = { has_dlc = "La Resistance"} IF = { limit = { has_intelligence_agency = no } create_intelligence_agency = { name = "ESS" } } upgrade_intelligence_agency = upgrade_passive_defense upgrade_intelligence_agency = upgrade_anti_partisan custom_effect_tooltip = generic_skip_one_line_tt } ELSE = { add_ideas = AFG_shadows_of_the_emir_no_lar custom_effect_tooltip = generic_skip_one_line_tt } custom_effect_tooltip = AFG_reinforce_the_royal_guard_tt } } focus = { id = AFG_custail_pashtunwali_primacy icon = GFX_focus_AFG_curtail_pashtunwali_primacy prerequisite = { focus = AFG_reinforce_the_royal_guard } x = 0 y = 1 relative_position_id = AFG_reinforce_the_royal_guard #mutually_exclusive = { focus = } cost = 10 ai_will_do = { factor = 10 } available = { } #allow_branch = { #} search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_ARMY_XP FOCUS_FILTER_AIR_XP FOCUS_FILTER_NAVY_XP} completion_reward = { swap_ideas = { remove_idea = AFG_pashtunwali add_idea = AFG_pashtun_domination } } } focus = { id = AFG_agreement_with_germany icon = GFX_focus_chi_mission_to_germany prerequisite = { focus = AFG_custail_pashtunwali_primacy } x = 0 y = 1 relative_position_id = AFG_custail_pashtunwali_primacy cost = 5 ai_will_do = { factor = 10 } bypass = { is_in_faction_with = GER } available = { GER = { exists = yes has_government = fascism NOT = { has_war_with = AFG } } AFG = { is_in_faction = no } } search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_INDUSTRY } completion_reward = { GER = { country_event = { id = AFG_political_events.85 hours = 1 } } custom_effect_tooltip = AFG_agreement_with_germany_tt custom_effect_tooltip = if_they_accept_tt effect_tooltip = { GER = { give_guarantee = AFG } give_guarantee = GER add_offsite_building = { type = arms_factory level = 2 } } } } focus = { id = AFG_renounce_the_durand_line icon = GFX_focus_renounce_the_treaty_of_trianon prerequisite = { focus = AFG_custail_pashtunwali_primacy } x = 4 y = 1 relative_position_id = AFG_custail_pashtunwali_primacy cost = 10 ai_will_do = { factor = 10 } available = { } search_filters = { FOCUS_FILTER_ANNEXATION } completion_reward = { every_state = { limit = { OR = { state = 988 state = 987 state = 442 state = 445 } } add_core_of = ROOT OWNER = { IF = { limit = { NOT = { tag = ROOT has_country_flag = AFG_demanded_pak_states_flag } } country_event = { id = AFG_political_events.70 hours = 1 } } } custom_effect_tooltip = AFG_renounce_the_durand_line_tt custom_effect_tooltip = if_they_accept_tt effect_tooltip = { every_state = { limit = { OR = { state = 988 state = 987 state = 442 state = 445 } } transfer_state_to = ROOT } } } } } focus = { id = AFG_eyes_on_the_north icon = GFX_goal_anti_comintern_pact prerequisite = { focus = AFG_custail_pashtunwali_primacy } x = 2 y = 1 relative_position_id = AFG_custail_pashtunwali_primacy cost = 10 ai_will_do = { factor = 10 } available = { } search_filters = { FOCUS_FILTER_INDUSTRY } completion_reward = { every_owned_state = { limit = { is_fully_controlled_by = ROOT OR = { state = 1007 state = 415 state = 1005 } } add_building_construction = { type = infrastructure level = 2 instant_build = yes } IF = { limit = { state = 1007 } add_building_construction = { type = supply_node province = 7584 level = 1 instant_build = yes } build_railway = { level = 1 build_only_on_allied = yes fallback = yes start_province = 10737 target_province = 7584 } } } custom_effect_tooltip = generic_skip_one_line_tt add_equipment_to_stockpile = { type = train_equipment amount = 20 producer = GER } } } focus = { id = AFG_alliance_with_turkik_peoples icon = GFX_focus_TUR_turanist_ambition prerequisite = { focus = AFG_eyes_on_the_north } x = 0 y = 1 relative_position_id = AFG_eyes_on_the_north cost = 10 ai_will_do = { factor = 10 } available = { } search_filters = { } completion_reward = { custom_effect_tooltip = AFG_alliance_with_turkik_peoples_tt custom_effect_tooltip = generic_skip_one_line_tt every_state = { limit = { has_dynamic_modifier = { modifier = AFG_disgruntled_minority } } remove_dynamic_modifier = { modifier = AFG_disgruntled_minority } } } } focus = { id = AFG_red_threat icon = GFX_focus_attack_soviet prerequisite = { focus = AFG_alliance_with_turkik_peoples } x = 0 y = 1 relative_position_id = AFG_alliance_with_turkik_peoples cost = 5 ai_will_do = { factor = 10 } available = { is_subject = no } bypass = { OR = { is_subject = yes any_country_with_original_tag = { original_tag_to_check = SOU exists = no } } } search_filters = { FOCUS_FILTER_ANNEXATION } completion_reward = { IF = { limit = { GER = { is_faction_leader = yes has_war_with = SOU } ROOT = { is_in_faction = no } } GER = { country_event = { id = generic.2 hours = 1 } } } ELSE = { create_wargoal = { target = SOU type = puppet_wargoal_focus } } IF = { limit = { SOU = { exists = yes } } add_timed_idea = { idea = AFG_sov_attack_bonus days = 365 } } } } focus = { id = AFG_fortify_pakistan icon = GFX_goal_fortify_the_westwall prerequisite = { focus = AFG_renounce_the_durand_line } x = 0 y = 1 relative_position_id = AFG_renounce_the_durand_line cost = 10 ai_will_do = { factor = 10 } available = { OR = { 988 = { is_controlled_by = ROOT } 445 = { is_controlled_by = ROOT } 987 = { is_controlled_by = ROOT } 442 = { is_controlled_by = ROOT } } } search_filters = { } completion_reward = { IF = { limit = { NOT = { OR = { 988 = { is_controlled_by = ROOT } 445 = { is_controlled_by = ROOT } 987 = { is_controlled_by = ROOT } 442 = { is_controlled_by = ROOT } } } } custom_effect_tooltip = AFG_fortify_pakistan_tt } every_controlled_state = { limit = { is_fully_controlled_by = ROOT is_core_of = PAK OR = { state = 988 state = 445 state = 987 state = 442 } } add_building_construction = { type = bunker level = 2 instant_build = yes province = { all_provinces = yes limit_to_border = yes } } } } } focus = { id = AFG_into_the_plains_of_india icon = GFX_focus_attack_india prerequisite = { focus = AFG_fortify_pakistan } x = 0 y = 1 relative_position_id = AFG_fortify_pakistan cost = 5 ai_will_do = { factor = 10 } available = { is_subject = no RAJ = { exists = yes } } bypass = { OR = { is_subject = yes any_country_with_original_tag = { original_tag_to_check = RAJ exists = no } } } search_filters = { FOCUS_FILTER_ANNEXATION } completion_reward = { IF = { limit = { GER = { has_war_with = RAJ is_faction_leader = yes NOT = { is_in_faction_with = ROOT } } is_in_faction = no } GER = { country_event = { id = generic.2 hours = 1 } } } ELSE = { create_wargoal = { target = RAJ type = puppet_wargoal_focus } } IF = { limit = { RAJ = { exists = yes } } add_timed_idea = { idea = AFG_raj_attack_bonus days = 365 } } } } focus = { id = AFG_work_with_gestapo icon = GFX_focus_AFG_work_with_german_inteligence prerequisite = { focus = AFG_agreement_with_germany } x = 0 y = 1 relative_position_id = AFG_agreement_with_germany cost = 10 ai_will_do = { factor = 10 } available = { } search_filters = { FOCUS_FILTER_MANPOWER } completion_reward = { add_ideas = AFG_work_with_ger_intel_bonus } } focus = { id = AFG_pashtun_empire icon = GFX_focus_AFG_pashtun_empire prerequisite = { focus = AFG_into_the_plains_of_india focus = AFG_red_threat } x = -1 y = 1 relative_position_id = AFG_into_the_plains_of_india cost = 10 ai_will_do = { factor = 10 } available = { } search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_STABILITY } completion_reward = { set_cosmetic_tag = AFG_pashtunistan_ascendancy custom_effect_tooltip = generic_skip_one_line_tt add_country_leader_trait = { trait = AFG_ascendancy_sovreign } } } focus = { id = AFG_ally_basmachi_remnants icon = GFX_focus_generic_befriend_basmachi dynamic = yes prerequisite = { focus = AFG_custail_pashtunwali_primacy } x = -2 y = 1 relative_position_id = AFG_custail_pashtunwali_primacy cost = 5 ai_will_do = { factor = 10 } available = { } search_filters = { FOCUS_FILTER_WAR_SUPPORT FOCUS_FILTER_POLITICAL_CHARACTER } completion_reward = { every_state = { limit = { NOT = { is_core_of = ROOT is_claimed_by = ROOT is_owned_by = ROOT } OR = { region = 267 region = 269 region = 268 region = 270 region = 136 } } add_claim_by = ROOT } custom_effect_tooltip = generic_skip_one_line_tt add_manpower = 20000 custom_effect_tooltip = generic_skip_one_line_tt custom_effect_tooltip = available_political_advisor show_ideas_tooltip = AFG_korsirmat custom_effect_tooltip = available_political_advisor show_ideas_tooltip = AFG_junaid_khan } } focus = { id = AFG_from_the_ashes icon = GFX_focus_AFG_from_the_ashes prerequisite = { focus = AFG_custail_pashtunwali_primacy } x = -4 y = 1 relative_position_id = AFG_custail_pashtunwali_primacy cost = 10 ai_will_do = { factor = 10 } available = { } search_filters = { FOCUS_FILTER_WAR_SUPPORT FOCUS_FILTER_INDUSTRY } completion_reward = { add_timed_idea = { idea = AFG_from_the_ashes days = 365 } } } focus = { id = AFG_exploit_turko_persian_heritage icon = GFX_focus_TUR_treaty_of_saadabad prerequisite = { focus = AFG_from_the_ashes } x = 1 y = 1 relative_position_id = AFG_from_the_ashes mutually_exclusive = { focus = AFG_topple_iran } cost = 5 ai_will_do = { factor = 10 } available = { is_subject = no OR = { is_faction_leader = yes is_in_faction = no } OR = { PER = { exists = yes is_in_faction = no is_subject = no NOT = { has_war_with = ROOT } } TUR = { exists = yes is_in_faction = no is_subject = no NOT = { has_war_with = ROOT } } } } bypass = { PER = { OR = { exists = no is_in_faction = yes is_subject = yes has_war_with = ROOT } } TUR = { OR = { exists = no is_in_faction = yes is_subject = yes has_war_with = ROOT } } } search_filters = { FOCUS_FILTER_ANNEXATION } completion_reward = { custom_effect_tooltip = AFG_exploit_turko_persian_heritage_tt IF = { limit = { is_in_faction = no } create_faction_from_template = { template = faction_template_AFG_united_islamic_world_faction name = AFG_turko_persian_union } } } } focus = { id = AFG_topple_iran icon = GFX_focus_generic_attack_iran prerequisite = { focus = AFG_from_the_ashes } x = -1 y = 1 relative_position_id = AFG_from_the_ashes mutually_exclusive = { focus = AFG_exploit_turko_persian_heritage } cost = 5 will_lead_to_war_with = PER ai_will_do = { factor = 10 } bypass = { PER = { OR = { exists = no has_War_with = ROOT is_in_faction_with = ROOT is_subject_of = ROOT } } } available = { is_subject = no PER = { exists = yes } } search_filters = { FOCUS_FILTER_ANNEXATION } completion_reward = { create_wargoal = { target = PER type = puppet_wargoal_focus } } } focus = { id = AFG_secure_baghdad icon = GFX_focus_generic_attack_iraq prerequisite = { focus = AFG_exploit_turko_persian_heritage focus = AFG_topple_iran } x = -1 y = 1 relative_position_id = AFG_exploit_turko_persian_heritage cost = 10 ai_will_do = { factor = 10 } bypass = { OR = { IRQ = { OR = { exists = no is_in_faction_with = ROOT has_war_with = ROOT is_subject_of = ROOT } } has_wargoal_against = IRQ } } available = { is_subject = no IRQ = { exists = yes } } search_filters = { FOCUS_FILTER_ANNEXATION } completion_reward = { IRQ = { country_event = { id = AFG_political_events.80 hours = 1 } } custom_effect_tooltip = if_they_accept_tt effect_tooltip = { add_to_faction = IRQ } if = { limit = { NOT = { has_wargoal_against = IRQ } } custom_effect_tooltip = if_they_refuse_tt effect_tooltip = { create_wargoal = { target = IRQ type = puppet_wargoal_focus } } } } } focus = { id = AFG_savior_of_the_holy_lands icon = GFX_focus_AFG_savior_of_the_holy_lands prerequisite = { focus = AFG_secure_baghdad } x = 0 y = 1 relative_position_id = AFG_secure_baghdad cost = 10 ai_will_do = { factor = 10 } available = { is_subject = no OR = { 856 = { OWNER = { NOT = { tag = ROOT } } } 454 = { OWNER = { NOT = { tag = ROOT } } } 554 = { OWNER = { NOT = { tag = ROOT } } } } } search_filters = { FOCUS_FILTER_ANNEXATION } completion_reward = { add_country_leader_trait = { trait = AFG_savior_of_the_holy_lands_trait } 856 = { OWNER = { ROOT = { create_wargoal = { type = take_state_focus target = PREV generator = { 856 } } } } } 454 = { OWNER = { ROOT = { create_wargoal = { type = take_state_focus target = PREV generator = { 454 } } } } } 554 = { OWNER = { ROOT = { create_wargoal = { type = take_state_focus target = PREV generator = { 554 } } } } } } } focus = { id = AFG_increase_land_and_animal_taxes icon = GFX_focus_generic_farmland prerequisite = { focus = AFG_expand_state_run_factories } x = 0 y = 1 relative_position_id = AFG_expand_state_run_factories #mutually_exclusive = { focus = } cost = 5 ai_will_do = { factor = 10 } available = { } #allow_branch = { #} search_filters = { FOCUS_FILTER_INDUSTRY } completion_reward = { custom_effect_tooltip = AFG_modifiy_1923_constitution_modifier_tt set_variable = { AFG_1923_const_modifier_production_factory_efficiency_gain_factor = 0.1 tooltip = production_factory_efficiency_gain_factor_tt } set_variable = { AFG_1923_const_modifier_production_factory_max_efficiency_factor = 0.1 tooltip = production_factory_max_efficiency_factor_tt } add_to_variable = { AFG_1923_const_modifier_stability_factor = -0.05 tooltip = stability_factor_tt} } } focus = { id = AFG_establish_darulaman icon = GFX_focus_AFG_establish_darulaman prerequisite = { focus = AFG_education_for_women_and_girls } x = -1 y = 1 relative_position_id = AFG_education_for_women_and_girls #mutually_exclusive = { focus = } cost = 5 ai_will_do = { factor = 10 } available = { } #allow_branch = { #} search_filters = { FOCUS_FILTER_MANPOWER FOCUS_FILTER_INDUSTRY } completion_reward = { 267 = { set_province_name = { id = 10737 name = AFG_darulaman } add_dynamic_modifier = { modifier = BRA_new_capital_modifier } } } } focus = { id = AFG_darulaman_university icon = GFX_focus_generic_university_3 prerequisite = { focus = AFG_establish_darulaman } x = 0 y = 1 relative_position_id = AFG_establish_darulaman #mutually_exclusive = { focus = } cost = 10 ai_will_do = { factor = 10 } available = { } #allow_branch = { #} search_filters = { FOCUS_FILTER_RESEARCH } completion_reward = { add_research_slot = 1 } } #focus = { # id = AFG_towards_an_amanullah_caliphate # icon = GFX_focus_PLACEHOLDER # prerequisite = { focus = AFG_return_of_the_emir } # x = 2 # y = 1 # relative_position_id = AFG_return_of_the_emir # mutually_exclusive = { focus = AFG_revive_the_1923_constitution } # cost = 10 # ai_will_do = { # factor = 10 # } # available = { # has_civil_war = no # } # #allow_branch = { # #} # search_filters = { } # completion_reward = { # AFG_amunullah_khan = { # add_trait = { trait = AFG_caliph_amanullah } # } # remove_dynamic_modifier = { # modifier = AFG_amanullah_insurection_modifier # } # drop_cosmetic_tag = yes # set_cosmetic_tag = AFG_amanullah_caliphate # } #} #focus = { # id = AFG_rally_the_pashtuns # icon = GFX_focus_PLACEHOLDER # prerequisite = { focus = AFG_against_kabul } # x = 2 # y = 1 # relative_position_id = AFG_against_kabul # mutually_exclusive = { focus = AFG_rally_the_tajiks focus = AFG_contact_amanullah_loyalists } # cost = 5 # ai_will_do = { # factor = 10 # } # available = { # } # #allow_branch = { # #} # search_filters = { } # completion_reward = { # custom_effect_tooltip = "TODO_ASD: Something to lower stability but start to gain pp/cp" # } #} # #focus = { # id = AFG_rally_the_tajiks # icon = GFX_focus_PLACEHOLDER # prerequisite = { focus = AFG_against_kabul } # x = 4 # y = 1 # relative_position_id = AFG_against_kabul # mutually_exclusive = { focus = AFG_rally_the_pashtuns focus = AFG_contact_amanullah_loyalists } # cost = 5 # ai_will_do = { # factor = 10 # } # available = { # } # #allow_branch = { # #} # search_filters = { } # completion_reward = { # custom_effect_tooltip = "TODO_ASD: Event to decide which leader/group we want" # } #} # #focus = { # id = AFG_a_new_emir # icon = GFX_focus_PLACEHOLDER # prerequisite = { focus = AFG_rally_the_pashtuns focus = AFG_rally_the_tajiks } # x = 1 # y = 1 # relative_position_id = AFG_rally_the_pashtuns # #mutually_exclusive = { focus = AFG_rally_the_pashtuns focus = AFG_contact_amanullah_loyalists } # cost = 5 # ai_will_do = { # factor = 10 # } # available = { # } # #allow_branch = { # #} # search_filters = { } # completion_reward = { # custom_effect_tooltip = "TODO_ASD: Add national spirit once CW starts for unrecognized government. Can't get aid easily etc." # } #} # #focus = { # id = AFG_enforce_pashtunwali # icon = GFX_focus_PLACEHOLDER # prerequisite = { focus = AFG_a_new_emir } # prerequisite = { focus = AFG_rally_the_pashtuns } # x = -1 # y = 1 # relative_position_id = AFG_a_new_emir # #mutually_exclusive = { focus = AFG_rally_the_pashtuns focus = AFG_contact_amanullah_loyalists } # cost = 5 # ai_will_do = { # factor = 10 # } # available = { # } # #allow_branch = { # #} # search_filters = { } # completion_reward = { # custom_effect_tooltip = "TODO_ASD: Boost pashtunwali effects" # } #} # #focus = { # id = AFG_outlaw_pashtunwali # icon = GFX_focus_PLACEHOLDER # prerequisite = { focus = AFG_a_new_emir } # prerequisite = { focus = AFG_rally_the_tajiks } # x = 1 # y = 1 # relative_position_id = AFG_a_new_emir # #mutually_exclusive = { focus = AFG_rally_the_pashtuns focus = AFG_contact_amanullah_loyalists } # cost = 5 # ai_will_do = { # factor = 10 # } # available = { # } # #allow_branch = { # #} # search_filters = { } # completion_reward = { # remove_ideas = AFG_pashtunwali # } #} # #focus = { # id = AFG_call_a_jigra # icon = GFX_focus_PLACEHOLDER # prerequisite = { focus = AFG_enforce_pashtunwali } # x = -1 # y = 1 # relative_position_id = AFG_enforce_pashtunwali # #mutually_exclusive = { focus = AFG_rally_the_pashtuns focus = AFG_contact_amanullah_loyalists } # cost = 5 # ai_will_do = { # factor = 10 # } # available = { # } # #allow_branch = { # #} # search_filters = { } # completion_reward = { # custom_effect_tooltip = "TODO_ASD: Maybe get some new advisors, or maybe an event to decide on some cool effect" # } #} # #focus = { # id = AFG_put_friends_in_high_places # icon = GFX_focus_PLACEHOLDER # prerequisite = { focus = AFG_enforce_pashtunwali focus = AFG_outlaw_pashtunwali } # x = 1 # y = 1 # relative_position_id = AFG_enforce_pashtunwali # #mutually_exclusive = { focus = AFG_rally_the_pashtuns focus = AFG_contact_amanullah_loyalists } # cost = 5 # ai_will_do = { # factor = 10 # } # available = { # } # #allow_branch = { # #} # search_filters = { } # completion_reward = { # } #} # #focus = { # id = AFG_placate_the_people # icon = GFX_focus_PLACEHOLDER # prerequisite = { focus = AFG_outlaw_pashtunwali } # x = 1 # y = 1 # relative_position_id = AFG_outlaw_pashtunwali # #mutually_exclusive = { focus = AFG_rally_the_pashtuns focus = AFG_contact_amanullah_loyalists } # cost = 5 # ai_will_do = { # factor = 10 # } # available = { # } # #allow_branch = { # #} # search_filters = { } # completion_reward = { # } #} # #focus = { # id = AFG_demonstrate_commitment_to_islam # icon = GFX_focus_PLACEHOLDER # prerequisite = { focus = AFG_call_a_jigra focus = AFG_placate_the_people } # x = 4 # y = 3 # relative_position_id = AFG_a_new_emir # #mutually_exclusive = { focus = AFG_rally_the_pashtuns focus = AFG_contact_amanullah_loyalists } # cost = 5 # ai_will_do = { # factor = 10 # } # available = { # } # #allow_branch = { # #} # search_filters = { } # completion_reward = { # custom_effect_tooltip = "TODO_ASD: event chain for doing a pilgrimage" # } #} # #focus = { # id = AFG_maintain_madrasas # icon = GFX_focus_PLACEHOLDER # prerequisite = { focus = AFG_demonstrate_commitment_to_islam } # x = -2 # y = 1 # relative_position_id = AFG_demonstrate_commitment_to_islam # #mutually_exclusive = { focus = AFG_rally_the_pashtuns focus = AFG_contact_amanullah_loyalists } # cost = 5 # ai_will_do = { # factor = 10 # } # available = { # } # #allow_branch = { # #} # search_filters = { } # completion_reward = { # } #} # #focus = { # id = AFG_oath_to_emir # icon = GFX_focus_PLACEHOLDER # prerequisite = { focus = AFG_demonstrate_commitment_to_islam } # x = 0 # y = 1 # relative_position_id = AFG_demonstrate_commitment_to_islam # #mutually_exclusive = { focus = AFG_rally_the_pashtuns focus = AFG_contact_amanullah_loyalists } # cost = 5 # ai_will_do = { # factor = 10 # } # available = { # } # #allow_branch = { # #} # search_filters = { } # completion_reward = { # custom_effect_tooltip = "TODO_ASD: Boost army" # } #} # #focus = { # id = AFG_invite_turkish_exiles # icon = GFX_focus_PLACEHOLDER # prerequisite = { focus = AFG_oath_to_emir } # x = 2 # y = 1 # relative_position_id = AFG_oath_to_emir # #mutually_exclusive = { focus = AFG_rally_the_pashtuns focus = AFG_contact_amanullah_loyalists } # cost = 5 # ai_will_do = { # factor = 10 # } # available = { # } # #allow_branch = { # #} # search_filters = { } # completion_reward = { # custom_effect_tooltip = "TODO_ASD: get some military characters" # } #} # # ##focus = { ## id = AFG_wakhan_prep ## icon = GFX_focus_PLACEHOLDER ## prerequisite = { focus = AFG_wakhan_plan } ## x = 0 ## y = 1 ## relative_position_id = AFG_wakhan_plan ## #mutually_exclusive = { focus = AFG_rally_the_pashtuns focus = AFG_contact_amanullah_loyalists } ## cost = 5 ## ai_will_do = { ## factor = 10 ## } ## available = { ## } ## #allow_branch = { ## #} ## search_filters = { } ## completion_reward = { ## } ##} # #focus = { # id = AFG_unity_through_conquest # icon = GFX_focus_PLACEHOLDER # prerequisite = { focus = AFG_oath_to_emir } # x = 0 # y = 1 # relative_position_id = AFG_oath_to_emir # #mutually_exclusive = { focus = AFG_rally_the_pashtuns focus = AFG_contact_amanullah_loyalists } # cost = 5 # ai_will_do = { # factor = 10 # } # available = { # } # #allow_branch = { # #} # search_filters = { } # completion_reward = { # custom_effect_tooltip = "TODO_ASD: activate missions for conquest" # } #} # #focus = { # id = AFG_wakhan_plan # icon = GFX_focus_PLACEHOLDER # prerequisite = { focus = AFG_unity_through_conquest } # x = -3 # y = 1 # relative_position_id = AFG_unity_through_conquest # #mutually_exclusive = { focus = AFG_rally_the_pashtuns focus = AFG_contact_amanullah_loyalists } # cost = 5 # ai_will_do = { # factor = 10 # } # available = { # } # #allow_branch = { # #} # search_filters = { } # completion_reward = { # } #} # # #focus = { # id = AFG_resurrect_kumul_rebellion # icon = GFX_focus_PLACEHOLDER # prerequisite = { focus = AFG_wakhan_plan } # x = -2 # y = 1 # relative_position_id = AFG_wakhan_plan # #mutually_exclusive = { focus = AFG_rally_the_pashtuns focus = AFG_contact_amanullah_loyalists } # cost = 5 # ai_will_do = { # factor = 10 # } # available = { # } # #allow_branch = { # #} # search_filters = { } # completion_reward = { # } #} # #focus = { # id = AFG_protector_of_the_turkik_peoples # icon = GFX_focus_PLACEHOLDER # prerequisite = { focus = AFG_wakhan_plan } # x = 0 # y = 1 # relative_position_id = AFG_wakhan_plan # #mutually_exclusive = { focus = AFG_rally_the_pashtuns focus = AFG_contact_amanullah_loyalists } # cost = 5 # ai_will_do = { # factor = 10 # } # available = { # } # #allow_branch = { # #} # search_filters = { } # completion_reward = { # } #} # #focus = { # id = AFG_placeholder_5 # icon = GFX_focus_PLACEHOLDER # prerequisite = { focus = AFG_protector_of_the_turkik_peoples focus = AFG_resurrect_kumul_rebellion } # x = -1 # y = 1 # relative_position_id = AFG_protector_of_the_turkik_peoples # #mutually_exclusive = { focus = AFG_rally_the_pashtuns focus = AFG_contact_amanullah_loyalists } # cost = 5 # ai_will_do = { # factor = 10 # } # available = { # } # #allow_branch = { # #} # search_filters = { } # completion_reward = { # } #} # #focus = { # id = AFG_amu_darya_plan # icon = GFX_focus_PLACEHOLDER # prerequisite = { focus = AFG_unity_through_conquest } # x = 3 # y = 1 # relative_position_id = AFG_unity_through_conquest # #mutually_exclusive = { focus = AFG_rally_the_pashtuns focus = AFG_contact_amanullah_loyalists } # cost = 5 # ai_will_do = { # factor = 10 # } # available = { # } # #allow_branch = { # #} # search_filters = { } # completion_reward = { # } #} # #focus = { # id = AFG_promote_tajik_uprising # icon = GFX_focus_PLACEHOLDER # prerequisite = { focus = AFG_amu_darya_plan } # x = 0 # y = 1 # relative_position_id = AFG_amu_darya_plan # #mutually_exclusive = { focus = AFG_rally_the_pashtuns focus = AFG_contact_amanullah_loyalists } # cost = 5 # ai_will_do = { # factor = 10 # } # available = { # } # #allow_branch = { # #} # search_filters = { } # completion_reward = { # } #} # #focus = { # id = AFG_destabilize_uzbekistan # icon = GFX_focus_PLACEHOLDER # prerequisite = { focus = AFG_amu_darya_plan } # x = 2 # y = 1 # relative_position_id = AFG_amu_darya_plan # #mutually_exclusive = { focus = AFG_rally_the_pashtuns focus = AFG_contact_amanullah_loyalists } # cost = 5 # ai_will_do = { # factor = 10 # } # available = { # } # #allow_branch = { # #} # search_filters = { } # completion_reward = { # } #} # ##focus = { ## id = AFG_villify_soviet_presence_in_central_asia ## icon = GFX_focus_PLACEHOLDER ## prerequisite = { focus = AFG_destabilize_uzbekistan focus = AFG_promote_tajik_uprising } ## x = -1 ## y = 1 ## relative_position_id = AFG_destabilize_uzbekistan ## #mutually_exclusive = { focus = AFG_rally_the_pashtuns focus = AFG_contact_amanullah_loyalists } ## cost = 5 ## ai_will_do = { ## factor = 10 ## } ## available = { ## } ## #allow_branch = { ## #} ## search_filters = { } ## completion_reward = { ## } ##} # #focus = { # id = AFG_absorb_anti_soviet_movements # icon = GFX_focus_PLACEHOLDER # prerequisite = { focus = AFG_destabilize_uzbekistan focus = AFG_promote_tajik_uprising } # x = -1 # y = 1 # relative_position_id = AFG_destabilize_uzbekistan # #mutually_exclusive = { focus = AFG_rally_the_pashtuns focus = AFG_contact_amanullah_loyalists } # cost = 5 # ai_will_do = { # factor = 10 # } # available = { # } # #allow_branch = { # #} # search_filters = { } # completion_reward = { # } #} # ##focus = { ## id = AFG_durand_plan ## icon = GFX_focus_PLACEHOLDER ## prerequisite = { focus = AFG_oath_to_emir } ## x = ## y = 1 ## relative_position_id = AFG_oath_to_emir ## #mutually_exclusive = { focus = AFG_rally_the_pashtuns focus = #AFG_contact_amanullah_loyalists } ## cost = 5 ## ai_will_do = { ## factor = 10 ## } ## available = { ## } ## #allow_branch = { ## #} ## search_filters = { } ## completion_reward = { ## } ##} # #focus = { # id = AFG_imperial_guards # icon = GFX_focus_PLACEHOLDER # prerequisite = { focus = AFG_maintain_madrasas } # x = 0 # y = 1 # relative_position_id = AFG_maintain_madrasas # #mutually_exclusive = { focus = AFG_rally_the_pashtuns focus = AFG_contact_amanullah_loyalists } # cost = 5 # ai_will_do = { # factor = 10 # } # available = { # } # #allow_branch = { # #} # search_filters = { } # completion_reward = { # custom_effect_tooltip = "TODO_ASD: maybe change to some sort of radical youth/militarist thing. Possibly get some divisions." # } #} # ##focus = { ## id = AFG_integrate_territories ## icon = GFX_focus_PLACEHOLDER ## prerequisite = { focus = AFG_unity_through_conquest } ## x = 2 ## y = 1 ## relative_position_id = AFG_unity_through_conquest ## #mutually_exclusive = { focus = AFG_rally_the_pashtuns focus = AFG_contact_amanullah_loyalists } ## cost = 5 ## ai_will_do = { ## factor = 10 ## } ## available = { ## } ## #allow_branch = { ## #} ## search_filters = { } ## completion_reward = { ## } ##} # #focus = { # id = AFG_pashtun_caliphate # icon = GFX_focus_PLACEHOLDER # prerequisite = { focus = AFG_unity_through_conquest } # x = -1 # y = 1 # relative_position_id = AFG_unity_through_conquest # mutually_exclusive = { focus = AFG_khanate } # cost = 5 # ai_will_do = { # factor = 10 # } # available = { # } # #allow_branch = { # #} # search_filters = { } # completion_reward = { # } #} # #focus = { # id = AFG_khanate # icon = GFX_focus_PLACEHOLDER # prerequisite = { focus = AFG_unity_through_conquest } # x = 1 # y = 1 # relative_position_id = AFG_unity_through_conquest # mutually_exclusive = { focus = AFG_pashtun_caliphate } # cost = 5 # ai_will_do = { # factor = 10 # } # available = { # } # #allow_branch = { # #} # search_filters = { } # completion_reward = { # } #} # #focus = { # id = AFG_unite_the_islamic_world # icon = GFX_focus_PLACEHOLDER # prerequisite = { focus = AFG_pashtun_caliphate focus = AFG_khanate } # x = 0 # y = 1 # relative_position_id = AFG_pashtun_caliphate # #mutually_exclusive = { focus = AFG_pashtun_caliphate } # cost = 5 # ai_will_do = { # factor = 10 # } # available = { # } # #allow_branch = { # #} # search_filters = { } # completion_reward = { # } #} # #focus = { # id = AFG_demand_foreign_recognition # icon = GFX_focus_PLACEHOLDER # prerequisite = { focus = AFG_pashtun_caliphate focus = AFG_khanate } # x = 0 # y = 1 # relative_position_id = AFG_khanate # #mutually_exclusive = { focus = AFG_pashtun_caliphate } # cost = 5 # ai_will_do = { # factor = 10 # } # available = { # } # #allow_branch = { # #} # search_filters = { } # completion_reward = { # } #} # #focus = { # id = AFG_afghan_golden_age # icon = GFX_focus_PLACEHOLDER # prerequisite = { focus = AFG_unite_the_islamic_world focus = AFG_demand_foreign_recognition } # x = 1 # y = 1 # relative_position_id = AFG_unite_the_islamic_world # #mutually_exclusive = { focus = AFG_pashtun_caliphate } # cost = 5 # ai_will_do = { # factor = 10 # } # available = { # } # #allow_branch = { # #} # search_filters = { } # completion_reward = { # } #} focus = { id = AFG_alternative_partnerships icon = GFX_focus_chi_mission_to_germany #prerequisite = { focus = AFG_expel_allied_nationals focus = AFG_crackdown_on_nomadic_practices } x = 27 y = 0 relative_position_id = AFG_maintain_quami #mutually_exclusive = { focus = AFG_pursue_our_own_agenda } cost = 5 ai_will_do = { factor = 10 modifier = { factor = 0 AFG_is_on_historical_plan_trigger = yes } } available = { OR = { is_in_faction = no is_in_faction_with = GER } is_subject = no OR = { has_government = fascism has_government = neutrality } NOT = { has_idea = neutrality_idea } has_army_manpower = { size > 100000 } } #allow_branch = { #} search_filters = { FOCUS_FILTER_POLITICAL } bypass = { is_in_faction_with = GER NOT = { is_subject_of = SOV } } completion_reward = { give_military_access = GER every_other_country = { limit = { is_major = yes NOT = { OR = { tag = GER is_in_faction_with = GER } } } add_opinion_modifier = { target = ROOT modifier = large_decrease } } GER = { #custom_effect_tooltip = AFG_ideology_on_the_rise_tt } hidden_effect = { GER = { add_ideology_drift_based_on_partner = yes } } GER = { AFG = { custom_effect_tooltip = AFG_foreign_influence_tt } } } } focus = { id = AFG_officer_training icon = GFX_focus_generic_military_mission prerequisite = { focus = AFG_alternative_partnerships } x = 1 y = 1 relative_position_id = AFG_alternative_partnerships #mutually_exclusive = { focus = AFG_pashtun_caliphate } cost = 5 ai_will_do = { factor = 10 } available = { NOT = { has_idea = neutrality_idea } NOT = { has_war_with = GER } } #allow_branch = { #} search_filters = { FOCUS_FILTER_ARMY_XP } completion_reward = { IF = { limit = { has_dynamic_modifier = { modifier = AFG_nufus_modifier } } custom_effect_tooltip = AFG_nufus_intro_tt add_to_variable = { AFG_experience_gain_army_factor = 0.05 tooltip = experience_gain_army_factor_tt } add_to_variable = { AFG_training_time_factor = -0.1 tooltip = training_time_factor_tt } add_to_variable = { AFG_max_planning_factor = 0.15 tooltip = max_planning_factor_tt } add_to_variable = { AFG_planning_speed = 0.1 tooltip = planning_speed_factor_tt } } IF = { limit = { has_dynamic_modifier = { modifier = AFG_quami_modifier } } #AFG_quami_modifier custom_effect_tooltip = AFG_quami_intro_tt add_to_variable = { AFG_experience_gain_army_factor = 0.05 tooltip = experience_gain_army_factor_tt } add_to_variable = { AFG_training_time_factor = -0.1 tooltip = training_time_factor_tt } add_to_variable = { AFG_max_planning_factor = 0.15 tooltip = max_planning_factor_tt } add_to_variable = { AFG_planning_speed = 0.1 tooltip = planning_speed_factor_tt } } } } focus = { id = AFG_permit_axis_airbases icon = GFX_focus_generic_air_bases prerequisite = { focus = AFG_alternative_partnerships } x = -1 y = 1 relative_position_id = AFG_alternative_partnerships #mutually_exclusive = { focus = AFG_pashtun_caliphate } cost = 5 ai_will_do = { factor = 10 } available = { NOT = { has_idea = neutrality_idea } OR = { is_in_faction = no is_in_faction_with = GER } NOT = { has_War_with = GER } } #allow_branch = { #} search_filters = { FOCUS_FILTER_AIR_XP FOCUS_FILTER_INDUSTRY } completion_reward = { random_owned_state = { add_building_construction = { type = air_base level = 2 instant_build = yes } } custom_effect_tooltip = generic_skip_one_line_tt air_experience = 15 } } focus = { id = AFG_join_axis icon = GFX_goal_support_fascism prerequisite = { focus = AFG_permit_axis_airbases focus = AFG_officer_training } x = 1 y = 1 relative_position_id = AFG_permit_axis_airbases #mutually_exclusive = { focus = AFG_pashtun_caliphate } cost = 5 ai_will_do = { factor = 10 } bypass = { OR = { is_in_faction_with = GER is_subject = yes } } available = { is_subject = no NOT = { has_idea = neutrality_idea } threat > 0.25 GER = { OR = { has_government = fascism has_government = neutrality } is_faction_leader = yes } is_in_faction = no NOT = { has_war_with = GER } } #allow_branch = { #} search_filters = { FOCUS_FILTER_POLITICAL } completion_reward = { GER = { country_event = { id = generic.2 hours = 4 } } } } focus = { id = AFG_axis_airforce icon = GFX_focus_SWE_marauder_bombers prerequisite = { focus = AFG_permit_axis_airbases } x = -1 y = 1 relative_position_id = AFG_permit_axis_airbases #mutually_exclusive = { focus = AFG_pashtun_caliphate } cost = 5 ai_will_do = { factor = 10 } available = { NOT = { has_idea = neutrality_idea } NOT = { has_war_with = GER } } #allow_branch = { #} search_filters = { FOCUS_FILTER_AIR_XP } completion_reward = { air_experience = 20 custom_effect_tooltip = generic_skip_one_line_tt IF = { limit = { has_dlc = "By Blood Alone" } add_equipment_to_stockpile = { type = small_plane_airframe_1 amount = 100 producer = GER } } ELSE = { add_equipment_to_stockpile = { type = fighter_equipment_1 amount = 100 producer = GER } } } } focus = { id = AFG_axis_equipment icon = GFX_focus_BRA_acquire_german_tanks prerequisite = { focus = AFG_officer_training } x = 1 y = 1 relative_position_id = AFG_officer_training #mutually_exclusive = { focus = AFG_pashtun_caliphate } cost = 5 ai_will_do = { factor = 10 } available = { NOT = { has_idea = neutrality_idea } NOT = { has_war_with = GER } } #allow_branch = { #} search_filters = { FOCUS_FILTER_INTERNATIONAL_TRADE } completion_reward = { IF = { limit = { has_dlc = "Arms Against Tyranny" } add_equipment_subsidy = { cic = 1000 equipment_type = infantry_equipment seller_tags = { GER } } add_equipment_subsidy = { cic = 1000 equipment_type = artillery_equipment seller_tags = { GER } } add_equipment_subsidy = { cic = 1000 equipment_type = light_tank_chassis seller_tags = { GER } } custom_effect_tooltip = generic_skip_one_line_tt } ELSE = { add_equipment_to_stockpile = { type = infantry_equipment amount = 4000 producer = GER } add_equipment_to_stockpile = { type = artillery_equipment amount = 800 producer = GER } } add_equipment_to_stockpile = { type = infantry_equipment amount = 2000 producer = GER } add_equipment_to_stockpile = { type = artillery_equipment amount = 500 producer = GER } IF = { limit = { has_dlc = "No Step Back" } add_equipment_to_stockpile = { type = light_tank_chassis_1 amount = 100 producer = GER } } ELSE = { add_equipment_to_stockpile = { type = light_tank_equipment_1 amount = 100 producer = GER } } } } focus = { id = AFG_kabul_conference icon = GFX_focus_AFG_kabul_conference prerequisite = { focus = AFG_join_axis } x = 0 y = 1 relative_position_id = AFG_join_axis #mutually_exclusive = { focus = AFG_pashtun_caliphate } cost = 5 ai_will_do = { factor = 10 } available = { } #allow_branch = { #} search_filters = { FOCUS_FILTER_POLITICAL } completion_reward = { add_political_power = 120 custom_effect_tooltip = generic_skip_one_line_tt custom_effect_tooltip = AFG_kabul_conference_tt } } focus = { id = AFG_support_king_zahir icon = GFX_focus_rom_royal_dictatorship #prerequisite = { focus = AFG_join_axis } x = -17 y = 0 relative_position_id = AFG_against_kabul mutually_exclusive = { focus = AFG_against_kabul } search_filters = { FOCUS_FILTER_POLITICAL } cost = 5 ai_will_do = { factor = 10 } available = { has_government = neutrality has_idea = AFG_mohammad_zahir_shah_ns } #allow_branch = { #} search_filters = { FOCUS_FILTER_HISTORICAL FOCUS_FILTER_POLITICAL_CHARACTER } completion_reward = { custom_effect_tooltip = AFG_support_king_zahir_tt hidden_effect = { swap_ideas = { remove_idea = AFG_mohammad_zahir_shah_ns add_idea = AFG_mohammad_zahir_shah_ns_upgrade_1 } } custom_effect_tooltip = generic_skip_one_line_tt add_political_power = 100 hidden_effect = { IF = { limit = { has_game_rule = { rule = obsolete_focus_branches_visibility option = HIDE } } mark_focus_tree_layout_dirty = yes } } } } focus = { id = AFG_biding_our_time icon = GFX_focus_AFG_biding_our_time prerequisite = { focus = AFG_support_king_zahir } x = 5 y = 1 relative_position_id = AFG_support_king_zahir mutually_exclusive = { focus = AFG_expand_the_kings_powerbase } cost = 5 ai_will_do = { factor = 10 } available = { has_country_leader = { ruling_only = yes character = AFG_mohammad_hashim_khan } } bypass = { NOT = { has_country_leader = { ruling_only = yes character = AFG_mohammad_hashim_khan } } } search_filters = { FOCUS_FILTER_HISTORICAL FOCUS_FILTER_POLITICAL FOCUS_FILTER_INDUSTRY FOCUS_FILTER_STABILITY FOCUS_FILTER_POLITICAL_CHARACTER } completion_reward = { AFG_mohammad_hashim_khan = { add_country_leader_trait = { trait = AFG_cautious_modernizer } } } } focus = { id = AFG_expand_the_kings_powerbase icon = GFX_focus_AFG_support_king_zahir prerequisite = { focus = AFG_support_king_zahir } x = -3 y = 1 relative_position_id = AFG_support_king_zahir mutually_exclusive = { focus = AFG_biding_our_time } cost = 5 ai_will_do = { factor = 10 } available = { has_government = neutrality } #allow_branch = { #} search_filters = { FOCUS_FILTER_POLITICAL } completion_reward = { if = { limit = { has_stability > 1 } add_stability = -0.05 } else = { add_war_support = -0.05 } add_political_power = 100 } } focus = { id = AFG_forge_a_national_identity icon = GFX_focus_PER_demand_afghan_territory prerequisite = { focus = AFG_expand_the_kings_powerbase focus = AFG_biding_our_time } x = -6 y = 1 relative_position_id = AFG_biding_our_time cost = 5 ai_will_do = { factor = 10 } available = { is_subject = no } search_filters = { FOCUS_FILTER_HISTORICAL FOCUS_FILTER_POLITICAL FOCUS_FILTER_STABILITY FOCUS_FILTER_MANPOWER } completion_reward = { add_timed_idea = { idea = AFG_constructing_a_national_identity_idea days = 730 } custom_effect_tooltip = AFG_constructing_a_national_identity_tt effect_tooltip = { add_ideas = AFG_a_nation_united_idea } } } focus = { id = AFG_visit_foreign_capitals icon = GFX_focus_generic_improve_the_administration prerequisite = { focus = AFG_expand_the_kings_powerbase focus = AFG_biding_our_time } x = -4 y = 1 relative_position_id = AFG_biding_our_time #mutually_exclusive = { focus = AFG_biding_our_time } cost = 5 ai_will_do = { factor = 10 } available = { is_subject = no } #allow_branch = { #} search_filters = { FOCUS_FILTER_HISTORICAL FOCUS_FILTER_POLITICAL } completion_reward = { add_political_power = 100 every_other_country = { limit = { is_major = yes NOT = { has_war_with = ROOT } } add_opinion_modifier = { target = ROOT modifier = large_increase } } add_popularity = { ideology = democratic popularity = 0.05 } } } focus = { id = AFG_expand_royal_guard icon = GFX_focus_AFG_royal_guard prerequisite = { focus = AFG_visit_foreign_capitals } x = 1 y = 1 relative_position_id = AFG_visit_foreign_capitals #mutually_exclusive = { focus = AFG_maintain_quami } cost = 5 ai_will_do = { factor = 10 } available = { NOT = { has_government = communism has_completed_focus = AFG_republic_of_afghanistan } } #allow_branch = { #} search_filters = { } completion_reward = { set_division_template_lock = { division_template = "Royal Guard" is_locked = no } custom_effect_tooltip = generic_skip_one_line_tt random_owned_controlled_state = { create_unit = { division = "division_template = \"Royal Guard\" start_experience_factor = 0.75 start_equipment_factor = 1" owner = AFG count = 2 } } } } focus = { id = AFG_retire_the_uncles icon = GFX_focus_AFG_retire_the_uncles prerequisite = { focus = AFG_expand_the_kings_powerbase } x = 0 y = 2 relative_position_id = AFG_expand_the_kings_powerbase #mutually_exclusive = { focus = AFG_biding_our_time } cost = 5 ai_will_do = { factor = 10 } available = { has_government = neutrality } #allow_branch = { #} search_filters = { FOCUS_FILTER_POLITICAL_CHARACTER FOCUS_FILTER_POLITICAL FOCUS_FILTER_STABILITY } completion_reward = { retire_country_leader = yes hidden_effect = { remove_ideas = AFG_mohammad_zahir_shah_ns_upgrade_1 } add_country_leader_role = { character = AFG_mohammed_zahir_shah promote_leader = yes country_leader = { ideology=despotism expire="1965.1.1.1" id=-1 traits = {AFG_popular_figurehead} } } retire_character = AFG_sardar_shah_wali_khan AFG_shah_mahmud_khan = { remove_advisor_role = { slot = political_advisor } } custom_effect_tooltip = generic_skip_one_line_tt custom_effect_tooltip = AFG_promote_the_counter_elite_tt show_ideas_tooltip = AFG_ghulam_muhammad_ghobar } } #focus = { # id = AFG_privatize_factories # icon = GFX_focus_PLACEHOLDER # prerequisite = { focus = AFG_implement_currency_controls } # x = 0 # y = 1 # relative_position_id = AFG_implement_currency_controls # #mutually_exclusive = { focus = AFG_biding_our_time } # cost = 5 # ai_will_do = { # factor = 10 # } # available = { # } # #allow_branch = { # #} # search_filters = { } # completion_reward = { # } #} focus = { id = AFG_introduce_national_service icon = GFX_goal_generic_axis_build_infantry prerequisite = { focus = AFG_visit_foreign_capitals } x = -1 y = 1 relative_position_id = AFG_visit_foreign_capitals cost = 10 ai_will_do = { factor = 10 } available = { OR = { has_completed_focus = AFG_maintain_quami has_completed_focus = AFG_adopt_nufus } } search_filters = { FOCUS_FILTER_MANPOWER FOCUS_FILTER_HISTORICAL } completion_reward = { IF = { limit = { has_dynamic_modifier = { modifier = AFG_nufus_modifier } } custom_effect_tooltip = AFG_nufus_intro_tt } ELSE = { #AFG_quami_modifier custom_effect_tooltip = AFG_quami_intro_tt } add_to_variable = { AFG_conscription_factor = 0.1 tooltip = conscription_factor_tt } } } focus = { id = AFG_placeholder_1 icon = GFX_focus_chi_mission_to_germany prerequisite = { focus = AFG_biding_our_time } x = -1 y = 2 relative_position_id = AFG_biding_our_time #mutually_exclusive = { focus = AFG_seek_british_investment } cost = 10 ai_will_do = { factor = 10 } bypass = { OR = { GER = { exists = no } has_war_with = GER } } available = { OR = { NOT = { has_completed_focus = AFG_seek_british_investment } has_completed_focus = AFG_expel_allied_nationals } GER = { exists = yes NOT = { has_war_with = ROOT } } } search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_POLITICAL FOCUS_FILTER_HISTORICAL } completion_reward = { GER = { country_event = { id = AFG_political_events.20 hours = 1 } } custom_effect_tooltip = if_they_accept_tt event_option_tooltip = AFG_political_events.21.a GER = { #custom_effect_tooltip = AFG_ideology_on_the_rise_tt } hidden_effect = { GER = { add_ideology_drift_based_on_partner = yes set_country_flag = AFG_requested_our_aid } } GER = { AFG = { custom_effect_tooltip = AFG_foreign_influence_tt } } } } focus = { id = AFG_seek_british_investment icon = GFX_focus_chi_british_cooperation prerequisite = { focus = AFG_biding_our_time } x = 1 y = 2 relative_position_id = AFG_biding_our_time #mutually_exclusive = { focus = AFG_placeholder_1 } cost = 10 ai_will_do = { factor = 10 } bypass = { OR = { ENG = { exists = no } has_war_with = ENG } } available = { OR = { NOT = { has_completed_focus = AFG_placeholder_1 } has_completed_focus = AFG_expel_axis_nationals } ENG = { exists = yes NOT = { has_war_with = ROOT } } } search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_INDUSTRY } completion_reward = { ENG = { country_event = { id = AFG_political_events.20 hours = 1 } } custom_effect_tooltip = if_they_accept_tt event_option_tooltip = AFG_political_events.21.a ENG = { #custom_effect_tooltip = AFG_ideology_on_the_rise_tt } hidden_effect = { ENG = { add_ideology_drift_based_on_partner = yes set_country_flag = AFG_requested_our_aid } } ENG = { AFG = { custom_effect_tooltip = AFG_foreign_influence_tt } } } } focus = { id = AFG_reform_2 icon = GFX_focus_generic_hydroelectric_energy prerequisite = { focus = AFG_placeholder_1 focus = AFG_seek_british_investment } #prerequisite = { focus = AFG_gain_religious_support_for_reforms } x = 1 y = 1 relative_position_id = AFG_placeholder_1 cost = 10 ai_will_do = { factor = 10 } available = { 1006 = { is_owned_and_controlled_by = ROOT } } bypass = { 1006 = { NOT = { is_owned_by = ROOT } } } search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_HISTORICAL } completion_reward = { 1006 = { add_building_construction = { type = dam level = 1 instant_build = yes province = { id = 12831 } } } custom_effect_tooltip = { localization_key = building_state_modifier|dam INDENT = " " } } } focus = { id = AFG_secure_dynasty icon = GFX_focus_AFG_secure_dynasty prerequisite = { focus = AFG_reform_2 } x = 0 y = 1 relative_position_id = AFG_reform_2 #mutually_exclusive = { focus = AFG_biding_our_time } cost = 5 ai_will_do = { factor = 10 } available = { } search_filters = { FOCUS_FILTER_POLITICAL_CHARACTER } completion_reward = { unlock_decision_tooltip = AFG_a_royal_successor_decision custom_effect_tooltip = generic_skip_one_line_tt custom_effect_tooltip = AFG_promote_the_counter_elite_tt IF = { limit = { has_character = AFG_shah_mahmud_khan } show_ideas_tooltip = AFG_shah_mahmud_khan } IF = { limit = { has_character = AFG_sardar_shah_wali_khan } add_advisor_role = { character = AFG_sardar_shah_wali_khan advisor = { slot = political_advisor cost = 150 can_be_fired = yes idea_token = AFG_sardar_shah_wali_khan traits = { SWE_minister_of_defense } } activate = no } } } } focus = { id = AFG_maintain_neutrality icon = GFX_goal_generic_neutrality_focus prerequisite = { focus = AFG_secure_dynasty } x = 0 y = 1 relative_position_id = AFG_secure_dynasty cost = 5 ai_will_do = { factor = 10 } available = { is_subject = no is_in_faction = no } search_filters = { FOCUS_FILTER_HISTORICAL FOCUS_FILTER_STABILITY } completion_reward = { add_ideas = neutrality_idea custom_effect_tooltip = generic_skip_one_line_tt add_stability = 0.2 } } focus = { id = AFG_expel_axis_nationals icon = GFX_focus_generic_anti_fascist_diplomacy prerequisite = { focus = AFG_maintain_neutrality #focus = AFG_parliamentary_democracy } x = -1 y = 1 relative_position_id = AFG_maintain_neutrality cost = 5 ai_will_do = { factor = 10 } available = { has_completed_focus = AFG_placeholder_1 NOT = { has_government = fascism } NOT = { is_ally_with = GER } } search_filters = { FOCUS_FILTER_STABILITY FOCUS_FILTER_POLITICAL } completion_reward = { every_other_country = { limit = { is_in_faction_with = GER } add_opinion_modifier = { target = ROOT modifier = large_decrease } } every_other_country = { limit = { has_war_with = GER is_faction_leader = yes } #custom_effect_tooltip = AFG_ideology_on_the_rise_tt } add_stability = 0.05 IF = { limit = { has_idea = AFG_fascist_influence } remove_ideas = AFG_fascist_influence } } } focus = { id = AFG_expel_allied_nationals icon = GFX_focus_ARG_cut_ties_with_britain prerequisite = { focus = AFG_maintain_neutrality } x = 1 y = 1 relative_position_id = AFG_maintain_neutrality cost = 5 ai_will_do = { factor = 10 modifier = { factor = 0 AFG_is_on_historical_plan_trigger = yes } } available = { has_completed_focus = AFG_seek_british_investment NOT = { has_government = democratic } NOT = { is_ally_with = ENG is_ally_with = USA } } search_filters = { FOCUS_FILTER_STABILITY FOCUS_FILTER_POLITICAL } completion_reward = { IF = { limit = { ENG = { has_government = democratic is_faction_leader = yes } } every_other_country = { limit = { is_in_faction_with = ENG } add_opinion_modifier = { target = ROOT modifier = large_decrease } } } ELSE_IF = { limit = { USA = { has_government = democratic is_faction_leader = yes is_in_faction_with = ENG } } every_other_country = { limit = { is_in_faction_with = USA } add_opinion_modifier = { target = ROOT modifier = large_decrease } } } add_stability = 0.05 every_other_country = { limit = { has_war_with = ENG is_faction_leader = yes } #custom_effect_tooltip = AFG_ideology_on_the_rise_tt } IF = { limit = { has_idea = AFG_democratic_influence_2 } remove_ideas = AFG_democratic_influence_2 } } } focus = { id = AFG_pursue_our_own_agenda icon = GFX_goal_generic_neutrality_focus #prerequisite = { focus = AFG_maintain_neutrality focus = AFG_expel_allied_nationals } x = -5 y = 0 relative_position_id = AFG_alternative_partnerships cost = 10 ai_will_do = { factor = 10 } available = { OR = { is_in_faction = no is_faction_leader = yes } has_army_manpower = { size > 120000 } has_war_support > 0.40 } search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_INDUSTRY FOCUS_FILTER_HISTORICAL } completion_reward = { set_rule = { can_create_factions = yes } ETH_add_random_civ_factory_effect = yes } } focus = { id = AFG_align_with_the_allies icon = GFX_focus_ARG_join_the_allies #prerequisite = { focus = AFG_expel_axis_nationals focus = AFG_maintain_neutrality } x = -5 y = 0 relative_position_id = AFG_pursue_our_own_agenda #mutually_exclusive = { focus = AFG_pursue_our_own_agenda focus = AFG_align_with_the_allies } cost = 5 ai_will_do = { factor = 10 modifier = { factor = 0 AFG_is_on_historical_plan_trigger = yes } } available = { OR = { is_in_faction = no is_in_faction_with = ENG } is_subject = no OR = { has_government = democratic has_government = neutrality } threat > 0.45 NOT = { has_idea = neutrality_idea } } #allow_branch = { #} search_filters = { FOCUS_FILTER_POLITICAL } completion_reward = { IF = { limit = { ENG = { has_government = democratic is_faction_leader = yes } } ENG = { country_event = { id = generic.2 hours = 4 } #custom_effect_tooltip = AFG_ideology_on_the_rise_tt } every_other_country = { limit = { is_major = yes NOT = { OR = { tag = ENG is_in_faction_with = ENG } } } add_opinion_modifier = { target = ROOT modifier = large_decrease } } } ELSE_IF = { limit = { USA = { has_government = democratic is_faction_leader = yes } } USA = { country_event = { id = generic.2 hours = 4 } #custom_effect_tooltip = AFG_ideology_on_the_rise_tt } every_other_country = { limit = { is_major = yes NOT = { OR = { tag = USA is_in_faction_with = USA } } } add_opinion_modifier = { target = ROOT modifier = large_decrease } } } hidden_effect = { ENG = { add_ideology_drift_based_on_partner = yes set_country_flag = AFG_requested_our_aid } } ENG = { AFG = { custom_effect_tooltip = AFG_foreign_influence_tt } } } } #focus = { # id = AFG_demand_pashtunistan_referendum # icon = GFX_focus_PLACEHOLDER # prerequisite = { focus = AFG_pursue_our_own_agenda } # x = 0 # y = 1 # relative_position_id = AFG_pursue_our_own_agenda # #mutually_exclusive = { focus = AFG_pursue_our_own_agenda focus = AFG_align_with_the_allies } # cost = 5 # ai_will_do = { # factor = 10 # } # available = { # #PSH = { # # exists = no # #} # #NOT = { # # has_War_with = PSH # #} # } # #allow_branch = { # #} # search_filters = { FOCUS_FILTER_HISTORICAL } # completion_reward = { # custom_effect_tooltip = "TODO_ASD: Requires map rework" # # } #} focus = { id = AFG_anti_soviet_cooperation icon = GFX_goal_generic_war_with_comintern prerequisite = { focus = AFG_pursue_our_own_agenda focus = AFG_align_with_the_allies } x = -3 y = 1 relative_position_id = AFG_pursue_our_own_agenda #mutually_exclusive = { focus = AFG_pursue_our_own_agenda focus = AFG_align_with_the_allies } cost = 5 ai_will_do = { base = 5 modifier = { factor = 0 AND = { has_government = neutrality has_completed_focus = AFG_biding_our_time } } } available = { NOT = { OR = { has_government = communism has_government = fascism has_idea = neutrality_idea } } } #allow_branch = { #} search_filters = { FOCUS_FILTER_HISTORICAL FOCUS_FILTER_POLITICAL } completion_reward = { add_ideas = AFG_anti_soviet_cooperation_idea every_other_country = { limit = { is_major = yes NOT = { OR = { tag = SOU has_war_with = AFG is_in_faction_with = SOU has_government = communism } } } add_opinion_modifier = { target = ROOT modifier = large_increase } } SOU = { #custom_effect_tooltip = AFG_ideology_on_the_rise_flipped_tt } } } focus = { id = AFG_protector_of_the_tajiks icon = GFX_goal_generic_defence prerequisite = { focus = AFG_anti_soviet_cooperation } x = 0 y = 1 relative_position_id = AFG_anti_soviet_cooperation #mutually_exclusive = { focus = AFG_pursue_our_own_agenda focus = AFG_align_with_the_allies } cost = 5 ai_will_do = { base = 5 modifier = { factor = 0 AND = { has_government = neutrality has_completed_focus = AFG_biding_our_time } } } available = { NOT = { has_idea = neutrality_idea } } #allow_branch = { #} search_filters = { } completion_reward = { #custom_effect_tooltip = "TODO_ASD: Add peace out soviets decision" 742 = { add_core_of = ROOT OWNER = { ROOT = { create_wargoal = { target = PREV type = take_core_state generator = { 742 } } } } } custom_effect_tooltip = generic_skip_one_line_tt custom_effect_tooltip = AFG_protector_of_the_tajiks_tt every_state = { limit = { has_dynamic_modifier = { modifier = AFG_disgruntled_minority } } remove_dynamic_modifier = { modifier = AFG_disgruntled_minority } } } } focus = { id = AFG_propose_confederation_with_pakistan icon = GFX_focus_AFG_confederation_with_pakistan prerequisite = { focus = AFG_pursue_our_own_agenda } x = -1 y = 1 relative_position_id = AFG_pursue_our_own_agenda mutually_exclusive = { focus = AFG_afghan_pakistan_cold_War } cost = 5 ai_will_do = { factor = 10 } available = { OR = { AND = { PAK = { exists = yes } NOT = { has_war_with = PAK } } any_state = { is_core_of = PAK NOT = { is_owned_by = ROOT } } } } search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_INDUSTRY FOCUS_FILTER_ANNEXATION } completion_reward = { IF = { limit = { PAK = { exists = yes } } PAK = { country_event = { id = AFG_political_events.10 hours = 1 } } } ELSE = { every_state = { limit = { is_core_of = PAK NOT = { is_owned_by = ROOT } } OWNER = { country_event = { id = AFG_political_events.130 hours = 1 } } } } } } focus = { id = AFG_afghan_pakistan_cold_War icon = GFX_focus_AFG_pakistan_cold_war prerequisite = { focus = AFG_pursue_our_own_agenda } x = 1 y = 1 relative_position_id = AFG_pursue_our_own_agenda mutually_exclusive = { focus = AFG_propose_confederation_with_pakistan } cost = 5 ai_will_do = { factor = 10 } available = { PAK = { exists = yes } NOT = { has_war_with = PAK } } #allow_branch = { #} search_filters = { FOCUS_FILTER_RESEARCH } completion_reward = { IF = { limit = { has_dlc = "Gotterdammerung" } #generate_scientist_character = { # skills = { # specialization_rockets = 1 # } # traits = { scientist_trait_gifted_engineer } #} IF = { limit = { 267 = { is_fully_controlled_by = ROOT air_facility < 1 land_facility < 1 naval_facility < 1 nuclear_facility < 1 } } 267 = { add_building_construction = { type = air_facility level = 1 instant_build = yes province = 10852 } } } } ELSE = { add_tech_bonus = { name = JUNO_nuclear_initiative bonus = 1 uses = 1 category = nuclear } add_tech_bonus = { name = SMB_jet_tech_bonus bonus = 0.5 uses = 1 category = jet_technology } } } } focus = { id = AFG_graveyard_of_empires icon = GFX_focus_AFG_graveyard_of_empires prerequisite = { focus = AFG_pursue_our_own_agenda focus = AFG_alternative_partnerships } x = 3 y = 2 relative_position_id = AFG_propose_confederation_with_pakistan #mutually_exclusive = { focus = AFG_propose_confederation_with_pakistan } cost = 5 ai_will_do = { factor = 10 } available = { is_subject = no has_war_with_major = yes } #allow_branch = { #} search_filters = { FOCUS_FILTER_MANPOWER } completion_reward = { IF = { limit = { #AFG_nufus_modifier has_dynamic_modifier = { modifier = AFG_nufus_modifier } } custom_effect_tooltip = AFG_nufus_intro_tt add_to_variable = { AFG_army_core_defence_factor = 0.15 tooltip = army_core_defence_factor_tt } add_to_variable = { AFG_acclimatization_cold_climate_gain_factor = 0.2 tooltip = acclimatization_cold_climate_gain_factor_tt } add_to_variable = { AFG_acclimatization_hot_climate_gain_factor = 0.2 tooltip = acclimatization_hot_climate_gain_factor_tt } } IF = { #AFG_quami_modifier limit = { has_dynamic_modifier = { modifier = AFG_quami_modifier } } custom_effect_tooltip = AFG_quami_intro_tt add_to_variable = { AFG_army_core_defence_factor = 0.10 tooltip = army_core_defence_factor_tt } add_to_variable = { AFG_acclimatization_cold_climate_gain_factor = 0.1 tooltip = acclimatization_cold_climate_gain_factor_tt } add_to_variable = { AFG_acclimatization_hot_climate_gain_factor = 0.1 tooltip = acclimatization_hot_climate_gain_factor_tt } add_to_variable = { AFG_conscription_factor = 0.2 tooltip = conscription_factor_tt } } } } focus = { id = AFG_hot_war_with_pakistan icon = GFX_focus_AFG_eliminate_pakistan prerequisite = { focus = AFG_afghan_pakistan_cold_War } x = 0 y = 1 relative_position_id = AFG_afghan_pakistan_cold_War #mutually_exclusive = { focus = AFG_propose_confederation_with_pakistan } cost = 5 ai_will_do = { factor = 10 modifier = { factor = 0 AFG_is_on_historical_plan_trigger = yes } } available = { PAK = { exists = yes is_subject = no } threat > 0.5 } #allow_branch = { #} search_filters = { FOCUS_FILTER_ANNEXATION } completion_reward = { every_state = { limit = { is_core_of = PAK } add_core_of = AFG } create_wargoal = { target = PAK type = annex_everything } } } focus = { id = AFG_accelerate_integration icon = GFX_goal_generic_national_unity prerequisite = { focus = AFG_propose_confederation_with_pakistan } x = 0 y = 1 relative_position_id = AFG_propose_confederation_with_pakistan cost = 10 ai_will_do = { factor = 10 } available = { OR = { PAK = { exists = yes is_subject_of = ROOT } any_owned_state = { is_core_of = PAK NOT = { is_core_of = ROOT } } } } search_filters = { FOCUS_FILTER_POLITICAL } completion_reward = { add_political_power = 100 custom_effect_tooltip = generic_skip_one_line_tt IF = { limit = { PAK = { exists = yes is_subject_of = ROOT } } PAK = { add_ideas = AFG_integrate_puppet } } set_cosmetic_tag = AFG_confederation_pak every_state = { limit = { is_core_of = PAK } add_core_of = ROOT } } } focus = { id = AFG_prepare_for_operation_countenance icon = GFX_focus_chi_british_cooperation prerequisite = { focus = AFG_align_with_the_allies } x = 0 y = 1 relative_position_id = AFG_align_with_the_allies #mutually_exclusive = { focus = AFG_propose_confederation_with_pakistan } cost = 5 ai_will_do = { factor = 10 } available = { is_in_faction_with = ENG NOT = { is_in_faction_with = PER } NOT = { has_idea = neutrality_idea } } #allow_branch = { #} search_filters = { FOCUS_FILTER_INDUSTRY } completion_reward = { if = { limit = { 415 = { is_owned_and_controlled_by = ROOT } } 415 = { add_building_construction = { type = supply_node province = 4893 level = 1 instant_build = yes } } } else = { random_owned_controlled_state = { construct_building_in_random_province = { supply_node = 1 } } } if = { limit = { 1009 = { is_owned_and_controlled_by = ROOT } } 1009 = { add_building_construction = { type = supply_node province = 1948 level = 1 instant_build = yes } } } else = { random_owned_controlled_state = { construct_building_in_random_province = { supply_node = 1 } } } build_railway = { level = 1 build_only_on_allied = yes fallback = yes start_province = 10737 target_province = 1948 } build_railway = { level = 1 build_only_on_allied = yes fallback = yes start_province = 1948 target_province = 4893 } IF = { limit = { 1009 = { is_owned_and_controlled_by = ROOT } } 1009 = { add_building_construction = { type = bunker level = 1 instant_build = yes province = 2062 } add_building_construction = { type = bunker level = 1 instant_build = yes province = 1948 } add_building_construction = { type = bunker level = 1 instant_build = yes province = 2101 } } } IF = { limit = { 415 = { is_owned_and_controlled_by = ROOT } } 415 = { add_building_construction = { type = bunker level = 1 instant_build = yes province = 12871 } add_building_construction = { type = bunker level = 1 instant_build = yes province = 4893 } } } } } focus = { id = AFG_secure_iran icon = GFX_focus_generic_attack_iran prerequisite = { focus = AFG_prepare_for_operation_countenance } x = 0 y = 1 relative_position_id = AFG_prepare_for_operation_countenance #mutually_exclusive = { focus = AFG_propose_confederation_with_pakistan } cost = 5 ai_will_do = { factor = 10 } bypass = { OR = { has_war_with = PER PER = { OR = { exists = no AND = { is_subject = yes OVERLORD = { is_in_faction_with = ROOT } } } } } } available = { NOT = { is_in_faction_with = PER } PER = { is_in_faction = no } NOT = { has_idea = neutrality_idea } } #allow_branch = { #} search_filters = { FOCUS_FILTER_ANNEXATION } completion_reward = { create_wargoal = { target = PER type = puppet_wargoal_focus } } } focus = { id = AFG_repeal_the_durand_line icon = GFX_focus_BRA_repeale_national_security_law prerequisite = { focus = AFG_secure_iran } x = -2 y = 1 relative_position_id = AFG_secure_iran #mutually_exclusive = { focus = AFG_propose_confederation_with_pakistan } cost = 5 ai_will_do = { factor = 10 } available = { OR = { 442 = { NOT = { is_owned_by = ENG } } 445 = { is_owned_by = ENG } } } #allow_branch = { #} search_filters = { FOCUS_FILTER_ANNEXATION } completion_reward = { set_country_flag = AFG_durand_line_demand IF = { limit = { 442 = { NOT = { is_owned_by = ROOT } } 987 = { NOT = { is_owned_by = ROOT } } } IF = { limit = { 442 = { OWNER = { owns_state = 987 } } } 442 = { OWNER = { country_event = { id = AFG_political_events.110 hours = 1 } } } } ELSE = { every_state = { limit = { OR = { state = 442 state = 987 } NOT = { is_owned_by = ROOT } } OWNER = { country_event = { id = AFG_political_events.110 hours = 1 } } } } } ELSE = { every_state = { limit = { OR = { state = 442 state = 987 } NOT = { is_owned_by = ROOT } } OWNER = { country_event = { id = AFG_political_events.110 hours = 1 } } } } custom_effect_tooltip = if_they_accept_tt effect_tooltip = { 442 = { transfer_state_to = ROOT } 987 = { transfer_state_to = ROOT } } } } focus = { id = AFG_future_of_balochistan icon = GFX_focus_AFG_future_of_balochistan prerequisite = { focus = AFG_secure_iran } x = 2 y = 1 relative_position_id = AFG_secure_iran #mutually_exclusive = { focus = AFG_propose_confederation_with_pakistan } cost = 5 ai_will_do = { factor = 10 } available = { } #allow_branch = { #} search_filters = { FOCUS_FILTER_ANNEXATION } completion_reward = { set_country_flag = AFG_is_demanding_balochistan IF = { limit = { 988 = { NOT = { is_owned_by = ROOT } } 444 = { NOT = { is_owned_by = ROOT } } } IF = { limit = { 988 = { OWNER = { owns_state = 444 } } } 988 = { OWNER = { country_event = { id = AFG_political_events.110 hours = 1 } } } } ELSE = { every_state = { limit = { OR = { state = 988 state = 444 } NOT = { is_owned_by = ROOT } } OWNER = { country_event = { id = AFG_political_events.110 hours = 1 } } } } } ELSE = { every_state = { limit = { OR = { state = 988 state = 444 } NOT = { is_owned_by = ROOT } } OWNER = { country_event = { id = AFG_political_events.110 hours = 1 } } } } custom_effect_tooltip = if_they_accept_tt effect_tooltip = { 988 = { transfer_state_to = ROOT } 444 = { transfer_state_to = ROOT } } } } focus = { id = AFG_khorasan_buffer_state icon = GFX_focus_CZE_german_puppet prerequisite = { focus = AFG_secure_iran } x = 0 y = 1 relative_position_id = AFG_secure_iran #mutually_exclusive = { focus = AFG_propose_confederation_with_pakistan } cost = 5 ai_will_do = { factor = 10 } available = { OR = { 416 = { OR = { controller = { is_in_faction_with = ROOT } is_controlled_by = ROOT } } 1003 = { OR = { controller = { is_in_faction_with = ROOT } is_controlled_by = ROOT } } } PER = { OR = { has_capitulated = yes is_subject = yes exists = no } } } #allow_branch = { #} search_filters = { FOCUS_FILTER_ANNEXATION FOCUS_FILTER_POLITICAL } completion_reward = { every_state = { limit = { OR = { state = 1004 state = 416 state = 1003 } OR = { is_controlled_by = ROOT OWNER = { is_in_faction_with = ROOT } } } set_state_flag = AFG_transferable_khorasan_state } IF = { limit = { is_in_faction = yes OR = { 1004 = { OWNER = { is_faction_leader = yes is_in_faction_with = ROOT } } 416 = { OWNER = { is_faction_leader = yes is_in_faction_with = ROOT } } 1003 = { OWNER = { is_faction_leader = yes is_in_faction_with = ROOT } } } } random_country = { limit = { is_in_faction_with = ROOT is_faction_leader = yes } country_event = { id = AFG_political_events.100 hours = 1 } } } ELSE = { custom_effect_tooltip = AFG_khorasan_buffer_state_tt hidden_effect = { create_dynamic_country = { original_tag = PER set_country_flag = AFG_khorasan_flag set_politics = { ruling_party = ROOT } set_cosmetic_tag = AFG_khorasan set_research_slots = 2 reserve_dynamic_country = yes every_state = { limit = { has_state_flag = AFG_transferable_khorasan_state } transfer_state_to = PREV } every_state = { limit = { OR = { state = 1004 state = 416 state = 1003 } } add_core_of = PREV } ROOT = { puppet = PREV } } } } } } focus = { id = AFG_linchpin_of_global_defense icon = GFX_goal_generic_defence prerequisite = { focus = AFG_repeal_the_durand_line focus = AFG_future_of_balochistan } x = 2 y = 1 relative_position_id = AFG_repeal_the_durand_line #mutually_exclusive = { focus = AFG_propose_confederation_with_pakistan } cost = 5 ai_will_do = { factor = 10 } available = { } #allow_branch = { #} search_filters = { FOCUS_FILTER_INDUSTRY } completion_reward = { random_owned_state = { add_building_construction = { type = air_base level = 2 instant_build = yes } } custom_effect_tooltip = generic_skip_one_line_tt random_owned_state = { add_extra_state_shared_building_slots = 1 add_building_construction = { type = arms_factory level = 1 instant_build = yes } } custom_effect_tooltip = generic_skip_one_line_tt IF = { limit = { has_dynamic_modifier = { modifier = AFG_nufus_modifier } } custom_effect_tooltip = AFG_nufus_intro_tt } ELSE = { #AFG_quami_modifier custom_effect_tooltip = AFG_quami_intro_tt } add_to_variable = { AFG_army_defence_factor = 0.1 tooltip = army_defence_factor_tt } } } focus = { id = AFG_promote_the_counter_elite icon = GFX_focus_AFG_promote_the_counter_elite prerequisite = { focus = AFG_retire_the_uncles } x = 3 y = 1 relative_position_id = AFG_retire_the_uncles #mutually_exclusive = { focus = AFG_propose_confederation_with_pakistan } cost = 5 ai_will_do = { factor = 10 } available = { #has_stability < 0.5 #amount_research_slots > 2 has_government = neutrality } #allow_branch = { #} search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_RESEARCH FOCUS_FILTER_POLITICAL_CHARACTER } completion_reward = { add_political_power = 100 custom_effect_tooltip = generic_skip_one_line_tt add_ideas = AFG_counter_elite_on_the_rise custom_effect_tooltip = generic_skip_one_line_tt custom_effect_tooltip = AFG_promote_the_counter_elite_tt #show_ideas_tooltip = AFG_mohammed_daoud_khan show_ideas_tooltip = AFG_qiamuddin_khadim add_advisor_role = { character = AFG_mohammed_daoud_khan advisor = { slot = political_advisor cost = 150 can_be_fired = yes idea_token = AFG_mohammed_daoud_khan traits = { AFG_reformist_aristocrat } } activate = no } } } focus = { id = AFG_gant_refuge_to_jadidists icon = GFX_focus_PER_islamic_solidarity prerequisite = { focus = AFG_promote_the_counter_elite } x = 0 y = 1 relative_position_id = AFG_promote_the_counter_elite cost = 5 ai_will_do = { factor = 10 } available = { OR = { has_government = neutrality has_government = democratic } } search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_POLITICAL_CHARACTER } completion_reward = { add_timed_idea = { idea = AFG_pro_democratic_influx days = 480 } custom_effect_tooltip = generic_skip_one_line_tt custom_effect_tooltip = available_political_advisor show_ideas_tooltip = AFG_abdurauf_fitrat custom_effect_tooltip = available_political_advisor show_ideas_tooltip = AFG_fayzulla_xojayev } } focus = { id = AFG_ally_the_young_afghans icon = GFX_focus_AFG_revive_the_1923_constitution prerequisite = { focus = AFG_promote_the_counter_elite } x = -4 y = 1 relative_position_id = AFG_promote_the_counter_elite cost = 5 ai_will_do = { factor = 10 } available = { OR = { has_government = neutrality has_government = democratic } } search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_POLITICAL_CHARACTER } completion_reward = { add_timed_idea = { idea = AFG_new_young_afghan_movement days = 480 } custom_effect_tooltip = generic_skip_one_line_tt custom_effect_tooltip = available_political_advisor show_ideas_tooltip = AFG_abdul_hadi_dawi custom_effect_tooltip = available_political_advisor show_ideas_tooltip = AFG_soraya_tarzi } } focus = { id = AFG_parliamentary_democracy icon = GFX_focus_AFG_parliamentary_democracy prerequisite = { focus = AFG_promote_the_counter_elite } x = -2 y = 1 relative_position_id = AFG_promote_the_counter_elite cost = 5 ai_will_do = { factor = 10 } available = { has_civil_war = no democratic > 0.2 OR = { is_subject = no any_country = { has_subject = ROOT has_government = democratic } } } search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_STABILITY } completion_reward = { custom_effect_tooltip = AFG_parliamentary_democracy_tt set_variable = { var = AFG_total_anti_democratic_size #used to calculate how big portion of the army that is NOT supporting the communists value = party_popularity@communism #communism support } add_to_variable = { var = AFG_total_anti_democratic_size value = party_popularity@fascism #adds fascist support to variable } add_to_variable = { var = AFG_total_anti_democratic_size value = party_popularity@neutrality #adds non-aligned support to variable } IF = { limit = { democratic < 0.5 } start_civil_war = { ruling_party = democratic ideology = neutrality #SPLITTING TAG size = AFG.AFG_total_anti_democratic_size states = { 415 1007 1008 1009 } keep_political_leader = yes keep_all_characters = yes hidden_effect = { PREV = { # Original country AFG_mohammad_hashim_khan = { # Character set_nationality = PREV.PREV # Transfers to breakaway } } IF = { limit = { PREV.PREV = { NOT = { has_country_leader = { ruling_only = yes character = AFG_mohammad_hashim_khan } } has_civil_war = yes } } PREV.PREV = { promote_character = { character = AFG_mohammad_hashim_khan ideology = oligarchism } } } PREV.PREV = { remove_ideas = AFG_counter_elite_on_the_rise } } } hidden_effect = { set_popularities = { neutrality = 0 fascism = 0 communism = 0 democratic = 100 } set_party_name = { ideology = democratic name = BRA_provisional_government long_name = BRA_provisional_government_long } division_template = { name = "Loyalist Militia" #division_names_group = SWE_BS_01 is_locked = no #template_counter = 69 regiments = { militia = { x = 0 y = 0 } militia = { x = 0 y = 1 } militia = { x = 1 y = 0 } militia = { x = 1 y = 1 } } #division_cap = 0 #override_model = BRA_militia_alt_0_entity } random_owned_controlled_state = { create_unit = { division = "division_template =\"Loyalist Militia\" start_experience_factor = 0.2 start_equipment_factor = 1.0" owner = PREV count = 10 } } random_country = { limit = { original_tag = AFG has_civil_war = yes NOT = { has_government = democratic } } remove_ideas = AFG_mohammad_zahir_shah_ns remove_ideas = AFG_mohammad_zahir_shah_ns_upgrade_1 remove_ideas = AFG_mohammad_zahir_shah_ns_negative remove_ideas = AFG_turkish_military_mission division_template = { name = "Pashtun Militia" #division_names_group = SWE_BS_01 is_locked = no #template_counter = 69 regiments = { militia = { x = 0 y = 0 } militia = { x = 0 y = 1 } militia = { x = 1 y = 0 } militia = { x = 1 y = 1 } } #division_cap = 0 #override_model = BRA_militia_alt_0_entity } random_owned_controlled_state = { create_unit = { division = "division_template =\"Pashtun Militia\" start_experience_factor = 0.2 start_equipment_factor = 1.0" owner = PREV count = 13 } } } } } ELSE = { set_politics = { ruling_party = democratic last_election = "1936.1.1" election_frequency = 48 elections_allowed = yes } set_party_name = { ideology = democratic name = BRA_provisional_government long_name = BRA_provisional_government_long } } hidden_effect = { set_cosmetic_tag = AFG_kingdom_democratic add_ideas = AFG_mohammad_zahir_shah_ns_upgrade_1 } #custom_effect_tooltip = AFG_promote_the_counter_elite_tt add_country_leader_role = { character = AFG_provisional_government promote_leader = yes country_leader = { ideology = liberalism expire = "1965.1.1.1" traits = { AFG_provisional_government_trait } } } hidden_effect = { mark_focus_tree_layout_dirty = yes } } } focus = { id = AFG_gain_religious_support_for_reforms icon = GFX_focus_TUR_loosen_the_laws_on_secularism prerequisite = { focus = AFG_promote_the_counter_elite } x = 2 y = 1 relative_position_id = AFG_promote_the_counter_elite #mutually_exclusive = { focus = AFG_biding_our_time } cost = 5 ai_will_do = { factor = 10 } available = { NOT = { has_government = communism } has_civil_war = no NOT = { has_country_leader = { ruling_only = yes character = AFG_provisional_government } } } #allow_branch = { #} search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_STABILITY FOCUS_FILTER_POLITICAL_CHARACTER } completion_reward = { add_political_power = 100 custom_effect_tooltip = generic_skip_one_line_tt add_country_leader_trait = { trait = AFG_faith_in_god } } } focus = { id = AFG_reform_1 icon = GFX_focus_AFG_education_reform #prerequisite = { focus = AFG_concessions_to_pashtuns } prerequisite = { focus = AFG_parliamentary_democracy focus = AFG_gain_religious_support_for_reforms } x = 2 y = 1 relative_position_id = AFG_parliamentary_democracy #mutually_exclusive = { focus = AFG_biding_our_time } cost = 5 ai_will_do = { factor = 10 } available = { has_civil_war = no } #allow_branch = { #} search_filters = { FOCUS_FILTER_RESEARCH FOCUS_FILTER_POLITICAL_CHARACTER } completion_reward = { add_research_slot = 1 custom_effect_tooltip = generic_skip_one_line_tt custom_effect_tooltip = AFG_promote_the_counter_elite_tt show_ideas_tooltip = AFG_abdul_hai_habibi } } focus = { id = AFG_hold_elections icon = GFX_focus_AFG_pashtunistan_referendum #prerequisite = { focus = AFG_concessions_to_pashtuns } prerequisite = { focus = AFG_parliamentary_democracy } x = 0 y = 1 relative_position_id = AFG_parliamentary_democracy #mutually_exclusive = { focus = AFG_biding_our_time } cost = 5 ai_will_do = { factor = 10 } available = { has_civil_war = no } #allow_branch = { #} search_filters = { FOCUS_FILTER_POLITICAL } completion_reward = { custom_effect_tooltip = AFG_hold_elections_tt country_event = { id = AFG_political_events.140 } } } focus = { id = AFG_reform_3 icon = GFX_goal_generic_propaganda prerequisite = { focus = AFG_reform_1 } prerequisite = { focus = AFG_hold_elections } x = -2 y = 1 relative_position_id = AFG_reform_1 #mutually_exclusive = { focus = AFG_biding_our_time } cost = 5 ai_will_do = { factor = 10 } available = { } #allow_branch = { #} search_filters = { FOCUS_FILTER_POLITICAL } completion_reward = { add_timed_idea = { idea = AFG_curtail_anti_democratic_sentiments days = 720 } } } focus = { id = AFG_concessions_to_pashtuns icon = GFX_focus_AFG_concessions_to_pashtuns prerequisite = { focus = AFG_reform_3 } x = 0 y = 1 relative_position_id = AFG_reform_3 #mutually_exclusive = { focus = AFG_biding_our_time } cost = 5 ai_will_do = { factor = 10 } available = { } #allow_branch = { #} search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_STABILITY FOCUS_FILTER_ARMY_XP FOCUS_FILTER_NAVY_XP FOCUS_FILTER_AIR_XP FOCUS_FILTER_POLITICAL_CHARACTER} completion_reward = { swap_ideas = { remove_idea = AFG_pashtunwali add_idea = AFG_concessions_pashtunwali } custom_effect_tooltip = AFG_promote_the_counter_elite_tt show_ideas_tooltip = AFG_mohammad_gul_khan_momand } } #focus = { # id = AFG_bill_of_rights # #icon = GFX_focus_generic_combined_arms # #prerequisite = { focus = AFG_concessions_to_pashtuns } # prerequisite = { focus = AFG_concessions_to_pashtuns } # x = 0 # y = 1 # relative_position_id = AFG_concessions_to_pashtuns # #mutually_exclusive = { focus = AFG_biding_our_time } # cost = 10 # ai_will_do = { # factor = 10 # } # available = { # # } # #allow_branch = { # #} # search_filters = { } # completion_reward = { # # } #} focus = { id = AFG_reform_4 icon = GFX_focus_generic_modernize_industry #prerequisite = { focus = AFG_concessions_to_pashtuns } prerequisite = { focus = AFG_reform_1 } x = 0 y = 1 relative_position_id = AFG_reform_1 #mutually_exclusive = { focus = AFG_biding_our_time } cost = 10 ai_will_do = { factor = 10 } available = { } #allow_branch = { #} search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_RESEARCH } completion_reward = { add_tech_bonus = { name = AFG_reform_4 bonus = 0.5 uses = 2 category = industry } random_core_state = { limit = { free_building_slots = { building = industrial_complex size > 0 include_locked = yes } is_owned_and_controlled_by = ROOT } add_extra_state_shared_building_slots = 2 add_building_construction = { type = industrial_complex level = 2 instant_build = yes } } } } focus = { id = AFG_recruit_foreign_experts icon = GFX_focus_generic_industrialists prerequisite = { focus = AFG_reform_1 } prerequisite = { focus = AFG_gain_religious_support_for_reforms } x = 0 y = 2 relative_position_id = AFG_gain_religious_support_for_reforms #mutually_exclusive = { focus = AFG_biding_our_time } cost = 10 ai_will_do = { factor = 10 } available = { } #allow_branch = { #} search_filters = { FOCUS_FILTER_POLITICAL_CHARACTER } completion_reward = { custom_effect_tooltip = AFG_promote_the_counter_elite_tt show_ideas_tooltip = AFG_generic_american_1 show_ideas_tooltip = AFG_generic_american_2 show_ideas_tooltip = AFG_generic_american_3 } } focus = { id = AFG_seek_american_aid icon = GFX_focus_generic_befriend_usa prerequisite = { focus = AFG_recruit_foreign_experts } x = 0 y = 1 relative_position_id = AFG_recruit_foreign_experts #mutually_exclusive = { focus = AFG_biding_our_time } cost = 10 ai_will_do = { factor = 10 } available = { } #allow_branch = { #} search_filters = { FOCUS_FILTER_INDUSTRY } completion_reward = { custom_effect_tooltip = par_has_accepted_american_funds_tt add_timed_idea = { idea = idea_PAR_accepted_american_investment days = 210 } if = { limit = { is_in_faction = yes NOT = { is_in_faction_with = USA } AND = { NOT = { is_in_faction_with = ENG } ENG = { has_government = democratic } } } leave_faction = yes } } } focus = { id = AFG_rapprochement_with_non_pashtuns icon = GFX_goal_generic_major_alliance prerequisite = { focus = AFG_reform_4 } #prerequisite = { focus = AFG_concessions_to_pashtuns } x = 0 y = 1 relative_position_id = AFG_reform_4 #mutually_exclusive = { focus = AFG_biding_our_time } cost = 5 ai_will_do = { factor = 10 } available = { } #allow_branch = { #} search_filters = { FOCUS_FILTER_STABILITY } completion_reward = { every_state = { limit = { has_dynamic_modifier = { modifier = AFG_disgruntled_minority } } remove_dynamic_modifier = { modifier = AFG_disgruntled_minority } } custom_effect_tooltip = generic_skip_one_line_tt add_stability = 0.1 custom_effect_tooltip = generic_skip_one_line_tt random_army_leader = { limit = { NOT = { has_trait = desert_fox } } add_trait = { trait = desert_fox } } } } focus = { id = AFG_defending_democracy icon = GFX_focus_generic_combined_arms #prerequisite = { focus = AFG_concessions_to_pashtuns } prerequisite = { focus = AFG_rapprochement_with_non_pashtuns } x = 0 y = 1 relative_position_id = AFG_rapprochement_with_non_pashtuns #mutually_exclusive = { focus = AFG_biding_our_time } cost = 10 ai_will_do = { factor = 10 } available = { industrial_complex > 05 } #allow_branch = { #} search_filters = { FOCUS_FILTER_INDUSTRY } completion_reward = { random_owned_controlled_state = { add_extra_state_shared_building_slots = 2 add_building_construction = { type = arms_factory level = 2 instant_build = yes } } add_timed_idea = { idea = AFG_defending_the_nation_idea days = 730 } } } focus = { id = AFG_follower_of_islam icon = GFX_focus_TUR_turanist_ambition prerequisite = { focus = AFG_defending_democracy } prerequisite = { focus = AFG_seek_american_aid } x = 2 y = 1 relative_position_id = AFG_defending_democracy #mutually_exclusive = { focus = AFG_biding_our_time } cost = 10 ai_will_do = { factor = 10 } available = { } #allow_branch = { #} search_filters = { FOCUS_FILTER_STABILITY FOCUS_FILTER_POLITICAL_CHARACTER} completion_reward = { add_country_leader_trait = { trait = AFG_follower_of_islam_trait } } } focus = { id = AFG_republic_of_afghanistan icon = GFX_focus_AFG_declare_a_republic prerequisite = { focus = AFG_defending_democracy } prerequisite = { focus = AFG_concessions_to_pashtuns } x = -2 y = 1 relative_position_id = AFG_defending_democracy #mutually_exclusive = { focus = AFG_biding_our_time } cost = 10 ai_will_do = { factor = 10 } available = { democratic > 0.5 } #allow_branch = { #} search_filters = { FOCUS_FILTER_POLITICAL } completion_reward = { remove_ideas = AFG_mohammad_zahir_shah_ns_upgrade_1 country_event = { id = AFG_political_events.30 } custom_effect_tooltip = AFG_republic_of_afghanistan_tt } } focus = { id = AFG_sinkiang_intervention icon = GFX_focus_AFG_sinkang_intervention prerequisite = { focus = AFG_defending_democracy } x = 0 y = 2 relative_position_id = AFG_defending_democracy #mutually_exclusive = { focus = AFG_pursue_our_own_agenda focus = AFG_align_with_the_allies } cost = 5 ai_will_do = { factor = 10 } bypass = { has_war_with = SIK } available = { SIK = { exists = yes } NOT = { has_government = communism } NOT = { is_in_faction_with = SIK SIK = { is_puppet_of = AFG } } } #allow_branch = { #} search_filters = { FOCUS_FILTER_ANNEXATION } completion_reward = { create_wargoal = { target = SIK type = puppet_wargoal_focus } } } #focus = { # id = AFG_support_warzistan_independence # icon = GFX_focus_RAJ_lions_of_the_great_war # prerequisite = { focus = AFG_retire_the_uncles focus = AFG_placeholder_1 } # x = 3 # y = 1 # relative_position_id = AFG_retire_the_uncles # #mutually_exclusive = { focus = AFG_propose_confederation_with_pakistan } # cost = 5 # ai_will_do = { # factor = 10 # } # available = { # } # #allow_branch = { # #} # search_filters = { } # completion_reward = { # IF = { # limit = { # # } # } # # } #} focus = { id = AFG_socialist_coup icon = GFX_focus_SOV_the_last_purge prerequisite = { focus = AFG_truck_factory focus = AFG_salang_pass focus = AFG_promote_the_counter_elite } x = -7 y = 1 relative_position_id = AFG_promote_the_counter_elite cost = 5 ai_will_do = { factor = 10 modifier = { factor = 0 AFG_is_on_historical_plan_trigger = yes } } available = { has_civil_war = no communism > 0.2 OR = { is_subject = no any_country = { has_subject = ROOT has_government = communism } } } bypass = { has_government = communism } search_filters = { FOCUS_FILTER_POLITICAL } completion_reward = { custom_effect_tooltip = AFG_socialist_coup_tt set_variable = { var = AFG_total_anti_communism_size #used to calculate how big portion of the army that is NOT supporting the communists value = party_popularity@democratic #democratic support } add_to_variable = { var = AFG_total_anti_communism_size value = party_popularity@fascism #adds fascist support to variable } add_to_variable = { var = AFG_total_anti_communism_size value = party_popularity@neutrality #adds non-aligned support to variable } IF = { limit = { communism < 0.6 } start_civil_war = { ruling_party = communism ideology = ROOT size = AFG.AFG_total_anti_communism_size states = { 267 1005 1006 1008 1009 } keep_all_characters = yes hidden_effect = { PREV = { # Original country AFG_mohammad_hashim_khan = { # Character set_nationality = PREV.PREV # Transfers to breakaway } AFG_mohammed_zahir_shah = { # Character set_nationality = PREV.PREV # Transfers to breakaway } } IF = { limit = { PREV.PREV = { NOT = { has_country_leader = { ruling_only = yes character = AFG_mohammad_hashim_khan } } has_civil_war = yes } } PREV.PREV = { promote_character = { character = AFG_mohammad_hashim_khan ideology = oligarchism } } } } } division_template = { name = "Pashtun Militia" #division_names_group = SWE_BS_01 is_locked = no #template_counter = 69 regiments = { militia = { x = 0 y = 0 } militia = { x = 0 y = 1 } militia = { x = 1 y = 0 } militia = { x = 1 y = 1 } } #division_cap = 0 #override_model = BRA_militia_alt_0_entity } hidden_effect = { set_popularities = { neutrality = 0 fascism = 0 democratic = 0 communism = 100 } division_template = { name = "Loyalist Militia" #division_names_group = SWE_BS_01 is_locked = no #template_counter = 69 regiments = { militia = { x = 0 y = 0 } militia = { x = 0 y = 1 } militia = { x = 1 y = 0 } militia = { x = 1 y = 1 } } #division_cap = 0 #override_model = BRA_militia_alt_0_entity } random_owned_controlled_state = { create_unit = { division = "division_template =\"Loyalist Militia\" start_experience_factor = 0.2 start_equipment_factor = 1.0" owner = PREV count = 10 } } } random_country = { limit = { original_tag = AFG has_civil_war = yes NOT = { has_government = communism } } division_template = { name = "Loyalist Militia" #division_names_group = SWE_BS_01 is_locked = no #template_counter = 69 regiments = { militia = { x = 0 y = 0 } militia = { x = 0 y = 1 } militia = { x = 1 y = 0 } militia = { x = 1 y = 1 } } #division_cap = 0 #override_model = BRA_militia_alt_0_entity } random_owned_controlled_state = { create_unit = { division = "division_template =\"Loyalist Militia\" start_experience_factor = 0.2 start_equipment_factor = 1.0" owner = PREV count = 10 } } } } ELSE = { set_politics = { ruling_party = communism elections_allowed = no } set_party_name = { ideology = communism name = AFG_pdpa_communism_party long_name = AFG_pdpa_communism_party_long } add_stability = -0.1 } custom_effect_tooltip = generic_skip_one_line_tt custom_effect_tooltip = available_political_advisor show_ideas_tooltip = AFG_nur_muhammad_taraki hidden_effect = { mark_focus_tree_layout_dirty = yes } } } focus = { id = AFG_request_soviet_support icon = GFX_focus_generic_concessions prerequisite = { focus = AFG_socialist_coup } x = -3 y = 1 relative_position_id = AFG_socialist_coup #mutually_exclusive = { focus = AFG_propose_confederation_with_pakistan } cost = 5 ai_will_do = { factor = 10 } available = { has_civil_war = yes has_government = communism SOU = { exists = yes has_government = communism } } #allow_branch = { #} search_filters = { FOCUS_FILTER_POLITICAL } completion_reward = { SOU = { country_event = { id = AFG_political_events.120 hours = 1 } } custom_effect_tooltip = if_they_accept_tt SOU = { event_option_tooltip = AFG_political_events.120.a } event_option_tooltip = AFG_political_events.121.a } } focus = { id = AFG_international_brigades icon = GFX_focus_ITA_corpo_volontari_della_liberta prerequisite = { focus = AFG_socialist_coup focus = AFG_parliamentary_democracy } x = 3 y = 1 relative_position_id = AFG_socialist_coup #mutually_exclusive = { focus = AFG_propose_confederation_with_pakistan } cost = 5 ai_will_do = { factor = 10 } available = { OR = { has_civil_war = yes has_war = yes } OR = { has_government = communism has_government = democratic } } #allow_branch = { #} search_filters = { FOCUS_FILTER_MANPOWER } completion_reward = { add_timed_idea = { idea = AFG_communist_international_brigades days = 730 } } } focus = { id = AFG_state_atheism icon = GFX_focus_AFG_state_atheism prerequisite = { focus = AFG_socialist_coup } x = -1 y = 1 relative_position_id = AFG_socialist_coup #mutually_exclusive = { focus = AFG_propose_confederation_with_pakistan } cost = 5 ai_will_do = { factor = 10 } available = { has_civil_war = no has_government = communism } #allow_branch = { #} search_filters = { FOCUS_FILTER_RESEARCH } completion_reward = { add_ideas = AFG_state_atheism } } focus = { id = AFG_soviet_research_cooperation icon = GFX_goal_tfv_generic_tech_sharing prerequisite = { focus = AFG_socialist_coup } x = 1 y = 1 relative_position_id = AFG_socialist_coup #mutually_exclusive = { focus = AFG_propose_confederation_with_pakistan } cost = 5 ai_will_do = { factor = 10 } available = { has_government = communism has_civil_war = no SOU = { exists = yes has_government = communism } } #allow_branch = { #} search_filters = { FOCUS_FILTER_RESEARCH } completion_reward = { SOU = { country_event = { id = JUNO_brazil_events.120 hours = 1 } } custom_effect_tooltip = AFG_soviet_research_technology_exchange_tt } } focus = { id = AFG_communist_industrialization icon = GFX_goal_generic_soviet_construction prerequisite = { focus = AFG_state_atheism focus = AFG_soviet_research_cooperation } x = 2 y = 1 relative_position_id = AFG_state_atheism #mutually_exclusive = { focus = AFG_propose_confederation_with_pakistan } cost = 5 ai_will_do = { factor = 10 } available = { } #allow_branch = { #} search_filters = { FOCUS_FILTER_INDUSTRY } completion_reward = { add_timed_idea = { idea = idea_URG_rapid_industrialization days = 720 } } } focus = { id = AFG_communist_propaganda icon = GFX_focus_SWE_refuge_for_revolutionaries prerequisite = { focus = AFG_communist_industrialization } x = 1 y = 1 relative_position_id = AFG_communist_industrialization #mutually_exclusive = { focus = AFG_propose_confederation_with_pakistan } cost = 5 ai_will_do = { factor = 10 } available = { has_tech = radio } #allow_branch = { #} search_filters = { FOCUS_FILTER_STABILITY FOCUS_FILTER_MANPOWER FOCUS_FILTER_WAR_SUPPORT FOCUS_FILTER_POLITICAL } completion_reward = { custom_effect_tooltip = PER_communist_propaganda_tt } } focus = { id = AFG_support_soviets_in_asia icon = GFX_focus_SOV_builder_of_the_red_army prerequisite = { focus = AFG_state_atheism focus = AFG_soviet_research_cooperation } x = -2 y = 1 relative_position_id = AFG_soviet_research_cooperation #mutually_exclusive = { focus = AFG_propose_confederation_with_pakistan } cost = 5 ai_will_do = { factor = 10 } available = { is_subject = no has_government = communism SOU = { exists = yes is_in_faction = yes has_government = communism } } bypass = { OR = { is_subject = yes is_in_faction_with = SOU SOU = { OR = { exists = no NOT = { has_government = communism } } } } } #allow_branch = { #} search_filters = { FOCUS_FILTER_POLITICAL } completion_reward = { SOU = { country_event = { id = generic.2 hours = 4 } } set_rule = { can_create_factions = yes } set_rule = { can_send_volunteers = yes } } } focus = { id = AFG_integrate_tajik_and_uzbek_republics icon = GFX_focus_AFG_defender_of_central_asia prerequisite = { focus = AFG_communist_industrialization focus = AFG_support_soviets_in_asia } x = -1 y = 2 relative_position_id = AFG_communist_industrialization #mutually_exclusive = { focus = AFG_propose_confederation_with_pakistan } cost = 5 ai_will_do = { factor = 10 } available = { is_in_faction_with = SOU 584 = { is_owned_by = SOU } 832 = { is_owned_by = SOU } 831 = { is_owned_by = SOU } 823 = { is_owned_by = SOU } 830 = { is_owned_by = SOU } 585 = { is_owned_by = SOU } 405 = { is_owned_by = SOU } 742 = { is_owned_by = SOU } } #allow_branch = { #} search_filters = { FOCUS_FILTER_ANNEXATION } completion_reward = { SOU = { country_event = { id = AFG_political_events.01 days = 4 random_days = 5 } } custom_effect_tooltip = AFG_integrate_tajik_and_uzbek_republics_tt effect_tooltip = { every_state = { limit = { is_core_of = TMS } transfer_state_to = ROOT } every_state = { limit = { is_core_of = TAJ } transfer_state_to = ROOT } every_state = { limit = { is_core_of = UZB } transfer_state_to = ROOT } } set_cosmetic_tag = AFG_central_asia } } focus = { id = AFG_sov_iran_war icon = GFX_focus_generic_attack_iran prerequisite = { focus = AFG_support_soviets_in_asia } x = -3 y = 1 relative_position_id = AFG_communist_industrialization #mutually_exclusive = { focus = AFG_propose_confederation_with_pakistan } cost = 5 will_lead_to_war_with = PER ai_will_do = { factor = 10 } available = { is_in_faction_with = SOU PER = { exists = yes NOT = { OR = { has_government = communism has_non_aggression_pact_with = SOU is_subject_of = SOU } } } } #allow_branch = { #} search_filters = { FOCUS_FILTER_ANNEXATION } completion_reward = { create_wargoal = { target = PER type = puppet_wargoal_focus } } } focus = { id = AFG_development_in_uzb icon = GFX_focus_AFG_develop_uzbekistan prerequisite = { focus = AFG_integrate_tajik_and_uzbek_republics } x = -2 y = 1 relative_position_id = AFG_integrate_tajik_and_uzbek_republics #mutually_exclusive = { focus = AFG_propose_confederation_with_pakistan } cost = 10 ai_will_do = { factor = 10 } available = { #is_in_faction_with = SOU 830 = { is_owned_and_controlled_by = ROOT } } #allow_branch = { #} search_filters = { FOCUS_FILTER_INDUSTRY } completion_reward = { 830 = { add_resource = { type = oil amount = 8 } add_resource = { type = tungsten amount = 8 } add_extra_state_shared_building_slots = 1 add_building_construction = { type = industrial_complex level = 1 instant_build = yes } } } } focus = { id = AFG_development_in_taj icon = GFX_focus_AFG_develop_tajikistan prerequisite = { focus = AFG_integrate_tajik_and_uzbek_republics } x = 2 y = 1 relative_position_id = AFG_integrate_tajik_and_uzbek_republics #mutually_exclusive = { focus = AFG_propose_confederation_with_pakistan } cost = 10 ai_will_do = { factor = 10 } available = { #is_in_faction_with = SOU 742 = { is_owned_and_controlled_by = ROOT } } #allow_branch = { #} search_filters = { FOCUS_FILTER_INDUSTRY } completion_reward = { 742 = { add_resource = { type = aluminium amount = 8 } add_extra_state_shared_building_slots = 2 add_building_construction = { type = industrial_complex level = 2 instant_build = yes } } } } focus = { id = AFG_development_in_tms icon = GFX_focus_AFG_develop_turkmenistan prerequisite = { focus = AFG_integrate_tajik_and_uzbek_republics } x = 0 y = 1 relative_position_id = AFG_integrate_tajik_and_uzbek_republics #mutually_exclusive = { focus = AFG_propose_confederation_with_pakistan } cost = 10 ai_will_do = { factor = 10 } available = { #is_in_faction_with = SOU 584 = { is_owned_and_controlled_by = ROOT } } #allow_branch = { #} search_filters = { FOCUS_FILTER_INDUSTRY } completion_reward = { 584 = { add_resource = { type = oil amount = 8 } add_extra_state_shared_building_slots = 2 add_building_construction = { type = industrial_complex level = 2 instant_build = yes } } } } focus = { id = AFG_central_asian_unification icon = GFX_focus_AFG_integrate_tajik_and_uzbek_republics prerequisite = { focus = AFG_development_in_taj focus = AFG_development_in_uzb focus = AFG_development_in_tms } x = -2 y = 1 relative_position_id = AFG_development_in_taj #mutually_exclusive = { focus = AFG_propose_confederation_with_pakistan } cost = 10 ai_will_do = { factor = 10 } available = { #is_in_faction_with = SOU any_owned_state = { is_core_of = TAJ is_controlled_by = ROOT } } #allow_branch = { #} search_filters = { FOCUS_FILTER_INDUSTRY } completion_reward = { custom_effect_tooltip = AFG_central_asian_unification_tt every_state = { limit = { has_dynamic_modifier = { modifier = AFG_disgruntled_minority } } remove_dynamic_modifier = { modifier = AFG_disgruntled_minority } } } } }