CHI_default_unit_production = { allowed = { original_tag = CHI } enable = { always = yes } abort_when_not_enabled = yes ai_strategy = { type = role_ratio id = L_Inf value = -100 } ai_strategy = { type = role_ratio id = infantry value = 25 } ai_strategy = { type = role_ratio id = garrison value = 5 } ai_strategy = { type = role_ratio id = apc_mechanized value = 30 } ai_strategy = { type = role_ratio id = ifv_mechanized value = 30 } ai_strategy = { type = role_ratio id = armor value = 50 } ai_strategy = { type = role_ratio id = marines value = 25 } ai_strategy = { type = role_ratio id = Air_helicopters value = 5 } ai_strategy = { type = role_ratio id = Air_mech value = 5 } ai_strategy = { type = role_ratio id = Special_Forces value = 18 } } CHI_default_stockpile_management = { allowed = { original_tag = CHI } enable = { has_war = no date < 2006.1.1 } abort_when_not_enabled = yes ai_strategy = { type = equipment_stockpile_surplus_ratio value = 20 } # double base stockpile #from 25 to 35 } CHI_default_stockpile_management_generic = { allowed = { original_tag = CHI } enable = { has_war = no date > 2006.1.1 } abort_when_not_enabled = yes ai_strategy = { type = equipment_stockpile_surplus_ratio value = 45 } # double base stockpile #from 25 to 35 } CHI_var_stockpile_management = { allowed = { original_tag = CHI } enable = { has_war = yes } abort_when_not_enabled = yes ai_strategy = { type = equipment_stockpile_surplus_ratio value = 30 } # double base stockpile #from 25 to 35 } CHI_airforce_breakdown = { allowed = { original_tag = CHI } enable = { always = yes } abort_when_not_enabled = yes #unit ratios - set the base number of planes per airfield / cv slot that the nation wants ai_strategy = { type = unit_ratio id = fighter value = 4 } ai_strategy = { type = unit_ratio id = cas value = 4 } ai_strategy = { type = unit_ratio id = naval_bomber value = 2 } ai_strategy = { type = unit_ratio id = tactical_bomber value = 8 } ai_strategy = { type = unit_ratio id = interceptor value = 16 } ai_strategy = { type = unit_ratio id = scout_plane value = 2 } ai_strategy = { type = unit_ratio id = suicide value = 4 } ai_strategy = { type = unit_ratio id = strategic_bomber value = 5 } #production = weight factories based on the specific archtype ai_strategy = { type = equipment_variant_production_factor id = small_plane_airframe value = -100 } ai_strategy = { type = equipment_variant_production_factor id = small_plane_strike_airframe value = -100 } ai_strategy = { type = equipment_variant_production_factor id = small_plane_cas_airframe value = -100 } ai_strategy = { type = equipment_variant_production_factor id = small_plane_naval_bomber_airframe value = -100 } ai_strategy = { type = equipment_variant_production_factor id = small_plane_suicide_airframe value = -25 } ai_strategy = { type = equipment_variant_production_factor id = medium_plane_cas_airframe value = -75 } ai_strategy = { type = equipment_variant_production_factor id = medium_plane_maritime_patrol_airframe value = -90 } ai_strategy = { type = equipment_variant_production_factor id = medium_plane_suicide_airframe value = -75 } ai_strategy = { type = equipment_variant_production_factor id = medium_plane_air_transport_airframe value = -90 } ai_strategy = { type = equipment_variant_production_factor id = large_plane_airframe value = -80 } ai_strategy = { type = equipment_variant_production_factor id = large_plane_air_transport_airframe value = -90 } ai_strategy = { type = equipment_variant_production_factor id = large_plane_awacs_airframe value = -90 } ai_strategy = { type = equipment_variant_production_factor id = large_plane_cas_airframe value = -100 } ai_strategy = { type = equipment_variant_production_factor id = large_plane_maritime_patrol_airframe value = -100 } ai_strategy = { type = equipment_variant_production_factor id = cv_small_plane_airframe value = -100 } ai_strategy = { type = equipment_variant_production_factor id = cv_small_plane_strike_airframe value = -100 } ai_strategy = { type = equipment_variant_production_factor id = cv_small_plane_cas_airframe value = -100 } ai_strategy = { type = equipment_variant_production_factor id = cv_small_plane_naval_bomber_airframe value = -90 } ai_strategy = { type = equipment_variant_production_factor id = cv_small_plane_suicide_airframe value = -100 } ai_strategy = { type = equipment_variant_production_factor id = cv_medium_plane_airframe value = -100 } ai_strategy = { type = equipment_variant_production_factor id = cv_medium_plane_fighter_airframe value = 150 } ai_strategy = { type = equipment_variant_production_factor id = cv_medium_plane_cas_airframe value = -90 } ai_strategy = { type = equipment_variant_production_factor id = cv_medium_plane_maritime_patrol_airframe value = -100 } ai_strategy = { type = equipment_variant_production_factor id = cv_medium_plane_air_transport_airframe value = -100 } ai_strategy = { type = equipment_variant_production_factor id = cv_medium_plane_scout_airframe value = -100 } ai_strategy = { type = air_factory_balance value = 70 } } #CV-specific ratios for early game (lower capability) CHI_airforce_cv_ratios_early = { allowed = { original_tag = CHI } enable = { date < 2006.1.1 } abort_when_not_enabled = yes ai_strategy = { type = unit_ratio id = cv_fighter value = 1 } ai_strategy = { type = unit_ratio id = cv_naval_bomber value = 8 } ai_strategy = { type = unit_ratio id = cv_suicide value = 1 } ai_strategy = { type = unit_ratio id = cv_interceptor value = 2 } } #CV-specific ratios for late game (higher capability) CHI_airforce_cv_ratios_late = { allowed = { original_tag = CHI } enable = { num_of_military_factories > 60 date > 2006.1.1 } abort_when_not_enabled = yes ai_strategy = { type = unit_ratio id = cv_fighter value = 4 } ai_strategy = { type = unit_ratio id = cv_cas value = 4 } ai_strategy = { type = unit_ratio id = cv_naval_bomber value = 8 } ai_strategy = { type = unit_ratio id = cv_suicide value = 1 } ai_strategy = { type = unit_ratio id = cv_interceptor value = 8 } } CHI_equipment_stockpile_surplus_ratio = { allowed = { original_tag = CHI } enable = { num_of_military_factories < 100 } abort_when_not_enabled = yes ai_strategy = { type = equipment_stockpile_surplus_ratio value = -50 } #default = 65%. 65-30 = 15% and + 40% from define.lua = 55% } CHI_dont_build_transport_helicopter = { allowed = { original_tag = CHI } enable = { has_equipment = { heavy_tank_amphibious_chassis > 1500 } } abort_when_not_enabled = yes ai_strategy = { type = equipment_variant_production_factor id = heavy_tank_amphibious_chassis value = -500 } } CHI_build_transport_helicopter = { allowed = { original_tag = CHI } enable = { has_equipment = { heavy_tank_amphibious_chassis < 100 } } abort_when_not_enabled = yes ai_strategy = { type = equipment_variant_production_factor id = heavy_tank_amphibious_chassis value = 10 } ai_strategy = { type = save_equipment id = heavy_tank_amphibious_chassis value = 100 } } CHI_build_APC = { allowed = { original_tag = CHI } enable = { date < 2006.1.1 has_equipment = { medium_tank_amphibious_chassis < 1 } } abort_when_not_enabled = yes ai_strategy = { type = equipment_variant_production_factor id = medium_tank_amphibious_chassis value = 1000 } } CHI_build_IFV = { allowed = { original_tag = CHI } enable = { date < 2006.1.1 has_equipment = { medium_tank_flame_chassis < 1 } } abort_when_not_enabled = yes ai_strategy = { type = equipment_variant_production_factor id = medium_tank_flame_chassis value = 1000 } } CHI_build_L_AT_Equipment = { allowed = { original_tag = CHI } enable = { date < 2006.1.1 has_equipment = { L_AT_Equipment < 1 } } abort_when_not_enabled = yes ai_strategy = { type = equipment_variant_production_factor id = L_AT_Equipment value = 1000 } } CHI_build_H_AT_Equipment = { allowed = { original_tag = CHI } enable = { date < 2006.1.1 has_equipment = { H_AT_Equipment < 1 } } abort_when_not_enabled = yes ai_strategy = { type = equipment_variant_production_factor id = H_AT_Equipment value = 1000 } } CHI_build_infantry_weapons = { allowed = { original_tag = CHI } enable = { date < 2006.1.1 has_equipment = { infantry_weapons_type < 1 } } abort_when_not_enabled = yes ai_strategy = { type = equipment_variant_production_factor id = infantry_weapons_type value = 1000 } } CHI_build_util_vehicle_type = { allowed = { original_tag = CHI } enable = { date < 2006.1.1 has_equipment = { util_vehicle_type < 500 } } abort_when_not_enabled = yes ai_strategy = { type = equipment_variant_production_factor id = util_vehicle_type value = 999 } ai_strategy = { type = save_equipment id = util_vehicle_type value = 500 } } CHI_build_cnc_equipment_type = { allowed = { original_tag = CHI } enable = { date < 2006.1.1 has_equipment = { cnc_equipment_type < 1 } } abort_when_not_enabled = yes ai_strategy = { type = equipment_variant_production_factor id = cnc_equipment_type value = 1000 } } CHI_default_naval_breakdown = { allowed = { original_tag = CHI } enable = { original_tag = CHI NOT = { has_completed_focus = CHI_the_surface_capital_fleet } NOT = { has_completed_focus = CHI_undersea_supremacy } } abort_when_not_enabled = yes ai_strategy = { type = role_ratio id = naval_corvettes value = 12 } ai_strategy = { type = role_ratio id = naval_frigate value = 11 } ai_strategy = { type = role_ratio id = naval_destroyer value = 25 } ai_strategy = { type = role_ratio id = naval_stealth_destroyer value = 4 } ai_strategy = { type = role_ratio id = naval_attack_submarine value = 20 } ai_strategy = { type = role_ratio id = naval_missile_submarine value = 7 } ai_strategy = { type = role_ratio id = naval_helicopter_operator value = 8 } ai_strategy = { type = role_ratio id = naval_carrier value = 5 } ai_strategy = { type = role_ratio id = naval_cruiser value = 8 } } CHI_surface_capital_naval_breakdown = { allowed = { original_tag = CHI } enable = { original_tag = CHI has_completed_focus = CHI_the_surface_capital_fleet } abort_when_not_enabled = yes ai_strategy = { type = role_ratio id = naval_corvettes value = 10 } ai_strategy = { type = role_ratio id = naval_frigate value = 12 } ai_strategy = { type = role_ratio id = naval_destroyer value = 28 } ai_strategy = { type = role_ratio id = naval_stealth_destroyer value = 5 } ai_strategy = { type = role_ratio id = naval_attack_submarine value = 12 } ai_strategy = { type = role_ratio id = naval_missile_submarine value = 4 } ai_strategy = { type = role_ratio id = naval_helicopter_operator value = 8 } ai_strategy = { type = role_ratio id = naval_carrier value = 9 } ai_strategy = { type = role_ratio id = naval_cruiser value = 12 } } CHI_undersea_supremacy_naval_breakdown = { allowed = { original_tag = CHI } enable = { original_tag = CHI has_completed_focus = CHI_undersea_supremacy } abort_when_not_enabled = yes ai_strategy = { type = role_ratio id = naval_corvettes value = 14 } ai_strategy = { type = role_ratio id = naval_frigate value = 12 } ai_strategy = { type = role_ratio id = naval_destroyer value = 18 } ai_strategy = { type = role_ratio id = naval_stealth_destroyer value = 4 } ai_strategy = { type = role_ratio id = naval_attack_submarine value = 30 } ai_strategy = { type = role_ratio id = naval_missile_submarine value = 12 } ai_strategy = { type = role_ratio id = naval_helicopter_operator value = 4 } ai_strategy = { type = role_ratio id = naval_carrier value = 2 } ai_strategy = { type = role_ratio id = naval_cruiser value = 4 } } CHI_area_priority = { allowed = { original_tag = CHI } enable = { always = yes } abort_when_not_enabled = yes ai_strategy = { type = area_priority id = europe value = 50 } ai_strategy = { type = area_priority id = north_america value = 50 } ai_strategy = { type = area_priority id = caribbean value = 50 } ai_strategy = { type = area_priority id = south_america value = 75 } ai_strategy = { type = area_priority id = asia value = 200 } ai_strategy = { type = area_priority id = pacific value = 150 } ai_strategy = { type = area_priority id = oceania value = 100 } ai_strategy = { type = area_priority id = middle_east value = 150 } ai_strategy = { type = area_priority id = africa value = 150 } } ###CHINA SPY STRATEGIES### # Spy on USA, steal military tech from USA CHI_spy_on_USA = { allowed = { original_tag = CHI } enable = { country_exists = USA CHI = { has_government = communism } NOT = { USA = { is_subject_of = CHI } } } abort_when_not_enabled = yes ai_strategy = { type = operative_mission value = 80 mission = build_intel_network mission_target = USA } ai_strategy = { type = operative_operation value = 80 operation = operation_steal_tech_army operation_target = USA } } # Spy on TAI, infiltrate TAI army, and steal tech from TAI CHI_spy_on_TAI = { allowed = { original_tag = CHI } enable = { country_exists = TAI has_government = communism NOT = { has_completed_focus = CHI_TAI_cross_strait_policy } TAI = { NOT = { is_subject_of = CHI } } } abort_when_not_enabled = yes ai_strategy = { type = operative_mission value = 80 mission = build_intel_network mission_target = TAI } ai_strategy = { type = operative_operation value = 80 operation = operation_infiltrate_armed_forces_army operation_target = TAI } } ###CHINA WAR STRATEGIES### CHI_defend_beijing = { #If Beijing region is part of a theater, this theater has priority for units allowed = { original_tag = CHI } enable = { always = yes } abort_when_not_enabled = yes ai_strategy = { type = theatre_distribution_demand_increase id = 547 #state ID value = 20 } } CHI_antagonize_taiwan = { #War preparation against Taiwan allowed = { original_tag = CHI } enable = { CHI = { has_government = communism } NOT = { TAI = { is_subject_of = CHI } } } abort_when_not_enabled = yes ai_strategy = { type = antagonize id = "TAI" value = 200 } ai_strategy = { type = contain id = "TAI" value = 150 } ai_strategy = { type = prepare_for_war id = TAI value = 100 } } CHI_focus_naval_taiwan = { #China focus on invading Taiwan, ignore Japan until Taiwan captured. allowed = { original_tag = CHI } enable = { has_war_with = TAI } abort_when_not_enabled = yes ai_strategy = { type = invade id = TAI value = 200 } ai_strategy = { type = invade id = KOR value = -100 } ai_strategy = { type = invade id = JAP value = -100 } ai_strategy = { type = invade id = USA value = -100 } } CHI_focus_naval_japan = { #China focus on invading Japan. Ignore the rest until done allowed = { original_tag = CHI } enable = { has_war_with = JAP } abort_when_not_enabled = yes ai_strategy = { type = invade id = KOR value = -100 } ai_strategy = { type = invade id = JAP value = 100 } ai_strategy = { type = invade id = USA value = -100 } } CHI_invade_USA = { #CHI is less motivated to invade USA until it can fight US fleet and not at war with Japan and Taiwan allowed = { original_tag = CHI } enable = { NOT = { has_war_with = JAP } NOT = { has_war_with = TAI } has_war_with = USA CHI = { naval_strength_ratio = { tag = USA ratio > 1.5 } } } abort_when_not_enabled = yes ai_strategy = { type = invade id = "USA" value = 400 } } CHI_protect_coast_against_USA = { #CHI is fighting defensively if it doesn't have a naval favorable strength ratio with USA allowed = { original_tag = CHI } enable = { country_exists = CHI has_war_with = USA } abort_when_not_enabled = yes ai_strategy = { type = area_priority id = chinese_coast value = 1000 } #Protect the coast } CHI_protect_coast = { #CHI is fighting defensively if it doesn't have a naval favorable strength ratio against enemies other than US allowed = { original_tag = CHI } enable = { country_exists = CHI NOT = { has_war_with = USA } enemies_naval_strength_ratio > 1 } abort_when_not_enabled = yes ai_strategy = { type = area_priority id = chinese_coast value = 1000 } #Protect the coast } CHI_protect_coast_against_world = { #CHI is fighting defensively if it doesn't have a naval favorable strength ratio against enemy alliance allowed = { original_tag = CHI } enable = { has_war = yes alliance_naval_strength_ratio > 1.5 } abort_when_not_enabled = yes ai_strategy = { type = area_priority id = chinese_coast value = 1000 } #Protect the coast } JAP_stop_invading_CHI = { #Japan doesn't try to naval invade CHI if CHI navy isn't destroyed allowed = { original_tag = JAP } enable = { has_war_with = CHI naval_strength_ratio = { tag = CHI ratio < 1.0 } } abort_when_not_enabled = yes ai_strategy = { type = invade id = CHI value = -100 } } TAI_stop_invading_CHI = { #Taiwan doesn't try to naval invade CHI if CHI navy isn't destroyed allowed = { original_tag = TAI } enable = { has_war_with = CHI } abort_when_not_enabled = yes ai_strategy = { type = invade id = CHI value = -100 } } ### CHI_the_great_goliath = { allowed = { original_tag = CHI } enable = { CHI = { has_government = communism } country_exists = USA } abort_when_not_enabled = yes ai_strategy = { type = antagonize id = "USA" value = 150 } ai_strategy = { type = contain id = "USA" value = 150 } ai_strategy = { type = alliance id = "USA" value = -200 } ai_strategy = { type = support id = "USA" value = -200 } } CHI_help_korea_junta = { allowed = { original_tag = CHI } enable = { country_exists = NKO NKO = { has_idea = CHI_NKO_base } } abort_when_not_enabled = yes ai_strategy = { type = protect id = "NKO" value = 400 } ai_strategy = { type = send_volunteers_desire id = "NKO" value = 500 } } CHI_arab_relations = { allowed = { original_tag = CHI } enable = { has_opinion_modifier = Arabian_Peninsula_Asia_Economical_Relations } abort_when_not_enabled = yes ai_strategy = { type = befriend id = "SAU" value = 50 } ai_strategy = { type = alliance id = "SAU" value = 50 } ai_strategy = { type = befriend id = "UAE" value = 50 } ai_strategy = { type = alliance id = "UAE" value = 50 } ai_strategy = { type = befriend id = "QAT" value = 50 } ai_strategy = { type = alliance id = "QAT" value = 50 } ai_strategy = { type = befriend id = "BHR" value = 50 } ai_strategy = { type = alliance id = "BHR" value = 50 } ai_strategy = { type = befriend id = "OMA" value = 50 } ai_strategy = { type = alliance id = "OMA" value = 50 } ai_strategy = { type = befriend id = "KUW" value = 50 } ai_strategy = { type = alliance id = "KUW" value = 50 } } CHI_contain_the_raj_kor_jap = { allowed = { original_tag = CHI } enable = { OR = { country_exists = RAJ country_exists = KOR country_exists = JAP } } abort_when_not_enabled = yes ai_strategy = { type = contain id = "RAJ" value = 100 } ai_strategy = { type = contain id = "KOR" value = 100 } ai_strategy = { type = contain id = "JAP" value = 100 } } CHI_war_with_the_raj = { allowed = { original_tag = CHI } enable = { has_war_with = RAJ } abort_when_not_enabled = yes ai_strategy = { type = front_unit_request id = "RAJ" value = 150 } } CHI_befriend_local_neighbors = { allowed = { original_tag = CHI } enable = { NOT = { OR = { has_war_with = NKO has_war_with = MON has_war_with = VIE has_war_with = NEP has_war_with = BHU } } } abort_when_not_enabled = yes ai_strategy = { type = befriend id = "NKO" value = 100 } ai_strategy = { type = befriend id = "MON" value = 100 } ai_strategy = { type = befriend id = "VIE" value = 100 } ai_strategy = { type = befriend id = "NEP" value = 100 } ai_strategy = { type = befriend id = "BHU" value = 100 } ai_strategy = { type = support id = "NKO" value = 100 } ai_strategy = { type = support id = "MON" value = 100 } ai_strategy = { type = support id = "VIE" value = 100 } ai_strategy = { type = support id = "NEP" value = 100 } ai_strategy = { type = support id = "BHU" value = 100 } } CHI_blitz_taiwan = { allowed = { original_tag = CHI } enable = { has_war_with = TAI naval_strength_ratio = { tag = TAI ratio > 1 } } abort_when_not_enabled = yes ai_strategy = { type = invade id = "TAI" value = 4000 } ai_strategy = { type = conquer id = "TAI" value = 4000 } } CHI_blitz_mongolia = { allowed = { original_tag = CHI } enable = { has_war_with = MON strength_ratio = { tag = MON ratio > 1 } } abort_when_not_enabled = yes ai_strategy = { type = invade id = "MON" value = 4000 } ai_strategy = { type = conquer id = "MON" value = 4000 } } CHI_prepare_for_war_against_india = { allowed = { original_tag = CHI } enable = { RAJ = { has_opinion = { target = CHI value < -25 } } OR = { has_war_with = RAJ any_owned_state = { OR = { is_claimed_by = RAJ is_core_of = RAJ } } } } abort_when_not_enabled = yes ai_strategy = { type = front_unit_request id = "RAJ" value = 20 } } CHI_defeat_any_invasion = { allowed = { original_tag = CHI } enable = { has_war = yes any_enemy_country = { has_navy_size = { size > 60 } } } abort_when_not_enabled = yes ai_strategy = { type = front_control priority = 5 state_trigger = { is_coastal = yes } ratio = 0.25 ordertype = front execution_type = rush execute_order = yes } } CHI_support_botswana_militarily = { allowed = { original_tag = CHI } enable = { BOT = { has_completed_focus = BOT_chinese_military_cooperation } } abort_when_not_enabled = yes ai_strategy = { type = befriend id = "BOT" value = 50 } ai_strategy = { type = support id = "BOT" value = 50 } } CHI_army_strategy = { allowed = { original_tag = CHI } enable = { OR = { has_war_with = USA has_war_with = JAP } } abort_when_not_enabled = yes ai_strategy = { type = invade id = USA value = 1000 } ai_strategy = { type = invade id = JAP value = 4000 } } #Buildings CHI_major_production_of_dockyard = { allowed = { original_tag = CHI } enable = { num_of_civilian_factories_available_for_projects > 15 num_of_civilian_factories > 190 } abort_when_not_enabled = yes ai_strategy = { type = building_target id = dockyard value = 20 } } CHI_naval_regional_deterrent = { allowed = { original_tag = CHI } enable = { OR = { AND = { country_exists = JAP naval_strength_ratio = { tag = JAP ratio < 1.1 } } AND = { country_exists = TAI naval_strength_ratio = { tag = TAI ratio < 1.1 } } AND = { country_exists = VIE naval_strength_ratio = { tag = VIE ratio < 1.1 } } AND = { country_exists = PHI naval_strength_ratio = { tag = PHI ratio < 1.1 } } } } abort_when_not_enabled = yes ai_strategy = { type = build_building id = dockyard value = 60 } ai_strategy = { type = building_target id = dockyard value = 15 } } CHI_naval_arms_race_vs_USA = { allowed = { original_tag = CHI } enable = { country_exists = USA OR = { has_completed_focus = CHI_Wolf_Warrior_Diplomacy has_completed_focus = CHI_the_surface_capital_fleet has_completed_focus = CHI_undersea_supremacy } naval_strength_ratio = { tag = USA ratio < 1.5 } } abort_when_not_enabled = yes ai_strategy = { type = build_building id = dockyard value = 100 } ai_strategy = { type = building_target id = dockyard value = 25 } } CHI_invest_in_infrastructure_2000 = { allowed = { original_tag = CHI } enable = { date < 2001.6.1 any_owned_state = { free_building_slots = { building = internet_station size > 0 } } } abort_when_not_enabled = yes # Create Other Infrastructure While Low unemployment ai_strategy = { type = build_building id = internet_station value = 75 } } CHI_the_great_chinese_highway_projects = { allowed = { original_tag = CHI } enable = { any_core_state = { free_building_slots = { building = infrastructure size > 0 } } date > 2001.6.1 date < 2003.1.1 } abort_when_not_enabled = yes # Create Other Infrastructure While Low unemployment ai_strategy = { type = build_building id = infrastructure value = 75 } } # Russians war CHI_concentrates_forces_vs_RUS = { allowed = { original_tag = CHI } enable = { has_war_with = SOV OR = { strength_ratio = { tag = SOV ratio > 1.5 } surrender_progress > 0.9 } } abort_when_not_enabled = yes ai_strategy = { type = front_unit_request tag = SOV value = 90 } } # CIVIL WAR IN AMERICA #Moved to MD_combat_ai_strategies.txt: us_civil_war_international_support CHI_SOV_closer_ties_to_the_west = { allowed = { original_tag = CHI } enable = { SOV = { has_completed_focus = SOV_closer_ties_with_the_west OR = { western_liberals_are_in_power = yes western_conservatism_are_in_power = yes western_social_democrats_are_in_power = yes western_autocrats_are_in_power = yes neutrality_neutral_oligarch_are_in_power = yes } } } abort_when_not_enabled = yes ai_strategy = { type = antagonize id = "SOV" value = 200 } ai_strategy = { type = contain id = "SOV" value = 200 } ai_strategy = { type = protect id = "KAZ" value = 200 } ai_strategy = { type = protect id = "KYR" value = 200 } ai_strategy = { type = protect id = "TAJ" value = 200 } ai_strategy = { type = protect id = "TRK" value = 200 } ai_strategy = { type = protect id = "UZB" value = 200 } } CHI_construct_additional_microchips = { allowed = { original_tag = CHI } enable = { check_variable = { resource@microchips < 0 } check_variable = { microchip_plant_total < 50 } } abort_when_not_enabled = yes ai_strategy = { type = build_building id = microchip_plant value = 50 } ai_strategy = { type = building_target id = microchip_plant value = 50 } } CHI_comoros_guarantee = { allowed = { original_tag = CHI } enable = { COM = { has_idea = COM_naval_treaty_with_china_idea has_completed_focus = COM_naval_treaty_with_china } } abort_when_not_enabled = yes ai_strategy = { type = befriend id = "COM" value = 50 } ai_strategy = { type = support id = "COM" value = 50 } ai_strategy = { type = diplo_action_desire id = "COM" value = 50 target = guarantee } } CHI_friendly_relations_with_pakistan = { allowed = { original_tag = CHI } enable = { NOT = { OR = { has_war_with = PAK has_completed_focus = CHI_Strategic_Realignment } } } abort_when_not_enabled = yes ai_strategy = { type = antagonize id = "PAK" value = -50 } ai_strategy = { type = alliance id = "PAK" value = 100 } ai_strategy = { type = befriend id = "PAK" value = 200 } ai_strategy = { type = protect id = "PAK" value = 200 } ai_strategy = { type = support id = "PAK" value = 200 } ai_strategy = { type = send_volunteers_desire id = "PAK" value = 200 } } CHI_support_north_korea = { allowed = { original_tag = CHI } enable = { country_exists = NKO NOT = { has_completed_focus = CHI_The_Chinese_Correction } NOT = { has_completed_focus = CHI_The_Seoul_Gambit } NOT = { KOR = { has_completed_focus = KOR_china_supports_the_south } } } abort_when_not_enabled = yes ai_strategy = { type = protect id = "NKO" value = 25 } ai_strategy = { type = befriend id = "NKO" value = 25 } ai_strategy = { type = antagonize id = "KOR" value = 25 } ai_strategy = { type = contain id = "KOR" value = 25 } } CHI_avoid_unready_war_with_TAI = { allowed = { original_tag = CHI } enable = { has_wargoal_against = TAI NOT = { has_war_with = TAI } NOT = { naval_strength_ratio = { tag = TAI ratio > 1.5 } } } abort_when_not_enabled = yes ai_strategy = { type = declare_war id = TAI value = -4000 } ai_strategy = { type = conquer id = TAI value = -4000 } } CHI_prepare_war_with_TAI = { allowed = { original_tag = CHI } enable = { has_wargoal_against = TAI NOT = { has_war_with = TAI } naval_strength_ratio = { tag = TAI ratio > 1.5 } } abort_when_not_enabled = yes ai_strategy = { type = prepare_for_war id = TAI value = 200 } ai_strategy = { type = declare_war id = TAI value = 200 } ai_strategy = { type = conquer id = TAI value = 200 } } CHI_avoid_unready_war_with_RAJ = { allowed = { original_tag = CHI } enable = { has_wargoal_against = RAJ NOT = { has_war_with = RAJ } NOT = { strength_ratio = { tag = RAJ ratio > 1.2 } } } abort_when_not_enabled = yes ai_strategy = { type = declare_war id = RAJ value = -4000 } ai_strategy = { type = conquer id = RAJ value = -4000 } } CHI_prepare_war_with_RAJ = { allowed = { original_tag = CHI } enable = { has_wargoal_against = RAJ NOT = { has_war_with = RAJ } strength_ratio = { tag = RAJ ratio > 1.2 } } abort_when_not_enabled = yes ai_strategy = { type = prepare_for_war id = RAJ value = 200 } ai_strategy = { type = declare_war id = RAJ value = 200 } ai_strategy = { type = conquer id = RAJ value = 200 } }