TAI_antagonize_CHI = { allowed = { original_tag = TAI } enable = { has_government = democratic } abort_when_not_enabled = yes ai_strategy = { type = antagonize id = "TAI" value = 200 } ai_strategy = { type = conquer id = "TAI" value = 100 } } # Unless China is defeated, Taiwan focus on protecting the main island TAI_we_focus_defense_on_main_island = { allowed = { original_tag = TAI } enable = { country_exists = TAI country_exists = CHI NOT = { OR = { #Failsafe for Taiwan to be proactive if Taiwan is at war with China and somehow much stronger than Chinese alliance has_war_with = CHI enemies_strength_ratio < 0.5 } } } abort_when_not_enabled = yes ai_strategy = { type = put_unit_buffers order_id = 2 # ratio of total armies in country to be buffered ratio = 10 # states to put garrison orders (if no state is friendly, strat is invalid) states = { 599 600 1158 1157 1156 1155 598 } subtract_invasions_from_need = yes subtract_fronts_from_need = yes } } ##Taiwan unique AI for combat units TAI_default_naval_breakdown = { allowed = { original_tag = TAI } enable = { original_tag = TAI } abort_when_not_enabled = yes ai_strategy = { type = role_ratio id = naval_corvettes value = 24 } ai_strategy = { type = role_ratio id = naval_frigate value = 10 } ai_strategy = { type = role_ratio id = naval_destroyer value = 10 } ai_strategy = { type = role_ratio id = naval_attack_submarine value = 44 } ai_strategy = { type = role_ratio id = naval_missile_submarine value = 5 } ai_strategy = { type = role_ratio id = naval_helicopter_operator value = 5 } ai_strategy = { type = role_ratio id = naval_carrier value = 2 } ai_strategy = { type = role_ratio id = naval_cruiser value = 2 } ai_strategy = { type = role_ratio id = naval_mine_sweeper value = 8 } } TAI_construct_additional_microchips = { allowed = { original_tag = TAI } enable = { num_of_available_civilian_factories > 15 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 = 150 } }