BETTER MILITARY AI

If you liked this item, please rate it up on Steam Workshop page.

Author: kiorobbo

Last revision: 17 Sep, 2024 at 21:21 UTC

File size: 300.23 KB

On Steam Workshop

Description:

https://discord.gg/r8xu7qc367 my discord

Need a fresh save to work
Works with any mod put at the bottom in load order

HOW IT WORKS

The AI now targets army’s of 10 and above they now break sieges and chase them and also no longer ignoring each other and when a battle breaks out other army’s will reinforce and army’s smaller get targeted less compared to bigger ones the second the AI now targets fort less then large army’s but is now the second most targeted now area capitals are targeted this means the AI will go for capitals with forts more now the AI does not follow this to the letter but encourage

CODE

modifier = {
trigger = {

scope:province = {
fort_level >= 1
}
}
add = {
value = -7000
}
}
modifier = {
trigger = {
scope:province = {
has_enemy_army = root.unit_owner
any_unit_in_province = {
unit_size >= 10
unit_owner = {
any_countries_at_war_with = {
this = root.unit_owner
}
}
}
}
}
add = {
value = -150000
}
}
modifier = {
trigger = {
scope:province = {

is_state_capital = yes
has_province_rank = city
}
}
add = {
value = -5000
}
}
modifier = {
trigger = {
scope:province = {

has_province_rank = settlement
is_state_capital = yes
}
}
add = {
value = -5000
}
}
modifier = {
trigger = {
scope:province = {

has_province_rank = city_metropolis
is_state_capital = yes
}
}
add = {
value = -5000
}
}