Files
az-vnr-patch/src/common/ai_strategy/vnr_naval_strategy.txt
2025-11-29 04:00:56 +00:00

1155 lines
19 KiB
Plaintext
Executable File

### HUJ ###
ENG_protect_home_waters = {
allowed = {
original_tag = HUJ
}
enable = {
has_war_with = TIX
TIX = {
has_navy_size = { size > 30 }
}
enable_vnr_naval_ai = yes
}
abort_when_not_enabled = yes
ai_strategy = {
type = naval_dominance
id = 18
value = 100
}
ai_strategy = {
type = naval_dominance
id = 16
value = 100
}
ai_strategy = {
type = naval_avoid_region
id = 18
value = -1000
}
ai_strategy = {
type = naval_avoid_region
id = 173
value = 100
}
ai_strategy = {
type = naval_avoid_region
id = 207
value = 500
}
}
ENG_secure_mediterranean = {
allowed = {
original_tag = HUJ
}
enable = {
has_war_with = SAD
SAD = {
has_navy_size = { size > 30 }
}
all_core_state = {
is_controlled_by_ROOT_or_ally = yes
}
enable_vnr_naval_ai = yes
}
abort_when_not_enabled = yes
ai_strategy = {
type = naval_dominance
id = 29
value = 100
}
ai_strategy = {
type = naval_dominance
id = 68
value = 60
}
ai_strategy = {
type = naval_dominance
id = 69
value = 100
}
ai_strategy = {
type = naval_avoid_region
id = 168
value = 800
}
}
ENG_avoid_mediterranean = {
allowed = {
original_tag = HUJ
}
enable = {
has_war = yes
any_core_state = {
is_controlled_by_ROOT_or_ally = no
}
enable_vnr_naval_ai = yes
}
abort_when_not_enabled = yes
ai_strategy = {
type = naval_avoid_region
id = 29
value = 1000
}
ai_strategy = {
type = naval_avoid_region
id = 68
value = 1000
}
ai_strategy = {
type = naval_avoid_region
id = 69
value = 1000
}
ai_strategy = {
type = naval_avoid_region
id = 168
value = 1000
}
}
ENG_avoid_pacific = {
allowed = {
original_tag = HUJ
}
enable = {
has_war_with = CHY
has_war_with = SAD
ITA = { has_navy_size = { size > 99 } }
war_length_with = {
tag = CHY
months < 24
}
any_core_state = {
is_controlled_by_ROOT_or_ally = no
}
enable_vnr_naval_ai = yes
}
abort_when_not_enabled = yes
ai_strategy = {
type = naval_avoid_region
id = 75
value = 1000
}
ai_strategy = {
type = naval_avoid_region
id = 72
value = 50
}
ai_strategy = {
type = naval_avoid_region
id = 73
value = 200
}
}
ENG_reinforce_pacific = {
allowed = {
original_tag = HUJ
}
enable = {
has_war_with = CHY
OR = {
war_length_with = {
tag = CHY
months > 23
}
NOT = { has_war_with = SAD }
}
OR = {
NOT = { has_war_with = SAD }
ITA = { has_navy_size = { size < 100 } }
}
336 = {
is_controlled_by_ROOT_or_ally = yes
}
all_core_state = {
is_controlled_by_ROOT_or_ally = yes
}
enable_vnr_naval_ai = yes
}
abort_when_not_enabled = yes
ai_strategy = {
type = naval_dominance
id = 72
value = 100
}
ai_strategy = {
type = naval_dominance
id = 91
value = 10
}
ai_strategy = {
type = naval_dominance
id = 92
value = 10
}
ai_strategy = {
type = naval_dominance
id = 93
value = 10
}
ai_strategy = {
type = naval_dominance
id = 84
value = 50
}
ai_strategy = {
type = naval_dominance
id = 83
value = 50
}
}
### CHY ###
JAP_destroy_china_navy_quick = {
allowed = {
original_tag = CHY
}
enable = {
has_war_with = DOH
NOT = { has_war_with = BYG }
enable_vnr_naval_ai = yes
}
abort_when_not_enabled = yes
ai_strategy = {
type = naval_dominance
id = 75
value = 100
}
ai_strategy = {
type = naval_dominance
id = 76
value = 100
}
ai_strategy = {
type = naval_dominance
id = 77
value = 100
}
ai_strategy = {
type = naval_blockade
target_country = CHI
id = 75
value = 100
}
ai_strategy = {
type = naval_blockade
target_country = CHI
id = 76
value = 100
}
ai_strategy = {
type = naval_blockade
target_country = CHI
id = 77
value = 100
}
ai_strategy = {
type = convoy_raiding_target
id = CHI
value = 100
}
}
JAP_pacific_war_naval_stage_one = {
allowed = {
original_tag = CHY
}
enable = {
has_war_with = BYG
naval_strength_ratio = {
tag = BYG
ratio < 0.5
}
enable_vnr_naval_ai = yes
}
abort_when_not_enabled = yes
ai_strategy = {
type = naval_dominance
id = 75
value = 100
}
ai_strategy = {
type = naval_dominance
id = 78
value = 80
}
ai_strategy = {
type = naval_dominance
id = 94
value = 50
}
ai_strategy = {
type = naval_dominance
id = 84
value = 100
}
ai_strategy = {
type = naval_mission_threshold
id = MISSION_STRIKE_FORCE
value = -500
}
}
JAP_pacific_war_naval_stage_two = {
allowed = {
original_tag = CHY
}
enable = {
has_war_with = BYG
OR = {
naval_strength_ratio = {
tag = BYG
ratio = 0.5
}
naval_strength_ratio = {
tag = BYG
ratio > 0.5
}
}
enable_vnr_naval_ai = yes
}
abort_when_not_enabled = yes
ai_strategy = {
type = naval_dominance
id = 75
value = 50
}
ai_strategy = {
type = naval_dominance
id = 78
value = 50
}
ai_strategy = {
type = naval_dominance
id = 94
value = 50
}
ai_strategy = {
type = naval_dominance
id = 84
value = 50
}
ai_strategy = {
type = naval_dominance
id = 95
value = 100
}
ai_strategy = {
type = naval_dominance
id = 97
value = 100
}
ai_strategy = {
type = naval_dominance
id = 180
value = 75
}
ai_strategy = {
type = naval_dominance
id = 83
value = 85
}
ai_strategy = {
type = naval_mission_threshold
id = MISSION_STRIKE_FORCE
value = -500
}
}
### BYG ###
USA_pacific_war_naval_avoid_first = {
allowed = {
original_tag = BYG
}
enable = {
OR = {
has_war_with = CHY
threat > 0.7
}
date < 1942.5.1
naval_strength_ratio = {
tag = CHY
ratio < 5
}
enable_vnr_naval_ai = yes
}
abort_when_not_enabled = yes
ai_strategy = {
type = put_unit_buffer
ratio = 0.15
states = {
629
}
subtract_invasions_from_need = yes
}
ai_strategy = {
type = naval_avoid_region
id = 75
value = 1000
}
ai_strategy = {
type = naval_avoid_region
id = 76
value = 1000
}
ai_strategy = {
type = naval_avoid_region
id = 77
value = 1000
}
ai_strategy = {
type = naval_avoid_region
id = 78
value = 1000
}
ai_strategy = {
type = naval_avoid_region
id = 79
value = 1000
}
ai_strategy = {
type = naval_avoid_region
id = 80
value = 1000
}
ai_strategy = {
type = naval_avoid_region
id = 84
value = 50
}
ai_strategy = {
type = naval_avoid_region
id = 90
value = 1000
}
ai_strategy = {
type = naval_avoid_region
id = 94
value = 1000
}
ai_strategy = {
type = naval_avoid_region
id = 177
value = 1000
}
ai_strategy = {
type = naval_dominance
id = 95
value = 100
}
ai_strategy = {
type = naval_dominance
id = 97
value = 60
}
ai_strategy = {
type = naval_dominance
id = 105
value = 100
}
ai_strategy = {
type = naval_dominance
id = 180
value = 100
}
}
USA_do_not_waste_fleet_in_north_pacific = {
allowed = {
original_tag = BYG
}
enable = {
has_war_with = CHY
enable_vnr_naval_ai = yes
}
abort_when_not_enabled = yes
ai_strategy = {
type = naval_dominance
id = 87
value = 0
}
ai_strategy = {
type = naval_dominance
id = 88
value = 0
}
ai_strategy = {
type = naval_dominance
id = 96
value = 0
}
ai_strategy = {
type = naval_dominance
id = 176
value = 0
}
ai_strategy = {
type = naval_dominance
id = 114
value = 0
}
ai_strategy = {
type = naval_dominance
id = 171
value = 0
}
}
USA_pacific_war_naval_counterattack_1 = {
allowed = {
original_tag = BYG
}
enable = {
has_war_with = CHY
OR = {
date > 1942.4.30
naval_strength_ratio = {
tag = CHY
ratio > 5
}
}
NOT = {
controls_state = 633
controls_state = 684
}
enable_vnr_naval_ai = yes
}
abort_when_not_enabled = yes
ai_strategy = {
type = put_unit_buffer
ratio = 0.15
states = {
629
}
subtract_invasions_from_need = yes
}
ai_strategy = {
type = naval_avoid_region
id = 75
value = 1000
}
ai_strategy = {
type = naval_avoid_region
id = 76
value = 1000
}
ai_strategy = {
type = naval_avoid_region
id = 77
value = 1000
}
ai_strategy = {
type = naval_avoid_region
id = 78
value = 1000
}
ai_strategy = {
type = naval_avoid_region
id = 79
value = 1000
}
ai_strategy = {
type = naval_avoid_region
id = 80
value = 1000
}
ai_strategy = {
type = naval_avoid_region
id = 90
value = 1000
}
ai_strategy = {
type = naval_avoid_region
id = 94
value = 1000
}
ai_strategy = {
type = naval_avoid_region
id = 177
value = 1000
}
ai_strategy = {
type = naval_dominance
id = 83
value = 100
}
ai_strategy = {
type = naval_dominance
id = 84
value = 100
}
ai_strategy = {
type = naval_dominance
id = 95
value = 100
}
ai_strategy = {
type = naval_dominance
id = 97
value = 100
}
ai_strategy = {
type = naval_dominance
id = 105
value = 80
}
ai_strategy = {
type = naval_dominance
id = 180
value = 80
}
ai_strategy = {
type = invade
id = JAP
value = 500
}
ai_strategy = {
type = naval_invasion_focus
value = 1000
}
ai_strategy = {
type = convoy_raiding_target
id = JAP
value = 100
}
ai_strategy = {
type = invasion_unit_request
state = 633
value = 500
}
ai_strategy = {
type = invasion_unit_request
state = 684
value = 500
}
ai_strategy = {
type = front_control
area = pacific
ordertype = invasion
execute_order = yes
}
ai_strategy = {
type = naval_mission_threshold
id = MISSION_STRIKE_FORCE
value = -500
}
}
USA_pacific_war_naval_counterattack_2 = {
allowed = {
original_tag = BYG
}
enable = {
has_war_with = CHY
OR = {
date > 1942.4.30
naval_strength_ratio = {
tag = CHY
ratio > 5
}
}
controls_state = 633
controls_state = 684
NOT = {
controls_state = 645
}
enable_vnr_naval_ai = yes
}
abort_when_not_enabled = yes
ai_strategy = {
type = naval_avoid_region
id = 75
value = 1000
}
ai_strategy = {
type = naval_avoid_region
id = 76
value = 1000
}
ai_strategy = {
type = naval_avoid_region
id = 77
value = 1000
}
ai_strategy = {
type = naval_avoid_region
id = 79
value = 1000
}
ai_strategy = {
type = naval_avoid_region
id = 80
value = 1000
}
ai_strategy = {
type = naval_avoid_region
id = 90
value = 1000
}
ai_strategy = {
type = naval_avoid_region
id = 177
value = 1000
}
ai_strategy = {
type = naval_dominance
id = 84
value = 100
}
ai_strategy = {
type = naval_dominance
id = 95
value = 100
}
ai_strategy = {
type = naval_dominance
id = 97
value = 70
}
ai_strategy = {
type = naval_dominance
id = 94
value = 100
}
ai_strategy = {
type = naval_dominance
id = 78
value = 100
}
ai_strategy = {
type = invade
id = JAP
value = 1000
}
ai_strategy = {
type = naval_invasion_focus
value = 1000
}
ai_strategy = {
type = convoy_raiding_target
id = JAP
value = 100
}
ai_strategy = {
type = invasion_unit_request
state = 645
value = 500
}
ai_strategy = {
type = front_control
area = pacific
ordertype = invasion
execute_order = yes
}
ai_strategy = {
type = front_control
area = home_islands
ordertype = invasion
execute_order = yes
}
ai_strategy = {
type = naval_mission_threshold
id = MISSION_STRIKE_FORCE
value = -500
}
}
USA_pacific_war_naval_counterattack_3 = {
allowed = {
original_tag = BYG
}
enable = {
has_war_with = CHY
OR = {
date > 1942.4.30
naval_strength_ratio = {
tag = CHY
ratio > 5
}
}
controls_state = 633
controls_state = 684
controls_state = 645
enable_vnr_naval_ai = yes
}
abort_when_not_enabled = yes
ai_strategy = {
type = naval_avoid_region
id = 77
value = 1000
}
ai_strategy = {
type = naval_avoid_region
id = 79
value = 1000
}
ai_strategy = {
type = naval_dominance
id = 75
value = 80
}
ai_strategy = {
type = naval_dominance
id = 80
value = 80
}
ai_strategy = {
type = naval_dominance
id = 76
value = 100
}
ai_strategy = {
type = naval_dominance
id = 94
value = 100
}
ai_strategy = {
type = naval_dominance
id = 78
value = 100
}
ai_strategy = {
type = invade
id = JAP
value = 1000
}
ai_strategy = {
type = naval_invasion_focus
value = 1000
}
ai_strategy = {
type = convoy_raiding_target
id = JAP
value = 100
}
ai_strategy = {
type = invasion_unit_request
state = 526
value = 500
}
ai_strategy = {
type = front_control
area = pacific
ordertype = invasion
execute_order = yes
}
ai_strategy = {
type = front_control
area = home_islands
ordertype = invasion
execute_order = yes
}
ai_strategy = {
type = naval_mission_threshold
id = MISSION_STRIKE_FORCE
value = -500
}
}
### SAD ###
ITA_avoid_mediterranean = {
allowed = {
original_tag = SAD
}
enable = {
OR = {
has_war_with = HUJ
threat > 0.4
}
has_navy_size = { size < 250 }
enable_vnr_naval_ai = yes
}
abort_when_not_enabled = yes
ai_strategy = {
type = naval_dominance
id = 29
value = 50
}
ai_strategy = {
type = naval_dominance
id = 68
value = 0
}
ai_strategy = {
type = naval_dominance
id = 69
value = 0
}
ai_strategy = {
type = naval_dominance
id = 168
value = 100
}
ai_strategy = {
type = naval_dominance
id = 169
value = 100
}
ai_strategy = {
type = naval_blockade
target_country = ENG
id = 68
value = 100
}
ai_strategy = {
type = naval_blockade
target_country = ENG
id = 69
value = 100
}
ai_strategy = {
type = naval_blockade
target_country = ENG
id = 29
value = 60
}
ai_strategy = {
type = convoy_raiding_target
id = ENG
value = 50
}
}
### TIX ###
GER_forget_sealion = {
allowed = {
original_tag = TIX
}
enable = {
has_war_with = HUJ
naval_strength_ratio = {
tag = HUJ
ratio < 0.7
}
enable_vnr_naval_ai = yes
}
abort_when_not_enabled = yes
ai_strategy = {
type = naval_dominance
id = 18
value = 0
}
ai_strategy = {
type = naval_dominance
id = 16
value = 10
}
ai_strategy = {
type = invade
tag = HUJ
value = -500
}
}
GER_unrestricted_submarine_warfare = {
allowed = {
original_tag = TIX
}
enable = {
has_war_with = HUJ
naval_strength_ratio = {
tag = HUJ
ratio < 0.7
}
FRA = { has_capitulated = yes }
enable_vnr_naval_ai = yes
}
abort_when_not_enabled = yes
ai_strategy = {
type = naval_blockade
target_country = ENG
id = 47
value = 70
}
ai_strategy = {
type = naval_blockade
target_country = ENG
id = 49
value = 70
}
ai_strategy = {
type = naval_blockade
target_country = ENG
id = 44
value = 70
}
ai_strategy = {
type = naval_blockade
target_country = ENG
id = 50
value = 70
}
ai_strategy = {
type = naval_blockade
target_country = ENG
id = 42
value = 70
}
ai_strategy = {
type = convoy_raiding_target
id = ENG
value = 100
}
ai_strategy = {
type = naval_dominance
id = 173
value = 100
}
ai_strategy = {
type = naval_dominance
id = 207
value = 100
}
ai_strategy = {
type = naval_dominance
id = 9
value = 50
}
}
GER_avoid_mediterranean = {
allowed = {
original_tag = TIX
}
enable = {
country_exists = ENG
NOT = { is_ally_with = HUJ }
enable_vnr_naval_ai = yes
}
abort_when_not_enabled = yes
ai_strategy = {
type = naval_dominance
id = 29
value = 0
}
ai_strategy = {
type = naval_dominance
id = 68
value = 0
}
ai_strategy = {
type = naval_dominance
id = 69
value = 0
}
ai_strategy = {
type = naval_dominance
id = 168
value = 0
}
ai_strategy = {
type = naval_dominance
id = 169
value = 0
}
}
GER_invade_norway = {
allowed = {
original_tag = TIX
}
enable = {
has_war_with = NOR
NOR = {
has_capitulated = no
}
}
abort_when_not_enabled = yes
ai_strategy = {
type = invade
id = NOR
value = 1000
}
ai_strategy = {
type = invasion_unit_request
tag = NOR
value = 50
}
ai_strategy = {
type = naval_dominance
id = 173
value = 50
}
ai_strategy = {
type = naval_dominance
id = 207
value = 100
}
}
major_train_fleet_strategy = {
allowed = {
OR = {
original_tag = CHY
original_tag = BYG
original_tag = HUJ
original_tag = SAD
original_tag = YUW
original_tag = TIX
}
}
enable = {
has_war = no
date < 1939.1.1
}
abort_when_not_enabled = yes
ai_strategy = {
type = naval_mission_threshold
id = MISSION_TRAINING
value = -500
}
}
major_dont_hold_fleet = {
allowed = {
OR = {
original_tag = CHY
original_tag = BYG
original_tag = HUJ
original_tag = SAD
original_tag = YUW
original_tag = TIX
}
}
enable = {
has_war = yes
}
abort_when_not_enabled = yes
ai_strategy = {
type = naval_mission_threshold
id = MISSION_HOLD
value = 1000
}
}