BYG_start_tianjiang = { allowed = { original_tag = BYG } enable = { has_global_flag = MOD_azurlane_tianjiangjianniang NOT = { has_idea = TY_dingzhenai } } abort_when_not_enabled = yes ai_strategy = { type = role_ratio #模板倾向 id = infantry value = 100 } ai_strategy = { type = template_prio #修改模板倾向 id = infantry value = 100 } ai_strategy = { type = role_ratio #模板倾向 id = armor value = 800 } ai_strategy = { type = template_prio #修改模板倾向 id = armor value = 800 } ai_strategy = { type = equipment_production_factor #装备倾向 id = armor value = 200 } ai_strategy = { type = role_ratio #模板倾向 id = marines value = 0 } ai_strategy = { type = template_prio #修改模板倾向 id = marines value = 800 } ai_strategy = { type = equipment_production_min_factories id = train value = 1 } ai_strategy = { type = ignore_army_incompetence value = 10000 } ai_strategy = { type = force_build_armies value = 100 } ai_strategy = { type = equipment_stockpile_surplus_ratio value = 5 } } BYG_start_sairen = { allowed = { original_tag = BYG } enable = { has_global_flag = MOD_azurlane_sairenzhizai NOT = { has_idea = TY_dingzhenai } } abort_when_not_enabled = yes ai_strategy = { type = role_ratio #模板倾向 id = infantry value = 100 } ai_strategy = { type = template_prio #修改模板倾向 id = infantry value = 100 } ai_strategy = { type = role_ratio #模板倾向 id = armor value = 800 } ai_strategy = { type = template_prio #修改模板倾向 id = armor value = 800 } ai_strategy = { type = role_ratio #模板倾向 id = marines value = 400 } ai_strategy = { type = template_prio #修改模板倾向 id = marines value = 800 } ai_strategy = { type = equipment_production_factor id = cv_fighter value = 5 } ai_strategy = { type = equipment_production_factor id = cv_naval_bomber value = 5 } ai_strategy = { type = equipment_production_min_factories id = train value = 1 } } BYG_air = { allowed = { original_tag = BYG } enable = { always = yes } abort_when_not_enabled = yes ai_strategy = { type = unit_ratio id = fighter value = 150 } ai_strategy = { type = unit_ratio id = cas value = 1 } ai_strategy = { type = unit_ratio id = tactical_bomber value = 0 } ai_strategy = { type = unit_ratio id = strategic_bomber value = 1 } ai_strategy = { type = unit_ratio id = naval_bomber value = 1 } ai_strategy = { type = equipment_production_factor id = cv_fighter value = 5 } ai_strategy = { type = equipment_production_factor id = cv_naval_bomber value = 5 } } BYG_naval_role_ratios_historical = { allowed = { original_tag = BYG } enable = { has_dlc = "Man the Guns" } abort_when_not_enabled = yes ai_strategy = { type = role_ratio id = naval_capital_bb value = 10 } ai_strategy = { type = role_ratio id = naval_capital_bc value = -100 } ai_strategy = { type = role_ratio id = naval_carrier value = 10 } ai_strategy = { type = role_ratio id = naval_submarine value = -10 } ai_strategy = { type = role_ratio id = naval_screen value = 150 } ai_strategy = { type = role_ratio id = naval_cruiser_light value = 30 } ai_strategy = { type = role_ratio id = naval_cruiser_heavy value = -15 } ai_strategy = { type = unit_ratio id = cv_naval_bomber value = 1 } ai_strategy = { type = unit_ratio id = cv_fighter value = 1 } ai_strategy = { type = equipment_production_factor id = cv_fighter value = 1 } ai_strategy = { type = equipment_production_factor id = cv_naval_bomber value = 1 } ai_strategy = { type = unit_ratio id = convoy value = 1 } ai_strategy = { type = equipment_production_min_factories id = convoy value = 1 } } BYG_war_with_tix = { allowed = { original_tag = BYG } enable = { has_war_with = TIX } abort_when_not_enabled = yes ai_strategy = { type = invade #入侵 id = "TIX" value = 100 } ai_strategy = { type = conquer #征服 id = "TIX" value = 100 } ai_strategy = { type = invasion_unit_request tag = TIX value = 10 } ai_strategy = { type = front_unit_request #前线部队 tag = TIX value = 200 # lets put more units, should be safe } } BYG_war_with_HUJ = { allowed = { original_tag = BYG } enable = { has_war_with = HUJ } abort_when_not_enabled = yes ai_strategy = { type = invade #入侵 id = "HUJ" value = 100 } ai_strategy = { type = conquer #征服 id = "HUJ" value = 100 } ai_strategy = { type = invasion_unit_request tag = HUJ value = 10 } ai_strategy = { type = front_unit_request #前线部队 tag = HUJ value = 200 # lets put more units, should be safe } } BYG_war_with_YUW = { allowed = { original_tag = BYG } enable = { has_war_with = YUW } abort_when_not_enabled = yes ai_strategy = { type = invade #入侵 id = "YUW" value = 100 } ai_strategy = { type = conquer #征服 id = "YUW" value = 100 } ai_strategy = { type = invasion_unit_request tag = YUW value = 10 } ai_strategy = { type = front_unit_request #前线部队 tag = YUW value = 200 # lets put more units, should be safe } } BYG_war_with_CHY = { allowed = { original_tag = BYG } enable = { has_war_with = CHY } abort_when_not_enabled = yes ai_strategy = { type = invade #入侵 id = "CHY" value = 100 } ai_strategy = { type = conquer #征服 id = "CHY" value = 100 } ai_strategy = { type = invasion_unit_request tag = CHY value = 10 } ai_strategy = { type = front_unit_request #前线部队 tag = CHY value = 30 # lets put more units, should be safe } } BYG_war_with_BFL = { allowed = { original_tag = BYG } enable = { has_war_with = BFL } abort_when_not_enabled = yes ai_strategy = { type = invade #入侵 id = "BFL" value = 100 } ai_strategy = { type = conquer #征服 id = "BFL" value = 100 } ai_strategy = { type = invasion_unit_request tag = BFL value = 10 } ai_strategy = { type = front_unit_request #前线部队 tag = BFL value = 200 # lets put more units, should be safe } } BYG_war_with_USA = { allowed = { original_tag = BYG } enable = { has_war_with = USA } abort_when_not_enabled = yes ai_strategy = { type = invade #入侵 id = "USA" value = 100 } ai_strategy = { type = conquer #征服 id = "USA" value = 100 } ai_strategy = { type = invasion_unit_request tag = USA value = 10 } ai_strategy = { type = front_unit_request #前线部队 tag = USA value = 200 # lets put more units, should be safe } } BYG_war_with_USB = { allowed = { original_tag = BYG } enable = { has_war_with = USB } abort_when_not_enabled = yes ai_strategy = { type = invade #入侵 id = "USB" value = 100 } ai_strategy = { type = conquer #征服 id = "USB" value = 100 } ai_strategy = { type = invasion_unit_request tag = USB value = 10 } ai_strategy = { type = front_unit_request #前线部队 tag = USB value = 200 # lets put more units, should be safe } } BYG_war_with_CSA = { allowed = { original_tag = BYG } enable = { has_war_with = CSA } abort_when_not_enabled = yes ai_strategy = { type = invade #入侵 id = "CSA" value = 100 } ai_strategy = { type = conquer #征服 id = "CSA" value = 100 } ai_strategy = { type = invasion_unit_request tag = CSA value = 10 } ai_strategy = { type = front_unit_request #前线部队 tag = CSA value = 200 # lets put more units, should be safe } } BYG_war_with_SAD = { allowed = { original_tag = BYG } enable = { has_war_with = SAD } abort_when_not_enabled = yes ai_strategy = { type = invade #入侵 id = "SAD" value = 100 } ai_strategy = { type = conquer #征服 id = "SAD" value = 100 } ai_strategy = { type = invasion_unit_request tag = SAD value = 10 } ai_strategy = { type = front_unit_request #前线部队 tag = SAD value = 200 # lets put more units, should be safe } } BYG_war_with_DOH = { allowed = { original_tag = BYG } enable = { has_war_with = DOH } abort_when_not_enabled = yes ai_strategy = { type = invade #入侵 id = "DOH" value = 100 } ai_strategy = { type = conquer #征服 id = "DOH" value = 100 } ai_strategy = { type = invasion_unit_request tag = DOH value = 10 } ai_strategy = { type = front_unit_request #前线部队 tag = DOH value = 200 # lets put more units, should be safe } } BYG_HUJ_zhichiyuanwei = { allowed = { OR = { original_tag = BYG original_tag = HUJ } } enable = { has_war = no NOT = { has_government = fascism } NOT = { is_in_faction_with = TIX } TIX = { has_war_with = YUW has_government = fascism } } abort_when_not_enabled = yes ai_strategy = { type = support id = "YUW" value = 300 } } BYG_save_the_aussies = { allowed = { original_tag = BYG } enable = { has_government = democratic is_in_faction = no has_war = no } abort = { OR = { CHY = { NOT = { has_government = fascism } } is_in_faction_with = CHY } } ai_strategy = { type = contain id = "CHY" value = 200 } } BYG_democracy_on_CHY = { allowed = { original_tag = BYG } enable = { has_war_with = CHY } ai_strategy = { type = strike_force_home_base id = 105 # perl harbor } } BYG_help_waters_around_TIX = { allowed = { original_tag = BYG } enable = { is_in_faction_with = HUJ NOT = { has_war_with = CHY } has_war_with = TIX HUJ = { has_war_with = TIX } } abort = { TIX = { has_capitulated = yes } } ai_strategy = { type = strike_force_home_base id = 18 # channel } } BYG_gang_up_TIX_with_ENG = { allowed = { original_tag = BYG } enable = { tag = BYG date > 1940.6.6 } # help fronts in europe ai_strategy = { type = force_defend_ally_borders value = 1000 target = europe } } # USA should put some buffer units in africa and ENG to help with invasions BYG_unit_buffer_for_europe = { allowed = { original_tag = BYG } enable = { date > 1940.1.1 is_in_faction_with = HUJ has_war_with = TIX } abort_when_not_enabled = yes ai_strategy = { type = put_unit_buffers order_id = 2 # south england states = { 125 126 127 128 129 338 123 122 } ratio = 0.20 area = europe subtract_invasions_from_need = no } ai_strategy = { type = put_unit_buffers order_id = 2 # spain states = { 171 180 112 179 795 169 173 167 } ratio = 0.1 area = europe subtract_invasions_from_need = no } ai_strategy = { type = put_unit_buffers order_id = 1 # north africa states = { 290 461 459 460 458 665 448 449 450 451 452 447 } ratio = 0.15 area = europe subtract_invasions_from_need = yes } } BYG_naval_invasions_please = { allowed = { original_tag = BYG } ai_strategy = { type = invasion_unit_request tag = TIX value = 40 } ai_strategy = { type = invasion_unit_request tag = CHY value = 20 } } BYG_dont_go_DOH = { #我加这个倾向是防止白鹰进东煌阵营的,不要瞎几把删 allowed = { original_tag = BYG } enable = { country_exists = DOH DOH = { has_government = fascism } } abort = { NOT = { DOH = { has_government = fascism } } } ai_strategy = { type = antagonize id = "DOH" value = 200 } } BYG_wants_civ = { allowed = { original_tag = BYG } enable = { date < 1941.1.1 } abort_when_not_enabled = yes ai_strategy = { type = building_target id = arms_factory value = 10000 } } BYG_place_for_build_factory = { allowed = { original_tag = BYG } enable = { always = yes } abort = { always = no } ai_strategy = { type = factory_build_score_factor target = 261 value = 500 } ai_strategy = { type = factory_build_score_factor target = 360 value = 500 } ai_strategy = { type = factory_build_score_factor target = 358 value = 500 } ai_strategy = { type = factory_build_score_factor target = 357 value = 500 } ai_strategy = { type = factory_build_score_factor target = 359 value = 500 } ai_strategy = { type = factory_build_score_factor target = 361 value = 500 } ai_strategy = { type = factory_build_score_factor target = 385 value = 500 } ai_strategy = { type = factory_build_score_factor target = 395 value = 500 } ai_strategy = { type = factory_build_score_factor target = 378 value = 400 } ai_strategy = { type = factory_build_score_factor target = 386 value = 400 } ai_strategy = { type = factory_build_score_factor target = 375 value = 400 } ai_strategy = { type = factory_build_score_factor target = 371 value = 400 } ai_strategy = { type = factory_build_score_factor target = 367 value = 400 } ai_strategy = { type = factory_build_score_factor target = 365 value = 400 } ai_strategy = { type = factory_build_score_factor target = 364 value = 400 } ai_strategy = { type = factory_build_score_factor target = 363 value = 400 } ai_strategy = { type = factory_build_score_factor target = 362 value = 400 } ai_strategy = { type = factory_build_score_factor target = 816 value = 400 } ai_strategy = { type = factory_build_score_factor target = 369 value = 400 } ai_strategy = { type = factory_build_score_factor target = 368 value = 400 } ai_strategy = { type = factory_build_score_factor target = 396 value = 400 } ai_strategy = { type = factory_build_score_factor target = 373 value = 400 } ai_strategy = { type = factory_build_score_factor target = 392 value = 400 } ai_strategy = { type = factory_build_score_factor target = 391 value = 400 } ai_strategy = { type = factory_build_score_factor target = 394 value = 400 } ai_strategy = { type = factory_build_score_factor target = 393 value = 400 } ai_strategy = { type = factory_build_score_factor target = 366 value = 300 } ai_strategy = { type = factory_build_score_factor target = 370 value = 300 } ai_strategy = { type = factory_build_score_factor target = 372 value = 300 } ai_strategy = { type = factory_build_score_factor target = 374 value = 300 } ai_strategy = { type = factory_build_score_factor target = 383 value = 300 } ai_strategy = { type = factory_build_score_factor target = 384 value = 300 } ai_strategy = { type = factory_build_score_factor target = 390 value = 300 } ai_strategy = { type = factory_build_score_factor target = 389 value = 300 } ai_strategy = { type = factory_build_score_factor target = 388 value = 300 } ai_strategy = { type = factory_build_score_factor target = 381 value = 300 } ai_strategy = { type = factory_build_score_factor target = 387 value = 300 } ai_strategy = { type = factory_build_score_factor target = 382 value = 300 } ai_strategy = { type = factory_build_score_factor target = 380 value = 300 } ai_strategy = { type = factory_build_score_factor target = 379 value = 300 } ai_strategy = { type = factory_build_score_factor target = 377 value = 300 } ai_strategy = { type = factory_build_score_factor target = 376 value = 300 } } BYG_protect_asia_ore = { allowed = { original_tag = BYG } enable = { has_war_with = CHY 361 = { is_fully_controlled_by = ROOT } } abort_when_not_enabled = yes ai_strategy = { type = put_unit_buffers # ratio of total armeis in country to be buffered ratio = 0.1 # you can specify an order id. ratio of same orders ids will be share same ratio order_id = 1 # states to put garrison orders (if no state is friendly, strat is invalid) states = { 629 631 630 632 638 } # ai areas that the orders will use these buffers in area = asia } } BYG_dont_do_so_many_naval_invasions_please = { allowed = { original_tag = BYG } enable = { is_historical_focus_on = yes } ai_strategy = { type = invasion_unit_request tag = ROM value = -200 } ai_strategy = { type = invasion_unit_request tag = HUN value = -200 } ai_strategy = { type = invasion_unit_request tag = TUR value = -200 } } BYG_dont_do_so_many_naval_1942 = { allowed = { original_tag = BYG } enable = { is_historical_focus_on = yes date < 1941.5.1 } abort_when_not_enabled = yes ai_strategy = { type = invasion_unit_request tag = TIX value = -200 } ai_strategy = { type = invasion_unit_request tag = SAD value = -200 } ai_strategy = { type = invasion_unit_request tag = WEX value = -200 } } BYG_wushibfl = { enable = { tag = BYG date < 1942.1.1 } abort_when_not_enabled = yes ai_strategy = { type = ignore id = "BFL" value = 500 } } BYG_ask_HUJ_YUW_for_access_before_war = { allowed = { tag = BYG } enable = { date > 1940.9.9 NOT = { OR = { is_in_faction_with = HUJ has_military_access_to = HUJ } } } abort_when_not_enabled = yes ai_strategy = { type = diplo_action_desire id = HUJ target = military_access value = 1000 } ai_strategy = { type = diplo_action_desire id = YUW target = military_access value = 1000 } } BYG_focus_on_africa = { allowed = { original_tag = BYG } enable = { is_historical_focus_on = yes has_war_with = TIX country_exists = WEX OR = { # Check whole north-african coast 448 = { CONTROLLER = { has_war_with = ROOT } } # tripoli 450 = { CONTROLLER = { has_war_with = ROOT } } # benghazi 458 = { CONTROLLER = { has_war_with = ROOT } } # tunisia 461 = { CONTROLLER = { has_war_with = ROOT } } # casablanca 462 = { CONTROLLER = { has_war_with = ROOT } } # marrakech 459 = { CONTROLLER = { has_war_with = ROOT } } # algiers 460 = { CONTROLLER = { has_war_with = ROOT } } # constantine 665 = { CONTROLLER = { has_war_with = ROOT } } # gabès 449 = { CONTROLLER = { has_war_with = ROOT } } # el agheila 451 = { CONTROLLER = { has_war_with = ROOT } } # derna 452 = { CONTROLLER = { has_war_with = ROOT } } # matrouh 447 = { CONTROLLER = { has_war_with = ROOT } } # alexandria 446 = { CONTROLLER = { has_war_with = ROOT } } # cairo 290 = { CONTROLLER = { has_war_with = ROOT } } # spanish africa } } abort_when_not_enabled = yes ai_strategy = { type = front_unit_request area = africa value = 60 } ai_strategy = { type = area_priority id = africa value = 60 } } BYG_HUJ_sync_invasions_on_europe = { allowed = { #always = no OR = { tag = BYG tag = HUJ } } # only allow invasion on europe on every third month enable = { set_temp_variable = { days = global.num_days } modulo_temp_variable = { days = 90 } check_variable = { days < 60 } } abort_when_not_enabled = yes ai_strategy = { type = front_control area = mainland_europe ordertype = invasion execute_order = no } } BYG_take_out_italy_boost = { allowed = { original_tag = BYG is_historical_focus_on = yes } enable = { date > 1941.5.1 SAD = { surrender_progress < 0.2 } } abort_when_not_enabled = yes ai_strategy = { type = invade id = SAD value = 150 } ai_strategy = { type = area_priority id = italy value = 600 } ai_strategy = { type = invasion_unit_request area = italy value = 10 } ai_strategy = { type = area_priority id = north_africa value = 400 } ai_strategy = { type = area_priority id = normandy_landing_zone value = -100 } ai_strategy = { type = naval_convoy_raid_region id = 68 value = 400 } ai_strategy = { type = naval_convoy_raid_region id = 169 value = 400 } ai_strategy = { type = naval_convoy_raid_region id = 29 value = 400 } } BYG_d_day_boost = { allowed = { original_tag = BYG } enable = { has_war_with = TIX date > 1941.9.1 SAD = { surrender_progress > 0.2 } } abort = { OR = { date > 1944.9.1 # if we haven't succeeded by now, kill Japan instead AND = { 16 = { is_controlled_by_ROOT_or_ally = yes } # Paris has been liberated is_historical_focus_on = yes } } } ai_strategy = { type = invade id = TIX value = 200 } ai_strategy = { type = area_priority id = normandy_landing_zone value = 400 } ai_strategy = { type = invasion_unit_request area = normandy_landing_zone value = 5 } } BYG_torch_boost = { allowed = { original_tag = BYG } enable = { country_exists = WEX has_war_with = TIX date > 1941.5.1 } abort = { OR = { date > 1942.9.1 # if we haven't succeeded by now, maybe try somewhere else 461 = { is_controlled_by_ROOT_or_ally = yes } 459 = { is_controlled_by_ROOT_or_ally = yes } } } ai_strategy = { type = area_priority id = torch_landing_zone value = 800 } ai_strategy = { type = area_priority id = vichy_mainland value = -200 } ai_strategy = { type = invasion_unit_request area = torch_landing_zone value = 2 } ai_strategy = { type = front_unit_request area = torch_landing_zone value = 2 } ai_strategy = { type = prepare_for_war id = WEX value = 200 } ai_strategy = { type = invade id = WEX value = 200 } ai_strategy = { type = naval_convoy_raid_region id = 47 value = 400 } ai_strategy = { type = naval_convoy_raid_region id = 48 value = 400 } } BYG_save_india = { # in the case where japan has beaten china and is moving on india we should step up allowed = { original_tag = BYG } enable = { has_government = democratic is_in_faction = no has_war = no CHY = { or = { has_war_with = RAJ has_war_with = HUJ } NOT = { has_war_with = DOH } } or = { RAJ = { is_in_faction_with = HUJ surrender_progress > 0.15 } not = { country_exists = RAJ } } } abort = { OR = { has_war_with = RAJ is_in_faction_with = CHY CHY = { NOT = { has_war_with = RAJ } } } } ai_strategy = { type = contain id = "CHY" value = 200 } ai_strategy = { type = protect id = "RAJ" value = 200 } } BYG_lose_fateful_lightning_from_terribly_swift_sword = { allowed = { OR = { tag = BYG tag = HUJ # second breakfast protocol - activated } } enable = { country_exists = WEX YUW = { OR = { has_capitulated = yes controls_state = 16 } has_war_with = TIX is_in_faction_with = BYG } OR = { AND = { WEX = { is_ai = no has_war = no } is_historical_focus_on = yes date > 1942.9.1 } AND = { OR = { is_historical_focus_on = no WEX = { has_war = yes } } date > 1942.6.1 } AND = { WEX = { is_ai = yes } date > 1942.6.1 } } } abort_when_not_enabled = yes ai_strategy = { type = antagonize id = WEX value = 2500 # we hateses them filthy Vichy Frenches } ai_strategy = { type = declare_war id = WEX value = 500 # we hateses them filthy Vichy Frenches. strategy >= 500 forces declaration } } TIX_is_bad = { allowed = { tag = BYG } enable = { TIX = { exists = yes } NOT = { is_ally_with = TIX } HUJ = { has_war_with = TIX } has_government = democratic HUJ = { has_government = democratic } date > 1939.1.1 } abort_when_not_enabled = yes ai_strategy = { type = prepare_for_war id = TIX value = 100 } } BYG_produce_floating_harbors = { allowed = { original_tag = BYG } enable = { is_historical_focus_on = yes date > 1941.1.1 has_war = yes num_of_naval_factories > 25 } abort_when_not_enabled = yes ai_strategy = { type = unit_ratio id = floating_harbor # for floating harbors, 'unit_ratio' is actually not a ratio but an absolute desired number value = 10 } } BYG_stay_away_from_my_pacific = { allowed = { original_tag = BYG } enable = { has_war_with = CHY } abort_when_not_enabled = yes ai_strategy = { type = area_priority id = pacific value = 100 } } BYG_start_buffering_in_pacific = { allowed = { tag = BYG } enable = { date > 1941.10.2 OR = { has_war_with = CHY has_war_with = DOH } } abort_when_not_enabled = yes ai_strategy = { type = put_unit_buffers # pacific islands states = { 633 #Marshall 632 #Wake 684 #Caroline 645 #Iwo Jima 638 #Guam 646 #Saipan } ratio = 0.12 area = pacific subtract_invasions_from_need = no subtract_fronts_from_need = no } ai_strategy = { type = put_unit_buffers # pacific islands states = { 633 #Marshall 632 #Wake 684 #Caroline 645 #Iwo Jima 638 #Guam 646 #Saipan } ratio = 0.12 area = pacific subtract_invasions_from_need = yes subtract_fronts_from_need = no } ai_strategy = { type = put_unit_buffers # pacific islands states = { 633 #Marshall 632 #Wake 684 #Caroline 645 #Iwo Jima 638 #Guam 646 #Saipan } ratio = 0.12 area = home_islands subtract_invasions_from_need = yes subtract_fronts_from_need = no } ai_strategy = { type = front_unit_request area = pacific value = 30 } ai_strategy = { type = invasion_unit_request area = pacific value = 2 } ai_strategy = { type = naval_invasion_supremacy_weight value = 50 } } BYG_sugar_daddy_for_HUJ = { allowed = { original_tag = BYG } enable = { NOT = { has_war_with = HUJ } has_government = democratic HUJ = { has_government = democratic has_war = yes } } abort_when_not_enabled = yes ai_strategy = { type = send_lend_lease_desire id = HUJ value = 500 } } BYG_sugar_daddy_for_BFL = { allowed = { original_tag = BYG } enable = { NOT = { has_war_with = BFL } has_government = democratic TIX = { has_government = fascism } BFL = { has_war_with = TIX } } abort_when_not_enabled = yes ai_strategy = { type = send_lend_lease_desire id = BFL value = 500 } } BYG_dont_guarantee_SA_unless_everyhting_is_shit = { allowed = { original_tag = BYG has_dlc = "Trial of Allegiance" } enable = { threat < 0.9 } abort_when_not_enabled = yes ai_strategy = { type = protect id = CAN value = -200 } ai_strategy = { type = protect id = MEX value = -200 } ai_strategy = { type = protect id = GUA value = -200 } ai_strategy = { type = protect id = HON value = -200 } ai_strategy = { type = protect id = ELS value = -200 } ai_strategy = { type = protect id = NIC value = -200 } ai_strategy = { type = protect id = CUB value = -200 } ai_strategy = { type = protect id = HAI value = -200 } ai_strategy = { type = protect id = DOM value = -200 } ai_strategy = { type = protect id = COS value = -200 } ai_strategy = { type = protect id = PAN value = -200 } ai_strategy = { type = protect id = COL value = -200 } ai_strategy = { type = protect id = VEN value = -200 } ai_strategy = { type = protect id = ECU value = -200 } ai_strategy = { type = protect id = PRU value = -200 } ai_strategy = { type = protect id = BOL value = -200 } ai_strategy = { type = protect id = CHL value = -200 } ai_strategy = { type = protect id = ARG value = -200 } ai_strategy = { type = protect id = PAR value = -200 } ai_strategy = { type = protect id = URG value = -200 } ai_strategy = { type = protect id = BRA value = -200 } } ### PACIFIC BUILDUP STRATEGIES # GUAM NAVAL BASE BYG_prepare_guam = { allowed = { original_tag = BYG } enable = { date > 1940.1.1 638 = { naval_base < 4 } } abort_when_not_enabled = yes ai_strategy = { type = build_building id = naval_base target = 12140 value = 100 } } BYG_prepare_guam_2 = { allowed = { original_tag = BYG } enable = { date > 1943.1.1 638 = { naval_base < 8 } } abort_when_not_enabled = yes ai_strategy = { type = build_building id = naval_base target = 12140 value = 100 } } # GUAM HEADQUARTERS BYG_prepare_guam_3_naval_hq_supply = { allowed = { original_tag = BYG has_dlc = "No Compromise, No Surrender" } enable = { date > 1943.1.1 638 = { OR = { naval_headquarters < 1 naval_supply_hub < 1 } } } abort_when_not_enabled = yes ai_strategy = { type = build_building id = naval_headquarters target = 12140 value = 100 } ai_strategy = { type = build_building id = naval_supply_hub target = 12140 value = 100 } } ### FACTION RELATED STRATEGIES BYG_base_faction_priorities = { allowed = { original_tag = BYG } enable = { always = yes } abort_when_not_enabled = yes ai_strategy = { type = spent_faction_initiative_priority id = program value = 25 } ai_strategy = { type = spent_faction_initiative_priority id = unlock_faction_commander value = 5 } } BYG_heavytank_production = { allowed = { original_tag = BYG } enable = { has_tech = improved_heavy_tank_chassis date > 1940.1.1 arms_factory > 399 } ai_strategy = { type = role_ratio #模板倾向 id = heavy_armor value = 20 } ai_strategy = { type = template_prio #训练模板倾向 id = heavy_armor value = 20 } } ### Pacific war strategies BYG_CHY_pacific_war_dominance = { allowed = { OR = { original_tag = BYG original_tag = CHY } } enable = { OR = { has_war_with = BYG has_war_with = CHY } surrender_progress < 0.15 #Just give up trying to compete now set_temp_variable = { t = num_ships_with_type@carrier } check_variable = { t > 4 } #We lost the carrier war now, time to retreat } abort_when_not_enabled = yes ai_strategy = { type = naval_dominance id = micronesia_pacific_control_zone value = 80 } ai_strategy = { type = naval_dominance id = mariana_pacific_control_zone value = 80 } ai_strategy = { type = naval_dominance id = north_pacific_control_zone value = 80 } ai_strategy = { type = naval_dominance id = pearl_harbor_pacific_control_zone value = 80 } } BYG_dominate_the_home_islands = { allowed = { original_tag = BYG } enable = { has_war_with = CHY OR = { date > 1943.1.1 controls_state = 645 #Iwo Jima } } abort_when_not_enabled = yes ai_strategy = { type = naval_dominance id = home_islands_control_zone value = 100 } } BYG_baohu_SAD = { allowed = { original_tag = BYG } enable = { is_in_faction_with = SAD has_war_with = TIX date > 1941.1.1 } abort_when_not_enabled = yes ai_strategy = { type = force_defend_ally_borders id = "SAD" value = 5000 } ai_strategy = { type = force_defend_ally_borders value = 2000 target = mainland_europe } }