###NAVAL AI### # Example of MTG strategy with all possible roles #You don't have to set all roles, not setting role == 0 or <0 value # naval_unit_role_ratios_XXX = { # allowed = { # has_dlc = "Man the Guns" # tag = XXX # } # ai_strategy = { # type = role_ratio # id = naval_capital_bb # value = 10 # } # ai_strategy = { # type = role_ratio # id = naval_capital_shbb # value = 10 # } # ai_strategy = { # type = role_ratio # id = naval_capital_bc # value = 10 # } # 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 = 10 # } # ai_strategy = { # type = role_ratio # id = naval_escort # value = 10 # } # ai_strategy = { # type = role_ratio # id = naval_cruiser_light # value = 10 # } # ai_strategy = { # type = role_ratio # id = naval_cruiser_heavy # value = 10 # } # ai_strategy = { # type = role_ratio # id = naval_mine_sweeper # value = 10 # } # ai_strategy = { # type = role_ratio # id = naval_mine_layer # value = 10 # } # } ##### MTG strategies #### no_old_navy_production = { enable = { has_dlc = "Man the Guns" has_navy_size = { size > 0 } } abort_when_not_enabled = yes ai_strategy = { type = role_ratio id = naval_capital_bb value = -10000 } ai_strategy = { type = role_ratio id = naval_capital_shbb value = -10000 } ai_strategy = { type = role_ratio id = naval_capital_bc value = -10000 } ai_strategy = { type = role_ratio id = naval_carrier value = -10000 } ai_strategy = { type = role_ratio id = naval_submarine value = -10000 } ai_strategy = { type = role_ratio id = naval_screen value = -10000 } ai_strategy = { type = role_ratio id = naval_escort value = -10000 } ai_strategy = { type = role_ratio id = naval_cruiser_light value = -10000 } ai_strategy = { type = role_ratio id = naval_cruiser_heavy value = -10000 } ai_strategy = { type = role_ratio id = naval_mine_sweeper value = -10000 } ai_strategy = { type = role_ratio id = naval_mine_layer value = -10000 } } ### Minors ### naval_unit_role_ratios_minors_coastal = { allowed = { has_dlc = "Man the Guns" NOT = { tag = HUJ tag = CHY tag = SAD tag = TIX tag = YUW tag = BYG tag = BFL } } enable = { num_of_naval_factories > 0 num_of_naval_factories < 10 has_navy_size = { size < 50 } } abort_when_not_enabled = yes ai_strategy = { type = role_ratio id = vnr_naval_screen value = 10 } ai_strategy = { type = role_ratio id = vnr_naval_submarine value = 50 } } naval_unit_role_ratios_minors_defensive = { allowed = { has_dlc = "Man the Guns" NOT = { tag = HUJ tag = CHY tag = SAD tag = TIX tag = YUW tag = BYG tag = BFL } } enable = { num_of_naval_factories > 9 num_of_naval_factories < 20 has_navy_size = { size < 100 } } abort_when_not_enabled = yes ai_strategy = { type = role_ratio id = vnr_naval_screen value = 80 } ai_strategy = { type = role_ratio id = vnr_naval_cruiser_light value = 50 } ai_strategy = { type = role_ratio id = vnr_naval_cruiser_medium value = 20 } ai_strategy = { type = role_ratio id = vnr_naval_submarine value = 20 } } naval_unit_role_ratios_minors_offensive = { allowed = { has_dlc = "Man the Guns" NOT = { tag = HUJ tag = CHY tag = SAD tag = TIX tag = YUW tag = BYG tag = BFL } } enable = { num_of_naval_factories > 19 num_of_naval_factories < 30 has_navy_size = { size < 200 } } abort_when_not_enabled = yes ai_strategy = { type = role_ratio id = vnr_naval_screen value = 120 } ai_strategy = { type = role_ratio id = vnr_naval_cruiser_light value = 50 } ai_strategy = { type = role_ratio id = vnr_naval_cruiser_medium value = 20 } ai_strategy = { type = role_ratio id = vnr_naval_capital_bb value = 10 } ai_strategy = { type = role_ratio id = vnr_naval_submarine value = 20 } } naval_unit_role_ratios_minors_global = { allowed = { has_dlc = "Man the Guns" NOT = { tag = HUJ tag = CHY tag = SAD tag = TIX tag = YUW tag = BYG tag = BFL } } enable = { num_of_naval_factories > 29 has_navy_size = { size < 300 } } abort_when_not_enabled = yes ai_strategy = { type = role_ratio id = vnr_naval_screen value = 250 } ai_strategy = { type = role_ratio id = vnr_naval_cruiser_light value = 50 } ai_strategy = { type = role_ratio id = vnr_naval_cruiser_medium value = 20 } ai_strategy = { type = role_ratio id = vnr_naval_capital_bb value = 20 } ai_strategy = { type = role_ratio id = vnr_naval_carrier value = 10 } ai_strategy = { type = role_ratio id = vnr_naval_submarine value = 20 } } ### GER ### naval_unit_role_ratios_GER_prewar_early = { allowed = { has_dlc = "Man the Guns" tag = TIX } enable = { date < 1938.1.1 has_war_with_major = no } abort_when_not_enabled = yes ai_strategy = { type = role_ratio id = vnr_naval_screen value = 100 } ai_strategy = { type = role_ratio id = vnr_naval_cruiser_light value = 50 } ai_strategy = { type = role_ratio id = vnr_naval_cruiser_medium value = 20 } ai_strategy = { type = role_ratio id = vnr_naval_capital_bb value = 10 } ai_strategy = { type = role_ratio id = vnr_naval_submarine value = 20 } } naval_unit_role_ratios_GER_prewar_late = { allowed = { has_dlc = "Man the Guns" tag = TIX } enable = { date < 1941.1.1 date > 1937.12.31 has_war_with_major = no } abort_when_not_enabled = yes ai_strategy = { type = role_ratio id = vnr_naval_screen value = 100 } ai_strategy = { type = role_ratio id = vnr_naval_cruiser_light value = 20 } ai_strategy = { type = role_ratio id = vnr_naval_cruiser_medium value = 20 } ai_strategy = { type = role_ratio id = vnr_naval_capital_bb value = 12 } ai_strategy = { type = role_ratio id = vnr_naval_submarine value = 200 } } naval_unit_role_ratios_GER_atwar = { allowed = { has_dlc = "Man the Guns" tag = TIX } enable = { has_war_with = HUJ } abort_when_not_enabled = yes ai_strategy = { type = role_ratio id = vnr_naval_submarine value = 500 } ai_strategy = { type = role_ratio id = vnr_naval_screen value = 60 } ai_strategy = { type = role_ratio id = vnr_naval_cruiser_light value = 10 } ai_strategy = { type = role_ratio id = vnr_naval_capital_bb value = 5 } } naval_unit_role_ratios_GER_atwar_knock_USA = { allowed = { has_dlc = "Man the Guns" tag = TIX } enable = { has_war_with = BYG NOT = { has_war_with = HUJ } } abort_when_not_enabled = yes ai_strategy = { type = role_ratio id = vnr_naval_submarine value = 80 } ai_strategy = { type = role_ratio id = vnr_naval_screen value = 300 } ai_strategy = { type = role_ratio id = vnr_naval_cruiser_light value = 50 } ai_strategy = { type = role_ratio id = vnr_naval_cruiser_medium value = 30 } ai_strategy = { type = role_ratio id = vnr_naval_capital_bb value = 20 } ai_strategy = { type = role_ratio id = vnr_naval_carrier value = 20 } ai_strategy = { type = dockyard_to_military_factory_ratio value = 50 } } naval_unit_role_ratios_GER_atwar_No_Naval_Competitor = { allowed = { has_dlc = "Man the Guns" tag = TIX } enable = { has_war_with_major = yes NOT = { has_war_with = HUJ has_war_with = BYG } } abort_when_not_enabled = yes ai_strategy = { type = role_ratio id = vnr_naval_submarine value = 20 } ai_strategy = { type = role_ratio id = vnr_naval_screen value = 360 } ai_strategy = { type = role_ratio id = vnr_naval_cruiser_light value = 50 } ai_strategy = { type = role_ratio id = vnr_naval_cruiser_medium value = 30 } ai_strategy = { type = role_ratio id = vnr_naval_capital_bb value = 30 } ai_strategy = { type = role_ratio id = vnr_naval_carrier value = 20 } ai_strategy = { type = dockyard_to_military_factory_ratio value = 30 } } naval_unit_role_ratios_GER_late_peace = { allowed = { has_dlc = "Man the Guns" tag = TIX } enable = { date > 1941.1.1 has_war_with_major = no } abort_when_not_enabled = yes ai_strategy = { type = role_ratio id = vnr_naval_carrier value = 20 } ai_strategy = { type = role_ratio id = vnr_naval_screen value = 350 } ai_strategy = { type = role_ratio id = vnr_naval_screen_cruiser value = 10 } ai_strategy = { type = role_ratio id = vnr_naval_cruiser_light value = 40 } ai_strategy = { type = role_ratio id = vnr_naval_cruiser_medium value = 10 } ai_strategy = { type = role_ratio id = vnr_naval_cruiser_large value = 20 } ai_strategy = { type = role_ratio id = vnr_naval_capital_bb value = 20 } } ### ENG ### naval_unit_role_ratios_ENG_prewar_early = { allowed = { has_dlc = "Man the Guns" tag = HUJ } enable = { date < 1937.6.1 has_war_with_major = no } abort_when_not_enabled = yes ai_strategy = { type = role_ratio id = vnr_naval_carrier value = 15 } ai_strategy = { type = role_ratio id = vnr_naval_submarine value = 50 } ai_strategy = { type = role_ratio id = vnr_naval_screen value = 200 } ai_strategy = { type = role_ratio id = vnr_naval_screen_leader value = 10 } ai_strategy = { type = role_ratio id = vnr_naval_cruiser_light value = 50 } ai_strategy = { type = role_ratio id = vnr_naval_cruiser_medium value = -30 } ai_strategy = { type = dockyard_to_military_factory_ratio value = 30 } } naval_unit_role_ratios_ENG_prewar_late = { allowed = { has_dlc = "Man the Guns" tag = HUJ } enable = { date < 1941.1.1 date > 1937.5.31 has_war_with_major = no } abort_when_not_enabled = yes ai_strategy = { type = role_ratio id = vnr_naval_capital_bb value = 35 } ai_strategy = { type = role_ratio id = vnr_naval_carrier value = 30 } ai_strategy = { type = role_ratio id = vnr_naval_submarine value = 80 } ai_strategy = { type = role_ratio id = vnr_naval_screen value = 350 } ai_strategy = { type = role_ratio id = vnr_naval_screen_leader value = 20 } ai_strategy = { type = role_ratio id = vnr_naval_cruiser_light value = 70 } ai_strategy = { type = role_ratio id = vnr_naval_cruiser_medium value = -30 } ai_strategy = { type = dockyard_to_military_factory_ratio value = 50 } } naval_unit_role_ratios_ENG_atwar = { allowed = { has_dlc = "Man the Guns" tag = HUJ } enable = { has_war_with_major = yes } abort_when_not_enabled = yes ai_strategy = { type = role_ratio id = vnr_naval_capital_bb value = 20 } ai_strategy = { type = role_ratio id = vnr_naval_carrier value = 25 } ai_strategy = { type = role_ratio id = vnr_naval_screen value = 450 } ai_strategy = { type = role_ratio id = vnr_naval_cruiser_light value = 50 } ai_strategy = { type = role_ratio id = vnr_naval_submarine value = 20 } ai_strategy = { type = dockyard_to_military_factory_ratio value = 65 } } naval_unit_role_ratios_ENG_late_peace = { allowed = { has_dlc = "Man the Guns" tag = HUJ } enable = { date > 1940.12.31 has_war = no } abort_when_not_enabled = yes ai_strategy = { type = role_ratio id = vnr_naval_capital_bb value = 5 } ai_strategy = { type = role_ratio id = vnr_naval_carrier value = 10 } ai_strategy = { type = role_ratio id = vnr_naval_screen value = 100 } ai_strategy = { type = role_ratio id = vnr_naval_cruiser_light value = 20 } } ### FRA ### naval_unit_role_ratios_FRA_prewar = { allowed = { has_dlc = "Man the Guns" tag = YUW } enable = { date < 1940.1.1 has_war_with_major = no } abort_when_not_enabled = yes ai_strategy = { type = role_ratio id = vnr_naval_submarine value = 30 } ai_strategy = { type = role_ratio id = vnr_naval_screen value = 20 } ai_strategy = { type = role_ratio id = vnr_naval_screen_leader value = 200 } ai_strategy = { type = role_ratio id = vnr_naval_cruiser_light value = 30 } ai_strategy = { type = role_ratio id = vnr_naval_cruiser_medium value = 15 } ai_strategy = { type = role_ratio id = vnr_naval_capital_bb value = 25 } } naval_unit_role_ratios_FRA_atwar = { allowed = { has_dlc = "Man the Guns" tag = YUW } enable = { has_war_with = TIX } abort_when_not_enabled = yes ai_strategy = { type = role_ratio id = vnr_naval_submarine value = 50 } ai_strategy = { type = role_ratio id = vnr_naval_screen value = 20 } ai_strategy = { type = role_ratio id = vnr_naval_screen_leader value = 200 } ai_strategy = { type = role_ratio id = vnr_naval_cruiser_light value = 20 } ai_strategy = { type = role_ratio id = vnr_naval_cruiser_medium value = 15 } ai_strategy = { type = role_ratio id = vnr_naval_capital_bb value = -100 } } naval_unit_role_ratios_FRA_atwar_without_germany = { allowed = { has_dlc = "Man the Guns" tag = YUW } enable = { has_war_with_major = yes NOT = { has_war_with = TIX } } abort_when_not_enabled = yes ai_strategy = { type = role_ratio id = vnr_naval_submarine value = 80 } ai_strategy = { type = role_ratio id = vnr_naval_screen value = 80 } ai_strategy = { type = role_ratio id = vnr_naval_screen_leader value = 250 } ai_strategy = { type = role_ratio id = vnr_naval_screen_cruiser value = 20 } ai_strategy = { type = role_ratio id = vnr_naval_cruiser_light value = 50 } ai_strategy = { type = role_ratio id = vnr_naval_capital_bb value = 20 } } naval_unit_role_ratios_FRA_late_peace = { allowed = { has_dlc = "Man the Guns" tag = YUW } enable = { date > 1939.12.31 has_war = no } abort_when_not_enabled = yes ai_strategy = { type = role_ratio id = vnr_naval_submarine value = 10 } ai_strategy = { type = role_ratio id = vnr_naval_screen value = 150 } ai_strategy = { type = role_ratio id = vnr_naval_screen_leader value = 300 } ai_strategy = { type = role_ratio id = vnr_naval_cruiser_light value = 20 } ai_strategy = { type = role_ratio id = vnr_naval_cruiser_large value = 20 } ai_strategy = { type = role_ratio id = vnr_naval_capital_bb value = 20 } ai_strategy = { type = role_ratio id = vnr_naval_carrier value = 20 } } ### SOV ### naval_unit_role_ratios_SOV_need_to_watch_germany_peace = { allowed = { has_dlc = "Man the Guns" tag = BFL } enable = { NOT = { is_ally_with = TIX } date < 1942.1.1 has_war_with_major = no } abort_when_not_enabled = yes ai_strategy = { type = role_ratio id = vnr_naval_submarine value = 80 } ai_strategy = { type = role_ratio id = vnr_naval_screen value = 50 } ai_strategy = { type = role_ratio id = vnr_naval_cruiser_light value = 20 } ai_strategy = { type = role_ratio id = vnr_naval_cruiser_medium value = 10 } } naval_unit_role_ratios_SOV_no_need_to_watch_germany_peace = { allowed = { has_dlc = "Man the Guns" tag = BFL } enable = { OR = { NOT = { country_exists = TIX } is_ally_with = TIX date > 1941.12.31 } has_war_with_major = no } abort_when_not_enabled = yes ai_strategy = { type = role_ratio id = vnr_naval_submarine value = 40 } ai_strategy = { type = role_ratio id = vnr_naval_screen value = 200 } ai_strategy = { type = role_ratio id = vnr_naval_cruiser_light value = 30 } ai_strategy = { type = role_ratio id = vnr_naval_cruiser_medium value = 20 } ai_strategy = { type = role_ratio id = vnr_naval_capital_bb value = 10 } ai_strategy = { type = role_ratio id = vnr_naval_carrier value = 10 } ai_strategy = { type = dockyard_to_military_factory_ratio value = 35 } } naval_unit_role_ratios_SOV_atwar_with_Germany = { allowed = { has_dlc = "Man the Guns" tag = BFL } enable = { has_war_with = TIX } abort_when_not_enabled = yes ai_strategy = { type = role_ratio id = vnr_naval_submarine value = 10 } ai_strategy = { type = role_ratio id = vnr_naval_screen value = 10 } ai_strategy = { type = role_ratio id = vnr_naval_cruiser_light value = 10 } ai_strategy = { type = role_ratio id = vnr_naval_cruiser_medium value = -100 } ai_strategy = { type = role_ratio id = vnr_naval_capital_bb value = -100 } ai_strategy = { type = role_ratio id = vnr_naval_carrier value = -100 } } naval_unit_role_ratios_SOV_atwar_with_major = { allowed = { has_dlc = "Man the Guns" tag = BFL } enable = { NOT = { has_war_with = TIX } has_war_with_major = yes } abort_when_not_enabled = yes ai_strategy = { type = role_ratio id = vnr_naval_submarine value = 40 } ai_strategy = { type = role_ratio id = vnr_naval_screen value = 300 } ai_strategy = { type = role_ratio id = vnr_naval_cruiser_light value = 50 } ai_strategy = { type = role_ratio id = vnr_naval_cruiser_medium value = 20 } ai_strategy = { type = role_ratio id = vnr_naval_capital_bb value = 20 } ai_strategy = { type = role_ratio id = vnr_naval_carrier value = 10 } ai_strategy = { type = dockyard_to_military_factory_ratio value = 50 } } ### JAP ### naval_unit_role_ratios_JAP_prewar_build_carriers = { allowed = { has_dlc = "Man the Guns" tag = CHY } enable = { date < 1939.6.1 NOT = { any_enemy_country = { is_literally_china = no is_major = yes } } has_navy_size = { size < 8 type = carrier } } abort_when_not_enabled = yes ai_strategy = { type = role_ratio id = vnr_naval_submarine value = 20 } ai_strategy = { type = role_ratio id = vnr_naval_screen value = 250 } ai_strategy = { type = role_ratio id = vnr_naval_cruiser_light value = 50 } ai_strategy = { type = role_ratio id = vnr_naval_cruiser_medium value = 20 } ai_strategy = { type = role_ratio id = vnr_naval_carrier value = 30 } ai_strategy = { type = role_ratio id = vnr_naval_carrier_light value = 30 } } naval_unit_role_ratios_JAP_prewar_enough_carrier = { allowed = { has_dlc = "Man the Guns" tag = CHY } enable = { date < 1939.6.1 NOT = { any_enemy_country = { is_literally_china = no is_major = yes } } has_navy_size = { size > 7 type = carrier } } abort_when_not_enabled = yes ai_strategy = { type = role_ratio id = vnr_naval_submarine value = 20 } ai_strategy = { type = role_ratio id = vnr_naval_screen value = 300 } ai_strategy = { type = role_ratio id = vnr_naval_cruiser_light value = 50 } ai_strategy = { type = role_ratio id = vnr_naval_cruiser_medium value = 30 } ai_strategy = { type = role_ratio id = vnr_naval_capital_bb value = 40 } ai_strategy = { type = role_ratio id = vnr_naval_carrier value = -20 } ai_strategy = { type = dockyard_to_military_factory_ratio value = 30 } } naval_unit_role_ratios_JAP_atwar = { allowed = { has_dlc = "Man the Guns" tag = CHY } enable = { OR = { date > 1939.5.31 any_enemy_country = { is_literally_china = no is_major = yes } } } abort_when_not_enabled = yes ai_strategy = { type = role_ratio id = vnr_naval_submarine value = 20 } ai_strategy = { type = role_ratio id = vnr_naval_screen value = 350 } ai_strategy = { type = role_ratio id = vnr_naval_cruiser_medium value = 30 } ai_strategy = { type = role_ratio id = vnr_naval_cruiser_light value = 60 } ai_strategy = { type = role_ratio id = vnr_naval_capital_bb value = 20 } ai_strategy = { type = role_ratio id = vnr_naval_carrier value = 45 } ai_strategy = { type = dockyard_to_military_factory_ratio value = 70 } } naval_unit_role_ratios_JAP_late_peace = { allowed = { has_dlc = "Man the Guns" tag = CHY } enable = { date > 1942.1.1 has_war_with_major = no } abort_when_not_enabled = yes ai_strategy = { type = role_ratio id = vnr_naval_screen value = 200 } ai_strategy = { type = role_ratio id = vnr_naval_screen_cruiser value = 10 } ai_strategy = { type = role_ratio id = vnr_naval_cruiser_light value = 30 } ai_strategy = { type = role_ratio id = vnr_naval_cruiser_large value = 30 } ai_strategy = { type = role_ratio id = vnr_naval_capital_bb value = 10 } ai_strategy = { type = role_ratio id = vnr_naval_carrier value = 20 } ai_strategy = { type = dockyard_to_military_factory_ratio value = 30 } } ### USA ### naval_unit_role_ratios_USA_great_depression = { allowed = { has_dlc = "Man the Guns" tag = BYG } enable = { date < 1938.1.1 has_war_with_major = no } abort_when_not_enabled = yes ai_strategy = { type = role_ratio id = vnr_naval_capital_bb value = -20 } ai_strategy = { type = role_ratio id = vnr_naval_carrier value = 5 } ai_strategy = { type = role_ratio id = vnr_naval_submarine value = 25 } ai_strategy = { type = role_ratio id = vnr_naval_screen value = 200 } ai_strategy = { type = role_ratio id = vnr_naval_screen_leader value = 10 } ai_strategy = { type = role_ratio id = vnr_naval_cruiser_light value = 40 } ai_strategy = { type = role_ratio id = vnr_naval_cruiser_medium value = 30 } } naval_unit_role_ratios_USA_go_to_war = { allowed = { has_dlc = "Man the Guns" tag = BYG } enable = { date > 1937.12.31 has_war_with_major = no } abort_when_not_enabled = yes ai_strategy = { type = role_ratio id = vnr_naval_submarine value = 40 } ai_strategy = { type = role_ratio id = vnr_naval_screen value = 320 } ai_strategy = { type = role_ratio id = vnr_naval_screen_leader value = 10 } ai_strategy = { type = role_ratio id = vnr_naval_cruiser_light value = 40 } ai_strategy = { type = role_ratio id = vnr_naval_cruiser_medium value = 20 } ai_strategy = { type = role_ratio id = vnr_naval_capital_bb value = 40 } ai_strategy = { type = role_ratio id = vnr_naval_carrier value = 30 } ai_strategy = { type = dockyard_to_military_factory_ratio value = 50 } } naval_unit_role_ratios_USA_atwar = { allowed = { has_dlc = "Man the Guns" tag = BYG } enable = { has_war_with_major = yes } abort_when_not_enabled = yes ai_strategy = { type = role_ratio id = vnr_naval_submarine value = 80 } ai_strategy = { type = role_ratio id = vnr_naval_screen value = 600 } ai_strategy = { type = role_ratio id = vnr_naval_cruiser_light value = 80 } ai_strategy = { type = role_ratio id = vnr_naval_cruiser_medium value = 35 } ai_strategy = { type = role_ratio id = vnr_naval_capital_bb value = 50 } ai_strategy = { type = role_ratio id = vnr_naval_carrier value = 60 } ai_strategy = { type = dockyard_to_military_factory_ratio value = 90 } } naval_unit_role_ratios_ITA_prewar_build_battleships = { allowed = { has_dlc = "Man the Guns" tag = SAD } enable = { date < 1941.1.1 has_war_with_major = no has_navy_size = { size < 6 type = capital_ship archetype = ship_hull_heavy } } abort_when_not_enabled = yes ai_strategy = { type = role_ratio id = vnr_naval_submarine value = 40 } ai_strategy = { type = role_ratio id = vnr_naval_screen value = 150 } ai_strategy = { type = role_ratio id = vnr_naval_screen_leader value = 10 } ai_strategy = { type = role_ratio id = vnr_naval_cruiser_light value = 40 } ai_strategy = { type = role_ratio id = vnr_naval_cruiser_medium value = 25 } ai_strategy = { type = role_ratio id = vnr_naval_capital_bb value = 20 } } naval_unit_role_ratios_ITA_prewar_enough_battleships = { allowed = { has_dlc = "Man the Guns" tag = SAD } enable = { date < 1941.1.1 has_war_with_major = no has_navy_size = { size > 5 type = capital_ship archetype = ship_hull_heavy } } abort_when_not_enabled = yes ai_strategy = { type = role_ratio id = vnr_naval_submarine value = 40 } ai_strategy = { type = role_ratio id = vnr_naval_screen value = 220 } ai_strategy = { type = role_ratio id = vnr_naval_screen_leader value = 10 } ai_strategy = { type = role_ratio id = vnr_naval_cruiser_light value = 40 } ai_strategy = { type = role_ratio id = vnr_naval_cruiser_medium value = 10 } ai_strategy = { type = role_ratio id = vnr_naval_capital_bb value = -20 } ai_strategy = { type = dockyard_to_military_factory_ratio value = 20 } } naval_unit_role_ratios_ITA_atwar_with_England = { allowed = { has_dlc = "Man the Guns" tag = SAD } enable = { has_war_with = HUJ } abort_when_not_enabled = yes ai_strategy = { type = role_ratio id = vnr_naval_submarine value = 100 } ai_strategy = { type = role_ratio id = vnr_naval_screen value = 250 } ai_strategy = { type = role_ratio id = vnr_naval_screen_leader value = 40 } ai_strategy = { type = role_ratio id = vnr_naval_screen_cruiser value = 10 } ai_strategy = { type = role_ratio id = vnr_naval_cruiser_light value = 40 } ai_strategy = { type = role_ratio id = vnr_naval_capital_bb value = 10 } ai_strategy = { type = dockyard_to_military_factory_ratio value = 40 } } naval_unit_role_ratios_ITA_atwar_with_major = { allowed = { has_dlc = "Man the Guns" tag = SAD } enable = { NOT = { has_war_with = HUJ } has_war_with_major = yes } abort_when_not_enabled = yes ai_strategy = { type = role_ratio id = vnr_naval_submarine value = 40 } ai_strategy = { type = role_ratio id = vnr_naval_screen value = 250 } ai_strategy = { type = role_ratio id = vnr_naval_screen_leader value = 40 } ai_strategy = { type = role_ratio id = vnr_naval_screen_cruiser value = 10 } ai_strategy = { type = role_ratio id = vnr_naval_cruiser_light value = 40 } ai_strategy = { type = role_ratio id = vnr_naval_cruiser_medium value = 30 } ai_strategy = { type = role_ratio id = vnr_naval_capital_bb value = 15 } ai_strategy = { type = dockyard_to_military_factory_ratio value = 50 } } naval_unit_role_ratios_ITA_late_peace = { allowed = { has_dlc = "Man the Guns" tag = SAD } enable = { date > 1941.1.1 has_war_with_major = no } abort_when_not_enabled = yes ai_strategy = { type = role_ratio id = vnr_naval_submarine value = 40 } ai_strategy = { type = role_ratio id = vnr_naval_screen value = 100 } ai_strategy = { type = role_ratio id = vnr_naval_screen_leader value = 10 } ai_strategy = { type = role_ratio id = vnr_naval_cruiser_light value = 40 } ai_strategy = { type = role_ratio id = vnr_naval_cruiser_medium value = 25 } ai_strategy = { type = role_ratio id = vnr_naval_capital_bb value = 15 } ai_strategy = { type = role_ratio id = vnr_naval_carrier value = 20 } } # naval_unit_role_ratios_majors_lategame = { # allowed = { # has_dlc = "Man the Guns" # OR = { # tag = TIX # tag = YUW # tag = NFA # tag = HUJ # tag = GBR # tag = CHY # tag = CAN # } # } # enable = { date > 1942.1.1 } # ai_strategy = { # type = role_ratio # id = naval_capital_bb # value = 50 # } # ai_strategy = { # type = role_ratio # id = naval_carrier # value = 80 # } # ai_strategy = { # type = role_ratio # id = naval_cruiser_light # value = 50 # } # ai_strategy = { # type = role_ratio # id = naval_cruiser_heavy # value = 20 # } # } ### Utility strategies ### # high_convoy_threat = { # allowed = { # has_dlc = "Man the Guns" # OR = { # tag = TIX # tag = YUW # tag = NFA # tag = HUJ # tag = GBR # tag = CHY # tag = BYG # tag = CSA # tag = TEX # tag = PSA # tag = CAN # tag = RUS # tag = BFL # } # } # enable = { # convoy_threat > 0.2 # } # abort = { # convoy_threat < 0.2 # } # ai_strategy = { # type = role_ratio # id = naval_capital_bb # value = -50 # } # ai_strategy = { # type = role_ratio # id = naval_carrier # value = -50 # } # ai_strategy = { # type = role_ratio # id = naval_submarine # value = -50 # } # ai_strategy = { # type = role_ratio # id = naval_screen # value = 200 # } # ai_strategy = { # type = role_ratio # id = naval_cruiser_light # value = -50 # } # ai_strategy = { # type = role_ratio # id = naval_cruiser_heavy # value = -50 # } # ai_strategy = { # type = role_ratio # id = naval_mine_sweeper # value = -50 # } # } # high_mine_threat_1 = { # allowed = { # has_dlc = "Man the Guns" # OR = { # tag = TIX # tag = HUJ # tag = GBR # tag = CHY # tag = BYG # tag = CSA # tag = TEX # tag = PSA # tag = CAN # } # } # enable = { # mine_threat > 0.2 # } # abort = { # mine_threat < 0.2 # } # ai_strategy = { # type = role_ratio # id = naval_mine_sweeper # value = 25 # } # } # high_mine_threat_2 = { # allowed = { # has_dlc = "Man the Guns" # OR = { # tag = TIX # tag = HUJ # tag = GBR # tag = CHY # tag = BYG # tag = CSA # tag = TEX # tag = PSA # tag = CAN # } # } # enable = { # mine_threat > 0.5 # } # abort = { # mine_threat < 0.5 # } # ai_strategy = { # type = role_ratio # id = naval_mine_sweeper # value = 25 # } # } ### Convoys ### we_need_convoys_minors = { allowed = { NOT = { OR = { tag = HUJ tag = YUW tag = CHY tag = TIX tag = BYG tag = SAD tag = BFL } } } enable = { stockpile_ratio = { archetype = convoy ratio < 75 } } abort = { stockpile_ratio = { archetype = convoy ratio > 100 } } ai_strategy = { type = equipment_production_min_factories id = convoy value = 2 } } we_need_convoys_majors1 = { allowed = { OR = { tag = HUJ tag = YUW tag = CHY tag = TIX tag = BYG tag = SAD tag = BFL } } enable = { stockpile_ratio = { archetype = convoy ratio < 75 } } abort = { stockpile_ratio = { archetype = convoy ratio > 125 } } ai_strategy = { type = equipment_production_min_factories id = convoy value = 10 } } we_need_convoys_majors2 = { allowed = { OR = { tag = HUJ tag = YUW tag = CHY tag = TIX tag = BYG tag = SAD tag = BFL } } enable = { stockpile_ratio = { archetype = convoy ratio < 125 } } abort = { stockpile_ratio = { archetype = convoy ratio > 500 } } ai_strategy = { type = equipment_production_min_factories id = convoy value = 5 } } we_need_convoys_majors3 = { allowed = { OR = { tag = HUJ tag = YUW tag = CHY tag = TIX tag = BYG tag = SAD tag = BFL } } enable = { stockpile_ratio = { archetype = convoy ratio > 500 } } abort_when_not_enabled = yes ai_strategy = { type = equipment_production_min_factories id = convoy value = 2 } } # we_need_convoys_majors3 = { # allowed = { # OR = { # tag = HUJ # tag = CHY # tag = TIX # tag = BYG # tag = CSA # tag = TEX # tag = PSA # } # } # enable = { stockpile_ratio = { archetype = convoy ratio < 250 } } # abort = { stockpile_ratio = { archetype = convoy ratio > 300 } } # ai_strategy = { # type = equipment_production_min_factories # id = convoy # value = 3 # } # } # we_need_convoys_majors4 = { # allowed = { # OR = { # tag = HUJ # tag = CHY # tag = TIX # tag = BYG # tag = CSA # tag = TEX # tag = PSA # } # } # enable = { stockpile_ratio = { archetype = convoy ratio < 400 } } # abort = { stockpile_ratio = { archetype = convoy ratio > 450 } } # ai_strategy = { # type = equipment_production_min_factories # id = convoy # value = 2 # } # } we_dont_need_convoys_1 = { allowed = { NOT = { OR = { tag = HUJ tag = YUW tag = CHY tag = TIX tag = BYG tag = SAD tag = BFL } } } enable = { stockpile_ratio = { archetype = convoy ratio > 200 } } abort_when_not_enabled = yes ai_strategy = { type = equipment_variant_production_factor id = convoy value = -500 } } we_dont_need_convoys_2 = { allowed = { OR = { tag = HUJ tag = YUW tag = CHY tag = TIX tag = BYG tag = SAD tag = BFL } } enable = { stockpile_ratio = { archetype = convoy ratio > 1000 } } abort_when_not_enabled = yes ai_strategy = { type = equipment_variant_production_factor id = convoy value = -500 } } we_need_screen_1 = { allowed = { OR = { tag = HUJ tag = YUW tag = CHY tag = TIX tag = BYG tag = SAD tag = BFL } } enable = { has_navy_size = { size < 50 type = screen_ship archetype = ship_hull_light } } abort_when_not_enabled = yes ai_strategy = { type = role_ratio id = vnr_naval_screen value = 300 } } we_need_cv_planes_1 = { allowed = { always = yes } enable = { has_navy_size = { size > 0 type = carrier } has_navy_size = { size < 4 type = carrier } } abort_when_not_enabled = yes ai_strategy = { type = unit_ratio id = cv_fighter value = 25 } ai_strategy = { type = unit_ratio id = cv_naval_bomber value = 10 } ai_strategy = { type = unit_ratio id = cv_cas value = 10 } ai_strategy = { type = equipment_production_factor id = cv_fighter value = 30 } ai_strategy = { type = equipment_production_factor id = cv_naval_bomber value = 20 } ai_strategy = { type = equipment_production_factor id = cv_cas value = 20 } } we_need_cv_planes_2 = { allowed = { always = yes } enable = { has_navy_size = { size > 3 type = carrier } has_navy_size = { size < 8 type = carrier } } abort_when_not_enabled = yes ai_strategy = { type = unit_ratio id = cv_fighter value = 30 } ai_strategy = { type = unit_ratio id = cv_naval_bomber value = 25 } ai_strategy = { type = unit_ratio id = cv_cas value = 20 } ai_strategy = { type = equipment_production_factor id = cv_fighter value = 50 } ai_strategy = { type = equipment_production_factor id = cv_naval_bomber value = 40 } ai_strategy = { type = equipment_production_factor id = cv_cas value = 40 } } we_need_cv_planes_3 = { allowed = { always = yes } enable = { has_navy_size = { size > 7 type = carrier } } abort_when_not_enabled = yes ai_strategy = { type = unit_ratio id = cv_fighter value = 50 } ai_strategy = { type = unit_ratio id = cv_naval_bomber value = 40 } ai_strategy = { type = unit_ratio id = cv_cas value = 35 } ai_strategy = { type = equipment_production_factor id = cv_fighter value = 80 } ai_strategy = { type = equipment_production_factor id = cv_naval_bomber value = 60 } ai_strategy = { type = equipment_production_factor id = cv_cas value = 60 } } build_more_missile_cruisers = { allowed = { always = yes } enable = { has_tech = modern_ship_hull_cruiser } abort_when_not_enabled = yes ai_strategy = { type = role_ratio id = vnr_naval_cruiser_medium value = 20 } ai_strategy = { type = role_ratio id = vnr_naval_capital_bb value = -80 } } restrict_early_landing = { allowed = { always = yes } enable = { enemies_naval_strength_ratio > 1.5 } abort_when_not_enabled = yes ai_strategy = { type = naval_invasion_focus value = -1000 } }